diff --git a/CODEOWNERS b/CODEOWNERS index b795faf3a92d05a3975f5150e8f0f7789560b04f..b8953a55a47188713210861b2229e5610df8dd9c 100644 --- a/CODEOWNERS +++ b/CODEOWNERS @@ -132,7 +132,7 @@ zh-cn/device-dev/subsystems/subsys-xts-guide.md @Austin23 zh-cn/application-dev/ability/ @RayShih @littlejerry1 @gwang2008 @ccllee @chengxingzhen zh-cn/application-dev/IDL/ @RayShih @littlejerry1 @gwang2008 @ccllee @chengxingzhen -zh-cn/application-dev/device-usage-statistics/ @RayShih @shuaytao @wangzhen107 @inter515 +zh-cn/application-dev/device-usage-statistics/ @chenmingJay @ningningW @tangtiantian2021 @nan-xiansen @iceice1001 zh-cn/application-dev/ui/ @HelloCrease @huaweimaxuchu @tomatodevboy @niulihua zh-cn/application-dev/notification/ @RayShih @jayleehw @li-weifeng2 @currydavids zh-cn/application-dev/windowmanager/ @ge-yafang @zhangqiang183 @zhouyaoying @zxg-gitee @@ -244,7 +244,7 @@ zh-cn/application-dev/reference/js-service-widget-ui/ @HelloCrease zh-cn/application-dev/faqs/ @zengyawen zh-cn/application-dev/file-management/ @zengyawen zh-cn/application-dev/application-test/ @ningningW -zh-cn/application-dev/device-usage-statistics/ @RayShih @shuaytao @wangzhen107 @inter515 +zh-cn/application-dev/device-usage-statistics/ @chenmingJay @ningningW @tangtiantian2021 @nan-xiansen @iceice1001 zh-cn/application-dev/reference/apis/js-apis-ability-context.md @littlejerry1 @RayShih @gwang2008 @chengxingzhen zh-cn/application-dev/reference/apis/js-apis-ability-errorCode.md @littlejerry1 @RayShih @gwang2008 @chengxingzhen @@ -275,10 +275,12 @@ zh-cn/application-dev/reference/apis/js-apis-application-StartOptions.md @little zh-cn/application-dev/reference/apis/js-apis-application-staticSubscriberExtensionAbility.md @littlejerry1 @RayShih @gwang2008 @chengxingzhen zh-cn/application-dev/reference/apis/js-apis-application-Want.md @littlejerry1 @RayShih @gwang2008 @chengxingzhen zh-cn/application-dev/reference/apis/js-apis-application-WindowExtensionAbility.md @zhangqiang183 @ge-yafang @zhouyaoying @zxg-gitee +zh-cn/application-dev/application-models/windowextensionability.md @zhangqiang183 @ge-yafang @zhouyaoying @zxg-gitee +zh-cn/application-dev/reference/apis/js-apis-inner-application-windowExtensionContext.md @ge-yafang @zhouyaoying @zxg-gitee zh-cn/application-dev/reference/apis/js-apis-appmanager.md @littlejerry1 @RayShih @gwang2008 @chengxingzhen zh-cn/application-dev/reference/apis/js-apis-arraylist.md @gongjunsong @ge-yafang @flyingwolf @BlackStone zh-cn/application-dev/reference/apis/js-apis-audio.md @liuyuehua1 @zengyawen @magekkkk @currydavids -zh-cn/application-dev/reference/apis/js-apis-backgroundTaskManager.md @wangwenli_wolf @ningningW @tangtiantian2021 @nan-xiansen +zh-cn/application-dev/reference/apis/js-apis-backgroundTaskManager.md @chenmingJay @ningningW @tangtiantian2021 @nan-xiansen @iceice1001 zh-cn/application-dev/reference/apis/js-apis-battery-info.md @aqxyjay @zengyawen @aqxyjay @alien0208 zh-cn/application-dev/reference/apis/js-apis-bluetooth.md @cheng_guohong @RayShih @cheng_guohong @quanli125 zh-cn/application-dev/reference/apis/js-apis-brightness.md @aqxyjay @zengyawen @aqxyjay @alien0208 @@ -331,7 +333,7 @@ zh-cn/application-dev/reference/apis/js-apis-deviceUsageStatistics.md @shuaytao zh-cn/application-dev/reference/apis/js-apis-display.md @zhangqiang183 @ge-yafang @zhouyaoying @zxg-gitee zh-cn/application-dev/reference/apis/js-apis-distributed-account.md @nianCode @zengyawen @JiDong-CS @murphy1984 zh-cn/application-dev/reference/apis/js-apis-distributed-data.md @feng-aiwen @ge-yafang @gong-a-shi @logic42 -zh-cn/application-dev/reference/apis/js-apis-distributedMissionManager.md @wangwenli_wolf @ningningW @tangtiantian2021 @nan-xiansen +zh-cn/application-dev/reference/apis/js-apis-distributedMissionManager.md @chenmingJay @ningningW @tangtiantian2021 @nan-xiansen @iceice1001 zh-cn/application-dev/reference/apis/js-apis-document.md @panqinxu @zengyawen @bubble_mao @jinhaihw zh-cn/application-dev/reference/apis/js-apis-effectKit.md @zhangqiang183 @ge-yafang @wind_zj @zxg-gitee zh-cn/application-dev/reference/apis/js-apis-emitter.md @jayleehw @RayShih @li-weifeng2 @currydavids @@ -476,8 +478,9 @@ zh-cn/application-dev/reference/apis/js-apis-wifiext.md @cheng_guohong @RayShih zh-cn/application-dev/reference/apis/js-apis-window.md @zhangqiang183 @ge-yafang @zhouyaoying @zxg-gitee zh-cn/application-dev/reference/apis/js-apis-windowAnimationManager.md @zhangqiang183 @ge-yafang @wind_zj @zxg-gitee zh-cn/application-dev/reference/apis/js-apis-worker.md @gongjunsong @ge-yafang @flyingwolf @BlackStone -zh-cn/application-dev/reference/apis/js-apis-workScheduler.md @wangwenli_wolf @ningningW @tangtiantian2021 @nan-xiansen -zh-cn/application-dev/reference/apis/js-apis-WorkSchedulerExtensionAbility.md @wangwenli_wolf @ningningW @tangtiantian2021 @nan-xiansen +zh-cn/application-dev/reference/apis/js-apis-taskpool.md @gongjunsong @ge-yafang @flyingwolf @BlackStone +zh-cn/application-dev/reference/apis/js-apis-workScheduler.md @chenmingJay @ningningW @tangtiantian2021 @nan-xiansen @iceice1001 +zh-cn/application-dev/reference/apis/js-apis-WorkSchedulerExtensionAbility.md @chenmingJay @ningningW @tangtiantian2021 @nan-xiansen @iceice1001 zh-cn/application-dev/reference/apis/js-apis-xml.md @gongjunsong @ge-yafang @flyingwolf @BlackStone zh-cn/application-dev/reference/apis/js-apis-zlib.md @shuaytao @RayShih @wangzhen107 @inter515 zh-cn/application-dev/reference/apis/js-apis-webview.md @bigpumpkin @HelloCrease @litao33 @zhang-xinyue15 @@ -537,10 +540,10 @@ zh-cn/application-dev/reference/apis/js-apis-net-ethernet.md @zhang-hai-feng @ze zh-cn/application-dev/reference/apis/js-apis-net-sharing.md @zhang-hai-feng @zengyawen @jyh926 @gaoxi785 zh-cn/application-dev/reference/apis/js-apis-nfctech.md @cheng_guohong @RayShih @cheng_guohong @quanli125 zh-cn/application-dev/reference/apis/js-apis-promptAction.md @huaweimaxuchu @HelloCrease @niulihua @tomatodevboy -zh-cn/application-dev/reference/apis/js-apis-reminderAgentManager.md @wangwenli_wolf @ningningW @tangtiantian2021 @nan-xiansen -zh-cn/application-dev/reference/apis/js-apis-resourceschedule-backgroundTaskManager.md @wangwenli_wolf @ningningW @tangtiantian2021 @nan-xiansen -zh-cn/application-dev/reference/apis/js-apis-resourceschedule-deviceUsageStatistics.md @wangwenli_wolf @ningningW @tangtiantian2021 @nan-xiansen -zh-cn/application-dev/reference/apis/js-apis-resourceschedule-workScheduler.md @wangwenli_wolf @ningningW @tangtiantian2021 @nan-xiansen +zh-cn/application-dev/reference/apis/js-apis-reminderAgentManager.md @chenmingJay @ningningW @tangtiantian2021 @nan-xiansen @iceice1001 +zh-cn/application-dev/reference/apis/js-apis-resourceschedule-backgroundTaskManager.md @chenmingJay @ningningW @tangtiantian2021 @nan-xiansen @iceice1001 +zh-cn/application-dev/reference/apis/js-apis-resourceschedule-deviceUsageStatistics.md @chenmingJay @ningningW @tangtiantian2021 @nan-xiansen @iceice1001 +zh-cn/application-dev/reference/apis/js-apis-resourceschedule-workScheduler.md @chenmingJay @ningningW @tangtiantian2021 @nan-xiansen @iceice1001 zh-cn/application-dev/reference/apis/js-apis-stationary.md @mayunteng_1 @ningningW @cococoler @alien0208 zh-cn/application-dev/reference/apis/js-apis-system-capability.md taiyipei taiyipei BlackStone zh-cn/application-dev/reference/apis/js-apis-system-parameterV9.md @mupceet @zengyawen @handyohos @nan-xiansen diff --git a/README_zh.md b/README_zh.md index 386fa1d7449553f92f399839d947a0dacd4e18b8..6e71a0abd9fba5cbe4b4de47c77437d3a851aa45 100644 --- a/README_zh.md +++ b/README_zh.md @@ -18,7 +18,7 @@ - master:最新开发版本。 - - OpenHarmony 3.2 Beta3版本:点击[此处](zh-cn/release-notes/OpenHarmony-v3.2-beta3.md)了解版本详情。 + - OpenHarmony 3.2 Beta5版本:点击[此处](zh-cn/release-notes/OpenHarmony-v3.2-beta5.md)了解版本详情。 - OpenHarmony 3.1 Release版本:点击[此处](zh-cn/release-notes/OpenHarmony-v3.1-release.md)了解版本详情。 diff --git a/en/application-dev/Readme-EN.md b/en/application-dev/Readme-EN.md index 8484845fb47d82c6de79664c00d0d1c234b0e167..a627e1116a792c5d4fc885ae01aa6ccb172b7b1d 100644 --- a/en/application-dev/Readme-EN.md +++ b/en/application-dev/Readme-EN.md @@ -65,12 +65,13 @@ - [Internationalization](internationalization/Readme-EN.md) - [Application Test](application-test/Readme-EN.md) - [OpenHarmony IDL Specifications and User Guide](IDL/idl-guidelines.md) - - [Using Native APIs in Application Projects](napi/Readme-EN.md) + - [Native APIs](napi/Readme-EN.md) - Tools - - [DevEco Studio (OpenHarmony) User Guide](quick-start/deveco-studio-user-guide-for-openharmony.md) + - [DevEco Studio (OpenHarmony) User Guide](quick-start/deveco-studio-user-guide-for-openharmony.md) + - [Debugging Tools](tools/Readme-EN.md) - Hands-On Tutorials - - [Samples](https://gitee.com/openharmony/applications_app_samples/blob/master/README.md) - - [Codelabs](https://gitee.com/openharmony/codelabs) + - [Samples](https://gitee.com/openharmony/applications_app_samples/blob/master/README.md) + - [Codelabs](https://gitee.com/openharmony/codelabs) - API References - [SystemCapability](reference/syscap.md) - [SystemCapability List](reference/syscap-list.md) diff --git a/en/application-dev/application-models/ability-startup-with-implicit-want.md b/en/application-dev/application-models/ability-startup-with-implicit-want.md index ab116c430cb7b248b947ccbee46cf5ac932f9fc9..f163b035c7b759fab03ee3fcd455e3dcb77b5515 100644 --- a/en/application-dev/application-models/ability-startup-with-implicit-want.md +++ b/en/application-dev/application-models/ability-startup-with-implicit-want.md @@ -60,13 +60,7 @@ The **module.json5** of a browser application is as follows: } catch (error) { console.info(`explicit start ability failed with ${error.code}`) } - let context = getContext(this) as common.UIAbilityContext; - await context.startAbility(want) - console.info(`explicit start ability succeed`) - } catch (error) { - console.info(`explicit start ability failed with ${error.code}`) - } - } + } ``` The matching process is as follows: diff --git a/en/application-dev/database/database-datashare-guidelines.md b/en/application-dev/database/database-datashare-guidelines.md index 654f099dad350ce1158c2bfd3f5b01b39d781d4b..a43407aa5643f6a7d0265ca88c6234120e904d72 100644 --- a/en/application-dev/database/database-datashare-guidelines.md +++ b/en/application-dev/database/database-datashare-guidelines.md @@ -34,11 +34,9 @@ There are two roles in **DataShare**: - Data provider: adds, deletes, modifies, and queries data, opens files, and shares data. - Data consumer: accesses the data provided by the provider using **DataShareHelper**. -Examples are given below. - ### Data Provider Application Development (Only for System Applications) -[DataShareExtensionAbility](../reference/apis/js-apis-application-dataShareExtensionAbility.md) provides the following APIs. You can override the APIs as required. +[DataShareExtensionAbility](../reference/apis/js-apis-application-dataShareExtensionAbility.md) provides the following APIs. You can override these APIs as required. - **onCreate** @@ -82,14 +80,14 @@ Before implementing a **DataShare** service, create a **DataShareExtensionAbilit ```ts import Extension from '@ohos.application.DataShareExtensionAbility'; - import rdb from '@ohos.data.rdb'; + import rdb from '@ohos.data.relationalStore'; import fileIo from '@ohos.fileio'; import dataSharePredicates from '@ohos.data.dataSharePredicates'; ``` -4. Override the **DataShareExtensionAbility** APIs based on actual requirements. For example, if the data provider provides only data query, override only **query()**. +5. Override **DataShareExtensionAbility** APIs based on actual requirements. For example, if the data provider provides only data query, override only **query()**. -5. Implement the data provider services. For example, implement data storage of the data provider by using a database, reading and writing files, or accessing the network. +6. Implement the data provider services. For example, implement data storage of the data provider by using a database, reading and writing files, or accessing the network. ```ts const DB_NAME = "DB00.db"; @@ -97,28 +95,31 @@ Before implementing a **DataShare** service, create a **DataShareExtensionAbilit const DDL_TBL_CREATE = "CREATE TABLE IF NOT EXISTS " + TBL_NAME + " (id INTEGER PRIMARY KEY AUTOINCREMENT, name TEXT, age INTEGER, isStudent BOOLEAN, Binary BINARY)"; - + let rdbStore; let result; - + export default class DataShareExtAbility extends Extension { private rdbStore_; - + // Override onCreate(). onCreate(want, callback) { - result = this.context.cacheDir + '/datashare.txt' + result = this.context.cacheDir + '/datashare.txt'; // Create an RDB store. - rdb.getRdbStore(this.context, { - name: DB_NAME - }, 1, function (err, data) { - rdbStore = data; - rdbStore.executeSql(DDL_TBL_CREATE, [], function (err) { - console.log('DataShareExtAbility onCreate, executeSql done err:' + JSON.stringify(err)); + rdb.getRdbStore(this.context, { + name: DB_NAME, + securityLevel: rdb.SecurityLevel.S1 + }, function (err, data) { + rdbStore = data; + rdbStore.executeSql(DDL_TBL_CREATE, [], function (err) { + console.log('DataShareExtAbility onCreate, executeSql done err:' + JSON.stringify(err)); }); - callback(); + if (callbakc) { + callback(); + } }); } - + // Override query(). query(uri, predicates, columns, callback) { if (predicates == null || predicates == undefined) { @@ -142,17 +143,14 @@ Before implementing a **DataShare** service, create a **DataShareExtensionAbilit }; ``` - - -6. Define **DataShareExtensionAbility** in **module.json5**. +7. Define **DataShareExtensionAbility** in **module.json5**. - | Field | Description | - | --------- | ------------------------------------------------------------ | - | "name" | Ability name, corresponding to the **ExtensionAbility** class name derived from **Ability**. | - | "type" | Ability type. The value is **dataShare**, indicating the development is based on the **datashare** template. | - | "uri" | URI used for communication. It is the unique identifier for the data consumer to connect to the provider. | - | "visible" | Whether it is visible to other applications. Data sharing is allowed only when the value is **true**. | - | | | + | Field| Description | + | ------------ | ------------------------------------------------------------ | + | "name" | Ability name, corresponding to the **ExtensionAbility** class name derived from **Ability**. | + | "type" | Ability type. The value is **dataShare**, indicating the development is based on the **datashare** template.| + | "uri" | URI used for communication. It is the unique identifier for the data consumer to connect to the provider. | + | "visible" | Whether it is visible to other applications. Data sharing is allowed only when the value is **true**.| **module.json5 example** @@ -170,8 +168,6 @@ Before implementing a **DataShare** service, create a **DataShareExtensionAbilit ] ``` - - ### Data Consumer Application Development 1. Import dependencies. @@ -212,7 +208,7 @@ Before implementing a **DataShare** service, create a **DataShareExtensionAbilit let valuesBucket = { "name": "ZhangSan", "age": 21, "isStudent": false, "Binary": new Uint8Array([1, 2, 3]) }; let updateBucket = { "name": "LiSi", "age": 18, "isStudent": true, "Binary": new Uint8Array([1, 2, 3]) }; let predicates = new dataSharePredicates.DataSharePredicates(); - let valArray = new Array("*"); + let valArray = ['*']; // Insert a piece of data. dsHelper.insert(dseUri, valuesBucket, (err, data) => { console.log("dsHelper insert result: " + data); diff --git a/en/application-dev/database/database-relational-guidelines.md b/en/application-dev/database/database-relational-guidelines.md index df633d8449281b12557bb3d39f333f97148af1a4..4d54d3de270712d876971053eebbce8665561ec9 100644 --- a/en/application-dev/database/database-relational-guidelines.md +++ b/en/application-dev/database/database-relational-guidelines.md @@ -142,7 +142,7 @@ You can obtain the distributed table name for a remote device based on the local | Class | API | Description | | ---------- | ------------------------------------------------------------ | ------------------------------------------------------------ | -| RdbStore | sync(mode: SyncMode, predicates: RdbPredicates): Promise\> | Synchronizes data between devices. This API uses a promise to return the result.
- **mode**: synchronization mode. **SYNC_MODE_PUSH** means to push data from the local device to a remote device. **SYNC_MODE_PULL** means to pull data from a remote device to the local device.
- **predicates**: specifies the data and devices to synchronize.
- **string**: device ID.
- **number**: synchronization status of each device. The value **0** indicates a successful synchronization. Other values indicate a synchronization failure.| +| RdbStore | sync(mode: SyncMode, predicates: RdbPredicates): Promise\> | Synchronizes data between devices. This API uses a promise to return the result.
- **mode**: synchronization mode. **SYNC_MODE_PUSH** means to push data from the local device to a remote device. **SYNC_MODE_PULL** means to pull data from a remote device to the local device.
- **predicates**: specifies the data and devices to synchronize.
- **string**: device ID.
- **number**: synchronization status of each device. The value **0** indicates a successful synchronization. Other values indicate a synchronization failure.| **Registering an RDB Store Observer** @@ -180,7 +180,7 @@ You can obtain the distributed table name for a remote device based on the local ### Transaction -Table 15 Transaction APIs +**Table 15** Transaction APIs | Class | API | Description | | -------- | ----------------------- | --------------------------------- | @@ -202,44 +202,82 @@ Table 15 Transaction APIs ```js import data_rdb from '@ohos.data.relationalStore' - // Obtain the context. import featureAbility from '@ohos.ability.featureAbility' + + // Obtain the context. let context = featureAbility.getContext() - const CREATE_TABLE_TEST = "CREATE TABLE IF NOT EXISTS test (" + "id INTEGER PRIMARY KEY AUTOINCREMENT, " + "name TEXT NOT NULL, " + "age INTEGER, " + "salary REAL, " + "blobType BLOB)"; + const STORE_CONFIG = { + name: "RdbTest.db", + securityLevel: data_rdb.SecurityLevel.S1 + } - const STORE_CONFIG = { name: "RdbTest.db", - securityLevel: data_rdb.SecurityLevel.S1} + // Assume that the current RDB store version is 3. data_rdb.getRdbStore(context, STORE_CONFIG, function (err, rdbStore) { - rdbStore.executeSql(CREATE_TABLE_TEST) - console.info('create table done.') + // When an RDB store is created, the default version is 0. + if (rdbStore.version == 0) { + rdbStore.executeSql("CREATE TABLE IF NOT EXISTS student (id INTEGER PRIMARY KEY AUTOINCREMENT, score REAL);", null) + // Set the RDB store version. The input parameter must be an integer greater than 0. + rdbStore.version = 3 + } + + // When an app is updated to the current version, the RDB store needs to be updated from version 1 to version 2. + if (rdbStore.version != 3 && rdbStore.version == 1) { + // version = 1: table structure: student (id, age) => version = 2: table structure: student (id, age, score) + rdbStore.executeSql("ALTER TABLE student ADD COLUMN score REAL", null) + rdbStore.version = 2 + } + + // When an app is updated to the current version, the RDB store needs to be updated from version 2 to version 3. + if (rdbStore.version != 3 && rdbStore.version == 2) { + // version = 2: table structure: student (id, age, score) => version = 3: table structure: student (id, score) + rdbStore.executeSql("ALTER TABLE student DROP COLUMN age INTEGER", null) + rdbStore.version = 3 + } }) ``` Stage model: ```ts import data_rdb from '@ohos.data.relationalStore' - // Obtain the context. - import UIAbility from '@ohos.app.ability.UIAbility'; - let context = null + import UIAbility from '@ohos.app.ability.UIAbility' + class EntryAbility extends UIAbility { onWindowStageCreate(windowStage) { - context = this.context + const STORE_CONFIG = { + name: "rdbstore.db", + securityLevel: data_rdb.SecurityLevel.S1 + } + + // Assume that the current RDB store version is 3. + data_rdb.getRdbStore(this.context, STORE_CONFIG, function (err, rdbStore) { + // When an RDB store is created, the default version is 0. + if (rdbStore.version == 0) { + rdbStore.executeSql("CREATE TABLE IF NOT EXISTS student (id INTEGER PRIMARY KEY AUTOINCREMENT, score REAL);", null) + // Set the RDB store version. The input parameter must be an integer greater than 0. + rdbStore.version = 3 + } + + // When an app is updated to the current version, the RDB store needs to be updated from version 1 to version 2. + if (rdbStore.version != 3 && rdbStore.version == 1) { + // version = 1: table structure: student (id, age) => version = 2: table structure: student (id, age, score) + rdbStore.executeSql("ALTER TABLE student ADD COLUMN score REAL", null) + rdbStore.version = 2 + } + + // When an app is updated to the current version, the RDB store needs to be updated from version 2 to version 3. + if (rdbStore.version != 3 && rdbStore.version == 2) { + // version = 2: table structure: student (id, age, score) => version = 3: table structure: student (id, score) + rdbStore.executeSql("ALTER TABLE student DROP COLUMN age INTEGER", null) + rdbStore.version = 3 + } + }) } } - - const CREATE_TABLE_TEST = "CREATE TABLE IF NOT EXISTS test (" + "id INTEGER PRIMARY KEY AUTOINCREMENT, " + "name TEXT NOT NULL, " + "age INTEGER, " + "salary REAL, " + "blobType BLOB)"; - - const STORE_CONFIG = { name: "rdbstore.db", - securityLevel: data_rdb.SecurityLevel.S1} - data_rdb.getRdbStore(context, STORE_CONFIG, function (err, rdbStore) { - rdbStore.executeSql(CREATE_TABLE_TEST) - console.info('create table done.') - }) ``` 2. Insert data. - (1) Create a **ValuesBucket** to store the data you need to insert. + (1) Create a **ValuesBucket** instance to store the data you need to insert. (2) Call the **insert()** method to insert data into the RDB store. @@ -384,14 +422,13 @@ Table 15 Transaction APIs 8. Query data of a remote device. - (1) Construct a predicate object for querying distributed tables, and specify the remote distributed table name and the remote device. (2) Call the resultSet() API to obtain the result. The sample code is as follows: - - ```js + + ```js let rdbPredicate = new data_rdb.RdbPredicates('employee') predicates.greaterThan("id", 0) let promiseQuery = rdbStore.remoteQuery('12345678abcde', 'employee', rdbPredicate) @@ -406,31 +443,32 @@ Table 15 Transaction APIs }).catch((err) => { console.info("failed to remoteQuery, err: " + err) }) - ``` - + ``` + 9. Back up and restore an RDB store. (1) Back up the current RDB store. - The sample code is as follows: + The sample code is as follows: - ```js + ```js let promiseBackup = rdbStore.backup("dbBackup.db") promiseBackup.then(() => { - console.info('Backup success.') + console.info('Backup success.') }).catch((err) => { - console.info('Backup failed, err: ' + err) + console.info('Backup failed, err: ' + err) }) - ``` - (2) Restore the RDB store using the backup file. + ``` - The sample code is as follows: + (2) Restore the RDB store using the backup file. - ```js + The sample code is as follows: + + ```js let promiseRestore = rdbStore.restore("dbBackup.db") promiseRestore.then(() => { - console.info('Restore success.') + console.info('Restore success.') }).catch((err) => { - console.info('Restore failed, err: ' + err) + console.info('Restore failed, err: ' + err) }) - ``` + ``` diff --git a/en/application-dev/device/usb-guidelines.md b/en/application-dev/device/usb-guidelines.md index 56e63cd47e1267a1acb08b240162dd96396c2215..bb8785c26d8ba1f13d174da1c1fa3f8393ca6df4 100644 --- a/en/application-dev/device/usb-guidelines.md +++ b/en/application-dev/device/usb-guidelines.md @@ -20,13 +20,13 @@ The following table lists the USB APIs currently available. For details, see the | getDevices(): Array> | Obtains the list of USB devices connected to the USB host. If no USB device is connected, an empty list is returned. | | setConfiguration(pipe: USBDevicePipe, config: USBConfig): number | Sets the USB device configuration. | | setInterface(pipe: USBDevicePipe, iface: USBInterface): number | Sets a USB interface. | -| claimInterface(pipe: USBDevicePipe, iface: USBInterface, force?: boolean): number | Claims a USB interface. | -| bulkTransfer(pipe: USBDevicePipe, endpoint: USBEndpoint, buffer: Uint8Array, timeout?: number): Promise\ | Performs bulk transfer. | +| claimInterface(pipe: USBDevicePipe, iface: USBInterface, force ?: boolean): number | Claims a USB interface. | +| bulkTransfer(pipe: USBDevicePipe, endpoint: USBEndpoint, buffer: Uint8Array, timeout ?: number): Promise\ | Performs bulk transfer. | | closePipe(pipe: USBDevicePipe): number | Closes a USB device pipe. | | releaseInterface(pipe: USBDevicePipe, iface: USBInterface): number | Releases a USB interface. | | getFileDescriptor(pipe: USBDevicePipe): number | Obtains the file descriptor. | | getRawDescriptor(pipe: USBDevicePipe): Uint8Array | Obtains the raw USB descriptor. | -| controlTransfer(pipe: USBDevicePipe, contrlparam: USBControlParams, timeout?: number): Promise\ | Performs control transfer. | +| controlTransfer(pipe: USBDevicePipe, controlparam: USBControlParams, timeout ?: number): Promise<number> | Performs control transfer. | ## How to Develop @@ -51,7 +51,7 @@ You can set a USB device as the USB host to connect to other USB devices for dat vendorId: 7531, productId: 2, clazz: 9, - subclass: 0, + subClass: 0, protocol: 1, devAddress: 1, busNum: 1, @@ -68,7 +68,7 @@ You can set a USB device as the USB host to connect to other USB devices for dat id: 0, protocol: 0, clazz: 9, - subclass: 0, + subClass: 0, alternateSetting: 0, name: "1-1", endpoints: [ @@ -93,7 +93,7 @@ You can set a USB device as the USB host to connect to other USB devices for dat ``` -2. Obtain the device operation permissions. +2. Obtain the device operation permissions. ```js let deviceName = deviceList[0].name; @@ -105,11 +105,11 @@ You can set a USB device as the USB host to connect to other USB devices for dat }); ``` -3. Open the device. +3. Open the device. ```js // Open the device, and obtain the USB device pipe for data transfer. - let pipe = usb.connectDevice(deviceList[0]); + let interface1 = deviceList[0].configs[0].interfaces[0]; /* Claim the corresponding interface from deviceList. interface1 must be one present in the device configuration. @@ -117,14 +117,16 @@ You can set a USB device as the USB host to connect to other USB devices for dat usb.claimInterface(pipe, interface1, true); ``` -4. Perform data transfer. +4. Perform data transfer. ```js /* Read data. Select the corresponding RX endpoint from deviceList for data transfer. (endpoint.direction == 0x80); dataUint8Array indicates the data to read. The data type is Uint8Array. */ - + let inEndpoint = interface1.endpoints[2]; + let outEndpoint = interface1.endpoints[1]; + let dataUint8Array = new Uint8Array(1024); usb.bulkTransfer(pipe, inEndpoint, dataUint8Array, 15000).then(dataLength => { if (dataLength >= 0) { console.info("usb readData result Length : " + dataLength); @@ -137,7 +139,7 @@ You can set a USB device as the USB host to connect to other USB devices for dat console.info("usb readData error : " + JSON.stringify(error)); }); // Send data. Select the corresponding TX endpoint from deviceList for data transfer. (endpoint.direction == 0) - usb.bulkTransfer(pipe, endpoint, dataUint8Array, 15000).then(dataLength => { + usb.bulkTransfer(pipe, outEndpoint, dataUint8Array, 15000).then(dataLength => { if (dataLength >= 0) { console.info("usb writeData result write length : " + dataLength); } else { diff --git a/en/application-dev/dfx/Readme-EN.md b/en/application-dev/dfx/Readme-EN.md index b8a4496e09420b3a7557e5c8b8996deaf14ce1c9..4ed700a49b94ef0c296ec27eaf9c5cde96575234 100644 --- a/en/application-dev/dfx/Readme-EN.md +++ b/en/application-dev/dfx/Readme-EN.md @@ -1,8 +1,13 @@ # DFX -- [Development of Application Event Logging](hiappevent-guidelines.md) -- [Development of Performance Tracing](hitracemeter-guidelines.md) -- [Development of Distributed Call Chain Tracing](hitracechain-guidelines.md) +- Application Event Logging + - [Development of Application Event Logging](hiappevent-guidelines.md) +- Distributed Call Chain Tracing + - [Development of Distributed Call Chain Tracing](hitracechain-guidelines.md) +- HiLog + - [HiLog Development](hilog-guidelines.md) +- Performance Tracing + - [Development of Performance Tracing](hitracemeter-guidelines.md) - Error Management - [Development of Error Manager](errormanager-guidelines.md) - [Development of Application Recovery](apprecovery-guidelines.md) diff --git a/en/application-dev/dfx/hilog-guidelines.md b/en/application-dev/dfx/hilog-guidelines.md new file mode 100644 index 0000000000000000000000000000000000000000..f2a2fc7debf9b924d1b8db8894316adc6a826876 --- /dev/null +++ b/en/application-dev/dfx/hilog-guidelines.md @@ -0,0 +1,37 @@ +# HiLog Development +## Introduction +HiLog is the log system of OpenHarmony that provides logging for the system framework, services, and applications to record information on user operations and system running status. +> **NOTE** +> This development guide is applicable only when you use Native APIs for application development. For details about the APIs, see [HiLog Native API Reference](https://gitee.com/openharmony-sig/interface_native_header/blob/master/en/native_sdk/dfx/log.h). + +## Available APIs +| API/Macro| Description| +| -------- | -------- | +| int OH_LOG_Print(LogType type, LogLevel level, unsigned int domain, const char *tag, const char *fmt, ...) | Outputs logs based on the specified log type, log level, service domain, log tag, and variable parameters determined by the format specifier and privacy identifier in the printf format.| +| #define OH_LOG_DEBUG(type, ...) ((void)OH_LOG_Print((type), LOG_DEBUG, LOG_DOMAIN, LOG_TAG, \_*VA*ARGS__))| Outputs DEBUG logs. This is a function-like macro.| +| #define OH_LOG_INFO(type, ...) ((void)OH_LOG_Print((type), LOG_INFO, LOG_DOMAIN, LOG_TAG, \_*VA*ARGS__)) | Outputs INFO logs. This is a function-like macro.| +| #define OH_LOG_WARN(type, ...) ((void)OH_LOG_Print((type), LOG_WARN, LOG_DOMAIN, LOG_TAG, \_*VA*ARGS__)) | Outputs WARN logs. This is a function-like macro.| +| #define OH_LOG_ERROR(type, ...) ((void)OH_LOG_Print((type), LOG_ERROR, LOG_DOMAIN, LOG_TAG, \_*VA*ARGS__)) | Outputs ERROR logs. This is a function-like macro.| +| #define OH_LOG_FATAL(type, ...) ((void)OH_LOG_Print((type), LOG_FATAL, LOG_DOMAIN, LOG_TAG, \_*VA*ARGS__)) | Outputs FATAL logs. This is a function-like macro.| +| bool OH_LOG_IsLoggable(unsigned int domain, const char *tag, LogLevel level) | Checks whether logs of the specified service domain, tag, and level can be printed.
Input arguments:
- **domain**: service domain.
- **tag**: log tag.
- **level**: log level.
Output arguments: none
Return value: Returns **true** if the specified logs can be printed; returns **false** otherwise.| + +## Development Examples +1. Include the **hilog** header file in the source file. +```c++ +#include "hilog/log.h" +``` +2. Define the **domain** and **tag** macros. +```c++ +#undef LOG_DOMAIN +#undef LOG_TAG +#define LOG_DOMAIN 0x3200 // Service domain. The value ranges from 0xD0000 to 0xDFFFF. +#define LOG_TAG "MY_TAG" +``` +3. Print logs. For example, to print INFO logs, use the following code: +```c++ +OH_LOG_INFO(LOG_APP, "Failed to visit %{private}s, reason:%{public}d.", url, errno); +``` +4. View the output log information. +``` +12-11 12:21:47.579 2695 2695 I A03200/MY_TAG: Failed to visit , reason:11. +``` diff --git a/en/application-dev/dfx/hitracechain-guidelines.md b/en/application-dev/dfx/hitracechain-guidelines.md index affd260b0503f3c4f4c4b748d5911d94f7fef9e3..37ca65ece66a124eb8a72f1fd865f30d26024627 100644 --- a/en/application-dev/dfx/hitracechain-guidelines.md +++ b/en/application-dev/dfx/hitracechain-guidelines.md @@ -2,9 +2,7 @@ ## Introduction -The hiTraceChain module provides APIs to implement call chain tracing throughout a service process. This can help you quickly obtain the run log for the call chain of a specified service process and locate faults in inter-device, inter-process, or inter-thread communications. - -hiTraceChain is a lightweight implementation of the cloud-based distributed call chain tracing. It allows applications to trace cross-thread, cross-process, and cross-device service calls. The hiTraceChain module generates a unique **chainId** for a service process and passes it to various information (including application events, system time, and logs) specific to the service process. During debugging and fault locating, you can use the unique **chainId** to quickly correlate various information related to the service process. +hiTraceChain is a lightweight implementation of the cloud-based distributed call chain tracing. It allows applications to trace cross-thread, cross-process, and cross-device service calls. The hiTraceChain module generates a unique **chainId** for a service process and passes it to various information (including application events, system time, and logs) specific to the service process. During debugging and fault locating, you can use the unique **chainId** to quickly correlate various information related to the service process. The hiTraceChain module provides APIs to implement call chain tracing throughout a service process. This can help you quickly obtain the run log for the call chain of a specified service process and locate faults in inter-device, inter-process, or inter-thread communications. ## Basic Concepts @@ -18,47 +16,106 @@ The APIs for distributed call chain tracing are provided by the **hiTraceChain** **APIs for distributed call chain tracing** -| API| Return Value| Description| -| ------------------------------------------------------------------------------------------------------------------- | -------------- | ------------ | -| hiTraceChain.begin(name: string, flags: number = HiTraceFlag.DEFAULT) | HiTraceId | Starts call chain tracing.| -| hiTraceChain.tracepoint(mode: HiTraceCommunicationMode, type: HiTraceTracepointType, id: HiTraceId, msg?: string) | void | Creates a trace point.| -| hiTraceChain.end(id: HiTraceId) | void | Stops call chain tracing.| +| API | Return Value | Description | +| ------------------------------------------------------------------------------------------------------------------- | -------------- | ------------ | +| hiTraceChain.begin(name: string, flags: number = HiTraceFlag.DEFAULT) | HiTraceId | Starts call chain tracing. | +| hiTraceChain.end(id: HiTraceId) | void | Stops call chain tracing. | ## How to Develop -In this example, distributed call chain tracing begins when the application startup execution page is loaded and stops when the service usage is completed. - -1. Create a JS application project. In the displayed **Project** window, choose **entry** > **src** > **main** > **js** > **default** > **pages** > **index**, and double-click **index.js**. Add the code to implement call chain tracing upon page loading. The sample code is as follows: - - ``` - import hiTraceChain from '@ohos.hiTraceChain' - - export default { - data: { - title: "" - }, - onInit() { - this.title = this.$t('strings.world'); - - // 1. Enable distributed call chain tracing. - let asyncTraceId = hiTraceChain.begin("business", hiTraceChain.HiTraceFlag.INCLUDE_ASYNC | hiTraceChain.HiTraceFlag.DONOT_CREATE_SPAN); - - // 2. Start the service process. - console.log(`business start`); - - // 3. Add a trace point. - hiTraceChain.tracepoint(hiTraceChain.HiTraceCommunicationMode.THREAD, hiTraceChain.HiTraceTracepointType.SS, asyncTraceId, "Just an example"); - - // 4. Keep the service process running. - console.log(`business running`); - - // 5. End the service process. - console.log(`business end`); - - // 6. Stop call chain tracing. - hiTraceChain.end(asyncTraceId); - } - } +The following example illustrates how to simulate one-time [system event logging](../reference/apis/js-apis-hisysevent.md) to implement cross-thread distributed call chain tracing in a single HAP service. + +1. Create an eTS application project. In the displayed **Project** window, choose **entry** > **src** > **main** > **ets** > **pages** > **index.ets**, and double-click **index.ets**. Then, add a button to trigger system event logging. + + ```ts + import hiTraceChain from '@ohos.hiTraceChain'; + import hiSysEvent from '@ohos.hiSysEvent'; + + @Entry + @Component + struct Index { + @State message: string = 'Start writing system event'; + + build() { + Row() { + Column() { + Button(this.message) + .fontSize(20) + .margin(5) + .width(350) + .height(60) + .fontWeight(FontWeight.Bold) + .onClick(() => { + try { + // Enable distributed call chain tracing before the service starts. + let traceId = hiTraceChain.begin("Write a new system event", hiTraceChain.HiTraceFlag.INCLUDE_ASYNC); + // Implement one-time system event logging when the service starts. + hiSysEvent.write({ + domain: "RELIABILITY", + name: "STACK", + eventType: hiSysEvent.EventType.FAULT, + params: { + PID: 1, + UID: 1, + PACKAGE_NAME: "com.demo.hitracechain", + PROCESS_NAME: "hitracechaindemo", + MSG: "no msg." + } + }).then((val) => { + console.info(`write result is ${val}`); + // Disable distributed call chain tracing when the service ends. + hiTraceChain.end(traceId); + }).catch((err) => { + console.error(`error message is ${err.message}`); + }); + } catch (err) { + console.error(`error message is ${err.message}`); + } + }) + } + .width('100%') + } + .height('100%') + } + } + ``` + +2. Touch the run button on the IDE to run the project. Then, touch the **Start writing system event** button on the application UI to trigger system event logging. + +3. View the information printed in the **Log** window. You can use **.*: \[([0-9a-zA-Z]{15}),.*].*** to access distributed call chain tracing information specific to the HAP service. The process ID of the HAP service is **8801**. Two threads, whose IDs are **8801** and **8819**, are involved in the system event logging. Based on the chain ID **edcfa53017a88e3**, you can then effectively trace the log information of the two threads. + ```text + 07-05 19:50:47.690 8801-8801/com.demo.hitracechain I C02d03/HiTraceC: [edcfa53017a88e3, 0, 0] HiTraceBegin name:Write a new system event flags:0x01. + 07-05 19:50:47.690 8801-8801/com.demo.hitracechain D C02d03/HITRACE_UTIL_NAPI: [edcfa53017a88e3, 0, 0] Native2Js: chainId is edcfa53017a88e3. + 07-05 19:50:47.690 8801-8801/com.demo.hitracechain D C02d03/HITRACE_UTIL_NAPI: [edcfa53017a88e3, 0, 0] Native2Js: spanId is 0. + 07-05 19:50:47.690 8801-8801/com.demo.hitracechain D C02d03/HITRACE_UTIL_NAPI: [edcfa53017a88e3, 0, 0] Native2Js: parentSpanId is 0. + 07-05 19:50:47.690 8801-8801/com.demo.hitracechain D C02d03/HITRACE_UTIL_NAPI: [edcfa53017a88e3, 0, 0] Native2Js: flags is 1. + 07-05 19:50:47.690 8801-8801/com.demo.hitracechain D C02d08/NAPI_HISYSEVENT_UTIL: [edcfa53017a88e3, 0, 0] domain is RELIABILITY. + 07-05 19:50:47.690 8801-8801/com.demo.hitracechain D C02d08/NAPI_HISYSEVENT_UTIL: [edcfa53017a88e3, 0, 0] name is STACK. + 07-05 19:50:47.690 8801-8801/com.demo.hitracechain D C02d08/NAPI_HISYSEVENT_UTIL: [edcfa53017a88e3, 0, 0] eventType is 1. + 07-05 19:50:47.690 8801-8801/com.demo.hitracechain E C02d08/NAPI_HISYSEVENT_UTIL: [edcfa53017a88e3, 0, 0] napi value type not match: valueType=3, typeName=6. + 07-05 19:50:47.690 8801-8801/com.demo.hitracechain E C02d08/NAPI_HISYSEVENT_UTIL: [edcfa53017a88e3, 0, 0] napi value type not match: valueType=3, typeName=6. + 07-05 19:50:47.690 8801-8801/com.demo.hitracechain E C02d08/NAPI_HISYSEVENT_UTIL: [edcfa53017a88e3, 0, 0] napi value type not match: valueType=4, typeName=6. + 07-05 19:50:47.690 8801-8801/com.demo.hitracechain E C02d08/NAPI_HISYSEVENT_UTIL: [edcfa53017a88e3, 0, 0] napi value type not match: valueType=4, typeName=6. + 07-05 19:50:47.690 8801-8801/com.demo.hitracechain E C02d08/NAPI_HISYSEVENT_UTIL: [edcfa53017a88e3, 0, 0] napi value type not match: valueType=4, typeName=6. + 07-05 19:50:47.690 8801-8801/com.demo.hitracechain D C02d08/NAPI_HISYSEVENT_UTIL: [edcfa53017a88e3, 0, 0] create napi value of string type, value is JSHiSysEventWrite. + 07-05 19:50:47.690 8801-8801/com.demo.hitracechain I C03900/Ace: [edcfa53017a88e3, 0, 0] [flutter_ace_view.cpp(operator())-(0)] Mark 0 id Touch Event Processed + 07-05 19:50:47.690 8801-8801/com.demo.hitracechain D C02800/ClientMsgHandler: [edcfa53017a88e3, 0, 0] in OnDispatchEventProcessed, enter + 07-05 19:50:47.690 8801-8801/com.demo.hitracechain D C02800/ANRHandler: [edcfa53017a88e3, 0, 0] in SetLastProcessedEventId, enter + 07-05 19:50:47.690 8801-8819/com.demo.hitracechain D C02d08/HISYSEVENT: [edcfa53017a88e3, 0, 0] size=312, sysevent={"domain_":"RELIABILITY","name_":"STACK","type_":1,"time_":47591447690,"tz_":"+0000","pid_":8801,"tid_":8819,"uid_":20010045,"traceid_":"edcfa53017a88e3","spanid_":"0","pspanid_":"0","trace_flag_":1,"UID":1,"PID":1,"MSG":"no msg.","PROCESS_NAME":"hitracechaindemo","PACKAGE_NAME":"com.demo.hitracechain"} + 07-05 19:50:47.690 8801-8801/com.demo.hitracechain D C02800/ANRHandler: [edcfa53017a88e3, 0, 0] in SetLastProcessedEventId, Processed event type:0, id:831, actionTime:6694499314, currentTime:6694501330, timeoutTime:4997984 + 07-05 19:50:47.691 8801-8801/com.demo.hitracechain D C02800/ANRHandler: [edcfa53017a88e3, 0, 0] in SetLastProcessedEventId, leave + 07-05 19:50:47.691 8801-8801/com.demo.hitracechain D C02800/ClientMsgHandler: [edcfa53017a88e3, 0, 0] in OnDispatchEventProcessed, leave + 07-05 19:50:47.691 8801-8819/com.demo.hitracechain D C02d08/HISYSEVENT: [edcfa53017a88e3, 0, 0] reset send buffer size old=245760, new=524288 + 07-05 19:50:47.691 8801-8819/com.demo.hitracechain D C02d08/HISYSEVENT: [edcfa53017a88e3, 0, 0] HiSysEvent send data successful + 07-05 19:50:47.691 8801-8801/com.demo.hitracechain D C02d08/NAPI_HISYSEVENT_UTIL: [edcfa53017a88e3, 0, 0] create napi value of int32 type, value is 0. + 07-05 19:50:47.691 8801-8801/com.demo.hitracechain E A0fefe/JsApp: [edcfa53017a88e3, 399db38, 0] write result is 0 + 07-05 19:50:47.691 8801-8801/com.demo.hitracechain D C02d03/HITRACE_UTIL_NAPI: [edcfa53017a88e3, 399db38, 0] Js2Native: chainId is edcfa53017a88e3. + 07-05 19:50:47.691 8801-8801/com.demo.hitracechain D C02d03/HITRACE_UTIL_NAPI: [edcfa53017a88e3, 399db38, 0] Js2Native: spanId is 0. + 07-05 19:50:47.691 8801-8801/com.demo.hitracechain D C02d03/HITRACE_UTIL_NAPI: [edcfa53017a88e3, 399db38, 0] Js2Native: parentSpanId is 0. + 07-05 19:50:47.691 8801-8801/com.demo.hitracechain D C02d03/HITRACE_UTIL_NAPI: [edcfa53017a88e3, 399db38, 0] Js2Native: flags is 1. + 07-05 19:50:47.691 8801-8801/com.demo.hitracechain I C02d03/HiTraceC: [edcfa53017a88e3, 399db38, 0] HiTraceEnd. ``` -2. Click the run button on the application page. Then, you'll obtain the log information for service analysis. +## About Cross-Process/Cross-Device Distributed Call Chain Tracing + +Cross-process/cross-device distributed call chain tracing depends on the NAPI implementation of the corresponding service APIs of each OpenHarmony module. For details, see the [HiTraceChain Development](../../device-dev/subsystems/subsys-dfx-hitracechain.md). diff --git a/en/application-dev/file-management/filepicker-guidelines.md b/en/application-dev/file-management/filepicker-guidelines.md index 8fcf96b2219151a9c197cd1f6bc2e738775646b7..f320f89d82ed0683b0057264430ee090fdd02974 100644 --- a/en/application-dev/file-management/filepicker-guidelines.md +++ b/en/application-dev/file-management/filepicker-guidelines.md @@ -33,7 +33,7 @@ ArkTS sample code: globalThis.context.startAbilityForResult( { bundleName: "com.ohos.filepicker", - abilityName: "EntryAbility", + abilityName: "MainAbility", parameters: { 'startMode': 'choose', //choose or save } @@ -45,7 +45,7 @@ globalThis.context.startAbilityForResult( globalThis.context.startAbilityForResult( { bundleName: "com.ohos.filepicker", - abilityName: "EntryAbility", + abilityName: "MainAbility", parameters: { 'startMode': 'save', //choose or save 'saveFile': 'test.jpg', diff --git a/en/application-dev/media/avplayer-playback.md b/en/application-dev/media/avplayer-playback.md new file mode 100644 index 0000000000000000000000000000000000000000..270081373fb500877ca4352366982b66f72bc09a --- /dev/null +++ b/en/application-dev/media/avplayer-playback.md @@ -0,0 +1,507 @@ +# AVPlayer Development + +## Introduction + +The AVPlayer converts audio or video resources into audible analog signals or renderable images and plays the signals or images using output devices. You can manage playback tasks on the AVPlayer. For example, you can control the playback (start/pause/stop/seek), set the volume, obtain track information, and release resources. + +## Working Principles + +The following figures show the [AVPlayer state](../reference/apis/js-apis-media.md#avplayerstate9) transition and interaction with external audio and video playback modules. + +**Figure 1** AVPlayer state transition + +![en-us_image_avplayer_state_machine](figures/en-us_image_avplayer_state_machine.png) + +**Figure 2** Interaction with external modules for audio playback + +![en-us_image_avplayer_audio](figures/en-us_image_avplayer_audio.png) + +**NOTE**: When an application calls the **AVPlayer** JS APIs at the JS interface layer to implement a feature, the framework layer parses the resources into audio data streams through the playback service of the player framework. The audio data streams are then decoded by software and output to the audio service of the audio framework. The audio framework outputs the audio data streams to the audio HDI at the hardware interface layer to implement audio playback. A complete audio playback process requires the cooperation of the application (application adaptation required), player framework, audio framework, and audio HDI (driver adaptation required). + +1. An application passes a URL into the **AVPlayer** JS API. +2. The playback service outputs the audio PCM data streams to the audio service, and the audio service outputs the data streams to the audio HDI. + + +**Figure 3** Interaction with external modules for video playback + +![en-us_image_avplayer_video](figures/en-us_image_avplayer_video.png) + +**NOTE**: When an application calls the **AVPlayer** JS APIs at the JS interface layer to implement a feature, the framework layer parses the resources into separate audio data streams and video data streams through the playback service of the player framework. The audio data streams are then decoded by software and output to the audio service of the audio framework. The audio framework outputs the audio data streams to the audio HDI at the hardware interface layer to implement audio playback. The video data streams are then decoded by hardware (recommended) or software and output to the renderer service of the graphic framework. The renderer service outputs the video data streams to the display HDI at the hardware interface layer. A complete video playback process requires the cooperation of the application (application adaptation required), XComponent, player framework, graphic framework, audio framework, display HDI (driver adaptation required), and audio HDI (driver adaptation required). + +1. An application obtains the surface ID from the XComponent. For details about the obtaining method, see [XComponent](../reference/arkui-ts/ts-basic-components-xcomponent.md). +2. The application passes a URL and the surface ID into the **AVPlayer** JS API. +3. The playback service outputs video elementary streams (ESs) to the codec HDI, which decodes the ESs to obtain video frames (NV12/NV21/RGBA). +4. The playback service outputs the audio PCM data streams to the audio service, and the audio service outputs the data streams to the audio HDI. +5. The playback service outputs video frames (NV12/NV21/RGBA) to the renderer service, and the renderer service outputs the video frames to the display HDI. + +## Compatibility + +Use the mainstream playback formats and resolutions, rather than custom ones to avoid playback failures, frame freezing, and artifacts. The system will not be affected by incompatibility issues. If such an issue occurs, you can exit stream playback. + +The table below lists the mainstream playback formats and resolutions. + +| Video Container Format| Description | Resolution | +| :----------: | :-----------------------------------------------: | :--------------------------------: | +| mp4 | Video format: H.264/MPEG-2/MPEG-4/H.263; audio format: AAC/MP3| Mainstream resolutions, such as 1080p, 720p, 480p, and 270p| +| mkv | Video format: H.264/MPEG-2/MPEG-4/H.263; audio format: AAC/MP3| Mainstream resolutions, such as 1080p, 720p, 480p, and 270p| +| ts | Video format: H.264/MPEG-2/MPEG-4; audio format: AAC/MP3 | Mainstream resolutions, such as 1080p, 720p, 480p, and 270p| +| webm | Video format: VP8; audio format: VORBIS | Mainstream resolutions, such as 1080p, 720p, 480p, and 270p| + +| Audio Container Format | Description | +| :----------: | :----------: | +| m4a | Audio format: AAC| +| aac | Audio format: AAC| +| mp3 | Audio format: MP3| +| ogg | Audio format: VORBIS | +| wav | Audio format: PCM | + +## How to Develop + +For details about the APIs, see the [AVPlayer APIs in the Media Class](../reference/apis/js-apis-media.md#avplayer9). + +### Full-Process Scenario + +The full playback process includes creating an instance, setting resources, setting a video window, preparing for playback, controlling playback, and resetting or releasing the resources. (During the preparation, you can obtain track information, volume, speed, focus mode, and zoom mode, and set bit rates. To control the playback, you can start, pause, and stop the playback, seek to a playback position, and set the volume.) + +1. Call [createAVPlayer()](../reference/apis/js-apis-media.md#mediacreateavplayer9) to create an **AVPlayer** instance. The AVPlayer is initialized to the [idle](#avplayer_state) state. + +2. Set the events to listen for, which will be used in the full-process scenario. + +3. Set the resource [URL](../reference/apis/js-apis-media.md#avplayer_attributes). When the AVPlayer enters the [initialized](#avplayer_state) state, you can set the [surface ID](../reference/apis/js-apis-media.md#avplayer_attributes) for the video window. For details about the supported specifications, see [AVPlayer Attributes](../reference/apis/js-apis-media.md#avplayer_attributes). + +4. Call [prepare()](../reference/apis/js-apis-media.md#avplayer_prepare) to switch the AVPlayer to the [prepared](#avplayer_state) state. + +5. Perform video playback control. For example, you can call [play()](../reference/apis/js-apis-media.md#avplayer_play), [pause()](../reference/apis/js-apis-media.md#avplayer_pause), [seek()](../reference/apis/js-apis-media.md#avplayer_seek), and [stop()](../reference/apis/js-apis-media.md#avplayer_stop) to control the playback. + +6. Call [reset()](../reference/apis/js-apis-media.md#avplayer_reset) to reset resources. The AVPlayer enters the [idle](#avplayer_state) state again, and you can change the resource [URL](../reference/apis/js-apis-media.md#avplayer_attributes). + +7. Call [release()](../reference/apis/js-apis-media.md#avplayer_release) to release the instance. The AVPlayer enters the [released](#avplayer_state) state and exits the playback. + +> **NOTE** +> +> When the AVPlayer is in the prepared, playing, paused, or completed state, the playback engine is working and a large amount of system running memory is occupied. If your application does not need to use the AVPlayer, call **reset()** or **release()** to release the resources. + +### Listening Events + +| Event Type | Description | +| ------------------------------------------------- | ------------------------------------------------------------ | +| stateChange | Mandatory; used to listen for player state changes. | +| error | Mandatory; used to listen for player error information. | +| durationUpdate | Used to listen for progress bar updates to refresh the resource duration. | +| timeUpdate | Used to listen for the current position of the progress bar to refresh the current time. | +| seekDone | Used to listen for the completion status of the **seek()** request. | +| speedDone | Used to listen for the completion status of the **setSpeed()** request. | +| volumeChange | Used to listen for the completion status of the **setVolume()** request. | +| bitrateDone | Used to listen for the completion status of the **setBitrate()** request, which is used for HTTP Live Streaming (HLS) streams. | +| availableBitrates | Used to listen for available bit rates of HLS resources. The available bit rates are provided for **setBitrate()**. | +| bufferingUpdate | Used to listen for network playback buffer information. | +| startRenderFrame | Used to listen for the rendering time of the first frame during video playback. | +| videoSizeChange | Used to listen for the width and height of video playback and adjust the window size and ratio.| +| audioInterrupt | Used to listen for audio interruption during video playback. This event is used together with the **audioInterruptMode** attribute.| + +### Full-Process Scenario API Example + +```js +import media from '@ohos.multimedia.media' +import audio from '@ohos.multimedia.audio'; +import fileIO from '@ohos.fileio' + +const TAG = 'AVPlayerDemo:' +export class AVPlayerDemo { + private count:number = 0 + private avPlayer + private surfaceID:string // The surfaceID parameter is used for screen display. Its value is obtained through the XComponent API. + + // Set AVPlayer callback functions. + setAVPlayerCallback() { + // Callback function for state changes. + this.avPlayer.on('stateChange', async (state, reason) => { + switch (state) { + case 'idle': // This state is reported upon a successful callback of reset(). + console.info(TAG + 'state idle called') + this.avPlayer.release() // Release the AVPlayer instance. + break; + case 'initialized': // This state is reported when the AVPlayer sets the playback source. + console.info(TAG + 'state initialized called ') + this.avPlayer.surfaceId = this.surfaceID // Set the image to be displayed. This setting is not required when a pure audio resource is to be played. + this.avPlayer.prepare().then(() => { + console.info(TAG+ 'prepare success'); + }, (err) => { + console.error(TAG + 'prepare filed,error message is :' + err.message) + }) + break; + case 'prepared': // This state is reported upon a successful callback of prepare(). + console.info(TAG + 'state prepared called') + this.avPlayer.play() // Call play() to start playback. + break; + case 'playing': // This state is reported upon a successful callback of play(). + console.info(TAG + 'state playing called') + if (this.count == 0) { + this.avPlayer.pause() // Call pause() to pause the playback. + } else { + this.avPlayer.seek(10000, media.SeekMode.SEEK_PREV_SYNC) // Seek to 10 seconds. The seekDone callback is triggered. + } + break; + case 'paused': // This state is reported upon a successful callback of pause(). + console.info(TAG + 'state paused called') + if (this.count == 0) { + this.count++ + this.avPlayer.play() // Call play() to continue the playback. + } + break; + case 'completed': // This state is reported upon the completion of the playback. + console.info(TAG + 'state completed called') + this.avPlayer.stop() // Call stop() to stop the playback. + break; + case 'stopped': // This state is reported upon a successful callback of stop(). + console.info(TAG + 'state stopped called') + this.avPlayer.reset() // Call reset() to initialize the AVPlayer state. + break; + case 'released': + console.info(TAG + 'state released called') + break; + case 'error': + console.info(TAG + 'state error called') + break; + default: + console.info(TAG + 'unkown state :' + state) + break; + } + }) + // Callback function for time updates. + this.avPlayer.on('timeUpdate', (time:number) => { + console.info(TAG + 'timeUpdate success,and new time is :' + time) + }) + // Callback function for volume updates. + this.avPlayer.on('volumeChange', (vol:number) => { + console.info(TAG + 'volumeChange success,and new volume is :' + vol) + this.avPlayer.setSpeed(media.AVPlayerSpeed.SPEED_FORWARD_2_00_X) // Double the playback speed. The speedDone callback is triggered. + }) + // Callback function for the video playback completion event. + this.avPlayer.on('endOfStream', () => { + console.info(TAG + 'endOfStream success') + }) + // Callback function for the seek operation. + this.avPlayer.on('seekDone', (seekDoneTime:number) => { + console.info(TAG + 'seekDone success,and seek time is:' + seekDoneTime) + this.avPlayer.setVolume(0.5) // Set the volume to 0.5. The volumeChange callback is triggered. + }) + // Callback function for the speed setting operation. + this.avPlayer.on('speedDone', (speed:number) => { + console.info(TAG + 'speedDone success,and speed value is:' + speed) + }) + // Callback function for successful bit rate setting. + this.avPlayer.on('bitrateDone', (bitrate:number) => { + console.info(TAG + 'bitrateDone success,and bitrate value is:' + bitrate) + }) + // Callback function for buffering updates. + this.avPlayer.on('bufferingUpdate', (infoType: media.BufferingInfoType, value: number) => { + console.info(TAG + 'bufferingUpdate success,and infoType value is:' + infoType + ', value is :' + value) + }) + // Callback function invoked when frame rendering starts. + this.avPlayer.on('startRenderFrame', () => { + console.info(TAG + 'startRenderFrame success') + }) + // Callback function for video width and height changes. + this.avPlayer.on('videoSizeChange', (width: number, height: number) => { + console.info(TAG + 'videoSizeChange success,and width is:' + width + ', height is :' + height) + }) + // Callback function for the audio interruption event. + this.avPlayer.on('audioInterrupt', (info: audio.InterruptEvent) => { + console.info(TAG + 'audioInterrupt success,and InterruptEvent info is:' + info) + }) + // Callback function to report the available bit rates of HLS. + this.avPlayer.on('availableBitrates', (bitrates: Array) => { + console.info(TAG + 'availableBitrates success,and availableBitrates length is:' + bitrates.length) + }) + } + + async avPlayerDemo() { + // Create an AVPlayer instance. + this.avPlayer = await media.createAVPlayer() + let fdPath = 'fd://' + let pathDir = "/data/storage/el2/base/haps/entry/files" // The path used here is an example. Obtain the path based on project requirements. + // The stream in the path can be pushed to the device by running the "hdc file send D:\xxx\H264_AAC.mp4 /data/app/el2/100/base/ohos.acts.multimedia.media.avplayer/haps/entry/files" command. + let path = pathDir + '/H264_AAC.mp4' + await fileIO.open(path).then((fdNumber) => { + fdPath = fdPath + '' + fdNumber + console.info('open fd success fd is' + fdPath) + }, (err) => { + console.info('open fd failed err is' + err) + }).catch((err) => { + console.info('open fd failed err is' + err) + }); + this.avPlayer.url = fdPath + } +} +``` + +### Normal Playback Scenario + +```js +import media from '@ohos.multimedia.media' +import fileIO from '@ohos.fileio' + +const TAG = 'AVPlayerDemo:' +export class AVPlayerDemo { + private avPlayer + private surfaceID:string // The surfaceID parameter is used for screen display. Its value is obtained through the XComponent API. + + // Set AVPlayer callback functions. + setAVPlayerCallback() { + // Callback function for state changes. + this.avPlayer.on('stateChange', async (state, reason) => { + switch (state) { + case 'idle': // This state is reported upon a successful callback of reset(). + console.info(TAG + 'state idle called') + break; + case 'initialized': // This state is reported when the AVPlayer sets the playback source. + console.info(TAG + 'state initialized called ') + this.avPlayer.surfaceId = this.surfaceID // Set the image to be displayed. This setting is not required when a pure audio resource is to be played. + this.avPlayer.prepare().then(() => { + console.info(TAG+ 'prepare success'); + }, (err) => { + console.error(TAG + 'prepare filed,error message is :' + err.message) + }) + break; + case 'prepared': // This state is reported upon a successful callback of prepare(). + console.info(TAG + 'state prepared called') + this.avPlayer.play() // Call play() to start playback. + break; + case 'playing': // This state is reported upon a successful callback of play(). + console.info(TAG + 'state playing called') + break; + case 'paused': // This state is reported upon a successful callback of pause(). + console.info(TAG + 'state paused called') + break; + case 'completed': // This state is reported upon the completion of the playback. + console.info(TAG + 'state completed called') + this.avPlayer.stop() // Call stop() to stop the playback. + break; + case 'stopped': // This state is reported upon a successful callback of stop(). + console.info(TAG + 'state stopped called') + this.avPlayer.reset() // Call reset() to initialize the AVPlayer state. + break; + case 'released': + console.info(TAG + 'state released called') + break; + case 'error': + console.info(TAG + 'state error called') + break; + default: + console.info(TAG + 'unkown state :' + state) + break; + } + }) + } + + async avPlayerDemo() { + // Create an AVPlayer instance. + this.avPlayer = await media.createAVPlayer() + let fdPath = 'fd://' + let pathDir = "/data/storage/el2/base/haps/entry/files" // The path used here is an example. Obtain the path based on project requirements. + // The stream in the path can be pushed to the device by running the "hdc file send D:\xxx\H264_AAC.mp4 /data/app/el2/100/base/ohos.acts.multimedia.media.avplayer/haps/entry/files" command. + let path = pathDir + '/H264_AAC.mp4' + await fileIO.open(path).then((fdNumber) => { + fdPath = fdPath + '' + fdNumber + console.info('open fd success fd is' + fdPath) + }, (err) => { + console.info('open fd failed err is' + err) + }).catch((err) => { + console.info('open fd failed err is' + err) + }); + this.avPlayer.url = fdPath + } +} +``` + +### Switching to the Next Video Clip + +```js +import media from '@ohos.multimedia.media' +import fileIO from '@ohos.fileio' + +const TAG = 'AVPlayerDemo:' +export class AVPlayerDemo { + private count:number = 0 + private avPlayer + private surfaceID:string // The surfaceID parameter is used for screen display. Its value is obtained through the XComponent API. + + // Set AVPlayer callback functions. + setAVPlayerCallback() { + // Callback function for state changes. + this.avPlayer.on('stateChange', async (state, reason) => { + switch (state) { + case 'idle': // This state is reported upon a successful callback of reset(). + console.info(TAG + 'state idle called') + break; + case 'initialized': // This state is reported when the AVPlayer sets the playback source. + console.info(TAG + 'state initialized called ') + this.avPlayer.surfaceId = this.surfaceID // Set the image to be displayed. This setting is not required when a pure audio resource is to be played. + this.avPlayer.prepare().then(() => { + console.info(TAG+ 'prepare success'); + }, (err) => { + console.error(TAG + 'prepare filed,error message is :' + err.message) + }) + break; + case 'prepared': // This state is reported upon a successful callback of prepare(). + console.info(TAG + 'state prepared called') + this.avPlayer.loop = true // Set the AVPlayer to loop a single item. The endOfStream callback is triggered when the previous round of the playback is complete. + this.avPlayer.play() // Call play() to start playback. + break; + case 'playing': // This state is reported upon a successful callback of play(). + console.info(TAG + 'state playing called') + break; + case 'paused': // This state is reported upon a successful callback of pause(). + console.info(TAG + 'state paused called') + break; + case 'completed': // This state is reported upon the completion of the playback. + console.info(TAG + 'state completed called') + // Cancel the loop playback when the endOfStream callback is triggered for the second time. The completed state is reported when the next round of the playback is complete. + this.avPlayer.stop() // Call stop() to stop the playback. + break; + case 'stopped': // This state is reported upon a successful callback of stop(). + console.info(TAG + 'state stopped called') + this.avPlayer.reset() // Call reset() to initialize the AVPlayer state. + break; + case 'released': + console.info(TAG + 'state released called') + break; + case 'error': + console.info(TAG + 'state error called') + break; + default: + console.info(TAG + 'unkown state :' + state) + break; + } + }) + // Callback function for the video playback completion event. + this.avPlayer.on('endOfStream', () => { + console.info(TAG + 'endOfStream success') + if (this.count == 1) { + this.avPlayer.loop = false // Cancel loop playback. + } else { + this.count++ + } + }) + } + + async avPlayerDemo() { + // Create an AVPlayer instance. + this.avPlayer = await media.createAVPlayer() + let fdPath = 'fd://' + let pathDir = "/data/storage/el2/base/haps/entry/files" // The path used here is an example. Obtain the path based on project requirements. + // The stream in the path can be pushed to the device by running the "hdc file send D:\xxx\H264_AAC.mp4 /data/app/el2/100/base/ohos.acts.multimedia.media.avplayer/haps/entry/files" command. + let path = pathDir + '/H264_AAC.mp4' + await fileIO.open(path).then((fdNumber) => { + fdPath = fdPath + '' + fdNumber + console.info('open fd success fd is' + fdPath) + }, (err) => { + console.info('open fd failed err is' + err) + }).catch((err) => { + console.info('open fd failed err is' + err) + }); + this.avPlayer.url = fdPath + } +} +``` +### Looping a Song + +```js +import media from '@ohos.multimedia.media' +import fileIO from '@ohos.fileio' + +const TAG = 'AVPlayerDemo:' +export class AVPlayerDemo { + private count:number = 0 + private avPlayer + private surfaceID:string // The surfaceID parameter is used for screen display. Its value is obtained through the XComponent API. + + async nextVideo() { + let fdPath = 'fd://' + let pathDir = "/data/storage/el2/base/haps/entry/files" // The path used here is an example. Obtain the path based on project requirements. + // The stream in the path can be pushed to the device by running the "hdc file send D:\xxx\H264_MP3.mp4 /data/app/el2/100/base/ohos.acts.multimedia.media.avplayer/haps/entry/files" command. + let path = pathDir + '/H264_MP3.mp4' + await fileIO.open(path).then((fdNumber) => { + fdPath = fdPath + '' + fdNumber + console.info('open fd success fd is' + fdPath) + }, (err) => { + console.info('open fd failed err is' + err) + }).catch((err) => { + console.info('open fd failed err is' + err) + }); + this.avPlayer.url = fdPath // The initialized state is reported again. + } + + // Set AVPlayer callback functions. + setAVPlayerCallback() { + // Callback function for state changes. + this.avPlayer.on('stateChange', async (state, reason) => { + switch (state) { + case 'idle': // This state is reported upon a successful callback of reset(). + console.info(TAG + 'state idle called') + await this.nextVideo() // Switch to the next video. + break; + case 'initialized': // This state is reported when the AVPlayer sets the playback source. + console.info(TAG + 'state initialized called ') + this.avPlayer.surfaceId = this.surfaceID // Set the image to be displayed. This setting is not required when a pure audio resource is to be played. + this.avPlayer.prepare().then(() => { + console.info(TAG+ 'prepare success'); + }, (err) => { + console.error(TAG + 'prepare filed,error message is :' + err.message) + }) + break; + case 'prepared': // This state is reported upon a successful callback of prepare(). + console.info(TAG + 'state prepared called') + this.avPlayer.play() // Call play() to start playback. + break; + case 'playing': // This state is reported upon a successful callback of play(). + console.info(TAG + 'state playing called') + break; + case 'paused': // This state is reported upon a successful callback of pause(). + console.info(TAG + 'state paused called') + break; + case 'completed': // This state is reported upon the completion of the playback. + console.info(TAG + 'state completed called') + if (this.count == 0) { + this.count++ + this.avPlayer.reset() // Call reset() to prepare for switching to the next video. + } else { + this.avPlayer.release() // Release the AVPlayer instance when the new video finishes playing. + } + break; + case 'stopped': // This state is reported upon a successful callback of stop(). + console.info(TAG + 'state stopped called') + break; + case 'released': + console.info(TAG + 'state released called') + break; + case 'error': + console.info(TAG + 'state error called') + break; + default: + console.info(TAG + 'unkown state :' + state) + break; + } + }) + } + + async avPlayerDemo() { + // Create an AVPlayer instance. + this.avPlayer = await media.createAVPlayer() + let fdPath = 'fd://' + let pathDir = "/data/storage/el2/base/haps/entry/files" // The path used here is an example. Obtain the path based on project requirements. + // The stream in the path can be pushed to the device by running the "hdc file send D:\xxx\H264_AAC.mp4 /data/app/el2/100/base/ohos.acts.multimedia.media.avplayer/haps/entry/files" command. + let path = pathDir + '/H264_AAC.mp4' + await fileIO.open(path).then((fdNumber) => { + fdPath = fdPath + '' + fdNumber + console.info('open fd success fd is' + fdPath) + }, (err) => { + console.info('open fd failed err is' + err) + }).catch((err) => { + console.info('open fd failed err is' + err) + }); + this.avPlayer.url = fdPath + } +} +``` diff --git a/en/application-dev/media/avrecorder.md b/en/application-dev/media/avrecorder.md new file mode 100644 index 0000000000000000000000000000000000000000..b897c68a657f2891800e2f4d67fc60a1aec8eacf --- /dev/null +++ b/en/application-dev/media/avrecorder.md @@ -0,0 +1,488 @@ +# AVRecorder Development + +## Introduction + +The AVRecorder captures audio signals, receives video signals, encodes audio and video signals, and saves them to files. With the AVRecorder, you can easily implement audio and video recording, including starting, pausing, resuming, and stopping recording, and releasing resources. You can also specify parameters such as the encoding format, encapsulation format, and file path for recording. + +## Working Principles + +The following figures show the AVRecorder state transition and the interaction with external modules for audio and video recording. + +**Figure 1** AVRecorder state transition + +![en-us_image_video_recorder_state_machine](figures/en-us_image_avrecorder_state_machine.png) + +**Figure 2** Interaction between external modules for audio and video recording + +![en-us_image_video_recorder_zero](figures/en-us_image_avrecorder_module_interaction.png) + +**NOTE**: During audio recording, the framework layer calls the audio subsystem through the media service of the native framework to capture audio data through the audio HDI, encodes and encapsulates the data by using software, and saves the data to a file. During video recording, the camera subsystem captures image data through the video HDI. The media service encodes the image data through the video encoding HDI and encapsulates the encoded image data into a file. With the AVRecorder, you can implement pure audio recording, pure video recording, and audio and video recording. + +## Constraints + +Before developing the recording feature, configure permissions for your application. If audio recording is involved, obtain the permission **ohos.permission.MICROPHONE** by following the instructions provided in [Permission Application Guide](../security/accesstoken-guidelines.md). + +To use the camera to record videos, the camera module is required. For details about how to use the APIs and obtain permissions, see [Camera Management](../reference/apis/js-apis-camera.md). + +## How to Develop + +For details about the AVRecorder APIs, see the [AVRecorder APIs in the Media Class](../reference/apis/js-apis-media.md#avrecorder9). + +For details about the processes related to the media library, see [Media Library Management](../reference/apis/js-apis-medialibrary.md). + +For details about the camera-related process, see [Camera Management](../reference/apis/js-apis-camera.md). + +### Full-Process Scenario of Audio and Video Recording + +The full audio and video recording process includes creating an instance, setting recording parameters, obtaining the input surface, starting, pausing, resuming, and stopping recording, and releasing resources. + +The value range that can be set for the audio recording parameters is restricted by the codec performance of the device and the performance of the audio subsystem. + +The video range that can be set for the video recording parameters is restricted by the codec performance of the device and the performance of the camera subsystem. + +``` +import media from '@ohos.multimedia.media' +import camera from '@ohos.multimedia.camera' +import mediaLibrary from '@ohos.multimedia.mediaLibrary' + +export class AVRecorderDemo { + private testFdNumber; // Used to save the File Descriptor (FD) address. + + // Obtain the FD corresponding to fileName of the recorded file. The media library capability is required. To use the media library, configure the following permissions: ohos.permission.MEDIA_LOCATION, ohos.permission.WRITE_MEDIA, and ohos.permission.READ_MEDIA. + async getFd(fileName) { + // For details about the implementation mode, see the media library documentation. + this.testFdNumber = "fd://" + fdNumber.toString(); // e.g. fd://54 + } + + // Error callback triggered in the case of an error in the promise mode. + failureCallback(error) { + console.info('error happened, error message is ' + error.message); + } + + // Error callback triggered in the case of an exception in the promise mode. + catchCallback(error) { + console.info('catch error happened, error message is ' + error.message); + } + + async AVRecorderDemo() { + let AVRecorder; // Assign a value to the empty AVRecorder instance upon a successful call of createAVRecorder(). + let surfaceID; // The surface ID is obtained by calling getInputSurface and transferred to the videoOutput object of the camera. + await this.getFd('01.mp4'); + + // Configure the parameters related to audio and video recording. + let avProfile = { + audioBitrate : 48000, + audioChannels : 2, + audioCodec : media.CodecMimeType.AUDIO_AAC, + audioSampleRate : 48000, + fileFormat : media.ContainerFormatType.CFT_MPEG_4, + videoBitrate : 48000, + videoCodec : media.CodecMimeType.VIDEO_MPEG4, + videoFrameWidth : 640, + videoFrameHeight : 480, + videoFrameRate : 30 + } + let avConfig = { + audioSourceType : media.AudioSourceType.AUDIO_SOURCE_TYPE_MIC, + videoSourceType : media.VideoSourceType.VIDEO_SOURCE_TYPE_SURFACE_YUV, + profile : avProfile, + url : 'fd://', + rotation : 0, + location : { latitude : 30, longitude : 130 } + } + + // Create an AVRecorder instance. + await media.createAVRecorder().then((recorder) => { + console.info('case createAVRecorder called'); + if (typeof (recorder) != 'undefined') { + AVRecorder = recorder; + console.info('createAVRecorder success'); + } else { + console.info('createAVRecorder failed'); + } + }, this.failureCallback).catch(this.catchCallback); + + // After the instance is created, use the on('stateChange') and on('error') callbacks to listen for state changes and errors. + AVRecorder.on('stateChange', async (state, reason) => { + console.info('case state has changed, new state is :' + state); + switch (state) { + // Your can set the desired behavior in different states as required. + case 'idle': + // This state is reported upon a successful call of rest() or create(). + break; + case 'prepared': + // This state is reported upon a successful call of prepare(). + break; + case 'started': + // This state is reported upon a successful call of start(). + break; + case 'paused': + // This state is reported upon a successful call of pause(). + break; + case 'stopped': + // This state is reported upon a successful call of stop(). + break; + case 'released': + // This state is reported upon a successful call of release(). + break; + case 'error': + // The error state indicates that an error occurs at the bottom layer. You must rectify the fault and create an AVRecorder instance again. + break; + default: + console.info('case state is unknown'); + } + }); + AVRecorder.on('error', (err) => { + // Listen for non-interface errors. + console.info('case avRecorder.on(error) called, errMessage is ' + err.message); + }); + + // Call prepare() to prepare for recording. The bottom layer determines whether to record audio, video, or audio and video based on the input parameters of prepare(). + await AVRecorder.prepare(avConfig).then(() => { + console.info('prepare success'); + }, this.failureCallback).catch(this.catchCallback); + + // If video recording is involved, call getInputSurface to obtain the input surface and pass the returned surface ID to the related camera API. + await AVRecorder.getInputSurface().then((surface) => { + console.info('getInputSurface success'); + surfaceID = surface; // The surfaceID is passed into createVideoOutput() of the camera as an input parameter. + }, this.failureCallback).catch(this.catchCallback); + + // Video recording depends on camera-related APIs. The following operations can be performed only after the video output start API is invoked. + // Start video recording. + await AVRecorder.start().then(() => { + console.info('start success'); + }, this.failureCallback).catch(this.catchCallback); + + // Pause video recording before the video output stop API of the camera is invoked. + await AVRecorder.pause().then(() => { + console.info('pause success'); + }, this.failureCallback).catch(this.catchCallback); + + // Resume video recording after the video output start API of the camera is invoked. + await AVRecorder.resume().then(() => { + console.info('resume success'); + }, this.failureCallback).catch(this.catchCallback); + + // Stop video recording after the video output stop API of the camera is invoked. + await AVRecorder.stop().then(() => { + console.info('stop success'); + }, this.failureCallback).catch(this.catchCallback); + + // Reset the recording configuration. + await AVRecorder.reset().then(() => { + console.info('reset success'); + }, this.failureCallback).catch(this.catchCallback); + + // Disable the listeners. The configured callbacks will be invalid after release() is invoked, even if you do not call off(). + AVRecorder.off('stateChange'); + AVRecorder.off('error'); + + // Release the video recording resources and camera object resources. + await AVRecorder.release().then(() => { + console.info('release success'); + }, this.failureCallback).catch(this.catchCallback); + + // Set the AVRecorder instance to null. + AVRecorder = undefined; + surfaceID = undefined; + } +} +``` + +### Full-Process Scenario of Pure Audio Recording + +The full audio recording process includes creating an instance, setting recording parameters, starting, pausing, resuming, and stopping recording, and releasing resources. + +The value range that can be set for the audio recording parameters is restricted by the codec performance of the device and the performance of the audio subsystem. + +``` +import media from '@ohos.multimedia.media' +import mediaLibrary from '@ohos.multimedia.mediaLibrary' + +export class AudioRecorderDemo { + private testFdNumber; // Used to save the FD address. + + // Obtain the FD corresponding to fileName of the recorded file. The media library capability is required. To use the media library, configure the following permissions: ohos.permission.MEDIA_LOCATION, ohos.permission.WRITE_MEDIA, and ohos.permission.READ_MEDIA. + async getFd(fileName) { + // For details about the implementation mode, see the media library documentation. + this.testFdNumber = "fd://" + fdNumber.toString(); // e.g. fd://54 + } + + // Error callback triggered in the case of an error in the promise mode. + failureCallback(error) { + console.info('error happened, error message is ' + error.message); + } + + // Error callback triggered in the case of an exception in the promise mode. + catchCallback(error) { + console.info('catch error happened, error message is ' + error.message); + } + + async audioRecorderDemo() { + let audioRecorder; // Assign a value to the empty AudioRecorder instance upon a successful call of createAVRecorder(). + await this.getFd('01.m4a'); + // Configure the parameters related to audio recording. + let audioProfile = { + audioBitrate : 48000, + audioChannels : 2, + audioCodec : media.CodecMimeType.AUDIO_AAC, + audioSampleRate : 48000, + fileFormat : media.ContainerFormatType.CFT_MPEG_4, + } + let audioConfig = { + audioSourceType : media.AudioSourceType.AUDIO_SOURCE_TYPE_MIC, + profile : audioProfile, + url : this.testFdNumber, + rotation : 0, + location : { latitude : 30, longitude : 130 } + } + + // Create an AudioRecorder instance. + await media.createAVRecorder().then((recorder) => { + console.info('case createAVRecorder called'); + if (typeof (recorder) != 'undefined') { + audioRecorder = recorder; + console.info('createAudioRecorder success'); + } else { + console.info('createAudioRecorder failed'); + } + }, this.failureCallback).catch(this.catchCallback); + + // After the instance is created, use the on('stateChange') and on('error') callbacks to listen for state changes and errors. + audioRecorder.on('stateChange', async (state, reason) => { + console.info('case state has changed, new state is :' + state); + switch (state) { + // Your can set the desired behavior in different states as required. + case 'idle': + // This state is reported upon a successful call of rest() or create(). + break; + case 'prepared': + // This state is reported upon a successful call of prepare(). + break; + case 'started': + // This state is reported upon a successful call of start(). + break; + case 'paused': + // This state is reported upon a successful call of pause(). + break; + case 'stopped': + // This state is reported upon a successful call of stop(). + break; + case 'released': + // This state is reported upon a successful call of release(). + break; + case 'error': + // The error state indicates that an error occurs at the bottom layer. You must rectify the fault and create an AudioRecorder instance again. + break; + default: + console.info('case state is unknown'); + } + }); + audioRecorder.on('error', (err) => { + // Listen for non-interface errors. + console.info('case avRecorder.on(error) called, errMessage is ' + err.message); + }); + + // Call prepare() to prepare for recording. The bottom layer determines whether to record audio, video, or audio and video based on the input parameters of prepare(). + await audioRecorder.prepare(audioConfig).then(() => { + console.info('prepare success'); + }, this.failureCallback).catch(this.catchCallback); + + // Call start() to start audio recording. + await audioRecorder.start().then(() => { + console.info('start success'); + }, this.failureCallback).catch(this.catchCallback); + + // Call pause() to pause audio recording. + await audioRecorder.pause().then(() => { + console.info('pause success'); + }, this.failureCallback).catch(this.catchCallback); + + // Call resume() to resume audio recording. + await audioRecorder.resume().then(() => { + console.info('resume success'); + }, this.failureCallback).catch(this.catchCallback); + + // Call stop() to stop audio recording. + await audioRecorder.stop().then(() => { + console.info('stop success'); + }, this.failureCallback).catch(this.catchCallback); + + // Call reset() to reset the recording configuration. + await audioRecorder.reset().then(() => { + console.info('reset success'); + }, this.failureCallback).catch(this.catchCallback); + + // Disable the listeners. The configured callbacks will be invalid after release() is invoked, even if you do not call off(). + avRecorder.off('stateChange'); + avRecorder.off('error'); + + // Call release() to release audio recording resources. + await audioRecorder.release().then(() => { + console.info('release success'); + }, this.failureCallback).catch(this.catchCallback); + + // Set the AudioRecorder instance to null. + audioRecorder = undefined; + } +} + +``` + +### Full-Process Scenario of Pure Video Recording + +The full video recording process includes creating an instance, setting recording parameters, obtaining the input surface, starting, pausing, resuming, and stopping recording, and releasing resources. + +The video range that can be set for the video recording parameters is restricted by the codec performance of the device and the performance of the camera subsystem. + +``` +import media from '@ohos.multimedia.media' +import camera from '@ohos.multimedia.camera' +import mediaLibrary from '@ohos.multimedia.mediaLibrary' + +export class VideoRecorderDemo { + private testFdNumber; // Used to save the FD address. + + // Obtain the FD corresponding to fileName of the recorded file. The media library capability is required. To use the media library, configure the following permissions: ohos.permission.MEDIA_LOCATION, ohos.permission.WRITE_MEDIA, and ohos.permission.READ_MEDIA. + async getFd(fileName) { + // For details about the implementation mode, see the media library documentation. + this.testFdNumber = "fd://" + fdNumber.toString(); // e.g. fd://54 + } + + // Error callback triggered in the case of an error in the promise mode. + failureCallback(error) { + console.info('error happened, error message is ' + error.message); + } + + // Error callback triggered in the case of an exception in the promise mode. + catchCallback(error) { + console.info('catch error happened, error message is ' + error.message); + } + + async videoRecorderDemo() { + let videoRecorder; // Assign a value to the empty VideoRecorder instance upon a successful call of createAVRecorder(). + let surfaceID; // The surface ID is obtained by calling getInputSurface and transferred to the videoOutput object of the camera. + await this.getFd('01.mp4'); + + // Configure the parameters related to video recording. + let videoProfile = { + fileFormat : media.ContainerFormatType.CFT_MPEG_4, + videoBitrate : 48000, + videoCodec : media.CodecMimeType.VIDEO_MPEG4, + videoFrameWidth : 640, + videoFrameHeight : 480, + videoFrameRate : 30 + } + let videoConfig = { + videoSourceType : media.VideoSourceType.VIDEO_SOURCE_TYPE_SURFACE_YUV, + profile : videoProfile, + url : 'fd://', + rotation : 0, + location : { latitude : 30, longitude : 130 } + } + + // Create a VideoRecorder instance. + await media.createAVRecorder().then((recorder) => { + console.info('case createVideoRecorder called'); + if (typeof (recorder) != 'undefined') { + videoRecorder = recorder; + console.info('createVideoRecorder success'); + } else { + console.info('createVideoRecorder failed'); + } + }, this.failureCallback).catch(this.catchCallback); + + // After the instance is created, use the on('stateChange') and on('error') callbacks to listen for state changes and errors. + videoRecorder.on('stateChange', async (state, reason) => { + console.info('case state has changed, new state is :' + state); + switch (state) { + // Your can set the desired behavior in different states as required. + case 'idle': + // This state is reported upon a successful call of rest() or create(). + break; + case 'prepared': + // This state is reported upon a successful call of prepare(). + break; + case 'started': + // This state is reported upon a successful call of start(). + break; + case 'paused': + // This state is reported upon a successful call of pause(). + break; + case 'stopped': + // This state is reported upon a successful call of stop(). + break; + case 'released': + // This state is reported upon a successful call of release(). + break; + case 'error': + // The error state indicates that an error occurs at the bottom layer. You must rectify the fault and create a VideoRecorder instance again. + break; + default: + console.info('case state is unknown'); + } + }); + videoRecorder.on('error', (err) => { + // Listen for non-interface errors. + console.info('case avRecorder.on(error) called, errMessage is ' + err.message); + }); + + // Call prepare() to prepare for recording. The bottom layer determines whether to record audio, video, or audio and video based on the input parameters of prepare(). + await videoRecorder.prepare(videoConfig).then(() => { + console.info('prepare success'); + }, this.failureCallback).catch(this.catchCallback); + + // If video recording is involved, call getInputSurface to obtain the input surface and pass the returned surface ID to the related camera API. + await videoRecorder.getInputSurface().then((surface) => { + console.info('getInputSurface success'); + surfaceID = surface; // The surfaceID is passed into createVideoOutput() of the camera as an input parameter. + }, this.failureCallback).catch(this.catchCallback); + + // Video recording depends on camera-related APIs. The following operations can be performed only after the video output start API is invoked. + // Start video recording. + await videoRecorder.start().then(() => { + console.info('start success'); + }, this.failureCallback).catch(this.catchCallback); + + // Pause video recording before the video output stop API of the camera is invoked. + await videoRecorder.pause().then(() => { + console.info('pause success'); + }, this.failureCallback).catch(this.catchCallback); + + // Resume video recording after the video output start API of the camera is invoked. + await videoRecorder.resume().then(() => { + console.info('resume success'); + }, this.failureCallback).catch(this.catchCallback); + + // Stop video recording after the video output stop API of the camera is invoked. + await videoRecorder.stop().then(() => { + console.info('stop success'); + }, this.failureCallback).catch(this.catchCallback); + + // Reset the recording configuration. + await videoRecorder.reset().then(() => { + console.info('reset success'); + }, this.failureCallback).catch(this.catchCallback); + + // Disable the listeners. The configured callbacks will be invalid after release() is invoked, even if you do not call off(). + videoRecorder.off('stateChange'); + videoRecorder.off('error'); + + // Release the video recording resources and camera object resources. + await videoRecorder.release().then(() => { + console.info('release success'); + }, this.failureCallback).catch(this.catchCallback); + + // Set the VideoRecorder instance to null. + videoRecorder = undefined; + surfaceID = undefined; + } +} +``` + +### AVRecorder App + +The AVRecorder app provides a complete audio and video recording process, which includes creating an instance, setting recording parameters, obtaining the input surface, starting, pausing, resuming, and stopping recording, and releasing resources. + +For details about the code, see [AVRecorderDemo]([multimedia_player_framework: Implementation of media playback and recording](https://gitee.com/openharmony/multimedia_player_framework/tree/master/test/appdemo/AVRecorderDemo)). diff --git a/en/application-dev/media/avsession-guidelines.md b/en/application-dev/media/avsession-guidelines.md index 6106509fbfe30a7b437ec574843f50cd7bf1aceb..3d1ac479f0f358c42778e60a0d4b47edafe0a0cd 100644 --- a/en/application-dev/media/avsession-guidelines.md +++ b/en/application-dev/media/avsession-guidelines.md @@ -1,5 +1,9 @@ # AVSession Development +> **NOTE** +> +> All APIs of the **AVSession** module are system APIs and can be called only by system applications. + ## Development for the Session Access End ### Basic Concepts @@ -28,7 +32,7 @@ Table 1 Common APIs for session access end development ```js import avSession from '@ohos.multimedia.avsession'; -import wantAgent from '@ohos.wantAgent'; +import wantAgent from '@ohos.app.ability.wantAgent'; import featureAbility from '@ohos.ability.featureAbility'; ``` @@ -50,7 +54,7 @@ avSession.createAVSession(context, "AudioAppSample", 'audio').then((session) => 3. Set the session information, including: - Session metadata. In addition to the current media asset ID (mandatory), you can set the title, album, author, duration, and previous/next media asset ID. For details about the session metadata, see **AVMetadata** in the API document. -- Launcher ability, which is implemented by calling an API of **WantAgent**. Generally, **WantAgent** is used to encapsulate want information. For more information, see [wantAgent](../reference/apis/js-apis-wantAgent.md). +- Launcher ability, which is implemented by calling an API of [WantAgent](../reference/apis/js-apis-app-ability-wantAgent.md). Generally, **WantAgent** is used to encapsulate want information. - Playback state information. ```js // Set the session metadata. @@ -83,7 +87,7 @@ let wantAgentInfo = { wants: [ { bundleName: "com.neu.setResultOnAbilityResultTest1", - abilityName: "com.example.test.MainAbility", + abilityName: "com.example.test.EntryAbility", } ], operationType: wantAgent.OperationType.START_ABILITIES, @@ -187,7 +191,7 @@ currentSession.on('playNext', () => { }); console.log ("Call AudioPlayer.play."); // Set the playback state information. - let time = (new Data()).getTime(); + let time = (new Date()).getTime(); currentSession.setAVPlaybackState({state: avSession.PlaybackState.PLAYBACK_STATE_PLAY, position: {elapsedTime: 0, updateTime: time}, bufferedTime:2000}).then(() => { console.info('setAVPlaybackState successfully'); }).catch((err) => { @@ -282,7 +286,7 @@ currentSession.off('outputDeviceChange'); // Deactivate the session and destroy the object. currentSession.deactivate().then(() => { - currentSession.destory(); + currentSession.destroy(); }); ``` @@ -365,7 +369,7 @@ Table 2 Common APIs for session control end development ```js import avSession from '@ohos.multimedia.avsession'; import {Action, KeyEvent} from '@ohos.multimodalInput.KeyEvent'; -import wantAgent from '@ohos.wantAgent'; +import wantAgent from '@ohos.app.ability.wantAgent'; import audio from '@ohos.multimedia.audio'; ``` diff --git a/en/application-dev/media/avsession-overview.md b/en/application-dev/media/avsession-overview.md index 761483bf5052ef48cd9313261ead681b295d6604..c46211765644330ac26c1154f181904c2db4c3d0 100644 --- a/en/application-dev/media/avsession-overview.md +++ b/en/application-dev/media/avsession-overview.md @@ -1,5 +1,9 @@ # AVSession Overview +> **NOTE** +> +> All APIs of the **AVSession** module are system APIs and can be called only by system applications. + ## Overview AVSession, short for audio and video session, is also known as media session. @@ -49,4 +53,4 @@ The **AVSession** module provides two classes: **AVSession** and **AVSessionCont - AVSession can transmit media playback information and control commands. It does not display information or execute control commands. - Do not develop Media Controller for common applications. For common audio and video applications running on OpenHarmony, the default control end is Media Controller, which is a system application. You do not need to carry out additional development for Media Controller. - If you want to develop your own system running OpenHarmony, you can develop your own Media Controller. -- For better background management of audio and video applications, the **AVSession** module enforces background control for third-party applications. Only third-party applications that have accessed AVSession can play audio in the background. Otherwise, the system forcibly pauses the playback when a third-party application switches to the background. +- For better background management of audio and video applications, the **AVSession** module enforces background control for applications. Only applications that have accessed AVSession can play audio in the background. Otherwise, the system forcibly pauses the playback when an application switches to the background. diff --git a/en/application-dev/media/figures/en-us_image_avplayer_audio.png b/en/application-dev/media/figures/en-us_image_avplayer_audio.png new file mode 100644 index 0000000000000000000000000000000000000000..b5eb9b02a977d0e4551a236c7cc8a154710f5517 Binary files /dev/null and b/en/application-dev/media/figures/en-us_image_avplayer_audio.png differ diff --git a/en/application-dev/media/figures/en-us_image_avplayer_state_machine.png b/en/application-dev/media/figures/en-us_image_avplayer_state_machine.png new file mode 100644 index 0000000000000000000000000000000000000000..aa8afdbcbf142fd745cee03fc422caec51cfe41b Binary files /dev/null and b/en/application-dev/media/figures/en-us_image_avplayer_state_machine.png differ diff --git a/en/application-dev/media/figures/en-us_image_avplayer_video.png b/en/application-dev/media/figures/en-us_image_avplayer_video.png new file mode 100644 index 0000000000000000000000000000000000000000..54525ebed1d1792f43156ffbeb1ffa37f56d8237 Binary files /dev/null and b/en/application-dev/media/figures/en-us_image_avplayer_video.png differ diff --git a/en/application-dev/media/figures/en-us_image_avrecorder_module_interaction.png b/en/application-dev/media/figures/en-us_image_avrecorder_module_interaction.png new file mode 100644 index 0000000000000000000000000000000000000000..7d5da3bdc91fe8fb7be9f0b4054f934ec054b8e6 Binary files /dev/null and b/en/application-dev/media/figures/en-us_image_avrecorder_module_interaction.png differ diff --git a/en/application-dev/media/figures/en-us_image_avrecorder_state_machine.png b/en/application-dev/media/figures/en-us_image_avrecorder_state_machine.png new file mode 100644 index 0000000000000000000000000000000000000000..7ffcb21f09365e9b072bdaf48f8b98d7d45a8aaa Binary files /dev/null and b/en/application-dev/media/figures/en-us_image_avrecorder_state_machine.png differ diff --git a/en/application-dev/napi/drawing-guidelines.md b/en/application-dev/napi/drawing-guidelines.md index 1355a27dcf7fb5e54a283ccd5c39a4f1b19de381..a48a081a3e69ea8259727efd343264f80c6cc284 100644 --- a/en/application-dev/napi/drawing-guidelines.md +++ b/en/application-dev/napi/drawing-guidelines.md @@ -118,9 +118,9 @@ The following steps describe how to use the canvas and brush of the Native Drawi // Draw a pentagram on the canvas. The outline of the pentagram is drawn by the pen, and the color is filled in by the brush. OH_Drawing_CanvasDrawPath(cCanvas, cPath); // Destroy the created objects when they are no longer needed. - OH_Drawing_BrushDestory(cBrush); - OH_Drawing_PenDestory(cPen); - OH_Drawing_PathDestory(cPath); + OH_Drawing_BrushDestroy(cBrush); + OH_Drawing_PenDestroy(cPen); + OH_Drawing_PathDestroy(cPath); ``` 6. **Obtain pixel data.** Use `OH_Drawing_BitmapGetPixels` in `drawing_bitmap.h` to obtain the pixel address of the bitmap bound to the canvas. The memory to which the address points contains the pixel data of the drawing on the canvas. @@ -133,9 +133,9 @@ The following steps describe how to use the canvas and brush of the Native Drawi LOGI("memcpy_s failed"); } // Destroy the canvas object. - OH_Drawing_CanvasDestory(cCanvas); + OH_Drawing_CanvasDestroy(cCanvas); // Destroy the bitmap object. - OH_Drawing_BitmapDestory(cBitmap); + OH_Drawing_BitmapDestroy(cBitmap); ``` ## Development Procedure for Text Drawing diff --git a/en/application-dev/napi/native-window-guidelines.md b/en/application-dev/napi/native-window-guidelines.md index a71a261c8d2dc6cee74e79deff99d50814a00007..f5a5ead9c083217c77692b34384f969c4b44dc00 100644 --- a/en/application-dev/napi/native-window-guidelines.md +++ b/en/application-dev/napi/native-window-guidelines.md @@ -29,20 +29,72 @@ The following scenarios are common for native window development: | OH_NativeWindow_NativeWindowSetMetaDataSet(OHNativeWindow \*window, uint32_t sequence, OHHDRMetadataKey key, int32_t size, const uint8_t \*metaData) | Sets the HDR static metadata set of the native window.| | OH_NativeWindow_NativeWindowSetTunnelHandle(OHNativeWindow \*window, const OHExtDataHandle \*handle) | Sets the tunnel handle to the native window.| - ## How to Develop The following describes how to use the NAPI provided by **NativeWindow** to request a graphics buffer, write the produced graphics content to the buffer, and flush the buffer to the graphics queue. -1. Obtain a **NativeWindow** instance. For example, use **Surface** to create a **NativeWindow** instance. - ```c++ - sptr cSurface = Surface::CreateSurfaceAsConsumer(); - sptr listener = new BufferConsumerListenerTest(); - cSurface->RegisterConsumerListener(listener); - sptr producer = cSurface->GetProducer(); - sptr pSurface = Surface::CreateSurfaceAsProducer(producer); - OHNativeWindow* nativeWindow = OH_NativeWindow_CreateNativeWindow(&pSurface); - ``` +1. Obtain a **NativeWindow** instance, which can be obtained by running the APIs provided by **OH_NativeXComponent_Callback**. + 1. Define **XComponent** in an .ets file. + ```ts + XComponent({ id: 'xcomponentId', type: 'surface', libraryname: 'nativerender'}) + .onLoad((context) => { + this.context = context; + }) + .onDestroy(() => { + }) + ``` + 2. Obtain **NativeXComponent** at the native C++ layer. + ```c++ + napi_value exportInstance = nullptr; + napi_get_named_property(env, exports, OH_NATIVE_XCOMPONENT_OBJ, &exportInstance); + + OH_NativeXComponent *nativeXComponent = nullptr; + napi_unwrap(env, exportInstance, reinterpret_cast(&nativeXComponent)); + + char idStr[OH_XCOMPONENT_ID_LEN_MAX + 1] = { }; + uint64_t idSize = OH_XCOMPONENT_ID_LEN_MAX + 1; + OH_NativeXComponent_GetXComponentId(nativeXComponent, idStr, &idSize); + ``` + 3. Define **OH_NativeXComponent_Callback**. + ```c++ + // Define the callback. + void OnSurfaceCreatedCB(OH_NativeXComponent* component, void* window) + { + // Obtain a NativeWindow instance. + OHNativeWindow* nativeWindow = window; + // ... + } + void OnSurfaceChangedCB(OH_NativeXComponent* component, void* window) + { + // Obtain a NativeWindow instance. + OHNativeWindow* nativeWindow = window; + // ... + } + void OnSurfaceDestroyedCB(OH_NativeXComponent* component, void* window) + { + // Obtain a NativeWindow instance. + OHNativeWindow* nativeWindow = window; + // ... + } + void DispatchTouchEventCB(OH_NativeXComponent* component, void* window) + { + // Obtain a NativeWindow instance. + OHNativeWindow* nativeWindow = window; + // ... + } + ``` + ```c++ + // Initialize OH_NativeXComponent_Callback. + OH_NativeXComponent_Callback callback_; + callback_->OnSurfaceCreated = OnSurfaceCreatedCB; + callback_->OnSurfaceChanged = OnSurfaceChangedCB; + callback_->OnSurfaceDestroyed = OnSurfaceDestroyedCB; + callback_->DispatchTouchEvent = DispatchTouchEventCB; + ``` + 4. Register **OH_NativeXComponent_Callback** with **NativeXComponent**. + ```c++ + OH_NativeXComponent_RegisterCallback(nativeXComponent, &callback_); + ``` 2. Set the attributes of a native window buffer by using **OH_NativeWindow_NativeWindowHandleOpt**. ```c++ @@ -90,7 +142,6 @@ The following describes how to use the NAPI provided by **NativeWindow** to requ ``` 5. Flush the native window buffer to the graphics queue. - ```c++ // Set the refresh region. If Rect in Region is a null pointer or rectNumber is 0, all contents in the native window buffer are changed. Region region{nullptr, 0}; diff --git a/en/application-dev/quick-start/app-configuration-file.md b/en/application-dev/quick-start/app-configuration-file.md index 3fff90e0682c4f79e63fa0ee8306a5f8aa7e9385..19e6d16258b06b5a2f613a01061fc6a683488ee2 100644 --- a/en/application-dev/quick-start/app-configuration-file.md +++ b/en/application-dev/quick-start/app-configuration-file.md @@ -30,21 +30,21 @@ This document gives an overview of the **app.json5** configuration file. To star As shown above, the **app.json5** file contains several tags. - **Table 1** Tags in the app.json5 file +**Table 1** Tags in the app.json5 file | Name| Description| Data Type| Initial Value Allowed| | -------- | -------- | -------- | -------- | | bundleName | Bundle name, which uniquely identifies an application. The value must comply with the following rules:
- Consists of letters, digits, underscores (_), and periods (.).
- Starts with a letter.
- Contains 7 to 127 bytes.
You are advised to use the reverse domain name notation, for example, *com.example.demo*, where the first part is the domain suffix **com**, the second part is the vendor/individual name, and the third part is the application name, which can be of multiple levels.
If an application is built with the system source code, you are advised to name it in *com.ohos.demo* notation, where **ohos** signifies that the application is an OpenHarmony system application.| String| No| | debug | Whether the application can be debugged. This tag is generated during compilation and building in DevEco Studio.
- **true**: The application can be debugged.
- **false**: The application cannot be debugged.| Boolean| Yes (initial value: **false**)| -| icon | [Icon of the application](../application-models/application-component-configuration-stage.md). The value is an icon resource index. | String| No| -| label | [Name of the application](../application-models/application-component-configuration-stage.md). The value is a string resource index. | String| No| -| description | Description of the application. The value is a string with a maximum of 255 bytes or a resource index to the description. | String| Yes (initial value: left empty)| +| icon | [Icon of the application](../application-models/application-component-configuration-stage.md). The value is an icon resource index.| String| No| +| label | [Name of the application](../application-models/application-component-configuration-stage.md). The value is a string resource index.| String| No| +| description | Description of the application. The value is a string with a maximum of 255 bytes or a resource index to the description.| String| Yes (initial value: left empty)| | vendor | Vendor of the application. The value is a string with a maximum of 255 bytes.| String| Yes (initial value: left empty)| | versionCode | Version number of the application. The value is a 32-bit non-negative integer less than 2 to the power of 31. It is used only to determine whether a version is later than another version. A larger value indicates a later version. Ensure that a new version of the application uses a value greater than any of its predecessors. | Number| No| | versionName | Version number of the application displayed to users.
The value consists of only digits and dots. The four-part format *A.B.C.D* is recommended, wherein:
Part 1 (*A*): major version number, which ranges from 0 to 99. A major version consists of major new features or large changes.
Part 2 (*B*): minor version number, which ranges from 0 to 99. A minor version consists of some new features and large bug fixes.
Part 3 (*C*): feature version number, which ranges from 0 to 99. A feature version consists of scheduled new features.
Part 4 (*D*): maintenance release number or patch number, which ranges from 0 to 999. A maintenance release or patch consists of resolution to security flaws or minor bugs.
The value contains a maximum of 127 bytes.| String| No| | minCompatibleVersionCode | Minimum compatible version of the application. It is used to check whether the application is compatible with a version on other devices in the cross-device scenario.| Number| Yes (initial value: value of **versionCode**)| -| minAPIVersion | Minimum API version required for running the application.| Number| Yes (initial value: value of **compatibleSdkVersion** in **bundle-profile.json5**)| -| targetAPIVersion | Target API version required for running the application.| Number| Yes (initial value: value of **compileSdkVersion** in **bundle-profile.json5**)| +| minAPIVersion | Minimum API version required for running the application.| Number| Yes (initial value: value of **compatibleSdkVersion** in **build-profile.json5**)| +| targetAPIVersion | Target API version required for running the application.| Number| Yes (initial value: value of **compileSdkVersion** in **build-profile.json5**)| | apiReleaseType | Type of the target API version required for running the application. The value can be **"CanaryN"**, **"BetaN"**, or **"Release"**, where **N** represents a positive integer.
- **Canary**: indicates a restricted release.
- **Beta**: indicates a publicly released beta version.
- **Release**: indicates a publicly released official version.
The value is set by DevEco Studio reading the stage of the SDK in use.| String| Yes (initial value: set by DevEco Studio)| | distributedNotificationEnabled | Whether distributed notification is enabled for the application. When distributed notification is enabled and device A and device B where the application is installed are on the same distributed network, the devices behave in this way: If device A receives a message, device B will receive a distributed notification prompting the user to check the message received on device A.
- **true**: Distributed notification is enabled.
- **false**: Distributed notification is not enabled.| Boolean| Yes (initial value: **false**)| | entityType | Type of the application. The options are as follows:
- game
- media
- communication
- news
- travel
- utility
- shopping
- education
- kids
- business
- photography
- unspecified| String| Yes (initial value: **"unspecified"**)| diff --git a/en/application-dev/quick-start/app-structure.md b/en/application-dev/quick-start/app-structure.md index 62b23fad4d660b1d3e516a696b0f7ce95bbde053..78d727f2df95b3bdacc025f4159e88b47abf804e 100644 --- a/en/application-dev/quick-start/app-structure.md +++ b/en/application-dev/quick-start/app-structure.md @@ -3,7 +3,7 @@ The **app** tag contains application-wide configuration. The internal structure is as follows: -### Internal Structure of the app Tag +**Table 1** Internal structure of the app tag | Name| Description| Data Type| Initial Value Allowed| | -------- | -------- | -------- | -------- | @@ -14,15 +14,19 @@ The **app** tag contains application-wide configuration. The internal structure | smartWindowSize | Screen size used when the application runs in the emulator.| String| Yes (initial value: left empty)| | smartWindowDeviceType | Types of emulated devcies on which the application can run.| String array| Yes (initial value: left empty)| -#### Internal Structure of the version Atttribute +## Internal Structure of the version Atttribute + +**Table 2** Internal structure of the version atttribute | Name| Description| Data Type| Initial Value Allowed| | -------- | -------- | -------- | -------- | -| name | Application version number displayed to users. The value can be customized and cannot exceed 127 bytes. The configuration rules are as follows:
For API version 5 and earlier versions, use the three-part format *A.B.C* (compatible with a two-part format *A.B*), where A, B, and C are integers ranging from 0 to 999.
*A* indicates the major version number.
*B* indicates the minor version number.
*C* indicates the patch version number. For API version 6 and later versions, the four-part format *A.B.C.D* is recommended, where A, B, and C are integers ranging from 0 to 99, and D is an integer ranging from 0 to 999.
*A* indicates the major version number.
*B* indicates the minor version number.
*C* indicates the feature version number.
*D* indicates the patch version number.| Number| No| +| name | Application version number displayed to users. The value can be customized and cannot exceed 127 bytes. The configuration rules are as follows:
For API version 5 and earlier versions, use the three-part format *A.B.C* (compatible with a two-part format *A.B*), where A, B, and C are integers ranging from 0 to 999.
- *A* indicates the major version number.
- *B* indicates the minor version number.
- *C* indicates the patch version number.
For API version 6 and later versions, the four-part format *A.B.C.D* is recommended, where A, B, and C are integers ranging from 0 to 99, and D is an integer ranging from 0 to 999.
- *A* indicates the major version number.
- *B* indicates the minor version number.
- *C* indicates the feature version number.
- *D* indicates the patch version number. | Number| No| | code | Application version number used only for application management by OpenHarmony. This version number is not visible to users of the application. The configuration rules are as follows:
API version 5 and earlier versions: The value is a non-negative integer within 32 binary digits, which needs to be converted from the value of **version.name**. The conversion rule is as follows: Value of **code** = A * 1,000,000 + B * 1,000 + C. For example, if the value of **version.name** is 2.2.1, the value of **code** is 2002001. API version 6 and later versions: The value of **code** is not associated with the value of **version.name** and can be customized. The value is a non-negative integer less than 2 to the power of 31. Note that the value must be updated each time the application version is updated, and the value for a later version must be greater than that for an earlier version.| Number| No| | minCompatibleVersionCode | Earliest version compatible with the application. It is used in the cross-device scenario to check whether the application is compatible with a specific version on other devices. The value rules are the same as those of **version.code**.| Number| No (initial value: value of **code**)| -#### Internal Structure of the apiVersion Attribute +## Internal Structure of the apiVersion Attribute + +**Table 3** Internal structure of the apiVersion attribute | Name| Description| Data Type| Initial Value Allowed| | -------- | -------- | -------- | -------- | @@ -30,7 +34,7 @@ The **app** tag contains application-wide configuration. The internal structure | target | Target API version required for running the application. The value ranges from 0 to 2147483647.| Number| Yes (initial value: configured in **build.profile** and filled in **config.json** by DevEco Studio during packaging)| | releaseType | SDK status when the application is running.
**canary**: preliminary release open only to specific developers. This release does not promise API stability and may require tolerance of instability.
**beta**: release open to all developers. This release does not promise API stability and may require tolerance of instability. After several releases, the beta version is declared as an API stability milestone through Release Notes, and APIs of later versions are frozen.
**release**: official release open to all developers. This release promises that all APIs are stable. When a version is in this state, the **Stage** field is not displayed in the version number.| String| Yes (initial value: configured in **build.profile** and filled in **config.json** by DevEco Studio during packaging)| -### Example of the **app** Tag +Example of the **app** tag: ```json "app": { diff --git a/en/application-dev/quick-start/application-package-install-uninstall.md b/en/application-dev/quick-start/application-package-install-uninstall.md index 3ccafd9ad3da5f98b9fbd229ff7025863ca105d8..2fad037a9135912fc9a8ca2b48c56af9ffd8583c 100644 --- a/en/application-dev/quick-start/application-package-install-uninstall.md +++ b/en/application-dev/quick-start/application-package-install-uninstall.md @@ -1,8 +1,13 @@ # Application Installation and Uninstallation Process +## Developers +Developers can install and uninstall applications by running debug commands. For details, see [Multi-HAP Development, Debugging, Release, and Deployment Process](multi-hap-release-deployment.md#debugging). -The OpenHarmony bundle manager service module provides APIs for installing, updating, and uninstalling applications. You can call these APIs when needed. After you release your application to the application market, users can install and uninstall it on their device. +**Figure 1** Process of installing and uninstalling an application (applicable to developers) +![hap-intall-uninstall](figures/hap-install-uninstall-developer.png) +## Consumers +When an application has been released to the application market, consumers can install or uninstall the application on their device through the application market. - **Figure 1** Process of installing and uninstalling an application -![hap-intall-uninstall](figures/hap-intall-uninstall.png) +**Figure 2** Process of installing and uninstalling an application (applicable to consumers) +![hap-intall-uninstall](figures/hap-install-uninstall-user.png) \ No newline at end of file diff --git a/en/application-dev/quick-start/arkts-rendering-control.md b/en/application-dev/quick-start/arkts-rendering-control.md index d0ff5a8c183d8efba03b12f7343f001a3ba31fe5..0cb38c2c123171b7ebe05df263b7275445542986 100644 --- a/en/application-dev/quick-start/arkts-rendering-control.md +++ b/en/application-dev/quick-start/arkts-rendering-control.md @@ -263,11 +263,11 @@ struct MyComponent { > > - **LazyForEach** must be used in the container component. Currently, only the **\**, **\**, and **\** components support lazy loading (that is, only the visible part and a small amount of data before and after the visible part are loaded for caching). For other components, all data is loaded at a time. > -> - **LazyForEach** must create and only one child component in each iteration. +> - **LazyForEach** must create one and only one child component in each iteration. > -> - The generated child components must be allowed in the parent container component of **LazyForEach**. +> - The generated child components must be the ones allowed in the parent container component of **LazyForEach**. > -> - **LazyForEach** can be included in an **if/else** statement, but cannot contain such a statement. +> - **LazyForEach** can be included in an **if/else** statement. > > - For the purpose of high-performance rendering, when the **onDataChange** method of the **DataChangeListener** object is used to update the UI, the component update is triggered only when the state variable is used in the child component created by **itemGenerator**. > diff --git a/en/application-dev/quick-start/arkts-restrictions-and-extensions.md b/en/application-dev/quick-start/arkts-restrictions-and-extensions.md index 1cb3b0fa04aedd8df61a660993e7f67e48c03c98..a03b839c3b1cdc06017c897cdd20be8a0dc02210 100644 --- a/en/application-dev/quick-start/arkts-restrictions-and-extensions.md +++ b/en/application-dev/quick-start/arkts-restrictions-and-extensions.md @@ -46,33 +46,77 @@ struct bindPopupPage { ## Restrictions on Data Type Declarations of State Variables -The data type declaration of the **@State**, **@Provide**, **@Link**, or **@Consume** decorated state variables can consist of only one of the primitive data types or reference data types. - -Example: - -```ts -// xxx.ets -@Entry -@Component -struct IndexPage { - // Incorrect: @State message: string | Resource = 'Hello World' - @State message: string = 'Hello World' - - build() { - Row() { - Column() { - Text(`${this.message}`) - .fontSize(50) - .fontWeight(FontWeight.Bold) +1. The data types of state variables decorated by state decorators must be explicitly declared. They cannot be declared as **any** or **Date**. + + Example: + + ```ts + // xxx.ets + @Entry + @Component + struct DatePickerExample { + // Incorrect: @State isLunar: any = false + @State isLunar: boolean = false + // Incorrect: @State selectedDate: Date = new Date('2021-08-08') + private selectedDate: Date = new Date('2021-08-08') + + build() { + Column() { + Button('Switch Calendar') + .margin({ top: 30 }) + .onClick(() => { + this.isLunar = !this.isLunar + }) + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2100-1-1'), + selected: this.selectedDate + }) + .lunar(this.isLunar) + .onChange((value: DatePickerResult) => { + this.selectedDate.setFullYear(value.year, value.month, value.day) + console.info('select current date is: ' + JSON.stringify(value)) + }) + + }.width('100%') } - .width('100%') } - .height('100%') - } -} -``` + ``` + + ![datePicker](../../application-dev/reference/arkui-ts/figures/datePicker.gif) + +2. The data type declaration of the **@State**, **@Provide**, **@Link**, or **@Consume** decorated state variables can consist of only one of the primitive data types or reference data types. + + The **Length**, **ResourceStr**, and **ResourceColor** types are combinations of primitive data types or reference data types. Therefore, they cannot be used by the aforementioned types of state variables. + For details about the definitions of **Length**, **ResourceStr**, and **ResourceColor**, see [Types](../../application-dev/reference/arkui-ts/ts-types.md). + + Example: + + ```ts + // xxx.ets + @Entry + @Component + struct IndexPage { + // Incorrect: @State message: string | Resource = 'Hello World' + @State message: string = 'Hello World' + // Incorrect: @State message: ResourceStr = $r('app.string.hello') + @State resourceStr: Resource = $r('app.string.hello') + + build() { + Row() { + Column() { + Text(`${this.message}`) + .fontSize(50) + .fontWeight(FontWeight.Bold) + } + .width('100%') + } + .height('100%') + } + } + ``` -![hello](figures/hello.PNG) + ![hello](figures/hello.PNG) ## Initialization and Restrictions of Custom Components' Member Variables @@ -98,6 +142,8 @@ The allowed method depends on the decorator of the state variable, as shown in t | @Link | Forbidden | Mandatory | | @StorageLink | Mandatory | Forbidden | | @StorageProp | Mandatory | Forbidden | +| @LocalStorageLink | Mandatory | Forbidden | +| @LocalStorageProp | Mandatory | Forbidden | | @Provide | Mandatory | Optional | | @Consume | Forbidden | Forbidden | | @ObjectLink | Forbidden | Mandatory | @@ -111,25 +157,78 @@ As indicated by the preceding table: Comply with the following rules when using constructors to initialize member variables: -| From the Variable in the Parent Component (Below) to the Variable in the Child Component (Right)| @State | @Link | @Prop | Normal Variable| -| -------------------------------------------- | ------ | ------ | ------ | -------- | -| @State | Not allowed| Allowed | Allowed | Allowed | -| @Link | Not allowed| Allowed | Not recommended| Allowed | -| @Prop | Not allowed| Not allowed| Allowed | Allowed | -| @StorageLink | Not allowed| Allowed | Not allowed| Not allowed | -| @StorageProp | Not allowed| Not allowed| Not allowed| Allowed | -| Normal variable | Allowed | Not allowed| Not allowed| Allowed | +| **From the Variable in the Parent Component (Right) to the Variable in the Child Component (Below)**| **regular** | **@State** | **@Link** | **@Prop** | **@Provide** | **@Consume** | **@ObjectLink** | +|---------------------------------|----------------------------|------------|-----------|-----------|--------------|--------------|------------------| +| **regular** | Supported | Supported | Supported | Supported | Not supported | Not supported | Supported | +| **@State** | Supported | Supported | Supported | Supported | Supported | Supported | Supported | +| **@Link** | Not supported | Supported (1) | Supported (1) | Supported (1) | Supported (1) | Supported (1) | Supported (1) | +| **@Prop** | Supported | Supported | Supported | Supported | Supported | Supported | Supported | +| **@Provide** | Supported | Supported | Supported | Supported | Supported | Supported | Supported | +| **@Consume** | Not supported | Not supported | Not supported | Not supported | Not supported | Not supported | Not supported | +| **@ObjectLink** | Not supported | Not supported | Not supported | Not supported | Not supported | Not supported | Not supported | -As indicated by the preceding table: +| **From the Variable in the Parent Component (Right) to the Variable in the Child Component (Below)**| **@StorageLink** | **@StorageProp** | **@LocalStorageLink** | **@LocalStorageProp** | +|------------------|------------------|------------------|-----------------------|------------------------| +| **regular** | Supported | Not supported | Not supported | Not supported | +| **@State** | Supported | Supported | Supported | Supported | +| **@Link** | Supported (1) | Supported (1) | Supported (1) | Supported (1) | +| **@Prop** | Supported | Supported | Supported | Supported | +| **@Provide** | Supported | Supported | Supported | Supported | +| **@Consume** | Not supported | Not supported | Not supported | Not supported | +| **@ObjectLink** | Not supported | Not supported | Not supported | Not supported | + +> **NOTE** +> +> **Supported (1)**: The dollar sign ($) must be used, for example, **this.$varA**. +> +> **regular**: refers to a regular variable that is not decorated by any decorator. + +As indicated by the preceding tables: + +- The **@ObjectLink** decorated variable cannot be directly initialized from a decorated variable in the parent component. The source of the parent component must be an array item or object attribute decorated by **@State**, **@Link**, **@Provide**, **@Consume**, or **@ObjectLink**. -- The normal variables of the parent component can be used to initialize the **@State** decorated variables of the child component, but not the **@Link** or **@Prop** decorated variables. +- The regular variables of the parent component can be used to initialize the **@State** variable of the child component, but cannot be used to initialize the **@Link**, **@Consume**, and **@ObjectLink** variables. -- The **@State** decorated variable of the parent component can be used to initialize the **@Prop**, **@Link** (using **$**), or normal variables of the child component, but not the **@State** decorated variables of the child component. +- The **@State** variable of the parent component can be used to initialize the **@Prop**, **@Link** (through **$**), or regular variables of the child component, but cannot be used to initialize the **@Consume** variable. -- The **@Link** decorated variables of the parent component can be used to initialize the **@Link** decorated or normal variables of the child component. However, initializing the **@State** decorated members of the child component can result in a syntax error. In addition, initializing the **@Prop** decorated variables is not recommended. +- The **@Link** variable of the parent component cannot be used to initialize the **@Consume** and **@ObjectLink** variables of the child component. -- The **@Prop** decorated variables of the parent component can be used to initialize the normal variables or **@Prop** decorated variables of the child component, but not the **@State** or **@Link** decorated variables. +- The **@Prop** variable of the parent component cannot be used to initialize the **@Consume** and **@ObjectLink** variables of the child component. -- Passing **@StorageLink** and **@StorageProp** from the parent component to the child component is prohibited. +- **@StorageLink**, **@StorageProp**, **@LocalStorageLink**, and **@LocalStorageProp** variables cannot be initialized from the parent component. - In addition to the preceding rules, the TypeScript strong type rules need to be followed. + +Example: +```ts +@Entry +@Component +struct Parent { + message: string = "Hello World" + build() { + Column() { + Child({ + stateMessage: this.message, + /* ArkTS:ERROR The regular property 'message' cannot be assigned + to the @Link property 'linkMessage'.*/ + linkMessage: this.$message + }) + } + .width('100%') + } +} + +@Component +struct Child { + @State stateMessage: string = "Hello World" + @Link linkMessage: string + build() { + Column() { + Text(this.stateMessage) + .fontSize(50) + .fontWeight(FontWeight.Bold) + } + .width('100%') + } +} +``` diff --git a/en/application-dev/quick-start/arkts-state-mgmt-concepts.md b/en/application-dev/quick-start/arkts-state-mgmt-concepts.md index 2eae06eca22030673ef35bcf756279444fcd9c60..dd2398a71811e6bbd9b20d0f18ce0659c3bd7acf 100644 --- a/en/application-dev/quick-start/arkts-state-mgmt-concepts.md +++ b/en/application-dev/quick-start/arkts-state-mgmt-concepts.md @@ -30,3 +30,5 @@ In the multi-dimensional state management mechanism for ArkUI, UI-related data c - **@LocalStorageProp**: establishes one-way data binding between a component and the **LocalStorage**. Specifically, this is achieved by decorating the component's state variable with **@LocalStorageProp(*key*)**. Wherein, **key** is the attribute key value in the **LocalStorage**. - **PersistentStorage**: provides a set of static methods for managing persistent data of applications. Persistent data with specific tags can be linked to the **AppStorage**, and then the persistent data can be accessed through the **AppStorage** APIs. Alternatively, the **@StorageLink** decorator can be used to access the variable that matches the specific key. - **Environment**: provides the **AppStorage** with an array of environment state attributes that are required by the application and describe the device environment where the application runs. It is a singleton object created by the framework when the application is started. + +For details about how to use state variables, see [Restrictions on Data Type Declarations of State Variables](arkts-restrictions-and-extensions.md). diff --git a/en/application-dev/quick-start/deviceconfig-structure.md b/en/application-dev/quick-start/deviceconfig-structure.md index 7386e27ea69a33efc2e7bca6dfcb2413e3479799..a6bb6fa6803eb6fa75e56c6a366ae7f32d63bb19 100644 --- a/en/application-dev/quick-start/deviceconfig-structure.md +++ b/en/application-dev/quick-start/deviceconfig-structure.md @@ -1,9 +1,11 @@ -# Internal Structure of deviceConfig Tag +# Internal structure of deviceConfig Tag The **deviceConfig** tag contains device-specific configuration of the application, including attributes such as **default**, **tv**, **car**, and **wearable**. The **default** configuration applies to all types of devices. You need to declare the peculiar configuration of a specific device type in the associated sub-tag of this type. -### Table 1 Internal Structure of the deviceConfig Tag +## Internal Structure of the deviceConfig Tag + +**Table 1** Internal structure of the deviceConfig tag | Name| Description| Data Type| Initial Value Allowed| | -------- | -------- | -------- | -------- | @@ -16,7 +18,9 @@ The **deviceConfig** tag contains device-specific configuration of the applicati Table 2 describes the internal structure of the **deviceConfig** attributes. -#### Table 2 Internal Structure of the deviceConfig Attributes +## Internal Structure of the deviceConfig Attributes + +**Table 2** Internal structure of the deviceConfig attributes | Name| Description| Data Type| Initial Value Allowed| | -------- | -------- | -------- | -------- | @@ -26,27 +30,33 @@ Table 2 describes the internal structure of the **deviceConfig** attributes. | compressNativeLibs | Whether the **libs** libraries are packaged in the HAP file after being compressed. The value **false** means that the **libs** libraries are stored without being compressed and will be directly loaded during the installation of the HAP file.| Boolean| Yes (initial value: **false**)| | network | Network security configuration. You can customize the network security settings of the application in the security statement of the configuration file without modifying the application code.| Object| Yes (initial value: left empty)| -#### Table 3 Internal Structure of the network Attribute +## Internal Structure of the network Attribute + +**Table 3** Internal structure of the network attribute | Name| Description| Data Type| Initial Value Allowed| | -------- | -------- | -------- | -------- | | cleartextTraffic | Whether to allow the application to use plaintext traffic, for example, plaintext HTTP traffic.
**true**: The application is allowed to use plaintext traffic. **false**: The application is not allowed to use plaintext traffic.| Boolean| Yes (initial value: **false**)| | securityConfig | Network security configuration of the application.| Object| Yes (initial value: left empty)| -#### Table 4 Internal Structure of the securityConfig Attribute +## Internal Structure of the securityConfig Attribute + +**Table 4** Internal structure of the securityConfig attribute | Name| Description| Data Type| Initial Value Allowed| | -------- | -------- | -------- | -------- | | domainSettings | Security settings of the custom network domain. This attribute allows nested domains. That is, the **domainSettings** object of a network domain can be nested with the **domainSettings** objects of smaller network domains.| Object| Yes (initial value: left empty)| -#### Table 5 Internal Structure of the domainSettings Attribute +## Internal Structure of the domainSettings Attribute + +**Table 5** Internal structure of the domainSettings attribute | Name| Description| Data Type| Initial Value Allowed| | -------- | -------- | -------- | -------- | | cleartextPermitted | Whether plaintext traffic can be transmitted in the custom network domain. If both **cleartextTraffic** and **security** are declared, whether plaintext traffic can be transmitted in the custom network domain is determined by the **cleartextPermitted** attribute. **true**: Plaintext traffic can be transmitted. **false**: Plaintext traffic cannot be transmitted.| Boolean| Yes (initial value: left empty)| | domains | Domain name. This attribute consists of two sub-attributes: **subdomains** and **name**. **subdomains** (boolean): specifies whether the domain name contains subdomains. If this sub-attribute is set to **true**, the domain naming convention applies to all related domains and subdomains (including the lower-level domains of the subdomains). Otherwise, the convention applies only to exact matches. **name** (string): indicates the domain name.| Object array| Yes (initial value: left empty)| -### Example of the deviceConfig Tag +Example of the **deviceConfig** tag: ```json "deviceConfig": { diff --git a/en/application-dev/quick-start/figures/hap-install-uninstall-developer.png b/en/application-dev/quick-start/figures/hap-install-uninstall-developer.png new file mode 100644 index 0000000000000000000000000000000000000000..71de207ab9c530c353064a3422c6855eafa7770e Binary files /dev/null and b/en/application-dev/quick-start/figures/hap-install-uninstall-developer.png differ diff --git a/en/application-dev/quick-start/figures/hap-install-uninstall-user.png b/en/application-dev/quick-start/figures/hap-install-uninstall-user.png new file mode 100644 index 0000000000000000000000000000000000000000..2cd71657b6bb0af0a4d5094d09ebe028807518be Binary files /dev/null and b/en/application-dev/quick-start/figures/hap-install-uninstall-user.png differ diff --git a/en/application-dev/quick-start/figures/hap-intall-uninstall.png b/en/application-dev/quick-start/figures/hap-intall-uninstall.png deleted file mode 100644 index de04aa18f5053de48dd0b595c8265c781e36fee5..0000000000000000000000000000000000000000 Binary files a/en/application-dev/quick-start/figures/hap-intall-uninstall.png and /dev/null differ diff --git a/en/application-dev/quick-start/module-structure.md b/en/application-dev/quick-start/module-structure.md index a8df69c1846a1ff6f7647aff4490da5d4990d431..e4aee36db107109fcaa7e6d068cbc907009c69d4 100644 --- a/en/application-dev/quick-start/module-structure.md +++ b/en/application-dev/quick-start/module-structure.md @@ -3,7 +3,7 @@ The **module** tag contains the HAP configuration. -### Table 1 Internal Structure of the module Tag + **Table 1** Internal structure of the module tag | Name| Description| Data Type| Initial Value Allowed| | -------- | -------- | -------- | -------- | @@ -20,7 +20,7 @@ The **module** tag contains the HAP configuration. | shortcuts | Shortcuts of the application. The value is an array of objects, each of which represents a shortcut object.| Object array| Yes (initial value: left empty)| | reqPermissions | Permissions that the application requests from the system when it is running.| Object array| Yes (initial value: left empty)| | colorMode | Color mode of the application. The options are as follows:
- **dark**: Resources applicable for the dark mode are used.
- **light**: Resources applicable for the light mode are used.
- **auto**: Resources are used based on the color mode of the system.| String| Yes (initial value: **auto**)| -| distroFilter | Distribution rules of the application. This attribute defines the rules for distributing HAP files based on different device specifications, so that precise matching can be performed when the application market distributes applications. Distribution rules cover three factors: API version, screen shape, and screen resolution. During distribution, a unique HAP is determined based on the mapping between **deviceType** and these three factors. | Object| Yes (initial value: left empty) Set this attribute when an application has multiple entry modules.| +| distroFilter | Distribution rules of the application. This attribute defines the rules for distributing HAP files based on different device specifications, so that precise matching can be performed when the application market distributes applications. Distribution rules cover three factors: API version, screen shape, and screen resolution. During distribution, a unique HAP is determined based on the mapping between **deviceType** and these three factors.| Object| Yes (initial value: left empty) Set this attribute when an application has multiple entry modules.| |commonEvents | Information about the common event static subscriber, which must contain the subscriber name, required permissions, and list of the subscribed common events. When a subscribed event is sent, the static subscriber is started. Unlike the common dynamic subscriber, the static subscriber does not need to actively call the common event subscription API in the service code, and may not be started when the common event is released. In constrast, the dynamic subscriber actively calls the common event subscription API and therefore requires the application to stay active.| Object array| Yes (initial value: left empty)| | entryTheme | Keyword of an OpenHarmony internal theme. Set it to the resource index of the name.| String| Yes (initial value: left empty)| |testRunner | Test runner configuration.| Object| Yes (initial value: left empty)| @@ -30,7 +30,7 @@ Example of the **module** tag structure: ```json { "module": { - "mainAbility": ".MainAbility", + "mainAbility": ".EntryAbility", "deviceType": [ "default", "tablet" @@ -49,8 +49,8 @@ Example of the **module** tag structure: ], "orientation": "unspecified", "visible": true, - "srcPath": "MainAbility", - "name": ".MainAbility", + "srcPath": "EntryAbility", + "name": ".EntryAbility", "srcLanguage": "ets", "icon": "$media:icon", "description": "$string:MainAbility_desc", @@ -78,7 +78,7 @@ Example of the **module** tag structure: "pages": [ "pages/Index" ], - "name": ".MainAbility", + "name": ".EntryAbility", "window": { "designWidth": 720, "autoDesignWidth": false @@ -89,7 +89,9 @@ Example of the **module** tag structure: } ``` -#### Table 2 Internal structure of the distro attribute +## Internal Structure of the distro Attribute + +**Table 2** Internal structure of the distro attribute | Name| Description| Data Type| Initial Value Allowed| | -------- | -------- | -------- | -------- | @@ -110,7 +112,9 @@ Example of the **distro** attribute structure: } ``` -#### Table 3 Internal structure of the metadata attribute +## Internal Structure of the metadata Attribute + +**Table 3** Internal structure of the metadata attribute | Name| Description| Data Type| Initial Value Allowed| | -------- | -------- | -------- | -------- | @@ -118,7 +122,9 @@ Example of the **distro** attribute structure: | results | Metadata of the ability return value. The metadata of each return value consists of the **description**, **name**, and **type** sub-attributes.| Object array| Yes (initial value: left empty)| | customizeData | Custom metadata of the parent component. **parameters** and **results** cannot be configured in **application**.| Object array| Yes (initial value: left empty)| -#### Table 4 Internal structure of the parameters attribute +## Internal Structure of the parameters Attribute + +**Table 4** Internal structure of the parameters attribute | Name| Description| Data Type| Initial Value Allowed| | -------- | -------- | -------- | -------- | @@ -126,7 +132,9 @@ Example of the **distro** attribute structure: | name | Name of the parameter passed for calling the ability. The value can contain a maximum of 255 bytes.| String| No| | type | Type of the parameter passed for calling the ability, for example, **Integer**.| String| No| -#### Table 5 Internal structure of the results attribute +## Internal Structure of the results Attribute + +**Table 5** Internal structure of the results attribute | Name| Description| Data Type| Initial Value Allowed| | -------- | -------- | -------- | -------- | @@ -134,7 +142,9 @@ Example of the **distro** attribute structure: | name | Name of the return value. The value can contain a maximum of 255 characters.| String| Yes (initial value: left empty)| | type | Type of the return value, for example, **Integer**.| String| No| -#### Table 6 Internal structure of the customizeData attribute +## Internal Structure of the customizeData Attribute + +**Table 6** Internal structure of the customizeData attribute | Name| Description| Data Type| Initial Value Allowed| | -------- | -------- | -------- | -------- | @@ -166,7 +176,9 @@ Example of the metadata attribute: } ``` -#### Table 7 Values of the deviceType attribute +## deviceType Attribute + +**Table 7** Values of the deviceType attribute | Device Type| Value| Description| | -------- | -------- | -------- | @@ -176,12 +188,14 @@ Example of the metadata attribute: | Head unit| car | - | | Default device| default | OpenHarmony device that provides full access to system capabilities.| -#### Table 8 Internal structure of the abilities attribute +## Internal Structure of the abilities Attribute + +**Table 8** Internal structure of the abilities attribute | Name| Description| Data Type| Initial Value Allowed| | -------- | -------- | -------- | -------- | | process | Name of the process running the application or ability. If the **process** attribute is configured in the **deviceConfig** tag, all abilities of the application run in this process. You can set the **process** attribute for a specific ability in the **abilities** attribute, so that the ability can run in the particular process. If this attribute is set to the name of the process running other applications, all these applications can run in the same process, provided they have the same unified user ID and the same signature. The value can contain a maximum of 31 bytes.| String| Yes (initial value: left empty)| -| name | Ability name. The value can be a reverse domain name, in the format of "*Bundle name*.*Class name*", for example, **"com.example.myapplication.MainAbility"**. Alternatively, the value can start with a period (.) followed by the class name, for example, **".MainAbility"**.
The ability name must be unique in an application. Note: If you use DevEco Studio to create the project, an ability named **MainAbility** will be created by default, and its configuration will be saved to the **config.json** file. The value of this attribute can be customized if you use other IDEs. The value can contain a maximum of 127 bytes.| String| No| +| name | Ability name. The value can be a reverse domain name, in the format of "*bundleName*.*className*", for example, **"com.example.myapplication.EntryAbility"**. Alternatively, the value can start with a period (.) followed by the class name, for example, **".EntryAbility"**.
The ability name must be unique in an application. Note: If you use DevEco Studio to create the project, an ability named **EntryAbility** will be created by default, and its configuration will be saved to the **config.json** file. The value of this attribute can be customized if you use other IDEs. The value can contain a maximum of 127 bytes.| String| No| | description | Description of the ability. The value can be a string or a resource index to descriptions in multiple languages. The value can contain a maximum of 255 bytes.| String| Yes (initial value: left empty)| | icon | Index to the ability icon file. Example value: **$media:ability_icon**. In the **skills** attribute of the ability, if the **actions** value contains **action.system.home** and the **entities** value contains **entity.system.home**, the icon of the ability is also used as the icon of the application. If multiple abilities address this condition, the icon of the first candidate ability is used as the application icon.
Note: The **icon** and **label** values of an application are visible to users. Ensure that at least one of them is different from any existing icons or labels.| String| Yes (initial value: left empty)| | label | Ability name displayed to users. The value can be a name string or a resource index to names in multiple languages. In the **skills** attribute of the ability, if the **actions** value contains **action.system.home** and the **entities** value contains **entity.system.home**, the label of the ability is also used as the label of the application. If multiple abilities address this condition, the label of the first candidate ability is used as the application label.
Note: The **icon** and **label** values of an application are visible to users. Ensure that at least one of them is different from any existing icons or labels. The value can be a reference to a string defined in a resource file or a string enclosed in brackets ({}). The value can contain a maximum of 255 characters.| String| Yes (initial value: left empty)| @@ -210,7 +224,9 @@ Example of the metadata attribute: | startWindowBackground | Index to the background color resource file of the ability startup page. This attribute applies only to the ability using the Page template. Example: **$color:red**.| String| Yes (initial value: left empty)| | removeMissionAfterTerminate | Whether to remove the relevant task from the task list after the ability is destroyed. This attribute applies only to the ability using the Page template. The value **true** means to remove the relevant task from the task list after the ability is destroyed, and **false** means the opposite.| Boolean| Yes (initial value: **false**)| -#### Table 9 Internal structure of the uriPermission attribute +## Internal Structure of the uriPermission Attribute + +**Table 9** Internal structure of the uriPermission attribute | Name| Description| Data Type| Initial Value Allowed| | -------- | -------- | -------- | -------- | @@ -223,7 +239,7 @@ Example of the **abilities** attribute structure: ```json "abilities": [ { - "name": ".MainAbility", + "name": ".EntryAbility", "description": "test main ability", // $media:ic_launcher is a media resource. "icon": "$media:ic_launcher", @@ -286,8 +302,9 @@ Example of the **abilities** attribute structure: } ] ``` +## Internal Structure of the skills Attribute -#### Table 10 Internal structure of the skills attribute +**Table 10** Internal structure of the skills attribute | Name| Description| Data Type| Initial Value Allowed| | -------- | -------- | -------- | -------- | @@ -295,7 +312,9 @@ Example of the **abilities** attribute structure: | entities | Entities of the **want** that can be accepted by the ability, such as video and home applications.| String array| Yes (initial value: left empty)| | uris | Data specifications to be added to the want filter. The specification can be of data type only (**mimeType** attribute), URI only, or both.
The URI is specified by separate attributes of each part: <scheme>://<host>:<port>[<path>\|<pathStartWith>\|<pathRegex>].
**scheme** is mandatory when the specification is of the URI type and is optional when the specification is of data type only.| Object array| Yes (initial value: left empty)| -#### Table 11 Internal structure of the uris attribute +## Internal Structure of the uris Attribute + +**Table 11** Internal structure of the uris attribute | Name| Description| Data Type| Initial Value Allowed| | -------- | -------- | -------- | -------- | @@ -332,22 +351,28 @@ Example of the **skills** attribute structure: ] ``` -#### Table 12 reqPermissions attributes +## reqPermissions Attributes + +**Table 12** reqPermissions attributes | Name| Description| Data Type| Initial Value Allowed| | -------- | -------- | -------- | -------- | | name | Name of the permission to request.| String| No| -| reason | Reason for requesting the permission. Multi-language adaptation is required.| String| No if the permission to request is **user_grant**, yes in other cases (initial value: left empty)
If the permission to request is **user_grant** this attribute is required for the application to be released to the application market, and multi-language adaptation is required. | +| reason | Reason for requesting the permission. Multi-language adaptation is required.| String| No if the permission to request is **user_grant**, yes in other cases (initial value: left empty)
If the permission to request is **user_grant** this attribute is required for the application to be released to the application market, and multi-language adaptation is required.| | usedScene | Scene under which the permission is used. It consists of the **abilities** and **when** sub-attributes.
- **ability**: ability name. Multiple ability names can be configured.
- **when**: time for using the permission. The options are **inuse** and **always**.| Object| Yes (initial value: left empty)
**when**: initial value (**inuse**) allowed| -#### Table 13 Internal structure of the usedScene attribute +## Internal Structure of the usedScene Attribute + +**Table 13** Internal structure of the usedScene attribute | Name| Description| Data Type| Initial Value Allowed| | -------- | -------- | -------- | -------- | | ability | Names of abilities that require the permission.| String array| Yes (initial value: all ability names)| | when | Time when the permission is used.
**inuse**: The permission is required when the ability is in use.
**always**: The permission is required at all times.| Value| Yes (initial value: left empty)| -#### Table 14 Internal structure of the js attribute +## Internal Structure of the js Attribute + +**Table 14** Internal structure of the js attribute | Name| Description| Data Type| Initial Value Allowed| | -------- | -------- | -------- | -------- | @@ -357,14 +382,18 @@ Example of the **skills** attribute structure: | type | Type of the JS component. The options are as follows:
**normal**: indicates an application instance.
**form**: indicates a widget instance.| String| Yes (initial value: **"normal"**)| |mode | Development mode of the JS component.| Object| Yes (initial value: left empty)| -#### Table 15 Internal structure of the window attribute +## Internal Structure of the window Attribute + +**Table 15** Internal structure of the window attribute | Name| Description| Data Type| Initial Value Allowed| | -------- | -------- | -------- | -------- | | designWidth | Baseline width for page design. The size of an element is scaled by the actual device width.| Number| Yes (initial value: 720px)| | autoDesignWidth | Whether to automatically calculate the baseline width for page design. If it is set to **true**, the **designWidth** attribute becomes invalid. The baseline width is calculated based on the device width and screen density.| Boolean| Yes (initial value: **false**)| -#### Table 16 Internal structure of the mode attribute +## Internal Structure of the mode Attribute + +**Table 16** Internal structure of the mode attribute | Name| Description| Data Type| Initial Value Allowed| | -------- | -------- | -------- | -------- | @@ -391,7 +420,9 @@ Example of the **js** attribute structure: ] ``` -#### Table 17 Internal structure of the shortcuts attribute +## Internal Structure of the shortcuts Attribute + +**Table 17** Internal structure of the shortcuts attribute | Name| Description| Data Type| Initial Value Allowed| | -------- | -------- | -------- | -------- | @@ -400,7 +431,9 @@ Example of the **js** attribute structure: | icon | Icon of the shortcut. The value is a resource index to the description.| String| Yes (initial value: left empty)| | intents | Wants to which the shortcut points. The attribute consists of the **targetClass** and **targetBundle** sub-attributes.| Object array| Yes (initial value: left empty)| -#### Table 18 Internal structure of the intents attribute +## Internal Structure of the intents Attribute + +**Table 18** Internal structure of the intents attribute | Name| Description| Data Type| Initial Value Allowed| | -------- | -------- | -------- | -------- | @@ -419,14 +452,16 @@ Example of the **shortcuts** attribute structure: "intents": [ { "targetBundle": "com.example.world.test", - "targetClass": "com.example.world.test.entry.MainAbility" + "targetClass": "com.example.world.test.entry.EntryAbility" } ] } ] ``` -#### Table 19 Internal structure of the forms attribute +## Internal Structure of the forms Attribute + +**Table 19** Internal structure of the forms attribute | Name| Description| Data Type| Initial Value Allowed| | -------- | -------- | -------- | -------- | @@ -445,7 +480,9 @@ Example of the **shortcuts** attribute structure: | metaData | Metadata of the widget. This attribute contains the array of the **customizeData** attribute.| Object| Yes (initial value: left empty)| | customizeData | Custom information of the widget.| Object array| Yes (initial value: left empty)| -#### Table 20 Internal structure of the customizeData attribute +## Internal Structure of the customizeData Attribute + +**Table 20** Internal structure of the customizeData attribute | Name| Description| Data Type| Initial Value Allowed| | -------- | -------- | -------- | -------- | @@ -494,7 +531,7 @@ Example of the **forms** attribute structure: "portraitLayouts": [ "$layout:ability_form" ], - "formConfigAbility": "ability://com.example.myapplication.fa/.MainAbility", + "formConfigAbility": "ability://com.example.myapplication.fa/.EntryAbility", "metaData": { "customizeData": [ { @@ -507,7 +544,9 @@ Example of the **forms** attribute structure: ] ``` -#### Table 21 Internal structure of the distroFilter attribute +## Internal Structure of the distroFilter Attribute + +**Table 21** Internal structure of the distroFilter attribute | Name| Description| Data Type| Initial Value Allowed| | -------- | -------- | -------- | -------- | @@ -517,35 +556,45 @@ Example of the **forms** attribute structure: |screenDensity | Pixel density of the screen, in dots per inch (DPI).| Object array| Yes (initial value: left empty)| | countryCode | Country code used for distributing the application. For details, see the ISO-3166-1 standard. Multiple enumerated values of countries and regions are supported.| Object array| Yes (initial value: left empty)| -#### Table 22 Internal structure of the apiVersion attribute +## Internal Structure of the apiVersion Attribute + +**Table 22** Internal structure of the apiVersion attribute | Name| Description| Data Type| Initial Value Allowed| | -------- | -------- | -------- | -------- | | policy | Rule for the sub-attribute value. Set this attribute to **exclude** or **include**.
- **exclude**: Exclude the matches of the sub-attribute value.
- **include**: Include the matches of the sub-attribute value.| String| No| | value | API versions, for example, 4, 5, or 6. Example: If an application comes with two versions developed using API version 5 and API version 6 for the same device model, two installation packages of the entry type can be released for the application.| Array| No| -#### Table 23 Internal structure of the screenShape attribute +## Internal Structure of the screenShape Attribute + +**Table 23** Internal structure of the screenShape attribute | Name| Description| Data Type| Initial Value Allowed| | -------- | -------- | -------- | -------- | | policy | Rule for the sub-attribute value. Set this attribute to **exclude** or **include**.
- **exclude**: Exclude the matches of the sub-attribute value.
- **include**: Include the matches of the sub-attribute value.| String| No| -| value | Screen shapes. The value can be **circle**, **rect**, or both. Example: Different HAP files can be provided for a smart watch with a circular face and that with a rectangular face. | Array| No| +| value | API versions, for example, 4, 5, or 6. Example: If an application comes with two versions developed using API version 5 and API version 6 for the same device model, two installation packages of the entry type can be released for the application.| Array| No| + +## Internal Structure of the screenWindow Attribute -#### Table 24 Internal structure of the screenWindow attribute +**Table 24** Internal structure of the screenWindow attribute | Name| Description| Data Type| Initial Value Allowed| | -------- | -------- | -------- | -------- | | policy | Rule for the sub-attribute value. Set this attribute to **exclude** or **include**.
- **exclude**: Exclude the matches of the sub-attribute value.
- **include**: Include the matches of the sub-attribute value.| String| No| -| value | Screen width and height, in pixels. The value an array of supported width and height pairs, each in the "width * height" format, for example, **"454 * 454"**. | Array| No| +| value | API versions, for example, 4, 5, or 6. Example: If an application comes with two versions developed using API version 5 and API version 6 for the same device model, two installation packages of the entry type can be released for the application.| Array| No| + +## Internal Structure of the screenDensity Attribute -#### Table 25 Internal structure of the screenDensity attribute +**Table 25** Internal structure of the screenDensity attribute | Name| Description| Data Type| Initial Value Allowed| | -------- | -------- | -------- | -------- | | policy | Rule for the sub-attribute value. Set this attribute to **exclude** or **include**.
- **exclude**: Exclude the matches of the sub-attribute value.
- **include**: Include the matches of the sub-attribute value.| String| No| | value | Pixel density of the screen, in dots per inch (DPI). The options are as follows:
**sdpi**: small-scale DPI. This value is applicable to devices with a DPI range of (0, 120].
**mdpi**: medium-scale DPI. This value is applicable to devices with a DPI range of (120, 160].
**ldpi**: large-scale DPI. This value is applicable to devices with a DPI range of (160, 240].
**xldpi**: extra-large-scale DPI. This value is applicable to devices with a DPI range of (240, 320].
**xxldpi**: extra-extra-large-scale DPI. This value is applicable to devices with a DPI range of (320, 480].
**xxxldpi**: extra-extra-extra-large-scale DPI. This value is applicable to devices with a DPI range of (480, 640].| Array| No| -#### Table 26 Internal structure of the countryCode attribute +## Internal Structure of the countryCode attribute + +**Table 26** Internal structure of the countryCode attribute | Name| Description| Data Type| Initial Value Allowed| | -------- | -------- | -------- | -------- | @@ -580,7 +629,9 @@ Example of the **distroFilter** attribute structure: } ``` -#### Table 27 Internal structure of the commonEvents attribute +## Internal Structure of the commonEvents Attribute + +**Table 27** Internal structure of the commonEvents attribute | Name| Description| Data Type| Initial Value Allowed| | -------- | -------- | -------- | -------- | @@ -596,7 +647,7 @@ Example of the **commonEvents** attribute structure: ```json "commonEvents": [ { - "name": ".MainAbility", + "name": ".EntryAbility", "permission": "ohos.permission.GET_BUNDLE_INFO", "data": [ "com.example.demo", @@ -610,7 +661,9 @@ Example of the **commonEvents** attribute structure: ] ``` -#### Table 28 Internal structure of the testRunner attribute +## Internal Structure of the testRunner Attribute + +**Table 28** Internal structure of the testRunner attribute | Name| Description| Data Type| Initial Value Allowed| | -------- | -------- | -------- | -------- | @@ -627,7 +680,8 @@ Example of the **commonEvents** attribute structure: **definePermission** applies only to system applications and does not take effect for third-party applications. -#### Table 29 Internal structure of the definePermissions attribute +## Internal Structure of the definePermissions Attribute +**Table 29** Internal structure of the definePermissions attribute | Name| Description| Data Type| Initial Value Allowed| | -------- | -------- | -------- | -------- | diff --git a/en/application-dev/quick-start/multi-hap-release-deployment.md b/en/application-dev/quick-start/multi-hap-release-deployment.md index 785f476bf2fa508470d433477f4e1139e76589fd..ec688879ebb61ceb595feb974f2276d700479ef5 100644 --- a/en/application-dev/quick-start/multi-hap-release-deployment.md +++ b/en/application-dev/quick-start/multi-hap-release-deployment.md @@ -28,12 +28,12 @@ You can use DevEco Studio to build code into one or more HAP files. Then, you ca uninstall bundle successfully. ``` -* Using Bundle Manager (bm) for debugging +* Using [Bundle Manager (bm)](../../application-dev/tools/bm-tool.md) for debugging When using bm to install or update an HAP file, the HAP file path is the one on the real device. The command reference is as follows: ``` // Installation and update: Multiple file paths can be specified. - bm install -p /data/app/entry.hap /data/app/ feature.hap + bm install -p /data/app/entry.hap /data/app/feature.hap // The execution result is as follows: install bundle successfully. // Uninstall diff --git a/en/application-dev/reference/apis/Readme-EN.md b/en/application-dev/reference/apis/Readme-EN.md index 3d225b8fd3e7c8941fddce20f678dd6797f6ae8b..94813374a05e1dfe941c796b8c053b23cd3a1ff3 100644 --- a/en/application-dev/reference/apis/Readme-EN.md +++ b/en/application-dev/reference/apis/Readme-EN.md @@ -4,71 +4,71 @@ - Ability Framework - Stage Model (Recommended) - - [@ohos.app.ability.Ability](js-apis-app-ability-ability.md) - - [@ohos.app.ability.AbilityConstant](js-apis-app-ability-abilityConstant.md) - - [@ohos.app.ability.abilityLifecycleCallback](js-apis-app-ability-abilityLifecycleCallback.md) - - [@ohos.app.ability.AbilityStage](js-apis-app-ability-abilityStage.md) - - [@ohos.app.ability.common](js-apis-app-ability-common.md) - - [@ohos.app.ability.contextConstant](js-apis-app-ability-contextConstant.md) - - [@ohos.app.ability.EnvironmentCallback](js-apis-app-ability-environmentCallback.md) - - [@ohos.app.ability.ExtensionAbility](js-apis-app-ability-extensionAbility.md) - - [@ohos.app.ability.ServiceExtensionAbility](js-apis-app-ability-serviceExtensionAbility.md) - - [@ohos.app.ability.StartOptions](js-apis-app-ability-startOptions.md) - - [@ohos.app.ability.UIAbility](js-apis-app-ability-uiAbility.md) - - [@ohos.app.form.FormExtensionAbility](js-apis-app-form-formExtensionAbility.md) - - [@ohos.application.DataShareExtensionAbility](js-apis-application-dataShareExtensionAbility.md) - - [@ohos.application.StaticSubscriberExtensionAbility](js-apis-application-staticSubscriberExtensionAbility.md) + - [@ohos.app.ability.Ability (Ability Base Class)](js-apis-app-ability-ability.md) + - [@ohos.app.ability.AbilityConstant (AbilityConstant)](js-apis-app-ability-abilityConstant.md) + - [@ohos.app.ability.abilityLifecycleCallback (AbilityLifecycleCallback)](js-apis-app-ability-abilityLifecycleCallback.md) + - [@ohos.app.ability.AbilityStage (AbilityStage)](js-apis-app-ability-abilityStage.md) + - [@ohos.app.ability.common (Context)](js-apis-app-ability-common.md) + - [@ohos.app.ability.contextConstant (ContextConstant)](js-apis-app-ability-contextConstant.md) + - [@ohos.app.ability.EnvironmentCallback (EnvironmentCallback)](js-apis-app-ability-environmentCallback.md) + - [@ohos.app.ability.ExtensionAbility (ExtensionAbility Base Class)](js-apis-app-ability-extensionAbility.md) + - [@ohos.app.ability.ServiceExtensionAbility (ServiceExtensionAbility)](js-apis-app-ability-serviceExtensionAbility.md) + - [@ohos.app.ability.StartOptions (StartOptions)](js-apis-app-ability-startOptions.md) + - [@ohos.app.ability.UIAbility (UIAbility)](js-apis-app-ability-uiAbility.md) + - [@ohos.app.form.FormExtensionAbility (FormExtensionAbility)](js-apis-app-form-formExtensionAbility.md) + - [@ohos.application.DataShareExtensionAbility (DataShare Extension Ability)](js-apis-application-dataShareExtensionAbility.md) + - [@ohos.application.StaticSubscriberExtensionAbility (StaticSubscriberExtensionAbility)](js-apis-application-staticSubscriberExtensionAbility.md) - Stage Model (To Be Deprecated Soon) - - [@ohos.application.Ability](js-apis-application-ability.md) - - [@ohos.application.AbilityConstant](js-apis-application-abilityConstant.md) - - [@ohos.application.AbilityLifecycleCallback](js-apis-application-abilityLifecycleCallback.md) - - [@ohos.application.AbilityStage](js-apis-application-abilityStage.md) - - [@ohos.application.context](js-apis-application-context.md) - - [@ohos.application.EnvironmentCallback](js-apis-application-environmentCallback.md) - - [@ohos.application.ExtensionAbility](js-apis-application-extensionAbility.md) - - [@ohos.application.FormExtension](js-apis-application-formExtension.md) - - [@ohos.application.ServiceExtensionAbility](js-apis-application-serviceExtensionAbility.md) - - [@ohos.application.StartOptions](js-apis-application-startOptions.md) + - [@ohos.application.Ability (Ability)](js-apis-application-ability.md) + - [@ohos.application.AbilityConstant (AbilityConstant)](js-apis-application-abilityConstant.md) + - [@ohos.application.AbilityLifecycleCallback (AbilityLifecycleCallback)](js-apis-application-abilityLifecycleCallback.md) + - [@ohos.application.AbilityStage (AbilityStage)](js-apis-application-abilityStage.md) + - [@ohos.application.context (Context)](js-apis-application-context.md) + - [@ohos.application.EnvironmentCallback (EnvironmentCallback)](js-apis-application-environmentCallback.md) + - [@ohos.application.ExtensionAbility (ExtensionAbility)](js-apis-application-extensionAbility.md) + - [@ohos.application.FormExtension (FormExtension)](js-apis-application-formExtension.md) + - [@ohos.application.ServiceExtensionAbility (ServiceExtensionAbility)](js-apis-application-serviceExtensionAbility.md) + - [@ohos.application.StartOptions (StartOptions)](js-apis-application-startOptions.md) - FA Model - - [@ohos.ability.ability](js-apis-ability-ability.md) - - [@ohos.ability.featureAbility](js-apis-ability-featureAbility.md) - - [@ohos.ability.particleAbility](js-apis-ability-particleAbility.md) + - [@ohos.ability.ability (Ability)](js-apis-ability-ability.md) + - [@ohos.ability.featureAbility (FeatureAbility)](js-apis-ability-featureAbility.md) + - [@ohos.ability.particleAbility (ParticleAbility)](js-apis-ability-particleAbility.md) - Both Models (Recommended) - - [@ohos.app.ability.abilityDelegatorRegistry](js-apis-app-ability-abilityDelegatorRegistry.md) - - [@ohos.app.ability.abilityManager](js-apis-app-ability-abilityManager.md) - - [@ohos.app.ability.appManager](js-apis-app-ability-appManager.md) - - [@ohos.app.ability.appRecovery](js-apis-app-ability-appRecovery.md) - - [@ohos.app.ability.Configuration](js-apis-app-ability-configuration.md) - - [@ohos.app.ability.ConfigurationConstant](js-apis-app-ability-configurationConstant.md) - - [@ohos.app.ability.dataUriUtils](js-apis-app-ability-dataUriUtils.md) - - [@ohos.app.ability.errorManager](js-apis-app-ability-errorManager.md) - - [@ohos.app.ability.missionManager](js-apis-app-ability-missionManager.md) - - [@ohos.app.ability.quickFixManager](js-apis-app-ability-quickFixManager.md) - - [@ohos.app.ability.Want](js-apis-app-ability-want.md) - - [@ohos.app.ability.wantAgent](js-apis-app-ability-wantAgent.md) - - [@ohos.app.ability.wantConstant](js-apis-app-ability-wantConstant.md) - - [@ohos.app.form.formBindingData](js-apis-app-form-formBindingData.md) - - [@ohos.app.form.formHost](js-apis-app-form-formHost.md) - - [@ohos.app.form.formInfo](js-apis-app-form-formInfo.md) - - [@ohos.app.form.formProvider](js-apis-app-form-formProvider.md) + - [@ohos.app.ability.abilityDelegatorRegistry (AbilityDelegatorRegistry)](js-apis-app-ability-abilityDelegatorRegistry.md) + - [@ohos.app.ability.abilityManager (AbilityManager)](js-apis-app-ability-abilityManager.md) + - [@ohos.app.ability.appManager (appManager)](js-apis-app-ability-appManager.md) + - [@ohos.app.ability.appRecovery (appRecovery)](js-apis-app-ability-appRecovery.md) + - [@ohos.app.ability.Configuration (Configuration)](js-apis-app-ability-configuration.md) + - [@ohos.app.ability.ConfigurationConstant (ConfigurationConstant)](js-apis-app-ability-configurationConstant.md) + - [@ohos.app.ability.dataUriUtils (DataUriUtils)](js-apis-app-ability-dataUriUtils.md) + - [@ohos.app.ability.errorManager (ErrorManager)](js-apis-app-ability-errorManager.md) + - [@ohos.app.ability.missionManager (missionManager)](js-apis-app-ability-missionManager.md) + - [@ohos.app.ability.quickFixManager (quickFixManager)](js-apis-app-ability-quickFixManager.md) + - [@ohos.app.ability.Want (Want)](js-apis-app-ability-want.md) + - [@ohos.app.ability.wantAgent (WantAgent)](js-apis-app-ability-wantAgent.md) + - [@ohos.app.ability.wantConstant (wantConstant)](js-apis-app-ability-wantConstant.md) + - [@ohos.app.form.formBindingData (formBindingData)](js-apis-app-form-formBindingData.md) + - [@ohos.app.form.formHost (FormHost)](js-apis-app-form-formHost.md) + - [@ohos.app.form.formInfo (FormInfo)](js-apis-app-form-formInfo.md) + - [@ohos.app.form.formProvider (FormProvider)](js-apis-app-form-formProvider.md) - Both Models (To Be Deprecated Soon) - - [@ohos.ability.dataUriUtils](js-apis-ability-dataUriUtils.md) - - [@ohos.ability.errorCode](js-apis-ability-errorCode.md) - - [@ohos.ability.wantConstant](js-apis-ability-wantConstant.md) - - [@ohos.application.abilityDelegatorRegistry](js-apis-application-abilityDelegatorRegistry.md) - - [@ohos.application.abilityManager](js-apis-application-abilityManager.md) - - [@ohos.application.appManager](js-apis-application-appManager.md) - - [@ohos.application.Configuration](js-apis-application-configuration.md) - - [@ohos.application.ConfigurationConstant](js-apis-application-configurationConstant.md) - - [@ohos.application.errorManager)](js-apis-application-errorManager.md) - - [@ohos.application.formBindingData](js-apis-application-formBindingData.md) - - [@ohos.application.formError](js-apis-application-formError.md) - - [@ohos.application.formHost](js-apis-application-formHost.md) - - [@ohos.application.formInfo](js-apis-application-formInfo.md) - - [@ohos.application.formProvider](js-apis-application-formProvider.md) - - [@ohos.application.missionManager](js-apis-application-missionManager.md) - - [@ohos.application.Want](js-apis-application-want.md) - - [@ohos.wantAgent](js-apis-wantAgent.md) + - [@ohos.ability.dataUriUtils (DataUriUtils)](js-apis-ability-dataUriUtils.md) + - [@ohos.ability.errorCode (ErrorCode)](js-apis-ability-errorCode.md) + - [@ohos.ability.wantConstant (wantConstant)](js-apis-ability-wantConstant.md) + - [@ohos.application.abilityDelegatorRegistry (AbilityDelegatorRegistry)](js-apis-application-abilityDelegatorRegistry.md) + - [@ohos.application.abilityManager (AbilityManager)](js-apis-application-abilityManager.md) + - [@ohos.application.appManager (appManager)](js-apis-application-appManager.md) + - [@ohos.application.Configuration (Configuration)](js-apis-application-configuration.md) + - [@ohos.application.ConfigurationConstant (ConfigurationConstant)](js-apis-application-configurationConstant.md) + - [@ohos.application.errorManager (ErrorManager)](js-apis-application-errorManager.md) + - [@ohos.application.formBindingData (formBindingData)](js-apis-application-formBindingData.md) + - [@ohos.application.formError (FormError)](js-apis-application-formError.md) + - [@ohos.application.formHost (FormHost)](js-apis-application-formHost.md) + - [@ohos.application.formInfo (FormInfo)](js-apis-application-formInfo.md) + - [@ohos.application.formProvider (FormProvider)](js-apis-application-formProvider.md) + - [@ohos.application.missionManager (missionManager)](js-apis-application-missionManager.md) + - [@ohos.application.Want (Want)](js-apis-application-want.md) + - [@ohos.wantAgent (WantAgent)](js-apis-wantAgent.md) - Dependent Elements and Definitions - ability - [abilityResult](js-apis-inner-ability-abilityResult.md) @@ -108,7 +108,6 @@ - [MissionListener](js-apis-inner-application-missionListener.md) - [MissionParameter](js-apis-inner-application-missionParameter.md) - [MissionSnapshot](js-apis-inner-application-missionSnapshot.md) - - [PermissionRequestResult](js-apis-permissionrequestresult.md) - [ProcessData](js-apis-inner-application-processData.md) - [ProcessRunningInfo](js-apis-inner-application-processRunningInfo.md) - [ProcessRunningInformation](js-apis-inner-application-processRunningInformation.md) @@ -123,26 +122,26 @@ - continuation - [continuationExtraParams](js-apis-continuation-continuationExtraParams.md) - [continuationResult](js-apis-continuation-continuationResult.md) - + - Common Event and Notification - - [@ohos.commonEventManager (Recommended)](js-apis-commonEventManager.md) - - [@ohos.events.emitter](js-apis-emitter.md) - - [@ohos.notificationManager (Recommended)](js-apis-notificationManager.md) - - [@ohos.notificationSubscribe (Recommended)](js-apis-notificationSubscribe.md) - - [@ohos.commonEvent (To Be Deprecated Soon)](js-apis-commonEvent.md) - - [@ohos.notification](js-apis-notification.md) + - [@ohos.commonEventManager (Common Event) (Recommended)](js-apis-commonEventManager.md) + - [@ohos.events.emitter (Emitter)](js-apis-emitter.md) + - [@ohos.notificationManager (NotificationManager) (Recommended)](js-apis-notificationManager.md) + - [@ohos.notificationSubscribe (NotificationSubscribe) (Recommended)](js-apis-notificationSubscribe.md) + - [@ohos.commonEvent (Common Event) (To Be Deprecated Soon)](js-apis-commonEvent.md) + - [@ohos.notification (Notification) (To Be Deprecated Soon)](js-apis-notification.md) - application - [EventHub](js-apis-inner-application-eventHub.md) - Bundle Management - - [@ohos.bundle.appControl](js-apis-appControl.md) - - [@ohos.bundle.bundleManager](js-apis-bundleManager.md) - - [@ohos.bundle.bundleMonitor](js-apis-bundleMonitor.md) - - [@ohos.bundle.defaultAppManager](js-apis-defaultAppManager.md) + - [@ohos.bundle.appControl (appControl)](js-apis-appControl.md) + - [@ohos.bundle.bundleManager (bundleManager)](js-apis-bundleManager.md) + - [@ohos.bundle.bundleMonitor (bundleMonitor)](js-apis-bundleMonitor.md) + - [@ohos.bundle.defaultAppManager (Default Application Management)](js-apis-defaultAppManager.md) - [@ohos.bundle.distributedBundleManager (distributedBundleManager)](js-apis-distributedBundleManager.md) - - [@ohos.bundle.freeInstall](js-apis-freeInstall.md) - - [@ohos.bundle.installer](js-apis-installer.md) - - [@ohos.bundle.launcherBundleManager](js-apis-launcherBundleManager.md) - - [@ohos.zlib](js-apis-zlib.md) + - [@ohos.bundle.freeInstall (freeInstall)](js-apis-freeInstall.md) + - [@ohos.bundle.installer (installer)](js-apis-installer.md) + - [@ohos.bundle.launcherBundleManager (launcherBundleManager)](js-apis-launcherBundleManager.md) + - [@ohos.zlib (Zip)](js-apis-zlib.md) - bundleManager - [abilityInfo](js-apis-bundleManager-abilityInfo.md) - [applicationInfo](js-apis-bundleManager-applicationInfo.md) @@ -158,41 +157,41 @@ - [remoteAbilityInfo](js-apis-bundleManager-remoteAbilityInfo.md) - [shortcutInfo](js-apis-bundleManager-shortcutInfo.md) - UI Page - - [@ohos.animator](js-apis-animator.md) - - [@ohos.curves](js-apis-curve.md) - - [@ohos.matrix4](js-apis-matrix4.md) - - [@ohos.mediaquery](js-apis-mediaquery.md) - - [@ohos.promptAction](js-apis-promptAction.md) - - [@ohos.router](js-apis-router.md) + - [@ohos.animator (Animator)](js-apis-animator.md) + - [@ohos.curves (Interpolation Calculation)](js-apis-curve.md) + - [@ohos.matrix4 (Matrix Transformation)](js-apis-matrix4.md) + - [@ohos.mediaquery (Media Query)](js-apis-mediaquery.md) + - [@ohos.promptAction (Prompt)](js-apis-promptAction.md) + - [@ohos.router (Page Routing)](js-apis-router.md) - Graphics - - [@ohos.animation.windowAnimationManager](js-apis-windowAnimationManager.md) - - [@ohos.application.WindowExtensionAbility](js-apis-application-windowExtensionAbility.md) - - [@ohos.display ](js-apis-display.md) - - [@ohos.effectKit](js-apis-effectKit.md) - - [@ohos.graphics.colorSpaceManager](js-apis-colorSpaceManager.md) - - [@ohos.screen](js-apis-screen.md) - - [@ohos.screenshot](js-apis-screenshot.md) - - [@ohos.window](js-apis-window.md) + - [@ohos.animation.windowAnimationManager (Window Animation Management)](js-apis-windowAnimationManager.md) + - [@ohos.application.WindowExtensionAbility (WindowExtensionAbility)](js-apis-application-windowExtensionAbility.md) + - [@ohos.display (Display)](js-apis-display.md) + - [@ohos.effectKit (Image Effects)](js-apis-effectKit.md) + - [@ohos.graphics.colorSpaceManager (Color Space Management)](js-apis-colorSpaceManager.md) + - [@ohos.screen (Screen)](js-apis-screen.md) + - [@ohos.screenshot (Screenshot)](js-apis-screenshot.md) + - [@ohos.window (Window)](js-apis-window.md) - webgl - - [webgl](js-apis-webgl.md) - - [webgl2](js-apis-webgl2.md) + - [WebGL](js-apis-webgl.md) + - [WebGL2](js-apis-webgl2.md) - Media - - [@ohos.multimedia.audio](js-apis-audio.md) - - [@ohos.multimedia.avsession](js-apis-avsession.md) - - [@ohos.multimedia.camera](js-apis-camera.md) - - [@ohos.multimedia.image](js-apis-image.md) - - [@ohos.multimedia.media](js-apis-media.md) + - [@ohos.multimedia.audio (Audio Management)](js-apis-audio.md) + - [@ohos.multimedia.avsession (AVSession Management)](js-apis-avsession.md) + - [@ohos.multimedia.camera (Camera Management)](js-apis-camera.md) + - [@ohos.multimedia.image (Image Processing)](js-apis-image.md) + - [@ohos.multimedia.media (Media)](js-apis-media.md) - Resource Management - - [@ohos.i18n](js-apis-i18n.md) - - [@ohos.intl](js-apis-intl.md) - - [@ohos.resourceManager](js-apis-resource-manager.md) + - [@ohos.i18n (Internationalization)](js-apis-i18n.md) + - [@ohos.intl (Internationalization)](js-apis-intl.md) + - [@ohos.resourceManager (Resource Manager)](js-apis-resource-manager.md) - Resource Scheduling - - [@ohos.distributedMissionManager](js-apis-distributedMissionManager.md) - - [@ohos.reminderAgentManager](js-apis-reminderAgentManager.md) - - [@ohos.resourceschedule.backgroundTaskManager](js-apis-resourceschedule-backgroundTaskManager.md) - - [@ohos.resourceschedule.workScheduler](js-apis-resourceschedule-workScheduler.md) - - [@ohos.resourceschedule.usageStatistics](js-apis-resourceschedule-deviceUsageStatistics.md) - - [@ohos.WorkSchedulerExtensionAbility](js-apis-WorkSchedulerExtensionAbility.md) + - [@ohos.distributedMissionManager (Distributed Mission Management)](js-apis-distributedMissionManager.md) + - [@ohos.reminderAgentManager (Reminder Agent Management)](js-apis-reminderAgentManager.md) + - [@ohos.resourceschedule.backgroundTaskManager (Background Task Management)](js-apis-resourceschedule-backgroundTaskManager.md) + - [@ohos.resourceschedule.workScheduler (Work Scheduler)](js-apis-resourceschedule-workScheduler.md) + - [@ohos.resourceschedule.usageStatistics (Device Usage Statistics)](js-apis-resourceschedule-deviceUsageStatistics.md) + - [@ohos.WorkSchedulerExtensionAbility (Work Scheduler Callbacks)](js-apis-WorkSchedulerExtensionAbility.md) - Security - [@ohos.abilityAccessCtrl (Ability Access Control)](js-apis-abilityAccessCtrl.md) - [@ohos.privacyManager (Privacy Management)](js-apis-privacyManager.md) @@ -202,6 +201,8 @@ - [@ohos.userIAM.faceAuth (Facial Authentication)](js-apis-useriam-faceauth.md) - [@ohos.userIAM.userAuth (User Authentication)](js-apis-useriam-userauth.md) - [@system.cipher (Cipher Algorithm)](js-apis-system-cipher.md) + - security + - [PermissionRequestResult](js-apis-permissionrequestresult.md) - Data Management - [@ohos.data.dataAbility (DataAbility Predicates)](js-apis-data-ability.md) - [@ohos.data.dataShare (DataShare)](js-apis-data-dataShare.md) @@ -213,34 +214,35 @@ - [@ohos.data.relationalStore (RDB Store)](js-apis-data-relationalStore.md) - [@ohos.data.ValuesBucket (Value Bucket)](js-apis-data-valuesBucket.md) - data/rdb - - [resultSet](js-apis-data-resultset.md) + - [resultSet (Result Set)](js-apis-data-resultset.md) - File Management - - [@ohos.environment](js-apis-environment.md) + - [@ohos.file.environment (Directory Environment Capability)](js-apis-file-environment.md) - [@ohos.file.fileAccess (User File Access and Management)](js-apis-fileAccess.md) - [@ohos.file.fileExtensionInfo (User File Extension Information)](js-apis-fileExtensionInfo.md) - - [@ohos.fileio (File Management)](js-apis-fileio.md) + - [@ohos.file.fs (File Management)](js-apis-file-fs.md) + - [@ohos.file.hash (File Hash Processing)](js-apis-file-hash.md) + - [@ohos.file.securityLabel (Data Label)](js-apis-file-securityLabel.md) + - [@ohos.file.statvfs (File System Space Statistics)](js-apis-file-statvfs.md) - [@ohos.filemanagement.userFileManager (User Data Management)](js-apis-userFileManager.md) - [@ohos.multimedia.medialibrary (Media Library Management)](js-apis-medialibrary.md) - - [@ohos.securityLabel (Data Label)](js-apis-securityLabel.md) - - [@ohos.statfs (statfs)](js-apis-statfs.md) - [@ohos.storageStatistics (Application Storage Statistics)](js-apis-storage-statistics.md) - [@ohos.volumeManager (Volume Management)](js-apis-volumemanager.md) - Telephony Service - - [@ohos.contact](js-apis-contact.md) - - [@ohos.telephony.call](js-apis-call.md) - - [@ohos.telephony.data](js-apis-telephony-data.md) - - [@ohos.telephony.observer](js-apis-observer.md) - - [@ohos.telephony.radio](js-apis-radio.md) - - [@ohos.telephony.sim](js-apis-sim.md) - - [@ohos.telephony.sms](js-apis-sms.md) + - [@ohos.contact (Contacts)](js-apis-contact.md) + - [@ohos.telephony.call (Call)](js-apis-call.md) + - [@ohos.telephony.data (Cellular Data)](js-apis-telephony-data.md) + - [@ohos.telephony.observer (Observer)](js-apis-observer.md) + - [@ohos.telephony.radio (Network Search)](js-apis-radio.md) + - [@ohos.telephony.sim (SIM Management)](js-apis-sim.md) + - [@ohos.telephony.sms (SMS)](js-apis-sms.md) - Network Management - - [@ohos.net.connection](js-apis-net-connection.md) - - [@ohos.net.ethernet](js-apis-net-ethernet.md) - - [@ohos.net.http](js-apis-http.md) - - [@ohos.net.sharing](js-apis-net-sharing.md) - - [@ohos.net.socket](js-apis-socket.md) - - [@ohos.net.webSocket](js-apis-webSocket.md) - - [@ohos.request](js-apis-request.md) + - [@ohos.net.connection (Network Connection Management)](js-apis-net-connection.md) + - [@ohos.net.ethernet (Ethernet Connection Management)](js-apis-net-ethernet.md) + - [@ohos.net.http (Data Request)](js-apis-http.md) + - [@ohos.net.sharing (Network Sharing)](js-apis-net-sharing.md) + - [@ohos.net.socket (Socket Connection)](js-apis-socket.md) + - [@ohos.net.webSocket (WebSocket Connection)](js-apis-webSocket.md) + - [@ohos.request (Upload and Download)](js-apis-request.md) - Connectivity - [@ohos.bluetooth (Bluetooth)](js-apis-bluetooth.md) - [@ohos.connectedTag (Active Tags)](js-apis-connectedTag.md) @@ -256,136 +258,139 @@ - [nfctech (Standard NFC Technologies)](js-apis-nfctech.md) - [tagSession (Standard NFC Tag Session)](js-apis-tagSession.md) - Basic Features - - [@ohos.accessibility](js-apis-accessibility.md) - - [@ohos.accessibility.config](js-apis-accessibility-config.md) - - [@ohos.accessibility.GesturePat](js-apis-accessibility-GesturePath.md) - - [@ohos.accessibility.GesturePoint](js-apis-accessibility-GesturePoint.md) - - [@ohos.application.AccessibilityExtensionAbility](js-apis-application-accessibilityExtensionAbility.md) - - [@ohos.faultLogger](js-apis-faultLogger.md) - - [@ohos.hichecker](js-apis-hichecker.md) - - [@ohos.hidebug](js-apis-hidebug.md) - - [@ohos.hilog](js-apis-hilog.md) - - [@ohos.hiSysEvent](js-apis-hisysevent.md) - - [@ohos.hiTraceChain](js-apis-hitracechain.md) - - [@ohos.hiTraceMeter](js-apis-hitracemeter.md) - - [@ohos.hiviewdfx.hiAppEvent](js-apis-hiviewdfx-hiappevent.md) - - [@ohos.inputmethod](js-apis-inputmethod.md) - - [@ohos.inputmethodengine](js-apis-inputmethodengine.md) - - [@ohos.inputmethodextensionability](js-apis-inputmethod-extension-ability.md) - - [@ohos.inputmethodextensioncontext](js-apis-inputmethod-extension-context.md) - - [@ohos.inputmethodsubtype](js-apis-inputmethod-subtype.md) - - [@ohos.pasteboard](js-apis-pasteboard.md) - - [@ohos.screenLock](js-apis-screen-lock.md) - - [@ohos.systemTime](js-apis-system-time.md) - - [@ohos.systemTimer](js-apis-system-timer.md) - - [@ohos.wallpaper](js-apis-wallpaper.md) - - [@ohos.web.webview](js-apis-webview.md) - - [console](js-apis-logs.md) + - [@ohos.accessibility (Accessibility)](js-apis-accessibility.md) + - [@ohos.accessibility.config (System Accessibility Configuration)](js-apis-accessibility-config.md) + - [@ohos.accessibility.GesturePath (Gesture Path)](js-apis-accessibility-GesturePath.md) + - [@ohos.accessibility.GesturePoint (Gesture Point)](js-apis-accessibility-GesturePoint.md) + - [@ohos.application.AccessibilityExtensionAbility (AccessibilityExtensionAbility)](js-apis-application-accessibilityExtensionAbility.md) + - [@ohos.faultLogger (FaultLogger)](js-apis-faultLogger.md) + - [@ohos.hichecker (HiChecker)](js-apis-hichecker.md) + - [@ohos.hidebug (HiDebug)](js-apis-hidebug.md) + - [@ohos.hilog (HiLog)](js-apis-hilog.md) + - [@ohos.hiSysEvent (System Event Logging)](js-apis-hisysevent.md) + - [@ohos.hiTraceChain (Distributed Call Chain Tracing)](js-apis-hitracechain.md) + - [@ohos.hiTraceMeter (Performance Tracing)](js-apis-hitracemeter.md) + - [@ohos.hiviewdfx.hiAppEvent (Application Event Logging)](js-apis-hiviewdfx-hiappevent.md) + - [@ohos.inputMethod (Input Method Framework)](js-apis-inputmethod.md) + - [@ohos.inputMethodEngine (Input Method Service)](js-apis-inputmethodengine.md) + - [@ohos.InputMethodExtensionAbility (InputMethodExtensionAbility)](js-apis-inputmethod-extension-ability.md) + - [@ohos.InputMethodExtensionContext (InputMethodExtensionContext)](js-apis-inputmethod-extension-context.md) + - [@ohos.InputMethodSubtype (Input Method Subtype)](js-apis-inputmethod-subtype.md) + - [@ohos.pasteboard (Pasteboard)](js-apis-pasteboard.md) + - [@ohos.screenLock (Screenlock)](js-apis-screen-lock.md) + - [@ohos.systemTime (System Time and Time Zone)](js-apis-system-time.md) + - [@ohos.systemTimer (System Timer)](js-apis-system-timer.md) + - [@ohos.wallpaper (Wallpaper)](js-apis-wallpaper.md) + - [@ohos.web.webview (Webview)](js-apis-webview.md) + - [console (Log)](js-apis-logs.md) - [Timer](js-apis-timer.md) - application - [AccessibilityExtensionContext](js-apis-inner-application-accessibilityExtensionContext.md) - Device Management - - [@ohos.batteryInfo ](js-apis-battery-info.md) - - [@ohos.batteryStatistics](js-apis-batteryStatistics.md) - - [@ohos.brightness](js-apis-brightness.md) - - [@ohos.deviceInfo](js-apis-device-info.md) - - [@ohos.distributedHardware.deviceManager](js-apis-device-manager.md) - - [@ohos.geoLocationManager](js-apis-geoLocationManager.md) - - [@ohos.multimodalInput.inputConsumer](js-apis-inputconsumer.md) - - [@ohos.multimodalInput.inputDevice](js-apis-inputdevice.md) - - [@ohos.multimodalInput.inputDeviceCooperate](js-apis-cooperate.md) - - [@ohos.multimodalInput.inputEvent](js-apis-inputevent.md) - - [@ohos.multimodalInput.inputEventClient](js-apis-inputeventclient.md) - - [@ohos.multimodalInput.inputMonitor](js-apis-inputmonitor.md) - - [@ohos.multimodalInput.keyCode](js-apis-keycode.md) - - [@ohos.multimodalInput.keyEvent](js-apis-keyevent.md) - - [@ohos.multimodalInput.mouseEvent](js-apis-mouseevent.md) - - [@ohos.multimodalInput.pointer](js-apis-pointer.md) - - [@ohos.multimodalInput.touchEvent](js-apis-touchevent.md) - - [@ohos.power](js-apis-power.md) - - [@ohos.runningLock](js-apis-runninglock.md) - - [@ohos.sensor](js-apis-sensor.md) - - [@ohos.settings](js-apis-settings.md) - - [@ohos.stationary](js-apis-stationary.md) + - [@ohos.batteryInfo (Battery Information)](js-apis-battery-info.md) + - [@ohos.batteryStatistics (Battery Statistics)](js-apis-batteryStatistics.md) + - [@ohos.brightness (Screen Brightness)](js-apis-brightness.md) + - [@ohos.deviceInfo (Device Information)](js-apis-device-info.md) + - [@ohos.distributedHardware.deviceManager (Device Management)](js-apis-device-manager.md) + - [@ohos.geoLocationManager (Geolocation Manager)](js-apis-geoLocationManager.md) + - [@ohos.multimodalInput.inputConsumer (Input Consumer)](js-apis-inputconsumer.md) + - [@ohos.multimodalInput.inputDevice (Input Device)](js-apis-inputdevice.md) + - [@ohos.multimodalInput.inputDeviceCooperate (Screen Hopping)](js-apis-cooperate.md) + - [@ohos.multimodalInput.inputEvent (Input Event)](js-apis-inputevent.md) + - [@ohos.multimodalInput.inputEventClient (Key Event Injection)](js-apis-inputeventclient.md) + - [@ohos.multimodalInput.inputMonitor (Input Monitor)](js-apis-inputmonitor.md) + - [@ohos.multimodalInput.keyCode (Key Code)](js-apis-keycode.md) + - [@ohos.multimodalInput.keyEvent (Key Event)](js-apis-keyevent.md) + - [@ohos.multimodalInput.mouseEvent (Mouse Event)](js-apis-mouseevent.md) + - [@ohos.multimodalInput.pointer (Mouse Pointer)](js-apis-pointer.md) + - [@ohos.multimodalInput.touchEvent (Touch Event)](js-apis-touchevent.md) + - [@ohos.power (System Power Management)](js-apis-power.md) + - [@ohos.runningLock (Runninglock)](js-apis-runninglock.md) + - [@ohos.sensor (Sensor)](js-apis-sensor.md) + - [@ohos.settings (Data Item Settings)](js-apis-settings.md) + - [@ohos.stationary (Device Status Awareness Framework)](js-apis-stationary.md) - [@ohos.systemCapability (SystemCapability)](js-apis-system-capability.md) - - [@ohos.systemParameterV9](js-apis-system-parameterV9.md) - - [@ohos.thermal](js-apis-thermal.md) - - [@ohos.update](js-apis-update.md) - - [@ohos.usb](js-apis-usb.md) - - [@ohos.vibrator](js-apis-vibrator.md) + - [@ohos.systemParameterV9 (System Parameter)](js-apis-system-parameterV9.md) + - [@ohos.thermal (Thermal Management)](js-apis-thermal.md) + - [@ohos.update (Update)](js-apis-update.md) + - [@ohos.usbV9 (USB Management)](js-apis-usb.md) + - [@ohos.vibrator (Vibrator)](js-apis-vibrator.md) - Account Management - [@ohos.account.appAccount (App Account Management)](js-apis-appAccount.md) - [@ohos.account.distributedAccount (Distributed Account Management)](js-apis-distributed-account.md) - [@ohos.account.osAccount (OS Account Management)](js-apis-osAccount.md) - Custom Management - - [@ohos.configPolicy](js-apis-configPolicy.md) - - [@ohos.enterprise.deviceInfo](js-apis-enterprise-deviceInfo.md) - - [@ohos.enterpriseAdminExtensionAbility](js-apis-EnterpriseAdminExtensionAbility.md) - - [@ohos.enterprise.adminManager](js-apis-enterprise-adminManager.md) - - [@ohos.enterprise.dateTimeManager](js-apis-enterprise-dateTimeManager.md) + - [@ohos.configPolicy (Configuration Policy)](js-apis-configPolicy.md) + - [@ohos.enterprise.deviceInfo (Device Information Management)](js-apis-enterprise-deviceInfo.md) + - [@ohos.enterprise.EnterpriseAdminExtensionAbility (EnterpriseAdminExtensionAbility)](js-apis-EnterpriseAdminExtensionAbility.md) + - [@ohos.enterprise.adminManager (Enterprise Device Management)](js-apis-enterprise-adminManager.md) + - [@ohos.enterprise.dateTimeManager (System Time Management)](js-apis-enterprise-dateTimeManager.md) - Language Base Class Library - [@ohos.buffer (Buffer)](js-apis-buffer.md) - - [@ohos.convertxml](js-apis-convertxml.md) - - [@ohos.process](js-apis-process.md) - - [@ohos.uri](js-apis-uri.md) - - [@ohos.url](js-apis-url.md) - - [@ohos.util](js-apis-util.md) - - [@ohos.util.ArrayList](js-apis-arraylist.md) - - [@ohos.util.Deque](js-apis-deque.md) - - [@ohos.util.HashMap](js-apis-hashmap.md) - - [@ohos.util.HashSet](js-apis-hashset.md) - - [@ohos.util.LightWeightMap](js-apis-lightweightmap.md) - - [@ohos.util.LightWeightSet](js-apis-lightweightset.md) - - [@ohos.util.LinkedList](js-apis-linkedlist.md) - - [@ohos.util.List](js-apis-list.md) - - [@ohos.util.PlainArray](js-apis-plainarray.md) - - [@ohos.util.Queue](js-apis-queue.md) - - [@ohos.util.Stack](js-apis-stack.md) - - [@ohos.util.TreeMap](js-apis-treemap.md) - - [@ohos.util.TreeSet](js-apis-treeset.md) - - [@ohos.util.Vector](js-apis-vector.md) - - [@ohos.worker](js-apis-worker.md) - - [@ohos.xml](js-apis-xml.md) + - [@ohos.convertxml (XML-to-JavaScript Conversion)](js-apis-convertxml.md) + - [@ohos.process (Obtaining Process Information)](js-apis-process.md) + - [@ohos.taskpool (Using the Task Pool)](js-apis-taskpool.md) + - [@ohos.uri (URI String Parsing)](js-apis-uri.md) + - [@ohos.url (URL String Parsing)](js-apis-url.md) + - [@ohos.util (util)](js-apis-util.md) + - [@ohos.util.ArrayList (Linear Container ArrayList)](js-apis-arraylist.md) + - [@ohos.util.Deque (Linear Container Deque)](js-apis-deque.md) + - [@ohos.util.HashMap (Nonlinear Container HashMap)](js-apis-hashmap.md) + - [@ohos.util.HashSet (Nonlinear Container HashSet)](js-apis-hashset.md) + - [@ohos.util.LightWeightMap (Nonlinear Container LightWeightMap)](js-apis-lightweightmap.md) + - [@ohos.util.LightWeightSet (Nonlinear Container LightWeightSet)](js-apis-lightweightset.md) + - [@ohos.util.LinkedList (Linear Container LinkedList)](js-apis-linkedlist.md) + - [@ohos.util.List (Linear Container List)](js-apis-list.md) + - [@ohos.util.PlainArray (Nonlinear Container PlainArray)](js-apis-plainarray.md) + - [@ohos.util.Queue (Linear Container Queue)](js-apis-queue.md) + - [@ohos.util.Stack (Linear Container Stack)](js-apis-stack.md) + - [@ohos.util.TreeMap (Nonlinear Container TreeMap)](js-apis-treemap.md) + - [@ohos.util.TreeSet (Nonlinear Container TreeSet)](js-apis-treeset.md) + - [@ohos.util.Vector (Linear Container Vector)](js-apis-vector.md) + - [@ohos.worker (Worker Startup)](js-apis-worker.md) + - [@ohos.xml (XML Parsing and Generation)](js-apis-xml.md) - Test - - [@ohos.application.testRunner](js-apis-application-testRunner.md) - - [@ohos.uitest](js-apis-uitest.md) + - [@ohos.application.testRunner (TestRunner)](js-apis-application-testRunner.md) + - [@ohos.uitest (UiTest)](js-apis-uitest.md) - APIs No Longer Maintained - - [@ohos.backgroundTaskManager](js-apis-backgroundTaskManager.md) - - [@ohos.bundle](js-apis-Bundle.md) - - [@ohos.bundle.innerBundleManager](js-apis-Bundle-InnerBundleManager.md) - - [@ohos.bundleState](js-apis-deviceUsageStatistics.md) - - [@ohos.bytrace](js-apis-bytrace.md) + - [@ohos.backgroundTaskManager (Background Task Management)](js-apis-backgroundTaskManager.md) + - [@ohos.bundle (Bundle)](js-apis-Bundle.md) + - [@ohos.bundle.innerBundleManager (innerBundleManager)](js-apis-Bundle-InnerBundleManager.md) + - [@ohos.bundleState (Device Usage Statistics)](js-apis-deviceUsageStatistics.md) + - [@ohos.bytrace (Performance Tracing)](js-apis-bytrace.md) - [@ohos.data.distributedData (Distributed Data Management)](js-apis-distributed-data.md) - [@ohos.data.storage (Lightweight Data Storage)](js-apis-data-storage.md) - [@ohos.data.rdb (RDB)](js-apis-data-rdb.md) - - [@ohos.distributedBundle](js-apis-Bundle-distributedBundle.md) + - [@ohos.distributedBundle (Distributed Bundle Management)](js-apis-Bundle-distributedBundle.md) - [@ohos.document (File Operation)](js-apis-document.md) - - [@ohos.geolocation](js-apis-geolocation.md) - - [@ohos.hiAppEvent](js-apis-hiappevent.md) - - [@ohos.prompt](js-apis-prompt.md) - - [@ohos.reminderAgent](js-apis-reminderAgent.md) - - [@ohos.systemParameter](js-apis-system-parameter.md) - - [@ohos.usb](js-apis-usb-deprecated.md) - - [@system.app](js-apis-system-app.md) - - [@system.battery](js-apis-system-battery.md) - - [@system.bluetooth](js-apis-system-bluetooth.md) - - [@system.brightness](js-apis-system-brightness.md) - - [@system.configuration](js-apis-system-configuration.md) - - [@system.device](js-apis-system-device.md) - - [@system.fetch](js-apis-system-fetch.md) - - [@system.file](js-apis-system-file.md) - - [@system.geolocation](js-apis-system-location.md) - - [@system.mediaquery](js-apis-system-mediaquery.md) - - [@system.network](js-apis-system-network.md) - - [@system.notification](js-apis-system-notification.md) - - [@system.package](js-apis-system-package.md) - - [@system.prompt](js-apis-system-prompt.md) - - [@system.request](js-apis-system-request.md) - - [@system.router](js-apis-system-router.md) - - [@system.sensor](js-apis-system-sensor.md) - - [@system.storage](js-apis-system-storage.md) - - [@system.vibrator](js-apis-system-vibrate.md) + - [@ohos.fileio (File Management)](js-apis-fileio.md) + - [@ohos.geolocation (Geolocation)](js-apis-geolocation.md) + - [@ohos.hiAppEvent (Application Event Logging)](js-apis-hiappevent.md) + - [@ohos.prompt (Prompt)](js-apis-prompt.md) + - [@ohos.reminderAgent (Reminder Agent)](js-apis-reminderAgent.md) + - [@ohos.statfs (statfs)](js-apis-statfs.md) + - [@ohos.systemParameter (System Parameter)](js-apis-system-parameter.md) + - [@ohos.usb (USB Management)](js-apis-usb-deprecated.md) + - [@system.app (Application Context)](js-apis-system-app.md) + - [@system.battery (Battery Information)](js-apis-system-battery.md) + - [@system.bluetooth (Bluetooth)](js-apis-system-bluetooth.md) + - [@system.brightness (Screen Brightness)](js-apis-system-brightness.md) + - [@system.configuration (Application Configuration)](js-apis-system-configuration.md) + - [@system.device (Device Information)](js-apis-system-device.md) + - [@system.fetch (Data Request)](js-apis-system-fetch.md) + - [@system.file (File Storage)](js-apis-system-file.md) + - [@system.geolocation (Geographic Location)](js-apis-system-location.md) + - [@system.mediaquery (Media Query)](js-apis-system-mediaquery.md) + - [@system.network (Network State)](js-apis-system-network.md) + - [@system.notification (Notification)](js-apis-system-notification.md) + - [@system.package (Bundle Management)](js-apis-system-package.md) + - [@system.prompt (Prompt)](js-apis-system-prompt.md) + - [@system.request (Upload and Download)](js-apis-system-request.md) + - [@system.router (Page Routing)](js-apis-system-router.md) + - [@system.sensor (Sensor)](js-apis-system-sensor.md) + - [@system.storage (Data Storage)](js-apis-system-storage.md) + - [@system.vibrator (Vibrator)](js-apis-system-vibrate.md) - bundle - [abilityInfo](js-apis-bundle-AbilityInfo.md) - [applicationInfo](js-apis-bundle-ApplicationInfo.md) diff --git a/en/application-dev/reference/apis/js-apis-ability-particleAbility.md b/en/application-dev/reference/apis/js-apis-ability-particleAbility.md index 7d00454ea5ce5b0051c2fff6856f9653be89b455..846aefcd37eff322c5d5aa215bad3f812da6ed4d 100644 --- a/en/application-dev/reference/apis/js-apis-ability-particleAbility.md +++ b/en/application-dev/reference/apis/js-apis-ability-particleAbility.md @@ -224,7 +224,7 @@ Requests a continuous task from the system. This API uses an asynchronous callba ```ts import notification from '@ohos.notification'; import particleAbility from '@ohos.ability.particleAbility'; -import wantAgent from '@ohos.wantAgent'; +import wantAgent from '@ohos.app.ability.wantAgent'; function callback(err, data) { if (err) { @@ -293,7 +293,7 @@ Requests a continuous task from the system. This API uses a promise to return th ```ts import notification from '@ohos.notification'; import particleAbility from '@ohos.ability.particleAbility'; -import wantAgent from '@ohos.wantAgent'; +import wantAgent from '@ohos.app.ability.wantAgent'; let wantAgentInfo = { wants: [ @@ -445,7 +445,6 @@ particleAbility.disconnectAbility(connId).then((data) => { }).catch((error) => { console.log('particleAbilityTest result errCode : ' + error.code) }); - ``` ## particleAbility.disconnectAbility @@ -491,10 +490,10 @@ var connId = particleAbility.connectAbility( onFailed: onFailedCallback, }, ); -var result = particleAbility.disconnectAbility(connId).then((data) => { - console.log(" data: " + data); -}).catch((error) => { - console.log('particleAbilityTest result errCode : ' + error.code) + +particleAbility.disconnectAbility(connId, (err) => { + console.log("particleAbilityTest disconnectAbility err====>" + + ("json err=") + JSON.stringify(err)); }); ``` diff --git a/en/application-dev/reference/apis/js-apis-animator.md b/en/application-dev/reference/apis/js-apis-animator.md index b0bfec0f18357dd7ce82d36b90d0f159f398c42f..febd683936b841caf9b7b44511ee18370761ca42 100644 --- a/en/application-dev/reference/apis/js-apis-animator.md +++ b/en/application-dev/reference/apis/js-apis-animator.md @@ -72,7 +72,7 @@ For details about the error codes, see [Animator Error Codes](../errorcodes/erro | ID | Error Message| | --------- | ------- | -| 100001 | If no page is found for pageId or fail to get object property list. | +| 100001 | if no page is found for pageId or fail to get object property list. | **Example** diff --git a/en/application-dev/reference/apis/js-apis-app-ability-configuration.md b/en/application-dev/reference/apis/js-apis-app-ability-configuration.md index 88aab2d4026afac5edaf8c3c7ff58033976e3e66..388761074dd2e6e53e2ca4ee621a6875f292996a 100644 --- a/en/application-dev/reference/apis/js-apis-app-ability-configuration.md +++ b/en/application-dev/reference/apis/js-apis-app-ability-configuration.md @@ -9,7 +9,7 @@ The **Configuration** module defines environment change information. ## Modules to Import ```ts -import Configuration from '@ohos.app.ability.Configuration' +import Configuration from '@ohos.app.ability.Configuration'; ``` **System capability**: SystemCapability.Ability.AbilityBase @@ -26,30 +26,30 @@ import Configuration from '@ohos.app.ability.Configuration' For details about the fields, see the **ohos.app.ability.Configuration.d.ts** file. **Example** - + ```ts - import UIAbility from '@ohos.app.ability.UIAbility'; +import UIAbility from '@ohos.app.ability.UIAbility'; - export default class EntryAbility extends UIAbility { +export default class EntryAbility extends UIAbility { onCreate(want, launchParam) { - let envCallback = { - onConfigurationUpdated(config) { - console.info(`envCallback onConfigurationUpdated success: ${JSON.stringify(config)}`) - let language = config.language; - let colorMode = config.colorMode; - let direction = config.direction; - let screenDensity = config.screenDensity; - let displayId = config.displayId; - let hasPointerDevice = config.hasPointerDevice; + let envCallback = { + onConfigurationUpdated(config) { + console.info(`envCallback onConfigurationUpdated success: ${JSON.stringify(config)}`) + let language = config.language; + let colorMode = config.colorMode; + let direction = config.direction; + let screenDensity = config.screenDensity; + let displayId = config.displayId; + let hasPointerDevice = config.hasPointerDevice; + } + }; + try { + let applicationContext = this.context.getApplicationContext(); + let callbackId = applicationContext.on("environment", envCallback); + console.log("callbackId: " + callbackId); + } catch (paramError) { + console.log("error: " + paramError.code + ", " + paramError.message); } - }; - try { - let applicationContext = this.context.getApplicationContext(); - let callbackId = applicationContext.on("environment", envCallback); - console.log("callbackId: " + callbackId); - } catch (paramError) { - console.log("error: " + paramError.code + ", " + paramError.message); - } } - } +} ``` diff --git a/en/application-dev/reference/apis/js-apis-app-form-formProvider.md b/en/application-dev/reference/apis/js-apis-app-form-formProvider.md index d61484f86b36bafd74ded1860272ac1a4b86089a..8b314c792e584149219e7baf46e05cc9cdb9033f 100644 --- a/en/application-dev/reference/apis/js-apis-app-form-formProvider.md +++ b/en/application-dev/reference/apis/js-apis-app-form-formProvider.md @@ -124,7 +124,7 @@ Updates a widget. This API uses an asynchronous callback to return the result. **Example** ```ts -import formBindingData from '@ohos.application.formBindingData'; +import formBindingData from '@ohos.app.form.formBindingData'; import formProvider from '@ohos.app.form.formProvider'; let formId = "12400633174999288"; @@ -173,7 +173,7 @@ Updates a widget. This API uses a promise to return the result. **Example** ```ts -import formBindingData from '@ohos.application.formBindingData'; +import formBindingData from '@ohos.app.form.formBindingData'; import formProvider from '@ohos.app.form.formProvider'; let formId = "12400633174999288"; @@ -349,7 +349,7 @@ Requests to publish a widget carrying data to the widget host. This API uses an **Example** ```ts -import formBindingData from '@ohos.application.formBindingData'; +import formBindingData from '@ohos.app.form.formBindingData'; import formProvider from '@ohos.app.form.formProvider'; let want = { diff --git a/en/application-dev/reference/apis/js-apis-appAccount.md b/en/application-dev/reference/apis/js-apis-appAccount.md index 6f933f9ca9997721df4377be310d6be1cb307e1e..b9ec53b660112df52456caa020b5e9105316bbbd 100644 --- a/en/application-dev/reference/apis/js-apis-appAccount.md +++ b/en/application-dev/reference/apis/js-apis-appAccount.md @@ -64,7 +64,6 @@ Creates an app account. This API uses an asynchronous callback to return the res **Example** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); try { appAccountManager.createAccount("WangWu", (err) => { console.log("createAccount err: " + JSON.stringify(err)); @@ -102,7 +101,6 @@ Creates an app account with custom data. This API uses an asynchronous callback **Example** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); let options = { customData: { "age": "10" @@ -155,7 +153,6 @@ Creates an app account with custom data. This API uses a promise to return the r **Example** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); let options = { customData: { "age": "10" @@ -215,7 +212,6 @@ Creates an app account implicitly based on the specified account owner. This API }); } - let appAccountManager = account_appAccount.createAppAccountManager(); try { appAccountManager.createAccountImplicitly("com.example.accountjsdemo", { onResult: onResultCallback, @@ -270,7 +266,6 @@ Creates an app account implicitly based on the specified account owner and optio }); } - let appAccountManager = account_appAccount.createAppAccountManager(); let options = { authType: "getSocialData", requiredLabels: [ "student" ] @@ -311,7 +306,6 @@ Removes an app account. This API uses an asynchronous callback to return the res **Example** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); try { appAccountManager.removeAccount("ZhaoLiu", (err) => { if (err) { @@ -356,7 +350,6 @@ Removes an app account. This API uses a promise to return the result. **Example** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); try { appAccountManager.removeAccount("Lisi").then(() => { console.log("removeAccount successfully"); @@ -397,7 +390,6 @@ Sets the access to the data of an account for an app. This API uses an asynchron **Example** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); try { appAccountManager.setAppAccess("ZhangSan", "com.example.accountjsdemo", true, (err) => { if (err) { @@ -445,7 +437,6 @@ Sets the access to the data of an account for an app. This API uses a promise to **Example** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); try { appAccountManager.setAppAccess("ZhangSan", "com.example.accountjsdemo", true).then(() => { console.log("setAppAccess successfully"); @@ -485,7 +476,6 @@ Checks whether an app can access the data of an account. This API uses an asynch **Example** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); try { appAccountManager.checkAppAccess("ZhangSan", "com.example.accountjsdemo", (err, isAccessible) => { if (err) { @@ -532,7 +522,6 @@ Checks whether an app can access the data of an account. This API uses a promise **Example** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); try { appAccountManager.checkAppAccess("ZhangSan", "com.example.accountjsdemo").then((isAccessible) => { console.log("checkAppAccess successfully, isAccessible: " + isAccessible); @@ -573,7 +562,6 @@ Sets data synchronization for an app account. This API uses an asynchronous call **Example** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); try { appAccountManager.setDataSyncEnabled("ZhangSan", true, (err) => { console.log("setDataSyncEnabled err: " + JSON.stringify(err)); @@ -617,7 +605,6 @@ Sets data synchronization for an app account. This API uses a promise to return **Example** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); try { appAccountManager .setDataSyncEnabled("ZhangSan", true).then(() => { console.log('setDataSyncEnabled Success'); @@ -657,7 +644,6 @@ Checks whether data synchronization is enabled for an app account. This API uses **Example** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); try { appAccountManager.checkDataSyncEnabled("ZhangSan", (err, isEnabled) => { if (err) { @@ -704,7 +690,6 @@ Checks whether data synchronization is enabled for an app account. This API uses **Example** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); try { appAccountManager.checkDataSyncEnabled("ZhangSan").then((isEnabled) => { console.log("checkDataSyncEnabled successfully, isEnabled: " + isEnabled); @@ -744,7 +729,6 @@ Sets a credential for an app account. This API uses an asynchronous callback to **Example** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); try { appAccountManager.setCredential("ZhangSan", "PIN_SIX", "xxxxxx", (err) => { if (err) { @@ -791,7 +775,6 @@ Sets a credential for an app account. This API uses a promise to return the resu **Example** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); try { appAccountManager.setCredential("ZhangSan", "PIN_SIX", "xxxxxx").then(() => { console.log("setCredential successfully"); @@ -831,7 +814,6 @@ Obtains the credential of an app account. This API uses an asynchronous callback **Example** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); try { appAccountManager.getCredential("ZhangSan", "PIN_SIX", (err, result) => { if (err) { @@ -878,7 +860,6 @@ Obtains the credential of an app account. This API uses a promise to return the **Example** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); try { appAccountManager.getCredential("ZhangSan", "PIN_SIX").then((credential) => { console.log("getCredential successfully, credential: " + credential); @@ -919,7 +900,6 @@ Sets custom data for an app account. This API uses an asynchronous callback to r **Example** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); try { appAccountManager.setCustomData("ZhangSan", "age", "12", (err) => { if (err) { @@ -967,7 +947,6 @@ Sets custom data for an app account. This API uses a promise to return the resul **Example** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); try { appAccountManager.setCustomData("ZhangSan", "age", "12").then(() => { console.log("setCustomData successfully"); @@ -1007,7 +986,6 @@ Obtains the custom data of an app account based on the specified key. This API u **Example** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); try { appAccountManager.getCustomData("ZhangSan", "age", (err, data) => { if (err) { @@ -1054,7 +1032,6 @@ Obtains the custom data of an app account based on the specified key. This API u **Example** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); try { appAccountManager.getCustomData("ZhangSan", "age").then((data) => { console.log("getCustomData successfully, data: " + data); @@ -1099,7 +1076,6 @@ Obtains the custom data of an app account based on the specified key. The API re **Example** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); try { let value = appAccountManager.getCustomDataSync("ZhangSan", "age"); console.info("getCustomDataSync successfully, vaue:" + value); @@ -1114,8 +1090,6 @@ getAllAccounts(callback: AsyncCallback<Array<AppAccountInfo>>): void Obtains information about all accessible app accounts. This API uses an asynchronous callback to return the result. -**Required permissions**: ohos.permission.GET_ALL_APP_ACCOUNTS - **System capability**: SystemCapability.Account.AppAccount **Parameters** @@ -1133,7 +1107,6 @@ Obtains information about all accessible app accounts. This API uses an asynchro **Example** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); try { appAccountManager.getAllAccounts((err, data) => { if (err) { @@ -1153,8 +1126,6 @@ getAllAccounts(): Promise<Array<AppAccountInfo>> Obtains information about all accessible app accounts. This API uses a promise to return the result. -**Required permissions**: ohos.permission.GET_ALL_APP_ACCOUNTS - **System capability**: SystemCapability.Account.AppAccount **Return value** @@ -1172,7 +1143,6 @@ Obtains information about all accessible app accounts. This API uses a promise t **Example** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); try { appAccountManager.getAllAccounts().then((data) => { console.debug("getAllAccounts successfully"); @@ -1190,8 +1160,6 @@ getAccountsByOwner(owner: string, callback: AsyncCallback<Array<AppAccount Obtains the app accounts that can be accessed by the invoker based on the app account owner. This API uses an asynchronous callback to return the result. -**Required permissions**: ohos.permission.GET_ALL_APP_ACCOUNTS - **System capability**: SystemCapability.Account.AppAccount **Parameters** @@ -1212,7 +1180,6 @@ Obtains the app accounts that can be accessed by the invoker based on the app ac **Example** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); try { appAccountManager.getAccountsByOwner("com.example.accountjsdemo2", (err, data) => { if (err) { @@ -1232,8 +1199,6 @@ getAccountsByOwner(owner: string): Promise<Array<AppAccountInfo>> Obtains the app accounts that can be accessed by the invoker based on the app account owner. This API uses a promise to return the result. -**Required permissions**: ohos.permission.GET_ALL_APP_ACCOUNTS - **System capability**: SystemCapability.Account.AppAccount **Parameters** @@ -1259,7 +1224,6 @@ Obtains the app accounts that can be accessed by the invoker based on the app ac **Example** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); try { appAccountManager.getAccountsByOwner("com.example.accountjsdemo2").then((data) => { console.debug("getAccountsByOwner successfully, data:" + JSON.stringify(data)); @@ -1299,7 +1263,6 @@ Subscribes to account information changes of apps. **Example** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); function changeOnCallback(data){ console.log("receive change data:" + JSON.stringify(data)); } @@ -1312,7 +1275,7 @@ Subscribes to account information changes of apps. ### off('accountChange')9+ -off(type: 'accountChange', callback?: Callback>): void +off(type: 'accountChange', callback?: Callback<Array<AppAccountInfo>>): void Unsubscribes from account information changes. @@ -1323,7 +1286,7 @@ Unsubscribes from account information changes. | Name | Type | Mandatory | Description | | -------- | -------------------------------- | ---- | ------------ | | type | 'accountChange' | Yes | Event type to unsubscribe from. The value is **'accountChange'**. | -| callback | Callback> | No | Callback to unregister.| +| callback | Callback<Array<[AppAccountInfo](#appaccountinfo)>> | No | Callback to unregister.| **Error codes** @@ -1336,8 +1299,7 @@ Unsubscribes from account information changes. **Example** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); - function changeOnCallback(data){ + function changeOnCallback(data) { console.log("receive change data:" + JSON.stringify(data)); } try{ @@ -1398,7 +1360,6 @@ Authenticates an app account. This API uses an asynchronous callback to return t }); } - let appAccountManager = account_appAccount.createAppAccountManager(); try { appAccountManager.auth("LiSi", "com.example.accountjsdemo", "getSocialData", { onResult: onResultCallback, @@ -1458,7 +1419,6 @@ Authenticates an app account with customized options. This API uses an asynchron let options = { "password": "xxxx", }; - let appAccountManager = account_appAccount.createAppAccountManager(); try { appAccountManager.auth("LiSi", "com.example.accountjsdemo", "getSocialData", options, { onResult: onResultCallback, @@ -1498,7 +1458,6 @@ Obtains the authorization token of the specified authentication type for an app **Example** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); try { appAccountManager.getAuthToken("LiSi", "com.example.accountjsdemo", "getSocialData", (err, token) => { if (err) { @@ -1546,7 +1505,6 @@ Obtains the authorization token of the specified authentication type for an app **Example** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); try { appAccountManager.getAuthToken("LiSi", "com.example.accountjsdemo", "getSocialData").then((token) => { console.log("getAuthToken successfully, token: " + token); @@ -1587,7 +1545,6 @@ Sets an authorization token of the specific authentication type for an app accou **Example** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); try { appAccountManager.setAuthToken("LiSi", "getSocialData", "xxxx", (err) => { if (err) { @@ -1635,7 +1592,6 @@ Sets an authorization token of the specific authentication type for an app accou **Example** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); try { appAccountManager.setAuthToken("LiSi", "getSocialData", "xxxx").then(() => { console.log("setAuthToken successfully"); @@ -1677,7 +1633,6 @@ Deletes the authorization token of the specified authentication type for an app **Example** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); try { appAccountManager.deleteAuthToken("LiSi", "com.example.accountjsdemo", "getSocialData", "xxxxx", (err) => { if (err) { @@ -1726,7 +1681,6 @@ Deletes the authorization token of the specified authentication type for an app **Example** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); try { appAccountManager.deleteAuthToken("LiSi", "com.example.accountjsdemo", "getSocialData", "xxxxx").then(() => { console.log("deleteAuthToken successfully"); @@ -1770,7 +1724,6 @@ Sets the visibility of an authorization token to an app. This API uses an asynch **Example** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); try { appAccountManager.setAuthTokenVisibility("LiSi", "getSocialData", "com.example.accountjsdemo", true, (err) => { if (err) { @@ -1821,7 +1774,6 @@ Sets the visibility of an authorization token to an app. This API uses a promise **Example** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); try { appAccountManager.setAuthTokenVisibility("LiSi", "getSocialData", "com.example.accountjsdemo", true).then(() => { console.log("setAuthTokenVisibility successfully"); @@ -1863,7 +1815,6 @@ Checks the visibility of an authorization token of the specified authentication **Example** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); try { appAccountManager.checkAuthTokenVisibility("LiSi", "getSocialData", "com.example.accountjsdemo", (err, isVisible) => { if (err) { @@ -1912,7 +1863,6 @@ Checks the visibility of an authorization token of the specified authentication **Example** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); try { appAccountManager.checkAuthTokenVisibility("LiSi", "getSocialData", "com.example.accountjsdemo").then((isVisible) => { console.log("checkAuthTokenVisibility successfully, isVisible: " + isVisible); @@ -1951,7 +1901,6 @@ Obtains all tokens visible to the invoker for an app account. This API uses an a **Example** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); try { appAccountManager.getAllAuthTokens("LiSi", "com.example.accountjsdemo", (err, tokenArr) => { if (err) { @@ -1997,7 +1946,6 @@ Obtains all tokens visible to the invoker for an app account. This API uses a pr **Example** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); try { appAccountManager.getAllAuthTokens("LiSi", "com.example.accountjsdemo").then((tokenArr) => { console.log('getAllAuthTokens successfully, tokenArr: ' + JSON.stringify(tokenArr)); @@ -2037,7 +1985,6 @@ Obtains the authorization list of the specified authentication type for an app a **Example** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); try { appAccountManager.getAuthList("com.example.accountjsdemo", "getSocialData", (err, authList) => { if (err) { @@ -2084,7 +2031,6 @@ Obtains the authorization list of the specified authentication type for an app a **Example** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); try { appAccountManager.getAuthList("com.example.accountjsdemo", "getSocialData").then((authList) => { console.log("getAuthList successfully, authList: " + authList); @@ -2123,7 +2069,6 @@ Obtains the authenticator callback for the authentication session. This API uses ```js import featureAbility from '@ohos.ability.featureAbility'; - let appAccountManager = account_appAccount.createAppAccountManager(); featureAbility.getWant((err, want) => { var sessionId = want.parameters[account_appAccount.Constants.KEY_SESSION_ID]; try { @@ -2183,7 +2128,6 @@ Obtains the authenticator callback for the authentication session. This API uses ```js import featureAbility from '@ohos.ability.featureAbility'; - let appAccountManager = account_appAccount.createAppAccountManager(); featureAbility.getWant().then((want) => { var sessionId = want.parameters[account_appAccount.Constants.KEY_SESSION_ID]; try { @@ -2236,7 +2180,6 @@ Obtains the authenticator information of an app. This API uses an asynchronous c **Example** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); try { appAccountManager.queryAuthenticatorInfo("com.example.accountjsdemo", (err, info) => { if (err) { @@ -2281,7 +2224,6 @@ Obtains the authenticator information of an app. This API uses a promise to retu **Example** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); try { appAccountManager.queryAuthenticatorInfo("com.example.accountjsdemo").then((info) => { console.log("queryAuthenticatorInfo successfully, info: " + JSON.stringify(info)); @@ -2324,7 +2266,6 @@ Checks whether an app account has specific labels. This API uses an asynchronous **Example** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); let labels = ["student"]; try { appAccountManager.checkAccountLabels("zhangsan", "com.example.accountjsdemo", labels, (err, hasAllLabels) => { @@ -2375,7 +2316,6 @@ Checks whether an app account has specific labels. This API uses a promise to re **Example** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); let labels = ["student"]; try { appAccountManager.checkAccountLabels("zhangsan", "com.example.accountjsdemo", labels).then((hasAllLabels) => { @@ -2416,7 +2356,6 @@ Deletes the credential of the specified type from an app account. This API uses **Example** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); try { appAccountManager.deleteCredential("zhangsan", "PIN_SIX", (err) => { if (err) { @@ -2463,7 +2402,6 @@ Deletes the credential of the specified type from an app account. This API uses **Example** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); try { appAccountManager.deleteCredential("zhangsan", "PIN_SIX").then(() => { console.log("deleteCredential successfully"); @@ -2502,7 +2440,6 @@ Selects the accounts that can be accessed by the invoker based on the options. T **Example** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); let options = { allowedOwners: [ "com.example.accountjsdemo" ], requiredLabels: [ "student" ] @@ -2552,7 +2489,6 @@ Selects the accounts that can be accessed by the invoker based on the options. T **Example** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); let options = { allowedOwners: ["com.example.accountjsdemo"] }; @@ -2597,7 +2533,6 @@ Verifies the credential of an app account. This API uses an asynchronous callbac **Example** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); try { appAccountManager.verifyCredential("zhangsan", "com.example.accountjsdemo", { onResult: (resultCode, result) => { @@ -2644,7 +2579,6 @@ Verifies the user credential. This API uses an asynchronous callback to return t **Example** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); let options = { credentialType: "pin", credential: "123456" @@ -2692,7 +2626,6 @@ Sets the authenticator attributes of an app. This API uses an asynchronous callb **Example** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); try { appAccountManager.setAuthenticatorProperties("com.example.accountjsdemo", { onResult: (resultCode, result) => { @@ -2737,7 +2670,6 @@ Set authenticator properties. This API uses an asynchronous callback to return t **Example** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); let options = { properties: {"prop1": "value1"} }; @@ -2780,7 +2712,6 @@ Adds an app account. This API uses an asynchronous callback to return the result **Example** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); appAccountManager.addAccount("WangWu", (err) => { console.log("addAccount err: " + JSON.stringify(err)); }); @@ -2793,7 +2724,6 @@ addAccount(name: string, extraInfo: string, callback: AsyncCallback<void>) Adds an app account name and additional information. This API uses an asynchronous callback to return the result. > **NOTE** -> > This API is supported since API version 7 and deprecated since API version 9. You are advised to use [createAccount](#createaccount9-1). **System capability**: SystemCapability.Account.AppAccount @@ -2809,7 +2739,6 @@ Adds an app account name and additional information. This API uses an asynchrono **Example** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); appAccountManager.addAccount("LiSi", "token101", (err) => { console.log("addAccount err: " + JSON.stringify(err)); }); @@ -2843,7 +2772,6 @@ Adds an app account name and additional information. This API uses an asynchrono **Example** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); appAccountManager.addAccount("LiSi", "token101").then(()=> { console.log('addAccount Success'); }).catch((err) => { @@ -2889,7 +2817,6 @@ Adds an app account implicitly based on the specified owner. This API uses an as }); } - let appAccountManager = account_appAccount.createAppAccountManager(); appAccountManager.addAccountImplicitly("com.example.accountjsdemo", "getSocialData", {}, { onResult: onResultCallback, onRequestRedirected: onRequestRedirectedCallback @@ -2918,7 +2845,6 @@ Deletes an app account. This API uses an asynchronous callback to return the res **Example** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); appAccountManager.deleteAccount("ZhaoLiu", (err) => { console.log("deleteAccount err: " + JSON.stringify(err)); }); @@ -2951,7 +2877,6 @@ Deletes an app account. This API uses a promise to return the result. **Example** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); appAccountManager.deleteAccount("ZhaoLiu").then(() => { console.log('deleteAccount Success'); }).catch((err) => { @@ -2981,7 +2906,6 @@ Disables an app account from accessing an app. This API uses an asynchronous cal **Example** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); appAccountManager.disableAppAccess("ZhangSan", "com.example.accountjsdemo", (err) => { console.log("disableAppAccess err: " + JSON.stringify(err)); }); @@ -3015,7 +2939,6 @@ Disables an app account from accessing an app. This API uses a promise to return **Example** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); appAccountManager.disableAppAccess("ZhangSan", "com.example.accountjsdemo").then(() => { console.log('disableAppAccess Success'); }).catch((err) => { @@ -3046,7 +2969,6 @@ Enables an app account to access an app. This API uses an asynchronous callback **Example** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); appAccountManager.enableAppAccess("ZhangSan", "com.example.accountjsdemo", (err) => { console.log("enableAppAccess: " + JSON.stringify(err)); }); @@ -3080,7 +3002,6 @@ Enables an app account to access an app. This API uses a promise to return the r **Example** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); appAccountManager.enableAppAccess("ZhangSan", "com.example.accountjsdemo").then(() => { console.log('enableAppAccess Success'); }).catch((err) => { @@ -3112,7 +3033,6 @@ Checks whether data synchronization is enabled for an app account. This API uses **Example** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); appAccountManager.checkAppAccountSyncEnable("ZhangSan", (err, result) => { console.log("checkAppAccountSyncEnable err: " + JSON.stringify(err)); console.log('checkAppAccountSyncEnable result: ' + result); @@ -3148,7 +3068,6 @@ Checks whether data synchronization is enabled for an app account. This API uses **Example** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); appAccountManager.checkAppAccountSyncEnable("ZhangSan").then((data) => { console.log('checkAppAccountSyncEnable, result: ' + data); }).catch((err) => { @@ -3180,7 +3099,6 @@ Set credentials for an app account. This API uses an asynchronous callback to re **Example** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); appAccountManager.setAccountCredential("ZhangSan", "credentialType001", "credential001", (err) => { console.log("setAccountCredential err: " + JSON.stringify(err)); }); @@ -3215,7 +3133,6 @@ Set credentials for an app account. This API uses a promise to return the result **Example** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); appAccountManager.setAccountCredential("ZhangSan", "credentialType001", "credential001").then(() => { console.log('setAccountCredential Success'); }).catch((err) => { @@ -3247,7 +3164,6 @@ Sets additional information for an app account. This API uses an asynchronous ca **Example** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); appAccountManager.setAccountExtraInfo("ZhangSan", "Tk002", (err) => { console.log("setAccountExtraInfo err: " + JSON.stringify(err)); }); @@ -3282,7 +3198,6 @@ Sets additional information for an app account. This API uses a promise to retur **Example** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); appAccountManager.setAccountExtraInfo("ZhangSan", "Tk002").then(() => { console.log('setAccountExtraInfo Success'); }).catch((err) => { @@ -3315,7 +3230,6 @@ Sets data synchronization for an app account. This API uses an asynchronous call **Example** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); appAccountManager.setAppAccountSyncEnable("ZhangSan", true, (err) => { console.log("setAppAccountSyncEnable err: " + JSON.stringify(err)); }); @@ -3351,7 +3265,6 @@ Sets data synchronization for an app account. This API uses a promise to return **Example** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); appAccountManager .setAppAccountSyncEnable("ZhangSan", true).then(() => { console.log('setAppAccountSyncEnable Success'); }).catch((err) => { @@ -3384,7 +3297,6 @@ Sets data to be associated with an app account. This API uses an asynchronous ca **Example** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); appAccountManager.setAssociatedData("ZhangSan", "k001", "v001", (err) => { console.log("setAssociatedData err: " + JSON.stringify(err)); }); @@ -3420,7 +3332,6 @@ Sets data to be associated with an app account. This API uses a promise to retur **Example** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); appAccountManager.setAssociatedData("ZhangSan", "k001", "v001").then(() => { console.log('setAssociatedData Success'); }).catch((err) => { @@ -3451,7 +3362,6 @@ Obtains information about all accessible app accounts. This API uses an asynchro **Example** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); appAccountManager.getAllAccessibleAccounts((err, data)=>{ console.debug("getAllAccessibleAccounts err:" + JSON.stringify(err)); console.debug("getAllAccessibleAccounts data:" + JSON.stringify(data)); @@ -3481,7 +3391,6 @@ Obtains information about all accessible app accounts. This API uses a promise t **Example** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); appAccountManager.getAllAccessibleAccounts().then((data) => { console.log('getAllAccessibleAccounts: ' + data); }).catch((err) => { @@ -3513,7 +3422,6 @@ Obtains the app accounts that can be accessed by the invoker based on the app ac **Example** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); const selfBundle = "com.example.actsgetallaaccounts"; appAccountManager.getAllAccounts(selfBundle, (err, data)=>{ console.debug("getAllAccounts err:" + JSON.stringify(err)); @@ -3550,7 +3458,6 @@ Obtains the app accounts that can be accessed by the invoker based on the app ac **Example** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); const selfBundle = "com.example.actsgetallaaccounts"; appAccountManager.getAllAccounts(selfBundle).then((data) => { console.log('getAllAccounts: ' + data); @@ -3582,7 +3489,6 @@ Obtains the credential of an app account. This API uses an asynchronous callback **Example** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); appAccountManager.getAccountCredential("ZhangSan", "credentialType001", (err, result) => { console.log("getAccountCredential err: " + JSON.stringify(err)); console.log('getAccountCredential result: ' + result); @@ -3617,7 +3523,6 @@ Obtains the credential of an app account. This API uses a promise to return the **Example** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); appAccountManager.getAccountCredential("ZhangSan", "credentialType001").then((data) => { console.log('getAccountCredential, result: ' + data); }).catch((err) => { @@ -3647,7 +3552,6 @@ Obtains additional information of an app account. Additional information refers **Example** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); appAccountManager.getAccountExtraInfo("ZhangSan", (err, result) => { console.log("getAccountExtraInfo err: " + JSON.stringify(err)); console.log('getAccountExtraInfo result: ' + result); @@ -3681,7 +3585,6 @@ Obtains additional information of an app account. Additional information refers **Example** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); appAccountManager.getAccountExtraInfo("ZhangSan").then((data) => { console.log('getAccountExtraInfo, result: ' + data); }).catch((err) => { @@ -3712,7 +3615,6 @@ Obtains data associated with an app account. This API uses an asynchronous callb **Example** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); appAccountManager.getAssociatedData("ZhangSan", "k001", (err, result) => { console.log("getAssociatedData err: " + JSON.stringify(err)); console.log('getAssociatedData result: ' + result); @@ -3747,7 +3649,6 @@ Obtains data associated with an app account. This API uses a promise to return t **Example** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); appAccountManager.getAssociatedData("ZhangSan", "k001").then((data) => { console.log('getAssociatedData: ' + data); }).catch((err) => { @@ -3778,7 +3679,6 @@ Subscribes to account information changes of apps. **Example** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); function changeOnCallback(data){ console.debug("receive change data:" + JSON.stringify(data)); } @@ -3792,7 +3692,7 @@ Subscribes to account information changes of apps. ### off('change')(deprecated) -off(type: 'change', callback?: Callback>): void +off(type: 'change', callback?: Callback<Array<AppAccountInfo>>): void Unsubscribes from account information changes. @@ -3807,12 +3707,11 @@ Unsubscribes from account information changes. | Name | Type | Mandatory | Description | | -------- | -------------------------------- | ---- | ------------ | | type | 'change' | Yes | Event type to unsubscribe from. The value is **'change'**, which indicates the account change event. | -| callback | Callback> | No | Callback to unregister.| +| callback | Callback<Array<[AppAccountInfo](#appaccountinfo)>> | No | Callback to unregister.| **Example** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); function changeOnCallback(data){ console.debug("receive change data:" + JSON.stringify(data)); appAccountManager.off('change', function(){ @@ -3866,7 +3765,6 @@ Authenticates an app account with customized options. This API uses an asynchron }); } - let appAccountManager = account_appAccount.createAppAccountManager(); appAccountManager.authenticate("LiSi", "com.example.accountjsdemo", "getSocialData", {}, { onResult: onResultCallback, onRequestRedirected: onRequestRedirectedCallback @@ -3897,7 +3795,6 @@ Obtains the authorization token of the specified authentication type for an app **Example** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); appAccountManager.getOAuthToken("LiSi", "com.example.accountjsdemo", "getSocialData", (err, data) => { console.log('getOAuthToken err: ' + JSON.stringify(err)); console.log('getOAuthToken token: ' + data); @@ -3933,7 +3830,6 @@ Obtains the authorization token of the specified authentication type for an app **Example** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); appAccountManager.getOAuthToken("LiSi", "com.example.accountjsdemo", "getSocialData").then((data) => { console.log('getOAuthToken token: ' + data); }).catch((err) => { @@ -3965,7 +3861,6 @@ Sets an authorization token of the specific authentication type for an app accou **Example** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); appAccountManager.setOAuthToken("LiSi", "getSocialData", "xxxx", (err) => { console.log('setOAuthToken err: ' + JSON.stringify(err)); }); @@ -4000,7 +3895,6 @@ Sets an authorization token of the specific authentication type for an app accou **Example** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); appAccountManager.setOAuthToken("LiSi", "getSocialData", "xxxx").then(() => { console.log('setOAuthToken successfully'); }).catch((err) => { @@ -4033,7 +3927,6 @@ Deletes the authorization token of the specified authentication type for an app **Example** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); appAccountManager.deleteOAuthToken("LiSi", "com.example.accountjsdemo", "getSocialData", "xxxxx", (err) => { console.log('deleteOAuthToken err: ' + JSON.stringify(err)); }); @@ -4069,7 +3962,6 @@ Deletes the authorization token of the specified authentication type for an app **Example** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); appAccountManager.deleteOAuthToken("LiSi", "com.example.accountjsdemo", "getSocialData", "xxxxx").then(() => { console.log('deleteOAuthToken successfully'); }).catch((err) => { @@ -4102,7 +3994,6 @@ Sets the visibility of an authorization token to an app. This API uses an asynch **Example** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); appAccountManager.setOAuthTokenVisibility("LiSi", "getSocialData", "com.example.accountjsdemo", true, (err) => { console.log('setOAuthTokenVisibility err: ' + JSON.stringify(err)); }); @@ -4138,7 +4029,6 @@ Sets the visibility of an authorization token to an app. This API uses a promise **Example** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); appAccountManager.setOAuthTokenVisibility("LiSi", "getSocialData", "com.example.accountjsdemo", true).then(() => { console.log('setOAuthTokenVisibility successfully'); }).catch((err) => { @@ -4170,7 +4060,6 @@ Checks the visibility of an authorization token of the specified authentication **Example** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); appAccountManager.checkOAuthTokenVisibility("LiSi", "getSocialData", "com.example.accountjsdemo", (err, data) => { console.log('checkOAuthTokenVisibility err: ' + JSON.stringify(err)); console.log('checkOAuthTokenVisibility isVisible: ' + data); @@ -4206,7 +4095,6 @@ Checks the visibility of an authorization token of the specified authentication **Example** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); appAccountManager.checkOAuthTokenVisibility("LiSi", "getSocialData", "com.example.accountjsdemo").then((data) => { console.log('checkOAuthTokenVisibility isVisible: ' + data); }).catch((err) => { @@ -4237,7 +4125,6 @@ Obtains all tokens visible to the invoker for an app account. This API uses an a **Example** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); appAccountManager.getAllOAuthTokens("LiSi", "com.example.accountjsdemo", (err, data) => { console.log("getAllOAuthTokens err: " + JSON.stringify(err)); console.log('getAllOAuthTokens data: ' + JSON.stringify(data)); @@ -4272,7 +4159,6 @@ Obtains all tokens visible to the invoker for an app account. This API uses a pr **Example** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); appAccountManager.getAllOAuthTokens("LiSi", "com.example.accountjsdemo").then((data) => { console.log('getAllOAuthTokens data: ' + JSON.stringify(data)); }).catch((err) => { @@ -4303,7 +4189,6 @@ Obtains the authorization list of the specified authentication type for an app a **Example** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); appAccountManager.getOAuthList("com.example.accountjsdemo", "getSocialData", (err, data) => { console.log('getOAuthList err: ' + JSON.stringify(err)); console.log('getOAuthList data: ' + JSON.stringify(data)); @@ -4338,7 +4223,6 @@ Obtains the authorization list of the specified authentication type for an app a **Example** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); appAccountManager.getOAuthList("com.example.accountjsdemo", "getSocialData").then((data) => { console.log('getOAuthList data: ' + JSON.stringify(data)); }).catch((err) => { @@ -4369,7 +4253,6 @@ Obtains the authenticator callback for an authentication session. This API uses ```js import featureAbility from '@ohos.ability.featureAbility'; - let appAccountManager = account_appAccount.createAppAccountManager(); featureAbility.getWant((err, want) => { var sessionId = want.parameters[account_appAccount.Constants.KEY_SESSION_ID]; appAccountManager.getAuthenticatorCallback(sessionId, (err, callback) => { @@ -4415,7 +4298,6 @@ Obtains the authenticator callback for an authentication session. This API uses ```js import featureAbility from '@ohos.ability.featureAbility'; - let appAccountManager = account_appAccount.createAppAccountManager(); featureAbility.getWant().then((want) => { var sessionId = want.parameters[account_appAccount.Constants.KEY_SESSION_ID]; appAccountManager.getAuthenticatorCallback(sessionId).then((callback) => { @@ -4454,7 +4336,6 @@ Obtains the authenticator information of an app. This API uses an asynchronous c **Example** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); appAccountManager.getAuthenticatorInfo("com.example.accountjsdemo", (err, data) => { console.log("getAuthenticatorInfo err: " + JSON.stringify(err)); console.log('getAuthenticatorInfo data: ' + JSON.stringify(data)); @@ -4488,7 +4369,6 @@ Obtains the authenticator information of an app. This API uses a promise to retu **Example** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); appAccountManager.getAuthenticatorInfo("com.example.accountjsdemo").then((data) => { console.log('getAuthenticatorInfo: ' + JSON.stringify(data)); }).catch((err) => { diff --git a/en/application-dev/reference/apis/js-apis-application-ability.md b/en/application-dev/reference/apis/js-apis-application-ability.md index efba928564b2c9aa34e35b2af7485674ea99274d..6e96d0194a712340cd63a5510a190ea971d04e01 100644 --- a/en/application-dev/reference/apis/js-apis-application-ability.md +++ b/en/application-dev/reference/apis/js-apis-application-ability.md @@ -8,14 +8,17 @@ This module provides the following common ability-related functions: - [Callee](#callee): implements callbacks for registration and deregistration of caller notifications. > **NOTE** -> -> The initial APIs of this module are supported since API version 9. Newly added APIs will be marked with a superscript to indicate their earliest API version. +> +> The APIs of this module are deprecated since API version 9. You are advised to use [@ohos.app.ability.UIAbility (UIAbility)](js-apis-app-ability-uiAbility.md) instead. +> +> The initial APIs of this module are supported since API version 9. Newly added APIs will be marked with a superscript to indicate their earliest API version. +> > The APIs of this module can be used only in the stage model. ## Modules to Import ```ts -import UIAbility from '@ohos.app.ability.UIAbility'; +import UIAbility from '@ohos.application.Ability'; ``` ## Attributes @@ -72,7 +75,7 @@ Called when a **WindowStage** is created for this ability. **Example** ```ts - class myAbility extends Ability { + export default class EntryAbility extends UIAbility { onWindowStageCreate(windowStage) { console.log('onWindowStageCreate'); } @@ -91,7 +94,7 @@ Called when the **WindowStage** is destroyed for this ability. **Example** ```ts - class myAbility extends Ability { + export default class EntryAbility extends UIAbility { onWindowStageDestroy() { console.log('onWindowStageDestroy'); } @@ -116,7 +119,7 @@ Called when the **WindowStage** is restored during the migration of this ability **Example** ```ts - class myAbility extends Ability { + export default class EntryAbility extends UIAbility { onWindowStageRestore(windowStage) { console.log('onWindowStageRestore'); } @@ -133,9 +136,9 @@ Called when this ability is destroyed to clear resources. **System capability**: SystemCapability.Ability.AbilityRuntime.AbilityCore **Example** - + ```ts - class myAbility extends Ability { + export default class EntryAbility extends UIAbility { onDestroy() { console.log('onDestroy'); } @@ -152,9 +155,9 @@ Called when this ability is switched from the background to the foreground. **System capability**: SystemCapability.Ability.AbilityRuntime.AbilityCore **Example** - + ```ts - class myAbility extends Ability { + export default class EntryAbility extends UIAbility { onForeground() { console.log('onForeground'); } @@ -171,9 +174,9 @@ Called when this ability is switched from the foreground to the background. **System capability**: SystemCapability.Ability.AbilityRuntime.AbilityCore **Example** - + ```ts - class myAbility extends Ability { + export default class EntryAbility extends UIAbility { onBackground() { console.log('onBackground'); } @@ -202,10 +205,11 @@ Called to save data during the ability migration preparation process. | AbilityConstant.OnContinueResult | Continuation result.| **Example** - + ```ts - import AbilityConstant from "@ohos.application.AbilityConstant" - class myAbility extends Ability { + import AbilityConstant from "@ohos.app.ability.AbilityConstant"; + + export default class EntryAbility extends UIAbility { onContinue(wantParams) { console.log('onContinue'); wantParams["myData"] = "my1234567"; @@ -231,9 +235,9 @@ Called when a new Want is passed in and this UIAbility is started again. | launchParams | AbilityConstant.LaunchParam | Yes| Reason for the ability startup and the last abnormal exit.| **Example** - + ```ts - class myAbility extends Ability { + export default class EntryAbility extends UIAbility { onNewWant(want, launchParams) { console.log('onNewWant, want:' + want.abilityName); console.log('onNewWant, launchParams:' + JSON.stringify(launchParams)); @@ -256,9 +260,9 @@ Called when the global configuration is updated. | config | [Configuration](js-apis-application-configuration.md) | Yes| Callback invoked when the global configuration is updated. The global configuration indicates the configuration of the environment where the application is running and includes the language and color mode.| **Example** - + ```ts - class myAbility extends Ability { + export default class EntryAbility extends UIAbility { onConfigurationUpdated(config) { console.log('onConfigurationUpdated, language:' + config.language); } @@ -280,9 +284,9 @@ Dumps client information. | params | Array\ | Yes| Parameters in the form of a command.| **Example** - + ```ts - class myAbility extends Ability { + export default class EntryAbility extends UIAbility { dump(params) { console.log('dump, params:' + JSON.stringify(params)); return ["params"] @@ -305,9 +309,9 @@ Called when the system has decided to adjust the memory level. For example, this | level | [AbilityConstant.MemoryLevel](js-apis-application-abilityConstant.md#abilityconstantmemorylevel) | Yes| Memory level that indicates the memory usage status. When the specified memory level is reached, a callback will be invoked and the system will start adjustment.| **Example** - + ```ts - class myAbility extends Ability { + export default class EntryAbility extends UIAbility { onMemoryLevel(level) { console.log('onMemoryLevel, level:' + JSON.stringify(level)); } @@ -338,9 +342,9 @@ Called when the framework automatically saves the ability state in the case of a **Example** ```ts -import AbilityConstant from '@ohos.application.AbilityConstant' +import AbilityConstant from '@ohos.app.ability.AbilityConstant'; -class myAbility extends Ability { +export default class EntryAbility extends UIAbility { onSaveState(reason, wantParam) { console.log('onSaveState'); wantParam["myData"] = "my1234567"; @@ -349,8 +353,6 @@ class myAbility extends Ability { } ``` - - ## Caller Implements sending of sequenceable data to the target ability when an ability (caller ability) invokes the target ability (callee ability). @@ -387,7 +389,7 @@ Sends sequenceable data to the target ability. | 16000050 | Internal Error. | **Example** - + ```ts import UIAbility from '@ohos.app.ability.UIAbility'; @@ -545,7 +547,6 @@ Releases the caller interface of the target ability. | 16000050 | Internal Error. | **Example** - ```ts import UIAbility from '@ohos.app.ability.UIAbility'; @@ -589,7 +590,7 @@ Registers a callback that is invoked when the stub on the target ability is disc | callback | OnReleaseCallBack | Yes| Callback used for the **onRelease** API.| **Example** - + ```ts import UIAbility from '@ohos.app.ability.UIAbility'; @@ -716,7 +717,6 @@ Deregisters a caller notification callback, which is invoked when the target abi **Example** - ```ts import UIAbility from '@ohos.app.ability.UIAbility'; diff --git a/en/application-dev/reference/apis/js-apis-application-abilityDelegatorRegistry.md b/en/application-dev/reference/apis/js-apis-application-abilityDelegatorRegistry.md index ae72afeca2e3214d00a785c0639793e8df47d715..4dd701b54e2924b5ec1b928e4c0f5ad8a8d3f05f 100644 --- a/en/application-dev/reference/apis/js-apis-application-abilityDelegatorRegistry.md +++ b/en/application-dev/reference/apis/js-apis-application-abilityDelegatorRegistry.md @@ -9,7 +9,7 @@ The **AbilityDelegatorRegistry** module provides APIs for storing the global reg ## Modules to Import ```ts -import AbilityDelegatorRegistry from '@ohos.application.abilityDelegatorRegistry' +import AbilityDelegatorRegistry from '@ohos.application.abilityDelegatorRegistry'; ``` ## AbilityLifecycleState diff --git a/en/application-dev/reference/apis/js-apis-application-abilityLifecycleCallback.md b/en/application-dev/reference/apis/js-apis-application-abilityLifecycleCallback.md index 040448220bb9da59779f0d449c43a59d8ab920bd..5e29491014719ab9e5cf09dd976ed71f2b449c6e 100644 --- a/en/application-dev/reference/apis/js-apis-application-abilityLifecycleCallback.md +++ b/en/application-dev/reference/apis/js-apis-application-abilityLifecycleCallback.md @@ -156,7 +156,7 @@ Called when an ability is continued on another device. **Example** ```ts -import AbilityStage from "@ohos.application.AbilityStage"; +import AbilityStage from "@ohos.app.ability.AbilityStage"; var lifecycleId; diff --git a/en/application-dev/reference/apis/js-apis-application-abilityManager.md b/en/application-dev/reference/apis/js-apis-application-abilityManager.md index e509a1b5d13a2d0d20b8d6dee4efee9487c5ee92..b734efe10a8dcd445e7a51db1509a0c1d4bedc5f 100644 --- a/en/application-dev/reference/apis/js-apis-application-abilityManager.md +++ b/en/application-dev/reference/apis/js-apis-application-abilityManager.md @@ -10,7 +10,7 @@ The **AbilityManager** module provides APIs for obtaining, adding, and modifying ## Modules to Import ```ts -import abilityManager from '@ohos.application.abilityManager' +import abilityManager from '@ohos.application.abilityManager'; ``` ## AbilityState @@ -38,7 +38,7 @@ Updates the configuration. This API uses an asynchronous callback to return the **Permission required**: ohos.permission.UPDATE_CONFIGURATION **System capability**: SystemCapability.Ability.AbilityRuntime.Core - + **Parameters** | Name | Type | Mandatory | Description | @@ -176,7 +176,7 @@ abilityManager.getExtensionRunningInfos(upperLimit, (err,data) => { getExtensionRunningInfos(upperLimit: number): Promise\> Obtains the extension running information. This API uses a promise to return the result. - + **Required permissions**: ohos.permission.GET_RUNNING_INFO **System capability**: SystemCapability.Ability.AbilityRuntime.Core @@ -232,7 +232,7 @@ abilityManager.getTopAbility((err,data) => { getTopAbility(): Promise\; Obtains the top ability, which is the ability that has the window focus. This API uses a promise to return the result. - + **System capability**: SystemCapability.Ability.AbilityRuntime.Core **Return value** diff --git a/en/application-dev/reference/apis/js-apis-application-accessibilityExtensionAbility.md b/en/application-dev/reference/apis/js-apis-application-accessibilityExtensionAbility.md index a47e3e8908f69f5515beab95cea6f74351719a77..2a665f5febb82481993674c7501279b838ea05db 100644 --- a/en/application-dev/reference/apis/js-apis-application-accessibilityExtensionAbility.md +++ b/en/application-dev/reference/apis/js-apis-application-accessibilityExtensionAbility.md @@ -1,4 +1,4 @@ -# @ohos.application.AccessibilityExtensionAbility +# @ohos.application.AccessibilityExtensionAbility (AccessibilityExtensionAbility) The **AccessibilityExtensionAbility** module provides accessibility extension capabilities based on the ExtensionAbility framework. diff --git a/en/application-dev/reference/apis/js-apis-application-appManager.md b/en/application-dev/reference/apis/js-apis-application-appManager.md index 591f5ec77a34ef2eb36979a00b9553241b33ddb3..a31f9c88969155dc1f0fc7717fd2aa6267ac3180 100644 --- a/en/application-dev/reference/apis/js-apis-application-appManager.md +++ b/en/application-dev/reference/apis/js-apis-application-appManager.md @@ -420,7 +420,7 @@ Deregisters the application state observer. This API uses a promise to return th getForegroundApplications(callback: AsyncCallback\>): void; Obtains information about the applications that are running in the foreground. This API uses an asynchronous callback to return the result. The application information is defined by [AppStateData](js-apis-inner-application-appStateData.md). - + **Required permissions**: ohos.permission.GET_RUNNING_INFO **System capability**: SystemCapability.Ability.AbilityRuntime.Core diff --git a/en/application-dev/reference/apis/js-apis-application-configuration.md b/en/application-dev/reference/apis/js-apis-application-configuration.md index 81870036a845c61f852f671616f63c12f92851b8..82d964e100a1bda94ad0f6f470ae29895d2acde5 100644 --- a/en/application-dev/reference/apis/js-apis-application-configuration.md +++ b/en/application-dev/reference/apis/js-apis-application-configuration.md @@ -26,7 +26,6 @@ import Configuration from '@ohos.application.Configuration' For details about the fields, see the **ohos.application.Configuration.d.ts** file. **Example** - ```ts import hilog from '@ohos.hilog'; import UIAbility from '@ohos.app.ability.UIAbility'; diff --git a/en/application-dev/reference/apis/js-apis-application-errorManager.md b/en/application-dev/reference/apis/js-apis-application-errorManager.md index c1eaa2d35e90966795e4b98f4b75cffc0570e855..2fbd840782cefe200f53d6df090bff9220b52c49 100644 --- a/en/application-dev/reference/apis/js-apis-application-errorManager.md +++ b/en/application-dev/reference/apis/js-apis-application-errorManager.md @@ -8,7 +8,7 @@ The **ErrorManager** module provides APIs for registering and deregistering erro ## Modules to Import ```ts -import errorManager from '@ohos.application.errorManager' +import errorManager from '@ohos.application.errorManager'; ``` ## ErrorManager.registerErrorObserver @@ -20,7 +20,7 @@ Registers an error observer. **System capability**: SystemCapability.Ability.AbilityRuntime.Core **Parameters** - + | Name| Type| Mandatory| Description| | -------- | -------- | -------- | -------- | | observer | [ErrorObserver](js-apis-inner-application-errorObserver.md) | Yes| Numeric code of the observer.| @@ -45,7 +45,7 @@ Deregisters an error observer. This API uses an asynchronous callback to return **System capability**: SystemCapability.Ability.AbilityRuntime.Core **Parameters** - + | Name| Type| Mandatory| Description| | -------- | -------- | -------- | -------- | | observerId | number | Yes| Numeric code of the observer.| @@ -74,7 +74,7 @@ Deregisters an error observer. This API uses a promise to return the result. **System capability**: SystemCapability.Ability.AbilityRuntime.Core **Parameters** - + | Name| Type| Mandatory| Description| | -------- | -------- | -------- | -------- | | observerId | number | Yes| Numeric code of the observer.| diff --git a/en/application-dev/reference/apis/js-apis-application-formBindingData.md b/en/application-dev/reference/apis/js-apis-application-formBindingData.md index 5fbc52c95dc9e573947fb9820f00100a76a06f22..e82f3f2f199c103a6b2ee6d1f15c54144ece2036 100644 --- a/en/application-dev/reference/apis/js-apis-application-formBindingData.md +++ b/en/application-dev/reference/apis/js-apis-application-formBindingData.md @@ -48,7 +48,7 @@ Creates a **FormBindingData** object. **Example** ```ts -import formBindingData from @ohos.application.formBindingData; +import formBindingData from '@ohos.application.formBindingData'; import fs from '@ohos.file.fs'; try { diff --git a/en/application-dev/reference/apis/js-apis-application-formProvider.md b/en/application-dev/reference/apis/js-apis-application-formProvider.md index 4d604ff7295eb9903d450bc96f9c00fde253ee11..15428096d42ef9321249dc924e3569bbe4c4809a 100644 --- a/en/application-dev/reference/apis/js-apis-application-formProvider.md +++ b/en/application-dev/reference/apis/js-apis-application-formProvider.md @@ -94,7 +94,7 @@ Updates a widget. This API uses an asynchronous callback to return the result. **Example** ```ts - import formBindingData from '@ohos.application.formBindingData'; + import formBindingData from '@ohos.app.form.formBindingData'; import formProvider from '@ohos.app.form.formProvider'; let formId = "12400633174999288"; diff --git a/en/application-dev/reference/apis/js-apis-avsession.md b/en/application-dev/reference/apis/js-apis-avsession.md index 5552792aadadd04fca72d4fe88ffdfc8219b3ec9..86fc2ceeebebd248a2e51f6454ea74dbc2f80602 100644 --- a/en/application-dev/reference/apis/js-apis-avsession.md +++ b/en/application-dev/reference/apis/js-apis-avsession.md @@ -1001,7 +1001,7 @@ For details about the error codes, see [AVSession Management Error Codes](../err **Example** ```js -import wantAgent from '@ohos.wantAgent'; +import wantAgent from '@ohos.app.ability.wantAgent'; // WantAgentInfo object let wantAgentInfo = { @@ -1066,7 +1066,7 @@ For details about the error codes, see [AVSession Management Error Codes](../err **Example** ```js -import wantAgent from '@ohos.wantAgent'; +import wantAgent from '@ohos.app.ability.wantAgent'; // WantAgentInfo object let wantAgentInfo = { @@ -2222,7 +2222,7 @@ For details about the error codes, see [AVSession Management Error Codes](../err **Example** ```js -import wantAgent from '@ohos.wantAgent'; +import wantAgent from '@ohos.app.ability.wantAgent'; controller.getLaunchAbility().then((agent) => { console.info(`GetLaunchAbility : SUCCESS : wantAgent : ${agent}`); @@ -2257,7 +2257,7 @@ For details about the error codes, see [AVSession Management Error Codes](../err **Example** ```js -import wantAgent from '@ohos.wantAgent'; +import wantAgent from '@ohos.app.ability.wantAgent'; controller.getLaunchAbility(function (err, agent) { if (err) { diff --git a/en/application-dev/reference/apis/js-apis-backgroundTaskManager.md b/en/application-dev/reference/apis/js-apis-backgroundTaskManager.md index 6080d2c9bc52e30b6fa987f9cb65ea9b42a28024..775bc6665152c9d2870e28f677022d8734a551fe 100644 --- a/en/application-dev/reference/apis/js-apis-backgroundTaskManager.md +++ b/en/application-dev/reference/apis/js-apis-backgroundTaskManager.md @@ -173,7 +173,7 @@ FA model: ```js import backgroundTaskManager from '@ohos.backgroundTaskManager'; import featureAbility from '@ohos.ability.featureAbility'; -import wantAgent from '@ohos.wantAgent'; +import wantAgent from '@ohos.app.ability.wantAgent'; function callback(err, data) { if (err) { @@ -207,7 +207,7 @@ Stage model: ```ts import UIAbility from '@ohos.app.ability.UIAbility'; import backgroundTaskManager from '@ohos.backgroundTaskManager'; -import wantAgent from '@ohos.wantAgent'; +import wantAgent from '@ohos.app.ability.wantAgent'; function callback(err, data) { if (err) { @@ -270,7 +270,7 @@ FA model: ```js import backgroundTaskManager from '@ohos.backgroundTaskManager'; import featureAbility from '@ohos.ability.featureAbility'; -import wantAgent from '@ohos.wantAgent'; +import wantAgent from '@ohos.app.ability.wantAgent'; let wantAgentInfo = { wants: [ @@ -299,7 +299,7 @@ Stage model: ```ts import UIAbility from '@ohos.app.ability.UIAbility'; import backgroundTaskManager from '@ohos.backgroundTaskManager'; -import wantAgent from '@ohos.wantAgent'; +import wantAgent from '@ohos.app.ability.wantAgent'; export default class EntryAbility extends UIAbility { onCreate(want, launchParam) { diff --git a/en/application-dev/reference/apis/js-apis-data-preferences.md b/en/application-dev/reference/apis/js-apis-data-preferences.md index 5ba79b73ed0370258a87975c1a4ee576816964b4..b279dfcd4e2938efb33a33a70a35228a9de89b4d 100644 --- a/en/application-dev/reference/apis/js-apis-data-preferences.md +++ b/en/application-dev/reference/apis/js-apis-data-preferences.md @@ -38,7 +38,7 @@ Obtains a **Preferences** instance. This API uses an asynchronous callback to re | Name | Type | Mandatory| Description | | -------- | ------------------------------------------------ | ---- | ------------------------------------------------------------ | -| context | Context | Yes | Application context.
For the application context of the FA model, see [Context](js-apis-inner-app-context.md).
For the application context of the stage model, see [Context](js-apis-ability-context.md). | +| context | Context | Yes | Application context.
For details about the application context of the FA model, see [Context](js-apis-inner-app-context.md).
For details about the application context of the stage model, see [Context](js-apis-ability-context.md). | | name | string | Yes | Name of the **Preferences** instance.| | callback | AsyncCallback<[Preferences](#preferences)> | Yes | Callback invoked to return the result. If the operation is successful, **err** is **undefined** and **object** is the **Preferences** instance obtained. Otherwise, **err** is an error code.| @@ -69,9 +69,11 @@ Stage model: ```ts // Obtain the context. -import Ability from '@ohos.application.Ability'; +import UIAbility from '@ohos.app.ability.UIAbility'; + let context = null; -class MainAbility extends Ability{ + +class EntryAbility extends UIAbility { onWindowStageCreate(windowStage){ context = this.context; } @@ -103,7 +105,7 @@ Obtains a **Preferences** instance. This API uses a promise to return the result | Name | Type | Mandatory| Description | | ------- | ------------------------------------- | ---- | ----------------------- | -| context | Context | Yes | Application context.
For the application context of the FA model, see [Context](js-apis-inner-app-context.md).
For the application context of the stage model, see [Context](js-apis-ability-context.md). | +| context | Context | Yes | Application context.
For details about the application context of the FA model, see [Context](js-apis-inner-app-context.md).
For details about the application context of the stage model, see [Context](js-apis-ability-context.md). | | name | string | Yes | Name of the **Preferences** instance.| **Return value** @@ -139,9 +141,11 @@ Stage model: ```ts // Obtain the context. -import Ability from '@ohos.application.Ability'; +import UIAbility from '@ohos.app.ability.UIAbility'; + let context = null; -class MainAbility extends Ability{ + +class EntryAbility extends UIAbility { onWindowStageCreate(windowStage){ context = this.context; } @@ -177,7 +181,7 @@ The deleted **Preferences** instance cannot be used for data operations. Otherwi | Name | Type | Mandatory| Description | | -------- | ------------------------------------- | ---- | ---------------------------------------------------- | -| context | Context | Yes | Application context.
For the application context of the FA model, see [Context](js-apis-inner-app-context.md).
For the application context of the stage model, see [Context](js-apis-ability-context.md). | +| context | Context | Yes | Application context.
For details about the application context of the FA model, see [Context](js-apis-inner-app-context.md).
For details about the application context of the stage model, see [Context](js-apis-ability-context.md). | | name | string | Yes | Name of the **Preferences** instance to delete. | | callback | AsyncCallback<void> | Yes | Callback invoked to return the result. If the operation is successful, **err** is **undefined**. Otherwise, **err** is an error code.| @@ -215,9 +219,11 @@ Stage model: ```ts // Obtain the context. -import Ability from '@ohos.application.Ability'; +import UIAbility from '@ohos.app.ability.UIAbility'; + let context = null; -class MainAbility extends Ability{ + +class EntryAbility extends UIAbility { onWindowStageCreate(windowStage){ context = this.context; } @@ -252,7 +258,7 @@ The deleted **Preferences** instance cannot be used for data operations. Otherwi | Name | Type | Mandatory| Description | | ------- | ------------------------------------- | ---- | ----------------------- | -| context | Context | Yes | Application context.
For the application context of the FA model, see [Context](js-apis-inner-app-context.md).
For the application context of the stage model, see [Context](js-apis-ability-context.md). | +| context | Context | Yes | Application context.
For details about the application context of the FA model, see [Context](js-apis-inner-app-context.md).
For details about the application context of the stage model, see [Context](js-apis-ability-context.md). | | name | string | Yes | Name of the **Preferences** instance to delete.| **Return value** @@ -294,9 +300,11 @@ Stage model: ```ts // Obtain the context. -import Ability from '@ohos.application.Ability'; +import UIAbility from '@ohos.app.ability.UIAbility'; + let context = null; -class MainAbility extends Ability{ + +class EntryAbility extends UIAbility { onWindowStageCreate(windowStage){ context = this.context; } @@ -328,7 +336,7 @@ The removed **Preferences** instance cannot be used for data operations. Otherwi | Name | Type | Mandatory| Description | | -------- | ------------------------------------- | ---- | ---------------------------------------------------- | -| context | Context | Yes | Application context.
For the application context of the FA model, see [Context](js-apis-inner-app-context.md).
For the application context of the stage model, see [Context](js-apis-ability-context.md). | +| context | Context | Yes | Application context.
For details about the application context of the FA model, see [Context](js-apis-inner-app-context.md).
For details about the application context of the stage model, see [Context](js-apis-ability-context.md). | | name | string | Yes | Name of the **Preferences** instance to remove. | | callback | AsyncCallback<void> | Yes | Callback invoked to return the result. If the operation is successful, **err** is **undefined**. Otherwise, **err** is an error code.| @@ -358,9 +366,11 @@ Stage model: ```ts // Obtain the context. -import Ability from '@ohos.application.Ability'; +import UIAbility from '@ohos.app.ability.UIAbility'; + let context = null; -class MainAbility extends Ability{ + +class EntryAbility extends UIAbility { onWindowStageCreate(windowStage){ context = this.context; } @@ -394,7 +404,7 @@ The removed **Preferences** instance cannot be used for data operations. Otherwi | Name | Type | Mandatory| Description | | ------- | ------------------------------------- | ---- | ----------------------- | -| context | Context | Yes | Application context.
For the application context of the FA model, see [Context](js-apis-inner-app-context.md).
For the application context of the stage model, see [Context](js-apis-ability-context.md). | +| context | Context | Yes | Application context.
For details about the application context of the FA model, see [Context](js-apis-inner-app-context.md).
For details about the application context of the stage model, see [Context](js-apis-ability-context.md). | | name | string | Yes | Name of the **Preferences** instance to remove.| **Return value** @@ -428,9 +438,9 @@ Stage model: ```ts // Obtain the context. -import Ability from '@ohos.application.Ability'; +import UIAbility from '@ohos.app.ability.UIAbility'; let context = null; -class MainAbility extends Ability{ +class EntryAbility extends UIAbility { onWindowStageCreate(windowStage){ context = this.context; } diff --git a/en/application-dev/reference/apis/js-apis-data-relationalStore.md b/en/application-dev/reference/apis/js-apis-data-relationalStore.md index 4bd0a6e1357314bb04141ced51fe9d72238d6bc9..579dd277e83b8d7a20f55dc21542099e690ec470 100644 --- a/en/application-dev/reference/apis/js-apis-data-relationalStore.md +++ b/en/application-dev/reference/apis/js-apis-data-relationalStore.md @@ -48,26 +48,21 @@ For details about the error codes, see [RDB Error Codes](../errorcodes/errorcode FA model: ```js -// Obtain the context. + import featureAbility from '@ohos.ability.featureAbility' + +// Obtain the context. let context = featureAbility.getContext() -// Call getRdbStore. const STORE_CONFIG = { name: "RdbTest.db", securityLevel: data_rdb.SecurityLevel.S1 } + data_rdb.getRdbStore(context, STORE_CONFIG, function (err, rdbStore) { if (err) { console.info("Failed to get RdbStore, err: " + err) return - } - if (rdbStore.openStatus == data_rdb.OpenStatus.ON_CREATE) { - console.log("RdbStore status is ON_CREATE") - } else if (rdbStore.openStatus == data_rdb.OpenStatus.ON_OPEN) { - console.log("RdbStore status is ON_OPEN") - } else { - return } console.log("Got RdbStore successfully.") }) @@ -76,36 +71,24 @@ data_rdb.getRdbStore(context, STORE_CONFIG, function (err, rdbStore) { Stage model: ```ts -// Obtain the context. -import UIAbility from '@ohos.app.ability.UIAbility'; - -let context; +import UIAbility from '@ohos.app.ability.UIAbility' class EntryAbility extends UIAbility { onWindowStageCreate(windowStage){ - context = this.context + const STORE_CONFIG = { + name: "RdbTest.db", + securityLevel: data_rdb.SecurityLevel.S1 + } + + data_rdb.getRdbStore(this.context, STORE_CONFIG, function (err, rdbStore) { + if (err) { + console.info("Failed to get RdbStore, err: " + err) + return + } + console.log("Got RdbStore successfully.") + }) } } - -// Call getRdbStore. -const STORE_CONFIG = { - name: "RdbTest.db", - securityLevel: data_rdb.SecurityLevel.S1 -} -data_rdb.getRdbStore(context, STORE_CONFIG, function (err, rdbStore) { - if (err) { - console.info("Failed to get RdbStore, err: " + err) - return - } - if (rdbStore.openStatus == data_rdb.OpenStatus.ON_CREATE) { - console.log("RdbStore status is ON_CREATE") - } else if (rdbStore.openStatus == data_rdb.OpenStatus.ON_OPEN) { - console.log("RdbStore status is ON_OPEN") - } else { - return - } - console.log("Got RdbStore successfully.") -}) ``` ## data_rdb.getRdbStore @@ -143,24 +126,18 @@ For details about the error codes, see [RDB Error Codes](../errorcodes/errorcode FA model: ```js -// Obtain the context. import featureAbility from '@ohos.ability.featureAbility' + +// Obtain the context. let context = featureAbility.getContext() -// Call getRdbStore. const STORE_CONFIG = { name: "RdbTest.db", securityLevel: data_rdb.SecurityLevel.S1 } + let promise = data_rdb.getRdbStore(context, STORE_CONFIG); promise.then(async (rdbStore) => { - if (rdbStore.openStatus == data_rdb.OpenStatus.ON_CREATE) { - console.log("RdbStore status is ON_CREATE") - } else if (rdbStore.openStatus == data_rdb.OpenStatus.ON_OPEN) { - console.log("RdbStore status is ON_OPEN") - } else { - return - } console.log("Got RdbStore successfully.") }).catch((err) => { console.log("Failed to get RdbStore, err: " + err) @@ -170,35 +147,23 @@ promise.then(async (rdbStore) => { Stage model: ```ts -// Obtain the context. -import UIAbility from '@ohos.app.ability.UIAbility'; - -let context; +import UIAbility from '@ohos.app.ability.UIAbility' class EntryAbility extends UIAbility { onWindowStageCreate(windowStage){ - context = this.context + const STORE_CONFIG = { + name: "RdbTest.db", + securityLevel: data_rdb.SecurityLevel.S1 + } + + let promise = data_rdb.getRdbStore(this.context, STORE_CONFIG); + promise.then(async (rdbStore) => { + console.log("Got RdbStore successfully.") + }).catch((err) => { + console.log("Failed to get RdbStore, err: " + err) + }) } } - -// Call getRdbStore. -const STORE_CONFIG = { - name: "RdbTest.db", - securityLevel: data_rdb.SecurityLevel.S1 -} -let promise = data_rdb.getRdbStore(context, STORE_CONFIG); -promise.then(async (rdbStore) => { - if (rdbStore.openStatus == data_rdb.OpenStatus.ON_CREATE) { - console.log("RdbStore status is ON_CREATE") - } else if (rdbStore.openStatus == data_rdb.OpenStatus.ON_OPEN) { - console.log("RdbStore status is ON_OPEN") - } else { - return - } - console.log("Got RdbStore successfully.") -}).catch((err) => { - console.log("Failed to get RdbStore, err: " + err) -}) ``` ## data_rdb.deleteRdbStore @@ -230,11 +195,11 @@ For details about the error codes, see [RDB Error Codes](../errorcodes/errorcode FA model: ```js -// Obtain the context. import featureAbility from '@ohos.ability.featureAbility' + +// Obtain the context. let context = featureAbility.getContext() -// Call deleteRdbStore. data_rdb.deleteRdbStore(context, "RdbTest.db", function (err) { if (err) { console.info("Failed to delete RdbStore, err: " + err) @@ -247,25 +212,19 @@ data_rdb.deleteRdbStore(context, "RdbTest.db", function (err) { Stage model: ```ts -// Obtain the context. -import UIAbility from '@ohos.app.ability.UIAbility'; - -let context; +import UIAbility from '@ohos.app.ability.UIAbility' class EntryAbility extends UIAbility { onWindowStageCreate(windowStage){ - context = this.context + data_rdb.deleteRdbStore(this.context, "RdbTest.db", function (err) { + if (err) { + console.info("Failed to delete RdbStore, err: " + err) + return + } + console.log("Deleted RdbStore successfully.") + }) } } - -// Call deleteRdbStore. -data_rdb.deleteRdbStore(context, "RdbTest.db", function (err) { - if (err) { - console.info("Failed to delete RdbStore, err: " + err) - return - } - console.log("Deleted RdbStore successfully.") -}) ``` ## data_rdb.deleteRdbStore @@ -302,11 +261,11 @@ For details about the error codes, see [RDB Error Codes](../errorcodes/errorcode FA model: ```js -// Obtain the context. import featureAbility from '@ohos.ability.featureAbility' + +// Obtain the context. let context = featureAbility.getContext() -// Call deleteRdbStore. let promise = data_rdb.deleteRdbStore(context, "RdbTest.db") promise.then(()=>{ console.log("Deleted RdbStore successfully.") @@ -318,24 +277,18 @@ promise.then(()=>{ Stage model: ```ts -// Obtain the context. -import UIAbility from '@ohos.app.ability.UIAbility'; - -let context; +import UIAbility from '@ohos.app.ability.UIAbility' class EntryAbility extends UIAbility { onWindowStageCreate(windowStage){ - context = this.context + let promise = data_rdb.deleteRdbStore(this.context, "RdbTest.db") + promise.then(()=>{ + console.log("Deleted RdbStore successfully.") + }).catch((err) => { + console.info("Failed to delete RdbStore, err: " + err) + }) } } - -// Call deleteRdbStore. -let promise = data_rdb.deleteRdbStore(context, "RdbTest.db") -promise.then(()=>{ - console.log("Deleted RdbStore successfully.") -}).catch((err) => { - console.info("Failed to delete RdbStore, err: " + err) -}) ``` ## StoreConfig @@ -423,17 +376,6 @@ Defines the resolution to use when **insert()** and **update()** conflict. | ON_CONFLICT_IGNORE | 4 | Skip the rows that contain constraint violations and continue to process the subsequent rows of the SQL statement.| | ON_CONFLICT_REPLACE | 5 | Delete pre-existing rows that cause the constraint violation before inserting or updating the current row, and continue to execute the command normally.| -## OpenStatus10+ - -Enumerates the RDB store status. - -**System capability**: SystemCapability.DistributedDataManager.RelationalStore.Core - -| Name | Value | Description | -| --------- | ---- | --------------------------------------------------- | -| ON_CREATE | 0 | The RDB store is created for the first time. | -| ON_OPEN | 1 | The RDB store is already created. | - ## RdbPredicates Defines the predicates for an RDB store. This class determines whether the conditional expression for the RDB store is true or false. @@ -1283,7 +1225,16 @@ Before using the following APIs, use [executeSql](#executesql) to initialize the | Name | Type | Mandatory| Description | | ------------ | ----------- | ---- | -------------------------------- | -| openStatus10+ | number | Yes | RDB store status. The value **0** indicates the **ON_CREATE** state, which means the RDB store is created for the first time. The value **1** indicates the **ON_OPEN** state, which means the RDB store is already created. | +| version10+ | number | Yes | RDB store version, which is an integer greater than 0. | + +**Example** + +```js +// Set the RDB store version. +rdbStore.version = 3 +// Obtain the RDB store version. +console.info("Get RdbStore version is " + rdbStore.version) +``` ### insert diff --git a/en/application-dev/reference/apis/js-apis-deque.md b/en/application-dev/reference/apis/js-apis-deque.md index d227b545aa9f5ad3b719b2da86800cab6ccc5084..274836333aa773d32a386ad22b03706e890859c7 100644 --- a/en/application-dev/reference/apis/js-apis-deque.md +++ b/en/application-dev/reference/apis/js-apis-deque.md @@ -1,6 +1,7 @@ # @ohos.util.Deque (Linear Container Deque) > **NOTE** +> > The initial APIs of this module are supported since API version 8. Newly added APIs will be marked with a superscript to indicate their earliest API version. Double-ended queue (deque) is a sequence container implemented based on the queue data structure that follows the principles of First In First Out (FIFO) and Last In First Out (LIFO). It allows insertion and removal of elements at both the ends. **Deque** can dynamically adjust the capacity based on project requirements. It doubles the capacity each time. **Deque** differs from **[Queue](js-apis-queue.md)** and **[Vector](js-apis-vector.md)** mainly in the following aspects: diff --git a/en/application-dev/reference/apis/js-apis-deviceUsageStatistics.md b/en/application-dev/reference/apis/js-apis-deviceUsageStatistics.md index f9a998f37ca17b4d4c70342bc648ed519fbe1652..813b44ccf0088142fccbc22f3087aede4669f2bc 100644 --- a/en/application-dev/reference/apis/js-apis-deviceUsageStatistics.md +++ b/en/application-dev/reference/apis/js-apis-deviceUsageStatistics.md @@ -1,4 +1,4 @@ -# @ohos.deviceUsageStatistics (Device Usage Statistics) +# @ohos.bundleState (Device Usage Statistics) This module provides APIs for collecting statistics on device usage. @@ -454,6 +454,20 @@ Provides the usage duration information of an application. | infosBeginTime | number | No | Time logged in the first application usage record in the **BundleActiveInfo** object.| | infosEndTime | number | No | Time logged in the last application usage record in the **BundleActiveInfo** object.| +### merge(deprecated) + +merge(toMerge: BundleStateInfo): void + +Merges the device usage statistics of applications with the same bundle name. + +**System capability**: SystemCapability.ResourceSchedule.UsageStatistics.App + +**Parameters** + +| Name| Type| Mandatory| Description| +| -------- | -------- | -------- | -------- | +| toMerge | [BundleStateInfo](#bundlestateinfo) | Yes| Device usage statistics to merge.| + ## BundleActiveState Provides information about an application event. diff --git a/en/application-dev/reference/apis/js-apis-environment.md b/en/application-dev/reference/apis/js-apis-file-environment.md similarity index 65% rename from en/application-dev/reference/apis/js-apis-environment.md rename to en/application-dev/reference/apis/js-apis-file-environment.md index aca809efc243720dfdc7b95c4300ea84aee2f5c8..9c340eef3974ed2875f417c71cb8a5f7dd4b10d8 100644 --- a/en/application-dev/reference/apis/js-apis-environment.md +++ b/en/application-dev/reference/apis/js-apis-file-environment.md @@ -1,16 +1,17 @@ -# @ohos.environment (Directory Environment Capability) +# @ohos.file.environment (Directory Environment Capability) The **Environment** module provides APIs for obtaining the root directories of the storage and public files. > **NOTE** > -> - The initial APIs of this module are supported since API version 8. Newly added APIs will be marked with a superscript to indicate their earliest API version. +> - The initial APIs of this module are supported since API version 9. Newly added APIs will be marked with a superscript to indicate their earliest API version. > - The APIs of this module are system APIs and cannot be called by third-party applications. +> - The APIs of this module support processing of error codes. For details, see [File Management Error Codes](../errorcodes/errorcode-filemanagement.md). ## Modules to Import ```js -import environment from '@ohos.environment'; +import environment from '@ohos.file.environment'; ``` ## environment.getStorageDataDir @@ -30,10 +31,10 @@ Obtains the root directory of the storage. This API uses a promise to return the **Example** ```js - environment.getStorageDataDir().then(function(path){ - console.info("getStorageDataDir successfully:"+ path); - }).catch(function(error){ - console.info("getStorageDataDir failed with error:"+ error); + environment.getStorageDataDir().then((path) => { + console.info("getStorageDataDir successfully, Path: " + path); + }).catch((err) => { + console.info("getStorageDataDir failed with error message: " + err.message + ", error code: " + err.code); }); ``` @@ -54,8 +55,12 @@ Obtains the root directory of the storage. This API uses an asynchronous callbac **Example** ```js - environment.getStorageDataDir(function(error, path){ - // do something + environment.getStorageDataDir((err, path) => { + if (err) { + console.info("getStorageDataDir failed with error message: " + err.message + ", error code: " + err.code); + } else { + console.info("getStorageDataDir successfully, Path: " + path); + } }); ``` @@ -76,10 +81,10 @@ Obtains the root directory of public files. This API uses a promise to return th **Example** ```js - environment.getUserDataDir().then(function(path){ - console.info("getUserDataDir successfully:"+ path); - }).catch(function(error){ - console.info("getUserDataDir failed with error:"+ error); + environment.getUserDataDir().then((path) => { + console.info("getUserDataDir successfully, Path: " + path); + }).catch((err) => { + console.info("getUserDataDir failed with error message: " + err.message + ", error code: " + err.code); }); ``` @@ -100,7 +105,11 @@ Obtains the root directory of public files. This API uses an asynchronous callba **Example** ```js - environment.getUserDataDir(function(error, path){ - // do something + environment.getUserDataDir((err, path) => { + if (err) { + console.info("getUserDataDir failed with error message: " + err.message + ", error code: " + err.code); + } else { + console.info("getUserDataDir successfully, Path: " + path); + } }); ``` diff --git a/en/application-dev/reference/apis/js-apis-file-fs.md b/en/application-dev/reference/apis/js-apis-file-fs.md new file mode 100644 index 0000000000000000000000000000000000000000..f82393a4691289ac4729b07334fa54c3b66067e2 --- /dev/null +++ b/en/application-dev/reference/apis/js-apis-file-fs.md @@ -0,0 +1,2374 @@ +# @ohos.file.fs (File Management) + +The **fs** module provides APIs for file operations, including basic file management, directory management, file information statistics, and stream read and write. + +> **NOTE** +> +> - The initial APIs of this module are supported since API version 9. Newly added APIs will be marked with a superscript to indicate their earliest API version. +> - The APIs of this module support processing of error codes. For details, see [File Management Error Codes](../errorcodes/errorcode-filemanagement.md). + +## Modules to Import + +```js +import fs from '@ohos.file.fs'; +``` + +## Guidelines + +Before using the APIs provided by this module to perform operations on files or directories, obtain the path of the application sandbox as follows: + +**Stage Model** + + ```js +import UIAbility from '@ohos.app.ability.UIAbility'; + +export default class EntryAbility extends UIAbility { + onWindowStageCreate(windowStage) { + let context = this.context; + let pathDir = context.filesDir; + } +} + ``` + +**FA Model** + + ```js + import featureAbility from '@ohos.ability.featureAbility'; + + let context = featureAbility.getContext(); + context.getFilesDir().then((data) => { + let pathDir = data; + }) + ``` + +For details about how to obtain the FA model context, see [Context](js-apis-inner-app-context.md#context). + +## fs.stat + +stat(file: string|number): Promise<Stat> + +Obtains detailed file information. This API uses a promise to return the result. + +**System capability**: SystemCapability.FileManagement.File.FileIO + +**Parameters** + +| Name| Type | Mandatory| Description | +| ------ | ------ | ---- | -------------------------- | +| file | string\|number | Yes | Path of the file in the application sandbox or file descriptor (FD) of the file.| + +**Return value** + +| Type | Description | +| ---------------------------- | ---------- | +| Promise<[Stat](#stat)> | Promise used to return the file information obtained.| + +**Example** + + ```js + let filePath = pathDir + "test.txt"; + fs.stat(filePath).then((stat) => { + console.info("get file info succeed, the size of file is " + stat.size); + }).catch((err) => { + console.info("get file info failed with error message: " + err.message + ", error code: " + err.code); + }); + ``` + +## fs.stat + +stat(file: string|number, callback: AsyncCallback<Stat>): void + +Obtains detailed file information. This API uses an asynchronous callback to return the result. + +**System capability**: SystemCapability.FileManagement.File.FileIO + +**Parameters** + +| Name | Type | Mandatory| Description | +| -------- | ---------------------------------- | ---- | ------------------------------ | +| file | string\|number | Yes | Path of the file in the application sandbox or file descriptor (FD) of the file. | +| callback | AsyncCallback<[Stat](#stat)> | Yes | Callback invoked to return the file information obtained.| + +**Example** + + ```js + fs.stat(pathDir, (err, stat) => { + if (err) { + console.info("get file info failed with error message: " + err.message + ", error code: " + err.code); + } else { + console.info("get file info succeed, the size of file is " + stat.size); + } + }); + ``` + +## fs.statSync + +statSync(file: string|number): Stat + +Obtains detailed file information synchronously. + +**System capability**: SystemCapability.FileManagement.File.FileIO + +**Parameters** + +| Name| Type | Mandatory| Description | +| ------ | ------ | ---- | -------------------------- | +| file | string\|number | Yes | Path of the file in the application sandbox or file descriptor (FD) of the file.| + + +**Return value** + +| Type | Description | +| ------------- | ---------- | +| [Stat](#stat) | File information obtained.| + +**Example** + + ```js + let stat = fs.statSync(pathDir); + console.info("get file info succeed, the size of file is " + stat.size); + ``` + +## fs.access + +access(path: string): Promise<boolean> + +Checks whether a file exists. This API uses a promise to return the result. + +**System capability**: SystemCapability.FileManagement.File.FileIO + +**Parameters** + +| Name| Type | Mandatory| Description | +| ------ | ------ | ---- | ------------------------------------------------------------ | +| path | string | Yes | Path of the file in the application sandbox. | + +**Return value** + +| Type | Description | +| ------------------- | ---------------------------- | +| Promise<boolean> | Promise used to return a Boolean value. | + +**Example** + + ```js + let filePath = pathDir + "/test.txt"; + fs.access(filePath).then((res) => { + if (res) { + console.info("file exists"); + } + }).catch((err) => { + console.info("access failed with error message: " + err.message + ", error code: " + err.code); + }); + ``` + + +## fs.access + +access(path: string, callback: AsyncCallback<boolean>): void + +Checks whether a file exists. This API uses an asynchronous callback to return the result. + +**System capability**: SystemCapability.FileManagement.File.FileIO + +**Parameters** + +| Name | Type | Mandatory| Description | +| -------- | ------------------------- | ---- | ------------------------------------------------------------ | +| path | string | Yes | Path of the file in the application sandbox. | +| callback | AsyncCallback<boolean> | Yes | Callback invoked to return the result. | + +**Example** + + ```js + let filePath = pathDir + "/test.txt"; + fs.access(filePath, (err, res) => { + if (err) { + console.info("access failed with error message: " + err.message + ", error code: " + err.code); + } else { + if (res) { + console.info("file exists"); + } + } + }); + ``` + +## fs.accessSync + +accessSync(path: string): boolean + +Synchronously checks whether a file exists. + +**System capability**: SystemCapability.FileManagement.File.FileIO + +**Parameters** + +| Name| Type | Mandatory| Description | +| ------ | ------ | ---- | ------------------------------------------------------------ | +| path | string | Yes | Path of the file in the application sandbox. | + +**Example** + + ```js + let filePath = pathDir + "/test.txt"; + try { + let res = fs.accessSync(filePath); + if (res) { + console.info("file exists"); + } + } catch(err) { + console.info("accessSync failed with error message: " + err.message + ", error code: " + err.code); + } + ``` + + +## fs.close + +close(file: File|number): Promise<void> + +Closes a file. This API uses a promise to return the result. + +**System capability**: SystemCapability.FileManagement.File.FileIO + +**Parameters** + +| Name | Type | Mandatory | Description | +| ---- | ------ | ---- | ------------ | +| file | [File](#file)\|number | Yes | File object or FD of the file to close.| + +**Return value** + +| Type | Description | +| ------------------- | ---------------------------- | +| Promise<void> | Promise that returns no value.| + +**Example** + + ```js + let filePath = pathDir + "/test.txt"; + let file = fs.openSync(filePath); + fs.close(file).then(() => { + console.info("File closed"); + fs.closeSync(file); + }).catch((err) => { + console.info("close file failed with error message: " + err.message + ", error code: " + err.code); + }); + ``` + +## fs.close + +close(file: File|number, callback: AsyncCallback<void>): void + +Closes a file. This API uses an asynchronous callback to return the result. + +**System capability**: SystemCapability.FileManagement.File.FileIO + +**Parameters** + +| Name | Type | Mandatory | Description | +| -------- | ------------------------- | ---- | ------------ | +| file | [File](#file)\|number | Yes | File object or FD of the file to close.| +| callback | AsyncCallback<void> | Yes | Callback invoked when the file is closed asynchronously.| + +**Example** + + ```js + let filePath = pathDir + "/test.txt"; + let file = fs.openSync(filePath); + fs.close(file, (err) => { + if (err) { + console.info("close file failed with error message: " + err.message + ", error code: " + err.code); + } else { + console.info("close file success"); + } + }); + ``` + +## fs.closeSync + +closeSync(file: File|number): void + +Synchronously closes a file. + +**System capability**: SystemCapability.FileManagement.File.FileIO + +**Parameters** + +| Name | Type | Mandatory | Description | +| ---- | ------ | ---- | ------------ | +| file | [File](#file)\|number | Yes | File object or FD of the file to close.| + +**Example** + + ```js + let filePath = pathDir + "/test.txt"; + let file = fs.openSync(filePath); + fs.closeSync(file); + ``` + +## fs.copyFile + +copyFile(src: string|number, dest: string|number, mode?: number): Promise<void> + +Copies a file. This API uses a promise to return the result. + +**System capability**: SystemCapability.FileManagement.File.FileIO + +**Parameters** + +| Name | Type | Mandatory | Description | +| ---- | -------------------------- | ---- | ---------------------------------------- | +| src | string\|number | Yes | Path or FD of the file to copy. | +| dest | string\|number | Yes | Destination path of the file or FD of the file created. | +| mode | number | No | Whether to overwrite the file of the same name in the destination path. The default value is **0**, which is the only value supported.
**0**: overwrite the file of the same name.| + +**Return value** + +| Type | Description | +| ------------------- | ---------------------------- | +| Promise<void> | Promise that returns no value.| + +**Example** + + ```js + let srcPath = pathDir + "srcDir/test.txt"; + let dstPath = pathDir + "dstDir/test.txt"; + fs.copyFile(srcPath, dstPath).then(() => { + console.info("copy file succeed"); + }).catch((err) => { + console.info("copy file failed with error message: " + err.message + ", error code: " + err.code); + }); + ``` + +## fs.copyFile + +copyFile(src: string|number, dest: string|number, mode?: number, callback: AsyncCallback<void>): void + +Copies a file. This API uses an asynchronous callback to return the result. + +**System capability**: SystemCapability.FileManagement.File.FileIO + +**Parameters** + +| Name | Type | Mandatory | Description | +| -------- | -------------------------- | ---- | ---------------------------------------- | +| src | string\|number | Yes | Path or FD of the file to copy. | +| dest | string\|number | Yes | Destination path of the file or FD of the file created. | +| mode | number | No | Whether to overwrite the file of the same name in the destination path. The default value is **0**, which is the only value supported.
**0**: overwrite the file with the same name and truncate the part that is not overwritten.| +| callback | AsyncCallback<void> | Yes | Callback invoked when the file is copied asynchronously. | + +**Example** + + ```js + let srcPath = pathDir + "srcDir/test.txt"; + let dstPath = pathDir + "dstDir/test.txt"; + fs.copyFile(srcPath, dstPath, (err) => { + if (err) { + console.info("copy file failed with error message: " + err.message + ", error code: " + err.code); + } else { + console.info("copy file success"); + } + }); + ``` + + +## fs.copyFileSync + +copyFileSync(src: string|number, dest: string|number, mode?: number): void + +Synchronously copies a file. + +**System capability**: SystemCapability.FileManagement.File.FileIO + +**Parameters** + +| Name | Type | Mandatory | Description | +| ---- | -------------------------- | ---- | ---------------------------------------- | +| src | string\|number | Yes | Path or FD of the file to copy. | +| dest | string\|number | Yes | Destination path of the file or FD of the file created. | +| mode | number | No | Whether to overwrite the file of the same name in the destination path. The default value is **0**, which is the only value supported.
**0**: overwrite the file with the same name and truncate the part that is not overwritten.| + +**Example** + + ```js + let srcPath = pathDir + "srcDir/test.txt"; + let dstPath = pathDir + "dstDir/test.txt"; + fs.copyFileSync(srcPath, dstPath); + ``` + + +## fs.mkdir + +mkdir(path: string): Promise<void> + +Creates a directory. This API uses a promise to return the result. + +**System capability**: SystemCapability.FileManagement.File.FileIO + +**Parameters** + +| Name| Type | Mandatory| Description | +| ------ | ------ | ---- | ------------------------------------------------------------ | +| path | string | Yes | Path of the directory in the application sandbox. | + +**Return value** + +| Type | Description | +| ------------------- | ---------------------------- | +| Promise<void> | Promise that returns no value.| + +**Example** + + ```js + let dirPath = pathDir + '/testDir'; + fs.mkdir(dirPath).then(() => { + console.info("Directory created"); + }).catch((err) => { + console.info("mkdir failed with error message: " + err.message + ", error code: " + err.code); + }); + ``` + + +## fs.mkdir + +mkdir(path: string, callback: AsyncCallback<void>): void + +Creates a directory. This API uses an asynchronous callback to return the result. + +**System capability**: SystemCapability.FileManagement.File.FileIO + +**Parameters** + +| Name | Type | Mandatory| Description | +| -------- | ------------------------- | ---- | ------------------------------------------------------------ | +| path | string | Yes | Path of the directory in the application sandbox. | +| callback | AsyncCallback<void> | Yes | Callback invoked when the directory is created asynchronously. | + +**Example** + + ```js + let dirPath = pathDir + '/testDir'; + fs.mkdir(dirPath, (err) => { + if (err) { + console.info("mkdir failed with error message: " + err.message + ", error code: " + err.code); + } else { + console.info("mkdir success"); + } + }); + ``` + + +## fs.mkdirSync + +mkdirSync(path: string): void + +Synchronously creates a directory. + +**System capability**: SystemCapability.FileManagement.File.FileIO + +**Parameters** + +| Name| Type | Mandatory| Description | +| ------ | ------ | ---- | ------------------------------------------------------------ | +| path | string | Yes | Path of the directory in the application sandbox. | + +**Example** + + ```js + let dirPath = path + '/testDir'; + fs.mkdirSync(dirPath); + ``` + + +## fs.open + +open(path: string, mode?: number): Promise<File> + +Opens a file. This API uses a promise to return the result. File uniform resource identifiers (URIs) are supported. + +**System capability**: SystemCapability.FileManagement.File.FileIO + +**Parameters** + +| Name| Type | Mandatory| Description | +| ------ | ------ | ---- | ------------------------------------------------------------ | +| path | string | Yes | Path of the file in the application sandbox or URI of the file. | +| mode | number | No | [Mode](#openmode) for opening the file. You must specify one of the following options. By default, the file is open in read-only mode.
- **OpenMode.READ_ONLY(0o0)**: Open the file in read-only mode.
- **OpenMode.WRITE_ONLY(0o1)**: Open the file in write-only mode.
- **OpenMode.READ_WRITE(0o2)**: Open the file in read/write mode.
You can also specify the following options, separated by a bitwise OR operator (|). By default, no additional options are given.
- **OpenMode.CREATE(0o100)**: If the file does not exist, create it.
- **OpenMode.TRUNC(0o1000)**: If the file exists and is open in write-only or read/write mode, truncate the file length to 0.
- **OpenMode.APPEND(0o2000)**: Open the file in append mode. New data will be added to the end of the file.
- **OpenMode.NONBLOCK(0o4000)**: If **path** points to a named pipe (also known as a FIFO), block special file, or character special file, perform non-blocking operations on the open file and in subsequent I/Os.
- **OpenMode.DIR(0o200000)**: If **path** does not point to a directory, throw an exception.
- **OpenMode.NOFOLLOW(0o400000)**: If **path** points to a symbolic link, throw an exception.
- **OpenMode.SYNC(0o4010000)**: Open the file in synchronous I/O mode.| + +**Return value** + +| Type | Description | +| --------------------- | ----------- | +| Promise<[File](#file)> | Promise used to return the file object.| + +**Example** + + ```js + let filePath = pathDir + "/test.txt"; + fs.open(filePath, fs.OpenMode.READ_WRITE | fs.OpenMode.CREATE).then((file) => { + console.info("file fd: " + file.fd); + }).catch((err) => { + console.info("open file failed with error message: " + err.message + ", error code: " + err.code); + }); + ``` + + +## fs.open + +open(path: string, mode?: number, callback: AsyncCallback<File>): void + +Opens a file. This API uses an asynchronous callback to return the result. File URIs are supported. + +**System capability**: SystemCapability.FileManagement.File.FileIO + +**Parameters** + +| Name | Type | Mandatory| Description | +| -------- | ------------------------------- | ---- | ------------------------------------------------------------ | +| path | string | Yes | Path of the file in the application sandbox or URI of the file. | +| mode | number | No | [Mode](#openmode) for opening the file. You must specify one of the following options. By default, the file is open in read-only mode.
- **OpenMode.READ_ONLY(0o0)**: Open the file in read-only mode.
- **OpenMode.WRITE_ONLY(0o1)**: Open the file in write-only mode.
- **OpenMode.READ_WRITE(0o2)**: Open the file in read/write mode.
You can also specify the following options, separated by a bitwise OR operator (|). By default, no additional options are given.
- **OpenMode.CREATE(0o100)**: If the file does not exist, create it.
- **OpenMode.TRUNC(0o1000)**: If the file exists and is open in write-only or read/write mode, truncate the file length to 0.
- **OpenMode.APPEND(0o2000)**: Open the file in append mode. New data will be added to the end of the file.
- **OpenMode.NONBLOCK(0o4000)**: If **path** points to a named pipe (also known as a FIFO), block special file, or character special file, perform non-blocking operations on the open file and in subsequent I/Os.
- **OpenMode.DIR(0o200000)**: If **path** does not point to a directory, throw an exception.
- **OpenMode.NOFOLLOW(0o400000)**: If **path** points to a symbolic link, throw an exception.
- **OpenMode.SYNC(0o4010000)**: Open the file in synchronous I/O mode.| + +**Example** + + ```js + let filePath = pathDir + "/test.txt"; + fs.open(filePath, fs.OpenMode.READ_WRITE | fs.OpenMode.CREATE, (err, file) => { + if (err) { + console.info("mkdir failed with error message: " + err.message + ", error code: " + err.code); + } else { + console.info("file fd: " + file.fd); + } + }); + ``` + +## fs.openSync + +openSync(path: string, mode?: number): File + +Synchronously opens a file. File URIs are supported. + +**System capability**: SystemCapability.FileManagement.File.FileIO + +**Parameters** + +| Name| Type | Mandatory| Description | +| ------ | ------ | ---- | ------------------------------------------------------------ | +| path | string | Yes | Path of the file in the application sandbox or URI of the file. | +| mode | number | No | [Mode](#openmode) for opening the file. You must specify one of the following options. By default, the file is open in read-only mode.
- **OpenMode.READ_ONLY(0o0)**: Open the file in read-only mode.
- **OpenMode.WRITE_ONLY(0o1)**: Open the file in write-only mode.
- **OpenMode.READ_WRITE(0o2)**: Open the file in read/write mode.
You can also specify the following options, separated by a bitwise OR operator (|). By default, no additional options are given.
- **OpenMode.CREATE(0o100)**: If the file does not exist, create it.
- **OpenMode.TRUNC(0o1000)**: If the file exists and is open in write-only or read/write mode, truncate the file length to 0.
- **OpenMode.APPEND(0o2000)**: Open the file in append mode. New data will be added to the end of the file.
- **OpenMode.NONBLOCK(0o4000)**: If **path** points to a named pipe (also known as a FIFO), block special file, or character special file, perform non-blocking operations on the open file and in subsequent I/Os.
- **OpenMode.DIR(0o200000)**: If **path** does not point to a directory, throw an exception.
- **OpenMode.NOFOLLOW(0o400000)**: If **path** points to a symbolic link, throw an exception.
- **OpenMode.SYNC(0o4010000)**: Open the file in synchronous I/O mode.| + +**Return value** + +| Type | Description | +| ------ | ----------- | +| [File](#file) | File object opened.| + +**Example** + + ```js + let filePath = pathDir + "/test.txt"; + let file = fs.openSync(filePath, fs.OpenMode.READ_WRITE | fs.OpenMode.CREATE); + console.info("file fd: " + file.fd); + fs.closeSync(file); + ``` + +## fs.read + +read(fd: number, buffer: ArrayBuffer, options?: { offset?: number; length?: number; }): Promise<number> + +Reads data from a file. This API uses a promise to return the result. + +**System capability**: SystemCapability.FileManagement.File.FileIO + +**Parameters** + +| Name | Type | Mandatory| Description | +| ------- | ----------- | ---- | ------------------------------------------------------------ | +| fd | number | Yes | FD of the file. | +| buffer | ArrayBuffer | Yes | Buffer used to store the file data read. | +| options | Object | No | The options are as follows:
- **offset** (number): position of the data to read in the file. This parameter is optional. By default, data is read from the current position.
- **length** (number): length of the data to read. This parameter is optional. The default value is the buffer length.| + +**Return value** + +| Type | Description | +| ---------------------------------- | ------ | +| Promise<number> | Promise used to return the data read.| + +**Example** + + ```js + let filePath = pathDir + "/test.txt"; + let file = fs.openSync(filePath, fs.OpenMode.READ_WRITE); + let buf = new ArrayBuffer(4096); + fs.read(file.fd, buf).then((readLen) => { + console.info("Read file data successfully"); + console.info(String.fromCharCode.apply(null, new Uint8Array(readLen))); + fs.closeSync(file); + }).catch((err) => { + console.info("read file data failed with error message: " + err.message + ", error code: " + err.code); + }); + ``` + +## fs.read + +read(fd: number, buffer: ArrayBuffer, options?: { offset?: number; length?: number; }, callback: AsyncCallback<number>): void + +Reads data from a file. This API uses an asynchronous callback to return the result. + +**System capability**: SystemCapability.FileManagement.File.FileIO + +**Parameters** + +| Name | Type | Mandatory | Description | +| -------- | ---------------------------------------- | ---- | ---------------------------------------- | +| fd | number | Yes | FD of the file. | +| buffer | ArrayBuffer | Yes | Buffer used to store the file data read. | +| options | Object | No | The options are as follows:
- **offset** (number): position of the data to read in the file. This parameter is optional. By default, data is read from the current position.
- **length** (number): length of the data to read. This parameter is optional. The default value is the buffer length.| +| callback | AsyncCallback<number> | Yes | Callback invoked when the data is read asynchronously. | + +**Example** + + ```js + let filePath = pathDir + "/test.txt"; + let file = fs.openSync(filePath, fs.OpenMode.READ_WRITE); + let buf = new ArrayBuffer(4096); + fs.read(file.fd, buf, (err, readLen) => { + if (err) { + console.info("mkdir failed with error message: " + err.message + ", error code: " + err.code); + } else { + console.info("Read file data successfully"); + console.info(String.fromCharCode.apply(null, new Uint8Array(readLen))); + fs.closeSync(file); + } + }); + ``` + + +## fs.readSync + +readSync(fd: number, buffer: ArrayBuffer, options?: { offset?: number; length?: number; }): number + +Synchronously reads data from a file. + +**System capability**: SystemCapability.FileManagement.File.FileIO + +**Parameters** + +| Name | Type | Mandatory | Description | +| ------- | ----------- | ---- | ---------------------------------------- | +| fd | number | Yes | FD of the file. | +| buffer | ArrayBuffer | Yes | Buffer used to store the file data read. | +| options | Object | No | The options are as follows:
- **offset** (number): position of the data to read in the file. This parameter is optional. By default, data is read from the current position.
- **length** (number): length of the data to read. This parameter is optional. The default value is the buffer length.| + +**Return value** + +| Type | Description | +| ------ | -------- | +| number | Length of the data read.| + +**Example** + + ```js + let filePath = pathDir + "/test.txt"; + let file = fs.openSync(filePath, fs.OpenMode.READ_WRITE); + let buf = new ArrayBuffer(4096); + let num = fs.readSync(file.fd, buf); + fs.closeSync(file); + ``` + + +## fs.rmdir + +rmdir(path: string): Promise<void> + +Deletes a directory. This API uses a promise to return the result. + +**System capability**: SystemCapability.FileManagement.File.FileIO + +**Parameters** + +| Name| Type | Mandatory| Description | +| ------ | ------ | ---- | -------------------------- | +| path | string | Yes | Path of the directory in the application sandbox.| + +**Return value** + +| Type | Description | +| ------------------- | ---------------------------- | +| Promise<void> | Promise that returns no value.| + +**Example** + + ```js + let dirPath = pathDir + '/testDir'; + fs.rmdir(dirPath).then(() => { + console.info("Directory deleted"); + }).catch((err) => { + console.info("rmdir failed with error message: " + err.message + ", error code: " + err.code); + }); + ``` + + +## fs.rmdir + +rmdir(path: string, callback: AsyncCallback<void>): void + +Deletes a directory. This API uses an asynchronous callback to return the result. + +**System capability**: SystemCapability.FileManagement.File.FileIO + +**Parameters** + +| Name | Type | Mandatory| Description | +| -------- | ------------------------- | ---- | -------------------------- | +| path | string | Yes | Path of the directory in the application sandbox.| +| callback | AsyncCallback<void> | Yes | Callback invoked when the directory is deleted asynchronously. | + +**Example** + + ```js + let dirPath = pathDir + '/testDir'; + fs.rmdir(dirPath, (err) => { + if (err) { + console.info("rmdir failed with error message: " + err.message + ", error code: " + err.code); + } else { + console.info("Directory deleted"); + } + }); + ``` + + +## fs.rmdirSync + +rmdirSync(path: string): void + +Synchronously deletes a directory. + +**System capability**: SystemCapability.FileManagement.File.FileIO + +**Parameters** + +| Name| Type | Mandatory| Description | +| ------ | ------ | ---- | -------------------------- | +| path | string | Yes | Path of the directory in the application sandbox.| + +**Example** + + ```js + let dirPath = pathDir + '/testDir'; + fs.rmdirSync(dirPath); + ``` + + +## fs.unlink + +unlink(path: string): Promise<void> + +Deletes a file. This API uses a promise to return the result. + +**System capability**: SystemCapability.FileManagement.File.FileIO + +**Parameters** + +| Name| Type | Mandatory| Description | +| ------ | ------ | ---- | -------------------------- | +| path | string | Yes | Path of the file in the application sandbox.| + +**Return value** + +| Type | Description | +| ------------------- | ---------------------------- | +| Promise<void> | Promise that returns no value.| + +**Example** + + ```js + let filePath = pathDir + "/test.txt"; + fs.unlink(filePath).then(() => { + console.info("File deleted"); + }).catch((err) => { + console.info("remove file failed with error message: " + err.message + ", error code: " + err.codeor); + }); + ``` + + +## fs.unlink + +unlink(path: string, callback: AsyncCallback<void>): void + +Deletes a file. This API uses an asynchronous callback to return the result. + +**System capability**: SystemCapability.FileManagement.File.FileIO + +**Parameters** + +| Name | Type | Mandatory| Description | +| -------- | ------------------------- | ---- | -------------------------- | +| path | string | Yes | Path of the file in the application sandbox.| +| callback | AsyncCallback<void> | Yes | Callback invoked when the file is deleted asynchronously. | + +**Example** + + ```js + let filePath = pathDir + "/test.txt"; + fs.unlink(filePath, (err) => { + if (err) { + console.info("remove file failed with error message: " + err.message + ", error code: " + err.code); + } else { + console.info("File deleted"); + } + }); + ``` + + +## fs.unlinkSync + +unlinkSync(path: string): void + +Synchronously deletes a file. + +**System capability**: SystemCapability.FileManagement.File.FileIO + +**Parameters** + +| Name| Type | Mandatory| Description | +| ------ | ------ | ---- | -------------------------- | +| path | string | Yes | Path of the file in the application sandbox.| + +**Example** + + ```js + let filePath = pathDir + "/test.txt"; + fs.unlinkSync(filePath); + ``` + + +## fs.write + +write(fd: number, buffer: ArrayBuffer|string, options?: { offset?: number; length?: number; encoding?: string; }): Promise<number> + +Writes data into a file. This API uses a promise to return the result. + +**System capability**: SystemCapability.FileManagement.File.FileIO + +**Parameters** + +| Name | Type | Mandatory | Description | +| ------- | ------------------------------- | ---- | ---------------------------------------- | +| fd | number | Yes | FD of the file. | +| buffer | ArrayBuffer\|string | Yes | Data to write. It can be a string or data from a buffer. | +| options | Object | No | The options are as follows:
- **offset** (number): start position to write the data in the file. This parameter is optional. By default, data is written from the current position.
- **length** (number): length of the data to write. This parameter is optional. The default value is the buffer length.
- **encoding** (string): format of the data to be encoded when the data is a string. The default value is **'utf-8'**, which is the only value supported.| + +**Return value** + +| Type | Description | +| --------------------- | -------- | +| Promise<number> | Promise used to return the length of the data written.| + +**Example** + + ```js + let filePath = pathDir + "/test.txt"; + let file = fs.openSync(filePath, fs.OpenMode.READ_WRITE | fs.OpenMode.CREATE); + fs.write(file.fd, "hello, world").then((writeLen) => { + console.info("write data to file succeed and size is:" + writeLen); + fs.closeSync(file); + }).catch((err) => { + console.info("write data to file failed with error message: " + err.message + ", error code: " + err.code); + }); + ``` + + +## fs.write + +write(fd: number, buffer: ArrayBuffer|string, options?: { offset?: number; length?: number; encoding?: string; }, callback: AsyncCallback<number>): void + +Writes data into a file. This API uses an asynchronous callback to return the result. + +**System capability**: SystemCapability.FileManagement.File.FileIO + +**Parameters** + +| Name | Type | Mandatory | Description | +| -------- | ------------------------------- | ---- | ---------------------------------------- | +| fd | number | Yes | FD of the file. | +| buffer | ArrayBuffer\|string | Yes | Data to write. It can be a string or data from a buffer. | +| options | Object | No | The options are as follows:
- **offset** (number): start position to write the data in the file. This parameter is optional. By default, data is written from the current position.
- **length** (number): length of the data to write. This parameter is optional. The default value is the buffer length.
- **encoding** (string): format of the data to be encoded when the data is a string. The default value is **'utf-8'**, which is the only value supported.| +| callback | AsyncCallback<number> | Yes | Callback invoked when the data is written asynchronously. | + +**Example** + + ```js + let filePath = pathDir + "/test.txt"; + let file = fs.openSync(filePath, fs.OpenMode.READ_WRITE | fs.OpenMode.CREATE); + fs.write(file.fd, "hello, world", (err, writeLen) => { + if (err) { + console.info("write failed with error message: " + err.message + ", error code: " + err.code); + } else { + console.info("write data to file succeed and size is:" + writeLen); + fs.closeSync(file); + } + }); + ``` + + +## fs.writeSync + +writeSync(fd: number, buffer: ArrayBuffer|string, options?: { offset?: number; length?: number; encoding?: string; }): number + +Synchronously writes data into a file. + +**System capability**: SystemCapability.FileManagement.File.FileIO + +**Parameters** + +| Name | Type | Mandatory | Description | +| ------- | ------------------------------- | ---- | ---------------------------------------- | +| fd | number | Yes | FD of the file. | +| buffer | ArrayBuffer\|string | Yes | Data to write. It can be a string or data from a buffer. | +| options | Object | No | The options are as follows:
- **offset** (number): start position to write the data in the file. This parameter is optional. By default, data is written from the current position.
- **length** (number): length of the data to write. This parameter is optional. The default value is the buffer length.
- **encoding** (string): format of the data to be encoded when the data is a string. The default value is **'utf-8'**, which is the only value supported.| + +**Return value** + +| Type | Description | +| ------ | -------- | +| number | Length of the data written in the file.| + +**Example** + + ```js + let filePath = pathDir + "/test.txt"; + let file = fs.openSync(filePath, fs.OpenMode.READ_WRITE | fs.OpenMode.CREATE); + let writeLen = fs.writeSync(file.fd, "hello, world"); + console.info("write data to file succeed and size is:" + writeLen); + fs.closeSync(file); + ``` + +## fs.truncate + +truncate(file: string|number, len?: number): Promise<void> + +Truncates a file. This API uses a promise to return the result. + +**System capability**: SystemCapability.FileManagement.File.FileIO + +**Parameters** + +| Name| Type | Mandatory| Description | +| ------ | ------ | ---- | -------------------------------- | +| file | string\|number | Yes | Path of the file in the application sandbox or file descriptor (FD) of the file. | +| len | number | No | File length, in bytes, after truncation.| + +**Return value** + +| Type | Description | +| ------------------- | ---------------------------- | +| Promise<void> | Promise that returns no value.| + +**Example** + + ```js + let filePath = pathDir + "/test.txt"; + let len = 5; + fs.truncate(filePath, len).then(() => { + console.info("File truncated"); + }).catch((err) => { + console.info("truncate file failed with error message: " + err.message + ", error code: " + err.code); + }); + ``` + + +## fs.truncate + +truncate(file: string|number, len?: number, callback: AsyncCallback<void>): void + +Truncates a file. This API uses an asynchronous callback to return the result. + +**System capability**: SystemCapability.FileManagement.File.FileIO + +**Parameters** + +| Name | Type | Mandatory| Description | +| -------- | ------------------------- | ---- | -------------------------------- | +| file | string\|number | Yes | Path of the file in the application sandbox or file descriptor (FD) of the file. | +| len | number | No | File length, in bytes, after truncation.| +| callback | AsyncCallback<void> | Yes | Callback that returns no value. | + +**Example** + + ```js + let filePath = pathDir + "/test.txt"; + let len = 5; + fs.truncate(filePath, len, (err) => { + if (err) { + console.info("truncate failed with error message: " + err.message + ", error code: " + err.code); + } else { + console.info("truncate success"); + } + }); + ``` + + +## fs.truncateSync + +truncateSync(file: string|number, len?: number): void + +Synchronously truncates a file. + +**System capability**: SystemCapability.FileManagement.File.FileIO + +**Parameters** + +| Name| Type | Mandatory| Description | +| ------ | ------ | ---- | -------------------------------- | +| file | string\|number | Yes | Path of the file in the application sandbox or file descriptor (FD) of the file. | +| len | number | No | File length, in bytes, after truncation.| + +**Example** + + ```js + let filePath = pathDir + "/test.txt"; + let len = 5; + fs.truncateSync(filePath, len); + ``` + + +## fs.readText + +readText(filePath: string, options?: { offset?: number; length?: number; encoding?: string; }): Promise<string> + +Reads the text content of a file. This API uses a promise to return the result. + +**System capability**: SystemCapability.FileManagement.File.FileIO + +**Parameters** + +| Name | Type | Mandatory| Description | +| -------- | ------ | ---- | ------------------------------------------------------------ | +| filePath | string | Yes | Path of the file in the application sandbox. | +| options | Object | No | The options are as follows:
- **offset** (number): position of the data to read in the file. This parameter is optional. By default, data is read from the current position.
- **length** (number): length of the data to read. This parameter is optional. The default value is the file length.
- **encoding** (string): format of the string to be encoded. The default value is **'utf-8'**, which is the only value supported.| + +**Return value** + +| Type | Description | +| --------------------- | ---------- | +| Promise<string> | Promise used to return the content read.| + +**Example** + + ```js + let filePath = pathDir + "/test.txt"; + fs.readText(filePath).then((str) => { + console.info("readText succeed:" + str); + }).catch((err) => { + console.info("readText failed with error message: " + err.message + ", error code: " + err.code); + }); + ``` + + +## fs.readText + +readText(filePath: string, options?: { offset?: number; length?: number; encoding?: string; }, callback: AsyncCallback<string>): void + +Reads the text content of a file. This API uses an asynchronous callback to return the result. + +**System capability**: SystemCapability.FileManagement.File.FileIO + +**Parameters** + +| Name | Type | Mandatory| Description | +| -------- | --------------------------- | ---- | ------------------------------------------------------------ | +| filePath | string | Yes | Path of the file in the application sandbox. | +| options | Object | No | The options are as follows:
- **offset** (number): position of the data to read in the file. This parameter is optional. By default, data is read from the current position.
- **length** (number): length of the data to read. This parameter is optional. The default value is the file length.
- **encoding** (string): format of the string to be encoded. The default value is **'utf-8'**, which is the only value supported.| +| callback | AsyncCallback<string> | Yes | Callback used to return the content read. | + +**Example** + + ```js + let filePath = pathDir + "/test.txt"; + fs.readText(filePath, { offset: 1, encoding: 'UTF-8' }, (err, str) => { + if (err) { + console.info("read text failed with error message: " + err.message + ", error code: " + err.code); + } else { + console.info("readText succeed:" + str); + } + }); + ``` + + +## fs.readTextSync + +readTextSync(filePath: string, options?: { offset?: number; length?: number; encoding?: string; }): string + +Synchronously reads the text of a file. + +**System capability**: SystemCapability.FileManagement.File.FileIO + +**Parameters** + +| Name | Type | Mandatory| Description | +| -------- | ------ | ---- | ------------------------------------------------------------ | +| filePath | string | Yes | Path of the file in the application sandbox. | +| options | Object | No | The options are as follows:
- **offset** (number): position of the data to read in the file. This parameter is optional. By default, data is read from the current position.
- **length** (number): length of the data to read. This parameter is optional. The default value is the file length.
- **encoding** (string): format of the string to be encoded. The default value is **'utf-8'**, which is the only value supported.| + +**Return value** + +| Type | Description | +| ------ | -------------------- | +| string | Promise used to return the content of the file read.| + +**Example** + + ```js + let filePath = pathDir + "/test.txt"; + let str = fs.readTextSync(filePath, {offset: 1, length: 3}); + console.info("readText succeed:" + str); + ``` + +## fs.lstat + +lstat(path: string): Promise<Stat> + +Obtains information about a symbolic link. This API uses a promise to return the result. + +**System capability**: SystemCapability.FileManagement.File.FileIO + +**Parameters** + +| Name| Type | Mandatory| Description | +| ------ | ------ | ---- | -------------------------------------- | +| path | string | Yes | Path of the symbolic link in the application sandbox.| + +**Return value** + +| Type | Description | +| ---------------------------- | ---------- | +| Promise<[Stat](#stat)> | Promise used to return the symbolic link information obtained. For details, see **stat**.| + +**Example** + + ```js + let filePath = pathDir + "/test.txt"; + fs.lstat(filePath).then((stat) => { + console.info("get link status succeed, the size of file is" + stat.size); + }).catch((err) => { + console.info("get link status failed with error message: " + err.message + ", error code: " + err.code); + }); + ``` + + +## fs.lstat + +lstat(path: string, callback: AsyncCallback<Stat>): void + +Obtains information about a symbolic link. This API uses an asynchronous callback to return the result. + +**System capability**: SystemCapability.FileManagement.File.FileIO + +**Parameters** + +| Name | Type | Mandatory| Description | +| -------- | ---------------------------------- | ---- | -------------------------------------- | +| path | string | Yes | Path of the symbolic link in the application sandbox.| +| callback | AsyncCallback<[Stat](#stat)> | Yes | Callback used to return the symbolic link information obtained. | + +**Example** + + ```js + let filePath = pathDir + "/test.txt"; + fs.lstat(filePath, (err, stat) => { + if (err) { + console.info("lstat failed with error message: " + err.message + ", error code: " + err.code); + } else { + console.info("get link status succeed, the size of file is" + stat.size); + } + }); + ``` + +## fs.lstatSync + +lstatSync(path: string): Stat + +Obtains information about a symbolic link synchronously. + +**System capability**: SystemCapability.FileManagement.File.FileIO + +**Parameters** + +| Name| Type | Mandatory| Description | +| ------ | ------ | ---- | -------------------------------------- | +| path | string | Yes | Path of the file in the application sandbox.| + +**Return value** + +| Type | Description | +| ------------- | ---------- | +| [Stat](#stat) | File information obtained.| + +**Example** + + ```js + let filePath = pathDir + "/test.txt"; + let stat = fs.lstatSync(filePath); + ``` + +## fs.rename + +rename(oldPath: string, newPath: string): Promise<void> + +Renames a file. This API uses a promise to return the result. + +**System capability**: SystemCapability.FileManagement.File.FileIO + +**Parameters** + +| Name | Type | Mandatory| Description | +| ------- | ------ | ---- | ---------------------------- | +| oldPath | string | Yes | Path of the file to rename in the application sandbox.| +| newPath | string | Yes | Path of the renamed file in the application sandbox. | + +**Return value** + +| Type | Description | +| ------------------- | ---------------------------- | +| Promise<void> | Promise that returns no value.| + +**Example** + + ```js + let srcFile = pathDir + "/test.txt"; + let dstFile = pathDir + '/new.txt'; + fs.rename(srcFile, dstFile).then(() => { + console.info("File renamed"); + }).catch((err) => { + console.info("rename failed with error message: " + err.message + ", error code: " + err.code); + }); + ``` + +## fs.rename + +rename(oldPath: string, newPath: string, callback: AsyncCallback<void>): void + +Renames a file. This API uses an asynchronous callback to return the result. + +**System capability**: SystemCapability.FileManagement.File.FileIO + +**Parameters** + +| Name | Type | Mandatory| Description | +| -------- | ------------------------- | ---- | ---------------------------- | +| oldPath | string | Yes | Path of the file to rename in the application sandbox.| +| newPath | string | Yes | Path of the renamed file in the application sandbox. | +| callback | AsyncCallback<void> | Yes | Callback invoked when the file is asynchronously renamed. | + +**Example** + + ```js + let srcFile = pathDir + "/test.txt"; + let dstFile = pathDir + '/new.txt'; + fs.rename(srcFile, dstFile, (err) => { + if (err) { + console.info("rename failed with error message: " + err.message + ", error code: " + err.code); + } else { + console.info("rename success"); + } + }); + ``` + +## fs.renameSync + +renameSync(oldPath: string, newPath: string): void + +Synchronously renames a file. + +**System capability**: SystemCapability.FileManagement.File.FileIO + +**Parameters** + +| Name | Type | Mandatory| Description | +| ------- | ------ | ---- | ---------------------------- | +| oldPath | string | Yes | Path of the file to rename in the application sandbox.| +| newPath | string | Yes | Path of the renamed file in the application sandbox. | + +**Example** + + ```js + let srcFile = pathDir + "/test.txt"; + let dstFile = pathDir + '/new.txt'; + fs.renameSync(srcFile, dstFile); + ``` + + +## fs.fsync + +fsync(fd: number): Promise<void> + +Flushes data of a file to disk. This API uses a promise to return the result. + +**System capability**: SystemCapability.FileManagement.File.FileIO + +**Parameters** + +| Name | Type | Mandatory | Description | +| ---- | ------ | ---- | ------------ | +| fd | number | Yes | FD of the file.| + +**Return value** + +| Type | Description | +| ------------------- | ---------------------------- | +| Promise<void> | Promise that returns no value.| + +**Example** + + ```js + let filePath = pathDir + "/test.txt"; + let file = fs.openSync(filePath); + fs.fsync(file.fd).then(() => { + console.info("Data flushed"); + }).catch((err) => { + console.info("sync data failed with error message: " + err.message + ", error code: " + err.code); + }); + ``` + + +## fs.fsync + +fsync(fd: number, callback: AsyncCallback<void>): void + +Flushes data of a file to disk. This API uses an asynchronous callback to return the result. + +**System capability**: SystemCapability.FileManagement.File.FileIO + +**Parameters** + +| Name | Type | Mandatory | Description | +| -------- | ------------------------- | ---- | --------------- | +| fd | number | Yes | FD of the file. | +| Callback | AsyncCallback<void> | Yes | Callback invoked when the file data is synchronized in asynchronous mode.| + +**Example** + + ```js + let filePath = pathDir + "/test.txt"; + let file = fs.openSync(filePath); + fs.fsync(file.fd, (err) => { + if (err) { + console.info("fsync failed with error message: " + err.message + ", error code: " + err.code); + } else { + console.info("fsync success"); + fs.closeSync(file); + } + }); + ``` + + +## fs.fsyncSync + +fsyncSync(fd: number): void + +Flushes data of a file to disk in synchronous mode. + +**System capability**: SystemCapability.FileManagement.File.FileIO + +**Parameters** + +| Name | Type | Mandatory | Description | +| ---- | ------ | ---- | ------------ | +| fd | number | Yes | FD of the file.| + +**Example** + + ```js + let filePath = pathDir + "/test.txt"; + let file = fs.openSync(filePath); + fs.fsyncSync(file.fd); + fs.closeSync(file); + ``` + + +## fs.fdatasync + +fdatasync(fd: number): Promise<void> + +Flushes data of a file to disk. This API uses a promise to return the result. **fdatasync()** is similar to **fsync()**, but does not flush modified metadata unless that metadata is needed. + +**System capability**: SystemCapability.FileManagement.File.FileIO + +**Parameters** + +| Name | Type | Mandatory | Description | +| ---- | ------ | ---- | ------------ | +| fd | number | Yes | FD of the file.| + +**Return value** + +| Type | Description | +| ------------------- | ---------------------------- | +| Promise<void> | Promise that returns no value.| + +**Example** + + ```js + let filePath = pathDir + "/test.txt"; + let file = fs.openSync(filePath); + fs.fdatasync(file.fd).then((err) => { + console.info("Data flushed"); + fs.closeSync(file); + }).catch((err) => { + console.info("sync data failed with error message: " + err.message + ", error code: " + err.code); + }); + ``` + + +## fs.fdatasync + +fdatasync(fd: number, callback: AsyncCallback<void>): void + +Flushes data of a file to disk. This API uses an asynchronous callback to return the result. + +**System capability**: SystemCapability.FileManagement.File.FileIO + +**Parameters** + +| Name | Type | Mandatory | Description | +| -------- | ------------------------------- | ---- | ----------------- | +| fd | number | Yes | FD of the file. | +| callback | AsyncCallback<void> | Yes | Callback invoked when the file data is synchronized in asynchronous mode.| + +**Example** + + ```js + let filePath = pathDir + "/test.txt"; + let file = fs.openSync(filePath); + fs.fdatasync (file.fd, (err) => { + if (err) { + console.info("fdatasync failed with error message: " + err.message + ", error code: " + err.code); + } else { + console.info("fdatasync success"); + fs.closeSync(file); + } + }); + ``` + +## fs.fdatasyncSync + +fdatasyncSync(fd: number): void + +Synchronizes data in a file in synchronous mode. + +**System capability**: SystemCapability.FileManagement.File.FileIO + +**Parameters** + +| Name | Type | Mandatory | Description | +| ---- | ------ | ---- | ------------ | +| fd | number | Yes | FD of the file.| + +**Example** + + ```js + let filePath = pathDir + "/test.txt"; + let file = fs.openSync(filePath); + let stat = fs.fdatasyncSync(file.fd); + fs.closeSync(file); + ``` + + +## fs.symlink + +symlink(target: string, srcPath: string): Promise<void> + +Creates a symbolic link based on a file path. This API uses a promise to return the result. + +**System capability**: SystemCapability.FileManagement.File.FileIO + +**Parameters** + +| Name | Type | Mandatory| Description | +| ------- | ------ | ---- | ---------------------------- | +| target | string | Yes | Path of the source file in the application sandbox. | +| srcPath | string | Yes | Path of the symbolic link in the application sandbox.| + +**Return value** + +| Type | Description | +| ------------------- | ---------------------------- | +| Promise<void> | Promise that returns no value.| + +**Example** + + ```js + let srcFile = pathDir + "/test.txt"; + let dstFile = pathDir + '/test'; + fs.symlink(srcFile, dstFile).then(() => { + console.info("Symbolic link created"); + }).catch((err) => { + console.info("symlink failed with error message: " + err.message + ", error code: " + err.code); + }); + ``` + + +## fs.symlink +symlink(target: string, srcPath: string, callback: AsyncCallback<void>): void + +Creates a symbolic link based on a file path. This API uses an asynchronous callback to return the result. + +**System capability**: SystemCapability.FileManagement.File.FileIO + +**Parameters** + +| Name | Type | Mandatory| Description | +| -------- | ------------------------- | ---- | -------------------------------- | +| target | string | Yes | Path of the source file in the application sandbox. | +| srcPath | string | Yes | Path of the symbolic link in the application sandbox. | +| callback | AsyncCallback<void> | Yes | Callback invoked when the symbolic link is created asynchronously.| + +**Example** + + ```js + let srcFile = pathDir + "/test.txt"; + let dstFile = pathDir + '/test'; + fs.symlink(srcFile, dstFile, (err) => { + if (err) { + console.info("symlink failed with error message: " + err.message + ", error code: " + err.code); + } else { + console.info("symlink success"); + } + }); + ``` + +## fs.symlinkSync + +symlinkSync(target: string, srcPath: string): void + +Synchronously creates a symbolic link based on a file path. + +**System capability**: SystemCapability.FileManagement.File.FileIO + +**Parameters** + +| Name | Type | Mandatory| Description | +| ------- | ------ | ---- | ---------------------------- | +| target | string | Yes | Path of the source file in the application sandbox. | +| srcPath | string | Yes | Path of the symbolic link in the application sandbox.| + +**Example** + + ```js + let srcFile = pathDir + "/test.txt"; + let dstFile = pathDir + '/test'; + fs.symlinkSync(srcFile, dstFile); + ``` + +## fs.mkdtemp + +mkdtemp(prefix: string): Promise<string> + +Creates a temporary directory. This API uses a promise to return the result. + +**System capability**: SystemCapability.FileManagement.File.FileIO + +**Parameters** + +| Name | Type | Mandatory | Description | +| ------ | ------ | ---- | --------------------------- | +| prefix | string | Yes | A randomly generated string used to replace "XXXXXX" in a directory.| + +**Return value** + +| Type | Description | +| --------------------- | ---------- | +| Promise<string> | Promise used to return the unique directory generated.| + +**Example** + + ```js + fs.mkdtemp(pathDir + "/XXXXXX").then((pathDir) => { + console.info("mkdtemp succeed:" + pathDir); + }).catch((err) => { + console.info("mkdtemp failed with error message: " + err.message + ", error code: " + err.code); + }); + ``` + + +## fs.mkdtemp + +mkdtemp(prefix: string, callback: AsyncCallback<string>): void + +Creates a temporary directory. This API uses an asynchronous callback to return the result. + +**System capability**: SystemCapability.FileManagement.File.FileIO + +**Parameters** + +| Name | Type | Mandatory | Description | +| -------- | --------------------------- | ---- | --------------------------- | +| prefix | string | Yes | A randomly generated string used to replace "XXXXXX" in a directory.| +| callback | AsyncCallback<string> | Yes | Callback invoked when a temporary directory is created asynchronously. | + +**Example** + + ```js + fs.mkdtemp(pathDir + "/XXXXXX", (err, res) => { + if (err) { + console.info("mkdtemp failed with error message: " + err.message + ", error code: " + err.code); + } else { + console.info("mkdtemp success"); + } + }); + ``` + +## fs.mkdtempSync + +mkdtempSync(prefix: string): string + +Synchronously creates a temporary directory. + +**System capability**: SystemCapability.FileManagement.File.FileIO + +**Parameters** + +| Name | Type | Mandatory | Description | +| ------ | ------ | ---- | --------------------------- | +| prefix | string | Yes | A randomly generated string used to replace "XXXXXX" in a directory.| + +**Return value** + +| Type | Description | +| ------ | ---------- | +| string | Unique path generated.| + +**Example** + + ```js + let res = fs.mkdtempSync(pathDir + "/XXXXXX"); + ``` + +## fs.createStream + +createStream(path: string, mode: string): Promise<Stream> + +Opens a file stream based on the file path. This API uses a promise to return the result. + +**System capability**: SystemCapability.FileManagement.File.FileIO + +**Parameters** + +| Name| Type | Mandatory| Description | +| ------ | ------ | ---- | ------------------------------------------------------------ | +| path | string | Yes | Path of the file in the application sandbox. | +| mode | string | Yes | - **r**: Open a file for reading. The file must exist.
- **r+**: Open a file for both reading and writing. The file must exist.
- **w**: Open a file for writing. If the file exists, clear its content. If the file does not exist, create a file.
- **w+**: Open a file for both reading and writing. If the file exists, clear its content. If the file does not exist, create a file.
- **a**: Open a file in append mode for writing at the end of the file. If the file does not exist, create a file. If the file exists, write data to the end of the file (the original content of the file is reserved).
- **a+**: Open a file in append mode for reading or updating at the end of the file. If the file does not exist, create a file. If the file exists, write data to the end of the file (the original content of the file is reserved).| + +**Return value** + +| Type | Description | +| --------------------------------- | --------- | +| Promise<[Stream](#stream)> | Promise used to return the result.| + +**Example** + + ```js + let filePath = pathDir + "/test.txt"; + fs.createStream(filePath, "r+").then((stream) => { + console.info("Stream created"); + }).catch((err) => { + console.info("createStream failed with error message: " + err.message + ", error code: " + err.code); + }); + ``` + + +## fs.createStream + +createStream(path: string, mode: string, callback: AsyncCallback<Stream>): void + +Opens a file stream based on the file path. This API uses an asynchronous callback to return the result. + +**System capability**: SystemCapability.FileManagement.File.FileIO + +**Parameters** + +| Name | Type | Mandatory| Description | +| -------- | --------------------------------------- | ---- | ------------------------------------------------------------ | +| path | string | Yes | Path of the file in the application sandbox. | +| mode | string | Yes | - **r**: Open a file for reading. The file must exist.
- **r+**: Open a file for both reading and writing. The file must exist.
- **w**: Open a file for writing. If the file exists, clear its content. If the file does not exist, create a file.
- **w+**: Open a file for both reading and writing. If the file exists, clear its content. If the file does not exist, create a file.
- **a**: Open a file in append mode for writing at the end of the file. If the file does not exist, create a file. If the file exists, write data to the end of the file (the original content of the file is reserved).
- **a+**: Open a file in append mode for reading or updating at the end of the file. If the file does not exist, create a file. If the file exists, write data to the end of the file (the original content of the file is reserved).| +| callback | AsyncCallback<[Stream](#stream)> | Yes | Callback invoked when the stream is open asynchronously. | + +**Example** + + ```js + let filePath = pathDir + "/test.txt"; + fs.createStream(filePath, "r+", (err, stream) => { + if (err) { + console.info("create stream failed with error message: " + err.message + ", error code: " + err.code); + } else { + console.info("create stream success"); + } + }); + ``` + +## fs.createStreamSync + +createStreamSync(path: string, mode: string): Stream + +Synchronously opens a stream based on the file path. + +**System capability**: SystemCapability.FileManagement.File.FileIO + +**Parameters** + +| Name| Type | Mandatory| Description | +| ------ | ------ | ---- | ------------------------------------------------------------ | +| path | string | Yes | Path of the file in the application sandbox. | +| mode | string | Yes | - **r**: Open a file for reading. The file must exist.
- **r+**: Open a file for both reading and writing. The file must exist.
- **w**: Open a file for writing. If the file exists, clear its content. If the file does not exist, create a file.
- **w+**: Open a file for both reading and writing. If the file exists, clear its content. If the file does not exist, create a file.
- **a**: Open a file in append mode for writing at the end of the file. If the file does not exist, create a file. If the file exists, write data to the end of the file (the original content of the file is reserved).
- **a+**: Open a file in append mode for reading or updating at the end of the file. If the file does not exist, create a file. If the file exists, write data to the end of the file (the original content of the file is reserved).| + +**Return value** + +| Type | Description | +| ------------------ | --------- | +| [Stream](#stream) | Stream opened.| + +**Example** + + ```js + let filePath = pathDir + "/test.txt"; + let ss = fs.createStreamSync(filePath, "r+"); + ``` + + +## fs.fdopenStream + +fdopenStream(fd: number, mode: string): Promise<Stream> + +Opens a file stream based on the file descriptor. This API uses a promise to return the result. + +**System capability**: SystemCapability.FileManagement.File.FileIO + +**Parameters** + +| Name | Type | Mandatory | Description | +| ---- | ------ | ---- | ---------------------------------------- | +| fd | number | Yes | FD of the file. | +| mode | string | Yes | - **r**: Open a file for reading. The file must exist.
- **r+**: Open a file for both reading and writing. The file must exist.
- **w**: Open a file for writing. If the file exists, clear its content. If the file does not exist, create a file.
- **w+**: Open a file for both reading and writing. If the file exists, clear its content. If the file does not exist, create a file.
- **a**: Open a file in append mode for writing at the end of the file. If the file does not exist, create a file. If the file exists, write data to the end of the file (the original content of the file is reserved).
- **a+**: Open a file in append mode for reading or updating at the end of the file. If the file does not exist, create a file. If the file exists, write data to the end of the file (the original content of the file is reserved).| + +**Return value** + +| Type | Description | +| --------------------------------- | --------- | +| Promise<[Stream](#stream)> | Promise used to return the result.| + +**Example** + + ```js + let filePath = pathDir + "/test.txt"; + let file = fs.openSync(filePath); + fs.fdopenStream(file.fd, "r+").then((stream) => { + console.info("Stream opened"); + fs.closeSync(file); + }).catch((err) => { + console.info("openStream failed with error message: " + err.message + ", error code: " + err.code); + }); + ``` + + +## fs.fdopenStream + +fdopenStream(fd: number, mode: string, callback: AsyncCallback<Stream>): void + +Opens a file stream based on the file descriptor. This API uses an asynchronous callback to return the result. + +**System capability**: SystemCapability.FileManagement.File.FileIO + +**Parameters** + +| Name | Type | Mandatory | Description | +| -------- | ---------------------------------------- | ---- | ---------------------------------------- | +| fd | number | Yes | FD of the file. | +| mode | string | Yes | - **r**: Open a file for reading. The file must exist.
- **r+**: Open a file for both reading and writing. The file must exist.
- **w**: Open a file for writing. If the file exists, clear its content. If the file does not exist, create a file.
- **w+**: Open a file for both reading and writing. If the file exists, clear its content. If the file does not exist, create a file.
- **a**: Open a file in append mode for writing at the end of the file. If the file does not exist, create a file. If the file exists, write data to the end of the file (the original content of the file is reserved).
- **a+**: Open a file in append mode for reading or updating at the end of the file. If the file does not exist, create a file. If the file exists, write data to the end of the file (the original content of the file is reserved).| +| callback | AsyncCallback<[Stream](#stream)> | Yes | Callback invoked when the stream is open asynchronously. | + +**Example** + + ```js + let filePath = pathDir + "/test.txt"; + let file = fs.openSync(filePath, fs.OpenMode.READ_ONLY); + fs.fdopenStream(file.fd, "r+", (err, stream) => { + if (err) { + console.info("fdopen stream failed with error message: " + err.message + ", error code: " + err.code); + } else { + console.info("fdopen stream success"); + fs.closeSync(file); + } + }); + ``` + +## fs.fdopenStreamSync + +fdopenStreamSync(fd: number, mode: string): Stream + +Synchronously opens a stream based on the file descriptor. + +**System capability**: SystemCapability.FileManagement.File.FileIO + +**Parameters** + +| Name | Type | Mandatory | Description | +| ---- | ------ | ---- | ---------------------------------------- | +| fd | number | Yes | FD of the file. | +| mode | string | Yes | - **r**: Open a file for reading. The file must exist.
- **r+**: Open a file for both reading and writing. The file must exist.
- **w**: Open a file for writing. If the file exists, clear its content. If the file does not exist, create a file.
- **w+**: Open a file for both reading and writing. If the file exists, clear its content. If the file does not exist, create a file.
- **a**: Open a file in append mode for writing at the end of the file. If the file does not exist, create a file. If the file exists, write data to the end of the file (the original content of the file is reserved).
- **a+**: Open a file in append mode for reading or updating at the end of the file. If the file does not exist, create a file. If the file exists, write data to the end of the file (the original content of the file is reserved).| + +**Return value** + +| Type | Description | +| ------------------ | --------- | +| [Stream](#stream) | Stream opened.| + +**Example** + + ```js + let filePath = pathDir + "/test.txt"; + let file = fs.openSync(filePath, fs.OpenMode.READ_ONLY | fs.OpenMode.CREATE); + let ss = fs.fdopenStreamSync(file.fd, "r+"); + fs.closeSync(file); + ``` + +## Stat + +Represents detailed file information. Before calling any API of the **Stat()** class, use [stat()](#fsstat) to create a **Stat** instance synchronously or asynchronously. + +**System capability**: SystemCapability.FileManagement.File.FileIO + +### Attributes + +| Name | Type | Readable | Writable | Description | +| ------ | ------ | ---- | ---- | ---------------------------------------- | +| ino | number | Yes | No | File ID. Different files on the same device have different **ino**s.| | +| mode | number | Yes | No | File permissions. The meaning of each bit is as follows:
- **0o400**: The owner has the read permission on a regular file or a directory entry.
- **0o200**: The owner has the permission to write a regular file or create and delete a directory entry.
- **0o100**: The owner has the permission to execute a regular file or search for the specified path in a directory.
- **0o040**: The user group has the read permission on a regular file or a directory entry.
- **0o020**: The user group has the permission to write a regular file or create and delete a directory entry.
- **0o010**: The user group has the permission to execute a regular file or search for the specified path in a directory.
- **0o004**: Other users have the permission to read a regular file or read a directory entry.
- **0o002**: Other users have the permission to write a regular file or create and delete a directory entry.
- **0o001**: Other users have the permission to execute a regular file or search for the specified path in a directory.| +| uid | number | Yes | No | ID of the file owner.| +| gid | number | Yes | No | ID of the user group of the file.| +| size | number | Yes | No | File size, in bytes. This parameter is valid only for regular files. | +| atime | number | Yes | No | Time of the last access to the file. The value is the number of seconds elapsed since 00:00:00 on January 1, 1970. | +| mtime | number | Yes | No | Time of the last modification to the file. The value is the number of seconds elapsed since 00:00:00 on January 1, 1970. | +| ctime | number | Yes | No | Time of the last status change of the file. The value is the number of seconds elapsed since 00:00:00 on January 1, 1970. | + + +### isBlockDevice + +isBlockDevice(): boolean + +Checks whether this file is a block special file. A block special file supports access by block only, and it is cached when accessed. + +**System capability**: SystemCapability.FileManagement.File.FileIO + +**Return value** + +| Type | Description | +| ------- | ---------------- | +| boolean | Whether the file is a block special file.| + +**Example** + + ```js + let filePath = pathDir + "/test.txt"; + let isBLockDevice = fs.statSync(filePath).isBlockDevice(); + ``` + +### isCharacterDevice + +isCharacterDevice(): boolean + +Checks whether this file is a character special file. A character special file supports random access, and it is not cached when accessed. + +**System capability**: SystemCapability.FileManagement.File.FileIO + +**Return value** + +| Type | Description | +| ------- | ----------------- | +| boolean | Whether the file is a character special file.| + +**Example** + + ```js + let filePath = pathDir + "/test.txt"; + let isCharacterDevice = fs.statSync(filePath).isCharacterDevice(); + ``` + + +### isDirectory + +isDirectory(): boolean + +Checks whether this file is a directory. + +**System capability**: SystemCapability.FileManagement.File.FileIO + +**Return value** + +| Type | Description | +| ------- | ------------- | +| boolean | Whether the file is a directory.| + +**Example** + + ```js + let dirPath = pathDir + "/test"; + let isDirectory = fs.statSync(dirPath).isDirectory(); + ``` + + +### isFIFO + +isFIFO(): boolean + +Checks whether this file is a named pipe (or FIFO). Named pipes are used for inter-process communication. + +**System capability**: SystemCapability.FileManagement.File.FileIO + +**Return value** + +| Type | Description | +| ------- | --------------------- | +| boolean | Whether the file is a FIFO.| + +**Example** + + ```js + let filePath = pathDir + "/test.txt"; + let isFIFO = fs.statSync(filePath).isFIFO(); + ``` + + +### isFile + +isFile(): boolean + +Checks whether this file is a regular file. + +**System capability**: SystemCapability.FileManagement.File.FileIO + +**Return value** + +| Type | Description | +| ------- | --------------- | +| boolean | Whether the file is a regular file.| + +**Example** + + ```js + let filePath = pathDir + "/test.txt"; + let isFile = fs.statSync(filePath).isFile(); + ``` + + +### isSocket + +isSocket(): boolean + +Checks whether this file is a socket. + +**System capability**: SystemCapability.FileManagement.File.FileIO + +**Return value** + +| Type | Description | +| ------- | -------------- | +| boolean | Whether the file is a socket.| + +**Example** + + ```js + let filePath = pathDir + "/test.txt"; + let isSocket = fs.statSync(filePath).isSocket(); + ``` + + +### isSymbolicLink + +isSymbolicLink(): boolean + +Checks whether this file is a symbolic link. + +**System capability**: SystemCapability.FileManagement.File.FileIO + +**Return value** + +| Type | Description | +| ------- | --------------- | +| boolean | Whether the file is a symbolic link.| + +**Example** + + ```js + let filePath = pathDir + "/test"; + let isSymbolicLink = fs.statSync(filePath).isSymbolicLink(); + ``` + +## Stream + +Provides file stream management. Before calling any API of the **Stream** class, use **createStream()** to create a **Stream** instance synchronously or asynchronously. + + +### close + +close(): Promise<void> + +Closes the stream. This API uses a promise to return the result. + +**System capability**: SystemCapability.FileManagement.File.FileIO + +**Return value** + +| Type | Description | +| ------------------- | ------------- | +| Promise<void> | Promise used to return the stream close result.| + +**Example** + + ```js + let filePath = pathDir + "/test.txt"; + let ss= fs.createStreamSync(filePath, "r+"); + ss.close().then(() => { + console.info("File stream closed"); + }).catch((err) => { + console.info("close fileStream failed with error message: " + err.message + ", error code: " + err.code); + }); + ``` + + +### close + +close(callback: AsyncCallback<void>): void + +Closes the stream. This API uses an asynchronous callback to return the result. + +**System capability**: SystemCapability.FileManagement.File.FileIO + +**Parameters** + +| Name | Type | Mandatory | Description | +| -------- | ------------------------- | ---- | ------------- | +| callback | AsyncCallback<void> | Yes | Callback invoked when the stream is closed asynchronously.| + +**Example** + + ```js + let filePath = pathDir + "/test.txt"; + let ss= fs.createStreamSync(filePath, "r+"); + ss.close((err) => { + if (err) { + console.info("close stream failed with error message: " + err.message + ", error code: " + err.code); + } else { + console.info("close stream success"): + } + }); + ``` + +### closeSync + +closeSync(): void + +Synchronously closes the stream. + +**System capability**: SystemCapability.FileManagement.File.FileIO + +**Example** + + ```js + let filePath = pathDir + "/test.txt"; + let ss= fs.createStreamSync(filePath, "r+"); + ss.closeSync(); + ``` + +### flush + +flush(): Promise<void> + +Flushes the stream. This API uses a promise to return the result. + +**System capability**: SystemCapability.FileManagement.File.FileIO + +**Return value** + +| Type | Description | +| ------------------- | ------------- | +| Promise<void> | Promise used to return the stream flushing result.| + +**Example** + + ```js + let filePath = pathDir + "/test.txt"; + let ss= fs.createStreamSync(filePath, "r+"); + ss.flush().then(() => { + console.info("Stream flushed"); + }).catch((err) => { + console.info("flush failed with error message: " + err.message + ", error code: " + err.code); + }); + ``` + + +### flush + +flush(callback: AsyncCallback<void>): void + +Flushes the stream. This API uses an asynchronous callback to return the result. + +**System capability**: SystemCapability.FileManagement.File.FileIO + +**Parameters** + +| Name | Type | Mandatory | Description | +| -------- | ------------------------- | ---- | -------------- | +| callback | AsyncCallback<void> | Yes | Callback invoked when the stream is asynchronously flushed.| + +**Example** + + ```js + let filePath = pathDir + "/test.txt"; + let ss= fs.createStreamSync(filePath, "r+"); + ss.flush((err) => { + if (err) { + console.info("flush stream failed with error message: " + err.message + ", error code: " + err.code); + } else { + console.info("flush success"); + } + }); + ``` + +### flushSync + +flushSync(): void + +Synchronously flushes the stream. + +**System capability**: SystemCapability.FileManagement.File.FileIO + +**Example** + + ```js + let filePath = pathDir + "/test.txt"; + let ss= fs.createStreamSync(filePath, "r+"); + ss.flushSync(); + ``` + +### write + +write(buffer: ArrayBuffer|string, options?: { offset?: number; length?: number; encoding?: string; }): Promise<number> + +Writes data into the stream. This API uses a promise to return the result. + +**System capability**: SystemCapability.FileManagement.File.FileIO + +**Parameters** + +| Name | Type | Mandatory | Description | +| ------- | ------------------------------- | ---- | ---------------------------------------- | +| buffer | ArrayBuffer\|string | Yes | Data to write. It can be a string or data from a buffer. | +| options | Object | No | The options are as follows:
- **length** (number): length of the data to write. The default value is the buffer length.
- **offset** (number): start position to write the data in the file. This parameter is optional. By default, data is written from the current position.
- **encoding** (string): format of the data to be encoded when the data is a string. The default value is **'utf-8'**, which is the only value supported.| + +**Return value** + +| Type | Description | +| --------------------- | -------- | +| Promise<number> | Promise used to return the length of the data written.| + +**Example** + + ```js + let filePath = pathDir + "/test.txt"; + let ss= fs.createStreamSync(filePath, "r+"); + ss.write("hello, world",{ offset: 5, length: 5, encoding: 'utf-8' }).then((number) => { + console.info("write succeed and size is:" + number); + }).catch((err) => { + console.info("write failed with error message: " + err.message + ", error code: " + err.code); + }); + ``` + + +### write + +write(buffer: ArrayBuffer|string, options?: { offset?: number; length?: number; encoding?: string; }, callback: AsyncCallback<number>): void + +Writes data into the stream. This API uses an asynchronous callback to return the result. + +**System capability**: SystemCapability.FileManagement.File.FileIO + +**Parameters** + +| Name | Type | Mandatory| Description | +| -------- | ------------------------------- | ---- | ------------------------------------------------------------ | +| buffer | ArrayBuffer\|string | Yes | Data to write. It can be a string or data from a buffer. | +| options | Object | No | The options are as follows:
- **length** (number): length of the data to write. This parameter is optional. The default value is the buffer length.
- **offset** (number): start position to write the data in the file. This parameter is optional. By default, data is written from the current position.
- **encoding** (string): format of the data to be encoded when the data is a string. The default value is **'utf-8'**, which is the only value supported.| +| callback | AsyncCallback<number> | Yes | Callback invoked when the data is written asynchronously. | + +**Example** + + ```js + let filePath = pathDir + "/test.txt"; + let ss= fs.createStreamSync(filePath, "r+"); + ss.write("hello, world", { offset: 5, length: 5, encoding :'utf-8'}, (err, bytesWritten) => { + if (err) { + console.info("write stream failed with error message: " + err.message + ", error code: " + err.code); + } else { + if (bytesWritten) { + console.info("write succeed and size is:" + bytesWritten); + } + } + }); + ``` + +### writeSync + +writeSync(buffer: ArrayBuffer|string, options?: { offset?: number; length?: number; encoding?: string; }): number + +Synchronously writes data into the stream. + +**System capability**: SystemCapability.FileManagement.File.FileIO + +**Parameters** + +| Name | Type | Mandatory | Description | +| ------- | ------------------------------- | ---- | ---------------------------------------- | +| buffer | ArrayBuffer\|string | Yes | Data to write. It can be a string or data from a buffer. | +| options | Object | No | The options are as follows:
- **length** (number): length of the data to write. This parameter is optional. The default value is the buffer length.
- **offset** (number): start position to write the data in the file. This parameter is optional. By default, data is written from the current position.
- **encoding** (string): format of the data to be encoded when the data is a string. The default value is **'utf-8'**, which is the only value supported.| + +**Return value** + +| Type | Description | +| ------ | -------- | +| number | Length of the data written in the file.| + +**Example** + + ```js + let filePath = pathDir + "/test.txt"; + let ss= fs.createStreamSync(filePath,"r+"); + let num = ss.writeSync("hello, world", {offset: 5, length: 5, encoding :'utf-8'}); + ``` + +### read + +read(buffer: ArrayBuffer, options?: { offset?: number; length?: number; }): Promise<number> + +Reads data from the stream. This API uses a promise to return the result. + +**System capability**: SystemCapability.FileManagement.File.FileIO + +**Parameters** + +| Name | Type | Mandatory | Description | +| ------- | ----------- | ---- | ---------------------------------------- | +| buffer | ArrayBuffer | Yes | Buffer used to store the file read. | +| options | Object | No | The options are as follows:
- **length** (number): length of the data to read. This parameter is optional. The default value is the buffer length.
- **offset** (number): position of the data to read in the file. By default, data is read from the current position.| + +**Return value** + +| Type | Description | +| ---------------------------------- | ------ | +| Promise<number> | Promise used to return the data read.| + +**Example** + + ```js + let filePath = pathDir + "/test.txt"; + let ss = fs.createStreamSync(filePath, "r+"); + let buf = new ArrayBuffer(4096); + ss.read(buf, {offset: 5, length: 5}).then((readLen) => { + console.info("Read data successfully"); + console.log(String.fromCharCode.apply(null, new Uint8Array(buf))); + }).catch((err) => { + console.info("read data failed with error message: " + err.message + ", error code: " + err.code); + }); + ``` + + +### read + +read(buffer: ArrayBuffer, options?: { position?: number; offset?: number; length?: number; }, callback: AsyncCallback<number>): void + +Reads data from the stream. This API uses an asynchronous callback to return the result. + +**System capability**: SystemCapability.FileManagement.File.FileIO + +**Parameters** + +| Name | Type | Mandatory | Description | +| -------- | ---------------------------------------- | ---- | ---------------------------------------- | +| buffer | ArrayBuffer | Yes | Buffer used to store the file read. | +| options | Object | No | The options are as follows:
- **length** (number): length of the data to read. This parameter is optional. The default value is the buffer length.
- **offset** (number): position of the data to read in the file. This parameter is optional. By default, data is read from the current position.| +| callback | AsyncCallback<number> | Yes | Callback invoked when data is read asynchronously from the stream. | + +**Example** + + ```js + let filePath = pathDir + "/test.txt"; + let ss = fs.createStreamSync(filePath, "r+"); + let buf = new ArrayBuffer(4096) + ss.read(buf, {offset: 5, length: 5}, (err, readLen) => { + if (err) { + console.info("read stream failed with error message: " + err.message + ", error code: " + err.code); + } else { + console.info("Read data successfully"); + console.log(String.fromCharCode.apply(null, new Uint8Array(buf))); + } + }); + ``` + +### readSync + +readSync(buffer: ArrayBuffer, options?: { offset?: number; length?: number; }): number + +Synchronously reads data from the stream. + +**System capability**: SystemCapability.FileManagement.File.FileIO + +**Parameters** + +| Name | Type | Mandatory | Description | +| ------- | ----------- | ---- | ---------------------------------------- | +| buffer | ArrayBuffer | Yes | Buffer used to store the file read. | +| options | Object | No | The options are as follows:
- **length** (number): length of the data to read. This parameter is optional. The default value is the buffer length.
- **offset** (number): position of the data to read in the file. This parameter is optional. By default, data is read from the current position.
| + +**Return value** + +| Type | Description | +| ------ | -------- | +| number | Length of the data read.| + +**Example** + + ```js + let filePath = pathDir + "/test.txt"; + let ss = fs.createStreamSync(filePath, "r+"); + let num = ss.readSync(new ArrayBuffer(4096), {offset: 5, length: 5}); + ``` + +## File + +Represents a **File** object opened by **open()**. + +**System capability**: SystemCapability.FileManagement.File.FileIO + +### Attributes + +| Name | Type | Readable | Writable | Description | +| ---- | ------ | ---- | ---- | ------- | +| fd | number | Yes | No | FD of the file.| + +## OpenMode + +Defines the constants of the **mode** parameter used in **open()**. It species the mode for opening a file. + +**System capability**: SystemCapability.FileManagement.File.FileIO + +| Name | Type | Value | Description | +| ---- | ------ |---- | ------- | +| READ_ONLY | number | 0o0 | Open the file in read-only mode.| +| WRITE_ONLY | number | 0o1 | Open the file in write-only mode.| +| READ_WRITE | number | 0o2 | Open the file in read/write mode.| +| CREATE | number | 0o100 | Create a file if the specified file does not exist.| +| TRUNC | number | 0o1000 | If the file exists and is open in write-only or read/write mode, truncate the file length to 0.| +| APPEND | number | 0o2000 | Open the file in append mode. New data will be written to the end of the file.| +| NONBLOCK | number | 0o4000 | If **path** points to a named pipe (FIFO), block special file, or character special file, perform non-blocking operations on the open file and in subsequent I/Os.| +| DIR | number | 0o200000 | If **path** does not point to a directory, throw an exception.| +| NOFOLLOW | number | 0o400000 | If **path** points to a symbolic link, throw an exception.| +| SYNC | number | 0o4010000 | Open the file in synchronous I/O mode.| diff --git a/en/application-dev/reference/apis/js-apis-file-hash.md b/en/application-dev/reference/apis/js-apis-file-hash.md new file mode 100644 index 0000000000000000000000000000000000000000..fca5de996e882e8a568dd3851512ed5e8be18c9c --- /dev/null +++ b/en/application-dev/reference/apis/js-apis-file-hash.md @@ -0,0 +1,103 @@ +# @ohos.file.hash (File Hash Processing) + +The **fileHash** module implements hash processing on files. + +> **NOTE** +> +> - The initial APIs of this module are supported since API version 9. Newly added APIs will be marked with a superscript to indicate their earliest API version. +> - The APIs of this module support processing of error codes. For details, see [File Management Error Codes](../errorcodes/errorcode-filemanagement.md). + +## Modules to Import + +```js +import Hash from '@ohos.file.hash'; +``` + +## Guidelines + +Before using the APIs provided by this module to perform operations on a file or directory, obtain the path of the file or directory in the application sandbox as follows: + +**Stage Model** + + ```js +import UIAbility from '@ohos.app.ability.UIAbility'; + +export default class EntryAbility extends UIAbility { + onWindowStageCreate(windowStage) { + let context = this.context; + let pathDir = context.filesDir; + } +} + ``` + +**FA Model** + + ```js + import featureAbility from '@ohos.ability.featureAbility'; + + let context = featureAbility.getContext(); + context.getFilesDir().then((data) => { + let pathDir = data; + }) + ``` + +For details about how to obtain the FA model context, see [Context](js-apis-inner-app-context.md#context). + +## Hash.hash + +hash(path: string, algorithm: string): Promise<string> + +Calculates a hash value for a file. This API uses a promise to return the result. + +**System capability**: SystemCapability.FileManagement.File.FileIO + +**Parameters** + +| Name | Type | Mandatory| Description | +| --------- | ------ | ---- | ------------------------------------------------------------ | +| path | string | Yes | Path of the file in the application sandbox. | +| algorithm | string | Yes | Algorithm used to calculate the hash value. The value can be **md5**, **sha1**, or **sha256**. **sha256** is recommended for security purposes.| + +**Return value** + +| Type | Description | +| --------------------- | -------------------------- | +| Promise<string> | Promise used to return the hash value. The hash value is a hexadecimal string consisting of digits and uppercase letters.| + +**Example** + + ```js + let filePath = pathDir + "/test.txt"; + Hash.hash(filePath, "sha256").then((str) => { + console.info("calculate file hash succeed:" + str); + }).catch((err) => { + console.info("calculate file hash failed with error message: " + err.message + ", error code: " + err.code); + }); + ``` + +## Hash.hash + +hash(path: string, algorithm: string, callback: AsyncCallback<string>): void + +Calculates a hash value for a file. This API uses an asynchronous callback to return the result. + +**System capability**: SystemCapability.FileManagement.File.FileIO + +**Parameters** + +| Name | Type | Mandatory| Description | +| --------- | --------------------------- | ---- | ------------------------------------------------------------ | +| path | string | Yes | Path of the file in the application sandbox. | +| algorithm | string | Yes | Algorithm used to calculate the hash value. The value can be **md5**, **sha1**, or **sha256**. **sha256** is recommended for security purposes.| +| callback | AsyncCallback<string> | Yes | Callback used to return the hash value obtained. The hash value is a hexadecimal string consisting of digits and uppercase letters.| + +**Example** + ```js + Hash.hash(filePath, "sha256", (err, str) => { + if (err) { + console.info("calculate file hash failed with error message: " + err.message + ", error code: " + err.code); + } else { + console.info("calculate file hash succeed:" + str); + } + }); + ``` diff --git a/en/application-dev/reference/apis/js-apis-file-securityLabel.md b/en/application-dev/reference/apis/js-apis-file-securityLabel.md new file mode 100644 index 0000000000000000000000000000000000000000..b9071ecc64025491ed21e55490f4753b83440eb1 --- /dev/null +++ b/en/application-dev/reference/apis/js-apis-file-securityLabel.md @@ -0,0 +1,207 @@ +# @ohos.file.securityLabel (Data Label) + +The **securityLabel** module provides APIs for managing data security levels of files, including obtaining and setting file security levels. + +> **NOTE** +> +> - The initial APIs of this module are supported since API version 9. Newly added APIs will be marked with a superscript to indicate their earliest API version. +>- The APIs of this module support processing of error codes. For details, see [File Management Error Codes](../errorcodes/errorcode-filemanagement.md). + +## Modules to Import + +```js +import securityLabel from '@ohos.file.securityLabel'; +``` + +## Guidelines + +Before using the APIs provided by this module to perform operations on files or directories, obtain the path of the file or directory in the application sandbox as follows: + +**Stage Model** + + ```js +import UIAbility from '@ohos.app.ability.UIAbility'; + +export default class EntryAbility extends UIAbility { + onWindowStageCreate(windowStage) { + let context = this.context; + let pathDir = context.filesDir; + } +} + ``` + +**FA Model** + + ```js + import featureAbility from '@ohos.ability.featureAbility'; + + let context = featureAbility.getContext(); + context.getFilesDir().then((data) => { + let pathDir = data; + }) + ``` + +For details about how to obtain the FA model context, see [Context](js-apis-inner-app-context.md#context). + +## securityLabel.setSecurityLabel + +setSecurityLabel(path:string, type:dataLevel):Promise<void> + +Sets a security label for a file in asynchronous mode. This API uses a promise to return the result. + +**System capability**: SystemCapability.FileManagement.File.FileIO + +**Parameters** + +| Name | Type | Mandatory| Description | +| --------- | ------ | ---- | -------------------------------------------- | +| path | string | Yes | Path of the target file. | +| type | dataLevel | Yes | File security level to set, which can be **s0**, **s1**, **s2**, **s3**, or **s4**.| + +**Return value** + +| Type | Description | +| ------------------- | ---------------- | +| Promise<void> | Promise that returns no value.| + +**Example** + + ```js + securityLabel.setSecurityLabel(path, "s0").then(() => { + console.info("setSecurityLabel successfully"); + }).catch((err) => { + console.info("setSecurityLabel failed with error message: " + err.message + ", error code: " + err.code); + }); + ``` + +## securityLabel.setSecurityLabel + +setSecurityLabel(path:string, type:dataLevel, callback: AsyncCallback<void>):void + +Sets a security label for a file in asynchronous mode. This API uses an asynchronous callback to return the result. + +**System capability**: SystemCapability.FileManagement.File.FileIO + +**Parameters** + +| Name | Type | Mandatory| Description | +| --------- | ------------------------- | ---- | -------------------------------------------- | +| path | string | Yes | Path of the target file. | +| type | dataLevel | Yes | File security level to set, which can be **s0**, **s1**, **s2**, **s3**, or **s4**.| +| callback | AsyncCallback<void> | Yes | Callback invoked to return the result. | + +**Example** + + ```js + securityLabel.setSecurityLabel(path, "s0", (err) => { + if (err) { + console.info("setSecurityLabel failed with error message: " + err.message + ", error code: " + err.code); + } else { + console.info("setSecurityLabel successfully."); + } + }); + ``` + +## securityLabel.setSecurityLabelSync + +setSecurityLabelSync(path:string, type:dataLevel):void + +Sets a security label for a file in synchronous mode. + +**System capability**: SystemCapability.FileManagement.File.FileIO + +**Parameters** + +| Name | Type | Mandatory| Description | +| --------- | ------ | ---- | -------------------------------------------- | +| path | string | Yes | Path of the target file. | +| type | dataLevel | Yes | File security level to set, which can be **s0**, **s1**, **s2**, **s3**, or **s4**.| + +**Example** + +```js +securityLabel.setSecurityLabelSync(path, "s0"); +``` + +## securityLabel.getSecurityLabel + +getSecurityLabel(path:string):Promise<string> + +Obtains the security label of a file in asynchronous mode. This API uses a promise to return the result. + +**System capability**: SystemCapability.FileManagement.File.FileIO + +**Parameters** + +| Name| Type | Mandatory| Description | +| ------ | ------ | ---- | -------- | +| path | string | Yes | Path of the target file.| + +**Return value** + +| Type | Description | +| --------------------- | ------------ | +| Promise<string> | Security label obtained.| + +**Example** + + ```js + securityLabel.getSecurityLabel(path).then((type) => { + console.log("getSecurityLabel successfully, Label: " + type); + }).catch((err) => { + console.log("getSecurityLabel failed with error message: " + err.message + ", error code: " + err.code); + }); + ``` + +## securityLabel.getSecurityLabel + +getSecurityLabel(path:string, callback:AsyncCallback<string>): void + +Obtains the security label of a file in asynchronous mode. This API uses a callback to return the result. + +**System capability**: SystemCapability.FileManagement.File.FileIO + +**Parameters** + +| Name | Type | Mandatory| Description | +| -------- | --------------------------- | ---- | -------------------------- | +| path | string | Yes | Path of the target file. | +| callback | AsyncCallback<string> | Yes | Callback invoked to return the security label obtained.| + +**Example** + + ```js + securityLabel.getSecurityLabel(path, (err, type) => { + if (err) { + console.log("getSecurityLabel failed with error message: " + err.message + ", error code: " + err.code); + } else { + console.log("getSecurityLabel successfully, Label: " + type); + } + }); + ``` +## securityLabel.getSecurityLabelSync + +getSecurityLabelSync(path:string):string + +Obtains the security label of a file in synchronous mode. + +**System capability**: SystemCapability.FileManagement.File.FileIO + +**Parameters** + +| Name| Type | Mandatory| Description | +| ------ | ------ | ---- | -------- | +| path | string | Yes | Path of the target file.| + +**Return value** + +| Type | Description | +| ------ | ------------ | +| string | Security label obtained.| + +**Example** + +```js +let type = securityLabel.getSecurityLabelSync(path); +console.log("getSecurityLabel successfully, Label: " + type); +``` diff --git a/en/application-dev/reference/apis/js-apis-file-statvfs.md b/en/application-dev/reference/apis/js-apis-file-statvfs.md new file mode 100644 index 0000000000000000000000000000000000000000..8241f4734312251f1d4dce13888a2e8ce521ca90 --- /dev/null +++ b/en/application-dev/reference/apis/js-apis-file-statvfs.md @@ -0,0 +1,131 @@ +# @ohos.file.statvfs (File System Space Statistics) + +The **statfs** module provides APIs for obtaining file system information, including the total number of bytes and the number of idle bytes of the file system. + +> **NOTE** +> +> - The initial APIs of this module are supported since API version 9. Newly added APIs will be marked with a superscript to indicate their earliest API version. +> - The APIs of this module support processing of error codes. For details, see [File Management Error Codes](../errorcodes/errorcode-filemanagement.md). + +## Modules to Import + +```js +import statvfs from '@ohos.file.statvfs'; +``` +## statvfs.getFreeSize + +getFreeSize(path:string):Promise<number> + +Obtains the number of free bytes of the specified file system in asynchronous mode. This API uses a promise to return the result. + +**System capability**: SystemCapability.FileManagement.File.FileIO + +**Parameters** + +| Name| Type | Mandatory| Description | +| ------ | ------ | ---- | ---------------------------- | +| path | string | Yes | File path of the file system.| + +**Return value** + +| Type | Description | +| --------------------- | -------------- | +| Promise<number> | Promise used to return the number of free bytes obtained.| + +**Example** + + ```js + let path = "/dev"; + statfs.getFreeSize(path).then((number) => { + console.info("getFreeSize promise successfully, Size: " + number); + }).catch((err) => { + console.info("getFreeSize failed with error message: " + err.message + ", error code: " + err.code); + }); + ``` + +## statfs.getFreeSize + +getFreeSize(path:string, callback:AsyncCallback<number>): void + +Obtains the number of free bytes of the specified file system in asynchronous mode. This API uses an asynchronous callback to return the result. + +**System capability**: SystemCapability.FileManagement.File.FileIO + +**Parameters** + +| Name | Type | Mandatory| Description | +| -------- | --------------------------- | ---- | ---------------------------- | +| path | string | Yes | File path of the file system.| +| callback | AsyncCallback<number> | Yes | Callback invoked to return the number of free bytes obtained.| + +**Example** + + ```js + let path = "/dev"; + statfs.getFreeSize(path, (err, number) => { + if (err) { + console.info("getFreeSize failed with error message: " + err.message + ", error code: " + err.code); + } else { + console.info("getFreeSize callback successfully, Size: " + number); + } + }); + ``` + +## statfs.getTotalSize + +getTotalSize(path: string): Promise<number> + +Obtains the total number of bytes of the specified file system in asynchronous mode. This API uses a promise to return the result. + +**System capability**: SystemCapability.FileManagement.File.FileIO + +**Parameters** + +| Name| Type | Mandatory| Description | +| ---- | ------ | ---- | ---------------------------- | +| path | string | Yes | File path of the file system.| + +**Return value** + +| Type | Description | +| --------------------- | ------------ | +| Promise<number> | Promise used to return the total number of bytes obtained.| + +**Example** + + ```js + let path = "/dev"; + statfs.getTotalSize(path).then((number) => { + console.info("getTotalSize promise successfully, Size: " + number); + }).catch((err) => { + console.info("getTotalSize with error message: " + err.message + ", error code: " + err.code); + }); + ``` + +## statfs.getTotalSize + +getTotalSize(path: string, callback: AsyncCallback<number>): void + +Obtains the total number of bytes of the specified file system in asynchronous mode. This API uses an asynchronous callback to return the result. + +**System capability**: SystemCapability.FileManagement.File.FileIO + +**Parameters** + +| Name | Type | Mandatory| Description | +| -------- | --------------------------- | ---- | ---------------------------- | +| path | string | Yes | File path of the file system.| +| callback | AsyncCallback<number> | Yes | Callback invoked to return the total number of bytes obtained. | + +**Example** + + ```js + let path = "/dev"; + statfs.getTotalSize(path, (err, number) => { + if (err) { + console.info("getTotalSize with error message: " + err.message + ", error code: " + err.code); + } else { + console.info("getTotalSize promise successfully, Size: " + number); + } + }); + ``` diff --git a/en/application-dev/reference/apis/js-apis-inner-application-abilityDelegator.md b/en/application-dev/reference/apis/js-apis-inner-application-abilityDelegator.md index ad4f7e19a9fd40b82684c0acc11a458073bbb16b..70aefed8b0d382421459175f3b19e10304917c3b 100644 --- a/en/application-dev/reference/apis/js-apis-inner-application-abilityDelegator.md +++ b/en/application-dev/reference/apis/js-apis-inner-application-abilityDelegator.md @@ -10,7 +10,7 @@ The **AbilityDelegator** module provides APIs for managing **AbilityMonitor** in An **AbilityDelegator** object is obtained by calling [getAbilityDelegator](js-apis-app-ability-abilityDelegatorRegistry.md#abilitydelegatorregistrygetabilitydelegator) in **AbilityDelegatorRegistry**. ```ts -import AbilityDelegatorRegistry from '@ohos.application.abilityDelegatorRegistry' +import AbilityDelegatorRegistry from '@ohos.app.ability.abilityDelegatorRegistry'; let abilityDelegator = AbilityDelegatorRegistry.getAbilityDelegator(); ``` @@ -35,13 +35,13 @@ Adds an **AbilityMonitor** instance. This API uses an asynchronous callback to r **Example** ```ts -var abilityDelegator; +let abilityDelegator; function onAbilityCreateCallback(data) { console.info("onAbilityCreateCallback"); } -var monitor = { +let monitor = { abilityName: "abilityname", onAbilityCreate: onAbilityCreateCallback } @@ -75,13 +75,13 @@ Adds an **AbilityMonitor** instance. This API uses a promise to return the resul **Example** ```ts -var abilityDelegator; +let abilityDelegator; function onAbilityCreateCallback(data) { console.info("onAbilityCreateCallback"); } -var monitor = { +let monitor = { abilityName: "abilityname", onAbilityCreate: onAbilityCreateCallback } @@ -92,8 +92,6 @@ abilityDelegator.addAbilityMonitor(monitor).then(() => { }); ``` - - ### removeAbilityMonitor9+ removeAbilityMonitor(monitor: AbilityMonitor, callback: AsyncCallback\): void; @@ -112,13 +110,13 @@ Removes an **AbilityMonitor** instance. This API uses an asynchronous callback t **Example** ```ts -var abilityDelegator; +let abilityDelegator; function onAbilityCreateCallback(data) { console.info("onAbilityCreateCallback"); } -var monitor = { +let monitor = { abilityName: "abilityname", onAbilityCreate: onAbilityCreateCallback } @@ -129,8 +127,6 @@ abilityDelegator.removeAbilityMonitor(monitor, (err : any) => { }); ``` - - ### removeAbilityMonitor9+ removeAbilityMonitor(monitor: AbilityMonitor): Promise\; @@ -154,13 +150,13 @@ Removes an **AbilityMonitor** instance. This API uses a promise to return the re - Example ```ts -var abilityDelegator; +let abilityDelegator; function onAbilityCreateCallback(data) { console.info("onAbilityCreateCallback"); } -var monitor = { +let monitor = { abilityName: "abilityname", onAbilityCreate: onAbilityCreateCallback } @@ -171,8 +167,6 @@ abilityDelegator.removeAbilityMonitor(monitor).then(() => { }); ``` - - ### waitAbilityMonitor9+ waitAbilityMonitor(monitor: AbilityMonitor, callback: AsyncCallback\): void; @@ -191,13 +185,13 @@ Waits for the **Ability** instance that matches the **AbilityMonitor** instance **Example** ```ts -var abilityDelegator; +let abilityDelegator; function onAbilityCreateCallback(data) { console.info("onAbilityCreateCallback"); } -var monitor = { +let monitor = { abilityName: "abilityname", onAbilityCreate: onAbilityCreateCallback } @@ -227,14 +221,14 @@ Waits a period of time for the **Ability** instance that matches the **AbilityMo **Example** ```ts -var abilityDelegator; -var timeout = 100; +let abilityDelegator; +let timeout = 100; function onAbilityCreateCallback(data) { console.info("onAbilityCreateCallback"); } -var monitor = { +let monitor = { abilityName: "abilityname", onAbilityCreate: onAbilityCreateCallback } @@ -271,13 +265,13 @@ Waits a period of time for the **Ability** instance that matches the **AbilityMo **Example** ```ts -var abilityDelegator; +let abilityDelegator; function onAbilityCreateCallback(data) { console.info("onAbilityCreateCallback"); } -var monitor = { +let monitor = { abilityName: "abilityname", onAbilityCreate: onAbilityCreateCallback } @@ -288,8 +282,6 @@ abilityDelegator.waitAbilityMonitor(monitor).then((data : any) => { }); ``` - - ### getAppContext9+ getAppContext(): Context; @@ -307,14 +299,12 @@ Obtains the application context. **Example** ```ts -var abilityDelegator; +let abilityDelegator; abilityDelegator = AbilityDelegatorRegistry.getAbilityDelegator(); -var context = abilityDelegator.getAppContext(); +let context = abilityDelegator.getAppContext(); ``` - - ### getAbilityState9+ getAbilityState(ability: UIAbility): number; @@ -338,20 +328,18 @@ Obtains the lifecycle state of an ability. **Example** ```ts -var abilityDelegator; -var ability; +let abilityDelegator; +let ability; abilityDelegator = AbilityDelegatorRegistry.getAbilityDelegator(); abilityDelegator.getCurrentTopAbility((err : any, data : any) => { console.info("getCurrentTopAbility callback"); ability = data; - var state = abilityDelegator.getAbilityState(ability); + let state = abilityDelegator.getAbilityState(ability); console.info("getAbilityState" + state); }); ``` - - ### getCurrentTopAbility9+ getCurrentTopAbility(callback: AsyncCallback\): void; @@ -369,8 +357,8 @@ Obtains the top ability of this application. This API uses an asynchronous callb **Example** ```ts -var abilityDelegator; -var ability; +let abilityDelegator; +let ability; abilityDelegator = AbilityDelegatorRegistry.getAbilityDelegator(); abilityDelegator.getCurrentTopAbility((err : any, data : any) => { @@ -379,8 +367,6 @@ abilityDelegator.getCurrentTopAbility((err : any, data : any) => { }); ``` - - ### getCurrentTopAbility9+ getCurrentTopAbility(): Promise\; @@ -398,8 +384,8 @@ Obtains the top ability of this application. This API uses a promise to return t **Example** ```ts -var abilityDelegator; -var ability; +let abilityDelegator; +let ability; abilityDelegator = AbilityDelegatorRegistry.getAbilityDelegator(); abilityDelegator.getCurrentTopAbility().then((data : any) => { @@ -408,8 +394,6 @@ abilityDelegator.getCurrentTopAbility().then((data : any) => { }); ``` - - ### startAbility9+ startAbility(want: Want, callback: AsyncCallback\): void; @@ -428,8 +412,8 @@ Starts an ability. This API uses an asynchronous callback to return the result. **Example** ```ts -var abilityDelegator; -var want = { +let abilityDelegator; +let want = { bundleName: "bundleName", abilityName: "abilityName" }; @@ -440,8 +424,6 @@ abilityDelegator.startAbility(want, (err : any, data : any) => { }); ``` - - ### startAbility9+ startAbility(want: Want): Promise\; @@ -465,8 +447,8 @@ Starts an ability. This API uses a promise to return the result. **Example** ```ts -var abilityDelegator; -var want = { +let abilityDelegator; +let want = { bundleName: "bundleName", abilityName: "abilityName" }; @@ -477,8 +459,6 @@ abilityDelegator.startAbility(want).then((data: any) => { }); ``` - - ### doAbilityForeground9+ doAbilityForeground(ability: UIAbility, callback: AsyncCallback\): void; @@ -497,8 +477,8 @@ Schedules the lifecycle state of an ability to **Foreground**. This API uses an **Example** ```ts -var abilityDelegator; -var ability; +let abilityDelegator; +let ability; abilityDelegator = AbilityDelegatorRegistry.getAbilityDelegator(); abilityDelegator.getCurrentTopAbility((err : any, data : any) => { @@ -510,8 +490,6 @@ abilityDelegator.getCurrentTopAbility((err : any, data : any) => { }); ``` - - ### doAbilityForeground9+ doAbilityForeground(ability: UIAbility): Promise\; @@ -535,8 +513,8 @@ Schedules the lifecycle state of an ability to **Foreground**. This API uses a p **Example** ```ts -var abilityDelegator; -var ability; +let abilityDelegator; +let ability; abilityDelegator = AbilityDelegatorRegistry.getAbilityDelegator(); abilityDelegator.getCurrentTopAbility((err : any, data : any) => { @@ -548,8 +526,6 @@ abilityDelegator.getCurrentTopAbility((err : any, data : any) => { }); ``` - - ### doAbilityBackground9+ doAbilityBackground(ability: UIAbility, callback: AsyncCallback\): void; @@ -568,8 +544,8 @@ Schedules the lifecycle state of an ability to **Background**. This API uses an **Example** ```ts -var abilityDelegator; -var ability; +let abilityDelegator; +let ability; abilityDelegator = AbilityDelegatorRegistry.getAbilityDelegator(); abilityDelegator.getCurrentTopAbility((err : any, data : any) => { @@ -581,8 +557,6 @@ abilityDelegator.getCurrentTopAbility((err : any, data : any) => { }); ``` - - ### doAbilityBackground9+ doAbilityBackground(ability: UIAbility): Promise\; @@ -606,8 +580,8 @@ Schedules the lifecycle state of an ability to **Background**. This API uses a p **Example** ```ts -var abilityDelegator; -var ability; +let abilityDelegator; +let ability; abilityDelegator = AbilityDelegatorRegistry.getAbilityDelegator(); abilityDelegator.getCurrentTopAbility((err : any, data : any) => { @@ -619,8 +593,6 @@ abilityDelegator.getCurrentTopAbility((err : any, data : any) => { }); ``` - - ### printSync9+ printSync(msg: string): void; @@ -638,15 +610,13 @@ Prints log information to the unit test console. **Example** ```ts -var abilityDelegator; -var msg = "msg"; +let abilityDelegator; +let msg = "msg"; abilityDelegator = AbilityDelegatorRegistry.getAbilityDelegator(); abilityDelegator.printSync(msg); ``` - - ### print print(msg: string, callback: AsyncCallback\): void; @@ -665,8 +635,8 @@ Prints log information to the unit test console. This API uses an asynchronous c **Example** ```ts -var abilityDelegator; -var msg = "msg"; +let abilityDelegator; +let msg = "msg"; abilityDelegator = AbilityDelegatorRegistry.getAbilityDelegator(); abilityDelegator.print(msg, (err : any) => { @@ -674,8 +644,6 @@ abilityDelegator.print(msg, (err : any) => { }); ``` - - ### print print(msg: string): Promise\; @@ -699,8 +667,8 @@ Prints log information to the unit test console. This API uses a promise to retu **Example** ```ts -var abilityDelegator; -var msg = "msg"; +let abilityDelegator; +let msg = "msg"; abilityDelegator = AbilityDelegatorRegistry.getAbilityDelegator(); abilityDelegator.print(msg).then(() => { @@ -708,8 +676,6 @@ abilityDelegator.print(msg).then(() => { }); ``` - - ### executeShellCommand executeShellCommand(cmd: string, callback: AsyncCallback\): void; @@ -728,8 +694,8 @@ Executes a shell command. This API uses an asynchronous callback to return the r **Example** ```ts -var abilityDelegator; -var cmd = "cmd"; +let abilityDelegator; +let cmd = "cmd"; abilityDelegator = AbilityDelegatorRegistry.getAbilityDelegator(); abilityDelegator.executeShellCommand(cmd, (err : any, data : any) => { @@ -737,8 +703,6 @@ abilityDelegator.executeShellCommand(cmd, (err : any, data : any) => { }); ``` - - ### executeShellCommand executeShellCommand(cmd: string, timeoutSecs: number, callback: AsyncCallback\): void; @@ -758,9 +722,9 @@ Executes a shell command with the timeout period specified. This API uses an asy **Example** ```ts -var abilityDelegator; -var cmd = "cmd"; -var timeout = 100; +let abilityDelegator; +let cmd = "cmd"; +let timeout = 100; abilityDelegator = AbilityDelegatorRegistry.getAbilityDelegator(); abilityDelegator.executeShellCommand(cmd, timeout, (err : any, data : any) => { @@ -768,8 +732,6 @@ abilityDelegator.executeShellCommand(cmd, timeout, (err : any, data : any) => { }); ``` - - ### executeShellCommand executeShellCommand(cmd: string, timeoutSecs?: number): Promise\; @@ -794,9 +756,9 @@ Executes a shell command with the timeout period specified. This API uses a prom **Example** ```ts -var abilityDelegator; -var cmd = "cmd"; -var timeout = 100; +let abilityDelegator; +let cmd = "cmd"; +let timeout = 100; abilityDelegator = AbilityDelegatorRegistry.getAbilityDelegator(); abilityDelegator.executeShellCommand(cmd, timeout).then((data : any) => { @@ -804,8 +766,6 @@ abilityDelegator.executeShellCommand(cmd, timeout).then((data : any) => { }); ``` - - ### finishTest9+ finishTest(msg: string, code: number, callback: AsyncCallback\): void; @@ -825,8 +785,8 @@ Finishes the test and prints log information to the unit test console. This API **Example** ```ts -var abilityDelegator; -var msg = "msg"; +let abilityDelegator; +let msg = "msg"; abilityDelegator = AbilityDelegatorRegistry.getAbilityDelegator(); abilityDelegator.finishTest(msg, 0, (err : any) => { @@ -834,8 +794,6 @@ abilityDelegator.finishTest(msg, 0, (err : any) => { }); ``` - - ### finishTest9+ finishTest(msg: string, code: number): Promise\; @@ -860,8 +818,8 @@ Finishes the test and prints log information to the unit test console. This API **Example** ```ts -var abilityDelegator; -var msg = "msg"; +let abilityDelegator; +let msg = "msg"; abilityDelegator = AbilityDelegatorRegistry.getAbilityDelegator(); abilityDelegator.finishTest(msg, 0).then(() => { @@ -887,9 +845,9 @@ Adds an **AbilityStageMonitor** instance to monitor the lifecycle state changes **Example** ```ts -var abilityDelegator; +let abilityDelegator; -var monitor = { +let monitor = { moduleName: "moduleName", srcEntrance: "srcEntrance", } @@ -900,8 +858,6 @@ abilityDelegator.addAbilityStageMonitor(monitor, (err : any) => { }); ``` - - ### addAbilityStageMonitor9+ addAbilityStageMonitor(monitor: AbilityStageMonitor): Promise\; @@ -925,9 +881,9 @@ Adds an **AbilityStageMonitor** instance to monitor the lifecycle state changes **Example** ```ts -var abilityDelegator; +let abilityDelegator; -var monitor = { +let monitor = { moduleName: "moduleName", srcEntrance: "srcEntrance", } @@ -956,9 +912,9 @@ Removes an **AbilityStageMonitor** instance from the application memory. This AP **Example** ```ts -var abilityDelegator; +let abilityDelegator; -var monitor = { +let monitor = { moduleName: "moduleName", srcEntrance: "srcEntrance", } @@ -969,8 +925,6 @@ abilityDelegator.removeAbilityStageMonitor(monitor, (err : any) => { }); ``` - - ### removeAbilityStageMonitor9+ removeAbilityStageMonitor(monitor: AbilityStageMonitor): Promise\; @@ -994,9 +948,9 @@ Removes an **AbilityStageMonitor** object from the application memory. This API **Example** ```ts -var abilityDelegator; +let abilityDelegator; -var monitor = { +let monitor = { moduleName: "moduleName", srcEntrance: "srcEntrance", } @@ -1025,13 +979,13 @@ Waits for an **AbilityStage** instance that matches the conditions set in an **A **Example** ```ts -var abilityDelegator; +let abilityDelegator; function onAbilityCreateCallback(data) { console.info("onAbilityCreateCallback"); } -var monitor = { +let monitor = { moduleName: "moduleName", srcEntrance: "srcEntrance", } @@ -1066,13 +1020,13 @@ Waits for an **AbilityStage** instance that matches the conditions set in an **A **Example** ```ts -var abilityDelegator; +let abilityDelegator; function onAbilityCreateCallback(data) { console.info("onAbilityCreateCallback"); } -var monitor = { +let monitor = { moduleName: "moduleName", srcEntrance: "srcEntrance", } @@ -1102,14 +1056,14 @@ Waits a period of time for an **AbilityStage** instance that matches the conditi **Example** ```ts -var abilityDelegator; -var timeout = 100; +let abilityDelegator; +let timeout = 100; function onAbilityCreateCallback(data) { console.info("onAbilityCreateCallback"); } -var monitor = { +let monitor = { moduleName: "moduleName", srcEntrance: "srcEntrance", } diff --git a/en/application-dev/reference/apis/js-apis-inner-application-abilityDelegatorArgs.md b/en/application-dev/reference/apis/js-apis-inner-application-abilityDelegatorArgs.md index a5f131c3e02071f3d55cbfdc73955ffef42889d3..737a5bc8c3ba7daa37af06f92a843fea27b40b8a 100644 --- a/en/application-dev/reference/apis/js-apis-inner-application-abilityDelegatorArgs.md +++ b/en/application-dev/reference/apis/js-apis-inner-application-abilityDelegatorArgs.md @@ -26,7 +26,7 @@ Describes the ability delegator arguments. **Example** ```ts -import AbilityDelegatorRegistry from '@ohos.application.abilityDelegatorRegistry'; +import AbilityDelegatorRegistry from '@ohos.app.ability.abilityDelegatorRegistry'; var args = AbilityDelegatorRegistry.getArguments(); ``` diff --git a/en/application-dev/reference/apis/js-apis-inner-application-abilityMonitor.md b/en/application-dev/reference/apis/js-apis-inner-application-abilityMonitor.md index d8726205b8caec547f270e8efe6472e37cd99eb4..3185bd98b51260135e6b3bf1524d6bab8187d2bf 100644 --- a/en/application-dev/reference/apis/js-apis-inner-application-abilityMonitor.md +++ b/en/application-dev/reference/apis/js-apis-inner-application-abilityMonitor.md @@ -30,7 +30,7 @@ Describes an ability monitor. **Example** ```ts -import AbilityDelegatorRegistry from '@ohos.application.abilityDelegatorRegistry' +import AbilityDelegatorRegistry from '@ohos.app.ability.abilityDelegatorRegistry'; function onAbilityCreateCallback(data) { console.info("onAbilityCreateCallback"); diff --git a/en/application-dev/reference/apis/js-apis-inner-application-abilityRunningInfo.md b/en/application-dev/reference/apis/js-apis-inner-application-abilityRunningInfo.md index 62b1f7e1fae204f2e6b1f6dcdc76521da3c51777..e076913ed7dda35586084acdad77df1e94720e83 100644 --- a/en/application-dev/reference/apis/js-apis-inner-application-abilityRunningInfo.md +++ b/en/application-dev/reference/apis/js-apis-inner-application-abilityRunningInfo.md @@ -28,7 +28,8 @@ The ability running information is obtained by calling [getAbilityRunningInfos]( **Example** ```ts -import abilitymanager from '@ohos.application.abilityManager'; +import abilitymanager from '@ohos.app.ability.abilityManager'; + abilitymanager.getAbilityRunningInfos((err,data) => { console.log("getAbilityRunningInfos err: " + err + " data: " + JSON.stringify(data)); for (let i = 0; i < data.length; i++) { diff --git a/en/application-dev/reference/apis/js-apis-inner-application-abilityStageContext.md b/en/application-dev/reference/apis/js-apis-inner-application-abilityStageContext.md index 79f750797c12bfd9c323e2f613650c016ea2930b..5237e134c8500cec81840e14c7d5153ee59d27a0 100644 --- a/en/application-dev/reference/apis/js-apis-inner-application-abilityStageContext.md +++ b/en/application-dev/reference/apis/js-apis-inner-application-abilityStageContext.md @@ -14,7 +14,8 @@ This module provides APIs for accessing a specific ability stage. You can use th The ability stage context is obtained through an **AbilityStage** instance. ```ts -import AbilityStage from '@ohos.application.AbilityStage'; +import AbilityStage from '@ohos.app.ability.AbilityStage'; + class MyAbilityStage extends AbilityStage { onCreate() { let abilityStageContext = this.context; diff --git a/en/application-dev/reference/apis/js-apis-inner-application-abilityStageMonitor.md b/en/application-dev/reference/apis/js-apis-inner-application-abilityStageMonitor.md index 76a4ae2e425ce91acb0f79d22889cba231809c26..a8b67e09b0d6809cf9b79e08e09f466a62d46b44 100644 --- a/en/application-dev/reference/apis/js-apis-inner-application-abilityStageMonitor.md +++ b/en/application-dev/reference/apis/js-apis-inner-application-abilityStageMonitor.md @@ -11,7 +11,7 @@ The **AbilityStageMonitor** module provides conditions for matching **AbilitySta **Example** ```ts -import AbilityDelegatorRegistry from '@ohos.application.abilityDelegatorRegistry' +import AbilityDelegatorRegistry from '@ohos.app.ability.abilityDelegatorRegistry'; let monitor = { moduleName: "feature_as1", diff --git a/en/application-dev/reference/apis/js-apis-inner-application-applicationStateObserver.md b/en/application-dev/reference/apis/js-apis-inner-application-applicationStateObserver.md index e6d3137582ee3b485e4a342a4a5a3b6b5473ed32..d8e4688d78931edf9018eed4c5a092a84f9d15e8 100644 --- a/en/application-dev/reference/apis/js-apis-inner-application-applicationStateObserver.md +++ b/en/application-dev/reference/apis/js-apis-inner-application-applicationStateObserver.md @@ -16,7 +16,7 @@ The **ApplicationStateObserver** module defines an observer to listen for applic **Example** ```ts -import appManager from "@ohos.application.appManager" +import appManager from "@ohos.app.ability.appManager"; let applicationStateObserver = { onForegroundApplicationChanged(appStateData) { diff --git a/en/application-dev/reference/apis/js-apis-inner-application-extensionContext.md b/en/application-dev/reference/apis/js-apis-inner-application-extensionContext.md index a855d9577c9ef364caa7436a89983ca58d320d3c..85fff22533b515eba4bb36c274e2d8782f28a356 100644 --- a/en/application-dev/reference/apis/js-apis-inner-application-extensionContext.md +++ b/en/application-dev/reference/apis/js-apis-inner-application-extensionContext.md @@ -31,8 +31,9 @@ To adapt to devices with different performance, an application provides three mo Define a **ServiceExtension** with the same name for the three modules. ```ts -import ServiceExtension from '@ohos.app.ability.ServiceExtensionAbility' -import Want from '@ohos.application.Want' +import ServiceExtension from '@ohos.app.ability.ServiceExtensionAbility'; +import Want from '@ohos.app.ability.Want'; + export default class TheServiceExtension extends ServiceExtension { onCreate(want:Want) { console.log('ServiceAbility onCreate, want: ' + want.abilityName); diff --git a/en/application-dev/reference/apis/js-apis-inner-application-processData.md b/en/application-dev/reference/apis/js-apis-inner-application-processData.md index c6e91944c5ed16800f3a2a7785de5a5e60dc623a..41401037a32bb0231b721bb470dec7f2e7a3d175 100644 --- a/en/application-dev/reference/apis/js-apis-inner-application-processData.md +++ b/en/application-dev/reference/apis/js-apis-inner-application-processData.md @@ -17,7 +17,7 @@ The **ProcessData** module defines process data. If a lifecycle change listener **Example** ```ts -import appManager from '@ohos.application.appManager' +import appManager from '@ohos.app.ability.appManager'; let applicationStateObserver = { onForegroundApplicationChanged(appStateData) { diff --git a/en/application-dev/reference/apis/js-apis-inner-application-processRunningInfo.md b/en/application-dev/reference/apis/js-apis-inner-application-processRunningInfo.md index 0652791f728de12c144459146287ecbbb680480e..16dd713d9bf284ce001df342c4a963920977f112 100644 --- a/en/application-dev/reference/apis/js-apis-inner-application-processRunningInfo.md +++ b/en/application-dev/reference/apis/js-apis-inner-application-processRunningInfo.md @@ -23,7 +23,7 @@ The process running information is obtained by using [getProcessRunningInfos](js **Example** ```ts -import appManager from '@ohos.application.appManager'; +import appManager from '@ohos.app.ability.appManager'; appManager.getProcessRunningInfos().then((data) => { console.log('success:' + JSON.stringify(data)); diff --git a/en/application-dev/reference/apis/js-apis-inner-application-shellCmdResult.md b/en/application-dev/reference/apis/js-apis-inner-application-shellCmdResult.md index 51b10659d38d55686ced548c624798d77391f102..8db813f610095cb4b19412291f34f3bf53c5dc57 100644 --- a/en/application-dev/reference/apis/js-apis-inner-application-shellCmdResult.md +++ b/en/application-dev/reference/apis/js-apis-inner-application-shellCmdResult.md @@ -19,7 +19,7 @@ The result is obtained by calling [executeShellCommand](js-apis-inner-applicatio **Example** ```ts -import AbilityDelegatorRegistry from "@ohos.application.abilityDelegatorRegistry"; +import AbilityDelegatorRegistry from "@ohos.app.ability.abilityDelegatorRegistry"; let abilityDelegator; let cmd = "cmd"; diff --git a/en/application-dev/reference/apis/js-apis-inputmethod-extension-ability.md b/en/application-dev/reference/apis/js-apis-inputmethod-extension-ability.md index d96cd241e7e4c198497712f7fa75c6990b847f6e..a61dd42ece2d52f0da53dd51f33770483b37757e 100644 --- a/en/application-dev/reference/apis/js-apis-inputmethod-extension-ability.md +++ b/en/application-dev/reference/apis/js-apis-inputmethod-extension-ability.md @@ -1,4 +1,4 @@ -# @ohos.inputmethodextensionability (InputMethodExtensionAbility) +# @ohos.InputMethodExtensionAbility (InputMethodExtensionAbility) The **InputMethodExtensionAbility** module provides APIs for developing input methods and managing their lifecycles. @@ -9,7 +9,7 @@ The **InputMethodExtensionAbility** module provides APIs for developing input me ## Modules to Import ```js -import InputMethodExtensionAbility from '@ohos.inputmethodextensionability'; +import InputMethodExtensionAbility from '@ohos.InputMethodExtensionAbility'; ``` ## Attributes diff --git a/en/application-dev/reference/apis/js-apis-inputmethod-extension-context.md b/en/application-dev/reference/apis/js-apis-inputmethod-extension-context.md index b33db13faa840a1660a42e612ef5a4d523241877..37dadd8e2ce6cd3e7c2f33ab05154f20b52cf844 100644 --- a/en/application-dev/reference/apis/js-apis-inputmethod-extension-context.md +++ b/en/application-dev/reference/apis/js-apis-inputmethod-extension-context.md @@ -1,4 +1,4 @@ -# @ohos.inputmethodextensioncontext (InputMethodExtensionContext) +# @ohos.InputMethodExtensionContext (InputMethodExtensionContext) The **InputMethodExtensionContext** module, inherited from **ExtensionContext**, provides context for **InputMethodExtension** abilities. @@ -11,7 +11,7 @@ You can use the APIs of this module to start, terminate, connect, and disconnect ## Modules to Import ``` -import InputMethodExtensionContext from '@ohos.inputmethodextensioncontext'; +import InputMethodExtensionContext from '@ohos.InputMethodExtensionContext'; ``` ## Usage @@ -19,7 +19,7 @@ import InputMethodExtensionContext from '@ohos.inputmethodextensioncontext'; Before using the **InputMethodExtensionContext** module, you must define a child class that inherits from **InputMethodExtensionAbility**. ```js -import InputMethodExtensionAbility from '@ohos.inputmethodextensionability'; +import InputMethodExtensionAbility from '@ohos.InputMethodExtensionAbility'; class EntryAbility extends InputMethodExtensionAbility { onCreate() { let context = this.context; @@ -66,9 +66,9 @@ Terminates this ability. This API uses a promise to return the result. **Example** ```js -this.context.destroy().then((data) => { - console.log('success:' + JSON.stringify(data)); +this.context.destroy().then(() => { + console.log('Succeed in destroying context.'); }).catch((error) => { - console.log('failed:' + JSON.stringify(error)); + console.log('Failed to destroy context: ' + JSON.stringify(error)); }); ``` diff --git a/en/application-dev/reference/apis/js-apis-inputmethod-subtype.md b/en/application-dev/reference/apis/js-apis-inputmethod-subtype.md index 1b5f9dfb662145fe2220d1d244cb3ac91dce9698..8f1a3fddc9344bcf5d04a526b5c70a77837e29d0 100644 --- a/en/application-dev/reference/apis/js-apis-inputmethod-subtype.md +++ b/en/application-dev/reference/apis/js-apis-inputmethod-subtype.md @@ -1,6 +1,6 @@ -# @ohos.inputmethodsubtype (Input Method Subtype) +# @ohos.InputMethodSubtype (Input Method Subtype) -The **inputMethodSubtype** module provides APIs for managing the attributes of input method subtypes. Different attribute settings result in different subtypes. +The **InputMethodSubtype** module provides APIs for managing the attributes of input method subtypes. Different attribute settings result in different subtypes. > **NOTE** > @@ -9,7 +9,7 @@ The **inputMethodSubtype** module provides APIs for managing the attributes of i ## Modules to Import ``` -import inputMethodEngine from '@ohos.inputMethodSubtype'; +import InputMethodSubtype from '@ohos.InputMethodSubtype'; ``` ## Attributes diff --git a/en/application-dev/reference/apis/js-apis-inputmethod.md b/en/application-dev/reference/apis/js-apis-inputmethod.md index e7ff69abcf62ef6957875badde01857b05087659..bdc166cd9d3b5a60636214b72311a2c8368c8d6d 100644 --- a/en/application-dev/reference/apis/js-apis-inputmethod.md +++ b/en/application-dev/reference/apis/js-apis-inputmethod.md @@ -1,4 +1,4 @@ -# @ohos.inputmethod (Input Method Framework) +# @ohos.inputMethod (Input Method Framework) The **inputMethod** module provides an input method framework, which can be used to hide the keyboard, obtain the list of installed input methods, display the dialog box for input method selection, and more. @@ -10,7 +10,7 @@ The **inputMethod** module provides an input method framework, which can be used ## Modules to Import ```js -import inputMethod from '@ohos.inputmethod'; +import inputMethod from '@ohos.inputMethod'; ``` ## Constants8+ @@ -111,7 +111,7 @@ Switches to another input method. This API uses an asynchronous callback to retu | Name| Type| Mandatory| Description| | -------- | -------- | -------- | -------- | | target | [InputMethodProperty](#inputmethodproperty8) | Yes| Input method to switch to.| -| callback | AsyncCallback<boolean> | Yes| Callback used to return the result. If the operation is successful, **err** is **undefined** and **data** is **true**. Otherwise, **err** is an error object. | +| callback | AsyncCallback<boolean> | Yes| Callback used to return the result. If the operation is successful, **err** is **undefined** and **data** is **true**. Otherwise, **err** is an error object.| **Error codes** @@ -160,15 +160,15 @@ Switches to another input method. This API uses a promise to return the result. **Parameters** -| Name| Type| Mandatory| Description| -| -------- | -------- | -------- | -------- | -|target | [InputMethodProperty](#inputmethodproperty8)| Yes| Input method to switch to.| + | Name| Type| Mandatory| Description| + | -------- | -------- | -------- | -------- | + |target | [InputMethodProperty](#inputmethodproperty8)| Yes| Input method to switch to.| **Return value** -| Type | Description | -| ----------------------------------------- | ---------------------------- | -| Promise\ | Promise used to return the result. The value **true** means that the switching is successful, and **false** means the opposite.| + | Type | Description | + | ----------------------------------------- | ---------------------------- | + | Promise\ | Promise used to return the result. The value **true** means that the switching is successful, and **false** means the opposite.| **Error codes** @@ -240,7 +240,7 @@ Switches to another subtype of the current input method. This API uses an asynch | Name| Type| Mandatory| Description| | -------- | -------- | -------- | -------- | | target | [InputMethodSubtype](./js-apis-inputmethod-subtype.md#inputmethodsubtype)| Yes| Input method subtype to switch to.| -| callback | AsyncCallback<boolean> | Yes| Callback used to return the result. If the operation is successful, **err** is **undefined** and **data** is **true**. Otherwise, **err** is an error object. | +| callback | AsyncCallback<boolean> | Yes| Callback used to return the result. If the operation is successful, **err** is **undefined** and **data** is **true**. Otherwise, **err** is an error object.| **Error codes** @@ -376,7 +376,7 @@ Switches to a specified subtype of a specified input method. This API uses an as | -------- | -------- | -------- | -------- | |inputMethodProperty | [InputMethodProperty](#inputmethodproperty8)| Yes| Input method to switch to.| |inputMethodSubtype | [InputMethodSubtype](./js-apis-inputmethod-subtype.md#inputmethodsubtype)| Yes| Input method subtype to switch to.| -| callback | AsyncCallback<boolean> | Yes| Callback used to return the result. If the operation is successful, **err** is **undefined** and **data** is **true**. Otherwise, **err** is an error object. | +| callback | AsyncCallback<boolean> | Yes| Callback used to return the result. If the operation is successful, **err** is **undefined** and **data** is **true**. Otherwise, **err** is an error object.| **Error codes** @@ -557,7 +557,7 @@ Ends this input session. The invoking of this API takes effect only after the in | Name| Type| Mandatory| Description| | -------- | -------- | -------- | -------- | -| callback | AsyncCallback<boolean> | Yes| Callback used to return the result. If the operation is successful, **err** is **undefined** and **data** is **true**. Otherwise, **err** is an error object. | +| callback | AsyncCallback<boolean> | Yes| Callback used to return the result. If the operation is successful, **err** is **undefined** and **data** is **true**. Otherwise, **err** is an error object.| **Error codes** @@ -643,7 +643,7 @@ Shows this soft keyboard. This API must be used with the input text box and work | Name | Type | Mandatory| Description | | -------- | ------------------------- | ---- | ---------- | -| callback | AsyncCallback<void> | Yes | Callback used to return the result. If the operation is successful, **err** is **undefined**. Otherwise, **err** is an error object. | +| callback | AsyncCallback<void> | Yes | Callback used to return the result. If the operation is successful, **err** is **undefined**. Otherwise, **err** is an error object.| **Error codes** @@ -715,7 +715,7 @@ Hides this soft keyboard. This API must be used with the input text box and work | Name | Type | Mandatory| Description | | -------- | ------------------------- | ---- | ---------- | -| callback | AsyncCallback<void> | Yes | Callback used to return the result. If the operation is successful, **err** is **undefined**. Otherwise, **err** is an error object. | +| callback | AsyncCallback<void> | Yes | Callback used to return the result. If the operation is successful, **err** is **undefined**. Otherwise, **err** is an error object.| **Error codes** @@ -789,7 +789,7 @@ Ends this input session. The invoking of this API takes effect only after the in | Name| Type| Mandatory| Description| | -------- | -------- | -------- | -------- | -| callback | AsyncCallback<boolean> | Yes| Callback used to return the result. If the operation is successful, **err** is **undefined** and **data** is **true**. Otherwise, **err** is an error object. | +| callback | AsyncCallback<boolean> | Yes| Callback used to return the result. If the operation is successful, **err** is **undefined** and **data** is **true**. Otherwise, **err** is an error object.| **Example** @@ -1157,7 +1157,7 @@ Displays a dialog box for selecting an input method. This API uses an asynchrono | Name| Type| Mandatory| Description| | -------- | -------- | -------- | -------- | -| callback | AsyncCallback<boolean> | Yes| Callback used to return the result. If the operation is successful, **err** is **undefined** and **data** is **true**. Otherwise, **err** is an error object. | +| callback | AsyncCallback<boolean> | Yes| Callback used to return the result. If the operation is successful, **err** is **undefined** and **data** is **true**. Otherwise, **err** is an error object.| **Error codes** @@ -1291,7 +1291,7 @@ Displays a dialog box for selecting an input method. This API uses an asynchrono | Name| Type| Mandatory| Description| | -------- | -------- | -------- | -------- | -| callback | AsyncCallback<void> | Yes| Callback used to return the result. If the operation is successful, **err** is **undefined**. Otherwise, **err** is an error object. | +| callback | AsyncCallback<void> | Yes| Callback used to return the result. If the operation is successful, **err** is **undefined**. Otherwise, **err** is an error object.| **Example** diff --git a/en/application-dev/reference/apis/js-apis-inputmethodengine.md b/en/application-dev/reference/apis/js-apis-inputmethodengine.md index f5becc73ca2132e8864c3bd8b8a9830312b96188..7cfb76e570ae3faf57fdf3ff31cd6cbcb9103eae 100644 --- a/en/application-dev/reference/apis/js-apis-inputmethodengine.md +++ b/en/application-dev/reference/apis/js-apis-inputmethodengine.md @@ -1,6 +1,6 @@ -# @ohos.inputmethodengine (Input Method Service) +# @ohos.inputMethodEngine (Input Method Service) -The **inputMethodEngine** module streamlines the interaction between input methods and applications. By calling APIs of this module, applications can be bound to input method services to accept text input through the input methods, request the keyboard to display or hide, listen for the input method status, and much more. +The **inputMethodEngine** module streamlines the interactions between input methods and applications. By calling APIs of this module, applications can be bound to input method services to accept text input, request the keyboard to display or hide, listen for the input method status, and much more. > **NOTE** > @@ -9,7 +9,7 @@ The **inputMethodEngine** module streamlines the interaction between input metho ## Modules to Import ``` -import inputMethodEngine from '@ohos.inputmethodengine'; +import inputMethodEngine from '@ohos.inputMethodEngine'; ``` ## Constants @@ -203,7 +203,7 @@ Enables listening for a keyboard event. This API uses an asynchronous callback t | Name | Type | Mandatory| Description | | -------- | ------ | ---- | ------------------------------------------------------------ | -| type | string | Yes | Listening type.
- The value **'keyboardShow'** indicates the keyboard display event.
- The value **'keyboardHide'** indicates the keyboard hiding event. | +| type | string | Yes | Listening type.
- The value **'keyboardShow'** indicates the keyboard display event.
- The value **'keyboardHide'** indicates the keyboard hiding event.| | callback | () => void | Yes | Callback used to return the result. | **Example** @@ -418,7 +418,7 @@ Disables listening for a keyboard event. This API uses an asynchronous callback | Name | Type | Mandatory| Description | | -------- | ------ | ---- | ------------------------------------------------------------ | -| type | string | Yes | Listening type.
The value **'keyboardShow'** indicates the keyboard display event.
The value **'keyboardHide'** indicates the keyboard hiding event.| +| type | string | Yes | Listening type.
- The value **'keyboardShow'** indicates the keyboard display event.
- The value **'keyboardHide'** indicates the keyboard hiding event.| | callback | () => void | No | Callback used to return the result. | **Example** diff --git a/en/application-dev/reference/apis/js-apis-launcherBundleManager.md b/en/application-dev/reference/apis/js-apis-launcherBundleManager.md index 505c29ae0ef6cc18404767eaa4a4b4ac88296651..3180bf582281372886331d6d37ff059cad79e1db 100644 --- a/en/application-dev/reference/apis/js-apis-launcherBundleManager.md +++ b/en/application-dev/reference/apis/js-apis-launcherBundleManager.md @@ -1,4 +1,4 @@ -# @ohos.bundle.launcherBundleManager +# @ohos.bundle.launcherBundleManager (launcherBundleManager) The **bundle.launcherBundleManager** module providers APIs for the **Home Screen** application to obtain the launcher ability information and shortcut information. diff --git a/en/application-dev/reference/apis/js-apis-linkedlist.md b/en/application-dev/reference/apis/js-apis-linkedlist.md index 0e745d749c0967cd515a91356750f7de0703ace7..bc51f25fbb6c54f7fadc6bdd05533113a1c7254c 100644 --- a/en/application-dev/reference/apis/js-apis-linkedlist.md +++ b/en/application-dev/reference/apis/js-apis-linkedlist.md @@ -389,7 +389,7 @@ For details about the error codes, see [Utils Error Codes](../errorcodes/errorco | ID| Error Message| | -------- | -------- | | 10200011 | The removeFirst method cannot be bound. | -| 10200010 | The container is empty. | +| 10200010 | Container is empty. | **Example** @@ -424,7 +424,7 @@ For details about the error codes, see [Utils Error Codes](../errorcodes/errorco | ID| Error Message| | -------- | -------- | | 10200011 | The removeLast method cannot be bound. | -| 10200010 | The container is empty. | +| 10200010 | Container is empty. | **Example** @@ -504,7 +504,7 @@ For details about the error codes, see [Utils Error Codes](../errorcodes/errorco | ID| Error Message| | -------- | -------- | | 10200011 | The removeFirstFound method cannot be bound. | -| 10200010 | The container is empty. | +| 10200010 | Container is empty. | **Example** @@ -544,7 +544,7 @@ For details about the error codes, see [Utils Error Codes](../errorcodes/errorco | ID| Error Message| | -------- | -------- | | 10200011 | The removeLastFound method cannot be bound. | -| 10200010 | The container is empty. | +| 10200010 | Container is empty. | **Example** diff --git a/en/application-dev/reference/apis/js-apis-media.md b/en/application-dev/reference/apis/js-apis-media.md index 6d395fd5f21b8b041f7930ae96002dc430fd650b..5a1dcff96d3f5d3c7e2dc1beeb8038e3b68bb46c 100644 --- a/en/application-dev/reference/apis/js-apis-media.md +++ b/en/application-dev/reference/apis/js-apis-media.md @@ -1,18 +1,19 @@ # @ohos.multimedia.media (Media) > **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 multimedia subsystem provides a set of simple and easy-to-use APIs for you to access the system and use media resources. -This subsystem offers various media services covering audio and video, which provide the following capabilities: +This subsystem offers the following audio and video services: -- Audio playback ([AudioPlayer](#audioplayer)) -- Video playback ([VideoPlayer](#videoplayer8)) -- Audio recording ([AudioRecorder](#audiorecorder)) -- Video recording ([VideoRecorder](#videorecorder9)) - -The following capabilities will be provided in later versions: data source audio/video playback, audio/video encoding and decoding, container encapsulation and decapsulation, and media capability query. +- Audio and video playback, implemented by the [AVPlayer](#avplayer9)9+ class. This class has integrated [AudioPlayer](#audioplayerdeprecated)6+ and [VideoPlayer](#videoplayer)8+, with the state machine and error codes upgraded. It is recommended. +- Audio and video recording, implemented by the [AVRecorder](#avrecorder9)9+ class. This class has integrated [AudioRecorder](#audiorecorderdeprecated)6+ and [VideoRecorder](#videorecorder9)9+. It is recommended. +- Audio playback, implemented by the [AudioPlayer](#audioplayerdeprecated)6+ class. It is deprecated. You are advised to use [AVPlayer](#avplayer9)9+. +- Video playback, implemented by the [VideoPlayer](#videoplayerdeprecated)8+ class. It is deprecated. You are advised to use [AVPlayer](#avplayer9)9+. +- Audio recording, implemented by the [AudioRecorder](#audiorecorderdeprecated)6+ class. It is deprecated. You are advised to use [AVRecorder](#avrecorder9)9+. +- Video recording, implemented by the [VideoRecorder](#videorecorder9)9+ class. It is deprecated. You are advised to use [AVRecorder](#avrecorder9)9+. ## Modules to Import @@ -20,113 +21,166 @@ The following capabilities will be provided in later versions: data source audio import media from '@ohos.multimedia.media'; ``` -## media.createAudioPlayer +## media.createAVPlayer9+ -createAudioPlayer(): [AudioPlayer](#audioplayer) +createAVPlayer(callback: AsyncCallback\): void -Creates an **AudioPlayer** instance in synchronous mode. +Creates an **AVPlayer** instance. This API uses an asynchronous callback to return the result. -**System capability**: SystemCapability.Multimedia.Media.AudioPlayer +**System capability**: SystemCapability.Multimedia.Media.AVPlayer -**Return value** +**Parameters** -| Type | Description | -| --------------------------- | ------------------------------------------------------------ | -| [AudioPlayer](#audioplayer) | Returns the **AudioPlayer** instance if the operation is successful; returns **null** otherwise. After the instance is created, you can start, pause, or stop audio playback.| +| Name | Type | Mandatory| Description | +| -------- | ------------------------------------- | ---- | ------------------------------------------------------------ | +| callback | AsyncCallback\<[AVPlayer](#avplayer9)> | Yes | Callback used to return the result. If the operation is successful, an **AVPlayer** instance is returned; otherwise, **null** is returned. The instance can be used to play audio and video.| + +**Error codes** + +For details about the error codes, see [Media Error Codes](../errorcodes/errorcode-media.md). + +| ID| Error Message | +| -------- | ------------------------------ | +| 5400101 | No memory. Return by callback. | **Example** ```js -let audioPlayer = media.createAudioPlayer(); +let avPlayer + +media.createAVPlayer((error, video) => { + if (video != null) { + avPlayer = video; + console.info('createAVPlayer success'); + } else { + console.info(`createAVPlayer fail, error:${error}`); + } +}); ``` -## media.createVideoPlayer8+ +## media.createAVPlayer9+ -createVideoPlayer(callback: AsyncCallback\<[VideoPlayer](#videoplayer8)>): void +createAVPlayer(): Promise\ -Creates a **VideoPlayer** instance. This API uses an asynchronous callback to return the result. +Creates an **AVPlayer** instance. This API uses a promise to return the result. -**System capability**: SystemCapability.Multimedia.Media.VideoPlayer +**System capability**: SystemCapability.Multimedia.Media.AVPlayer -**Parameters** +**Return value** + +| Type | Description | +| ------------------------------- | ------------------------------------------------------------ | +| Promise\<[AVPlayer](#avplayer9)> | Promise used to return the result. If the operation is successful, an **AVPlayer** instance is returned; otherwise, **null** is returned. The instance can be used to play audio and video.| + +**Error codes** + +For details about the error codes, see [Media Error Codes](../errorcodes/errorcode-media.md). -| Name | Type | Mandatory| Description | -| -------- | ------------------------------------------- | ---- | ------------------------------ | -| callback | AsyncCallback<[VideoPlayer](#videoplayer8)> | Yes | Callback used to return the result. If the operation is successful, the **VideoPlayer** instance is returned; otherwise, **null** is returned. The instance can be used to manage and play video.| +| ID| Error Message | +| -------- | ----------------------------- | +| 5400101 | No memory. Return by promise. | **Example** ```js -let videoPlayer +let avPlayer -media.createVideoPlayer((error, video) => { - if (video != null) { - videoPlayer = video; - console.info('video createVideoPlayer success'); +media.createAVPlayer().then((video) => { + if (video != null) { + avPlayer = video; + console.info('createAVPlayer success'); } else { - console.info(`video createVideoPlayer fail, error:${error}`); + console.info('createAVPlayer fail'); } +}).catch((error) => { + console.info(`AVPlayer catchCallback, error:${error}`); }); ``` -## media.createVideoPlayer8+ +## media.createAVRecorder9+ -createVideoPlayer(): Promise<[VideoPlayer](#videoplayer8)> +createAVRecorder(callback: AsyncCallback\): void -Creates a **VideoPlayer** instance. This API uses a promise to return the result. +Creates an **AVRecorder** instance. This API uses an asynchronous callback to return the result. +Only one **AVRecorder** instance can be created per device. -**System capability**: SystemCapability.Multimedia.Media.VideoPlayer +**System capability**: SystemCapability.Multimedia.Media.AVRecorder -**Return value** +**Parameters** + +| Name | Type | Mandatory| Description | +| -------- | ------------------------------------------ | ---- | ------------------------------------------------------------ | +| callback | AsyncCallback\<[AVRecorder](#avrecorder9)> | Yes | Callback used to return the result. If the operation is successful, an **AVRecorder** instance is returned; otherwise, **null** is returned. The instance can be used to record audio and video.| -| Type | Description | -| ------------------------------------- | ------------------------------------------------------------ | -| Promise<[VideoPlayer](#videoplayer8)> | Promise used to return the result. If the operation is successful, the **VideoPlayer** instance is returned; otherwise, **null** is returned. The instance can be used to manage and play video.| +**Error codes** + +For details about the error codes, see [Media Error Codes](../errorcodes/errorcode-media.md). + +| ID| Error Message | +| -------- | ------------------------------ | +| 5400101 | No memory. Return by callback. | **Example** ```js -let videoPlayer +let avRecorder -media.createVideoPlayer().then((video) => { - if (video != null) { - videoPlayer = video; - console.info('video createVideoPlayer success'); +media.createAVRecorder((error, recorder) => { + if (recorder != null) { + avRecorder = recorder; + console.info('createAVRecorder success'); } else { - console.info('video createVideoPlayer fail'); + console.info(`createAVRecorder fail, error:${error}`); } -}).catch((error) => { - console.info(`video catchCallback, error:${error}`); }); ``` -## media.createAudioRecorder +## media.createAVRecorder9+ -createAudioRecorder(): AudioRecorder +createAVRecorder(): Promise\ -Creates an **AudioRecorder** instance to control audio recording. -Only one **AudioRecorder** instance can be created per device. +Creates an **AVRecorder** instance. This API uses a promise to return the result. +Only one **AVRecorder** instance can be created per device. -**System capability**: SystemCapability.Multimedia.Media.AudioRecorder +**System capability**: SystemCapability.Multimedia.Media.AVRecorder **Return value** -| Type | Description | -| ------------------------------- | ------------------------------------------------------------ | -| [AudioRecorder](#audiorecorder) | Returns the **AudioRecorder** instance if the operation is successful; returns **null** otherwise. The instance can be used to record audio.| +| Type | Description | +| ------------------------------------ | ------------------------------------------------------------ | +| Promise\<[AVRecorder](#avrecorder9)> | Promise used to return the result. If the operation is successful, an **AVRecorder** instance is returned; otherwise, **null** is returned. The instance can be used to record audio and video.| + +**Error codes** + +For details about the error codes, see [Media Error Codes](../errorcodes/errorcode-media.md). + +| ID| Error Message | +| -------- | ----------------------------- | +| 5400101 | No memory. Return by promise. | **Example** ```js -let audioRecorder = media.createAudioRecorder(); +let avRecorder + +media.createAVRecorder().then((recorder) => { + if (recorder != null) { + avRecorder = recorder; + console.info('createAVRecorder success'); + } else { + console.info('createAVRecorder fail'); + } +}).catch((error) => { + console.info(`createAVRecorder catchCallback, error:${error}`); +}); ``` ## media.createVideoRecorder9+ -createVideoRecorder(callback: AsyncCallback\<[VideoRecorder](#videorecorder9)>): void +createVideoRecorder(callback: AsyncCallback\): void Creates a **VideoRecorder** instance. This API uses an asynchronous callback to return the result. -Only one **AudioRecorder** instance can be created per device. +Only one **VideoRecorder** instance can be created per device. **System capability**: SystemCapability.Multimedia.Media.VideoRecorder @@ -134,9 +188,9 @@ Only one **AudioRecorder** instance can be created per device. **Parameters** -| Name | Type | Mandatory| Description | -| -------- | ----------------------------------------------- | ---- | ------------------------------ | -| callback | AsyncCallback<[VideoRecorder](#videorecorder9)> | Yes | Callback used to return the result. If the operation is successful, the **VideoRecorder** instance is returned; otherwise, **null** is returned. The instance can be used to record video.| +| Name | Type | Mandatory| Description | +| -------- | ----------------------------------------------- | ---- | ------------------------------------------------------------ | +| callback | AsyncCallback<[VideoRecorder](#videorecorder9)> | Yes | Callback used to return the result. If the operation is successful, a **VideoRecorder** instance is returned; otherwise, **null** is returned. The instance can be used to record video.| **Error codes** @@ -163,10 +217,10 @@ media.createVideoRecorder((error, video) => { ## media.createVideoRecorder9+ -createVideoRecorder(): Promise<[VideoRecorder](#videorecorder9)> +createVideoRecorder(): Promise\ Creates a **VideoRecorder** instance. This API uses a promise to return the result. -Only one **AudioRecorder** instance can be created per device. +Only one **VideoRecorder** instance can be created per device. **System capability**: SystemCapability.Multimedia.Media.VideoRecorder @@ -176,7 +230,7 @@ Only one **AudioRecorder** instance can be created per device. | Type | Description | | ----------------------------------------- | ------------------------------------------------------------ | -| Promise<[VideoRecorder](#videorecorder9)> | Promise used to return the result. If the operation is successful, the **VideoRecorder** instance is returned; otherwise, **null** is returned. The instance can be used to record video.| +| Promise<[VideoRecorder](#videorecorder9)> | Promise used to return the result. If the operation is successful, a **VideoRecorder** instance is returned; otherwise, **null** is returned. The instance can be used to record video.| **Error codes** @@ -203,26 +257,24 @@ media.createVideoRecorder().then((video) => { }); ``` +## AVErrorCode9+ - -## MediaErrorCode8+ - -Enumerates the media error codes. +Enumerates the [media error codes](../errorcodes/errorcode-media.md). **System capability**: SystemCapability.Multimedia.Media.Core -| Name | Value | Description | -| -------------------------- | ---- | -------------------------------------- | -| MSERR_OK | 0 | The operation is successful. | -| MSERR_NO_MEMORY | 1 | Failed to allocate memory. The system may have no available memory.| -| MSERR_OPERATION_NOT_PERMIT | 2 | No permission to perform this operation. | -| MSERR_INVALID_VAL | 3 | Invalid input parameter. | -| MSERR_IO | 4 | An I/O error occurs. | -| MSERR_TIMEOUT | 5 | The operation times out. | -| MSERR_UNKNOWN | 6 | An unknown error occurs. | -| MSERR_SERVICE_DIED | 7 | Invalid server. | -| MSERR_INVALID_STATE | 8 | The operation is not allowed in the current state. | -| MSERR_UNSUPPORTED | 9 | The operation is not supported in the current version. | +| Name | Value | Description | +| :------------------------- | ------- | ------------------------------------ | +| AVERR_OK | 0 | The operation is successful. | +| AVERR_NO_PERMISSION | 201 | You do not have the permission to perform the operation. | +| AVERR_INVALID_PARAMETER | 401 | Invalid input parameter. | +| AVERR_UNSUPPORT_CAPABILITY | 801 | Unsupported API. | +| AVERR_NO_MEMORY | 5400101 | The system memory is insufficient or the number of services reaches the upper limit.| +| AVERR_OPERATE_NOT_PERMIT | 5400102 | The operation is not allowed in the current state or you do not have the permission to perform the operation.| +| AVERR_IO | 5400103 | The data stream is abnormal. | +| AVERR_TIMEOUT | 5400104 | The system or network response times out. | +| AVERR_SERVICE_DIED | 5400105 | The service process is dead. | +| AVERR_UNSUPPORT_FORMAT | 5400106 | The format of the media asset is not supported. | ## MediaType8+ @@ -284,1120 +336,1083 @@ Enumerates the buffering event types. | BUFFERING_PERCENT | 3 | Buffering progress, in percent. | | CACHED_DURATION | 4 | Cache duration, in ms.| -## AudioPlayer +## StateChangeReason9+ -Provides APIs to manage and play audio. Before calling an API of **AudioPlayer**, you must use [createAudioPlayer()](#mediacreateaudioplayer) to create an **AudioPlayer** instance. +Enumerates the reasons for the state transition of the **AVPlayer** or **AVRecorder** instance. The enum value is reported together with **state**. -For details about the audio playback demo, see [Audio Playback Development](../../media/audio-playback.md). +**System capability**: SystemCapability.Multimedia.Media.Core -### Attributes +| Name | Value | Description | +| ---------- | ---- | ------------------------------------------------------------ | +| USER | 1 | State transition triggered by user behavior. It happens when a user or the client calls an API.| +| BACKGROUND | 2 | State transition caused by system behavior. For example, if an application does not have the permission of Media Controller, the application is forcibly suspended or stopped by the system when it switches to the background.| -**System capability**: SystemCapability.Multimedia.Media.AudioPlayer +## AVPlayer9+ -| Name | Type | Readable| Writable| Description | -| ------------------------------- | ------------------------------------------------------ | ---- | ---- | ------------------------------------------------------------ | -| src | string | Yes | Yes | Audio file URI. The mainstream audio formats (M4A, AAC, MPEG-3, OGG, and WAV) are supported.
**Examples of supported URI schemes**:
1. FD: fd://xx
![](figures/en-us_image_url.png)
2. HTTP: http://xx
3. HTTPS: https://xx
4. HLS: http://xx or https://xx
**Required permissions**: ohos.permission.READ_MEDIA or ohos.permission.INTERNET| -| fdSrc9+ | [AVFileDescriptor](#avfiledescriptor9) | Yes | Yes | Description of the audio file. This attribute is required when audio resources of an application are continuously stored in a file.
**Example:**
Assume that a music file that stores continuous music resources consists of the following:
Music 1 (address offset: 0, byte length: 100)
Music 2 (address offset: 101; byte length: 50)
Music 3 (address offset: 151, byte length: 150)
1. To play music 1: AVFileDescriptor {fd = resource handle; offset = 0; length = 100; }
2. To play music 2: AVFileDescriptor {fd = resource handle; offset = 101; length = 50; }
3. To play music 3: AVFileDescriptor {fd = resource handle; offset = 151; length = 150; }
To play an independent music file, use **src=fd://xx**.
| -| loop | boolean | Yes | Yes | Whether to loop audio playback. The value **true** means to loop audio playback, and **false** means the opposite. | -| audioInterruptMode9+ | [audio.InterruptMode](js-apis-audio.md#interruptmode9) | Yes | Yes | Audio interruption mode. | -| currentTime | number | Yes | No | Current audio playback position, in ms. | -| duration | number | Yes | No | Audio duration, in ms. | -| state | [AudioState](#audiostate) | Yes | No | Audio playback state. This state cannot be used as the condition for triggering the call of **play()**, **pause()**, or **stop()**.| -### play +A playback management class that provides APIs to manage and play media assets. Before calling any API in **AVPlayer**, you must use [createAVPlayer()](#mediacreateavplayer9) to create an **AVPlayer** instance. -play(): void +For details about the AVPlayer demo, see [AVPlayer Development](../../media/avplayer-playback.md). -Starts to play audio resources. This API can be called only after the [dataLoad](#audioplayer_on) event is triggered. +### Attributes -**System capability**: SystemCapability.Multimedia.Media.AudioPlayer +**System capability**: SystemCapability.Multimedia.Media.AVPlayer -**Example** +| Name | Type | Readable| Writable| Description | +| --------------------------------------------------- | ------------------------------------------------------ | ---- | ---- | ------------------------------------------------------------ | +| url9+ | string | Yes | Yes | URL of the media asset. It is a static attribute and can be set only when the AVPlayer is in the idle state.
The video formats MP4, MPEG-TS, WebM, and MKV are supported.
The audio formats M4A, AAC, MP3, OGG, and WAV are supported.
**Examples of supported URLs**:
1. FD: fd://xx
![](figures/en-us_image_url.png)
2. HTTP: http://xx
3. HTTPS: https://xx
4. HLS: http://xx or https://xx| +| fdSrc9+ | [AVFileDescriptor](#avfiledescriptor9) | Yes | Yes | FD of the media asset. It is a static attribute and can be set only when the AVPlayer is in the idle state.
This attribute is required when media assets of an application are continuously stored in a file.
**Example:**
Assume that a media file that stores continuous assets consists of the following:
Video 1 (address offset: 0, byte length: 100)
Video 2 (address offset: 101; byte length: 50)
Video 3 (address offset: 151, byte length: 150)
1. To play video 1: AVFileDescriptor {fd = resource handle; offset = 0; length = 100; }
2. To play video 2: AVFileDescriptor {fd = resource handle; offset = 101; length = 50; }
3. To play video 3: AVFileDescriptor {fd = resource handle; offset = 151; length = 150; }
To play an independent media file, use **src=fd://xx**.| +| surfaceId9+ | string | Yes | Yes | Video window ID. By default, there is no video window. It is a static attribute and can be set only when the AVPlayer is in the initialized state.
It is used to render the window for video playback and therefore is not required in audio-only playback scenarios.
**Example:**
[Create a surface ID through XComponent](../arkui-ts/ts-basic-components-xcomponent.md#getxcomponentsurfaceid).| +| loop9+ | boolean | Yes | Yes | Whether to loop playback. The value **true** means to loop playback, and **false** (default) means the opposite. It is a dynamic attribute
and can be set only when the AVPlayer is in the prepared, playing, paused, or completed state.| +| videoScaleType9+ | [VideoScaleType](#videoscaletype9) | Yes | Yes | Video scaling type. The default value is **VIDEO_SCALE_TYPE_FIT_CROP**. It is a dynamic attribute
and can be set only when the AVPlayer is in the prepared, playing, paused, or completed state.| +| audioInterruptMode9+ | [audio.InterruptMode](js-apis-audio.md#interruptmode9) | Yes | Yes | Audio interruption mode. The default value is **SHARE_MODE**. It is a dynamic attribute
and can be set only when the AVPlayer is in the prepared, playing, paused, or completed state.| +| audioRendererInfo10+ | [audio.AudioRendererInfo](js-apis-audio.md#audiorendererinfo8) | Yes | Yes | Audio renderer information. The default value of **contentType** is **CONTENT_TYPE_MUSIC**, and the default value of **streamUsage** is **STREAM_USAGE_MEDIA**.
It can be set only when the AVPlayer is in the initialized state.| +| state9+ | [AVPlayerState](#avplayerstate9) | Yes | No | AVPlayer state. It can be used as a query parameter when the AVPlayer is in any state. | +| currentTime9+ | number | Yes | No | Current video playback position, in ms. It can be used as a query parameter when the AVPlayer is in the prepared, playing, paused, or completed state.
The value **-1** indicates an invalid value.| +| duration9+ | number | Yes | No | Video duration, in ms. It can be used as a query parameter when the AVPlayer is in the prepared, playing, paused, or completed state.
The value **-1** indicates an invalid value.
In live streaming scenarios, **-1** is returned by default.| +| width9+ | number | Yes | No | Video width, in pixels. It can be used as a query parameter when the AVPlayer is in the prepared, playing, paused, or completed state.
The value **0** indicates an invalid value.| +| height9+ | number | Yes | No | Video height, in pixels. It can be used as a query parameter when the AVPlayer is in the prepared, playing, paused, or completed state.
The value **0** indicates an invalid value.| -```js -audioPlayer.on('play', () => { // Set the 'play' event callback. - console.log('audio play success'); -}); -audioPlayer.play(); -``` +### on('stateChange')9+ -### pause +on(type: 'stateChange', callback: (state: AVPlayerState, reason: StateChangeReason) => void): void -pause(): void +Subscribes to AVPlayer state changes. -Pauses audio playback. +**System capability**: SystemCapability.Multimedia.Media.AVPlayer -**System capability**: SystemCapability.Multimedia.Media.AudioPlayer +**Parameters** + +| Name | Type | Mandatory| Description | +| -------- | -------- | ---- | ------------------------------------------------------------ | +| type | string | Yes | Event type, which is **'stateChange'** in this case. This event can be triggered by both user operations and the system.| +| callback | function | Yes | Callback invoked when the event is triggered. It reports the following information:
state: [AVPlayerState](#avplayerstate9), indicating the AVPlayer state.
reason: [StateChangeReason](#statechangereason9), indicating the reason for the state transition.| **Example** ```js -audioPlayer.on('pause', () => { // Set the 'pause' event callback. - console.log('audio pause success'); -}); -audioPlayer.pause(); +avPlayer.on('stateChange', async (state, reason) => { + switch (state) { + case 'idle': + console.info('state idle called') + break; + case 'initialized': + console.info('initialized prepared called') + break; + case 'prepared': + console.info('state prepared called') + break; + case 'playing': + console.info('state playing called') + break; + case 'paused': + console.info('state paused called') + break; + case 'completed': + console.info('state completed called') + break; + case 'stopped': + console.info('state stopped called') + break; + case 'released': + console.info('state released called') + break; + case 'error': + console.info('state error called') + break; + default: + console.info('unkown state :' + state) + break; + } +}) ``` -### stop +### off('stateChange')9+ -stop(): void +off(type: 'stateChange'): void -Stops audio playback. +Unsubscribes from AVPlayer state changes. -**System capability**: SystemCapability.Multimedia.Media.AudioPlayer +**System capability**: SystemCapability.Multimedia.Media.AVPlayer + +**Parameters** + +| Name| Type | Mandatory| Description | +| ------ | ------ | ---- | ----------------------------------------------------- | +| type | string | Yes | Event type, which is **'stateChange'** in this case.| **Example** ```js -audioPlayer.on('stop', () => { // Set the 'stop' event callback. - console.log('audio stop success'); -}); -audioPlayer.stop(); +avPlayer.off('stateChange') ``` -### reset7+ +### on('error')9+ -reset(): void +on(type: 'error', callback: ErrorCallback): void -Resets the audio asset to be played. +Subscribes to AVPlayer errors. This event is used only for error prompt and does not require the user to stop playback control. If the [AVPlayer state](#avplayerstate9) is also switched to error, call **reset()** or **release()** to exit the playback. -**System capability**: SystemCapability.Multimedia.Media.AudioPlayer +**System capability**: SystemCapability.Multimedia.Media.AVPlayer + +**Parameters** + +| Name | Type | Mandatory| Description | +| -------- | -------- | ---- | ------------------------------------------------------------ | +| type | string | Yes | Event type, which is **'error'** in this case. This event can be triggered by both user operations and the system.| +| callback | function | Yes | Callback used to return the error code ID and error message.| + +The AVPlayer provides the following error types: + +| ID| Error Message | Description | +| -------- | --------------------- | ------------------------------------------------------------ | +| 201 | No Permission: | No permission to perform the operation. The [AVPlayer state](#avplayerstate9) is error.| +| 401 | Invalid Parameter: | Incorrect input parameter, causing an invalid call. | +| 801 | Unsupport Capability: | Unsupported API, causing an invalid call. | +| 5400101 | No Memory: | Insufficient memory. The [AVPlayer state](#avplayerstate9) is error.| +| 5400102 | Operate Not Permit: | Unsupported operation in the current state, causing an invalid call. | +| 5400103 | IO Error: | Abnormal stream. | +| 5400104 | Network Timeout: | The response times out due to a network error. The [AVPlayer state](#avplayerstate9) is error.| +| 5400105 | Service Died: | The playback process is dead. The [AVPlayer state](#avplayerstate9) is error.| +| 5400106 | Unsupport Format: | Unsupported file format. The [AVPlayer state](#avplayerstate9) is error.| **Example** ```js -audioPlayer.on('reset', () => { // Set the 'reset' event callback. - console.log('audio reset success'); -}); -audioPlayer.reset(); +avPlayer.on('error', (error) => { + console.info('error happened,and error message is :' + error.message) + console.info('error happened,and error code is :' + error.code) +}) ``` -### seek +### off('error')9+ -seek(timeMs: number): void +off(type: 'error'): void -Seeks to the specified playback position. +Unsubscribes from AVPlayer errors. -**System capability**: SystemCapability.Multimedia.Media.AudioPlayer +**System capability**: SystemCapability.Multimedia.Media.AVPlayer **Parameters** -| Name| Type | Mandatory| Description | -| ------ | ------ | ---- | ----------------------------------------------------------- | -| timeMs | number | Yes | Position to seek to, in ms. The value range is [0, duration].| +| Name| Type | Mandatory| Description | +| ------ | ------ | ---- | ----------------------------------------- | +| type | string | Yes | Event type, which is **'error'** in this case.| **Example** ```js -audioPlayer.on('timeUpdate', (seekDoneTime) => { // Set the 'timeUpdate' event callback. - if (seekDoneTime == null) { - console.info('audio seek fail'); - return; - } - console.log('audio seek success. seekDoneTime: ' + seekDoneTime); -}); -audioPlayer.seek(30000); // Seek to 30000 ms. +avPlayer.off('error') ``` -### setVolume +### prepare9+ -setVolume(vol: number): void +prepare(callback: AsyncCallback\): void -Sets the volume. +Prepares for audio and video playback. This API uses an asynchronous callback to return the result. It can be called only when the AVPlayer is in the initialized state. -**System capability**: SystemCapability.Multimedia.Media.AudioPlayer +**System capability**: SystemCapability.Multimedia.Media.AVPlayer **Parameters** -| Name| Type | Mandatory| Description | -| ------ | ------ | ---- | ------------------------------------------------------------ | -| vol | number | Yes | Relative volume. The value ranges from 0.00 to 1.00. The value **1** indicates the maximum volume (100%).| +| Name | Type | Mandatory| Description | +| -------- | -------- | ---- | -------------------- | +| callback | function | Yes | Callback used to return the result.| + +**Error codes** + +For details about the error codes, see [Media Error Codes](../errorcodes/errorcode-media.md). + +| ID| Error Message | +| -------- | ------------------------------------------ | +| 5400102 | Operation not allowed. Return by callback. | +| 5400106 | Unsupport format. Return by callback. | **Example** ```js -audioPlayer.on('volumeChange', () => { // Set the 'volumeChange' event callback. - console.log('audio volumeChange success'); -}); -audioPlayer.setVolume(1); // Set the volume to 100%. +avPlayer.prepare((err) => { + if (err == null) { + console.info('prepare success'); + } else { + console.error('prepare filed,error message is :' + err.message) + } +}) ``` -### release +### prepare9+ -release(): void +prepare(): Promise\ -Releases the audio playback resource. +Prepares for audio and video playback. This API uses a promise to return the result. It can be called only when the AVPlayer is in the initialized state. -**System capability**: SystemCapability.Multimedia.Media.AudioPlayer +**System capability**: SystemCapability.Multimedia.Media.AVPlayer + +**Return value** + +| Type | Description | +| -------------- | ------------------------- | +| Promise\ | Promise used to return the result.| + +**Error codes** + +For details about the error codes, see [Media Error Codes](../errorcodes/errorcode-media.md). + +| ID| Error Message | +| -------- | ----------------------------------------- | +| 5400102 | Operation not allowed. Return by promise. | +| 5400106 | Unsupport format. Return by promise. | **Example** ```js -audioPlayer.release(); -audioPlayer = undefined; +avPlayer.prepare().then(() => { + console.info('prepare success'); +}, (err) => { + console.error('prepare filed,error message is :' + err.message) +}) ``` -### getTrackDescription8+ +### play9+ -getTrackDescription(callback: AsyncCallback>): void +play(callback: AsyncCallback\): void -Obtains the audio track information. This API uses an asynchronous callback to return the result. It can be called only after the [dataLoad](#audioplayer_on) event is triggered. +Starts to play an audio and video asset. This API uses an asynchronous callback to return the result. It can be called only when the AVPlayer is in the prepared, paused, or completed state. -**System capability**: SystemCapability.Multimedia.Media.AudioPlayer +**System capability**: SystemCapability.Multimedia.Media.AVPlayer **Parameters** -| Name | Type | Mandatory| Description | -| -------- | ------------------------------------------------------------ | ---- | ------------------------------------------ | -| callback | AsyncCallback> | Yes | Callback used to return a **MediaDescription** array, which records the audio track information.| +| Name | Type | Mandatory| Description | +| -------- | -------- | ---- | -------------------- | +| callback | function | Yes | Callback used to return the result.| + +**Error codes** + +For details about the error codes, see [Media Error Codes](../errorcodes/errorcode-media.md). + +| ID| Error Message | +| -------- | ------------------------------------------ | +| 5400102 | Operation not allowed. Return by callback. | **Example** ```js -function printfDescription(obj) { - for (let item in obj) { - let property = obj[item]; - console.info('audio key is ' + item); - console.info('audio value is ' + property); - } -} - -audioPlayer.getTrackDescription((error, arrList) => { - if (arrList != null) { - for (let i = 0; i < arrList.length; i++) { - printfDescription(arrList[i]); - } +avPlayer.play((err) => { + if (err == null) { + console.info('play success'); } else { - console.log(`audio getTrackDescription fail, error:${error}`); + console.error('play filed,error message is :' + err.message) } -}); +}) ``` -### getTrackDescription8+ +### play9+ -getTrackDescription(): Promise> +play(): Promise\ -Obtains the audio track information. This API uses a promise to return the result. It can be called only after the [dataLoad](#audioplayer_on) event is triggered. +Starts to play an audio and video asset. This API uses a promise to return the result. It can be called only when the AVPlayer is in the prepared, paused, or completed state. -**System capability**: SystemCapability.Multimedia.Media.AudioPlayer +**System capability**: SystemCapability.Multimedia.Media.AVPlayer **Return value** -| Type | Description | -| ------------------------------------------------------ | ----------------------------------------------- | -| Promise> | Promise used to return a **MediaDescription** array, which records the audio track information.| +| Type | Description | +| -------------- | ------------------------- | +| Promise\ | Promise used to return the result.| + +**Error codes** + +For details about the error codes, see [Media Error Codes](../errorcodes/errorcode-media.md). + +| ID| Error Message | +| -------- | ----------------------------------------- | +| 5400102 | Operation not allowed. Return by promise. | **Example** ```js -function printfDescription(obj) { - for (let item in obj) { - let property = obj[item]; - console.info('audio key is ' + item); - console.info('audio value is ' + property); - } -} -let arrayDescription = null -audioPlayer.getTrackDescription().then((arrList) => { - if (arrList != null) { - arrayDescription = arrList; - } else { - console.log('audio getTrackDescription fail'); - } -}).catch((error) => { - console.info(`audio catchCallback, error:${error}`); -}); - -for (let i = 0; i < arrayDescription.length; i++) { - printfDescription(arrayDescription[i]); -} +avPlayer.play().then(() => { + console.info('play success'); +}, (err) => { + console.error('play filed,error message is :' + err.message) +}) ``` -### on('bufferingUpdate')8+ +### pause9+ -on(type: 'bufferingUpdate', callback: (infoType: [BufferingInfoType](#bufferinginfotype8), value: number) => void): void +pause(callback: AsyncCallback\): void -Subscribes to the audio buffering update event. This API works only under online playback. +Pauses audio and video playback. This API uses an asynchronous callback to return the result. It can be called only when the AVPlayer is in the playing state. -**System capability**: SystemCapability.Multimedia.Media.AudioPlayer +**System capability**: SystemCapability.Multimedia.Media.AVPlayer **Parameters** -| Name | Type | Mandatory| Description | -| -------- | -------- | ---- | ------------------------------------------------------------ | -| type | string | Yes | Event type, which is **'bufferingUpdate'** in this case. | -| callback | function | Yes | Callback invoked when the event is triggered.
When [BufferingInfoType](#bufferinginfotype8) is set to **BUFFERING_PERCENT** or **CACHED_DURATION**, **value** is valid. Otherwise, **value** is fixed at **0**.| +| Name | Type | Mandatory| Description | +| -------- | -------- | ---- | -------------------- | +| callback | function | Yes | Callback used to return the result.| + +**Error codes** + +For details about the error codes, see [Media Error Codes](../errorcodes/errorcode-media.md). + +| ID| Error Message | +| -------- | ------------------------------------------ | +| 5400102 | Operation not allowed. Return by callback. | **Example** ```js -audioPlayer.on('bufferingUpdate', (infoType, value) => { - console.log('audio bufferingInfo type: ' + infoType); - console.log('audio bufferingInfo value: ' + value); -}); +avPlayer.pause((err) => { + if (err == null) { + console.info('pause success'); + } else { + console.error('pause filed,error message is :' + err.message) + } +}) ``` - ### on('play' | 'pause' | 'stop' | 'reset' | 'dataLoad' | 'finish' | 'volumeChange') +### pause9+ -on(type: 'play' | 'pause' | 'stop' | 'reset' | 'dataLoad' | 'finish' | 'volumeChange', callback: () => void): void +pause(): Promise\ -Subscribes to the audio playback events. +Pauses audio and video playback. This API uses a promise to return the result. It can be called only when the AVPlayer is in the playing state. -**System capability**: SystemCapability.Multimedia.Media.AudioPlayer +**System capability**: SystemCapability.Multimedia.Media.AVPlayer -**Parameters** +**Return value** -| Name | Type | Mandatory| Description | -| -------- | ---------- | ---- | ------------------------------------------------------------ | -| type | string | Yes | Event type. The following events are supported:
- 'play': triggered when the [play()](#audioplayer_play) API is called and audio playback starts.
- 'pause': triggered when the [pause()](#audioplayer_pause) API is called and audio playback is paused.
- 'stop': triggered when the [stop()](#audioplayer_stop) API is called and audio playback stops.
- 'reset': triggered when the [reset()](#audioplayer_reset) API is called and audio playback is reset.
- 'dataLoad': triggered when the audio data is loaded, that is, when the **src** attribute is configured.
- 'finish': triggered when the audio playback is finished.
- 'volumeChange': triggered when the [setVolume()](#audioplayer_setvolume) API is called and the playback volume is changed.| -| callback | () => void | Yes | Callback invoked when the event is triggered. | +| Type | Description | +| -------------- | ------------------------- | +| Promise\ | Promise used to return the result.| -**Example** +**Error codes** -```js -import fileio from '@ohos.fileio' +For details about the error codes, see [Media Error Codes](../errorcodes/errorcode-media.md). -let audioPlayer = media.createAudioPlayer(); // Create an AudioPlayer instance. -audioPlayer.on('dataLoad', () => { // Set the 'dataLoad' event callback, which is triggered when the src attribute is set successfully. - console.info('audio set source success'); - audioPlayer.play(); // Start the playback and trigger the 'play' event callback. -}); -audioPlayer.on('play', () => { // Set the 'play' event callback. - console.info('audio play success'); - audioPlayer.seek(30000); // Call the seek() API and trigger the 'timeUpdate' event callback. -}); -audioPlayer.on('pause', () => { // Set the 'pause' event callback. - console.info('audio pause success'); - audioPlayer.stop(); // Stop the playback and trigger the 'stop' event callback. -}); -audioPlayer.on('reset', () => { // Set the 'reset' event callback. - console.info('audio reset success'); - audioPlayer.release(); // Release the AudioPlayer instance. - audioPlayer = undefined; -}); -audioPlayer.on('timeUpdate', (seekDoneTime) => { // Set the 'timeUpdate' event callback. - if (seekDoneTime == null) { - console.info('audio seek fail'); - return; - } - console.info('audio seek success, and seek time is ' + seekDoneTime); - audioPlayer.setVolume(0.5); // Set the volume to 50% and trigger the 'volumeChange' event callback. -}); -audioPlayer.on('volumeChange', () => { // Set the 'volumeChange' event callback. - console.info('audio volumeChange success'); - audioPlayer.pause(); // Pause the playback and trigger the 'pause' event callback. -}); -audioPlayer.on('finish', () => { // Set the 'finish' event callback. - console.info('audio play finish'); - audioPlayer.stop(); // Stop the playback and trigger the 'stop' event callback. -}); -audioPlayer.on('error', (error) => { // Set the 'error' event callback. - console.info(`audio error called, error: ${error}`); -}); +| ID| Error Message | +| -------- | ----------------------------------------- | +| 5400102 | Operation not allowed. Return by promise. | -// Set the FD (local playback) of the video file selected by the user. -let fdPath = 'fd://'; -// The stream in the path can be pushed to the device by running the "hdc file send D:\xxx\01.mp3 /data/accounts/account_0/appdata" command. -let path = '/data/accounts/account_0/appdata/ohos.xxx.xxx.xxx/01.mp3'; -fileio.open(path).then((fdValue) => { - fdPath = fdPath + '' + fdValue; - console.info('open fd success fd is' + fdPath); +**Example** + +```js +avPlayer.pause().then(() => { + console.info('pause success'); }, (err) => { - console.info('open fd failed err is' + err); -}).catch((err) => { - console.info('open fd failed err is' + err); -}); -audioPlayer.src = fdPath; // Set the src attribute and trigger the 'dataLoad' event callback. + console.error('pause filed,error message is :' + err.message) +}) ``` -### on('timeUpdate') +### stop9+ -on(type: 'timeUpdate', callback: Callback\): void +stop(callback: AsyncCallback\): void -Subscribes to the **'timeUpdate'** event. This event is reported every second when the audio playback is in progress. +Stops audio and video playback. This API uses an asynchronous callback to return the result. It can be called only when the AVPlayer is in the prepared, playing, paused, or completed state. -**System capability**: SystemCapability.Multimedia.Media.AudioPlayer +**System capability**: SystemCapability.Multimedia.Media.AVPlayer **Parameters** -| Name | Type | Mandatory| Description | -| -------- | ----------------- | ---- | ------------------------------------------------------------ | -| type | string | Yes | Event type, which is **'timeUpdate'** in this case.
The **'timeUpdate'** event is triggered when the audio playback starts after an audio playback timestamp update.| -| callback | Callback\ | Yes | Callback invoked when the event is triggered. The input parameter is the updated timestamp. | +| Name | Type | Mandatory| Description | +| -------- | -------- | ---- | -------------------- | +| callback | function | Yes | Callback used to return the result.| + +**Error codes** + +For details about the error codes, see [Media Error Codes](../errorcodes/errorcode-media.md). + +| ID| Error Message | +| -------- | ------------------------------------------ | +| 5400102 | Operation not allowed. Return by callback. | **Example** ```js -audioPlayer.on('timeUpdate', (newTime) => { // Set the 'timeUpdate' event callback. - if (newTime == null) { - console.info('audio timeUpadate fail'); - return; +avPlayer.stop((err) => { + if (err == null) { + console.info('stop success'); + } else { + console.error('stop filed,error message is :' + err.message) } - console.log('audio timeUpadate success. seekDoneTime: ' + newTime); -}); -audioPlayer.play(); // The 'timeUpdate' event is triggered when the playback starts. +}) ``` -### on('error') +### stop9+ -on(type: 'error', callback: ErrorCallback): void +stop(): Promise\ -Subscribes to audio playback error events. After an error event is reported, you must handle the event and exit the playback. +Stops audio and video playback. This API uses a promise to return the result. It can be called only when the AVPlayer is in the prepared, playing, paused, or completed state. -**System capability**: SystemCapability.Multimedia.Media.AudioPlayer +**System capability**: SystemCapability.Multimedia.Media.AVPlayer -**Parameters** +**Return value** -| Name | Type | Mandatory| Description | -| -------- | ------------- | ---- | ------------------------------------------------------------ | -| type | string | Yes | Event type, which is **'error'** in this case.
The **'error'** event is triggered when an error occurs during audio playback.| -| callback | ErrorCallback | Yes | Callback invoked when the event is triggered. | +| Type | Description | +| -------------- | ------------------------- | +| Promise\ | Promise used to return the result.| + +**Error codes** + +For details about the error codes, see [Media Error Codes](../errorcodes/errorcode-media.md). + +| ID| Error Message | +| -------- | ----------------------------------------- | +| 5400102 | Operation not allowed. Return by promise. | **Example** ```js -audioPlayer.on('error', (error) => { // Set the 'error' event callback. - console.info(`audio error called, error: ${error}`); -}); -audioPlayer.setVolume(3); // Set volume to an invalid value to trigger the 'error' event. +avPlayer.stop().then(() => { + console.info('stop success'); +}, (err) => { + console.error('stop filed,error message is :' + err.message) +}) ``` -## AudioState - -Enumerates the audio playback states. You can obtain the state through the **state** attribute. +### reset9+ -**System capability**: SystemCapability.Multimedia.Media.AudioPlayer +reset(callback: AsyncCallback\): void -| Name | Type | Description | -| ------- | ------ | ---------------------------------------------- | -| idle | string | No audio playback is in progress. The audio player is in this state after the **'dataload'** or **'reset'** event is triggered.| -| playing | string | Audio playback is in progress. The audio player is in this state after the **'play'** event is triggered. | -| paused | string | Audio playback is paused. The audio player is in this state after the **'pause'** event is triggered. | -| stopped | string | Audio playback is stopped. The audio player is in this state after the **'stop'** event is triggered. | -| error | string | Audio playback is in the error state. | +Resets audio and video playback. This API uses an asynchronous callback to return the result. It can be called only when the AVPlayer is in the initialized, prepared, playing, paused, completed, stopped, or error state. -## AVFileDescriptor9+ +**System capability**: SystemCapability.Multimedia.Media.AVPlayer -Describes audio and video file resources. It is used to specify a particular resource for playback based on its offset and length within a file. +**Parameters** -**System capability**: SystemCapability.Multimedia.Media.Core +| Name | Type | Mandatory| Description | +| -------- | -------- | ---- | -------------------- | +| callback | function | Yes | Callback used to return the result.| -| Name| Type | Mandatory| Description | -| ------ | ------ | ---- | ------------------------------------------------------------ | -| fd | number | Yes | Resource handle, which is obtained by calling **resourceManager.getRawFileDescriptor**. | -| offset | number | Yes | Resource offset, which needs to be entered based on the preset resource information. An invalid value causes a failure to parse audio and video resources.| -| length | number | Yes | Resource length, which needs to be entered based on the preset resource information. An invalid value causes a failure to parse audio and video resources.| +**Error codes** -## VideoPlayer8+ +For details about the error codes, see [Media Error Codes](../errorcodes/errorcode-media.md). -Provides APIs to manage and play video. Before calling an API of **VideoPlayer**, you must use [createVideoPlayer()](#mediacreatevideoplayer8) to create a [VideoPlayer](#videoplayer8) instance. +| ID| Error Message | +| -------- | ------------------------------------------ | +| 5400102 | Operation not allowed. Return by callback. | -For details about the video playback demo, see [Video Playback Development](../../media/video-playback.md). +**Example** -### Attributes +```js +avPlayer.reset((err) => { + if (err == null) { + console.info('reset success'); + } else { + console.error('reset filed,error message is :' + err.message) + } +}) +``` -**System capability**: SystemCapability.Multimedia.Media.VideoPlayer +### reset9+ -| Name | Type | Readable| Writable| Description | -| ------------------------ | ---------------------------------- | ---- | ---- | ------------------------------------------------------------ | -| url8+ | string | Yes | Yes | Video URL. The mainstream video formats (MPEG-4, MPEG-TS, WebM, and MKV) are supported.
**Example of supported URIs**:
1. FD: fd://xx
![](figures/en-us_image_url.png)
2. HTTP: http://xx
3. HTTPS: https://xx
4. HLS: http://xx or https://xx
| -| fdSrc9+ | [AVFileDescriptor](#avfiledescriptor9) | Yes| Yes| Description of a video file. This attribute is required when video resources of an application are continuously stored in a file.
**Example:**
Assume that a music file that stores continuous music resources consists of the following:
Video 1 (address offset: 0, byte length: 100)
Video 2 (address offset: 101; byte length: 50)
Video 3 (address offset: 151, byte length: 150)
1. To play video 1: AVFileDescriptor {fd = resource handle; offset = 0; length = 100; }
2. To play video 2: AVFileDescriptor {fd = resource handle; offset = 101; length = 50; }
3. To play video 3: AVFileDescriptor {fd = resource handle; offset = 151; length = 150; }
To play an independent video file, use **src=fd://xx**.
| -| loop8+ | boolean | Yes | Yes | Whether to loop video playback. The value **true** means to loop video playback, and **false** means the opposite. | -| videoScaleType9+ | [VideoScaleType](#videoscaletype9) | Yes | Yes | Video scale type. | -| audioInterruptMode9+ | [audio.InterruptMode](js-apis-audio.md#interruptmode9) | Yes | Yes | Audio interruption mode. | -| currentTime8+ | number | Yes | No | Current video playback position, in ms. | -| duration8+ | number | Yes | No | Video duration, in ms. The value **-1** indicates the live mode. | -| state8+ | [VideoPlayState](#videoplaystate8) | Yes | No | Video playback state. | -| width8+ | number | Yes | No | Video width, in pixels. | -| height8+ | number | Yes | No | Video height, in pixels. | +reset(): Promise\ -### setDisplaySurface8+ +Resets audio and video playback. This API uses a promise to return the result. It can be called only when the AVPlayer is in the initialized, prepared, playing, paused, completed, stopped, or error state. -setDisplaySurface(surfaceId: string, callback: AsyncCallback\): void +**System capability**: SystemCapability.Multimedia.Media.AVPlayer -Sets **SurfaceId**. This API uses an asynchronous callback to return the result. +**Return value** -*Note: **SetDisplaySurface** must be called between the URL setting and the calling of **prepare**. A surface must be set for video streams without audio. Otherwise, the calling of **prepare** fails. +| Type | Description | +| -------------- | ------------------------- | +| Promise\ | Promise used to return the result.| -**System capability**: SystemCapability.Multimedia.Media.VideoPlayer +**Error codes** -**Parameters** +For details about the error codes, see [Media Error Codes](../errorcodes/errorcode-media.md). -| Name | Type | Mandatory| Description | -| --------- | -------------------- | ---- | ------------------------- | -| surfaceId | string | Yes | Surface ID to set. | -| callback | AsyncCallback\ | Yes | Callback used to return the result.| +| ID| Error Message | +| -------- | ----------------------------------------- | +| 5400102 | Operation not allowed. Return by promise. | **Example** ```js -let surfaceId = null; -videoPlayer.setDisplaySurface(surfaceId, (err) => { - if (err == null) { - console.info('setDisplaySurface success!'); - } else { - console.info('setDisplaySurface fail!'); - } -}); +avPlayer.reset().then(() => { + console.info('reset success'); +}, (err) => { + console.error('reset filed,error message is :' + err.message) +}) ``` -### setDisplaySurface8+ - -setDisplaySurface(surfaceId: string): Promise\ +### release9+ -Sets **SurfaceId**. This API uses a promise to return the result. +release(callback: AsyncCallback\): void -*Note: **SetDisplaySurface** must be called between the URL setting and the calling of **prepare**. A surface must be set for video streams without audio. Otherwise, the calling of **prepare** fails. +Releases the playback resources. This API uses an asynchronous callback to return the result. It can be called when the AVPlayer is in any state except released. -**System capability**: SystemCapability.Multimedia.Media.VideoPlayer +**System capability**: SystemCapability.Multimedia.Media.AVPlayer **Parameters** -| Name | Type | Mandatory| Description | -| --------- | ------ | ---- | --------- | -| surfaceId | string | Yes | Surface ID to set.| - -**Return value** - -| Type | Description | -| -------------- | ------------------------------ | -| Promise\ | Promise used to return the result.| - -**Example** - -```js -let surfaceId = null; -videoPlayer.setDisplaySurface(surfaceId).then(() => { - console.info('setDisplaySurface success'); -}).catch((error) => { - console.info(`video catchCallback, error:${error}`); -}); -``` - -### prepare8+ - -prepare(callback: AsyncCallback\): void +| Name | Type | Mandatory| Description | +| -------- | -------- | ---- | -------------------- | +| callback | function | Yes | Callback used to return the result.| -Prepares for video playback. This API uses an asynchronous callback to return the result. - -**System capability**: SystemCapability.Multimedia.Media.VideoPlayer +**Error codes** -**Parameters** +For details about the error codes, see [Media Error Codes](../errorcodes/errorcode-media.md). -| Name | Type | Mandatory| Description | -| -------- | -------------------- | ---- | ------------------------ | -| callback | AsyncCallback\ | Yes | Callback used to return the result.| +| ID| Error Message | +| -------- | ------------------------------------------ | +| 5400102 | Operation not allowed. Return by callback. | **Example** ```js -videoPlayer.prepare((err) => { +avPlayer.release((err) => { if (err == null) { - console.info('prepare success!'); + console.info('reset success'); } else { - console.info('prepare fail!'); + console.error('release filed,error message is :' + err.message) } -}); +}) ``` -### prepare8+ +### release9+ -prepare(): Promise\ +release(): Promise\ -Prepares for video playback. This API uses a promise to return the result. +Releases the playback resources. This API uses a promise to return the result. It can be called when the AVPlayer is in any state except released. -**System capability**: SystemCapability.Multimedia.Media.VideoPlayer +**System capability**: SystemCapability.Multimedia.Media.AVPlayer **Return value** -| Type | Description | -| -------------- | ----------------------------- | +| Type | Description | +| -------------- | ------------------------- | | Promise\ | Promise used to return the result.| +**Error codes** + +For details about the error codes, see [Media Error Codes](../errorcodes/errorcode-media.md). + +| ID| Error Message | +| -------- | ----------------------------------------- | +| 5400102 | Operation not allowed. Return by promise. | + **Example** ```js -videoPlayer.prepare().then(() => { - console.info('prepare success'); -}).catch((error) => { - console.info(`video catchCallback, error:${error}`); -}); +avPlayer.release().then(() => { + console.info('release success'); +}, (err) => { + console.error('release filed,error message is :' + err.message) +}) ``` -### play8+ +### getTrackDescription9+ -play(callback: AsyncCallback\): void; +getTrackDescription(callback: AsyncCallback\>): void -Starts to play video resources. This API uses an asynchronous callback to return the result. +Obtains the audio and video track information. This API uses an asynchronous callback to return the result. It can be called only when the AVPlayer is in the prepared, playing, or paused state. -**System capability**: SystemCapability.Multimedia.Media.VideoPlayer +**System capability**: SystemCapability.Multimedia.Media.AVPlayer **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 a **MediaDescription** array, which records the audio and video track information.| + +**Error codes** + +For details about the error codes, see [Media Error Codes](../errorcodes/errorcode-media.md). + +| ID| Error Message | +| -------- | ------------------------------------------ | +| 5400102 | Operation not allowed. Return by callback. | **Example** ```js -videoPlayer.play((err) => { - if (err == null) { - console.info('play success!'); +avPlayer.getTrackDescription((error, arrList) => { + if ((arrList) != null) { + for (let i = 0; i < arrList.length; i++) { + printfDescription(arrList[i]); + } } else { - console.info('play fail!'); + console.log(`video getTrackDescription fail, error:${error}`); } }); ``` -### play8+ +### getTrackDescription9+ -play(): Promise\; +getTrackDescription(): Promise\> -Starts to play video resources. This API uses a promise to return the result. +Obtains the audio and video track information. This API uses a promise to return the result. It can be called only when the AVPlayer is in the prepared, playing, or paused state. -**System capability**: SystemCapability.Multimedia.Media.VideoPlayer +**System capability**: SystemCapability.Multimedia.Media.AVPlayer **Return value** -| Type | Description | -| -------------- | ----------------------------- | -| Promise\ | Promise used to return the result.| +| Type | Description | +| ------------------------------------------------------ | ------------------------------------------------- | +| Promise> | Promise used to return a **MediaDescription** array, which records the audio and video track information.| + +**Error codes** + +For details about the error codes, see [Media Error Codes](../errorcodes/errorcode-media.md). + +| ID| Error Message | +| -------- | ----------------------------------------- | +| 5400102 | Operation not allowed. Return by promise. | **Example** ```js -videoPlayer.play().then(() => { - console.info('play success'); +let arrayDescription; +avPlayer.getTrackDescription().then((arrList) => { + if (arrList != null) { + arrayDescription = arrList; + } else { + console.log('video getTrackDescription fail'); + } }).catch((error) => { - console.info(`video catchCallback, error:${error}`); + console.info(`video catchCallback, error:${error}`); }); +for (let i = 0; i < arrayDescription.length; i++) { + printfDescription(arrayDescription[i]); +} ``` -### pause8+ +### seek9+ -pause(callback: AsyncCallback\): void +seek(timeMs: number, mode?:SeekMode): void -Pauses video playback. This API uses an asynchronous callback to return the result. +Seeks to the specified playback position. This API can be called only when the AVPlayer is in the prepared, playing, paused, or completed state. You can check whether the seek operation takes effect by subscribing to the [seekDone](#seekDone_on) event. -**System capability**: SystemCapability.Multimedia.Media.VideoPlayer +**System capability**: SystemCapability.Multimedia.Media.AVPlayer **Parameters** -| Name | Type | Mandatory| Description | -| -------- | -------------------- | ---- | ------------------------ | -| callback | AsyncCallback\ | Yes | Callback used to return the result.| +| Name| Type | Mandatory| Description | +| ------ | ---------------------- | ---- | ------------------------------------------------------------ | +| timeMs | number | Yes | Position to seek to, in ms. The value range is [0, [duration](#avplayer_duration)].| +| mode | [SeekMode](#seekmode8) | No | Seek mode based on the video I frame. **Set this parameter only for video playback.** | **Example** ```js -videoPlayer.pause((err) => { - if (err == null) { - console.info('pause success!'); - } else { - console.info('pause fail!'); - } -}); +let seekTime = 1000 +avPlayer.seek(seekTime, media.SeekMode.SEEK_PREV_SYNC) ``` -### pause8+ +### on('seekDone')9+ -pause(): Promise\ +on(type: 'seekDone', callback: Callback\): void -Pauses video playback. This API uses a promise to return the result. +Subscribes to the event to check whether the seek operation takes effect. -**System capability**: SystemCapability.Multimedia.Media.VideoPlayer +**System capability**: SystemCapability.Multimedia.Media.AVPlayer -**Return value** +**Parameters** -| Type | Description | -| -------------- | ----------------------------- | -| Promise\ | Promise used to return the result.| +| Name | Type | Mandatory| Description | +| -------- | -------- | ---- | ------------------------------------------------------------ | +| type | string | Yes | Event type, which is **'seekDone'** in this case. This event is triggered each time **seek()** is called.| +| callback | Callback\ | Yes | Callback invoked when the event is triggered. It reports the time position requested by the user.
For video playback, [SeekMode](#seekmode8) may cause the actual position to be different from that requested by the user. The exact position can be obtained from the **currentTime** attribute. The time in this callback only means that the requested seek operation is complete.| **Example** ```js -videoPlayer.pause().then(() => { - console.info('pause success'); -}).catch((error) => { - console.info(`video catchCallback, error:${error}`); -}); +avPlayer.on('seekDone', (seekDoneTime:number) => { + console.info('seekDone success,and seek time is:' + seekDoneTime) +}) ``` -### stop8+ +### off('seekDone')9+ -stop(callback: AsyncCallback\): void +off(type: 'seekDone'): void -Stops video playback. This API uses an asynchronous callback to return the result. +Unsubscribes from the event that checks whether the seek operation takes effect. -**System capability**: SystemCapability.Multimedia.Media.VideoPlayer +**System capability**: SystemCapability.Multimedia.Media.AVPlayer **Parameters** -| Name | Type | Mandatory| Description | -| -------- | -------------------- | ---- | ------------------------ | -| callback | AsyncCallback\ | Yes | Callback used to return the result.| +| Name| Type | Mandatory| Description | +| ------ | ------ | ---- | ---------------------------------------------------- | +| type | string | Yes | Event type, which is **'seekDone'** in this case.| **Example** ```js -videoPlayer.stop((err) => { - if (err == null) { - console.info('stop success!'); - } else { - console.info('stop fail!'); - } -}); +avPlayer.off('seekDone') ``` -### stop8+ +### setSpeed9+ -stop(): Promise\ +setSpeed(speed: PlaybackSpeed): void -Stops video playback. This API uses a promise to return the result. +Sets the playback speed. This API can be called only when the AVPlayer is in the prepared, playing, paused, or completed state. You can check whether the setting takes effect by subscribing to the [speedDone](#speedDone_on) event. -**System capability**: SystemCapability.Multimedia.Media.VideoPlayer +**System capability**: SystemCapability.Multimedia.Media.AVPlayer -**Return value** +**Parameters** -| Type | Description | -| -------------- | ----------------------------- | -| Promise\ | Promise used to return the result.| +| Name| Type | Mandatory| Description | +| ------ | -------------------------------- | ---- | ------------------ | +| speed | [PlaybackSpeed](#playbackspeed8) | Yes | Playback speed to set.| **Example** ```js -videoPlayer.stop().then(() => { - console.info('stop success'); -}).catch((error) => { - console.info(`video catchCallback, error:${error}`); -}); +avPlayer.setSpeed(media.AVPlayerSpeed.SPEED_FORWARD_2_00_X) ``` -### reset8+ +### on('speedDone')9+ -reset(callback: AsyncCallback\): void +on(type: 'speedDone', callback: Callback\): void -Resets the video asset to be played. This API uses an asynchronous callback to return the result. +Subscribes to the event to check whether the playback speed is successfully set. -**System capability**: SystemCapability.Multimedia.Media.VideoPlayer +**System capability**: SystemCapability.Multimedia.Media.AVPlayer **Parameters** -| Name | Type | Mandatory| Description | -| -------- | -------------------- | ---- | ------------------------ | -| callback | AsyncCallback\ | Yes | Callback used to return the result.| +| Name | Type | Mandatory| Description | +| -------- | -------- | ---- | ------------------------------------------------------------ | +| type | string | Yes | Event type, which is **'speedDone'** in this case. This event is triggered each time **setSpeed()** is called.| +| callback | Callback\ | Yes | Callback invoked when the event is triggered. It reports the speed set. For details, see [PlaybackSpeed](#playbackspeed8).| **Example** ```js -videoPlayer.reset((err) => { - if (err == null) { - console.info('reset success!'); - } else { - console.info('reset fail!'); - } -}); +avPlayer.on('speedDone', (speed:number) => { + console.info('speedDone success,and speed value is:' + speed) +}) ``` -### reset8+ +### off('speedDone')9+ -reset(): Promise\ +off(type: 'speedDone'): void -Resets the video asset to be played. This API uses a promise to return the result. +Unsubscribes from the event that checks whether the playback speed is successfully set. -**System capability**: SystemCapability.Multimedia.Media.VideoPlayer +**System capability**: SystemCapability.Multimedia.Media.AVPlayer -**Return value** +**Parameters** -| Type | Description | -| -------------- | ----------------------------- | -| Promise\ | Promise used to return the result.| +| Name| Type | Mandatory| Description | +| ------ | ------ | ---- | --------------------------------------------------------- | +| type | string | Yes | Event type, which is **'speedDone'** in this case.| **Example** ```js -videoPlayer.reset().then(() => { - console.info('reset success'); -}).catch((error) => { - console.info(`video catchCallback, error:${error}`); -}); +avPlayer.off('speedDone') ``` -### seek8+ +### setBitrate9+ -seek(timeMs: number, callback: AsyncCallback\): void +setBitrate(bitrate: number): void -Seeks to the specified playback position. The next key frame at the specified position is played. This API uses an asynchronous callback to return the result. +Sets the bit rate, which is valid only for HTTP Live Streaming (HLS) streams. This API can be called only when the AVPlayer is in the prepared, playing, paused, or completed state. You can check whether the setting takes effect by subscribing to the [bitrateDone](#bitrateDone_on) event. -**System capability**: SystemCapability.Multimedia.Media.VideoPlayer +**System capability**: SystemCapability.Multimedia.Media.AVPlayer **Parameters** -| Name | Type | Mandatory| Description | -| -------- | ---------------------- | ---- | ------------------------------------------------------------ | -| timeMs | number | Yes | Position to seek to, in ms. The value range is [0, duration].| -| callback | AsyncCallback\ | Yes | Callback used to return the result. | +| Name | Type | Mandatory| Description | +| ------- | ------ | ---- | ------------------------------------------------------------ | +| bitrate | number | Yes | Bit rate to set. You can obtain the available bit rates of the current HLS stream by subscribing to the [availableBitrates](#availableBitrates_on) event. If the bit rate to set is not in the list of the available bit rates, the AVPlayer selects from the list the minimum bit rate that is closed to the bit rate to set.| **Example** ```js -let seekTime = 5000; -videoPlayer.seek(seekTime, (err, result) => { - if (err == null) { - console.info('seek success!'); - } else { - console.info('seek fail!'); - } -}); +let bitrate = 96000 +avPlayer.setBitrate(bitrate) ``` -### seek8+ +### on('bitrateDone')9+ -seek(timeMs: number, mode:SeekMode, callback: AsyncCallback\): void +on(type: 'bitrateDone', callback: Callback\): void -Seeks to the specified playback position. This API uses an asynchronous callback to return the result. +Subscribes to the event to check whether the bit rate is successfully set. -**System capability**: SystemCapability.Multimedia.Media.VideoPlayer +**System capability**: SystemCapability.Multimedia.Media.AVPlayer **Parameters** -| Name | Type | Mandatory| Description | -| -------- | ---------------------- | ---- | ------------------------------------------------------------ | -| timeMs | number | Yes | Position to seek to, in ms. The value range is [0, duration].| -| mode | [SeekMode](#seekmode8) | Yes | Seek mode. | -| callback | AsyncCallback\ | Yes | Callback used to return the result. | +| Name | Type | Mandatory| Description | +| -------- | -------- | ---- | ------------------------------------------------------------ | +| type | string | Yes | Event type, which is **'bitrateDone'** in this case. This event is triggered each time **setBitrate()** is called.| +| callback | function | Yes | Callback invoked when the event is triggered. It reports the effective bit rate. | **Example** ```js -import media from '@ohos.multimedia.media' -let seekTime = 5000; -videoPlayer.seek(seekTime, media.SeekMode.SEEK_NEXT_SYNC, (err, result) => { - if (err == null) { - console.info('seek success!'); - } else { - console.info('seek fail!'); - } -}); +avPlayer.on('bitrateDone', (bitrate:number) => { + console.info('bitrateDone success,and bitrate value is:' + bitrate) +}) ``` -### seek8+ +### off('bitrateDone')9+ -seek(timeMs: number, mode?:SeekMode): Promise\ +off(type: 'bitrateDone'): void -Seeks to the specified playback position. If **mode** is not specified, the next key frame at the specified position is played. This API uses a promise to return the result. +Unsubscribes from the event that checks whether the bit rate is successfully set. -**System capability**: SystemCapability.Multimedia.Media.VideoPlayer +**System capability**: SystemCapability.Multimedia.Media.AVPlayer **Parameters** -| Name| Type | Mandatory| Description | -| ------ | ---------------------- | ---- | ------------------------------------------------------------ | -| timeMs | number | Yes | Position to seek to, in ms. The value range is [0, duration].| -| mode | [SeekMode](#seekmode8) | No | Seek mode. | +| Name| Type | Mandatory| Description | +| ------ | ------ | ---- | ------------------------------------------------------------ | +| type | string | Yes | Event type, which is **'bitrateDone'** in this case| -**Return value** +**Example** -| Type | Description | -| -------------- | ------------------------------------------- | -| Promise\| Promise used to return the playback position, in ms.| +```js +avPlayer.off('bitrateDone') +``` + +### on('availableBitrates')9+ + +on(type: 'availableBitrates', callback: (bitrates: Array\) => void): void + +Subscribes to available bit rates of HLS streams. This event is reported only after the AVPlayer switches to the prepared state. + +**System capability**: SystemCapability.Multimedia.Media.AVPlayer + +**Parameters** + +| Name | Type | Mandatory| Description | +| -------- | -------- | ---- | ------------------------------------------------------------ | +| type | string | Yes | Event type, which is **'availableBitrates'** in this case. This event is triggered once after the AVPlayer switches to the prepared state.| +| callback | function | Yes | Callback invoked when the event is triggered. It returns an array that holds the available bit rates.| **Example** ```js -import media from '@ohos.multimedia.media' -let seekTime = 5000; -videoPlayer.seek(seekTime).then((seekDoneTime) => { // seekDoneTime indicates the position after the seek operation is complete. - console.info('seek success'); -}).catch((error) => { - console.info(`video catchCallback, error:${error}`); -}); - -videoPlayer.seek(seekTime, media.SeekMode.SEEK_NEXT_SYNC).then((seekDoneTime) => { - console.info('seek success'); -}).catch((error) => { - console.info(`video catchCallback, error:${error}`); -}); +avPlayer.on('availableBitrates', (bitrates: Array) => { + console.info('availableBitrates success,and availableBitrates length is:' + bitrates.length) +}) ``` -### setVolume8+ +### off('availableBitrates')9+ -setVolume(vol: number, callback: AsyncCallback\): void +off(type: 'availableBitrates'): void -Sets the volume. This API uses an asynchronous callback to return the result. +Unsubscribes from available bit rates of HLS streams. -**System capability**: SystemCapability.Multimedia.Media.VideoPlayer +**System capability**: SystemCapability.Multimedia.Media.AVPlayer **Parameters** -| Name | Type | Mandatory| Description | -| -------- | -------------------- | ---- | ------------------------------------------------------------ | -| vol | number | Yes | Relative volume. The value ranges from 0.00 to 1.00. The value **1** indicates the maximum volume (100%).| -| callback | AsyncCallback\ | Yes | Callback used to return the result. | +| Name| Type | Mandatory| Description | +| ------ | ------ | ---- | ------------------------------------------------------------ | +| type | string | Yes | Event type, which is **'availableBitrates'** in this case.| **Example** ```js -let vol = 0.5; -videoPlayer.setVolume(vol, (err, result) => { - if (err == null) { - console.info('setVolume success!'); - } else { - console.info('setVolume fail!'); - } -}); +avPlayer.off('availableBitrates') ``` -### setVolume8+ +### setVolume9+ -setVolume(vol: number): Promise\ +setVolume(volume: number): void -Sets the volume. This API uses a promise to return the result. +Sets the volume. This API can be called only when the AVPlayer is in the prepared, playing, paused, or completed state. You can check whether the setting takes effect by subscribing to the [volumeChange](#volumeChange_on) event. -**System capability**: SystemCapability.Multimedia.Media.VideoPlayer +**System capability**: SystemCapability.Multimedia.Media.AVPlayer **Parameters** | Name| Type | Mandatory| Description | | ------ | ------ | ---- | ------------------------------------------------------------ | -| vol | number | Yes | Relative volume. The value ranges from 0.00 to 1.00. The value **1** indicates the maximum volume (100%).| - -**Return value** - -| Type | Description | -| -------------- | ------------------------- | -| Promise\ | Promise used to return the result.| +| volume | number | Yes | Relative volume. The value ranges from 0.00 to 1.00. The value **1.00** indicates the maximum volume (100%).| **Example** ```js -let vol = 0.5; -videoPlayer.setVolume(vol).then(() => { - console.info('setVolume success'); -}).catch((error) => { - console.info(`video catchCallback, error:${error}`); -}); +let volume = 1.0 +avPlayer.setVolume(volume) ``` -### release8+ +### on('volumeChange')9+ -release(callback: AsyncCallback\): void +on(type: 'volumeChange', callback: Callback\): void -Releases the video playback resource. This API uses an asynchronous callback to return the result. +Subscribes to the event to check whether the volume is successfully set. -**System capability**: SystemCapability.Multimedia.Media.VideoPlayer +**System capability**: SystemCapability.Multimedia.Media.AVPlayer **Parameters** -| Name | Type | Mandatory| Description | -| -------- | -------------------- | ---- | ------------------------ | -| callback | AsyncCallback\ | Yes | Callback used to return the result.| +| Name | Type | Mandatory| Description | +| -------- | -------- | ---- | ------------------------------------------------------------ | +| type | string | Yes | Event type, which is **'volumeChange'** in this case. This event is triggered each time **setVolume()** is called.| +| callback | function | Yes | Callback invoked when the event is triggered. It reports the effective volume. | **Example** ```js -videoPlayer.release((err) => { - if (err == null) { - console.info('release success!'); - } else { - console.info('release fail!'); - } -}); +avPlayer.on('volumeChange', (vol:number) => { + console.info('volumeChange success,and new volume is :' + vol) +}) ``` -### release8+ +### off('volumeChange')9+ -release(): Promise\ +off(type: 'volumeChange'): void -Releases the video playback resource. This API uses a promise to return the result. +Unsubscribes from the event that checks whether the volume is successfully set. -**System capability**: SystemCapability.Multimedia.Media.VideoPlayer +**System capability**: SystemCapability.Multimedia.Media.AVPlayer -**Return value** +**Parameters** -| Type | Description | -| -------------- | ----------------------------- | -| Promise\ | Promise used to return the result.| +| Name| Type | Mandatory| Description | +| ------ | ------ | ---- | ------------------------------------------------------------ | +| type | string | Yes | Event type, which is **'volumeChange'** in this case.| **Example** ```js -videoPlayer.release().then(() => { - console.info('release success'); -}).catch((error) => { - console.info(`video catchCallback, error:${error}`); -}); +avPlayer.off('volumeChange') ``` -### getTrackDescription8+ +### on('endOfStream')9+ -getTrackDescription(callback: AsyncCallback>): void +on(type: 'endOfStream', callback: Callback\): void -Obtains the video track information. This API uses an asynchronous callback to return the result. +Subscribes to the event that indicates the end of the stream being played. If **loop=1** is set, the AVPlayer seeks to the beginning of the stream and plays the stream again. If **loop** is not set, the completed state is reported through the [stateChange](#stateChange_on) event. -**System capability**: SystemCapability.Multimedia.Media.VideoPlayer +**System capability**: SystemCapability.Multimedia.Media.AVPlayer **Parameters** -| Name | Type | Mandatory| Description | -| -------- | ------------------------------------------------------------ | ---- | ------------------------------------------ | -| callback | AsyncCallback> | Yes | Callback used to return a **MediaDescription** array, which records the video track information.| +| Name | Type | Mandatory| Description | +| -------- | -------- | ---- | ------------------------------------------------------------ | +| type | string | Yes | Event type, which is **'endOfStream'** in this case. This event is triggered when the AVPlayer finishes playing the media asset.| +| callback | Callback\ | Yes | Callback invoked when the event is triggered. | **Example** ```js -function printfDescription(obj) { - for (let item in obj) { - let property = obj[item]; - console.info('video key is ' + item); - console.info('video value is ' + property); - } -} - -videoPlayer.getTrackDescription((error, arrList) => { - if ((arrList) != null) { - for (let i = 0; i < arrList.length; i++) { - printfDescription(arrList[i]); - } - } else { - console.log(`video getTrackDescription fail, error:${error}`); - } -}); +avPlayer.on('endOfStream', () => { + console.info('endOfStream success') +}) ``` -### getTrackDescription8+ +### off('endOfStream')9+ -getTrackDescription(): Promise> +off(type: 'endOfStream'): void -Obtains the video track information. This API uses a promise to return the result. +Unsubscribes from the event that indicates the end of the stream being played. -**System capability**: SystemCapability.Multimedia.Media.VideoPlayer +**System capability**: SystemCapability.Multimedia.Media.AVPlayer -**Return value** +**Parameters** -| Type | Description | -| ------------------------------------------------------ | ----------------------------------------------- | -| Promise> | Promise used to return a **MediaDescription** array, which records the video track information.| +| Name| Type | Mandatory| Description | +| ------ | ------ | ---- | ------------------------------------------------------------ | +| type | string | Yes | Event type, which is **'endOfStream'** in this case.| **Example** ```js -function printfDescription(obj) { - for (let item in obj) { - let property = obj[item]; - console.info('video key is ' + item); - console.info('video value is ' + property); - } -} - -let arrayDescription; -videoPlayer.getTrackDescription().then((arrList) => { - if (arrList != null) { - arrayDescription = arrList; - } else { - console.log('video getTrackDescription fail'); - } -}).catch((error) => { - console.info(`video catchCallback, error:${error}`); -}); -for (let i = 0; i < arrayDescription.length; i++) { - printfDescription(arrayDescription[i]); -} +avPlayer.off('endOfStream') ``` -### setSpeed8+ +### on('timeUpdate')9+ -setSpeed(speed:number, callback: AsyncCallback\): void +on(type: 'timeUpdate', callback: Callback\): void -Sets the video playback speed. This API uses an asynchronous callback to return the result. +Subscribes to playback position changes. It is used to refresh the current position of the progress bar. By default, this event is reported every 1 second. However, it is reported immediately upon a successful seek operation. -**System capability**: SystemCapability.Multimedia.Media.VideoPlayer +**System capability**: SystemCapability.Multimedia.Media.AVPlayer **Parameters** -| Name | Type | Mandatory| Description | -| -------- | ---------------------- | ---- | ---------------------------------------------------------- | -| speed | number | Yes | Video playback speed. For details, see [PlaybackSpeed](#playbackspeed8).| -| callback | AsyncCallback\ | Yes | Callback used to return the result. | +| Name | Type | Mandatory| Description | +| -------- | -------- | ---- | ---------------------------------------------- | +| type | string | Yes | Event type, which is **'timeUpdate'** in this case.| +| callback | function | Yes | Callback invoked when the event is triggered. It reports the current playback position, in ms. | **Example** ```js -import media from '@ohos.multimedia.media' -let speed = media.PlaybackSpeed.SPEED_FORWARD_2_00_X; - -videoPlayer.setSpeed(speed, (err, result) => { - if (err == null) { - console.info('setSpeed success!'); - } else { - console.info('setSpeed fail!'); - } -}); +avPlayer.on('timeUpdate', (time:number) => { + console.info('timeUpdate success,and new time is :' + time) +}) ``` -### setSpeed8+ +### off('timeUpdate')9+ -setSpeed(speed:number): Promise\ +off(type: 'timeUpdate'): void -Sets the video playback speed. This API uses a promise to return the result. +Unsubscribes from playback position changes. -**System capability**: SystemCapability.Multimedia.Media.VideoPlayer +**System capability**: SystemCapability.Multimedia.Media.AVPlayer **Parameters** -| Name| Type | Mandatory| Description | -| ------ | ------ | ---- | ---------------------------------------------------------- | -| speed | number | Yes | Video playback speed. For details, see [PlaybackSpeed](#playbackspeed8).| +| Name| Type | Mandatory| Description | +| ------ | ------ | ---- | -------------------------------------------------- | +| type | string | Yes | Event type, which is **'timeUpdate'** in this case.| -**Return value** +**Example** -| Type | Description | -| ---------------- | ------------------------------------------------------------ | -| Promise\| Promise used to return playback speed. For details, see [PlaybackSpeed](#playbackspeed8).| +```js +avPlayer.off('timeUpdate') +``` + +### on('durationUpdate')9+ + +on(type: 'durationUpdate', callback: Callback\): void + +Subscribes to media asset duration changes. It is used to refresh the length of the progress bar. By default, this event is reported once when the AVPlayer switches to the prepared state. However, it can be repeatedly reported for special streams that trigger duration changes. + +**System capability**: SystemCapability.Multimedia.Media.AVPlayer + +**Parameters** + +| Name | Type | Mandatory| Description | +| -------- | -------- | ---- | -------------------------------------------------- | +| type | string | Yes | Event type, which is **'durationUpdate'** in this case.| +| callback | function | Yes | Callback invoked when the event is triggered. It reports the media asset duration, in ms. | **Example** ```js -import media from '@ohos.multimedia.media' -let speed = media.PlaybackSpeed.SPEED_FORWARD_2_00_X; - -videoPlayer.setSpeed(speed).then(() => { - console.info('setSpeed success'); -}).catch((error) => { - console.info(`video catchCallback, error:${error}`); -}); +avPlayer.on('durationUpdate', (duration) => { + console.info('durationUpdate success,new duration is :' + duration) +}) ``` -### on('playbackCompleted')8+ +### off('durationUpdate')9+ -on(type: 'playbackCompleted', callback: Callback\): void +off(type: 'durationUpdate'): void -Subscribes to the video playback completion event. +Unsubscribes from media asset duration changes. -**System capability**: SystemCapability.Multimedia.Media.VideoPlayer +**System capability**: SystemCapability.Multimedia.Media.AVPlayer **Parameters** -| Name | Type | Mandatory| Description | -| -------- | -------- | ---- | ----------------------------------------------------------- | -| type | string | Yes | Event type, which is **'playbackCompleted'** in this case.| -| callback | function | Yes | Callback invoked when the event is triggered. | +| Name| Type | Mandatory| Description | +| ------ | ------ | ---- | ------------------------------------------------------ | +| type | string | Yes | Event type, which is **'durationUpdate'** in this case.| **Example** ```js -videoPlayer.on('playbackCompleted', () => { - console.info('playbackCompleted success!'); -}); +avPlayer.off('durationUpdate') ``` -### on('bufferingUpdate')8+ +### on('bufferingUpdate')9+ on(type: 'bufferingUpdate', callback: (infoType: BufferingInfoType, value: number) => void): void -Subscribes to the video buffering update event. Only network playback supports this subscription. +Subscribes to audio and video buffer changes. This subscription is supported only in network playback scenarios. -**System capability**: SystemCapability.Multimedia.Media.VideoPlayer +**System capability**: SystemCapability.Multimedia.Media.AVPlayer **Parameters** @@ -1409,122 +1424,189 @@ Subscribes to the video buffering update event. Only network playback supports t **Example** ```js -videoPlayer.on('bufferingUpdate', (infoType, value) => { - console.log('video bufferingInfo type: ' + infoType); - console.log('video bufferingInfo value: ' + value); -}); +avPlayer.on('bufferingUpdate', (infoType: media.BufferingInfoType, value: number) => { + console.info('bufferingUpdate success,and infoType value is:' + infoType + ', value is :' + value) +}) ``` -### on('startRenderFrame')8+ +### off('bufferingUpdate')9+ -on(type: 'startRenderFrame', callback: Callback\): void +off(type: 'bufferingUpdate'): void -Subscribes to the frame rendering start event. +Unsubscribes from audio and video buffer changes. -**System capability**: SystemCapability.Multimedia.Media.VideoPlayer +**System capability**: SystemCapability.Multimedia.Media.AVPlayer **Parameters** -| Name | Type | Mandatory| Description | -| -------- | --------------- | ---- | ------------------------------------------------------------ | -| type | string | Yes | Event type, which is **'startRenderFrame'** in this case.| -| callback | Callback\ | Yes | Callback invoked when the event is triggered. | +| Name| Type | Mandatory| Description | +| ------ | ------ | ---- | --------------------------------------------------------- | +| type | string | Yes | Event type, which is **'bufferingUpdate'** in this case.| **Example** ```js -videoPlayer.on('startRenderFrame', () => { - console.info('startRenderFrame success!'); -}); +avPlayer.off('bufferingUpdate') ``` -### on('videoSizeChanged')8+ +### on('startRenderFrame')9+ -on(type: 'videoSizeChanged', callback: (width: number, height: number) => void): void +on(type: 'startRenderFrame', callback: Callback\): void -Subscribes to the video width and height change event. +Subscribes to the event that indicates rendering starts for the first frame. This subscription is supported only in the video playback scenarios. This event only means that the playback service sends the first frame to the display module. The actual rendering effect depends on the rendering performance of the display service. -**System capability**: SystemCapability.Multimedia.Media.VideoPlayer +**System capability**: SystemCapability.Multimedia.Media.AVPlayer **Parameters** | Name | Type | Mandatory| Description | | -------- | -------- | ---- | ------------------------------------------------------------ | -| type | string | Yes | Event type, which is **'videoSizeChanged'** in this case.| -| callback | function | Yes | Callback invoked when the event is triggered. **width** indicates the video width, and **height** indicates the video height. | +| type | string | Yes | Event type, which is **'startRenderFrame'** in this case.| +| callback | Callback\ | Yes | Callback invoked when the event is triggered. | **Example** ```js -videoPlayer.on('videoSizeChanged', (width, height) => { - console.log('video width is: ' + width); - console.log('video height is: ' + height); -}); +avPlayer.on('startRenderFrame', () => { + console.info('startRenderFrame success') +}) ``` -### on('error')8+ +### off('startRenderFrame')9+ -on(type: 'error', callback: ErrorCallback): void +off(type: 'startRenderFrame'): void -Subscribes to video playback error events. After an error event is reported, you must handle the event and exit the playback. +Unsubscribes from the event that indicates rendering starts for the first frame. -**System capability**: SystemCapability.Multimedia.Media.VideoPlayer +**System capability**: SystemCapability.Multimedia.Media.AVPlayer **Parameters** -| Name | Type | Mandatory| Description | -| -------- | ------------- | ---- | ------------------------------------------------------------ | -| type | string | Yes | Event type, which is **'error'** in this case.
The **'error'** event is triggered when an error occurs during video playback.| -| callback | ErrorCallback | Yes | Callback invoked when the event is triggered. | +| Name| Type | Mandatory| Description | +| ------ | ------ | ---- | ------------------------------------------------------------ | +| type | string | Yes | Event type, which is **'startRenderFrame'** in this case.| **Example** ```js -videoPlayer.on('error', (error) => { // Set the 'error' event callback. - console.info(`video error called, error: ${error}`); -}); -videoPlayer.url = 'fd://error'; // Set an incorrect URL to trigger the 'error' event. +avPlayer.off('startRenderFrame') ``` -### on('availableBitratesCollect')9+ +### on('videoSizeChange')9+ -on(type: 'availableBitratesCollect', callback: (bitrates: Array\) => void): void +on(type: 'videoSizeChange', callback: (width: number, height: number) => void): void -Subscribes to the video playback bit rate reporting event. +Subscribes to video size (width and height) changes. This subscription is supported only in the video playback scenarios. By default, this event is reported only once in the prepared state. However, it is also reported upon resolution changes in the case of HLS streams. -**System capability**: SystemCapability.Multimedia.Media.VideoPlayer +**System capability**: SystemCapability.Multimedia.Media.AVPlayer **Parameters** | Name | Type | Mandatory| Description | | -------- | -------- | ---- | ------------------------------------------------------------ | -| type | string | Yes | Event type, which is **'availableBitratesCollect'** in this case. This event is reported only once when the playback starts.| -| callback | function | Yes | Callback used to return supported bit rates, in an array. | +| type | string | Yes | Event type, which is **'videoSizeChange'** in this case.| +| callback | function | Yes | Callback invoked when the event is triggered. **width** indicates the video width, and **height** indicates the video height. | **Example** ```js -videoPlayer.on('availableBitratesCollect', (bitrates) => { - for (let i = 0; i < bitrates.length; i++) { - console.info('case availableBitratesCollect bitrates: ' + bitrates[i]); // Print bit rates. - } -}); +avPlayer.on('videoSizeChange', (width: number, height: number) => { + console.info('videoSizeChange success,and width is:' + width + ', height is :' + height) +}) ``` -## VideoPlayState8+ +### off('videoSizeChange')9+ -Enumerates the video playback states. You can obtain the state through the **state** attribute. +off(type: 'videoSizeChange'): void -**System capability**: SystemCapability.Multimedia.Media.VideoPlayer +Unsubscribes from video size changes. -| Name | Type | Description | -| -------- | ------ | -------------- | -| idle | string | The video player is idle.| -| prepared | string | Video playback is being prepared.| -| playing | string | Video playback is in progress.| -| paused | string | Video playback is paused.| -| stopped | string | Video playback is stopped.| -| error | string | Video playback is in the error state. | +**System capability**: SystemCapability.Multimedia.Media.AVPlayer + +**Parameters** + +| Name| Type | Mandatory| Description | +| ------ | ------ | ---- | ------------------------------------------------------------ | +| type | string | Yes | Event type, which is **'videoSizeChange'** in this case.| + +**Example** + +```js +avPlayer.off('videoSizeChange') +``` + +### on('audioInterrupt')9+ + +on(type: 'audioInterrupt', callback: (info: audio.InterruptEvent) => void): void + +Subscribes to the audio interruption event. When multiple audio and video assets are played at the same time, this event is triggered based on the audio interruption mode [audio.InterruptMode](js-apis-audio.md#interruptmode9). + +**System capability**: SystemCapability.Multimedia.Media.AVPlayer + +**Parameters** + +| Name | Type | Mandatory| Description | +| -------- | ------------------------------------------------------------ | ---- | -------------------------------------------------------- | +| type | string | Yes | Event type, which is **'audioInterrupt'** in this case.| +| callback | [audio.InterruptEvent9+](js-apis-audio.md#interruptevent9) | Yes | Callback invoked when the event is triggered. | + +**Example** + +```js +avPlayer.on('audioInterrupt', (info: audio.InterruptEvent) => { + console.info('audioInterrupt success,and InterruptEvent info is:' + info) +}) +``` + +### off('audioInterrupt')9+ + +off(type: 'audioInterrupt'): void + +Unsubscribes from the audio interruption event. + +**System capability**: SystemCapability.Multimedia.Media.AVPlayer + +**Parameters** + +| Name| Type | Mandatory| Description | +| ------ | ------ | ---- | ------------------------------------------------------------ | +| type | string | Yes | Event type, which is **'audioInterrupt'** in this case.| + +**Example** + +```js +avPlayer.off('audioInterrupt') +``` + +## AVPlayerState9+ + +Enumerates the states of the [AVPlayer](#avplayer9). Your application can proactively obtain the AVPlayer state through the **state** attribute or obtain the reported AVPlayer state by subscribing to the [stateChange](#stateChange_on) event. For details about the rules for state transition, see [AVPlayer Development](../../media/avplayer-playback.md). + +**System capability**: SystemCapability.Multimedia.Media.AVPlayer + +| Name | Type | Description | +| :-----------------------------: | :----: | :----------------------------------------------------------- | +| idle | string | The AVPlayer enters this state after [createAVPlayer()](#mediacreateavplayer9) or **reset()** is called.
In case **createAVPlayer()** is used, all attributes are set to their default values.
In case **reset()** is invoked, the **url9+** or **fdSrc9+** attribute is reset, and other attributes set by the application are retained.| +| initialized | string | The AVPlayer enters this state after **url9+** or **fdSrc9+** attribute is set in the idle state. In this case, you can configure static attributes such as the window and audio.| +| prepared | string | The AVPlayer enters this state when **prepare()** is called in the initialized state. In this case, the playback engine has prepared the resources.| +| playing | string | The AVPlayer enters this state when **play()** is called in the prepared, paused, or completed state.| +| paused | string | The AVPlayer enters this state when **pause()** is called in the playing state.| +| completed | string | The AVPlayer enters this state when a media asset finishes playing and loop playback is not set (no **loop = 1**). In this case, if **play()** is called, the AVPlayer enters the playing state and replays the media asset; if **stop()** is called, the AVPlayer enters the stopped state.| +| stopped | string | The AVPlayer enters this state when **stop()** is called in the prepared, playing, paused, or completed state. In this case, the playback engine retains the attributes but releases the memory resources. You can call **prepare()** to prepare the resources again, call **reset()** to reset the attributes, or call **release()** to destroy the playback engine.| +| released | string | The AVPlayer enters this state when **release()** is called. The playback engine associated with the **AVPlayer** instance is destroyed, and the playback process ends. This is the final state.| +| error | string | The AVPlayer enters this state when an irreversible error occurs in the playback engine. You can call **reset()** to reset the attributes or call **release()** to destroy the playback engine. For details on the errors, see [Error Classification](#error_info).
**NOTE** Relationship between the error state and the [on('error')](#error_on) event
1. When the AVPlayer enters the error state, the [on('error')](#error_on) event is triggered. You can obtain the detailed error information through this event.
2. When the AVPlayer enters the error state, the playback service stops. This requires the client to design a fault tolerance mechanism to call **reset()** or **release()**.
3. The client receives [on('error')](#error_on) event but the AVPlayer does not enter the error state. This situation occurs due to either of the following reasons:
Cause 1: The client calls an API in an incorrect state or passes in an incorrect parameter, and the AVPlayer intercepts the call. If this is the case, the client must correct its code logic.
Cause 2: A stream error is detected during playback. As a result, the container and decoding are abnormal for a short period of time, but continuous playback and playback control operations are not affected. If this is the case, the client does not need to design a fault tolerance mechanism.| + +## AVFileDescriptor9+ + +Describes an audio and video file asset. It is used to specify a particular asset for playback based on its offset and length within a file. + +**System capability**: SystemCapability.Multimedia.Media.Core + +| Name | Type | Mandatory| Description | +| ------ | ------ | ---- | ------------------------------------------------------------ | +| fd | number | Yes | Resource handle, which is obtained by calling **resourceManager.getRawFileDescriptor**. | +| offset | number | Yes | Resource offset, which needs to be entered based on the preset asset information. An invalid value causes a failure to parse audio and video assets.| +| length | number | Yes | Resource length, which needs to be entered based on the preset asset information. An invalid value causes a failure to parse audio and video assets.| ## SeekMode8+ @@ -1557,10 +1639,10 @@ Enumerates the video scale modes. **System capability**: SystemCapability.Multimedia.Media.VideoPlayer -| Name | Value| Description | -| ---------------------------- | ------ | ---------- | -| VIDEO_SCALE_TYPE_FIT | 0 | The video will be stretched to fit the window.| -| VIDEO_SCALE_TYPE_FIT_CROP| 1 | The video will be stretched to fit the window, without changing its aspect ratio. The content may be cropped. | +| Name | Value | Description | +| ------------------------- | ---- | ------------------------------------------------ | +| VIDEO_SCALE_TYPE_FIT | 0 | The video will be stretched to fit the window. | +| VIDEO_SCALE_TYPE_FIT_CROP | 1 | The video will be stretched to fit the window, without changing its aspect ratio. The content may be cropped.| ## MediaDescription8+ @@ -1589,852 +1671,915 @@ audioPlayer.getTrackDescription((error, arrList) => { }); ``` -## AudioRecorder +## AVRecorder9+ -Implements audio recording. Before calling an API of **AudioRecorder**, you must use [createAudioRecorder()](#mediacreateaudiorecorder) to create an [AudioRecorder](#audiorecorder) instance. +A recording management class that provides APIs to record media assets. Before calling any API in **AVRecorder**, you must use **createAVRecorder()** to create an **AVRecorder** instance. -For details about the audio recording demo, see [Audio Recording Development](../../media/audio-recorder.md). +For details about the AVRecorder demo, see [AVRecorder Development](../../media/avrecorder.md). -### prepare +### Attributes -prepare(config: AudioRecorderConfig): void +**System capability**: SystemCapability.Multimedia.Media.AVRecorder -Prepares for recording. +| Name | Type | Readable| Writable| Description | +| ------- | ------------------------------------ | ---- | ---- | ------------------ | +| state9+ | [AVRecorderState](#avrecorderstate9) | Yes | No | AVRecorder state.| + +### prepare9+ + +prepare(config: AVRecorderConfig, callback: AsyncCallback\): void + +Sets audio and video recording parameters. This API uses an asynchronous callback to return the result. **Required permissions:** ohos.permission.MICROPHONE -**System capability**: SystemCapability.Multimedia.Media.AudioRecorder +This permission is required only if audio recording is involved. + +To use the camera to record videos, the camera module is required. For details about how to obtain the permissions and use the APIs, see [Camera Management](js-apis-camera.md). + +**System capability**: SystemCapability.Multimedia.Media.AVRecorder **Parameters** -| Name| Type | Mandatory| Description | -| ------ | ------------------------------------------- | ---- | ------------------------------------------------------------ | -| config | [AudioRecorderConfig](#audiorecorderconfig) | Yes | Audio recording parameters, including the audio output URI, encoding format, sampling rate, number of audio channels, and output format.| +| Name | Type | Mandatory| Description | +| -------- | -------------------------------------- | ---- | ------------------------------------- | +| config | [AVRecorderConfig](#avrecorderconfig9) | Yes | Audio and video recording parameters to set. | +| callback | AsyncCallback\ | Yes | Callback used to return the result.| + +**Error codes** + +For details about the error codes, see [Media Error Codes](../errorcodes/errorcode-media.md). + +| ID| Error Message | +| -------- | --------------------------------------- | +| 201 | Permission denied. Return by callback. | +| 401 | Parameter error. Return by callback. | +| 5400102 | Operate not permit. Return by callback. | +| 5400105 | Service died. Return by callback. | **Example** ```js -let audioRecorderConfig = { - audioEncoder : media.AudioEncoder.AAC_LC, - audioEncodeBitRate : 22050, - audioSampleRate : 22050, - numberOfChannels : 2, - format : media.AudioOutputFormat.AAC_ADTS, - uri : 'fd://1', // The file must be created by the caller and granted with proper permissions. - location : { latitude : 30, longitude : 130}, +let AVRecorderProfile = { + audioBitrate : 48000, + audioChannels : 2, + audioCodec : media.CodecMimeType.AUDIO_AAC, + audioSampleRate : 48000, + fileFormat : media.ContainerFormatType.CFT_MPEG_4, + videoBitrate : 48000, + videoCodec : media.CodecMimeType.VIDEO_MPEG4, + videoFrameWidth : 640, + videoFrameHeight : 480, + videoFrameRate : 30 } -audioRecorder.on('prepare', () => { // Set the 'prepare' event callback. - console.log('prepare success'); -}); -audioRecorder.prepare(audioRecorderConfig); +let AVRecorderConfig = { + audioSourceType : media.AudioSourceType.AUDIO_SOURCE_TYPE_MIC, + videoSourceType : media.VideoSourceType.VIDEO_SOURCE_TYPE_SURFACE_YUV, + profile : AVRecorderProfile, + url : 'fd://', // Before passing in an FD to this parameter, the file must be created by the caller and granted with the read and write permissions. Example value: eg.fd://45. + rotation: 0, // The value can be 0, 90, 180, or 270. If any other value is used, prepare() reports an error. + location : { latitude : 30, longitude : 130 } +} + +AVRecorder.prepare(AVRecorderConfig, (err) => { + if (err == null) { + console.info('prepare success'); + } else { + console.info('prepare failed and error is ' + err.message); + } +}) ``` +### prepare9+ -### start +prepare(config: AVRecorderConfig): Promise\ -start(): void +Sets audio and video recording parameters. This API uses a promise to return the result. -Starts audio recording. This API can be called only after the [prepare](#audiorecorder_on) event is triggered. +**Required permissions:** ohos.permission.MICROPHONE -**System capability**: SystemCapability.Multimedia.Media.AudioRecorder +This permission is required only if audio recording is involved. -**Example** +To use the camera to record videos, the camera module is required. For details about how to obtain the permissions and use the APIs, see [Camera Management](js-apis-camera.md). -```js -audioRecorder.on('start', () => { // Set the 'start' event callback. - console.log('audio recorder start success'); -}); -audioRecorder.start(); -``` +**System capability**: SystemCapability.Multimedia.Media.AVRecorder -### pause +**Parameters** -pause():void +| Name| Type | Mandatory| Description | +| ------ | -------------------------------------- | ---- | -------------------------- | +| config | [AVRecorderConfig](#avrecorderconfig9) | Yes | Audio and video recording parameters to set.| -Pauses audio recording. This API can be called only after the [start](#audiorecorder_on) event is triggered. +**Return value** -**System capability**: SystemCapability.Multimedia.Media.AudioRecorder +| Type | Description | +| -------------- | ------------------------------------------ | +| Promise\ | Promise used to return the result.| + +**Error codes** + +For details about the error codes, see [Media Error Codes](../errorcodes/errorcode-media.md). + +| ID| Error Message | +| -------- | -------------------------------------- | +| 201 | Permission denied. Return by promise. | +| 401 | Parameter error. Return by promise. | +| 5400102 | Operate not permit. Return by promise. | +| 5400105 | Service died. Return by promise. | **Example** ```js -audioRecorder.on('pause', () => { // Set the 'pause' event callback. - console.log('audio recorder pause success'); +let AVRecorderProfile = { + audioBitrate : 48000, + audioChannels : 2, + audioCodec : media.CodecMimeType.AUDIO_AAC, + audioSampleRate : 48000, + fileFormat : media.ContainerFormatType.CFT_MPEG_4, + videoBitrate : 48000, + videoCodec : media.CodecMimeType.VIDEO_MPEG4, + videoFrameWidth : 640, + videoFrameHeight : 480, + videoFrameRate : 30 +} +let AVRecorderConfig = { + audioSourceType : media.AudioSourceType.AUDIO_SOURCE_TYPE_MIC, + videoSourceType : media.VideoSourceType.VIDEO_SOURCE_TYPE_SURFACE_YUV, + profile : AVRecorderProfile, + url : 'fd://', // Before passing in an FD to this parameter, the file must be created by the caller and granted with the read and write permissions. Example value: eg.fd://45. + rotation: 0, // The value can be 0, 90, 180, or 270. If any other value is used, prepare() reports an error. + location : { latitude : 30, longitude : 130 } +} + +AVRecorder.prepare(AVRecorderConfig).then(() => { + console.info('prepare success'); +}).catch((err) => { + console.info('prepare failed and catch error is ' + err.message); }); -audioRecorder.pause(); + ``` -### resume +### getInputSurface9+ -resume():void +getInputSurface(callback: AsyncCallback\): void -Resumes audio recording. This API can be called only after the [pause](#audiorecorder_on) event is triggered. +Obtains the surface required for recording. This API uses an asynchronous callback to return the result. The caller obtains the **surfaceBuffer** from this surface and fills in the corresponding video data. -**System capability**: SystemCapability.Multimedia.Media.AudioRecorder +Note that the video data must carry the timestamp (in ns) and buffer size, and the start time of the timestamp must be based on the system startup time. + +This API can be called only after the **prepare()** API is called. + +**System capability**: SystemCapability.Multimedia.Media.AVRecorder + +**Parameters** + +| Name | Type | Mandatory| Description | +| -------- | ---------------------- | ---- | --------------------------- | +| callback | AsyncCallback\ | Yes | Callback used to obtain the result.| + +**Error codes** + +For details about the error codes, see [Media Error Codes](../errorcodes/errorcode-media.md). + +| ID| Error Message | +| -------- | --------------------------------------- | +| 5400102 | Operate not permit. Return by callback. | +| 5400103 | IO error. Return by callback. | +| 5400105 | Service died. Return by callback. | **Example** ```js -audioRecorder.on('resume', () => { // Set the 'resume' event callback. - console.log('audio recorder resume success'); +let surfaceID = null; // The surfaceID is transferred to the camera API to create a videoOutput instance. + +AVRecorder.getInputSurface((err, surfaceId) => { + if (err == null) { + console.info('getInputSurface success'); + surfaceID = surfaceId; + } else { + console.info('getInputSurface failed and error is ' + err.message); + } }); -audioRecorder.resume(); + +// videoOutput = await cameraManager.createVideoOutput(videoProfiles[0], surfaceID); + ``` -### stop +### getInputSurface9+ -stop(): void +getInputSurface(): Promise\ -Stops audio recording. +Obtains the surface required for recording. This API uses a promise to return the result. The caller obtains the **surfaceBuffer** from this surface and fills in the corresponding video data. -**System capability**: SystemCapability.Multimedia.Media.AudioRecorder +Note that the video data must carry the timestamp (in ns) and buffer size, and the start time of the timestamp must be based on the system startup time. + +This API can be called only after the **prepare()** API is called. + +**System capability**: SystemCapability.Multimedia.Media.AVRecorder + +**Return value** + +| Type | Description | +| ---------------- | -------------------------------- | +| Promise\ | Promise used to return the result.| + +**Error codes** + +For details about the error codes, see [Media Error Codes](../errorcodes/errorcode-media.md). + +| ID| Error Message | +| -------- | -------------------------------------- | +| 5400102 | Operate not permit. Return by promise. | +| 5400103 | IO error. Return by promise. | +| 5400105 | Service died. Return by promise. | **Example** ```js -audioRecorder.on('stop', () => { // Set the 'stop' event callback. - console.log('audio recorder stop success'); +let surfaceID = null; // The surfaceID is transferred to the camera API to create a videoOutput instance. + +AVRecorder.getInputSurface().then((surfaceId) => { + console.info('getInputSurface success'); + surfaceID = surfaceId; +}).catch((err) => { + console.info('getInputSurface failed and catch error is ' + err.message); }); -audioRecorder.stop(); + +// videoOutput = await cameraManager.createVideoOutput(videoProfiles[0], surfaceID); ``` -### release +### start9+ -release(): void +start(callback: AsyncCallback\): void -Releases the audio recording resource. +Starts recording. This API uses an asynchronous callback to return the result. -**System capability**: SystemCapability.Multimedia.Media.AudioRecorder +For audio-only recording, this API can be called only after the **prepare()** API is called. For video-only recording, this API can be called only after the **getInputSurface()** API is called. + +**System capability**: SystemCapability.Multimedia.Media.AVRecorder + +**Parameters** + +| Name | Type | Mandatory| Description | +| -------- | -------------------- | ---- | ---------------------------- | +| callback | AsyncCallback\ | Yes | Callback used to return the result.| + +**Error codes** + +For details about the error codes, see [Media Error Codes](../errorcodes/errorcode-media.md). + +| ID| Error Message | +| -------- | --------------------------------------- | +| 5400102 | Operate not permit. Return by callback. | +| 5400103 | IO error. Return by callback. | +| 5400105 | Service died. Return by callback. | **Example** ```js -audioRecorder.on('release', () => { // Set the 'release' event callback. - console.log('audio recorder release success'); +AVRecorder.start((err) => { + if (err == null) { + console.info('start AVRecorder success'); + } else { + console.info('start AVRecorder failed and error is ' + err.message); + } }); -audioRecorder.release(); -audioRecorder = undefined; ``` -### reset +### start9+ -reset(): void +start(): Promise\ -Resets audio recording. +Starts recording. This API uses a promise to return the result. -Before resetting audio recording, you must call [stop()](#audiorecorder_stop) to stop recording. After audio recording is reset, you must call [prepare()](#audiorecorder_prepare) to set the recording parameters for another recording. +For audio-only recording, this API can be called only after the **prepare()** API is called. For video-only recording, this API can be called only after the **getInputSurface()** API is called. -**System capability**: SystemCapability.Multimedia.Media.AudioRecorder +**System capability**: SystemCapability.Multimedia.Media.AVRecorder + +**Return value** + +| Type | Description | +| -------------- | ------------------------------------- | +| Promise\ | Promise used to return the result.| + +**Error codes** + +For details about the error codes, see [Media Error Codes](../errorcodes/errorcode-media.md). + +| ID| Error Message | +| -------- | -------------------------------------- | +| 5400102 | Operate not permit. Return by promise. | +| 5400103 | IO error. Return by promise. | +| 5400105 | Service died. Return by promise. | **Example** ```js -audioRecorder.on('reset', () => { // Set the 'reset' event callback. - console.log('audio recorder reset success'); +AVRecorder.start().then(() => { + console.info('start AVRecorder success'); +}).catch((err) => { + console.info('start AVRecorder failed and catch error is ' + err.message); }); -audioRecorder.reset(); ``` -### on('prepare' | 'start' | 'pause' | 'resume' | 'stop' | 'release' | 'reset') +### pause9+ -on(type: 'prepare' | 'start' | 'pause' | 'resume' | 'stop' | 'release' | 'reset', callback: () => void): void +pause(callback: AsyncCallback\): void -Subscribes to the audio recording events. +Pauses recording. This API uses an asynchronous callback to return the result. -**System capability**: SystemCapability.Multimedia.Media.AudioRecorder +This API can be called only after the **start()** API is called. You can call **resume()** to resume recording. + +**System capability**: SystemCapability.Multimedia.Media.AVRecorder **Parameters** -| Name | Type | Mandatory| Description | -| -------- | -------- | ---- | ------------------------------------------------------------ | -| type | string | Yes | Event type. The following events are supported:
- 'prepare': triggered when the [prepare](#audiorecorder_prepare) API is called and the audio recording parameters are set.
- 'start': triggered when the [start](#audiorecorder_start) API is called and audio recording starts.
- 'pause': triggered when the [pause](#audiorecorder_pause) API is called and audio recording is paused.
- 'resume': triggered when the [resume](#audiorecorder_resume) API is called and audio recording is resumed.
- 'stop': triggered when the [stop](#audiorecorder_stop) API is called and audio recording stops.
- 'release': triggered when the [release](#audiorecorder_release) API is called and the recording resource is released.
- 'reset': triggered when the [reset](#audiorecorder_reset) API is called and audio recording is reset.| -| callback | ()=>void | Yes | Callback invoked when the event is triggered. | +| Name | Type | Mandatory| Description | +| -------- | -------------------- | ---- | --------------------------- | +| callback | AsyncCallback\ | Yes | Callback used to obtain the result.| -**Example** +**Error codes** -```js -let audioRecorder = media.createAudioRecorder(); // Create an AudioRecorder instance. -let audioRecorderConfig = { - audioEncoder : media.AudioEncoder.AAC_LC, - audioEncodeBitRate : 22050, - audioSampleRate : 22050, - numberOfChannels : 2, - format : media.AudioOutputFormat.AAC_ADTS, - uri : 'fd://xx', // The file must be created by the caller and granted with proper permissions. - location : { latitude : 30, longitude : 130}, -} -audioRecorder.on('error', (error) => { // Set the 'error' event callback. - console.info(`audio error called, error: ${error}`); -}); -audioRecorder.on('prepare', () => { // Set the 'prepare' event callback. - console.log('prepare success'); - audioRecorder.start(); // Start recording and trigger the 'start' event callback. -}); -audioRecorder.on('start', () => { // Set the 'start' event callback. - console.log('audio recorder start success'); -}); -audioRecorder.on('pause', () => { // Set the 'pause' event callback. - console.log('audio recorder pause success'); -}); -audioRecorder.on('resume', () => { // Set the 'resume' event callback. - console.log('audio recorder resume success'); -}); -audioRecorder.on('stop', () => { // Set the 'stop' event callback. - console.log('audio recorder stop success'); -}); -audioRecorder.on('release', () => { // Set the 'release' event callback. - console.log('audio recorder release success'); -}); -audioRecorder.on('reset', () => { // Set the 'reset' event callback. - console.log('audio recorder reset success'); +For details about the error codes, see [Media Error Codes](../errorcodes/errorcode-media.md). + +| ID| Error Message | +| -------- | --------------------------------------- | +| 5400102 | Operate not permit. Return by callback. | +| 5400103 | IO error. Return by callback. | +| 5400105 | Service died. Return by callback. | + +**Example** + +```js +AVRecorder.pause((err) => { + if (err == null) { + console.info('pause AVRecorder success'); + } else { + console.info('pause AVRecorder failed and error is ' + err.message); + } }); -audioRecorder.prepare(audioRecorderConfig) // Set recording parameters and trigger the 'prepare' event callback. ``` -### on('error') +### pause9+ -on(type: 'error', callback: ErrorCallback): void +pause(): Promise\ -Subscribes to audio recording error events. After an error event is reported, you must handle the event and exit the recording. +Pauses recording. This API uses a promise to return the result. -**System capability**: SystemCapability.Multimedia.Media.AudioRecorder +This API can be called only after the **start()** API is called. You can call **resume()** to resume recording. -**Parameters** +**System capability**: SystemCapability.Multimedia.Media.AVRecorder -| Name | Type | Mandatory| Description | -| -------- | ------------- | ---- | ------------------------------------------------------------ | -| type | string | Yes | Event type, which is **'error'** in this case.
The **'error'** event is triggered when an error occurs during audio recording.| -| callback | ErrorCallback | Yes | Callback invoked when the event is triggered. | +**Return value** + +| Type | Description | +| -------------- | ------------------------------------- | +| Promise\ | Promise used to return the result.| + +**Error codes** + +For details about the error codes, see [Media Error Codes](../errorcodes/errorcode-media.md). + +| ID| Error Message | +| -------- | -------------------------------------- | +| 5400102 | Operate not permit. Return by promise. | +| 5400103 | IO error. Return by promise. | +| 5400105 | Service died. Return by promise. | **Example** ```js -let audioRecorderConfig = { - audioEncoder : media.AudioEncoder.AAC_LC, - audioEncodeBitRate : 22050, - audioSampleRate : 22050, - numberOfChannels : 2, - format : media.AudioOutputFormat.AAC_ADTS, - uri : 'fd://xx', // The file must be created by the caller and granted with proper permissions. - location : { latitude : 30, longitude : 130}, -} -audioRecorder.on('error', (error) => { // Set the 'error' event callback. - console.info(`audio error called, error: ${error}`); +AVRecorder.pause().then(() => { + console.info('pause AVRecorder success'); +}).catch((err) => { + console.info('pause AVRecorder failed and catch error is ' + err.message); }); -audioRecorder.prepare(audioRecorderConfig); // Do no set any parameter in prepare and trigger the 'error' event callback. ``` -## AudioRecorderConfig +### resume9+ -Describes audio recording configurations. +resume(callback: AsyncCallback\): void -**System capability**: SystemCapability.Multimedia.Media.AudioRecorder +Resumes recording. This API uses an asynchronous callback to return the result. -| Name | Type | Mandatory| Description | -| --------------------- | --------------------------------------- | ---- | ------------------------------------------------------------ | -| audioEncoder(deprecated) | [AudioEncoder](#audioencoder) | No | Audio encoding format. The default value is **AAC_LC**.
**Note**: This parameter is deprecated since API version 8. Use **audioEncoderMime** instead. | -| audioEncodeBitRate | number | No | Audio encoding bit rate. The default value is **48000**. | -| audioSampleRate | number | No | Audio sampling rate. The default value is **48000**. | -| numberOfChannels | number | No | Number of audio channels. The default value is **2**. | -| format(deprecated) | [AudioOutputFormat](#audiooutputformat) | No | Audio output format. The default value is **MPEG_4**.
**Note**: This parameter is deprecated since API version 8. Use **fileFormat** instead. | -| location | [Location](#location) | No | Geographical location of the recorded audio. | -| uri | string | Yes | Audio output URI. Supported: fd://xx (fd number)
![](figures/en-us_image_url.png)
The file must be created by the caller and granted with proper permissions.| -| audioEncoderMime8+ | [CodecMimeType](#codecmimetype8) | No | Audio encoding format. | -| fileFormat8+ | [ContainerFormatType](#containerformattype8) | No | Audio encoding format. | +This API can be called only after the **pause()** API is called. -## AudioEncoder(deprecated) +**System capability**: SystemCapability.Multimedia.Media.AVRecorder -> **NOTE** -> This API is deprecated since API version 8. You are advised to use [CodecMimeType](#codecmimetype8) instead. +**Parameters** -Enumerates the audio encoding formats. +| Name | Type | Mandatory| Description | +| -------- | -------------------- | ---- | ---------------------------- | +| callback | AsyncCallback\ | Yes | Callback used to return the result.| -**System capability**: SystemCapability.Multimedia.Media.AudioRecorder +**Error codes** -| Name | Value | Description | -| ------- | ---- | ------------------------------------------------------------ | -| DEFAULT | 0 | Default encoding format.
This API is defined but not implemented yet. | -| AMR_NB | 1 | AMR-NB.
This API is defined but not implemented yet.| -| AMR_WB | 2 | Adaptive Multi Rate-Wide Band Speech Codec (AMR-WB).
This API is defined but not implemented yet.| -| AAC_LC | 3 | Advanced Audio Coding Low Complexity (AAC-LC).| -| HE_AAC | 4 | High-Efficiency Advanced Audio Coding (HE_AAC).
This API is defined but not implemented yet.| +For details about the error codes, see [Media Error Codes](../errorcodes/errorcode-media.md). +| ID| Error Message | +| -------- | --------------------------------------- | +| 5400102 | Operate not permit. Return by callback. | +| 5400103 | IO error. Return by callback. | +| 5400105 | Service died. Return by callback. | -## AudioOutputFormat(deprecated) +**Example** -> **NOTE** -> This API is deprecated since API version 8. You are advised to use [ContainerFormatType](#containerformattype8) instead. +```js +AVRecorder.resume((err) => { + if (err == null) { + console.info('resume AVRecorder success'); + } else { + console.info('resume AVRecorder failed and error is ' + err.message); + } +}); +``` -Enumerates the audio output formats. +### resume9+ -**System capability**: SystemCapability.Multimedia.Media.AudioRecorder +resume(): Promise\ -| Name | Value | Description | -| -------- | ---- | ------------------------------------------------------------ | -| DEFAULT | 0 | Default encapsulation format.
This API is defined but not implemented yet. | -| MPEG_4 | 2 | MPEG-4. | -| AMR_NB | 3 | AMR_NB.
This API is defined but not implemented yet. | -| AMR_WB | 4 | AMR_WB.
This API is defined but not implemented yet. | -| AAC_ADTS | 6 | Audio Data Transport Stream (ADTS), which is a transport stream format of AAC-based audio.| +Resumes recording. This API uses a promise to return the result. -## VideoRecorder9+ +This API can be called only after the **pause()** API is called. -Implements video recording. Before calling an API of the **VideoRecorder** class, you must call [createVideoRecorder()](#mediacreatevideorecorder9) to create a [VideoRecorder](#videorecorder9) instance. +**System capability**: SystemCapability.Multimedia.Media.AVRecorder -For details about the video recording demo, see [Video Recording Development](../../media/video-recorder.md). +**Return value** -### Attributes +| Type | Description | +| -------------- | ------------------------------------- | +| Promise\ | Promise used to return the result.| -**System capability**: SystemCapability.Multimedia.Media.VideoRecorder +**Error codes** -**System API**: This is a system API. +For details about the error codes, see [Media Error Codes](../errorcodes/errorcode-media.md). -| Name | Type | Readable| Writable| Description | -| ------------------ | -------------------------------------- | ---- | ---- | ---------------- | -| state9+ | [VideoRecordState](#videorecordstate9) | Yes | No | Video recording state.| +| ID| Error Message | +| -------- | -------------------------------------- | +| 5400102 | Operate not permit. Return by promise. | +| 5400103 | IO error. Return by promise. | +| 5400105 | Service died. Return by promise. | -### prepare9+ +**Example** -prepare(config: VideoRecorderConfig, callback: AsyncCallback\): void; +```js +AVRecorder.resume().then(() => { + console.info('resume AVRecorder success'); +}).catch((err) => { + console.info('resume AVRecorder failed and catch error is ' + err.message); +}); +``` -Sets video recording parameters. This API uses an asynchronous callback to return the result. +### stop9+ -**Required permissions:** ohos.permission.MICROPHONE +stop(callback: AsyncCallback\): void -**System capability**: SystemCapability.Multimedia.Media.VideoRecorder +Stops recording. This API uses an asynchronous callback to return the result. -**System API**: This is a system API. +This API can be called only after the **start()** or **pause()** API is called. + +For audio-only recording, you can call **prepare()** again for re-recording. For video-only recording or audio and video recording, you can call **prepare()** and **getInputSurface()** again for re-recording. + +**System capability**: SystemCapability.Multimedia.Media.AVRecorder **Parameters** -| Name | Type | Mandatory| Description | -| -------- | -------------------------------------------- | ---- | ----------------------------------- | -| config | [VideoRecorderConfig](#videorecorderconfig9) | Yes | Video recording parameters to set. | -| callback | AsyncCallback\ | Yes | Callback used to return the result.| +| Name | Type | Mandatory| Description | +| -------- | -------------------- | ---- | ---------------------------- | +| callback | AsyncCallback\ | Yes | Callback used to return the result.| **Error codes** For details about the error codes, see [Media Error Codes](../errorcodes/errorcode-media.md). -| ID| Error Message | -| -------- | ------------------------------------------ | -| 201 | Permission denied. Return by callback. | -| 401 | Parameter error. Return by callback. | -| 5400102 | Operation not allowed. Return by callback. | -| 5400105 | Service died. Return by callback. | +| ID| Error Message | +| -------- | --------------------------------------- | +| 5400102 | Operate not permit. Return by callback. | +| 5400103 | IO error. Return by callback. | +| 5400105 | Service died. Return by callback. | **Example** ```js -let videoProfile = { - audioBitrate : 48000, - audioChannels : 2, - audioCodec : 'audio/mp4a-latm', - audioSampleRate : 48000, - fileFormat : 'mp4', - videoBitrate : 48000, - videoCodec : 'video/mp4v-es', - videoFrameWidth : 640, - videoFrameHeight : 480, - videoFrameRate : 30 -} - -let videoConfig = { - audioSourceType : 1, - videoSourceType : 0, - profile : videoProfile, - url : 'fd://xx', // The file must be created by the caller and granted with proper permissions. - orientationHint : 0, - location : { latitude : 30, longitude : 130 }, -} - -// asyncallback -videoRecorder.prepare(videoConfig, (err) => { +AVRecorder.stop((err) => { if (err == null) { - console.info('prepare success'); + console.info('stop AVRecorder success'); } else { - console.info('prepare failed and error is ' + err.message); + console.info('stop AVRecorder failed and error is ' + err.message); } -}) +}); ``` -### prepare9+ - -prepare(config: VideoRecorderConfig): Promise\; - -Sets video recording parameters. This API uses a promise to return the result. +### stop9+ -**Required permissions:** ohos.permission.MICROPHONE +stop(): Promise\ -**System capability**: SystemCapability.Multimedia.Media.VideoRecorder +Stops recording. This API uses a promise to return the result. -**System API**: This is a system API. +This API can be called only after the **start()** or **pause()** API is called. -**Parameters** +For audio-only recording, you can call **prepare()** again for re-recording. For video-only recording or audio and video recording, you can call **prepare()** and **getInputSurface()** again for re-recording. -| Name| Type | Mandatory| Description | -| ------ | -------------------------------------------- | ---- | ------------------------ | -| config | [VideoRecorderConfig](#videorecorderconfig9) | Yes | Video recording parameters to set.| +**System capability**: SystemCapability.Multimedia.Media.AVRecorder **Return value** -| Type | Description | -| -------------- | ---------------------------------------- | +| Type | Description | +| -------------- | ------------------------------------- | | Promise\ | Promise used to return the result.| **Error codes** For details about the error codes, see [Media Error Codes](../errorcodes/errorcode-media.md). -| ID| Error Message | -| -------- | ----------------------------------------- | -| 201 | Permission denied. Return by promise. | -| 401 | Parameter error. Return by promise. | -| 5400102 | Operation not allowed. Return by promise. | -| 5400105 | Service died. Return by promise. | +| ID| Error Message | +| -------- | -------------------------------------- | +| 5400102 | Operate not permit. Return by promise. | +| 5400103 | IO error. Return by promise. | +| 5400105 | Service died. Return by promise. | **Example** ```js -let videoProfile = { - audioBitrate : 48000, - audioChannels : 2, - audioCodec : 'audio/mp4a-latm', - audioSampleRate : 48000, - fileFormat : 'mp4', - videoBitrate : 48000, - videoCodec : 'video/mp4v-es', - videoFrameWidth : 640, - videoFrameHeight : 480, - videoFrameRate : 30 -} - -let videoConfig = { - audioSourceType : 1, - videoSourceType : 0, - profile : videoProfile, - url : 'fd://xx', // The file must be created by the caller and granted with proper permissions. - orientationHint : 0, - location : { latitude : 30, longitude : 130 }, -} - -// promise -videoRecorder.prepare(videoConfig).then(() => { - console.info('prepare success'); +AVRecorder.stop().then(() => { + console.info('stop AVRecorder success'); }).catch((err) => { - console.info('prepare failed and catch error is ' + err.message); + console.info('stop AVRecorder failed and catch error is ' + err.message); }); ``` -### getInputSurface9+ - -getInputSurface(callback: AsyncCallback\): void; - -Obtains the surface required for recording in asynchronous mode. This surface is provided for the caller. The caller obtains the **surfaceBuffer** from this surface and fills in the corresponding data. +### reset9+ -Note that the video data must carry the timestamp (in ns) and buffer size, and the start time of the timestamp is based on the system startup time. +reset(callback: AsyncCallback\): void -This API can be called only after [prepare()](#videorecorder_prepare1) is called. +Resets audio and video recording. This API uses an asynchronous callback to return the result. -**System capability**: SystemCapability.Multimedia.Media.VideoRecorder +For audio-only recording, you can call **prepare()** again for re-recording. For video-only recording or audio and video recording, you can call **prepare()** and **getInputSurface()** again for re-recording. -**System API**: This is a system API. +**System capability**: SystemCapability.Multimedia.Media.AVRecorder **Parameters** -| Name | Type | Mandatory| Description | -| -------- | ---------------------- | ---- | --------------------------- | -| callback | AsyncCallback\ | Yes | Callback used to obtain the result.| +| Name | Type | Mandatory| Description | +| -------- | -------------------- | ---- | ------------------------------ | +| callback | AsyncCallback\ | Yes | Callback used to return the result.| **Error codes** For details about the error codes, see [Media Error Codes](../errorcodes/errorcode-media.md). -| ID| Error Message | -| -------- | ------------------------------------------ | -| 5400102 | Operation not allowed. Return by callback. | -| 5400103 | I/O error. Return by callback. | -| 5400105 | Service died. Return by callback. | +| ID| Error Message | +| -------- | --------------------------------- | +| 5400103 | IO error. Return by callback. | +| 5400105 | Service died. Return by callback. | **Example** ```js -// asyncallback -let surfaceID = null; // Surface ID passed to the external system. -videoRecorder.getInputSurface((err, surfaceId) => { +AVRecorder.reset((err) => { if (err == null) { - console.info('getInputSurface success'); - surfaceID = surfaceId; + console.info('reset AVRecorder success'); } else { - console.info('getInputSurface failed and error is ' + err.message); + console.info('reset AVRecorder failed and error is ' + err.message); } }); ``` -### getInputSurface9+ - -getInputSurface(): Promise\; - - Obtains the surface required for recording in asynchronous mode. This surface is provided for the caller. The caller obtains the **surfaceBuffer** from this surface and fills in the corresponding data. +### reset9+ -Note that the video data must carry the timestamp (in ns) and buffer size, and the start time of the timestamp is based on the system startup time. +reset(): Promise\ -This API can be called only after [prepare()](#videorecorder_prepare1) is called. +Resets audio and video recording. This API uses a promise to return the result. -**System capability**: SystemCapability.Multimedia.Media.VideoRecorder +For audio-only recording, you can call **prepare()** again for re-recording. For video-only recording or audio and video recording, you can call **prepare()** and **getInputSurface()** again for re-recording. -**System API**: This is a system API. +**System capability**: SystemCapability.Multimedia.Media.AVRecorder **Return value** -| Type | Description | -| ---------------- | -------------------------------- | -| Promise\ | Promise used to return the result.| +| Type | Description | +| -------------- | --------------------------------------- | +| Promise\ | Promise used to return the result.| **Error codes** For details about the error codes, see [Media Error Codes](../errorcodes/errorcode-media.md). -| ID| Error Message | -| -------- | ----------------------------------------- | -| 5400102 | Operation not allowed. Return by promise. | -| 5400103 | I/O error. Return by promise. | -| 5400105 | Service died. Return by promise. | +| ID| Error Message | +| -------- | -------------------------------- | +| 5400103 | IO error. Return by promise. | +| 5400105 | Service died. Return by promise. | **Example** ```js -// promise -let surfaceID = null; // Surface ID passed to the external system. -videoRecorder.getInputSurface().then((surfaceId) => { - console.info('getInputSurface success'); - surfaceID = surfaceId; +AVRecorder.reset().then(() => { + console.info('reset AVRecorder success'); }).catch((err) => { - console.info('getInputSurface failed and catch error is ' + err.message); + console.info('reset AVRecorder failed and catch error is ' + err.message); }); ``` -### start9+ - -start(callback: AsyncCallback\): void; +### release9+ -Starts video recording. This API uses an asynchronous callback to return the result. +release(callback: AsyncCallback\): void -This API can be called only after [prepare()](#videorecorder_prepare1) and [getInputSurface()](#getinputsurface9) are called, because the data source must pass data to the surface first. +Releases the audio and video recording resources. This API uses an asynchronous callback to return the result. -**System capability**: SystemCapability.Multimedia.Media.VideoRecorder +After the resources are released, you can no longer perform any operation on the **AVRecorder** instance. -**System API**: This is a system API. +**System capability**: SystemCapability.Multimedia.Media.AVRecorder **Parameters** -| Name | Type | Mandatory| Description | -| -------- | -------------------- | ---- | ---------------------------- | +| Name | Type | Mandatory| Description | +| -------- | -------------------- | ---- | ---------------------------------- | | callback | AsyncCallback\ | Yes | Callback used to return the result.| **Error codes** For details about the error codes, see [Media Error Codes](../errorcodes/errorcode-media.md). -| ID| Error Message | -| -------- | ------------------------------------------ | -| 5400102 | Operation not allowed. Return by callback. | -| 5400103 | I/O error. Return by callback. | -| 5400105 | Service died. Return by callback. | +| ID| Error Message | +| -------- | --------------------------------- | +| 5400105 | Service died. Return by callback. | **Example** ```js -// asyncallback -videoRecorder.start((err) => { +AVRecorder.release((err) => { if (err == null) { - console.info('start videorecorder success'); + console.info('release AVRecorder success'); } else { - console.info('start videorecorder failed and error is ' + err.message); + console.info('release AVRecorder failed and error is ' + err.message); } }); ``` -### start9+ - -start(): Promise\; +### release9+ -Starts video recording. This API uses a promise to return the result. +release(): Promise\ -This API can be called only after [prepare()](#videorecorder_prepare1) and [getInputSurface()](#getinputsurface9) are called, because the data source must pass data to the surface first. +Releases the audio and video recording resources. This API uses a promise to return the result. -**System capability**: SystemCapability.Multimedia.Media.VideoRecorder +After the resources are released, you can no longer perform any operation on the **AVRecorder** instance. -**System API**: This is a system API. +**System capability**: SystemCapability.Multimedia.Media.AVRecorder **Return value** -| Type | Description | -| -------------- | ------------------------------------- | +| Type | Description | +| -------------- | ------------------------------------------- | | Promise\ | Promise used to return the result.| **Error codes** For details about the error codes, see [Media Error Codes](../errorcodes/errorcode-media.md). -| ID| Error Message | -| -------- | ----------------------------------------- | -| 5400102 | Operation not allowed. Return by promise. | -| 5400103 | I/O error. Return by promise. | -| 5400105 | Service died. Return by promise. | +| ID| Error Message | +| -------- | --------------------------------- | +| 5400105 | Service died. Return by callback. | **Example** ```js -// promise -videoRecorder.start().then(() => { - console.info('start videorecorder success'); +AVRecorder.release().then(() => { + console.info('release AVRecorder success'); }).catch((err) => { - console.info('start videorecorder failed and catch error is ' + err.message); + console.info('release AVRecorder failed and catch error is ' + err.message); }); ``` -### pause9+ - -pause(callback: AsyncCallback\): void; - -Pauses video recording. This API uses an asynchronous callback to return the result. +### on('stateChange')9+ -This API can be called only after [start()](#videorecorder_start1) is called. You can resume recording by calling [resume()](#videorecorder_resume1). +on(type: 'stateChange', callback: (state: AVRecorderState, reason: StateChangeReason) => void): void -**System capability**: SystemCapability.Multimedia.Media.VideoRecorder +Subscribes to AVRecorder state changes. An application can subscribe to only one AVRecorder state change event. When the application initiates multiple subscriptions to this event, the last subscription prevails. -**System API**: This is a system API. +**System capability**: SystemCapability.Multimedia.Media.AVRecorder **Parameters** -| Name | Type | Mandatory| Description | -| -------- | -------------------- | ---- | ---------------------------- | -| callback | AsyncCallback\ | Yes | Callback used to return the result.| - -**Error codes** - -For details about the error codes, see [Media Error Codes](../errorcodes/errorcode-media.md). - -| ID| Error Message | -| -------- | ------------------------------------------ | -| 5400102 | Operation not allowed. Return by callback. | -| 5400103 | I/O error. Return by callback. | -| 5400105 | Service died. Return by callback. | +| Name | Type | Mandatory| Description | +| -------- | -------- | ---- | ------------------------------------------------------------ | +| type | string | Yes | Event type, which is **'stateChange'** in this case. This event can be triggered by both user operations and the system.| +| callback | function | Yes | Callback invoked when the event is triggered. It reports the following information:
**state**: [AVRecorderState](#avrecorderstate9), indicating the AVRecorder state.
**reason**: [StateChangeReason](#statechangereason9), indicating the reason for the state transition.| **Example** ```js -// asyncallback -videoRecorder.pause((err) => { - if (err == null) { - console.info('pause videorecorder success'); - } else { - console.info('pause videorecorder failed and error is ' + err.message); +AVRecorder.on('stateChange', async (state, reason) => { + console.info('case state has changed, new state is :' + state + ',and new reason is : ' + reason); } }); ``` -### pause9+ - -pause(): Promise\; - -Pauses video recording. This API uses a promise to return the result. - -This API can be called only after [start()](#videorecorder_start1) is called. You can resume recording by calling [resume()](#videorecorder_resume1). - -**System capability**: SystemCapability.Multimedia.Media.VideoRecorder - -**System API**: This is a system API. +### off('stateChange')9+ -**Return value** +off(type: 'stateChange'): void -| Type | Description | -| -------------- | ------------------------------------- | -| Promise\ | Promise used to return the result.| +Unsubscribes from AVRecorder state changes. -**Error codes** +**System capability**: SystemCapability.Multimedia.Media.AVRecorder -For details about the error codes, see [Media Error Codes](../errorcodes/errorcode-media.md). +**Parameters** -| ID| Error Message | -| -------- | ----------------------------------------- | -| 5400102 | Operation not allowed. Return by promise. | -| 5400103 | I/O error. Return by promise. | -| 5400105 | Service died. Return by promise. | +| Name| Type | Mandatory| Description | +| ------ | ------ | ---- | ------------------------------------------------------------ | +| type | string | Yes | Event type, which is **'stateChange'** in this case. This event can be triggered by both user operations and the system.| **Example** ```js -// promise -videoRecorder.pause().then(() => { - console.info('pause videorecorder success'); -}).catch((err) => { - console.info('pause videorecorder failed and catch error is ' + err.message); -}); +AVRecorder.off('stateChange'); ``` -### resume9+ +### on('error')9+ -resume(callback: AsyncCallback\): void; +on(type: 'error', callback: ErrorCallback): void -Resumes video recording. This API uses an asynchronous callback to return the result. +Subscribes to AVRecorder errors. This event is used only for error prompt and does not require the user to stop recording control. If the [AVRecorderState](#avrecorderstate9) is also switched to error, call **reset()** or **release()** to exit the recording. -**System capability**: SystemCapability.Multimedia.Media.VideoRecorder +An application can subscribe to only one AVRecorder error event. When the application initiates multiple subscriptions to this event, the last subscription prevails. -**System API**: This is a system API. +**System capability**: SystemCapability.Multimedia.Media.AVRecorder **Parameters** -| Name | Type | Mandatory| Description | -| -------- | -------------------- | ---- | ---------------------------- | -| callback | AsyncCallback\ | Yes | Callback used to return the result.| +| Name | Type | Mandatory| Description | +| -------- | ------------- | ---- | ------------------------------------------------------------ | +| type | string | Yes | Event type, which is **'error'** in this case.
This event is triggered when an error occurs during recording.| +| callback | ErrorCallback | Yes | Callback invoked when the event is triggered. | **Error codes** For details about the error codes, see [Media Error Codes](../errorcodes/errorcode-media.md). -| ID| Error Message | -| -------- | ------------------------------------------ | -| 5400102 | Operation not allowed. Return by callback. | -| 5400103 | I/O error. Return by callback. | -| 5400105 | Service died. Return by callback. | +| ID| Error Message | +| -------- | --------------------------------- | +| 5400103 | IO error. Return by callback. | +| 5400105 | Service died. Return by callback. | **Example** ```js -// asyncallback -videoRecorder.resume((err) => { - if (err == null) { - console.info('resume videorecorder success'); - } else { - console.info('resume videorecorder failed and error is ' + err.message); - } +AVRecorder.on('error', (err) => { + console.info('case avRecorder.on(error) called, errMessage is ' + err.message); }); ``` -### resume9+ - -resume(): Promise\; +### off('error')9+ -Resumes video recording. This API uses a promise to return the result. +off(type: 'error'): void -**System capability**: SystemCapability.Multimedia.Media.VideoRecorder +Unsubscribes from AVRecorder errors. After the unsubscription, your application can no longer receive AVRecorder errors. -**System API**: This is a system API. +**System capability**: SystemCapability.Multimedia.Media.AVRecorder -**Return value** +**Parameters** -| Type | Description | -| -------------- | ------------------------------------- | -| Promise\ | Promise used to return the result.| +| Name| Type | Mandatory| Description | +| ------ | ------ | ---- | ------------------------------------------------------------ | +| type | string | Yes | Event type, which is **'error'** in this case.
This event is triggered when an error occurs during recording.| **Error codes** For details about the error codes, see [Media Error Codes](../errorcodes/errorcode-media.md). -| ID| Error Message | -| -------- | ----------------------------------------- | -| 5400102 | Operation not allowed. Return by promise. | -| 5400103 | I/O error. Return by promise. | -| 5400105 | Service died. Return by promise. | +| ID| Error Message | +| -------- | --------------------------------- | +| 5400103 | IO error. Return by callback. | +| 5400105 | Service died. Return by callback. | **Example** ```js -// promise -videoRecorder.resume().then(() => { - console.info('resume videorecorder success'); -}).catch((err) => { - console.info('resume videorecorder failed and catch error is ' + err.message); -}); +AVRecorder.off('error'); ``` -### stop9+ +## AVRecorderState9+ -stop(callback: AsyncCallback\): void; +Enumerates the AVRecorder states. You can obtain the state through the **state** attribute. -Stops video recording. This API uses an asynchronous callback to return the result. +**System capability**: SystemCapability.Multimedia.Media.AVRecorder -To start another recording, you must call [prepare()](#videorecorder_prepare1) and [getInputSurface()](#getinputsurface9) again. +| Name | Type | Description | +| -------- | ------ | ------------------------------------------------------------ | +| idle | string | The AVRecorder enters this state when the AVRecorder is just created or the [reset()](#avrecorder_reset) API is called in any non-released state. In this state, you can call [prepare()](#avrecorder_prepare) to set recording parameters. | +| prepared | string | The AVRecorder enters this state when the parameters are set. In this state, you can call [start()](#avrecorder_start) to start recording.| +| started | string | The AVRecorder enters this state when the recording starts. In this state, you can call [pause()](#avrecorder_pause) to pause the recording or call [stop()](#avrecorder_stop) to stop recording.| +| paused | string | The AVRecorder enters this state when the recording is paused. In this state, you can call [resume()](#avrecorder_resume) to continue the recording or call [stop()](#avrecorder_stop) to stop recording.| +| stopped | string | The AVRecorder enters this state when the recording stops. In this state, you can call [prepare()](#avrecorder_prepare) to set recording parameters.| +| released | string | The AVRecorder enters this state when the recording resources are released. In this state, no operation can be performed. In any other state, you can call [release()](#avrecorder_release) to enter the released state.| +| error | string | The AVRecorder enters this state when an irreversible error occurs in the **AVRecorder** instance. In this state, the [on('error') event](#avrecorder_onerror) is reported, with the detailed error cause. In the error state, you must call [reset()](#avrecorder_reset) to reset the **AVRecorder** instance or call [release()](#avrecorder_release) to release the resources.| -**System capability**: SystemCapability.Multimedia.Media.VideoRecorder +## AVRecorderConfig9+ -**System API**: This is a system API. +Describes the audio and video recording parameters. -**Parameters** +**System capability**: SystemCapability.Multimedia.Media.AVRecorder -| Name | Type | Mandatory| Description | -| -------- | -------------------- | ---- | ---------------------------- | -| callback | AsyncCallback\ | Yes | Callback used to return the result.| +| Name | Type | Mandatory| Description | +| --------------- | ---------------------------------------- | ---- | ------------------------------------------------------------ | +| audioSourceType | [AudioSourceType](#audiosourcetype9) | No | Type of the audio source to record. This parameter is mandatory for audio recording. | +| videoSourceType | [VideoSourceType](#videosourcetype9) | No | Type of the video source to record. This parameter is mandatory for video recording. | +| profile | [AVRecorderProfile](#avrecorderprofile9) | Yes | Recording profile. This parameter is mandatory. | +| url | string | Yes | Recording output URL: fd://xx (fd number).
![img](figures/en-us_image_url.png)
This parameter is mandatory. | +| rotation | number | No | Rotation angle of the recorded video. The value can only be 0, 90, 180, or 270. | +| location | [Location](#location) | No | Geographical location of the recorded video. | -**Error codes** +The **audioSourceType** and **videoSourceType** parameters are used to distinguish audio-only recording, video-only recording, and audio and video recording. For audio-only recording, set only **audioSourceType**. For video-only recording, set only **videoSourceType**. For audio and video recording, set both **audioSourceType** and **videoSourceType**. -For details about the error codes, see [Media Error Codes](../errorcodes/errorcode-media.md). +## AVRecorderProfile9+ -| ID| Error Message | -| -------- | ------------------------------------------ | -| 5400102 | Operation not allowed. Return by callback. | -| 5400103 | I/O error. Return by callback. | -| 5400105 | Service died. Return by callback. | +Describes the audio and video recording profile. -**Example** +**System capability**: SystemCapability.Multimedia.Media.AVRecorder -```js -// asyncallback -videoRecorder.stop((err) => { - if (err == null) { - console.info('stop videorecorder success'); - } else { - console.info('stop videorecorder failed and error is ' + err.message); - } -}); -``` +| Name | Type | Mandatory| Description | +| ---------------- | -------------------------------------------- | ---- | ------------------------------------------------------------ | +| audioBitrate | number | No | Audio encoding bit rate. This parameter is mandatory for audio recording. | +| audioChannels | number | No | Number of audio channels. This parameter is mandatory for audio recording. | +| audioCodec | [CodecMimeType](#codecmimetype8) | No | Audio encoding format. This parameter is mandatory for audio recording. Only **AUDIO_AAC** is supported. | +| audioSampleRate | number | No | Audio sampling rate. This parameter is mandatory for audio recording. | +| fileFormat | [ContainerFormatType](#containerformattype8) | Yes | Container format of a file. This parameter is mandatory. | +| videoBitrate | number | No | Video encoding bit rate. This parameter is mandatory for video recording. | +| videoCodec | [CodecMimeType](#codecmimetype8) | No | Video encoding format. This parameter is mandatory for video recording. Only **VIDEO_AVC** and **VIDEO_MPEG4** are supported.| +| videoFrameWidth | number | No | Width of a video frame. This parameter is mandatory for video recording. | +| videoFrameHeight | number | No | Height of a video frame. This parameter is mandatory for video recording. | +| videoFrameRate | number | No | Video frame rate. This parameter is mandatory for video recording. | -### stop9+ +## AudioSourceType9+ -stop(): Promise\; +Enumerates the audio source types for video recording. -Stops video recording. This API uses a promise to return the result. +**System capability**: SystemCapability.Multimedia.Media.AVRecorder -To start another recording, you must call [prepare()](#videorecorder_prepare1) and [getInputSurface()](#getinputsurface9) again. +| Name | Value | Description | +| ------------------------- | ---- | ---------------------- | +| AUDIO_SOURCE_TYPE_DEFAULT | 0 | Default audio input source.| +| AUDIO_SOURCE_TYPE_MIC | 1 | Mic audio input source. | -**System capability**: SystemCapability.Multimedia.Media.VideoRecorder +## VideoSourceType9+ -**System API**: This is a system API. +Enumerates the video source types for video recording. -**Return value** +**System capability**: SystemCapability.Multimedia.Media.AVRecorder -| Type | Description | -| -------------- | ------------------------------------- | -| Promise\ | Promise used to return the result.| +| Name | Value | Description | +| ----------------------------- | ---- | ------------------------------- | +| VIDEO_SOURCE_TYPE_SURFACE_YUV | 0 | The input surface carries raw data.| +| VIDEO_SOURCE_TYPE_SURFACE_ES | 1 | The input surface carries ES data. | -**Error codes** +## ContainerFormatType8+ -For details about the error codes, see [Media Error Codes](../errorcodes/errorcode-media.md). +Enumerates the container format types (CFTs). -| ID| Error Message | -| -------- | ----------------------------------------- | -| 5400102 | Operation not allowed. Return by promise. | -| 5400103 | I/O error. Return by promise. | -| 5400105 | Service died. Return by promise. | +**System capability**: SystemCapability.Multimedia.Media.Core -**Example** +| Name | Value | Description | +| ----------- | ----- | --------------------- | +| CFT_MPEG_4 | 'mp4' | Video container format MP4.| +| CFT_MPEG_4A | 'm4a' | Audio container format M4A.| -```js -// promise -videoRecorder.stop().then(() => { - console.info('stop videorecorder success'); -}).catch((err) => { - console.info('stop videorecorder failed and catch error is ' + err.message); -}); -``` +## Location -### release9+ +Describes the geographical location of the recorded video. -release(callback: AsyncCallback\): void; +**System capability**: SystemCapability.Multimedia.Media.Core + +| Name | Type | Mandatory| Description | +| --------- | ------ | ---- | ---------------- | +| latitude | number | Yes | Latitude of the geographical location.| +| longitude | number | Yes | Longitude of the geographical location.| + +## VideoRecorder9+ + +> **NOTE** +> +> This class is deprecated after AVRecorder9+ is released. You are advised to use [AVRecorder](#avrecorder9) instead. + +Implements video recording. Before calling any API in the **VideoRecorder** class, you must use [createVideoRecorder()](#mediacreatevideorecorder9) to create a [VideoRecorder](#videorecorder9) instance. + +For details about the video recording demo, see [Video Recording Development](../../media/video-recorder.md). + +### Attributes + +**System capability**: SystemCapability.Multimedia.Media.VideoRecorder + +**System API**: This is a system API. + +| Name | Type | Readable| Writable| Description | +| ------------------ | -------------------------------------- | ---- | ---- | ---------------- | +| state9+ | [VideoRecordState](#videorecordstate9) | Yes | No | Video recording state.| + +### prepare9+ + +prepare(config: VideoRecorderConfig, callback: AsyncCallback\): void; + +Sets video recording parameters. This API uses an asynchronous callback to return the result. -Releases the video recording resource. This API uses an asynchronous callback to return the result. +**Required permissions:** ohos.permission.MICROPHONE **System capability**: SystemCapability.Multimedia.Media.VideoRecorder @@ -2442,73 +2587,134 @@ Releases the video recording resource. This API uses an asynchronous callback to **Parameters** -| Name | Type | Mandatory| Description | -| -------- | -------------------- | ---- | -------------------------------- | -| callback | AsyncCallback\ | Yes | Callback used to return the result.| +| Name | Type | Mandatory| Description | +| -------- | -------------------------------------------- | ---- | ----------------------------------- | +| config | [VideoRecorderConfig](#videorecorderconfig9) | Yes | Video recording parameters to set. | +| callback | AsyncCallback\ | Yes | Callback used to return the result.| **Error codes** For details about the error codes, see [Media Error Codes](../errorcodes/errorcode-media.md). -| ID| Error Message | -| -------- | --------------------------------- | -| 5400105 | Service died. Return by callback. | +| ID| Error Message | +| -------- | ------------------------------------------ | +| 201 | Permission denied. Return by callback. | +| 401 | Parameter error. Return by callback. | +| 5400102 | Operation not allowed. Return by callback. | +| 5400105 | Service died. Return by callback. | **Example** ```js +let videoProfile = { + audioBitrate : 48000, + audioChannels : 2, + audioCodec : 'audio/mp4a-latm', + audioSampleRate : 48000, + fileFormat : 'mp4', + videoBitrate : 48000, + videoCodec : 'video/mp4v-es', + videoFrameWidth : 640, + videoFrameHeight : 480, + videoFrameRate : 30 +} + +let videoConfig = { + audioSourceType : 1, + videoSourceType : 0, + profile : videoProfile, + url : 'fd://xx', // The file must be created by the caller and granted with proper permissions. + orientationHint : 0, + location : { latitude : 30, longitude : 130 }, +} + // asyncallback -videoRecorder.release((err) => { +videoRecorder.prepare(videoConfig, (err) => { if (err == null) { - console.info('release videorecorder success'); + console.info('prepare success'); } else { - console.info('release videorecorder failed and error is ' + err.message); + console.info('prepare failed and error is ' + err.message); } -}); +}) ``` -### release9+ +### prepare9+ -release(): Promise\; +prepare(config: VideoRecorderConfig): Promise\; + +Sets video recording parameters. This API uses a promise to return the result. -Releases the video recording resource. This API uses a promise to return the result. +**Required permissions:** ohos.permission.MICROPHONE **System capability**: SystemCapability.Multimedia.Media.VideoRecorder **System API**: This is a system API. +**Parameters** + +| Name| Type | Mandatory| Description | +| ------ | -------------------------------------------- | ---- | ------------------------ | +| config | [VideoRecorderConfig](#videorecorderconfig9) | Yes | Video recording parameters to set.| + **Return value** -| Type | Description | -| -------------- | ----------------------------------------- | +| Type | Description | +| -------------- | ---------------------------------------- | | Promise\ | Promise used to return the result.| **Error codes** For details about the error codes, see [Media Error Codes](../errorcodes/errorcode-media.md). -| ID| Error Message | -| -------- | --------------------------------- | -| 5400105 | Service died. Return by callback. | +| ID| Error Message | +| -------- | ----------------------------------------- | +| 201 | Permission denied. Return by promise. | +| 401 | Parameter error. Return by promise. | +| 5400102 | Operation not allowed. Return by promise. | +| 5400105 | Service died. Return by promise. | **Example** ```js +let videoProfile = { + audioBitrate : 48000, + audioChannels : 2, + audioCodec : 'audio/mp4a-latm', + audioSampleRate : 48000, + fileFormat : 'mp4', + videoBitrate : 48000, + videoCodec : 'video/mp4v-es', + videoFrameWidth : 640, + videoFrameHeight : 480, + videoFrameRate : 30 +} + +let videoConfig = { + audioSourceType : 1, + videoSourceType : 0, + profile : videoProfile, + url : 'fd://xx', // The file must be created by the caller and granted with proper permissions. + orientationHint : 0, + location : { latitude : 30, longitude : 130 }, +} + // promise -videoRecorder.release().then(() => { - console.info('release videorecorder success'); +videoRecorder.prepare(videoConfig).then(() => { + console.info('prepare success'); }).catch((err) => { - console.info('release videorecorder failed and catch error is ' + err.message); + console.info('prepare failed and catch error is ' + err.message); }); ``` -### reset9+ +### getInputSurface9+ -reset(callback: AsyncCallback\): void; +getInputSurface(callback: AsyncCallback\): void; -Resets video recording. This API uses an asynchronous callback to return the result. +Obtains the surface required for recording. This API uses an asynchronous callback to return the result. The caller obtains the **surfaceBuffer** from this surface and fills in the corresponding data. -To start another recording, you must call [prepare()](#videorecorder_prepare1) and [getInputSurface()](#getinputsurface9) again. +Note that the video data must carry the timestamp (in ns) and buffer size, and the start time of the timestamp must be based on the system startup time. + +This API can be called only after [prepare()](#videorecorder_prepare1) is called. **System capability**: SystemCapability.Multimedia.Media.VideoRecorder @@ -2516,39 +2722,44 @@ To start another recording, you must call [prepare()](#videorecorder_prepare1) a **Parameters** -| Name | Type | Mandatory| Description | -| -------- | -------------------- | ---- | ---------------------------- | -| callback | AsyncCallback\ | Yes | Callback used to return the result.| +| Name | Type | Mandatory| Description | +| -------- | ---------------------- | ---- | --------------------------- | +| callback | AsyncCallback\ | Yes | Callback used to obtain the result.| **Error codes** For details about the error codes, see [Media Error Codes](../errorcodes/errorcode-media.md). -| ID| Error Message | -| -------- | --------------------------------- | -| 5400103 | I/O error. Return by callback. | -| 5400105 | Service died. Return by callback. | +| ID| Error Message | +| -------- | ------------------------------------------ | +| 5400102 | Operation not allowed. Return by callback. | +| 5400103 | I/O error. Return by callback. | +| 5400105 | Service died. Return by callback. | **Example** ```js // asyncallback -videoRecorder.reset((err) => { +let surfaceID = null; // Surface ID passed to the external system. +videoRecorder.getInputSurface((err, surfaceId) => { if (err == null) { - console.info('reset videorecorder success'); + console.info('getInputSurface success'); + surfaceID = surfaceId; } else { - console.info('reset videorecorder failed and error is ' + err.message); + console.info('getInputSurface failed and error is ' + err.message); } }); ``` -### reset9+ +### getInputSurface9+ -reset(): Promise\; +getInputSurface(): Promise\; -Resets video recording. This API uses a promise to return the result. + Obtains the surface required for recording. This API uses a promise to return the result. The caller obtains the **surfaceBuffer** from this surface and fills in the corresponding data. -To start another recording, you must call [prepare()](#videorecorder_prepare1) and [getInputSurface()](#getinputsurface9) again. +Note that the video data must carry the timestamp (in ns) and buffer size, and the start time of the timestamp must be based on the system startup time. + +This API can be called only after [prepare()](#videorecorder_prepare1) is called. **System capability**: SystemCapability.Multimedia.Media.VideoRecorder @@ -2556,162 +2767,2240 @@ To start another recording, you must call [prepare()](#videorecorder_prepare1) a **Return value** -| Type | Description | -| -------------- | ------------------------------------- | -| Promise\ | Promise used to return the result.| +| Type | Description | +| ---------------- | -------------------------------- | +| Promise\ | Promise used to return the result.| **Error codes** For details about the error codes, see [Media Error Codes](../errorcodes/errorcode-media.md). -| ID| Error Message | -| -------- | -------------------------------- | -| 5400103 | I/O error. Return by promise. | -| 5400105 | Service died. Return by promise. | +| ID| Error Message | +| -------- | ----------------------------------------- | +| 5400102 | Operation not allowed. Return by promise. | +| 5400103 | I/O error. Return by promise. | +| 5400105 | Service died. Return by promise. | **Example** ```js // promise -videoRecorder.reset().then(() => { - console.info('reset videorecorder success'); +let surfaceID = null; // Surface ID passed to the external system. +videoRecorder.getInputSurface().then((surfaceId) => { + console.info('getInputSurface success'); + surfaceID = surfaceId; }).catch((err) => { - console.info('reset videorecorder failed and catch error is ' + err.message); + console.info('getInputSurface failed and catch error is ' + err.message); }); ``` -### on('error')9+ +### start9+ -on(type: 'error', callback: ErrorCallback): void +start(callback: AsyncCallback\): void; -Subscribes to video recording error events. After an error event is reported, you must handle the event and exit the recording. +Starts video recording. This API uses an asynchronous callback to return the result. + +This API can be called only after [prepare()](#videorecorder_prepare1) and [getInputSurface()](#getinputsurface9) are called, because the data source must pass data to the surface first. **System capability**: SystemCapability.Multimedia.Media.VideoRecorder +**System API**: This is a system API. + **Parameters** -| Name | Type | Mandatory| Description | -| -------- | ------------- | ---- | ------------------------------------------------------------ | -| type | string | Yes | Event type, which is **'error'** in this case.
The **'error'** event is triggered when an error occurs during video recording.| -| callback | ErrorCallback | Yes | Callback invoked when the event is triggered. | +| Name | Type | Mandatory| Description | +| -------- | -------------------- | ---- | ---------------------------- | +| callback | AsyncCallback\ | Yes | Callback used to return the result.| **Error codes** For details about the error codes, see [Media Error Codes](../errorcodes/errorcode-media.md). -| ID| Error Message | -| -------- | --------------------------------- | -| 5400103 | I/O error. Return by callback. | -| 5400105 | Service died. Return by callback. | +| ID| Error Message | +| -------- | ------------------------------------------ | +| 5400102 | Operation not allowed. Return by callback. | +| 5400103 | I/O error. Return by callback. | +| 5400105 | Service died. Return by callback. | **Example** ```js -// This event is reported when an error occurs during the retrieval of videoRecordState. -videoRecorder.on('error', (error) => { // Set the 'error' event callback. - console.info(`audio error called, error: ${error}`); -}) +// asyncallback +videoRecorder.start((err) => { + if (err == null) { + console.info('start videorecorder success'); + } else { + console.info('start videorecorder failed and error is ' + err.message); + } +}); ``` -## VideoRecordState9+ - -Enumerates the video recording states. You can obtain the state through the **state** attribute. - -**System capability**: SystemCapability.Multimedia.Media.VideoRecorder - -**System API**: This is a system API. +### start9+ -| Name | Type | Description | -| -------- | ------ | ---------------------- | -| idle | string | The video recorder is idle. | -| prepared | string | The video recording parameters are set.| -| playing | string | Video recording is in progress. | -| paused | string | Video recording is paused. | -| stopped | string | Video recording is stopped. | -| error | string | Video recording is in the error state. | +start(): Promise\; -## VideoRecorderConfig9+ +Starts video recording. This API uses a promise to return the result. -Describes the video recording parameters. +This API can be called only after [prepare()](#videorecorder_prepare1) and [getInputSurface()](#getinputsurface9) are called, because the data source must pass data to the surface first. **System capability**: SystemCapability.Multimedia.Media.VideoRecorder **System API**: This is a system API. -| Name | Type | Mandatory| Description | -| --------------- | ---------------------------------------------- | ---- | ------------------------------------------------------------ | -| audioSourceType | [AudioSourceType](#audiosourcetype9) | Yes | Type of the audio source for video recording. | -| videoSourceType | [VideoSourceType](#videosourcetype9) | Yes | Type of the video source for video recording. | -| profile | [VideoRecorderProfile](#videorecorderprofile9) | Yes | Video recording profile. | -| rotation | number | No | Rotation angle of the recorded video. | -| location | [Location](#location) | No | Geographical location of the recorded video. | -| url | string | Yes | Video output URL. Supported: fd://xx (fd number)
![](figures/en-us_image_url.png) | +**Return value** -## AudioSourceType9+ +| Type | Description | +| -------------- | ------------------------------------- | +| Promise\ | Promise used to return the result.| -Enumerates the audio source types for video recording. +**Error codes** + +For details about the error codes, see [Media Error Codes](../errorcodes/errorcode-media.md). + +| ID| Error Message | +| -------- | ----------------------------------------- | +| 5400102 | Operation not allowed. Return by promise. | +| 5400103 | I/O error. Return by promise. | +| 5400105 | Service died. Return by promise. | + +**Example** + +```js +// promise +videoRecorder.start().then(() => { + console.info('start videorecorder success'); +}).catch((err) => { + console.info('start videorecorder failed and catch error is ' + err.message); +}); +``` + +### pause9+ + +pause(callback: AsyncCallback\): void; + +Pauses video recording. This API uses an asynchronous callback to return the result. + +This API can be called only after [start()](#videorecorder_start1) is called. You can resume recording by calling [resume()](#videorecorder_resume1). **System capability**: SystemCapability.Multimedia.Media.VideoRecorder **System API**: This is a system API. -| Name | Value | Description | -| ------------------------- | ---- | ---------------------- | -| AUDIO_SOURCE_TYPE_DEFAULT | 0 | Default audio input source.| -| AUDIO_SOURCE_TYPE_MIC | 1 | Mic audio input source. | +**Parameters** -## VideoSourceType9+ +| Name | Type | Mandatory| Description | +| -------- | -------------------- | ---- | ---------------------------- | +| callback | AsyncCallback\ | Yes | Callback used to return the result.| -Enumerates the video source types for video recording. +**Error codes** + +For details about the error codes, see [Media Error Codes](../errorcodes/errorcode-media.md). + +| ID| Error Message | +| -------- | ------------------------------------------ | +| 5400102 | Operation not allowed. Return by callback. | +| 5400103 | I/O error. Return by callback. | +| 5400105 | Service died. Return by callback. | + +**Example** + +```js +// asyncallback +videoRecorder.pause((err) => { + if (err == null) { + console.info('pause videorecorder success'); + } else { + console.info('pause videorecorder failed and error is ' + err.message); + } +}); +``` + +### pause9+ + +pause(): Promise\; + +Pauses video recording. This API uses a promise to return the result. + +This API can be called only after [start()](#videorecorder_start1) is called. You can resume recording by calling [resume()](#videorecorder_resume1). **System capability**: SystemCapability.Multimedia.Media.VideoRecorder **System API**: This is a system API. -| Name | Value | Description | -| ----------------------------- | ---- | ------------------------------- | -| VIDEO_SOURCE_TYPE_SURFACE_YUV | 0 | The input surface carries raw data.| -| VIDEO_SOURCE_TYPE_SURFACE_ES | 1 | The input surface carries ES data. | +**Return value** -## VideoRecorderProfile9+ +| Type | Description | +| -------------- | ------------------------------------- | +| Promise\ | Promise used to return the result.| -Describes the video recording profile. +**Error codes** + +For details about the error codes, see [Media Error Codes](../errorcodes/errorcode-media.md). + +| ID| Error Message | +| -------- | ----------------------------------------- | +| 5400102 | Operation not allowed. Return by promise. | +| 5400103 | I/O error. Return by promise. | +| 5400105 | Service died. Return by promise. | + +**Example** + +```js +// promise +videoRecorder.pause().then(() => { + console.info('pause videorecorder success'); +}).catch((err) => { + console.info('pause videorecorder failed and catch error is ' + err.message); +}); +``` + +### resume9+ + +resume(callback: AsyncCallback\): void; + +Resumes video recording. This API uses an asynchronous callback to return the result. **System capability**: SystemCapability.Multimedia.Media.VideoRecorder **System API**: This is a system API. -| Name | Type | Mandatory| Description | -| ---------------- | -------------------------------------------- | ---- | ---------------- | -| audioBitrate | number | Yes | Audio encoding bit rate.| -| audioChannels | number | Yes | Number of audio channels.| -| audioCodec | [CodecMimeType](#codecmimetype8) | Yes | Audio encoding format. | -| audioSampleRate | number | Yes | Audio sampling rate. | -| fileFormat | [ContainerFormatType](#containerformattype8) | Yes | Container format of a file.| -| videoBitrate | number | Yes | Video encoding bit rate.| -| videoCodec | [CodecMimeType](#codecmimetype8) | Yes | Video encoding format. | -| videoFrameWidth | number | Yes | Width of the recorded video frame.| -| videoFrameHeight | number | Yes | Height of the recorded video frame.| -| videoFrameRate | number | Yes | Video frame rate. | +**Parameters** -## ContainerFormatType8+ +| Name | Type | Mandatory| Description | +| -------- | -------------------- | ---- | ---------------------------- | +| callback | AsyncCallback\ | Yes | Callback used to return the result.| -Enumerates the container format types (CFTs). +**Error codes** -**System capability**: SystemCapability.Multimedia.Media.Core +For details about the error codes, see [Media Error Codes](../errorcodes/errorcode-media.md). -| Name | Value | Description | -| ----------- | ----- | --------------------- | -| CFT_MPEG_4 | 'mp4' | Video container format MPEG-4.| -| CFT_MPEG_4A | 'm4a' | Audio container format M4A.| +| ID| Error Message | +| -------- | ------------------------------------------ | +| 5400102 | Operation not allowed. Return by callback. | +| 5400103 | I/O error. Return by callback. | +| 5400105 | Service died. Return by callback. | -## Location +**Example** -Describes the geographical location of the recorded video. +```js +// asyncallback +videoRecorder.resume((err) => { + if (err == null) { + console.info('resume videorecorder success'); + } else { + console.info('resume videorecorder failed and error is ' + err.message); + } +}); +``` -**System capability**: SystemCapability.Multimedia.Media.Core +### resume9+ -| Name | Type | Mandatory| Description | -| --------- | ------ | ---- | ---------------- | -| latitude | number | Yes | Latitude of the geographical location.| -| longitude | number | Yes | Longitude of the geographical location.| +resume(): Promise\; + +Resumes video recording. This API uses a promise to return the result. + +**System capability**: SystemCapability.Multimedia.Media.VideoRecorder + +**System API**: This is a system API. + +**Return value** + +| Type | Description | +| -------------- | ------------------------------------- | +| Promise\ | Promise used to return the result.| + +**Error codes** + +For details about the error codes, see [Media Error Codes](../errorcodes/errorcode-media.md). + +| ID| Error Message | +| -------- | ----------------------------------------- | +| 5400102 | Operation not allowed. Return by promise. | +| 5400103 | I/O error. Return by promise. | +| 5400105 | Service died. Return by promise. | + +**Example** + +```js +// promise +videoRecorder.resume().then(() => { + console.info('resume videorecorder success'); +}).catch((err) => { + console.info('resume videorecorder failed and catch error is ' + err.message); +}); +``` + +### stop9+ + +stop(callback: AsyncCallback\): void; + +Stops video recording. This API uses an asynchronous callback to return the result. + +To start another recording, you must call [prepare()](#videorecorder_prepare1) and [getInputSurface()](#getinputsurface9) again. + +**System capability**: SystemCapability.Multimedia.Media.VideoRecorder + +**System API**: This is a system API. + +**Parameters** + +| Name | Type | Mandatory| Description | +| -------- | -------------------- | ---- | ---------------------------- | +| callback | AsyncCallback\ | Yes | Callback used to return the result.| + +**Error codes** + +For details about the error codes, see [Media Error Codes](../errorcodes/errorcode-media.md). + +| ID| Error Message | +| -------- | ------------------------------------------ | +| 5400102 | Operation not allowed. Return by callback. | +| 5400103 | I/O error. Return by callback. | +| 5400105 | Service died. Return by callback. | + +**Example** + +```js +// asyncallback +videoRecorder.stop((err) => { + if (err == null) { + console.info('stop videorecorder success'); + } else { + console.info('stop videorecorder failed and error is ' + err.message); + } +}); +``` + +### stop9+ + +stop(): Promise\; + +Stops video recording. This API uses a promise to return the result. + +To start another recording, you must call [prepare()](#videorecorder_prepare1) and [getInputSurface()](#getinputsurface9) again. + +**System capability**: SystemCapability.Multimedia.Media.VideoRecorder + +**System API**: This is a system API. + +**Return value** + +| Type | Description | +| -------------- | ------------------------------------- | +| Promise\ | Promise used to return the result.| + +**Error codes** + +For details about the error codes, see [Media Error Codes](../errorcodes/errorcode-media.md). + +| ID| Error Message | +| -------- | ----------------------------------------- | +| 5400102 | Operation not allowed. Return by promise. | +| 5400103 | I/O error. Return by promise. | +| 5400105 | Service died. Return by promise. | + +**Example** + +```js +// promise +videoRecorder.stop().then(() => { + console.info('stop videorecorder success'); +}).catch((err) => { + console.info('stop videorecorder failed and catch error is ' + err.message); +}); +``` + +### release9+ + +release(callback: AsyncCallback\): void; + +Releases the video recording resources. This API uses an asynchronous callback to return the result. + +**System capability**: SystemCapability.Multimedia.Media.VideoRecorder + +**System API**: This is a system API. + +**Parameters** + +| Name | Type | Mandatory| Description | +| -------- | -------------------- | ---- | -------------------------------- | +| callback | AsyncCallback\ | Yes | Callback used to return the result.| + +**Error codes** + +For details about the error codes, see [Media Error Codes](../errorcodes/errorcode-media.md). + +| ID| Error Message | +| -------- | --------------------------------- | +| 5400105 | Service died. Return by callback. | + +**Example** + +```js +// asyncallback +videoRecorder.release((err) => { + if (err == null) { + console.info('release videorecorder success'); + } else { + console.info('release videorecorder failed and error is ' + err.message); + } +}); +``` + +### release9+ + +release(): Promise\; + +Releases the video recording resources. This API uses a promise to return the result. + +**System capability**: SystemCapability.Multimedia.Media.VideoRecorder + +**System API**: This is a system API. + +**Return value** + +| Type | Description | +| -------------- | ----------------------------------------- | +| Promise\ | Promise used to return the result.| + +**Error codes** + +For details about the error codes, see [Media Error Codes](../errorcodes/errorcode-media.md). + +| ID| Error Message | +| -------- | --------------------------------- | +| 5400105 | Service died. Return by callback. | + +**Example** + +```js +// promise +videoRecorder.release().then(() => { + console.info('release videorecorder success'); +}).catch((err) => { + console.info('release videorecorder failed and catch error is ' + err.message); +}); +``` + +### reset9+ + +reset(callback: AsyncCallback\): void; + +Resets video recording. This API uses an asynchronous callback to return the result. + +To start another recording, you must call [prepare()](#videorecorder_prepare1) and [getInputSurface()](#getinputsurface9) again. + +**System capability**: SystemCapability.Multimedia.Media.VideoRecorder + +**System API**: This is a system API. + +**Parameters** + +| Name | Type | Mandatory| Description | +| -------- | -------------------- | ---- | ---------------------------- | +| callback | AsyncCallback\ | Yes | Callback used to return the result.| + +**Error codes** + +For details about the error codes, see [Media Error Codes](../errorcodes/errorcode-media.md). + +| ID| Error Message | +| -------- | --------------------------------- | +| 5400103 | I/O error. Return by callback. | +| 5400105 | Service died. Return by callback. | + +**Example** + +```js +// asyncallback +videoRecorder.reset((err) => { + if (err == null) { + console.info('reset videorecorder success'); + } else { + console.info('reset videorecorder failed and error is ' + err.message); + } +}); +``` + +### reset9+ + +reset(): Promise\; + +Resets video recording. This API uses a promise to return the result. + +To start another recording, you must call [prepare()](#videorecorder_prepare1) and [getInputSurface()](#getinputsurface9) again. + +**System capability**: SystemCapability.Multimedia.Media.VideoRecorder + +**System API**: This is a system API. + +**Return value** + +| Type | Description | +| -------------- | ------------------------------------- | +| Promise\ | Promise used to return the result.| + +**Error codes** + +For details about the error codes, see [Media Error Codes](../errorcodes/errorcode-media.md). + +| ID| Error Message | +| -------- | -------------------------------- | +| 5400103 | I/O error. Return by promise. | +| 5400105 | Service died. Return by promise. | + +**Example** + +```js +// promise +videoRecorder.reset().then(() => { + console.info('reset videorecorder success'); +}).catch((err) => { + console.info('reset videorecorder failed and catch error is ' + err.message); +}); +``` + +### on('error')9+ + +on(type: 'error', callback: ErrorCallback): void + +Subscribes to video recording error events. After an error event is reported, you must handle the event and exit the recording. + +**System capability**: SystemCapability.Multimedia.Media.VideoRecorder + +**Parameters** + +| Name | Type | Mandatory| Description | +| -------- | ------------- | ---- | ------------------------------------------------------------ | +| type | string | Yes | Event type, which is **'error'** in this case.
This event is triggered when an error occurs during video recording.| +| callback | ErrorCallback | Yes | Callback invoked when the event is triggered. | + +**Error codes** + +For details about the error codes, see [Media Error Codes](../errorcodes/errorcode-media.md). + +| ID| Error Message | +| -------- | --------------------------------- | +| 5400103 | I/O error. Return by callback. | +| 5400105 | Service died. Return by callback. | + +**Example** + +```js +// This event is reported when an error occurs during the retrieval of videoRecordState. +videoRecorder.on('error', (error) => { // Set the 'error' event callback. + console.info(`audio error called, error: ${error}`); +}) +``` + +## VideoRecordState9+ + +Enumerates the video recording states. You can obtain the state through the **state** attribute. + +**System capability**: SystemCapability.Multimedia.Media.VideoRecorder + +**System API**: This is a system API. + +| Name | Type | Description | +| -------- | ------ | ---------------------- | +| idle | string | The video recorder is idle. | +| prepared | string | The video recording parameters are set.| +| playing | string | Video recording is in progress. | +| paused | string | Video recording is paused. | +| stopped | string | Video recording is stopped. | +| error | string | Video recording is in the error state. | + +## VideoRecorderConfig9+ + +Describes the video recording parameters. + +**System capability**: SystemCapability.Multimedia.Media.VideoRecorder + +**System API**: This is a system API. + +| Name | Type | Mandatory| Description | +| --------------- | ---------------------------------------------- | ---- | ------------------------------------------------------------ | +| audioSourceType | [AudioSourceType](#audiosourcetype9) | Yes | Type of the audio source for video recording. | +| videoSourceType | [VideoSourceType](#videosourcetype9) | Yes | Type of the video source for video recording. | +| profile | [VideoRecorderProfile](#videorecorderprofile9) | Yes | Video recording profile. | +| rotation | number | No | Rotation angle of the recorded video. | +| location | [Location](#location) | No | Geographical location of the recorded video. | +| url | string | Yes | Video output URL. Supported: fd://xx (fd number)
![](figures/en-us_image_url.png) | + +## VideoRecorderProfile9+ + +Describes the video recording profile. + +**System capability**: SystemCapability.Multimedia.Media.VideoRecorder + +**System API**: This is a system API. + +| Name | Type | Mandatory| Description | +| ---------------- | -------------------------------------------- | ---- | ---------------- | +| audioBitrate | number | Yes | Audio encoding bit rate.| +| audioChannels | number | Yes | Number of audio channels.| +| audioCodec | [CodecMimeType](#codecmimetype8) | Yes | Audio encoding format. | +| audioSampleRate | number | Yes | Audio sampling rate. | +| fileFormat | [ContainerFormatType](#containerformattype8) | Yes | Container format of a file.| +| videoBitrate | number | Yes | Video encoding bit rate.| +| videoCodec | [CodecMimeType](#codecmimetype8) | Yes | Video encoding format. | +| videoFrameWidth | number | Yes | Width of the recorded video frame.| +| videoFrameHeight | number | Yes | Height of the recorded video frame.| +| videoFrameRate | number | Yes | Video frame rate. | + +## media.createAudioPlayer(deprecated) + +createAudioPlayer(): AudioPlayer + +Creates an **AudioPlayer** instance in synchronous mode. + +> **NOTE** +> +> This API is supported since API version 6 and deprecated since API version 9. You are advised to use [createAVPlayer](#mediacreateavplayer9) instead. + +**System capability**: SystemCapability.Multimedia.Media.AudioPlayer + +**Return value** + +| Type | Description | +| --------------------------- | ------------------------------------------------------------ | +| [AudioPlayer](#audioplayerdeprecated) | If the operation is successful, an **AudioPlayer** instance is returned; otherwise, **null** is returned. After the instance is created, you can start, pause, or stop audio playback.| + +**Example** + +```js +let audioPlayer = media.createAudioPlayer(); +``` + +## media.createVideoPlayer(deprecated) + +createVideoPlayer(callback: AsyncCallback\): void + +Creates a **VideoPlayer** instance. This API uses an asynchronous callback to return the result. + +> **NOTE** +> +> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [createAVPlayer](#mediacreateavplayer9) instead. + +**System capability**: SystemCapability.Multimedia.Media.VideoPlayer + +**Parameters** + +| Name | Type | Mandatory| Description | +| -------- | ------------------------------------------ | ---- | ------------------------------------------------------------ | +| callback | AsyncCallback<[VideoPlayer](#videoplayerdeprecated)> | Yes | Callback used to return the result. If the operation is successful, a **VideoPlayer** instance is returned; otherwise, **null** is returned. The instance can be used to manage and play video.| + +**Example** + +```js +let videoPlayer + +media.createVideoPlayer((error, video) => { + if (video != null) { + videoPlayer = video; + console.info('video createVideoPlayer success'); + } else { + console.info(`video createVideoPlayer fail, error:${error}`); + } +}); +``` + +## media.createVideoPlayer(deprecated) + +createVideoPlayer(): Promise\ + +Creates a **VideoPlayer** instance. This API uses a promise to return the result. + +> **NOTE** +> +> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [createAVPlayer](#mediacreateavplayer9-1) instead. + +**System capability**: SystemCapability.Multimedia.Media.VideoPlayer + +**Return value** + +| Type | Description | +| ------------------------------------ | ------------------------------------------------------------ | +| Promise<[VideoPlayer](#videoplayerdeprecated)> | Promise used to return the result. If the operation is successful, a **VideoPlayer** instance is returned; otherwise, **null** is returned. The instance can be used to manage and play video.| + +**Example** + +```js +let videoPlayer + +media.createVideoPlayer().then((video) => { + if (video != null) { + videoPlayer = video; + console.info('video createVideoPlayer success'); + } else { + console.info('video createVideoPlayer fail'); + } +}).catch((error) => { + console.info(`video catchCallback, error:${error}`); +}); +``` + +## media.createAudioRecorder(deprecated) + +createAudioRecorder(): AudioRecorder + +Creates an **AudioRecorder** instance to control audio recording. +Only one **AudioRecorder** instance can be created per device. + +> **NOTE** +> +> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [createAVRecorder](#mediacreateavrecorder9) instead. + +**System capability**: SystemCapability.Multimedia.Media.AudioRecorder + +**Return value** + +| Type | Description | +| ------------------------------- | ------------------------------------------------------------ | +| [AudioRecorder](#audiorecorderdeprecated) | If the operation is successful, the **AudioRecorder** instance is returned; otherwise, **null** is returned. The instance can be used to record audio.| + +**Example** + +```js +let audioRecorder = media.createAudioRecorder(); +``` + +## MediaErrorCode(deprecated) + +Enumerates the media error codes. + +> **NOTE** +> +> This enum is supported since API version 8 and deprecated since API version 9. You are advised to use [Media Error Codes](../errorcodes/errorcode-media.md) instead. + +**System capability**: SystemCapability.Multimedia.Media.Core + +| Name | Value | Description | +| -------------------------- | ---- | -------------------------------------- | +| MSERR_OK | 0 | The operation is successful. | +| MSERR_NO_MEMORY | 1 | Failed to allocate memory. The system may have no available memory.| +| MSERR_OPERATION_NOT_PERMIT | 2 | No permission to perform the operation. | +| MSERR_INVALID_VAL | 3 | Invalid input parameter. | +| MSERR_IO | 4 | An I/O error occurs. | +| MSERR_TIMEOUT | 5 | The operation times out. | +| MSERR_UNKNOWN | 6 | An unknown error occurs. | +| MSERR_SERVICE_DIED | 7 | Invalid server. | +| MSERR_INVALID_STATE | 8 | The operation is not allowed in the current state. | +| MSERR_UNSUPPORTED | 9 | The operation is not supported in the current version. | + +## AudioPlayer(deprecated) + +> **NOTE** +> +> This API is supported since API version 6 and deprecated since API version 9. You are advised to use [AVPlayer](#avplayer9) instead. + +Provides APIs to manage and play audio. Before calling any API in **AudioPlayer**, you must use [createAudioPlayer()](#mediacreateaudioplayerdeprecated) to create an **AudioPlayer** instance. + +### Attributes + +**System capability**: SystemCapability.Multimedia.Media.AudioPlayer + +| Name | Type | Readable| Writable| Description | +| ------------------------------- | ------------------------------------------------------ | ---- | ---- | ------------------------------------------------------------ | +| src | string | Yes | Yes | Audio file URI. The mainstream audio formats (M4A, AAC, MP3, OGG, and WAV) are supported.
**Examples of supported URLs**:
1. FD: fd://xx
![](figures/en-us_image_url.png)
2. HTTP: http://xx
3. HTTPS: https://xx
4. HLS: http://xx or https://xx
**Required permissions**: ohos.permission.READ_MEDIA or ohos.permission.INTERNET| +| fdSrc9+ | [AVFileDescriptor](#avfiledescriptor9) | Yes | Yes | Description of the audio file. This attribute is required when audio assets of an application are continuously stored in a file.
**Example:**
Assume that a music file that stores continuous music assets consists of the following:
Music 1 (address offset: 0, byte length: 100)
Music 2 (address offset: 101; byte length: 50)
Music 3 (address offset: 151, byte length: 150)
1. To play music 1: AVFileDescriptor {fd = resource handle; offset = 0; length = 100; }
2. To play music 2: AVFileDescriptor {fd = resource handle; offset = 101; length = 50; }
3. To play music 3: AVFileDescriptor {fd = resource handle; offset = 151; length = 150; }
To play an independent music file, use **src=fd://xx**.
| +| loop | boolean | Yes | Yes | Whether to loop audio playback. The value **true** means to loop audio playback, and **false** means the opposite. | +| audioInterruptMode9+ | [audio.InterruptMode](js-apis-audio.md#interruptmode9) | Yes | Yes | Audio interruption mode. | +| currentTime | number | Yes | No | Current audio playback position, in ms. | +| duration | number | Yes | No | Audio duration, in ms. | +| state | [AudioState](#audiostate) | Yes | No | Audio playback state. This state cannot be used as the condition for triggering the call of **play()**, **pause()**, or **stop()**.| + +### play + +play(): void + +Starts to play an audio asset. This API can be called only after the [dataLoad](#audioplayer_on) event is triggered. + +**System capability**: SystemCapability.Multimedia.Media.AudioPlayer + +**Example** + +```js +audioPlayer.on('play', () => { // Set the 'play' event callback. + console.log('audio play success'); +}); +audioPlayer.play(); +``` + +### pause + +pause(): void + +Pauses audio playback. + +**System capability**: SystemCapability.Multimedia.Media.AudioPlayer + +**Example** + +```js +audioPlayer.on('pause', () => { // Set the 'pause' event callback. + console.log('audio pause success'); +}); +audioPlayer.pause(); +``` + +### stop + +stop(): void + +Stops audio playback. + +**System capability**: SystemCapability.Multimedia.Media.AudioPlayer + +**Example** + +```js +audioPlayer.on('stop', () => { // Set the 'stop' event callback. + console.log('audio stop success'); +}); +audioPlayer.stop(); +``` + +### reset7+ + +reset(): void + +Resets the audio asset to be played. + +**System capability**: SystemCapability.Multimedia.Media.AudioPlayer + +**Example** + +```js +audioPlayer.on('reset', () => { // Set the 'reset' event callback. + console.log('audio reset success'); +}); +audioPlayer.reset(); +``` + +### seek + +seek(timeMs: number): void + +Seeks to the specified playback position. + +**System capability**: SystemCapability.Multimedia.Media.AudioPlayer + +**Parameters** + +| Name| Type | Mandatory| Description | +| ------ | ------ | ---- | ----------------------------------------------------------- | +| timeMs | number | Yes | Position to seek to, in ms. The value range is [0, duration].| + +**Example** + +```js +audioPlayer.on('timeUpdate', (seekDoneTime) => { // Set the 'timeUpdate' event callback. + if (seekDoneTime == null) { + console.info('audio seek fail'); + return; + } + console.log('audio seek success. seekDoneTime: ' + seekDoneTime); +}); +audioPlayer.seek(30000); // Seek to 30000 ms. +``` + +### setVolume + +setVolume(vol: number): void + +Sets the volume. + +**System capability**: SystemCapability.Multimedia.Media.AudioPlayer + +**Parameters** + +| Name| Type | Mandatory| Description | +| ------ | ------ | ---- | ------------------------------------------------------------ | +| vol | number | Yes | Relative volume. The value ranges from 0.00 to 1.00. The value **1.00** indicates the maximum volume (100%).| + +**Example** + +```js +audioPlayer.on('volumeChange', () => { // Set the 'volumeChange' event callback. + console.log('audio volumeChange success'); +}); +audioPlayer.setVolume(1); // Set the volume to 100%. +``` + +### release + +release(): void + +Releases the audio playback resources. + +**System capability**: SystemCapability.Multimedia.Media.AudioPlayer + +**Example** + +```js +audioPlayer.release(); +audioPlayer = undefined; +``` + +### getTrackDescription8+ + +getTrackDescription(callback: AsyncCallback\>): void + +Obtains the audio track information. This API uses an asynchronous callback to return the result. It can be called only after the [dataLoad](#audioplayer_on) event is triggered. + +**System capability**: SystemCapability.Multimedia.Media.AudioPlayer + +**Parameters** + +| Name | Type | Mandatory| Description | +| -------- | ------------------------------------------------------------ | ---- | ------------------------------------------ | +| callback | AsyncCallback\> | Yes | Callback used to return a **MediaDescription** array, which records the audio track information.| + +**Example** + +```js +function printfDescription(obj) { + for (let item in obj) { + let property = obj[item]; + console.info('audio key is ' + item); + console.info('audio value is ' + property); + } +} + +audioPlayer.getTrackDescription((error, arrList) => { + if (arrList != null) { + for (let i = 0; i < arrList.length; i++) { + printfDescription(arrList[i]); + } + } else { + console.log(`audio getTrackDescription fail, error:${error}`); + } +}); +``` + +### getTrackDescription8+ + +getTrackDescription(): Promise\> + +Obtains the audio track information. This API uses a promise to return the result. It can be called only after the [dataLoad](#audioplayer_on) event is triggered. + +**System capability**: SystemCapability.Multimedia.Media.AudioPlayer + +**Return value** + +| Type | Description | +| ------------------------------------------------------ | ----------------------------------------------- | +| Promise> | Promise used to return a **MediaDescription** array, which records the audio track information.| + +**Example** + +```js +function printfDescription(obj) { + for (let item in obj) { + let property = obj[item]; + console.info('audio key is ' + item); + console.info('audio value is ' + property); + } +} +let arrayDescription = null +audioPlayer.getTrackDescription().then((arrList) => { + if (arrList != null) { + arrayDescription = arrList; + } else { + console.log('audio getTrackDescription fail'); + } +}).catch((error) => { + console.info(`audio catchCallback, error:${error}`); +}); + +for (let i = 0; i < arrayDescription.length; i++) { + printfDescription(arrayDescription[i]); +} +``` + +### on('bufferingUpdate')8+ + +on(type: 'bufferingUpdate', callback: (infoType: BufferingInfoType, value: number) => void): void + +Subscribes to the audio buffering update event. This API works only under online playback. + +**System capability**: SystemCapability.Multimedia.Media.AudioPlayer + +**Parameters** + +| Name | Type | Mandatory| Description | +| -------- | -------- | ---- | ------------------------------------------------------------ | +| type | string | Yes | Event type, which is **'bufferingUpdate'** in this case. | +| callback | function | Yes | Callback invoked when the event is triggered.
When [BufferingInfoType](#bufferinginfotype8) is set to **BUFFERING_PERCENT** or **CACHED_DURATION**, **value** is valid. Otherwise, **value** is fixed at **0**.| + +**Example** + +```js +audioPlayer.on('bufferingUpdate', (infoType, value) => { + console.log('audio bufferingInfo type: ' + infoType); + console.log('audio bufferingInfo value: ' + value); +}); +``` + + ### on('play' | 'pause' | 'stop' | 'reset' | 'dataLoad' | 'finish' | 'volumeChange') + +on(type: 'play' | 'pause' | 'stop' | 'reset' | 'dataLoad' | 'finish' | 'volumeChange', callback: () => void): void + +Subscribes to the audio playback events. + +**System capability**: SystemCapability.Multimedia.Media.AudioPlayer + +**Parameters** + +| Name | Type | Mandatory| Description | +| -------- | ---------- | ---- | ------------------------------------------------------------ | +| type | string | Yes | Event type. The following events are supported:
- 'play': triggered when the [play()](#audioplayer_play) API is called and audio playback starts.
- 'pause': triggered when the [pause()](#audioplayer_pause) API is called and audio playback is paused.
- 'stop': triggered when the [stop()](#audioplayer_stop) API is called and audio playback stops.
- 'reset': triggered when the [reset()](#audioplayer_reset) API is called and audio playback is reset.
- 'dataLoad': triggered when the audio data is loaded, that is, when the **src** attribute is configured.
- 'finish': triggered when the audio playback is finished.
- 'volumeChange': triggered when the [setVolume()](#audioplayer_setvolume) API is called and the playback volume is changed. | +| callback | () => void | Yes | Callback invoked when the event is triggered. | + +**Example** + +```js +import fileio from '@ohos.fileio' + +let audioPlayer = media.createAudioPlayer(); // Create an AudioPlayer instance. +audioPlayer.on('dataLoad', () => { // Set the 'dataLoad' event callback, which is triggered when the src attribute is set successfully. + console.info('audio set source success'); + audioPlayer.play(); // Start the playback and trigger the 'play' event callback. +}); +audioPlayer.on('play', () => { // Set the 'play' event callback. + console.info('audio play success'); + audioPlayer.seek(30000); // Call the seek() API and trigger the 'timeUpdate' event callback. +}); +audioPlayer.on('pause', () => { // Set the 'pause' event callback. + console.info('audio pause success'); + audioPlayer.stop(); // Stop the playback and trigger the 'stop' event callback. +}); +audioPlayer.on('reset', () => { // Set the 'reset' event callback. + console.info('audio reset success'); + audioPlayer.release(); // Release the AudioPlayer instance. + audioPlayer = undefined; +}); +audioPlayer.on('timeUpdate', (seekDoneTime) => { // Set the 'timeUpdate' event callback. + if (seekDoneTime == null) { + console.info('audio seek fail'); + return; + } + console.info('audio seek success, and seek time is ' + seekDoneTime); + audioPlayer.setVolume(0.5); // Set the volume to 50% and trigger the 'volumeChange' event callback. +}); +audioPlayer.on('volumeChange', () => { // Set the 'volumeChange' event callback. + console.info('audio volumeChange success'); + audioPlayer.pause(); // Pause the playback and trigger the 'pause' event callback. +}); +audioPlayer.on('finish', () => { // Set the 'finish' event callback. + console.info('audio play finish'); + audioPlayer.stop(); // Stop the playback and trigger the 'stop' event callback. +}); +audioPlayer.on('error', (error) => { // Set the 'error' event callback. + console.info(`audio error called, error: ${error}`); +}); + +// Set the FD (local playback) of the video file selected by the user. +let fdPath = 'fd://'; +// The stream in the path can be pushed to the device by running the "hdc file send D:\xxx\01.mp3 /data/accounts/account_0/appdata" command. +let path = '/data/accounts/account_0/appdata/ohos.xxx.xxx.xxx/01.mp3'; +fileio.open(path).then((fdValue) => { + fdPath = fdPath + '' + fdValue; + console.info('open fd success fd is' + fdPath); +}, (err) => { + console.info('open fd failed err is' + err); +}).catch((err) => { + console.info('open fd failed err is' + err); +}); +audioPlayer.src = fdPath; // Set the src attribute and trigger the 'dataLoad' event callback. +``` + +### on('timeUpdate') + +on(type: 'timeUpdate', callback: Callback\): void + +Subscribes to the **'timeUpdate'** event. This event is reported every second when the audio playback is in progress. + +**System capability**: SystemCapability.Multimedia.Media.AudioPlayer + +**Parameters** + +| Name | Type | Mandatory| Description | +| -------- | ----------------- | ---- | ------------------------------------------------------------ | +| type | string | Yes | Event type, which is **'timeUpdate'** in this case.
The **'timeUpdate'** event is triggered when the audio playback starts after an audio playback timestamp update.| +| callback | Callback\ | Yes | Callback invoked when the event is triggered. The input parameter is the updated timestamp. | + +**Example** + +```js +audioPlayer.on('timeUpdate', (newTime) => { // Set the 'timeUpdate' event callback. + if (newTime == null) { + console.info('audio timeUpadate fail'); + return; + } + console.log('audio timeUpadate success. seekDoneTime: ' + newTime); +}); +audioPlayer.play(); // The 'timeUpdate' event is triggered when the playback starts. +``` + +### on('error') + +on(type: 'error', callback: ErrorCallback): void + +Subscribes to audio playback error events. After an error event is reported, you must handle the event and exit the playback. + +**System capability**: SystemCapability.Multimedia.Media.AudioPlayer + +**Parameters** + +| Name | Type | Mandatory| Description | +| -------- | ------------- | ---- | ------------------------------------------------------------ | +| type | string | Yes | Event type, which is **'error'** in this case.
This event is triggered when an error occurs during audio playback.| +| callback | ErrorCallback | Yes | Callback invoked when the event is triggered. | + +**Example** + +```js +audioPlayer.on('error', (error) => { // Set the 'error' event callback. + console.info(`audio error called, error: ${error}`); +}); +audioPlayer.setVolume(3); // Set volume to an invalid value to trigger the 'error' event. +``` + +## AudioState(deprecated) + +Enumerates the audio playback states. You can obtain the state through the **state** attribute. + +> **NOTE** +> +> This API is supported since API version 6 and deprecated since API version 9. You are advised to use [AVPlayerState](#avplayerstate9) instead. + +**System capability**: SystemCapability.Multimedia.Media.AudioPlayer + +| Name | Type | Description | +| ------- | ------ | ---------------------------------------------- | +| idle | string | No audio playback is in progress. The audio player is in this state after the **'dataload'** or **'reset'** event is triggered.| +| playing | string | Audio playback is in progress. The audio player is in this state after the **'play'** event is triggered. | +| paused | string | Audio playback is paused. The audio player is in this state after the **'pause'** event is triggered. | +| stopped | string | Audio playback is stopped. The audio player is in this state after the **'stop'** event is triggered. | +| error | string | Audio playback is in the error state. | + +## VideoPlayer(deprecated) + +> **NOTE** +> +> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [AVPlayer](#avplayer9) instead. + +Provides APIs to manage and play video. Before calling any API of **VideoPlayer**, you must use [createVideoPlayer()](#createvideoplayer) to create a **VideoPlayer** instance. + +For details about the video playback demo, see [Video Playback Development](../../media/video-playback.md). + +### Attributes + +**System capability**: SystemCapability.Multimedia.Media.VideoPlayer + +| Name | Type | Readable| Writable| Description | +| ------------------------------- | ------------------------------------------------------ | ---- | ---- | ------------------------------------------------------------ | +| url8+ | string | Yes | Yes | Video URL. The mainstream video formats (MP4, MPEG-TS, WebM, and MKV) are supported.
**Example of supported URLs**:
1. FD: fd://xx
![](figures/en-us_image_url.png)
2. HTTP: http://xx
3. HTTPS: https://xx
4. HLS: http://xx or https://xx
| +| fdSrc9+ | [AVFileDescriptor](#avfiledescriptor9) | Yes | Yes | Description of a video file. This attribute is required when video assets of an application are continuously stored in a file.
**Example:**
Assume that a music file that stores continuous music assets consists of the following:
Video 1 (address offset: 0, byte length: 100)
Video 2 (address offset: 101; byte length: 50)
Video 3 (address offset: 151, byte length: 150)
1. To play video 1: AVFileDescriptor {fd = resource handle; offset = 0; length = 100; }
2. To play video 2: AVFileDescriptor {fd = resource handle; offset = 101; length = 50; }
3. To play video 3: AVFileDescriptor {fd = resource handle; offset = 151; length = 150; }
To play an independent video file, use **src=fd://xx**.
| +| loop8+ | boolean | Yes | Yes | Whether to loop video playback. The value **true** means to loop video playback, and **false** means the opposite. | +| videoScaleType9+ | [VideoScaleType](#videoscaletype9) | Yes | Yes | Video scale type. | +| audioInterruptMode9+ | [audio.InterruptMode](js-apis-audio.md#interruptmode9) | Yes | Yes | Audio interruption mode. | +| currentTime8+ | number | Yes | No | Current video playback position, in ms. | +| duration8+ | number | Yes | No | Video duration, in ms. The value **-1** indicates the live mode. | +| state8+ | [VideoPlayState](#videoplayerstate) | Yes | No | Video playback state. | +| width8+ | number | Yes | No | Video width, in pixels. | +| height8+ | number | Yes | No | Video height, in pixels. | + +### setDisplaySurface8+ + +setDisplaySurface(surfaceId: string, callback: AsyncCallback\): void + +Sets **SurfaceId**. This API uses an asynchronous callback to return the result. + +**SetDisplaySurface** must be called between the URL setting and the calling of **prepare**. A surface must be set for video streams without audio. Otherwise, the calling of **prepare** fails. + +**System capability**: SystemCapability.Multimedia.Media.VideoPlayer + +**Parameters** + +| Name | Type | Mandatory| Description | +| --------- | -------------------- | ---- | ------------------------- | +| surfaceId | string | Yes | Surface ID to set. | +| callback | AsyncCallback\ | Yes | Callback used to return the result.| + +**Example** + +```js +let surfaceId = null; +videoPlayer.setDisplaySurface(surfaceId, (err) => { + if (err == null) { + console.info('setDisplaySurface success!'); + } else { + console.info('setDisplaySurface fail!'); + } +}); +``` + +### setDisplaySurface8+ + +setDisplaySurface(surfaceId: string): Promise\ + +Sets **SurfaceId**. This API uses a promise to return the result. + +**SetDisplaySurface** must be called between the URL setting and the calling of **prepare**. A surface must be set for video streams without audio. Otherwise, the calling of **prepare** fails. + +**System capability**: SystemCapability.Multimedia.Media.VideoPlayer + +**Parameters** + +| Name | Type | Mandatory| Description | +| --------- | ------ | ---- | --------- | +| surfaceId | string | Yes | Surface ID to set.| + +**Return value** + +| Type | Description | +| -------------- | ------------------------------ | +| Promise\ | Promise used to return the result.| + +**Example** + +```js +let surfaceId = null; +videoPlayer.setDisplaySurface(surfaceId).then(() => { + console.info('setDisplaySurface success'); +}).catch((error) => { + console.info(`video catchCallback, error:${error}`); +}); +``` + +### prepare8+ + +prepare(callback: AsyncCallback\): void + +Prepares for video playback. This API uses an asynchronous callback to return the result. + +**System capability**: SystemCapability.Multimedia.Media.VideoPlayer + +**Parameters** + +| Name | Type | Mandatory| Description | +| -------- | -------------------- | ---- | ------------------------ | +| callback | AsyncCallback\ | Yes | Callback used to return the result.| + +**Example** + +```js +videoPlayer.prepare((err) => { + if (err == null) { + console.info('prepare success!'); + } else { + console.info('prepare fail!'); + } +}); +``` + +### prepare8+ + +prepare(): Promise\ + +Prepares for video playback. This API uses a promise to return the result. + +**System capability**: SystemCapability.Multimedia.Media.VideoPlayer + +**Return value** + +| Type | Description | +| -------------- | ----------------------------- | +| Promise\ | Promise used to return the result.| + +**Example** + +```js +videoPlayer.prepare().then(() => { + console.info('prepare success'); +}).catch((error) => { + console.info(`video catchCallback, error:${error}`); +}); +``` + +### play8+ + +play(callback: AsyncCallback\): void; + +Starts to play video assets. This API uses an asynchronous callback to return the result. + +**System capability**: SystemCapability.Multimedia.Media.VideoPlayer + +**Parameters** + +| Name | Type | Mandatory| Description | +| -------- | -------------------- | ---- | ------------------------ | +| callback | AsyncCallback\ | Yes | Callback used to return the result.| + +**Example** + +```js +videoPlayer.play((err) => { + if (err == null) { + console.info('play success!'); + } else { + console.info('play fail!'); + } +}); +``` + +### play8+ + +play(): Promise\; + +Starts to play video assets. This API uses a promise to return the result. + +**System capability**: SystemCapability.Multimedia.Media.VideoPlayer + +**Return value** + +| Type | Description | +| -------------- | ----------------------------- | +| Promise\ | Promise used to return the result.| + +**Example** + +```js +videoPlayer.play().then(() => { + console.info('play success'); +}).catch((error) => { + console.info(`video catchCallback, error:${error}`); +}); +``` + +### pause8+ + +pause(callback: AsyncCallback\): void + +Pauses video playback. This API uses an asynchronous callback to return the result. + +**System capability**: SystemCapability.Multimedia.Media.VideoPlayer + +**Parameters** + +| Name | Type | Mandatory| Description | +| -------- | -------------------- | ---- | ------------------------ | +| callback | AsyncCallback\ | Yes | Callback used to return the result.| + +**Example** + +```js +videoPlayer.pause((err) => { + if (err == null) { + console.info('pause success!'); + } else { + console.info('pause fail!'); + } +}); +``` + +### pause8+ + +pause(): Promise\ + +Pauses video playback. This API uses a promise to return the result. + +**System capability**: SystemCapability.Multimedia.Media.VideoPlayer + +**Return value** + +| Type | Description | +| -------------- | ----------------------------- | +| Promise\ | Promise used to return the result.| + +**Example** + +```js +videoPlayer.pause().then(() => { + console.info('pause success'); +}).catch((error) => { + console.info(`video catchCallback, error:${error}`); +}); +``` + +### stop8+ + +stop(callback: AsyncCallback\): void + +Stops video playback. This API uses an asynchronous callback to return the result. + +**System capability**: SystemCapability.Multimedia.Media.VideoPlayer + +**Parameters** + +| Name | Type | Mandatory| Description | +| -------- | -------------------- | ---- | ------------------------ | +| callback | AsyncCallback\ | Yes | Callback used to return the result.| + +**Example** + +```js +videoPlayer.stop((err) => { + if (err == null) { + console.info('stop success!'); + } else { + console.info('stop fail!'); + } +}); +``` + +### stop8+ + +stop(): Promise\ + +Stops video playback. This API uses a promise to return the result. + +**System capability**: SystemCapability.Multimedia.Media.VideoPlayer + +**Return value** + +| Type | Description | +| -------------- | ----------------------------- | +| Promise\ | Promise used to return the result.| + +**Example** + +```js +videoPlayer.stop().then(() => { + console.info('stop success'); +}).catch((error) => { + console.info(`video catchCallback, error:${error}`); +}); +``` + +### reset8+ + +reset(callback: AsyncCallback\): void + +Resets the video asset to be played. This API uses an asynchronous callback to return the result. + +**System capability**: SystemCapability.Multimedia.Media.VideoPlayer + +**Parameters** + +| Name | Type | Mandatory| Description | +| -------- | -------------------- | ---- | ------------------------ | +| callback | AsyncCallback\ | Yes | Callback used to return the result.| + +**Example** + +```js +videoPlayer.reset((err) => { + if (err == null) { + console.info('reset success!'); + } else { + console.info('reset fail!'); + } +}); +``` + +### reset8+ + +reset(): Promise\ + +Resets the video asset to be played. This API uses a promise to return the result. + +**System capability**: SystemCapability.Multimedia.Media.VideoPlayer + +**Return value** + +| Type | Description | +| -------------- | ----------------------------- | +| Promise\ | Promise used to return the result.| + +**Example** + +```js +videoPlayer.reset().then(() => { + console.info('reset success'); +}).catch((error) => { + console.info(`video catchCallback, error:${error}`); +}); +``` + +### seek8+ + +seek(timeMs: number, callback: AsyncCallback\): void + +Seeks to the specified playback position. The previous key frame at the specified position is played. This API uses an asynchronous callback to return the result. + +**System capability**: SystemCapability.Multimedia.Media.VideoPlayer + +**Parameters** + +| Name | Type | Mandatory| Description | +| -------- | ---------------------- | ---- | ------------------------------------------------------------ | +| timeMs | number | Yes | Position to seek to, in ms. The value range is [0, duration].| +| callback | AsyncCallback\ | Yes | Callback used to return the result. | + +**Example** + +```js +let seekTime = 5000; +videoPlayer.seek(seekTime, (err, result) => { + if (err == null) { + console.info('seek success!'); + } else { + console.info('seek fail!'); + } +}); +``` + +### seek8+ + +seek(timeMs: number, mode:SeekMode, callback: AsyncCallback\): void + +Seeks to the specified playback position. This API uses an asynchronous callback to return the result. + +**System capability**: SystemCapability.Multimedia.Media.VideoPlayer + +**Parameters** + +| Name | Type | Mandatory| Description | +| -------- | ---------------------- | ---- | ------------------------------------------------------------ | +| timeMs | number | Yes | Position to seek to, in ms. The value range is [0, duration].| +| mode | [SeekMode](#seekmode8) | Yes | Seek mode. | +| callback | AsyncCallback\ | Yes | Callback used to return the result. | + +**Example** + +```js +import media from '@ohos.multimedia.media' +let seekTime = 5000; +videoPlayer.seek(seekTime, media.SeekMode.SEEK_NEXT_SYNC, (err, result) => { + if (err == null) { + console.info('seek success!'); + } else { + console.info('seek fail!'); + } +}); +``` + +### seek8+ + +seek(timeMs: number, mode?:SeekMode): Promise\ + +Seeks to the specified playback position. If **mode** is not specified, the previous key frame at the specified position is played. This API uses a promise to return the result. + +**System capability**: SystemCapability.Multimedia.Media.VideoPlayer + +**Parameters** + +| Name| Type | Mandatory| Description | +| ------ | ---------------------- | ---- | ------------------------------------------------------------ | +| timeMs | number | Yes | Position to seek to, in ms. The value range is [0, duration].| +| mode | [SeekMode](#seekmode8) | No | Seek mode. | + +**Return value** + +| Type | Description | +| ---------------- | ------------------------------------------- | +| Promise\| Promise used to return the playback position, in ms.| + +**Example** + +```js +import media from '@ohos.multimedia.media' +let seekTime = 5000; +videoPlayer.seek(seekTime).then((seekDoneTime) => { // seekDoneTime indicates the position after the seek operation is complete. + console.info('seek success'); +}).catch((error) => { + console.info(`video catchCallback, error:${error}`); +}); + +videoPlayer.seek(seekTime, media.SeekMode.SEEK_NEXT_SYNC).then((seekDoneTime) => { + console.info('seek success'); +}).catch((error) => { + console.info(`video catchCallback, error:${error}`); +}); +``` + +### setVolume8+ + +setVolume(vol: number, callback: AsyncCallback\): void + +Sets the volume. This API uses an asynchronous callback to return the result. + +**System capability**: SystemCapability.Multimedia.Media.VideoPlayer + +**Parameters** + +| Name | Type | Mandatory| Description | +| -------- | -------------------- | ---- | ------------------------------------------------------------ | +| vol | number | Yes | Relative volume. The value ranges from 0.00 to 1.00. The value **1.00** indicates the maximum volume (100%).| +| callback | AsyncCallback\ | Yes | Callback used to return the result. | + +**Example** + +```js +let vol = 0.5; +videoPlayer.setVolume(vol, (err, result) => { + if (err == null) { + console.info('setVolume success!'); + } else { + console.info('setVolume fail!'); + } +}); +``` + +### setVolume8+ + +setVolume(vol: number): Promise\ + +Sets the volume. This API uses a promise to return the result. + +**System capability**: SystemCapability.Multimedia.Media.VideoPlayer + +**Parameters** + +| Name| Type | Mandatory| Description | +| ------ | ------ | ---- | ------------------------------------------------------------ | +| vol | number | Yes | Relative volume. The value ranges from 0.00 to 1.00. The value **1.00** indicates the maximum volume (100%).| + +**Return value** + +| Type | Description | +| -------------- | ------------------------- | +| Promise\ | Promise used to return the result.| + +**Example** + +```js +let vol = 0.5; +videoPlayer.setVolume(vol).then(() => { + console.info('setVolume success'); +}).catch((error) => { + console.info(`video catchCallback, error:${error}`); +}); +``` + +### release8+ + +release(callback: AsyncCallback\): void + +Releases the video playback resources. This API uses an asynchronous callback to return the result. + +**System capability**: SystemCapability.Multimedia.Media.VideoPlayer + +**Parameters** + +| Name | Type | Mandatory| Description | +| -------- | -------------------- | ---- | ------------------------ | +| callback | AsyncCallback\ | Yes | Callback used to return the result.| + +**Example** + +```js +videoPlayer.release((err) => { + if (err == null) { + console.info('release success!'); + } else { + console.info('release fail!'); + } +}); +``` + +### release8+ + +release(): Promise\ + +Releases the video playback resources. This API uses a promise to return the result. + +**System capability**: SystemCapability.Multimedia.Media.VideoPlayer + +**Return value** + +| Type | Description | +| -------------- | ----------------------------- | +| Promise\ | Promise used to return the result.| + +**Example** + +```js +videoPlayer.release().then(() => { + console.info('release success'); +}).catch((error) => { + console.info(`video catchCallback, error:${error}`); +}); +``` + +### getTrackDescription8+ + +getTrackDescription(callback: AsyncCallback\>): void + +Obtains the video track information. This API uses an asynchronous callback to return the result. + +**System capability**: SystemCapability.Multimedia.Media.VideoPlayer + +**Parameters** + +| Name | Type | Mandatory| Description | +| -------- | ------------------------------------------------------------ | ---- | ------------------------------------------ | +| callback | AsyncCallback\> | Yes | Callback used to return a **MediaDescription** array, which records the video track information.| + +**Example** + +```js +function printfDescription(obj) { + for (let item in obj) { + let property = obj[item]; + console.info('video key is ' + item); + console.info('video value is ' + property); + } +} + +videoPlayer.getTrackDescription((error, arrList) => { + if ((arrList) != null) { + for (let i = 0; i < arrList.length; i++) { + printfDescription(arrList[i]); + } + } else { + console.log(`video getTrackDescription fail, error:${error}`); + } +}); +``` + +### getTrackDescription8+ + +getTrackDescription(): Promise\> + +Obtains the video track information. This API uses a promise to return the result. + +**System capability**: SystemCapability.Multimedia.Media.VideoPlayer + +**Return value** + +| Type | Description | +| ------------------------------------------------------ | ----------------------------------------------- | +| Promise> | Promise used to return a **MediaDescription** array, which records the video track information.| + +**Example** + +```js +function printfDescription(obj) { + for (let item in obj) { + let property = obj[item]; + console.info('video key is ' + item); + console.info('video value is ' + property); + } +} + +let arrayDescription; +videoPlayer.getTrackDescription().then((arrList) => { + if (arrList != null) { + arrayDescription = arrList; + } else { + console.log('video getTrackDescription fail'); + } +}).catch((error) => { + console.info(`video catchCallback, error:${error}`); +}); +for (let i = 0; i < arrayDescription.length; i++) { + printfDescription(arrayDescription[i]); +} +``` + +### setSpeed8+ + +setSpeed(speed:number, callback: AsyncCallback\): void + +Sets the video playback speed. This API uses an asynchronous callback to return the result. + +**System capability**: SystemCapability.Multimedia.Media.VideoPlayer + +**Parameters** + +| Name | Type | Mandatory| Description | +| -------- | ---------------------- | ---- | ---------------------------------------------------------- | +| speed | number | Yes | Video playback speed. For details, see [PlaybackSpeed](#playbackspeed8).| +| callback | AsyncCallback\ | Yes | Callback used to return the result. | + +**Example** + +```js +import media from '@ohos.multimedia.media' +let speed = media.PlaybackSpeed.SPEED_FORWARD_2_00_X; + +videoPlayer.setSpeed(speed, (err, result) => { + if (err == null) { + console.info('setSpeed success!'); + } else { + console.info('setSpeed fail!'); + } +}); +``` + +### setSpeed8+ + +setSpeed(speed:number): Promise\ + +Sets the video playback speed. This API uses a promise to return the result. + +**System capability**: SystemCapability.Multimedia.Media.VideoPlayer + +**Parameters** + +| Name| Type | Mandatory| Description | +| ------ | ------ | ---- | ---------------------------------------------------------- | +| speed | number | Yes | Video playback speed. For details, see [PlaybackSpeed](#playbackspeed8).| + +**Return value** + +| Type | Description | +| ---------------- | ------------------------------------------------------------ | +| Promise\| Promise used to return playback speed. For details, see [PlaybackSpeed](#playbackspeed8).| + +**Example** + +```js +import media from '@ohos.multimedia.media' +let speed = media.PlaybackSpeed.SPEED_FORWARD_2_00_X; + +videoPlayer.setSpeed(speed).then(() => { + console.info('setSpeed success'); +}).catch((error) => { + console.info(`video catchCallback, error:${error}`); +}); +``` + +### on('playbackCompleted')8+ + +on(type: 'playbackCompleted', callback: Callback\): void + +Subscribes to the video playback completion event. + +**System capability**: SystemCapability.Multimedia.Media.VideoPlayer + +**Parameters** + +| Name | Type | Mandatory| Description | +| -------- | -------- | ---- | ----------------------------------------------------------- | +| type | string | Yes | Event type, which is **'playbackCompleted'** in this case.| +| callback | function | Yes | Callback invoked when the event is triggered. | + +**Example** + +```js +videoPlayer.on('playbackCompleted', () => { + console.info('playbackCompleted success!'); +}); +``` + +### on('bufferingUpdate')8+ + +on(type: 'bufferingUpdate', callback: (infoType: BufferingInfoType, value: number) => void): void + +Subscribes to the video buffering update event. Only network playback supports this subscription. + +**System capability**: SystemCapability.Multimedia.Media.VideoPlayer + +**Parameters** + +| Name | Type | Mandatory| Description | +| -------- | -------- | ---- | ------------------------------------------------------------ | +| type | string | Yes | Event type, which is **'bufferingUpdate'** in this case. | +| callback | function | Yes | Callback invoked when the event is triggered.
When [BufferingInfoType](#bufferinginfotype8) is set to **BUFFERING_PERCENT** or **CACHED_DURATION**, **value** is valid. Otherwise, **value** is fixed at **0**.| + +**Example** + +```js +videoPlayer.on('bufferingUpdate', (infoType, value) => { + console.log('video bufferingInfo type: ' + infoType); + console.log('video bufferingInfo value: ' + value); +}); +``` + +### on('startRenderFrame')8+ + +on(type: 'startRenderFrame', callback: Callback\): void + +Subscribes to the frame rendering start event. + +**System capability**: SystemCapability.Multimedia.Media.VideoPlayer + +**Parameters** + +| Name | Type | Mandatory| Description | +| -------- | --------------- | ---- | ------------------------------------------------------------ | +| type | string | Yes | Event type, which is **'startRenderFrame'** in this case.| +| callback | Callback\ | Yes | Callback invoked when the event is triggered. | + +**Example** + +```js +videoPlayer.on('startRenderFrame', () => { + console.info('startRenderFrame success!'); +}); +``` + +### on('videoSizeChanged')8+ + +on(type: 'videoSizeChanged', callback: (width: number, height: number) => void): void + +Subscribes to the video width and height change event. + +**System capability**: SystemCapability.Multimedia.Media.VideoPlayer + +**Parameters** + +| Name | Type | Mandatory| Description | +| -------- | -------- | ---- | ------------------------------------------------------------ | +| type | string | Yes | Event type, which is **'videoSizeChanged'** in this case.| +| callback | function | Yes | Callback invoked when the event is triggered. **width** indicates the video width, and **height** indicates the video height. | + +**Example** + +```js +videoPlayer.on('videoSizeChanged', (width, height) => { + console.log('video width is: ' + width); + console.log('video height is: ' + height); +}); +``` + +### on('error')8+ + +on(type: 'error', callback: ErrorCallback): void + +Subscribes to video playback error events. After an error event is reported, you must handle the event and exit the playback. + +**System capability**: SystemCapability.Multimedia.Media.VideoPlayer + +**Parameters** + +| Name | Type | Mandatory| Description | +| -------- | ------------- | ---- | ------------------------------------------------------------ | +| type | string | Yes | Event type, which is **'error'** in this case.
This event is triggered when an error occurs during video playback.| +| callback | ErrorCallback | Yes | Callback invoked when the event is triggered. | + +**Example** + +```js +videoPlayer.on('error', (error) => { // Set the 'error' event callback. + console.info(`video error called, error: ${error}`); +}); +videoPlayer.url = 'fd://error'; // Set an incorrect URL to trigger the 'error' event. +``` + +## VideoPlayState(deprecated) + +Enumerates the video playback states. You can obtain the state through the **state** attribute. + +> **NOTE** +> +> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [AVPlayerState](#avplayerstate9) instead. + +**System capability**: SystemCapability.Multimedia.Media.VideoPlayer + +| Name | Type | Description | +| -------- | ------ | -------------- | +| idle | string | The video player is idle.| +| prepared | string | Video playback is being prepared.| +| playing | string | Video playback is in progress.| +| paused | string | Video playback is paused.| +| stopped | string | Video playback is stopped.| +| error | string | Video playback is in the error state. | + +## AudioRecorder(deprecated) + +> **NOTE** +> +> This API is supported since API version 6 and deprecated since API version 9. You are advised to use [AVRecorder](#avrecorder9) instead. + +Implements audio recording. Before calling any API of **AudioRecorder**, you must use [createAudioRecorder()](#mediacreateaudiorecorder) to create an **AudioRecorder** instance. + +For details about the audio recording demo, see [Audio Recording Development](../../media/audio-recorder.md). + +### prepare + +prepare(config: AudioRecorderConfig): void + +Prepares for recording. + +**Required permissions:** ohos.permission.MICROPHONE + +**System capability**: SystemCapability.Multimedia.Media.AudioRecorder + +**Parameters** + +| Name| Type | Mandatory| Description | +| ------ | ------------------------------------------- | ---- | ------------------------------------------------------------ | +| config | [AudioRecorderConfig](#audiorecorderconfigdeprecated) | Yes | Audio recording parameters, including the audio output URI, encoding format, sampling rate, number of audio channels, and output format.| + +**Example** + +```js +let audioRecorderConfig = { + audioEncoder : media.AudioEncoder.AAC_LC, + audioEncodeBitRate : 22050, + audioSampleRate : 22050, + numberOfChannels : 2, + format : media.AudioOutputFormat.AAC_ADTS, + uri : 'fd://1', // The file must be created by the caller and granted with proper permissions. + location : { latitude : 30, longitude : 130}, +} +audioRecorder.on('prepare', () => { // Set the 'prepare' event callback. + console.log('prepare success'); +}); +audioRecorder.prepare(audioRecorderConfig); +``` + + +### start + +start(): void + +Starts audio recording. This API can be called only after the [prepare](#audiorecorder_on) event is triggered. + +**System capability**: SystemCapability.Multimedia.Media.AudioRecorder + +**Example** + +```js +audioRecorder.on('start', () => { // Set the 'start' event callback. + console.log('audio recorder start success'); +}); +audioRecorder.start(); +``` + +### pause + +pause():void + +Pauses audio recording. This API can be called only after the [start](#audiorecorder_on) event is triggered. + +**System capability**: SystemCapability.Multimedia.Media.AudioRecorder + +**Example** + +```js +audioRecorder.on('pause', () => { // Set the 'pause' event callback. + console.log('audio recorder pause success'); +}); +audioRecorder.pause(); +``` + +### resume + +resume():void + +Resumes audio recording. This API can be called only after the [pause](#audiorecorder_on) event is triggered. + +**System capability**: SystemCapability.Multimedia.Media.AudioRecorder + +**Example** + +```js +audioRecorder.on('resume', () => { // Set the 'resume' event callback. + console.log('audio recorder resume success'); +}); +audioRecorder.resume(); +``` + +### stop + +stop(): void + +Stops audio recording. + +**System capability**: SystemCapability.Multimedia.Media.AudioRecorder + +**Example** + +```js +audioRecorder.on('stop', () => { // Set the 'stop' event callback. + console.log('audio recorder stop success'); +}); +audioRecorder.stop(); +``` + +### release + +release(): void + +Releases the audio recording resources. + +**System capability**: SystemCapability.Multimedia.Media.AudioRecorder + +**Example** + +```js +audioRecorder.on('release', () => { // Set the 'release' event callback. + console.log('audio recorder release success'); +}); +audioRecorder.release(); +audioRecorder = undefined; +``` + +### reset + +reset(): void + +Resets audio recording. + +Before resetting audio recording, you must call [stop()](#audiorecorder_stop) to stop recording. After audio recording is reset, you must call [prepare()](#audiorecorder_prepare) to set the recording parameters for another recording. + +**System capability**: SystemCapability.Multimedia.Media.AudioRecorder + +**Example** + +```js +audioRecorder.on('reset', () => { // Set the 'reset' event callback. + console.log('audio recorder reset success'); +}); +audioRecorder.reset(); +``` + +### on('prepare' | 'start' | 'pause' | 'resume' | 'stop' | 'release' | 'reset') + +on(type: 'prepare' | 'start' | 'pause' | 'resume' | 'stop' | 'release' | 'reset', callback: () => void): void + +Subscribes to the audio recording events. + +**System capability**: SystemCapability.Multimedia.Media.AudioRecorder + +**Parameters** + +| Name | Type | Mandatory| Description | +| -------- | -------- | ---- | ------------------------------------------------------------ | +| type | string | Yes | Event type. The following events are supported:
- 'prepare': triggered when the [prepare](#audiorecorder_prepare) API is called and the audio recording parameters are set.
- 'start': triggered when the [start](#audiorecorder_start) API is called and audio recording starts.
- 'pause': triggered when the [pause](#audiorecorder_pause) API is called and audio recording is paused.
- 'resume': triggered when the [resume](#audiorecorder_resume) API is called and audio recording is resumed.
- 'stop': triggered when the [stop](#audiorecorder_stop) API is called and audio recording stops.
- 'release': triggered when the [release](#audiorecorder_release) API is called and the recording resources are released.
- 'reset': triggered when the [reset](#audiorecorder_reset) API is called and audio recording is reset. | +| callback | ()=>void | Yes | Callback invoked when the event is triggered. | + +**Example** + +```js +let audioRecorder = media.createAudioRecorder(); // Create an AudioRecorder instance. +let audioRecorderConfig = { + audioEncoder : media.AudioEncoder.AAC_LC, + audioEncodeBitRate : 22050, + audioSampleRate : 22050, + numberOfChannels : 2, + format : media.AudioOutputFormat.AAC_ADTS, + uri : 'fd://xx', // The file must be created by the caller and granted with proper permissions. + location : { latitude : 30, longitude : 130}, +} +audioRecorder.on('error', (error) => { // Set the 'error' event callback. + console.info(`audio error called, error: ${error}`); +}); +audioRecorder.on('prepare', () => { // Set the 'prepare' event callback. + console.log('prepare success'); + audioRecorder.start(); // Start recording and trigger the 'start' event callback. +}); +audioRecorder.on('start', () => { // Set the 'start' event callback. + console.log('audio recorder start success'); +}); +audioRecorder.on('pause', () => { // Set the 'pause' event callback. + console.log('audio recorder pause success'); +}); +audioRecorder.on('resume', () => { // Set the 'resume' event callback. + console.log('audio recorder resume success'); +}); +audioRecorder.on('stop', () => { // Set the 'stop' event callback. + console.log('audio recorder stop success'); +}); +audioRecorder.on('release', () => { // Set the 'release' event callback. + console.log('audio recorder release success'); +}); +audioRecorder.on('reset', () => { // Set the 'reset' event callback. + console.log('audio recorder reset success'); +}); +audioRecorder.prepare(audioRecorderConfig) // Set recording parameters and trigger the 'prepare' event callback. +``` + +### on('error') + +on(type: 'error', callback: ErrorCallback): void + +Subscribes to audio recording error events. After an error event is reported, you must handle the event and exit the recording. + +**System capability**: SystemCapability.Multimedia.Media.AudioRecorder + +**Parameters** + +| Name | Type | Mandatory| Description | +| -------- | ------------- | ---- | ------------------------------------------------------------ | +| type | string | Yes | Event type, which is **'error'** in this case.
This event is triggered when an error occurs during audio recording.| +| callback | ErrorCallback | Yes | Callback invoked when the event is triggered. | + +**Example** + +```js +let audioRecorderConfig = { + audioEncoder : media.AudioEncoder.AAC_LC, + audioEncodeBitRate : 22050, + audioSampleRate : 22050, + numberOfChannels : 2, + format : media.AudioOutputFormat.AAC_ADTS, + uri : 'fd://xx', // The file must be created by the caller and granted with proper permissions. + location : { latitude : 30, longitude : 130}, +} +audioRecorder.on('error', (error) => { // Set the 'error' event callback. + console.info(`audio error called, error: ${error}`); +}); +audioRecorder.prepare(audioRecorderConfig); // Do no set any parameter in prepare and trigger the 'error' event callback. +``` + +## AudioRecorderConfig(deprecated) + +> **NOTE** +> +> This API is supported since API version 6 and deprecated since API version 9. You are advised to use [AVRecorderConfig](#avrecorderconfig9) instead. + +Describes audio recording configurations. + +**System capability**: SystemCapability.Multimedia.Media.AudioRecorder + +| Name | Type | Mandatory| Description | +| ----------------------------------- | -------------------------------------------- | ---- | ------------------------------------------------------------ | +| audioEncoder | [AudioEncoder](#audioencoderdeprecated) | No | Audio encoding format. The default value is **AAC_LC**.
**Note**: This parameter is deprecated since API version 8. Use **audioEncoderMime** instead.| +| audioEncodeBitRate | number | No | Audio encoding bit rate. The default value is **48000**. | +| audioSampleRate | number | No | Audio sampling rate. The default value is **48000**. | +| numberOfChannels | number | No | Number of audio channels. The default value is **2**. | +| format | [AudioOutputFormat](#audiooutputformatdeprecated) | No | Audio output format. The default value is **MPEG_4**.
**Note**: This parameter is deprecated since API version 8. Use **fileFormat** instead.| +| location | [Location](#location) | No | Geographical location of the recorded audio. | +| uri | string | Yes | Audio output URI. Supported: fd://xx (fd number)
![](figures/en-us_image_url.png)
The file must be created by the caller and granted with proper permissions.| +| audioEncoderMime8+ | [CodecMimeType](#codecmimetype8) | No | Audio encoding format. | +| fileFormat8+ | [ContainerFormatType](#containerformattype8) | No | Audio encoding format. | + +## AudioEncoder(deprecated) + +> **NOTE** +> +> This API is supported since API version 6 and deprecated since API version 8. You are advised to use [CodecMimeType](#codecmimetype8) instead. + +Enumerates the audio encoding formats. + +**System capability**: SystemCapability.Multimedia.Media.AudioRecorder + +| Name | Value | Description | +| ------- | ---- | ------------------------------------------------------------ | +| DEFAULT | 0 | Default encoding format.
This API is defined but not implemented yet. | +| AMR_NB | 1 | AMR-NB.
This API is defined but not implemented yet.| +| AMR_WB | 2 | Adaptive Multi Rate-Wide Band Speech Codec (AMR-WB).
This API is defined but not implemented yet.| +| AAC_LC | 3 | Advanced Audio Coding Low Complexity (AAC-LC).| +| HE_AAC | 4 | High-Efficiency Advanced Audio Coding (HE_AAC).
This API is defined but not implemented yet.| + +## AudioOutputFormat(deprecated) + +> **NOTE** +> +> This API is supported since API version 6 and deprecated since API version 8. You are advised to use [ContainerFormatType](#containerformattype8) instead. + +Enumerates the audio output formats. + +**System capability**: SystemCapability.Multimedia.Media.AudioRecorder + +| Name | Value | Description | +| -------- | ---- | ------------------------------------------------------------ | +| DEFAULT | 0 | Default encapsulation format.
This API is defined but not implemented yet. | +| MPEG_4 | 2 | MPEG-4. | +| AMR_NB | 3 | AMR_NB.
This API is defined but not implemented yet. | +| AMR_WB | 4 | AMR_WB.
This API is defined but not implemented yet. | +| AAC_ADTS | 6 | Audio Data Transport Stream (ADTS), which is a transport stream format of AAC-based audio.| diff --git a/en/application-dev/reference/apis/js-apis-notification.md b/en/application-dev/reference/apis/js-apis-notification.md index 9fdf5e1f345b68fcd99e6e027cfb0c44d5da29d8..06bd296eab73896a8034d3d8245bf05e09d9548c 100644 --- a/en/application-dev/reference/apis/js-apis-notification.md +++ b/en/application-dev/reference/apis/js-apis-notification.md @@ -1,4 +1,4 @@ -# @ohos.notification +# @ohos.notification (Notification) The **Notification** module provides notification management capabilities, covering notifications, notification slots, notification subscription, notification enabled status, and notification badge status. @@ -41,7 +41,7 @@ function publishCallback(err) { } } // NotificationRequest object -var notificationRequest = { +let notificationRequest = { id: 1, content: { contentType: Notification.ContentType.NOTIFICATION_CONTENT_BASIC_TEXT, @@ -51,8 +51,8 @@ var notificationRequest = { additionalText: "test_additionalText" } } -} -Notification.publish(notificationRequest, publishCallback) +}; +Notification.publish(notificationRequest, publishCallback); ``` @@ -75,7 +75,7 @@ Publishes a notification. This API uses a promise to return the result. ```js // NotificationRequest object -var notificationRequest = { +let notificationRequest = { notificationId: 1, content: { contentType: Notification.ContentType.NOTIFICATION_CONTENT_BASIC_TEXT, @@ -85,7 +85,7 @@ var notificationRequest = { additionalText: "test_additionalText" } } -} +}; Notification.publish(notificationRequest).then(() => { console.info("publish success"); }); @@ -124,9 +124,9 @@ function publishCallback(err) { } } // User ID -var userId = 1 +let userId = 1; // NotificationRequest object -var notificationRequest = { +let notificationRequest = { id: 1, content: { contentType: Notification.ContentType.NOTIFICATION_CONTENT_BASIC_TEXT, @@ -136,7 +136,7 @@ var notificationRequest = { additionalText: "test_additionalText" } } -} +}; Notification.publish(notificationRequest, userId, publishCallback); ``` @@ -162,7 +162,7 @@ Publishes a notification to a specified user. This API uses a promise to return **Example** ```js -var notificationRequest = { +let notificationRequest = { notificationId: 1, content: { contentType: Notification.ContentType.NOTIFICATION_CONTENT_BASIC_TEXT, @@ -172,9 +172,9 @@ var notificationRequest = { additionalText: "test_additionalText" } } -} +}; -var userId = 1 +let userId = 1; Notification.publish(notificationRequest, userId).then(() => { console.info("publish success"); @@ -209,7 +209,7 @@ function cancelCallback(err) { console.info("cancel success"); } } -Notification.cancel(0, "label", cancelCallback) +Notification.cancel(0, "label", cancelCallback); ``` @@ -265,7 +265,7 @@ function cancelCallback(err) { console.info("cancel success"); } } -Notification.cancel(0, cancelCallback) +Notification.cancel(0, cancelCallback); ``` @@ -295,7 +295,7 @@ function cancelAllCallback(err) { console.info("cancelAll success"); } } -Notification.cancelAll(cancelAllCallback) +Notification.cancelAll(cancelAllCallback); ``` @@ -349,10 +349,10 @@ function addSlotCallBack(err) { } } // NotificationSlot object -var notificationSlot = { +let notificationSlot = { type: Notification.SlotType.SOCIAL_COMMUNICATION -} -Notification.addSlot(notificationSlot, addSlotCallBack) +}; +Notification.addSlot(notificationSlot, addSlotCallBack); ``` @@ -379,9 +379,9 @@ Adds a notification slot. This API uses a promise to return the result. ```js // NotificationSlot object -var notificationSlot = { +let notificationSlot = { type: Notification.SlotType.SOCIAL_COMMUNICATION -} +}; Notification.addSlot(notificationSlot).then(() => { console.info("addSlot success"); }); @@ -415,7 +415,7 @@ function addSlotCallBack(err) { console.info("addSlot success"); } } -Notification.addSlot(Notification.SlotType.SOCIAL_COMMUNICATION, addSlotCallBack) +Notification.addSlot(Notification.SlotType.SOCIAL_COMMUNICATION, addSlotCallBack); ``` @@ -475,14 +475,14 @@ function addSlotsCallBack(err) { } } // NotificationSlot object -var notificationSlot = { +let notificationSlot = { type: Notification.SlotType.SOCIAL_COMMUNICATION -} +}; // NotificationSlotArray object -var notificationSlotArray = new Array(); +let notificationSlotArray = new Array(); notificationSlotArray[0] = notificationSlot; -Notification.addSlots(notificationSlotArray, addSlotsCallBack) +Notification.addSlots(notificationSlotArray, addSlotsCallBack); ``` @@ -509,11 +509,11 @@ Adds an array of notification slots. This API uses a promise to return the resul ```js // NotificationSlot object -var notificationSlot = { +let notificationSlot = { type: Notification.SlotType.SOCIAL_COMMUNICATION -} +}; // NotificationSlotArray object -var notificationSlotArray = new Array(); +let notificationSlotArray = new Array(); notificationSlotArray[0] = notificationSlot; Notification.addSlots(notificationSlotArray).then(() => { @@ -549,8 +549,8 @@ function getSlotCallback(err, data) { console.info("getSlot success"); } } -var slotType = Notification.SlotType.SOCIAL_COMMUNICATION; -Notification.getSlot(slotType, getSlotCallback) +let slotType = Notification.SlotType.SOCIAL_COMMUNICATION; +Notification.getSlot(slotType, getSlotCallback); ``` @@ -578,7 +578,7 @@ Obtains a notification slot of a specified type. This API uses a promise to retu **Example** ```js -var slotType = Notification.SlotType.SOCIAL_COMMUNICATION; +let slotType = Notification.SlotType.SOCIAL_COMMUNICATION; Notification.getSlot(slotType).then((data) => { console.info("getSlot success, data: " + JSON.stringify(data)); }); @@ -611,7 +611,7 @@ function getSlotsCallback(err, data) { console.info("getSlots success"); } } -Notification.getSlots(getSlotsCallback) +Notification.getSlots(getSlotsCallback); ``` @@ -666,8 +666,8 @@ function removeSlotCallback(err) { console.info("removeSlot success"); } } -var slotType = Notification.SlotType.SOCIAL_COMMUNICATION; -Notification.removeSlot(slotType,removeSlotCallback) +let slotType = Notification.SlotType.SOCIAL_COMMUNICATION; +Notification.removeSlot(slotType,removeSlotCallback); ``` @@ -689,7 +689,7 @@ Removes a notification slot of a specified type. This API uses a promise to retu **Example** ```js -var slotType = Notification.SlotType.SOCIAL_COMMUNICATION; +let slotType = Notification.SlotType.SOCIAL_COMMUNICATION; Notification.removeSlot(slotType).then(() => { console.info("removeSlot success"); }); @@ -721,7 +721,7 @@ function removeAllCallBack(err) { console.info("removeAllSlots success"); } } -Notification.removeAllSlots(removeAllCallBack) +Notification.removeAllSlots(removeAllCallBack); ``` @@ -778,12 +778,12 @@ function subscribeCallback(err) { function onConsumeCallback(data) { console.info("Consume callback: " + JSON.stringify(data)); } -var subscriber = { +let subscriber = { onConsume: onConsumeCallback -} -var info = { +}; +let info = { bundleNames: ["bundleName1", "bundleName2"] -} +}; Notification.subscribe(subscriber, info, subscribeCallback); ``` @@ -821,9 +821,9 @@ function subscribeCallback(err) { function onConsumeCallback(data) { console.info("Consume callback: " + JSON.stringify(data)); } -var subscriber = { +let subscriber = { onConsume: onConsumeCallback -} +}; Notification.subscribe(subscriber, subscribeCallback); ``` @@ -854,7 +854,7 @@ Subscribes to a notification with the subscription information specified. This A function onConsumeCallback(data) { console.info("Consume callback: " + JSON.stringify(data)); } -var subscriber = { +let subscriber = { onConsume: onConsumeCallback }; Notification.subscribe(subscriber).then(() => { @@ -896,9 +896,9 @@ function unsubscribeCallback(err) { function onDisconnectCallback(data) { console.info("Cancel callback: " + JSON.stringify(data)); } -var subscriber = { +let subscriber = { onDisconnect: onDisconnectCallback -} +}; Notification.unsubscribe(subscriber, unsubscribeCallback); ``` @@ -928,7 +928,7 @@ Unsubscribes from a notification. This API uses a promise to return the result. function onDisconnectCallback(data) { console.info("Cancel callback: " + JSON.stringify(data)); } -var subscriber = { +let subscriber = { onDisconnect: onDisconnectCallback }; Notification.unsubscribe(subscriber).then(() => { @@ -968,9 +968,9 @@ function enableNotificationCallback(err) { console.info("enableNotification success"); } } -var bundle = { +let bundle = { bundle: "bundleName1", -} +}; Notification.enableNotification(bundle, false, enableNotificationCallback); ``` @@ -998,9 +998,9 @@ Sets whether to enable notification for a specified application. This API uses a **Example** ```js -var bundle = { +let bundle = { bundle: "bundleName1", -} +}; Notification.enableNotification(bundle, false).then(() => { console.info("enableNotification success"); }); @@ -1037,9 +1037,9 @@ function isNotificationEnabledCallback(err, data) { console.info("isNotificationEnabled success"); } } -var bundle = { +let bundle = { bundle: "bundleName1", -} +}; Notification.isNotificationEnabled(bundle, isNotificationEnabledCallback); ``` @@ -1072,9 +1072,9 @@ Checks whether notification is enabled for a specified application. This API use **Example** ```js -var bundle = { +let bundle = { bundle: "bundleName1", -} +}; Notification.isNotificationEnabled(bundle).then((data) => { console.info("isNotificationEnabled success, data: " + JSON.stringify(data)); }); @@ -1180,9 +1180,9 @@ function displayBadgeCallback(err) { console.info("displayBadge success"); } } -var bundle = { +let bundle = { bundle: "bundleName1", -} +}; Notification.displayBadge(bundle, false, displayBadgeCallback); ``` @@ -1210,9 +1210,9 @@ Sets whether to enable the notification badge for a specified application. This **Example** ```js -var bundle = { +let bundle = { bundle: "bundleName1", -} +}; Notification.displayBadge(bundle, false).then(() => { console.info("displayBadge success"); }); @@ -1249,9 +1249,9 @@ function isBadgeDisplayedCallback(err, data) { console.info("isBadgeDisplayed success"); } } -var bundle = { +let bundle = { bundle: "bundleName1", -} +}; Notification.isBadgeDisplayed(bundle, isBadgeDisplayedCallback); ``` @@ -1284,9 +1284,9 @@ Checks whether the notification badge is enabled for a specified application. Th **Example** ```js -var bundle = { +let bundle = { bundle: "bundleName1", -} +}; Notification.isBadgeDisplayed(bundle).then((data) => { console.info("isBadgeDisplayed success, data: " + JSON.stringify(data)); }); @@ -1324,12 +1324,12 @@ function setSlotByBundleCallback(err) { console.info("setSlotByBundle success"); } } -var bundle = { +let bundle = { bundle: "bundleName1", -} -var notificationSlot = { +}; +let notificationSlot = { type: Notification.SlotType.SOCIAL_COMMUNICATION -} +}; Notification.setSlotByBundle(bundle, notificationSlot, setSlotByBundleCallback); ``` @@ -1357,12 +1357,12 @@ Sets the notification slot for a specified application. This API uses a promise **Example** ```js -var bundle = { +let bundle = { bundle: "bundleName1", -} -var notificationSlot = { +}; +let notificationSlot = { type: Notification.SlotType.SOCIAL_COMMUNICATION -} +}; Notification.setSlotByBundle(bundle, notificationSlot).then(() => { console.info("setSlotByBundle success"); }); @@ -1399,9 +1399,9 @@ function getSlotsByBundleCallback(err, data) { console.info("getSlotsByBundle success"); } } -var bundle = { +let bundle = { bundle: "bundleName1", -} +}; Notification.getSlotsByBundle(bundle, getSlotsByBundleCallback); ``` @@ -1434,9 +1434,9 @@ Obtains the notification slots of a specified application. This API uses a promi **Example** ```js -var bundle = { +let bundle = { bundle: "bundleName1", -} +}; Notification.getSlotsByBundle(bundle).then((data) => { console.info("getSlotsByBundle success, data: " + JSON.stringify(data)); }); @@ -1473,9 +1473,9 @@ function getSlotNumByBundleCallback(err, data) { console.info("getSlotNumByBundle success"); } } -var bundle = { +let bundle = { bundle: "bundleName1", -} +}; Notification.getSlotNumByBundle(bundle, getSlotNumByBundleCallback); ``` @@ -1508,9 +1508,9 @@ Obtains the number of notification slots of a specified application. This API us **Example** ```js -var bundle = { +let bundle = { bundle: "bundleName1", -} +}; Notification.getSlotNumByBundle(bundle).then((data) => { console.info("getSlotNumByBundle success, data: " + JSON.stringify(data)); }); @@ -1549,14 +1549,14 @@ function removeCallback(err) { console.info("remove success"); } } -var bundle = { +let bundle = { bundle: "bundleName1", -} -var notificationKey = { +}; +let notificationKey = { id: 0, label: "label", -} -var reason = Notification.RemoveReason.CLICK_REASON_REMOVE; +}; +let reason = Notification.RemoveReason.CLICK_REASON_REMOVE; Notification.remove(bundle, notificationKey, reason, removeCallback); ``` @@ -1585,14 +1585,14 @@ Removes a notification for a specified bundle. This API uses a promise to return **Example** ```js -var bundle = { +let bundle = { bundle: "bundleName1", -} -var notificationKey = { +}; +let notificationKey = { id: 0, label: "label", -} -var reason = Notification.RemoveReason.CLICK_REASON_REMOVE; +}; +let reason = Notification.RemoveReason.CLICK_REASON_REMOVE; Notification.remove(bundle, notificationKey, reason).then(() => { console.info("remove success"); }); @@ -1623,7 +1623,7 @@ Removes a notification for a specified bundle. This API uses an asynchronous cal **Example** ```js -var hashCode = 'hashCode' +let hashCode = 'hashCode'; function removeCallback(err) { if (err.code) { @@ -1632,7 +1632,7 @@ function removeCallback(err) { console.info("remove success"); } } -var reason = Notification.RemoveReason.CANCEL_REASON_REMOVE; +let reason = Notification.RemoveReason.CANCEL_REASON_REMOVE; Notification.remove(hashCode, reason, removeCallback); ``` @@ -1660,8 +1660,8 @@ Removes a notification for a specified bundle. This API uses a promise to return **Example** ```js -var hashCode = 'hashCode' -var reason = Notification.RemoveReason.CLICK_REASON_REMOVE; +let hashCode = 'hashCode'; +let reason = Notification.RemoveReason.CLICK_REASON_REMOVE; Notification.remove(hashCode, reason).then(() => { console.info("remove success"); }); @@ -1698,9 +1698,9 @@ function removeAllCallback(err) { console.info("removeAll success"); } } -var bundle = { +let bundle = { bundle: "bundleName1", -} +}; Notification.removeAll(bundle, removeAllCallback); ``` @@ -1797,7 +1797,7 @@ function removeAllCallback(err) { } } -var userId = 1 +let userId = 1; Notification.removeAll(userId, removeAllCallback); ``` @@ -1822,7 +1822,7 @@ Removes all notifications for a specified user. This API uses a promise to retur **Example** ```js -var userId = 1 +let userId = 1; Notification.removeAll(userId).then(() => { console.info("removeAll success"); }); @@ -2025,7 +2025,7 @@ function cancelGroupCallback(err) { } } -var groupName = "GroupName"; +let groupName = "GroupName"; Notification.cancelGroup(groupName, cancelGroupCallback); ``` @@ -2049,7 +2049,7 @@ Cancels notifications under a notification group of this application. This API u **Example** ```js -var groupName = "GroupName"; +let groupName = "GroupName"; Notification.cancelGroup(groupName).then(() => { console.info("cancelGroup success"); }); @@ -2088,8 +2088,8 @@ function removeGroupByBundleCallback(err) { } } -var bundleOption = {bundle: "Bundle"}; -var groupName = "GroupName"; +let bundleOption = {bundle: "Bundle"}; +let groupName = "GroupName"; Notification.removeGroupByBundle(bundleOption, groupName, removeGroupByBundleCallback); ``` @@ -2118,8 +2118,8 @@ Removes notifications under a notification group of a specified application. Thi **Example** ```js -var bundleOption = {bundle: "Bundle"}; -var groupName = "GroupName"; +let bundleOption = {bundle: "Bundle"}; +let groupName = "GroupName"; Notification.removeGroupByBundle(bundleOption, groupName).then(() => { console.info("removeGroupByBundle success"); }); @@ -2157,11 +2157,11 @@ function setDoNotDisturbDateCallback(err) { } } -var doNotDisturbDate = { +let doNotDisturbDate = { type: Notification.DoNotDisturbType.TYPE_ONCE, begin: new Date(), end: new Date(2021, 11, 15, 18, 0) -} +}; Notification.setDoNotDisturbDate(doNotDisturbDate, setDoNotDisturbDateCallback); ``` @@ -2189,11 +2189,11 @@ Sets the DND time. This API uses a promise to return the result. **Example** ```js -var doNotDisturbDate = { +let doNotDisturbDate = { type: Notification.DoNotDisturbType.TYPE_ONCE, begin: new Date(), end: new Date(2021, 11, 15, 18, 0) -} +}; Notification.setDoNotDisturbDate(doNotDisturbDate).then(() => { console.info("setDoNotDisturbDate success"); }); @@ -2231,13 +2231,13 @@ function setDoNotDisturbDateCallback(err) { } } -var doNotDisturbDate = { +let doNotDisturbDate = { type: Notification.DoNotDisturbType.TYPE_ONCE, begin: new Date(), end: new Date(2021, 11, 15, 18, 0) -} +}; -var userId = 1 +let userId = 1 Notification.setDoNotDisturbDate(doNotDisturbDate, userId, setDoNotDisturbDateCallback); ``` @@ -2265,13 +2265,13 @@ Sets the DND time for a specified user. This API uses a promise to return the re **Example** ```js -var doNotDisturbDate = { +let doNotDisturbDate = { type: Notification.DoNotDisturbType.TYPE_ONCE, begin: new Date(), end: new Date(2021, 11, 15, 18, 0) -} +}; -var userId = 1 +let userId = 1; Notification.setDoNotDisturbDate(doNotDisturbDate, userId).then(() => { console.info("setDoNotDisturbDate success"); @@ -2370,7 +2370,7 @@ function getDoNotDisturbDateCallback(err,data) { } } -var userId = 1 +let userId = 1; Notification.getDoNotDisturbDate(userId, getDoNotDisturbDateCallback); ``` @@ -2404,7 +2404,7 @@ Obtains the DND time of a specified user. This API uses a promise to return the **Example** ```js -var userId = 1 +let userId = 1; Notification.getDoNotDisturbDate(userId).then((data) => { console.info("getDoNotDisturbDate success, data: " + JSON.stringify(data)); @@ -2492,7 +2492,7 @@ Checks whether a specified template exists. This API uses an asynchronous callba **Example** ```javascript -var templateName = 'process'; +let templateName = 'process'; function isSupportTemplateCallback(err, data) { if (err.code) { console.info("isSupportTemplate failed " + JSON.stringify(err)); @@ -2529,7 +2529,7 @@ Checks whether a specified template exists. This API uses a promise to return th **Example** ```javascript -var templateName = 'process'; +let templateName = 'process'; Notification.isSupportTemplate(templateName).then((data) => { console.info("isSupportTemplate success, data: " + JSON.stringify(data)); @@ -2615,7 +2615,7 @@ function enabledNotificationCallback(err) { } }; -var enable = true +let enable = true; Notification.enableDistributed(enable, enabledNotificationCallback); ``` @@ -2643,7 +2643,7 @@ Sets whether this device supports distributed notifications. This API uses a pro **Example** ```javascript -var enable = true +let enable = true; Notification.enableDistributed(enable).then(() => { console.info("enableDistributed success"); }); @@ -2734,11 +2734,11 @@ function enableDistributedByBundleCallback(err) { } }; -var bundle = { +let bundle = { bundle: "bundleName1", -} +}; -var enable = true +let enable = true; Notification.enableDistributedByBundle(bundle, enable, enableDistributedByBundleCallback); ``` @@ -2767,11 +2767,11 @@ Sets whether a specified application supports distributed notifications. This AP **Example** ```javascript -var bundle = { +let bundle = { bundle: "bundleName1", -} +}; -var enable = true +let enable = true; Notification.enableDistributedByBundle(bundle, enable).then(() => { console.info("enableDistributedByBundle success"); }); @@ -2807,9 +2807,9 @@ function isDistributedEnabledByBundleCallback(err, data) { } }; -var bundle = { +let bundle = { bundle: "bundleName1", -} +}; Notification.isDistributedEnabledByBundle(bundle, isDistributedEnabledByBundleCallback); ``` @@ -2843,9 +2843,9 @@ Checks whether a specified application supports distributed notifications. This **Example** ```javascript -var bundle = { +let bundle = { bundle: "bundleName1", -} +}; Notification.isDistributedEnabledByBundle(bundle).then((data) => { console.info("isDistributedEnabledByBundle success, data: " + JSON.stringify(data)); @@ -2947,9 +2947,9 @@ function callback(err) { } } // Bundle name of the application whose notification function is taken over by the reminder agent -let representativeBundle = "com.example.demo" +let representativeBundle = "com.example.demo"; // User ID -let userId = 100 +let userId = 100; // NotificationRequest object let request = { id: 1, @@ -2961,7 +2961,7 @@ let request = { additionalText: "test_additionalText" } } -} +}; Notification.publishAsBundle(request, representativeBundle, userId, callback); ``` @@ -2991,11 +2991,11 @@ Publishes a notification through the reminder agent. This API uses a promise to ```js // Bundle name of the application whose notification function is taken over by the reminder agent -let representativeBundle = "com.example.demo" +let representativeBundle = "com.example.demo"; // User ID -let userId = 100 +let userId = 100; // NotificationRequest object -var request = { +let request = { id: 1, content: { contentType: Notification.ContentType.NOTIFICATION_CONTENT_BASIC_TEXT, @@ -3005,7 +3005,7 @@ var request = { additionalText: "test_additionalText" } } -} +}; Notification.publishAsBundle(request, representativeBundle, userId).then(() => { console.info("publishAsBundle success"); @@ -3047,9 +3047,9 @@ function cancelAsBundleCallback(err) { } } // Bundle name of the application whose notification function is taken over by the reminder agent -let representativeBundle = "com.example.demo" +let representativeBundle = "com.example.demo"; // User ID -let userId = 100 +let userId = 100; Notification.cancelAsBundle(0, representativeBundle, userId, cancelAsBundleCallback); ``` @@ -3080,9 +3080,9 @@ Cancels a notification published by the reminder agent. This API uses a promise ```js // Bundle name of the application whose notification function is taken over by the reminder agent -let representativeBundle = "com.example.demo" +let representativeBundle = "com.example.demo"; // User ID -let userId = 100 +let userId = 100; Notification.cancelAsBundle(0, representativeBundle, userId).then(() => { console.info("cancelAsBundle success"); @@ -3421,7 +3421,7 @@ function onConsumeCallback(data) { console.info('===> onConsume callback req.id:' + req.id); }; -var subscriber = { +let subscriber = { onConsume: onConsumeCallback }; @@ -3460,7 +3460,7 @@ function onCancelCallback(data) { console.info('===> onCancel callback req.id:' + req.id); } -var subscriber = { +let subscriber = { onCancel: onCancelCallback }; @@ -3498,7 +3498,7 @@ function onUpdateCallback(map) { console.info('===> onUpdateCallback map:' + JSON.stringify(map)); } -var subscriber = { +let subscriber = { onUpdate: onUpdateCallback }; @@ -3530,7 +3530,7 @@ function onConnectCallback() { console.info('===> onConnect in test'); } -var subscriber = { +let subscriber = { onConnect: onConnectCallback }; @@ -3572,7 +3572,7 @@ function onDisconnectCallback() { console.info('===> onDisconnect in test'); } -var subscriber = { +let subscriber = { onConnect: onConnectCallback, onDisconnect: onDisconnectCallback }; @@ -3608,7 +3608,7 @@ function onDestroyCallback() { console.info('===> onDestroy in test'); } -var subscriber = { +let subscriber = { onDestroy: onDestroyCallback }; @@ -3645,12 +3645,12 @@ function onDoNotDisturbDateChangeCallback(mode) { console.info('===> onDoNotDisturbDateChange:' + mode); } -var subscriber = { +let subscriber = { onDoNotDisturbDateChange: onDoNotDisturbDateChangeCallback }; Notification.subscribe(subscriber, subscribeCallback); -var doNotDisturbDate = { +let doNotDisturbDate = { type: Notification.DoNotDisturbType.TYPE_ONCE, begin: new Date(), end: new Date(2021, 11, 15, 18, 0) @@ -3695,12 +3695,12 @@ function onEnabledNotificationChangedCallback(callbackData) { console.info("enable: " + callbackData.enable); }; -var subscriber = { +let subscriber = { onEnabledNotificationChanged: onEnabledNotificationChangedCallback }; Notification.subscribe(subscriber, subscribeCallback); -var bundle = { +let bundle = { bundle: "bundleName1", } // Set the onEnabledNotificationChanged callback that is triggered when the notification enabled status changes. diff --git a/en/application-dev/reference/apis/js-apis-notificationManager.md b/en/application-dev/reference/apis/js-apis-notificationManager.md index 2d8f497bede97cc9c6d1a8d408b6e80770a2396f..a878376a3c035ac7ad112d95a4d8ebfa47123ee6 100644 --- a/en/application-dev/reference/apis/js-apis-notificationManager.md +++ b/en/application-dev/reference/apis/js-apis-notificationManager.md @@ -1,4 +1,4 @@ -# @ohos.notificationManager +# @ohos.notificationManager (NotificationManager) The **notificationManager** module provides notification management capabilities, covering notifications, notification slots, notification enabled status, and notification badge status. @@ -8,11 +8,11 @@ The **notificationManager** module provides notification management capabilities ## Modules to Import -```js -import Notification from '@ohos.notificationManager'; +```ts +import notificationManager from '@ohos.notificationManager'; ``` -## Notification.publish +## notificationManager.publish publish(request: NotificationRequest, callback: AsyncCallback\): void @@ -40,7 +40,7 @@ Publishes a notification. This API uses an asynchronous callback to return the r **Example** -```js +```ts // publish callback function publishCallback(err) { if (err) { @@ -50,23 +50,21 @@ function publishCallback(err) { } } // NotificationRequest object -var notificationRequest = { +let notificationRequest = { id: 1, content: { - contentType: Notification.ContentType.NOTIFICATION_CONTENT_BASIC_TEXT, + contentType: notificationManager.ContentType.NOTIFICATION_CONTENT_BASIC_TEXT, normal: { title: "test_title", text: "test_text", additionalText: "test_additionalText" } } -} -Notification.publish(notificationRequest, publishCallback) +}; +notificationManager.publish(notificationRequest, publishCallback); ``` - - -## Notification.publish +## notificationManager.publish publish(request: NotificationRequest): Promise\ @@ -93,26 +91,26 @@ Publishes a notification. This API uses a promise to return the result. **Example** -```js +```ts // NotificationRequest object -var notificationRequest = { +let notificationRequest = { notificationId: 1, content: { - contentType: Notification.ContentType.NOTIFICATION_CONTENT_BASIC_TEXT, + contentType: notificationManager.ContentType.NOTIFICATION_CONTENT_BASIC_TEXT, normal: { title: "test_title", text: "test_text", additionalText: "test_additionalText" } } -} -Notification.publish(notificationRequest).then(() => { +}; +notificationManager.publish(notificationRequest).then(() => { console.info("publish success"); }); ``` -## Notification.publish +## notificationManager.publish publish(request: NotificationRequest, userId: number, callback: AsyncCallback\): void @@ -146,7 +144,7 @@ Publishes a notification to a specified user. This API uses an asynchronous call **Example** -```js +```ts // publish callback function publishCallback(err) { if (err) { @@ -156,23 +154,23 @@ function publishCallback(err) { } } // User ID -var userId = 1 +let userId = 1; // NotificationRequest object -var notificationRequest = { +let notificationRequest = { id: 1, content: { - contentType: Notification.ContentType.NOTIFICATION_CONTENT_BASIC_TEXT, + contentType: notificationManager.ContentType.NOTIFICATION_CONTENT_BASIC_TEXT, normal: { title: "test_title", text: "test_text", additionalText: "test_additionalText" } } -} -Notification.publish(notificationRequest, userId, publishCallback); +}; +notificationManager.publish(notificationRequest, userId, publishCallback); ``` -## Notification.publish +## notificationManager.publish publish(request: NotificationRequest, userId: number): Promise\ @@ -205,28 +203,28 @@ Publishes a notification to a specified user. This API uses a promise to return **Example** -```js -var notificationRequest = { +```ts +let notificationRequest = { notificationId: 1, content: { - contentType: Notification.ContentType.NOTIFICATION_CONTENT_BASIC_TEXT, + contentType: notificationManager.ContentType.NOTIFICATION_CONTENT_BASIC_TEXT, normal: { title: "test_title", text: "test_text", additionalText: "test_additionalText" } } -} +}; -var userId = 1 +let userId = 1; -Notification.publish(notificationRequest, userId).then(() => { +notificationManager.publish(notificationRequest, userId).then(() => { console.info("publish success"); }); ``` -## Notification.cancel +## notificationManager.cancel cancel(id: number, label: string, callback: AsyncCallback\): void @@ -253,7 +251,7 @@ Cancels a notification with the specified ID and label. This API uses an asynchr **Example** -```js +```ts // cancel callback function cancelCallback(err) { if (err) { @@ -262,12 +260,10 @@ function cancelCallback(err) { console.info("cancel success"); } } -Notification.cancel(0, "label", cancelCallback) +notificationManager.cancel(0, "label", cancelCallback); ``` - - -## Notification.cancel +## notificationManager.cancel cancel(id: number, label?: string): Promise\ @@ -293,15 +289,13 @@ Cancels a notification with the specified ID and optional label. This API uses a **Example** -```js -Notification.cancel(0).then(() => { +```ts +notificationManager.cancel(0).then(() => { console.info("cancel success"); }); ``` - - -## Notification.cancel +## notificationManager.cancel cancel(id: number, callback: AsyncCallback\): void @@ -327,7 +321,7 @@ Cancels a notification with the specified ID. This API uses an asynchronous call **Example** -```js +```ts // cancel callback function cancelCallback(err) { if (err) { @@ -336,12 +330,10 @@ function cancelCallback(err) { console.info("cancel success"); } } -Notification.cancel(0, cancelCallback) +notificationManager.cancel(0, cancelCallback); ``` - - -## Notification.cancelAll +## notificationManager.cancelAll cancelAll(callback: AsyncCallback\): void @@ -365,7 +357,7 @@ Cancels all notifications. This API uses an asynchronous callback to return the **Example** -```js +```ts // cancel callback function cancelAllCallback(err) { if (err) { @@ -374,12 +366,10 @@ function cancelAllCallback(err) { console.info("cancelAll success"); } } -Notification.cancelAll(cancelAllCallback) +notificationManager.cancelAll(cancelAllCallback); ``` - - -## Notification.cancelAll +## notificationManager.cancelAll cancelAll(): Promise\ @@ -397,15 +387,13 @@ Cancels all notifications. This API uses a promise to return the result. **Example** -```js -Notification.cancelAll().then(() => { +```ts +notificationManager.cancelAll().then(() => { console.info("cancelAll success"); }); ``` - - -## Notification.addSlot +## notificationManager.addSlot addSlot(slot: NotificationSlot, callback: AsyncCallback\): void @@ -434,7 +422,7 @@ Adds a notification slot. This API uses an asynchronous callback to return the r **Example** -```js +```ts // addSlot callback function addSlotCallBack(err) { if (err) { @@ -444,15 +432,13 @@ function addSlotCallBack(err) { } } // NotificationSlot object -var notificationSlot = { - type: Notification.SlotType.SOCIAL_COMMUNICATION -} -Notification.addSlot(notificationSlot, addSlotCallBack) +let notificationSlot = { + type: notificationManager.SlotType.SOCIAL_COMMUNICATION +}; +notificationManager.addSlot(notificationSlot, addSlotCallBack); ``` - - -## Notification.addSlot +## notificationManager.addSlot addSlot(slot: NotificationSlot): Promise\ @@ -480,19 +466,17 @@ Adds a notification slot. This API uses a promise to return the result. **Example** -```js +```ts // NotificationSlot object -var notificationSlot = { - type: Notification.SlotType.SOCIAL_COMMUNICATION -} -Notification.addSlot(notificationSlot).then(() => { +let notificationSlot = { + type: notificationManager.SlotType.SOCIAL_COMMUNICATION +}; +notificationManager.addSlot(notificationSlot).then(() => { console.info("addSlot success"); }); ``` - - -## Notification.addSlot +## notificationManager.addSlot addSlot(type: SlotType, callback: AsyncCallback\): void @@ -517,7 +501,7 @@ Adds a notification slot of a specified type. This API uses an asynchronous call **Example** -```js +```ts // addSlot callback function addSlotCallBack(err) { if (err) { @@ -526,12 +510,10 @@ function addSlotCallBack(err) { console.info("addSlot success"); } } -Notification.addSlot(Notification.SlotType.SOCIAL_COMMUNICATION, addSlotCallBack) +notificationManager.addSlot(notificationManager.SlotType.SOCIAL_COMMUNICATION, addSlotCallBack); ``` - - -## Notification.addSlot +## notificationManager.addSlot addSlot(type: SlotType): Promise\ @@ -555,15 +537,13 @@ Adds a notification slot of a specified type. This API uses a promise to return **Example** -```js -Notification.addSlot(Notification.SlotType.SOCIAL_COMMUNICATION).then(() => { +```ts +notificationManager.addSlot(notificationManager.SlotType.SOCIAL_COMMUNICATION).then(() => { console.info("addSlot success"); }); ``` - - -## Notification.addSlots +## notificationManager.addSlots addSlots(slots: Array\, callback: AsyncCallback\): void @@ -592,7 +572,7 @@ Adds an array of notification slots. This API uses an asynchronous callback to r **Example** -```js +```ts // addSlots callback function addSlotsCallBack(err) { if (err) { @@ -602,19 +582,17 @@ function addSlotsCallBack(err) { } } // NotificationSlot object -var notificationSlot = { - type: Notification.SlotType.SOCIAL_COMMUNICATION -} +let notificationSlot = { + type: notificationManager.SlotType.SOCIAL_COMMUNICATION +}; // NotificationSlotArray object -var notificationSlotArray = new Array(); +let notificationSlotArray = new Array(); notificationSlotArray[0] = notificationSlot; -Notification.addSlots(notificationSlotArray, addSlotsCallBack) +notificationManager.addSlots(notificationSlotArray, addSlotsCallBack); ``` - - -## Notification.addSlots +## notificationManager.addSlots addSlots(slots: Array\): Promise\ @@ -642,23 +620,21 @@ Adds an array of notification slots. This API uses a promise to return the resul **Example** -```js +```ts // NotificationSlot object -var notificationSlot = { - type: Notification.SlotType.SOCIAL_COMMUNICATION -} +let notificationSlot = { + type: notificationManager.SlotType.SOCIAL_COMMUNICATION +}; // NotificationSlotArray object -var notificationSlotArray = new Array(); +let notificationSlotArray = new Array(); notificationSlotArray[0] = notificationSlot; -Notification.addSlots(notificationSlotArray).then(() => { +notificationManager.addSlots(notificationSlotArray).then(() => { console.info("addSlots success"); }); ``` - - -## Notification.getSlot +## notificationManager.getSlot getSlot(slotType: SlotType, callback: AsyncCallback\): void @@ -683,7 +659,7 @@ Obtains a notification slot of a specified type. This API uses an asynchronous c **Example** -```js +```ts // getSlot callback function getSlotCallback(err,data) { if (err) { @@ -692,13 +668,11 @@ function getSlotCallback(err,data) { console.info("getSlot success"); } } -var slotType = Notification.SlotType.SOCIAL_COMMUNICATION; -Notification.getSlot(slotType, getSlotCallback) +let slotType = notificationManager.SlotType.SOCIAL_COMMUNICATION; +notificationManager.getSlot(slotType, getSlotCallback); ``` - - -## Notification.getSlot +## notificationManager.getSlot getSlot(slotType: SlotType): Promise\ @@ -728,16 +702,14 @@ Obtains a notification slot of a specified type. This API uses a promise to retu **Example** -```js -var slotType = Notification.SlotType.SOCIAL_COMMUNICATION; -Notification.getSlot(slotType).then((data) => { +```ts +let slotType = notificationManager.SlotType.SOCIAL_COMMUNICATION; +notificationManager.getSlot(slotType).then((data) => { console.info("getSlot success, data: " + JSON.stringify(data)); }); ``` - - -## Notification.getSlots +## notificationManager.getSlots getSlots(callback: AsyncCallback>): void @@ -761,7 +733,7 @@ Obtains all notification slots of this application. This API uses an asynchronou **Example** -```js +```ts // getSlots callback function getSlotsCallback(err,data) { if (err) { @@ -770,12 +742,10 @@ function getSlotsCallback(err,data) { console.info("getSlots success"); } } -Notification.getSlots(getSlotsCallback) +notificationManager.getSlots(getSlotsCallback); ``` - - -## Notification.getSlots +## notificationManager.getSlots getSlots(): Promise\> @@ -799,15 +769,13 @@ Obtains all notification slots of this application. This API uses a promise to r **Example** -```js -Notification.getSlots().then((data) => { +```ts +notificationManager.getSlots().then((data) => { console.info("getSlots success, data: " + JSON.stringify(data)); }); ``` - - -## Notification.removeSlot +## notificationManager.removeSlot removeSlot(slotType: SlotType, callback: AsyncCallback\): void @@ -832,7 +800,7 @@ Removes a notification slot of a specified type. This API uses an asynchronous c **Example** -```js +```ts // removeSlot callback function removeSlotCallback(err) { if (err) { @@ -841,13 +809,11 @@ function removeSlotCallback(err) { console.info("removeSlot success"); } } -var slotType = Notification.SlotType.SOCIAL_COMMUNICATION; -Notification.removeSlot(slotType,removeSlotCallback) +let slotType = notificationManager.SlotType.SOCIAL_COMMUNICATION; +notificationManager.removeSlot(slotType,removeSlotCallback); ``` - - -## Notification.removeSlot +## notificationManager.removeSlot removeSlot(slotType: SlotType): Promise\ @@ -871,16 +837,14 @@ Removes a notification slot of a specified type. This API uses a promise to retu **Example** -```js -var slotType = Notification.SlotType.SOCIAL_COMMUNICATION; -Notification.removeSlot(slotType).then(() => { +```ts +let slotType = notificationManager.SlotType.SOCIAL_COMMUNICATION; +notificationManager.removeSlot(slotType).then(() => { console.info("removeSlot success"); }); ``` - - -## Notification.removeAllSlots +## notificationManager.removeAllSlots removeAllSlots(callback: AsyncCallback\): void @@ -904,7 +868,7 @@ Removes all notification slots. This API uses an asynchronous callback to return **Example** -```js +```ts function removeAllCallBack(err) { if (err) { console.info("removeAllSlots failed " + JSON.stringify(err)); @@ -912,12 +876,10 @@ function removeAllCallBack(err) { console.info("removeAllSlots success"); } } -Notification.removeAllSlots(removeAllCallBack) +notificationManager.removeAllSlots(removeAllCallBack); ``` - - -## Notification.removeAllSlots +## notificationManager.removeAllSlots removeAllSlots(): Promise\ @@ -935,15 +897,13 @@ Removes all notification slots. This API uses a promise to return the result. **Example** -```js -Notification.removeAllSlots().then(() => { +```ts +notificationManager.removeAllSlots().then(() => { console.info("removeAllSlots success"); }); ``` - - -## Notification.setNotificationEnable +## notificationManager.setNotificationEnable setNotificationEnable(bundle: BundleOption, enable: boolean, callback: AsyncCallback\): void @@ -974,7 +934,7 @@ Sets whether to enable notification for a specified application. This API uses a **Example** -```js +```ts function setNotificationEnablenCallback(err) { if (err) { console.info("setNotificationEnablenCallback failed " + JSON.stringify(err)); @@ -982,15 +942,13 @@ function setNotificationEnablenCallback(err) { console.info("setNotificationEnablenCallback success"); } } -var bundle = { +let bundle = { bundle: "bundleName1", -} -Notification.setNotificationEnable(bundle, false, setNotificationEnablenCallback); +}; +notificationManager.setNotificationEnable(bundle, false, setNotificationEnablenCallback); ``` - - -## Notification.setNotificationEnable +## notificationManager.setNotificationEnable setNotificationEnable(bundle: BundleOption, enable: boolean): Promise\ @@ -1020,18 +978,16 @@ Sets whether to enable notification for a specified application. This API uses a **Example** -```js -var bundle = { +```ts +let bundle = { bundle: "bundleName1", -} -Notification.setNotificationEnable(bundle, false).then(() => { +}; +notificationManager.setNotificationEnable(bundle, false).then(() => { console.info("setNotificationEnable success"); }); ``` - - -## Notification.isNotificationEnabled +## notificationManager.isNotificationEnabled isNotificationEnabled(bundle: BundleOption, callback: AsyncCallback\): void @@ -1061,7 +1017,7 @@ Checks whether notification is enabled for a specified application. This API use **Example** -```js +```ts function isNotificationEnabledCallback(err, data) { if (err) { console.info("isNotificationEnabled failed " + JSON.stringify(err)); @@ -1069,15 +1025,13 @@ function isNotificationEnabledCallback(err, data) { console.info("isNotificationEnabled success"); } } -var bundle = { +let bundle = { bundle: "bundleName1", -} -Notification.isNotificationEnabled(bundle, isNotificationEnabledCallback); +}; +notificationManager.isNotificationEnabled(bundle, isNotificationEnabledCallback); ``` - - -## Notification.isNotificationEnabled +## notificationManager.isNotificationEnabled isNotificationEnabled(bundle: BundleOption): Promise\ @@ -1112,18 +1066,16 @@ Checks whether notification is enabled for a specified application. This API use **Example** -```js -var bundle = { +```ts +let bundle = { bundle: "bundleName1", -} -Notification.isNotificationEnabled(bundle).then((data) => { +}; +notificationManager.isNotificationEnabled(bundle).then((data) => { console.info("isNotificationEnabled success, data: " + JSON.stringify(data)); }); ``` - - -## Notification.isNotificationEnabled +## notificationManager.isNotificationEnabled isNotificationEnabled(callback: AsyncCallback\): void @@ -1151,7 +1103,7 @@ Checks whether notification is enabled for this application. This API uses an as **Example** -```js +```ts function isNotificationEnabledCallback(err, data) { if (err) { console.info("isNotificationEnabled failed " + JSON.stringify(err)); @@ -1160,12 +1112,10 @@ function isNotificationEnabledCallback(err, data) { } } -Notification.isNotificationEnabled(isNotificationEnabledCallback); +notificationManager.isNotificationEnabled(isNotificationEnabledCallback); ``` - - -## Notification.isNotificationEnabled +## notificationManager.isNotificationEnabled isNotificationEnabled(): Promise\ @@ -1200,15 +1150,13 @@ Checks whether notification is enabled for the current application. This API use **Example** -```js -Notification.isNotificationEnabled().then((data) => { +```ts +notificationManager.isNotificationEnabled().then((data) => { console.info("isNotificationEnabled success, data: " + JSON.stringify(data)); }); ``` - - -## Notification.displayBadge +## notificationManager.displayBadge displayBadge(bundle: BundleOption, enable: boolean, callback: AsyncCallback\): void @@ -1239,7 +1187,7 @@ Sets whether to enable the notification badge for a specified application. This **Example** -```js +```ts function displayBadgeCallback(err) { if (err) { console.info("displayBadge failed " + JSON.stringify(err)); @@ -1247,15 +1195,13 @@ function displayBadgeCallback(err) { console.info("displayBadge success"); } } -var bundle = { +let bundle = { bundle: "bundleName1", -} -Notification.displayBadge(bundle, false, displayBadgeCallback); +}; +notificationManager.displayBadge(bundle, false, displayBadgeCallback); ``` - - -## Notification.displayBadge +## notificationManager.displayBadge displayBadge(bundle: BundleOption, enable: boolean): Promise\ @@ -1285,18 +1231,16 @@ Sets whether to enable the notification badge for a specified application. This **Example** -```js -var bundle = { +```ts +let bundle = { bundle: "bundleName1", -} -Notification.displayBadge(bundle, false).then(() => { +}; +notificationManager.displayBadge(bundle, false).then(() => { console.info("displayBadge success"); }); ``` - - -## Notification.isBadgeDisplayed +## notificationManager.isBadgeDisplayed isBadgeDisplayed(bundle: BundleOption, callback: AsyncCallback\): void @@ -1326,7 +1270,7 @@ Checks whether the notification badge is enabled for a specified application. Th **Example** -```js +```ts function isBadgeDisplayedCallback(err, data) { if (err) { console.info("isBadgeDisplayed failed " + JSON.stringify(err)); @@ -1334,15 +1278,13 @@ function isBadgeDisplayedCallback(err, data) { console.info("isBadgeDisplayed success"); } } -var bundle = { +let bundle = { bundle: "bundleName1", -} -Notification.isBadgeDisplayed(bundle, isBadgeDisplayedCallback); +}; +notificationManager.isBadgeDisplayed(bundle, isBadgeDisplayedCallback); ``` - - -## Notification.isBadgeDisplayed +## notificationManager.isBadgeDisplayed isBadgeDisplayed(bundle: BundleOption): Promise\ @@ -1377,18 +1319,16 @@ Checks whether the notification badge is enabled for a specified application. Th **Example** -```js -var bundle = { +```ts +let bundle = { bundle: "bundleName1", -} -Notification.isBadgeDisplayed(bundle).then((data) => { +}; +notificationManager.isBadgeDisplayed(bundle).then((data) => { console.info("isBadgeDisplayed success, data: " + JSON.stringify(data)); }); ``` - - -## Notification.setSlotByBundle +## notificationManager.setSlotByBundle setSlotByBundle(bundle: BundleOption, slot: NotificationSlot, callback: AsyncCallback\): void @@ -1417,11 +1357,9 @@ Sets the notification slot for a specified application. This API uses an asynchr | 1600003 | Failed to connect service. | | 17700001 | The specified bundle name was not found. | - - **Example** -```js +```ts function setSlotByBundleCallback(err) { if (err) { console.info("setSlotByBundle failed " + JSON.stringify(err)); @@ -1429,18 +1367,16 @@ function setSlotByBundleCallback(err) { console.info("setSlotByBundle success"); } } -var bundle = { +let bundle = { bundle: "bundleName1", -} -var notificationSlot = { - type: Notification.SlotType.SOCIAL_COMMUNICATION -} -Notification.setSlotByBundle(bundle, notificationSlot, setSlotByBundleCallback); +}; +let notificationSlot = { + type: notificationManager.SlotType.SOCIAL_COMMUNICATION +}; +notificationManager.setSlotByBundle(bundle, notificationSlot, setSlotByBundleCallback); ``` - - -## Notification.setSlotByBundle +## notificationManager.setSlotByBundle setSlotByBundle(bundle: BundleOption, slot: NotificationSlot): Promise\ @@ -1470,21 +1406,19 @@ Sets the notification slot for a specified application. This API uses a promise **Example** -```js -var bundle = { +```ts +let bundle = { bundle: "bundleName1", -} -var notificationSlot = { - type: Notification.SlotType.SOCIAL_COMMUNICATION -} -Notification.setSlotByBundle(bundle, notificationSlot).then(() => { +}; +let notificationSlot = { + type: notificationManager.SlotType.SOCIAL_COMMUNICATION +}; +notificationManager.setSlotByBundle(bundle, notificationSlot).then(() => { console.info("setSlotByBundle success"); }); ``` - - -## Notification.getSlotsByBundle +## notificationManager.getSlotsByBundle getSlotsByBundle(bundle: BundleOption, callback: AsyncCallback>): void @@ -1514,7 +1448,7 @@ Obtains the notification slots of a specified application. This API uses an asyn **Example** -```js +```ts function getSlotsByBundleCallback(err, data) { if (err) { console.info("getSlotsByBundle failed " + JSON.stringify(err)); @@ -1522,15 +1456,13 @@ function getSlotsByBundleCallback(err, data) { console.info("getSlotsByBundle success"); } } -var bundle = { +let bundle = { bundle: "bundleName1", -} -Notification.getSlotsByBundle(bundle, getSlotsByBundleCallback); +}; +notificationManager.getSlotsByBundle(bundle, getSlotsByBundleCallback); ``` - - -## Notification.getSlotsByBundle +## notificationManager.getSlotsByBundle getSlotsByBundle(bundle: BundleOption): Promise> @@ -1565,18 +1497,16 @@ Obtains the notification slots of a specified application. This API uses a promi **Example** -```js -var bundle = { +```ts +let bundle = { bundle: "bundleName1", -} -Notification.getSlotsByBundle(bundle).then((data) => { +}; +notificationManager.getSlotsByBundle(bundle).then((data) => { console.info("getSlotsByBundle success, data: " + JSON.stringify(data)); }); ``` - - -## Notification.getSlotNumByBundle +## notificationManager.getSlotNumByBundle getSlotNumByBundle(bundle: BundleOption, callback: AsyncCallback\): void @@ -1606,7 +1536,7 @@ Obtains the number of notification slots of a specified application. This API us **Example** -```js +```ts function getSlotNumByBundleCallback(err, data) { if (err) { console.info("getSlotNumByBundle failed " + JSON.stringify(err)); @@ -1614,15 +1544,13 @@ function getSlotNumByBundleCallback(err, data) { console.info("getSlotNumByBundle success"); } } -var bundle = { +let bundle = { bundle: "bundleName1", -} -Notification.getSlotNumByBundle(bundle, getSlotNumByBundleCallback); +}; +notificationManager.getSlotNumByBundle(bundle, getSlotNumByBundleCallback); ``` - - -## Notification.getSlotNumByBundle +## notificationManager.getSlotNumByBundle getSlotNumByBundle(bundle: BundleOption): Promise\ @@ -1657,19 +1585,17 @@ Obtains the number of notification slots of a specified application. This API us **Example** -```js -var bundle = { +```ts +let bundle = { bundle: "bundleName1", -} -Notification.getSlotNumByBundle(bundle).then((data) => { +}; +notificationManager.getSlotNumByBundle(bundle).then((data) => { console.info("getSlotNumByBundle success, data: " + JSON.stringify(data)); }); ``` - - -## Notification.getAllActiveNotifications +## notificationManager.getAllActiveNotifications getAllActiveNotifications(callback: AsyncCallback>): void @@ -1697,7 +1623,7 @@ Obtains all active notifications. This API uses an asynchronous callback to retu **Example** -```js +```ts function getAllActiveNotificationsCallback(err, data) { if (err) { console.info("getAllActiveNotifications failed " + JSON.stringify(err)); @@ -1706,12 +1632,10 @@ function getAllActiveNotificationsCallback(err, data) { } } -Notification.getAllActiveNotifications(getAllActiveNotificationsCallback); +notificationManager.getAllActiveNotifications(getAllActiveNotificationsCallback); ``` - - -## Notification.getAllActiveNotifications +## notificationManager.getAllActiveNotifications getAllActiveNotifications(): Promise\\> @@ -1739,15 +1663,13 @@ Obtains all active notifications. This API uses a promise to return the result. **Example** -```js -Notification.getAllActiveNotifications().then((data) => { +```ts +notificationManager.getAllActiveNotifications().then((data) => { console.info("getAllActiveNotifications success, data: " + JSON.stringify(data)); }); ``` - - -## Notification.getActiveNotificationCount +## notificationManager.getActiveNotificationCount getActiveNotificationCount(callback: AsyncCallback\): void @@ -1771,7 +1693,7 @@ Obtains the number of active notifications of this application. This API uses an **Example** -```js +```ts function getActiveNotificationCountCallback(err, data) { if (err) { console.info("getActiveNotificationCount failed " + JSON.stringify(err)); @@ -1780,12 +1702,10 @@ function getActiveNotificationCountCallback(err, data) { } } -Notification.getActiveNotificationCount(getActiveNotificationCountCallback); +notificationManager.getActiveNotificationCount(getActiveNotificationCountCallback); ``` - - -## Notification.getActiveNotificationCount +## notificationManager.getActiveNotificationCount getActiveNotificationCount(): Promise\ @@ -1809,15 +1729,13 @@ Obtains the number of active notifications of this application. This API uses a **Example** -```js -Notification.getActiveNotificationCount().then((data) => { +```ts +notificationManager.getActiveNotificationCount().then((data) => { console.info("getActiveNotificationCount success, data: " + JSON.stringify(data)); }); ``` - - -## Notification.getActiveNotifications +## notificationManager.getActiveNotifications getActiveNotifications(callback: AsyncCallback>): void @@ -1841,7 +1759,7 @@ Obtains active notifications of this application. This API uses an asynchronous **Example** -```js +```ts function getActiveNotificationsCallback(err, data) { if (err) { console.info("getActiveNotifications failed " + JSON.stringify(err)); @@ -1850,12 +1768,10 @@ function getActiveNotificationsCallback(err, data) { } } -Notification.getActiveNotifications(getActiveNotificationsCallback); +notificationManager.getActiveNotifications(getActiveNotificationsCallback); ``` - - -## Notification.getActiveNotifications +## notificationManager.getActiveNotifications getActiveNotifications(): Promise\\> @@ -1879,15 +1795,13 @@ Obtains active notifications of this application. This API uses a promise to ret **Example** -```js -Notification.getActiveNotifications().then((data) => { +```ts +notificationManager.getActiveNotifications().then((data) => { console.info("removeGroupByBundle success, data: " + JSON.stringify(data)); }); ``` - - -## Notification.cancelGroup +## notificationManager.cancelGroup cancelGroup(groupName: string, callback: AsyncCallback\): void @@ -1912,7 +1826,7 @@ Cancels notifications under a notification group of this application. This API u **Example** -```js +```ts function cancelGroupCallback(err) { if (err) { console.info("cancelGroup failed " + JSON.stringify(err)); @@ -1921,14 +1835,12 @@ function cancelGroupCallback(err) { } } -var groupName = "GroupName"; +let groupName = "GroupName"; -Notification.cancelGroup(groupName, cancelGroupCallback); +notificationManager.cancelGroup(groupName, cancelGroupCallback); ``` - - -## Notification.cancelGroup +## notificationManager.cancelGroup cancelGroup(groupName: string): Promise\ @@ -1952,16 +1864,14 @@ Cancels notifications under a notification group of this application. This API u **Example** -```js -var groupName = "GroupName"; -Notification.cancelGroup(groupName).then(() => { +```ts +let groupName = "GroupName"; +notificationManager.cancelGroup(groupName).then(() => { console.info("cancelGroup success"); }); ``` - - -## Notification.removeGroupByBundle +## notificationManager.removeGroupByBundle removeGroupByBundle(bundle: BundleOption, groupName: string, callback: AsyncCallback\): void @@ -1992,7 +1902,7 @@ Removes notifications under a notification group of a specified application. Thi **Example** -```js +```ts function removeGroupByBundleCallback(err) { if (err) { console.info("removeGroupByBundle failed " + JSON.stringify(err)); @@ -2001,15 +1911,13 @@ function removeGroupByBundleCallback(err) { } } -var bundleOption = {bundle: "Bundle"}; -var groupName = "GroupName"; +let bundleOption = {bundle: "Bundle"}; +let groupName = "GroupName"; -Notification.removeGroupByBundle(bundleOption, groupName, removeGroupByBundleCallback); +notificationManager.removeGroupByBundle(bundleOption, groupName, removeGroupByBundleCallback); ``` - - -## Notification.removeGroupByBundle +## notificationManager.removeGroupByBundle removeGroupByBundle(bundle: BundleOption, groupName: string): Promise\ @@ -2039,17 +1947,15 @@ Removes notifications under a notification group of a specified application. Thi **Example** -```js -var bundleOption = {bundle: "Bundle"}; -var groupName = "GroupName"; -Notification.removeGroupByBundle(bundleOption, groupName).then(() => { +```ts +let bundleOption = {bundle: "Bundle"}; +let groupName = "GroupName"; +notificationManager.removeGroupByBundle(bundleOption, groupName).then(() => { console.info("removeGroupByBundle success"); }); ``` - - -## Notification.setDoNotDisturbDate +## notificationManager.setDoNotDisturbDate setDoNotDisturbDate(date: DoNotDisturbDate, callback: AsyncCallback\): void @@ -2078,7 +1984,7 @@ Sets the DND time. This API uses an asynchronous callback to return the result. **Example** -```js +```ts function setDoNotDisturbDateCallback(err) { if (err) { console.info("setDoNotDisturbDate failed " + JSON.stringify(err)); @@ -2087,18 +1993,16 @@ function setDoNotDisturbDateCallback(err) { } } -var doNotDisturbDate = { - type: Notification.DoNotDisturbType.TYPE_ONCE, +let doNotDisturbDate = { + type: notificationManager.DoNotDisturbType.TYPE_ONCE, begin: new Date(), end: new Date(2021, 11, 15, 18, 0) -} +}; -Notification.setDoNotDisturbDate(doNotDisturbDate, setDoNotDisturbDateCallback); +notificationManager.setDoNotDisturbDate(doNotDisturbDate, setDoNotDisturbDateCallback); ``` - - -## Notification.setDoNotDisturbDate +## notificationManager.setDoNotDisturbDate setDoNotDisturbDate(date: DoNotDisturbDate): Promise\ @@ -2126,19 +2030,19 @@ Sets the DND time. This API uses a promise to return the result. **Example** -```js -var doNotDisturbDate = { - type: Notification.DoNotDisturbType.TYPE_ONCE, +```ts +let doNotDisturbDate = { + type: notificationManager.DoNotDisturbType.TYPE_ONCE, begin: new Date(), end: new Date(2021, 11, 15, 18, 0) -} -Notification.setDoNotDisturbDate(doNotDisturbDate).then(() => { +}; +notificationManager.setDoNotDisturbDate(doNotDisturbDate).then(() => { console.info("setDoNotDisturbDate success"); }); ``` -## Notification.setDoNotDisturbDate +## notificationManager.setDoNotDisturbDate setDoNotDisturbDate(date: DoNotDisturbDate, userId: number, callback: AsyncCallback\): void @@ -2169,7 +2073,7 @@ Sets the DND time for a specified user. This API uses an asynchronous callback t **Example** -```js +```ts function setDoNotDisturbDateCallback(err) { if (err) { console.info("setDoNotDisturbDate failed " + JSON.stringify(err)); @@ -2178,20 +2082,18 @@ function setDoNotDisturbDateCallback(err) { } } -var doNotDisturbDate = { - type: Notification.DoNotDisturbType.TYPE_ONCE, +let doNotDisturbDate = { + type: notificationManager.DoNotDisturbType.TYPE_ONCE, begin: new Date(), end: new Date(2021, 11, 15, 18, 0) -} +}; -var userId = 1 +let userId = 1; -Notification.setDoNotDisturbDate(doNotDisturbDate, userId, setDoNotDisturbDateCallback); +notificationManager.setDoNotDisturbDate(doNotDisturbDate, userId, setDoNotDisturbDateCallback); ``` - - -## Notification.setDoNotDisturbDate +## notificationManager.setDoNotDisturbDate setDoNotDisturbDate(date: DoNotDisturbDate, userId: number): Promise\ @@ -2221,22 +2123,22 @@ Sets the DND time for a specified user. This API uses a promise to return the re **Example** -```js -var doNotDisturbDate = { - type: Notification.DoNotDisturbType.TYPE_ONCE, +```ts +let doNotDisturbDate = { + type: notificationManager.DoNotDisturbType.TYPE_ONCE, begin: new Date(), end: new Date(2021, 11, 15, 18, 0) -} +}; -var userId = 1 +let userId = 1; -Notification.setDoNotDisturbDate(doNotDisturbDate, userId).then(() => { +notificationManager.setDoNotDisturbDate(doNotDisturbDate, userId).then(() => { console.info("setDoNotDisturbDate success"); }); ``` -## Notification.getDoNotDisturbDate +## notificationManager.getDoNotDisturbDate getDoNotDisturbDate(callback: AsyncCallback\): void @@ -2264,7 +2166,7 @@ Obtains the DND time. This API uses an asynchronous callback to return the resul **Example** -```js +```ts function getDoNotDisturbDateCallback(err,data) { if (err) { console.info("getDoNotDisturbDate failed " + JSON.stringify(err)); @@ -2273,12 +2175,10 @@ function getDoNotDisturbDateCallback(err,data) { } } -Notification.getDoNotDisturbDate(getDoNotDisturbDateCallback); +notificationManager.getDoNotDisturbDate(getDoNotDisturbDateCallback); ``` - - -## Notification.getDoNotDisturbDate +## notificationManager.getDoNotDisturbDate getDoNotDisturbDate(): Promise\ @@ -2306,14 +2206,14 @@ Obtains the DND time. This API uses a promise to return the result. **Example** -```js -Notification.getDoNotDisturbDate().then((data) => { +```ts +notificationManager.getDoNotDisturbDate().then((data) => { console.info("getDoNotDisturbDate success, data: " + JSON.stringify(data)); }); ``` -## Notification.getDoNotDisturbDate +## notificationManager.getDoNotDisturbDate getDoNotDisturbDate(userId: number, callback: AsyncCallback\): void @@ -2343,7 +2243,7 @@ Obtains the DND time of a specified user. This API uses an asynchronous callback **Example** -```js +```ts function getDoNotDisturbDateCallback(err,data) { if (err) { console.info("getDoNotDisturbDate failed " + JSON.stringify(err)); @@ -2352,14 +2252,12 @@ function getDoNotDisturbDateCallback(err,data) { } } -var userId = 1 +let userId = 1; -Notification.getDoNotDisturbDate(userId, getDoNotDisturbDateCallback); +notificationManager.getDoNotDisturbDate(userId, getDoNotDisturbDateCallback); ``` - - -## Notification.getDoNotDisturbDate +## notificationManager.getDoNotDisturbDate getDoNotDisturbDate(userId: number): Promise\ @@ -2394,16 +2292,16 @@ Obtains the DND time of a specified user. This API uses a promise to return the **Example** -```js -var userId = 1 +```ts +let userId = 1; -Notification.getDoNotDisturbDate(userId).then((data) => { +notificationManager.getDoNotDisturbDate(userId).then((data) => { console.info("getDoNotDisturbDate success, data: " + JSON.stringify(data)); }); ``` -## Notification.supportDoNotDisturbMode +## notificationManager.supportDoNotDisturbMode supportDoNotDisturbMode(callback: AsyncCallback\): void @@ -2431,7 +2329,7 @@ Checks whether DND mode is supported. This API uses an asynchronous callback to **Example** -```js +```ts function supportDoNotDisturbModeCallback(err,data) { if (err) { console.info("supportDoNotDisturbMode failed " + JSON.stringify(err)); @@ -2440,12 +2338,10 @@ function supportDoNotDisturbModeCallback(err,data) { } } -Notification.supportDoNotDisturbMode(supportDoNotDisturbModeCallback); +notificationManager.supportDoNotDisturbMode(supportDoNotDisturbModeCallback); ``` - - -## Notification.supportDoNotDisturbMode +## notificationManager.supportDoNotDisturbMode supportDoNotDisturbMode(): Promise\ @@ -2473,15 +2369,13 @@ Checks whether DND mode is supported. This API uses a promise to return the resu **Example** -```js -Notification.supportDoNotDisturbMode().then((data) => { +```ts +notificationManager.supportDoNotDisturbMode().then((data) => { console.info("supportDoNotDisturbMode success, data: " + JSON.stringify(data)); }); ``` - - -## Notification.isSupportTemplate +## notificationManager.isSupportTemplate isSupportTemplate(templateName: string, callback: AsyncCallback\): void @@ -2508,7 +2402,7 @@ Checks whether a specified template is supported. This API uses an asynchronous **Example** ```javascript -var templateName = 'process'; +let templateName = 'process'; function isSupportTemplateCallback(err, data) { if (err) { console.info("isSupportTemplate failed " + JSON.stringify(err)); @@ -2517,12 +2411,10 @@ function isSupportTemplateCallback(err, data) { } } -Notification.isSupportTemplate(templateName, isSupportTemplateCallback); +notificationManager.isSupportTemplate(templateName, isSupportTemplateCallback); ``` - - -## Notification.isSupportTemplate +## notificationManager.isSupportTemplate isSupportTemplate(templateName: string): Promise\ @@ -2554,16 +2446,14 @@ Checks whether a specified template is supported. This API uses a promise to ret **Example** ```javascript -var templateName = 'process'; +let templateName = 'process'; -Notification.isSupportTemplate(templateName).then((data) => { +notificationManager.isSupportTemplate(templateName).then((data) => { console.info("isSupportTemplate success, data: " + JSON.stringify(data)); }); ``` - - -## Notification.requestEnableNotification +## notificationManager.requestEnableNotification requestEnableNotification(callback: AsyncCallback\): void @@ -2596,12 +2486,10 @@ function requestEnableNotificationCallback(err) { } }; -Notification.requestEnableNotification(requestEnableNotificationCallback); +notificationManager.requestEnableNotification(requestEnableNotificationCallback); ``` - - -## Notification.requestEnableNotification +## notificationManager.requestEnableNotification requestEnableNotification(): Promise\ @@ -2620,14 +2508,14 @@ Requests notification to be enabled for this application. This API uses a promis **Example** ```javascript -Notification.requestEnableNotification().then(() => { +notificationManager.requestEnableNotification().then(() => { console.info("requestEnableNotification success"); }); ``` -## Notification.setDistributedEnable +## notificationManager.setDistributedEnable setDistributedEnable(enable: boolean, callback: AsyncCallback\): void @@ -2666,14 +2554,12 @@ function setDistributedEnableCallback() { } }; -var enable = true +let enable = true; -Notification.setDistributedEnable(enable, setDistributedEnableCallback); +notificationManager.setDistributedEnable(enable, setDistributedEnableCallback); ``` - - -## Notification.setDistributedEnable +## notificationManager.setDistributedEnable setDistributedEnable(enable: boolean): Promise\ @@ -2703,15 +2589,15 @@ Sets whether this device supports distributed notifications. This API uses a pro **Example** ```javascript -var enable = true +let enable = true; -Notification.setDistributedEnable(enable).then(() => { +notificationManager.setDistributedEnable(enable).then(() => { console.info("setDistributedEnable success"); }); ``` -## Notification.isDistributedEnabled +## notificationManager.isDistributedEnabled isDistributedEnabled(callback: AsyncCallback\): void @@ -2745,12 +2631,12 @@ function isDistributedEnabledCallback(err, data) { } }; -Notification.isDistributedEnabled(isDistributedEnabledCallback); +notificationManager.isDistributedEnabled(isDistributedEnabledCallback); ``` -## Notification.isDistributedEnabled +## notificationManager.isDistributedEnabled isDistributedEnabled(): Promise\ @@ -2776,14 +2662,14 @@ Checks whether this device supports distributed notifications. This API uses a p **Example** ```javascript -Notification.isDistributedEnabled() +notificationManager.isDistributedEnabled() .then((data) => { console.info("isDistributedEnabled success, data: " + JSON.stringify(data)); }); ``` -## Notification.setDistributedEnableByBundle +## notificationManager.setDistributedEnableByBundle setDistributedEnableByBundle(bundle: BundleOption, enable: boolean, callback: AsyncCallback\): void @@ -2800,7 +2686,7 @@ Sets whether a specified application supports distributed notifications. This AP | Name | Type | Mandatory| Description | | -------- | ------------------------ | ---- | -------------------------- | | bundle | [BundleOption](#bundleoption) | Yes | Bundle information of the application. | -| enable | boolean | Yes | Whether the application supports distributed notifications. | +| enable | boolean | Yes | Whether the device supports distributed notifications. | | callback | AsyncCallback\ | Yes | Callback used to return the result.| **Error codes** @@ -2824,18 +2710,18 @@ function setDistributedEnableByBundleCallback(err) { } }; -var bundle = { +let bundle = { bundle: "bundleName1", -} +}; -var enable = true +let enable = true -Notification.setDistributedEnableByBundle(bundle, enable, setDistributedEnableByBundleCallback); +notificationManager.setDistributedEnableByBundle(bundle, enable, setDistributedEnableByBundleCallback); ``` -## Notification.setDistributedEnableByBundle +## notificationManager.setDistributedEnableByBundle setDistributedEnableByBundle(bundle: BundleOption, enable: boolean): Promise\ @@ -2852,7 +2738,7 @@ Sets whether a specified application supports distributed notifications. This AP | Name | Type | Mandatory| Description | | -------- | ------------------------ | ---- | -------------------------- | | bundle | [BundleOption](#bundleoption) | Yes | Bundle information of the application. | -| enable | boolean | Yes | Whether the application supports distributed notifications. | +| enable | boolean | Yes | Whether the device supports distributed notifications. | **Error codes** @@ -2867,18 +2753,18 @@ Sets whether a specified application supports distributed notifications. This AP **Example** ```javascript -var bundle = { +let bundle = { bundle: "bundleName1", -} +}; -var enable = true +let enable = true -Notification.setDistributedEnableByBundle(bundle, enable).then(() => { - console.info("setDistributedEnableByBundle success"); - }); +notificationManager.setDistributedEnableByBundle(bundle, enable).then(() => { + console.info("setDistributedEnableByBundle success"); +}); ``` -## Notification.isDistributedEnabledByBundle +## notificationManager.isDistributedEnabledByBundle isDistributedEnabledByBundle(bundle: BundleOption, callback: AsyncCallback\): void @@ -2918,16 +2804,14 @@ function isDistributedEnabledByBundleCallback(data) { } }; -var bundle = { +let bundle = { bundle: "bundleName1", -} +}; -Notification.isDistributedEnabledByBundle(bundle, isDistributedEnabledByBundleCallback); +notificationManager.isDistributedEnabledByBundle(bundle, isDistributedEnabledByBundleCallback); ``` - - -## Notification.isDistributedEnabledByBundle +## notificationManager.isDistributedEnabledByBundle isDistributedEnabledByBundle(bundle: BundleOption): Promise\ @@ -2964,17 +2848,17 @@ Checks whether a specified application supports distributed notifications. This **Example** ```javascript -var bundle = { +let bundle = { bundle: "bundleName1", -} +}; -Notification.isDistributedEnabledByBundle(bundle).then((data) => { +notificationManager.isDistributedEnabledByBundle(bundle).then((data) => { console.info("isDistributedEnabledByBundle success, data: " + JSON.stringify(data)); }); ``` -## Notification.getDeviceRemindType +## notificationManager.getDeviceRemindType getDeviceRemindType(callback: AsyncCallback\): void @@ -3011,12 +2895,10 @@ function getDeviceRemindTypeCallback(err, data) { } }; -Notification.getDeviceRemindType(getDeviceRemindTypeCallback); +notificationManager.getDeviceRemindType(getDeviceRemindTypeCallback); ``` - - -## Notification.getDeviceRemindType +## notificationManager.getDeviceRemindType getDeviceRemindType(): Promise\ @@ -3045,13 +2927,13 @@ Obtains the notification reminder type. This API uses a promise to return the re **Example** ```javascript -Notification.getDeviceRemindType().then((data) => { +notificationManager.getDeviceRemindType().then((data) => { console.info("getDeviceRemindType success, data: " + JSON.stringify(data)); }); ``` -## Notification.publishAsBundle +## notificationManager.publishAsBundle publishAsBundle(request: NotificationRequest, representativeBundle: string, userId: number, callback: AsyncCallback\): void @@ -3086,7 +2968,7 @@ Publishes a notification through the reminder agent. This API uses an asynchrono **Example** -```js +```ts // publishAsBundle callback function callback(err) { if (err) { @@ -3096,26 +2978,26 @@ function callback(err) { } } // Bundle name of the application whose notification function is taken over by the reminder agent -let representativeBundle = "com.example.demo" +let representativeBundle = "com.example.demo"; // User ID -let userId = 100 +let userId = 100; // NotificationRequest object let request = { id: 1, content: { - contentType: Notification.ContentType.NOTIFICATION_CONTENT_BASIC_TEXT, + contentType: notificationManager.ContentType.NOTIFICATION_CONTENT_BASIC_TEXT, normal: { title: "test_title", text: "test_text", additionalText: "test_additionalText" } } -} +}; -Notification.publishAsBundle(request, representativeBundle, userId, callback); +notificationManager.publishAsBundle(request, representativeBundle, userId, callback); ``` -## Notification.publishAsBundle +## notificationManager.publishAsBundle publishAsBundle(request: NotificationRequest, representativeBundle: string, userId: number): Promise\ @@ -3150,30 +3032,30 @@ Publishes a notification through the reminder agent. This API uses a promise to **Example** -```js +```ts // Bundle name of the application whose notification function is taken over by the reminder agent -let representativeBundle = "com.example.demo" +let representativeBundle = "com.example.demo"; // User ID -let userId = 100 +let userId = 100; // NotificationRequest object -var request = { +let request = { id: 1, content: { - contentType: Notification.ContentType.NOTIFICATION_CONTENT_BASIC_TEXT, + contentType: notificationManager.ContentType.NOTIFICATION_CONTENT_BASIC_TEXT, normal: { title: "test_title", text: "test_text", additionalText: "test_additionalText" } } -} +}; -Notification.publishAsBundle(request, representativeBundle, userId).then(() => { +notificationManager.publishAsBundle(request, representativeBundle, userId).then(() => { console.info("publishAsBundle success"); }); ``` -## Notification.cancelAsBundle +## notificationManager.cancelAsBundle cancelAsBundle(id: number, representativeBundle: string, userId: number, callback: AsyncCallback\): void @@ -3208,7 +3090,7 @@ Cancels a notification published by the reminder agent. This API uses an asynchr **Example** -```js +```ts // cancelAsBundle function cancelAsBundleCallback(err) { if (err) { @@ -3218,14 +3100,14 @@ function cancelAsBundleCallback(err) { } } // Bundle name of the application whose notification function is taken over by the reminder agent -let representativeBundle = "com.example.demo" +let representativeBundle = "com.example.demo"; // User ID -let userId = 100 +let userId = 100; -Notification.cancelAsBundle(0, representativeBundle, userId, cancelAsBundleCallback); +notificationManager.cancelAsBundle(0, representativeBundle, userId, cancelAsBundleCallback); ``` -## Notification.cancelAsBundle +## notificationManager.cancelAsBundle cancelAsBundle(id: number, representativeBundle: string, userId: number): Promise\ @@ -3259,18 +3141,18 @@ Cancels a notification published by the reminder agent. This API uses a promise **Example** -```js +```ts // Bundle name of the application whose notification function is taken over by the reminder agent -let representativeBundle = "com.example.demo" +let representativeBundle = "com.example.demo"; // User ID -let userId = 100 +let userId = 100; -Notification.cancelAsBundle(0, representativeBundle, userId).then(() => { +notificationManager.cancelAsBundle(0, representativeBundle, userId).then(() => { console.info("cancelAsBundle success"); }); ``` -## Notification.setNotificationEnableSlot +## notificationManager.setNotificationEnableSlot setNotificationEnableSlot(bundle: BundleOption, type: SlotType, enable: boolean, callback: AsyncCallback\): void @@ -3288,7 +3170,7 @@ Sets whether to enable a specified notification slot type for a specified applic | -------- | ----------------------------- | ---- | ---------------------- | | bundle | [BundleOption](#bundleoption) | Yes | Bundle information of the application. | | type | [SlotType](#slottype) | Yes | Notification slot type. | -| enable | boolean | Yes | Whether to enable the notification slot type. | +| enable | boolean | Yes | Whether to enable notification. | | callback | AsyncCallback\ | Yes | Callback used to return the result.| **Error codes** @@ -3302,7 +3184,7 @@ Sets whether to enable a specified notification slot type for a specified applic **Example** -```js +```ts // setNotificationEnableSlot function setNotificationEnableSlotCallback(err) { if (err) { @@ -3312,14 +3194,14 @@ function setNotificationEnableSlotCallback(err) { } }; -Notification.setNotificationEnableSlot( +notificationManager.setNotificationEnableSlot( { bundle: "ohos.samples.notification", }, - Notification.SlotType.SOCIAL_COMMUNICATION, + notificationManager.SlotType.SOCIAL_COMMUNICATION, true, setNotificationEnableSlotCallback); ``` -## Notification.setNotificationEnableSlot +## notificationManager.setNotificationEnableSlot setNotificationEnableSlot(bundle: BundleOption, type: SlotType, enable: boolean): Promise\ @@ -3337,7 +3219,7 @@ Sets whether to enable a specified notification slot type for a specified applic | ------ | ----------------------------- | ---- | -------------- | | bundle | [BundleOption](#bundleoption) | Yes | Bundle information of the application. | | type | [SlotType](#slottype) | Yes | Notification slot type.| -| enable | boolean | Yes | Whether to enable the notification slot type. | +| enable | boolean | Yes | Whether to enable notification. | **Error codes** @@ -3350,17 +3232,17 @@ Sets whether to enable a specified notification slot type for a specified applic **Example** -```js +```ts // setNotificationEnableSlot -Notification.setNotificationEnableSlot( +notificationManager.setNotificationEnableSlot( { bundle: "ohos.samples.notification", }, - Notification.SlotType.SOCIAL_COMMUNICATION, + notificationManager.SlotType.SOCIAL_COMMUNICATION, true).then(() => { console.info("setNotificationEnableSlot success"); }); ``` -## Notification.isNotificationSlotEnabled +## notificationManager.isNotificationSlotEnabled isNotificationSlotEnabled(bundle: BundleOption, type: SlotType, callback: AsyncCallback\): void @@ -3391,7 +3273,7 @@ Checks whether a specified notification slot type is enabled for a specified app **Example** -```js +```ts // isNotificationSlotEnabled function getEnableSlotCallback(err, data) { if (err) { @@ -3401,13 +3283,13 @@ function getEnableSlotCallback(err, data) { } }; -Notification.isNotificationSlotEnabled( +notificationManager.isNotificationSlotEnabled( { bundle: "ohos.samples.notification", }, - Notification.SlotType.SOCIAL_COMMUNICATION, + notificationManager.SlotType.SOCIAL_COMMUNICATION, getEnableSlotCallback); ``` -## Notification.isNotificationSlotEnabled +## notificationManager.isNotificationSlotEnabled isNotificationSlotEnabled(bundle: BundleOption, type: SlotType): Promise\ @@ -3443,16 +3325,16 @@ Checks whether a specified notification slot type is enabled for a specified app **Example** -```js +```ts // isNotificationSlotEnabled -Notification.isNotificationSlotEnabled({ bundle: "ohos.samples.notification", }, - Notification.SlotType.SOCIAL_COMMUNICATION).then((data) => { +notificationManager.isNotificationSlotEnabled({ bundle: "ohos.samples.notification", }, + notificationManager.SlotType.SOCIAL_COMMUNICATION).then((data) => { console.info("isNotificationSlotEnabled success, data: " + JSON.stringify(data)); }); ``` -## Notification.setSyncNotificationEnabledWithoutApp +## notificationManager.setSyncNotificationEnabledWithoutApp setSyncNotificationEnabledWithoutApp(userId: number, enable: boolean, callback: AsyncCallback\): void @@ -3483,7 +3365,7 @@ Sets whether to enable the notification sync feature for devices where the appli **Example** -```js +```ts let userId = 100; let enable = true; @@ -3495,11 +3377,11 @@ function callback(err) { } } -Notification.setSyncNotificationEnabledWithoutApp(userId, enable, callback); +notificationManager.setSyncNotificationEnabledWithoutApp(userId, enable, callback); ``` -## Notification.setSyncNotificationEnabledWithoutApp +## notificationManager.setSyncNotificationEnabledWithoutApp setSyncNotificationEnabledWithoutApp(userId: number, enable: boolean): Promise\ @@ -3535,11 +3417,11 @@ Sets whether to enable the notification sync feature for devices where the appli **Example** -```js +```ts let userId = 100; let enable = true; -Notification.setSyncNotificationEnabledWithoutApp(userId, enable).then(() => { +notificationManager.setSyncNotificationEnabledWithoutApp(userId, enable).then(() => { console.info('setSyncNotificationEnabledWithoutApp success'); }).catch((err) => { console.info('setSyncNotificationEnabledWithoutApp, err:' + JSON.stringify(err)); @@ -3547,7 +3429,7 @@ Notification.setSyncNotificationEnabledWithoutApp(userId, enable).then(() => { ``` -## Notification.getSyncNotificationEnabledWithoutApp +## notificationManager.getSyncNotificationEnabledWithoutApp getSyncNotificationEnabledWithoutApp(userId: number, callback: AsyncCallback\): void @@ -3577,7 +3459,7 @@ Obtains whether the notification sync feature is enabled for devices where the a **Example** -```js +```ts let userId = 100; function getSyncNotificationEnabledWithoutAppCallback(err, data) { @@ -3588,11 +3470,11 @@ function getSyncNotificationEnabledWithoutAppCallback(err, data) { } } -Notification.getSyncNotificationEnabledWithoutApp(userId, getSyncNotificationEnabledWithoutAppCallback); +notificationManager.getSyncNotificationEnabledWithoutApp(userId, getSyncNotificationEnabledWithoutAppCallback); ``` -## Notification.getSyncNotificationEnabledWithoutApp +## notificationManager.getSyncNotificationEnabledWithoutApp getSyncNotificationEnabledWithoutApp(userId: number): Promise\ @@ -3627,21 +3509,16 @@ Obtains whether the notification sync feature is enabled for devices where the a **Example** -```js +```ts let userId = 100; -Notification.getSyncNotificationEnabledWithoutApp(userId).then((data) => { +notificationManager.getSyncNotificationEnabledWithoutApp(userId).then((data) => { console.info('getSyncNotificationEnabledWithoutApp, data:' + data); }).catch((err) => { console.info('getSyncNotificationEnabledWithoutApp, err:' + err); }); - .catch((err) => { - console.info('getSyncNotificationEnabledWithoutApp, err:', err); - }); ``` - - ## DoNotDisturbDate **System capability**: SystemCapability.Notification.Notification @@ -3654,8 +3531,6 @@ Notification.getSyncNotificationEnabledWithoutApp(userId).then((data) => { | begin | Date | Yes | Yes | DND start time.| | end | Date | Yes | Yes | DND end time.| - - ## DoNotDisturbType **System capability**: SystemCapability.Notification.Notification diff --git a/en/application-dev/reference/apis/js-apis-notificationSubscribe.md b/en/application-dev/reference/apis/js-apis-notificationSubscribe.md index ed0ad9400ed59c637b5495c7b20f8770b0b4329c..2fc2390a979d6c1a2de7555313a496223dacc4ab 100644 --- a/en/application-dev/reference/apis/js-apis-notificationSubscribe.md +++ b/en/application-dev/reference/apis/js-apis-notificationSubscribe.md @@ -1,6 +1,6 @@ -# @ohos.notificationSubscribe +# @ohos.notificationSubscribe (NotificationSubscribe) -The **NotificationSubscribe** module provides APIs for notification subscription, notification unsubscription, subscription removal, and more. In general cases, only system applications can call these APIs. +The **notificationSubscribe** module provides APIs for notification subscription, notification unsubscription, subscription removal, and more. In general cases, only system applications can call these APIs. > **NOTE** > @@ -9,7 +9,7 @@ The **NotificationSubscribe** module provides APIs for notification subscription ## Modules to Import ```js -import NotificationSubscribe from '@ohos.notificationSubscribe'; +import notificationSubscribe from '@ohos.notificationSubscribe'; ``` @@ -56,17 +56,15 @@ function subscribeCallback(err) { function onConsumeCallback(data) { console.info("Consume callback: " + JSON.stringify(data)); } -var subscriber = { +let subscriber = { onConsume: onConsumeCallback -} -var info = { +}; +let info = { bundleNames: ["bundleName1","bundleName2"] -} -NotificationSubscribe.subscribe(subscriber, info, subscribeCallback); +}; +notificationSubscribe.subscribe(subscriber, info, subscribeCallback); ``` - - ## NotificationSubscribe.subscribe subscribe(subscriber: NotificationSubscriber, callback: AsyncCallback\): void @@ -107,10 +105,10 @@ function subscribeCallback(err) { function onConsumeCallback(data) { console.info("Consume callback: " + JSON.stringify(data)); } -var subscriber = { +let subscriber = { onConsume: onConsumeCallback -} -NotificationSubscribe.subscribe(subscriber, subscribeCallback); +}; +notificationSubscribe.subscribe(subscriber, subscribeCallback); ``` @@ -148,10 +146,10 @@ Subscribes to a notification with the subscription information specified. This A function onConsumeCallback(data) { console.info("Consume callback: " + JSON.stringify(data)); } -var subscriber = { +let subscriber = { onConsume: onConsumeCallback }; -NotificationSubscribe.subscribe(subscriber).then(() => { +notificationSubscribe.subscribe(subscriber).then(() => { console.info("subscribe success"); }); ``` @@ -198,14 +196,12 @@ function unsubscribeCallback(err) { function onDisconnectCallback(data) { console.info("Cancel callback: " + JSON.stringify(data)); } -var subscriber = { +let subscriber = { onDisconnect: onDisconnectCallback -} -NotificationSubscribe.unsubscribe(subscriber, unsubscribeCallback); +}; +notificationSubscribe.unsubscribe(subscriber, unsubscribeCallback); ``` - - ## NotificationSubscribe.unsubscribe unsubscribe(subscriber: NotificationSubscriber): Promise\ @@ -238,16 +234,14 @@ Unsubscribes from a notification. This API uses a promise to return the result. function onDisconnectCallback(data) { console.info("Cancel callback: " + JSON.stringify(data)); } -var subscriber = { +let subscriber = { onDisconnect: onDisconnectCallback }; -NotificationSubscribe.unsubscribe(subscriber).then(() => { +notificationSubscribe.unsubscribe(subscriber).then(() => { console.info("unsubscribe success"); }); ``` - - ## NotificationSubscribe.remove remove(bundle: BundleOption, notificationKey: NotificationKey, reason: RemoveReason, callback: AsyncCallback\): void @@ -289,15 +283,15 @@ function removeCallback(err) { console.info("remove success"); } } -var bundle = { +let bundle = { bundle: "bundleName1", -} -var notificationKey = { +}; +let notificationKey = { id: 0, label: "label", -} -var reason = NotificationSubscribe.RemoveReason.CLICK_REASON_REMOVE; -NotificationSubscribe.remove(bundle, notificationKey, reason, removeCallback); +}; +let reason = notificationSubscribe.RemoveReason.CLICK_REASON_REMOVE; +notificationSubscribe.remove(bundle, notificationKey, reason, removeCallback); ``` @@ -335,21 +329,19 @@ Removes a notification for a specified application. This API uses a promise to r **Example** ```js -var bundle = { +let bundle = { bundle: "bundleName1", -} -var notificationKey = { +}; +let notificationKey = { id: 0, label: "label", -} -var reason = NotificationSubscribe.RemoveReason.CLICK_REASON_REMOVE; -NotificationSubscribe.remove(bundle, notificationKey, reason).then(() => { +}; +let reason = NotificationSubscribe.RemoveReason.CLICK_REASON_REMOVE; +notificationSubscribe.remove(bundle, notificationKey, reason).then(() => { console.info("remove success"); }); ``` - - ## NotificationSubscribe.remove remove(hashCode: string, reason: RemoveReason, callback: AsyncCallback\): void @@ -382,7 +374,7 @@ Removes a specified notification. This API uses an asynchronous callback to retu **Example** ```js -var hashCode = 'hashCode' +let hashCode = 'hashCode'; function removeCallback(err) { if (err) { @@ -391,12 +383,10 @@ function removeCallback(err) { console.info("remove success"); } } -var reason = NotificationSubscribe.RemoveReason.CANCEL_REASON_REMOVE; -NotificationSubscribe.remove(hashCode, reason, removeCallback); +let reason = NotificationSubscribe.RemoveReason.CANCEL_REASON_REMOVE; +notificationSubscribe.remove(hashCode, reason, removeCallback); ``` - - ## NotificationSubscribe.remove remove(hashCode: string, reason: RemoveReason): Promise\ @@ -428,15 +418,13 @@ Removes a specified notification. This API uses a promise to return the result. **Example** ```js -var hashCode = 'hashCode' -var reason = NotificationSubscribe.RemoveReason.CLICK_REASON_REMOVE; -NotificationSubscribe.remove(hashCode, reason).then(() => { +let hashCode = 'hashCode'; +let reason = notificationSubscribe.RemoveReason.CLICK_REASON_REMOVE; +notificationSubscribe.remove(hashCode, reason).then(() => { console.info("remove success"); }); ``` - - ## NotificationSubscribe.removeAll removeAll(bundle: BundleOption, callback: AsyncCallback\): void @@ -475,14 +463,12 @@ function removeAllCallback(err) { console.info("removeAll success"); } } -var bundle = { +let bundle = { bundle: "bundleName1", -} +}; NotificationSubscribe.removeAll(bundle, removeAllCallback); ``` - - ## NotificationSubscribe.removeAll removeAll(callback: AsyncCallback\): void @@ -520,11 +506,9 @@ function removeAllCallback(err) { } } -NotificationSubscribe.removeAll(removeAllCallback); +notificationSubscribe.removeAll(removeAllCallback); ``` - - ## NotificationSubscribe.removeAll removeAll(bundle?: BundleOption): Promise\ @@ -556,7 +540,7 @@ Removes all notifications for a specified application. This API uses a promise t ```js // If no application is specified, notifications of all applications are deleted. -NotificationSubscribe.removeAll().then(() => { +notificationSubscribe.removeAll().then(() => { console.info("removeAll success"); }); ``` @@ -600,9 +584,9 @@ function removeAllCallback(err) { } } -var userId = 1 +let userId = 1; -NotificationSubscribe.removeAll(userId, removeAllCallback); +notificationSubscribe.removeAll(userId, removeAllCallback); ``` ## Notification.removeAll @@ -643,13 +627,11 @@ function removeAllCallback(err) { } } -var userId = 1 +let userId = 1; -NotificationSubscribe.removeAll(userId, removeAllCallback); +notificationSubscribe.removeAll(userId, removeAllCallback); ``` - - ## NotificationSubscriber Provides callbacks for receiving or removing notifications and serves as the input parameter of [subscribe](#notificationsubscribe). @@ -689,11 +671,11 @@ function onConsumeCallback(data) { console.info('===> onConsume callback req.id:' + req.id); }; -var subscriber = { +let subscriber = { onConsume: onConsumeCallback }; -NotificationSubscribe.subscribe(subscriber, subscribeCallback); +notificationSubscribe.subscribe(subscriber, subscribeCallback); ``` ### onCancel @@ -729,11 +711,11 @@ function onCancelCallback(data) { console.info('===> onCancel callback req.id:' + req.id); } -var subscriber = { +let subscriber = { onCancel: onCancelCallback }; -NotificationSubscribe.subscribe(subscriber, subscribeCallback); +notificationSubscribe.subscribe(subscriber, subscribeCallback); ``` ### onUpdate @@ -767,11 +749,11 @@ function onUpdateCallback(map) { console.info('===> onUpdateCallback map:' + JSON.stringify(map)); } -var subscriber = { +let subscriber = { onUpdate: onUpdateCallback }; -NotificationSubscribe.subscribe(subscriber, subscribeCallback); +notificationSubscribe.subscribe(subscriber, subscribeCallback); ``` ### onConnect @@ -799,11 +781,11 @@ function onConnectCallback() { console.info('===> onConnect in test'); } -var subscriber = { +let subscriber = { onConnect: onConnectCallback }; -NotificationSubscribe.subscribe(subscriber, subscribeCallback); +notificationSubscribe.subscribe(subscriber, subscribeCallback); ``` ### onDisconnect @@ -841,15 +823,15 @@ function onDisconnectCallback() { console.info('===> onDisconnect in test'); } -var subscriber = { +let subscriber = { onConnect: onConnectCallback, onDisconnect: onDisconnectCallback }; // The onConnect callback is invoked when subscription to the notification is complete. -NotificationSubscribe.subscribe(subscriber, subscribeCallback); +notificationSubscribe.subscribe(subscriber, subscribeCallback); // The onDisconnect callback is invoked when unsubscription to the notification is complete. -NotificationSubscribe.unsubscribe(subscriber, unsubscribeCallback); +notificationSubscribe.unsubscribe(subscriber, unsubscribeCallback); ``` ### onDestroy @@ -877,11 +859,11 @@ function onDestroyCallback() { console.info('===> onDestroy in test'); } -var subscriber = { +let subscriber = { onDestroy: onDestroyCallback }; -NotificationSubscribe.subscribe(subscriber, subscribeCallback); +notificationSubscribe.subscribe(subscriber, subscribeCallback); ``` ### onDoNotDisturbDateChange @@ -915,11 +897,11 @@ function onDoNotDisturbDateChangeCallback(mode) { console.info('===> onDoNotDisturbDateChange:' + mode); } -var subscriber = { +let subscriber = { onDoNotDisturbDateChange: onDoNotDisturbDateChangeCallback }; -NotificationSubscribe.subscribe(subscriber, subscribeCallback); +notificationSubscribe.subscribe(subscriber, subscribeCallback); ``` @@ -956,11 +938,11 @@ function onEnabledNotificationChangedCallback(callbackData) { console.info("enable: ", callbackData.enable); }; -var subscriber = { +let subscriber = { onEnabledNotificationChanged: onEnabledNotificationChangedCallback }; -NotificationSubscribe.subscribe(subscriber, subscribeCallback); +notificationSubscribe.subscribe(subscriber, subscribeCallback); ``` ## BundleOption @@ -1011,7 +993,7 @@ NotificationSubscribe.subscribe(subscriber, subscribeCallback); ## NotificationSorting -Provides sorting information of activity notifications. +Provides sorting information of active notifications. **System capability**: SystemCapability.Notification.Notification diff --git a/en/application-dev/reference/apis/js-apis-osAccount.md b/en/application-dev/reference/apis/js-apis-osAccount.md index c023229badd1808170022d641415172bf2f899d0..c7b8ecb87cca8ffe72417ca65c07086c8421fae1 100644 --- a/en/application-dev/reference/apis/js-apis-osAccount.md +++ b/en/application-dev/reference/apis/js-apis-osAccount.md @@ -84,13 +84,13 @@ Activates an OS account. This API uses an asynchronous callback to return the re try { accountManager.activateOsAccount(localId, (err)=>{ if (err) { - console.log("activateOsAccount failed, error:" + JSON.stringify(err)); + console.error(`activateOsAccount failed, code is ${err.code}, message is ${err.message}`); } else { console.log("activateOsAccount successfully"); } }); } catch (err) { - console.log("activateOsAccount exception:" + JSON.stringify(err)); + console.error(`activateOsAccount failed, code is ${err.code}, message is ${err.message}`); } ``` @@ -170,13 +170,13 @@ Checks whether multiple OS accounts are supported. This API uses an asynchronous try { accountManager.checkMultiOsAccountEnabled((err, isEnabled) => { if (err) { - console.log("checkMultiOsAccountEnabled failed, error: " + JSON.stringify(err)); + console.error(`checkMultiOsAccountEnabled failed, code is ${err.code}, message is ${err.message}`); } else { console.log("checkMultiOsAccountEnabled successfully, isEnabled: " + isEnabled); } }); } catch (err) { - console.log("checkMultiOsAccountEnabled exception: " + JSON.stringify(err)); + console.error(`checkMultiOsAccountEnabled failed, code is ${err.code}, message is ${err.message}`); } ``` @@ -208,10 +208,10 @@ Checks whether multiple OS accounts are supported. This API uses a promise to re accountManager.checkMultiOsAccountEnabled().then((isEnabled) => { console.log('checkMultiOsAccountEnabled successfully, isEnabled: ' + isEnabled); }).catch((err) => { - console.log('checkMultiOsAccountEnabled failed, error: ' + JSON.stringify(err)); + console.error(`checkMultiOsAccountEnabled failed, code is ${err.code}, message is ${err.message}`); }); } catch (err) { - console.log('checkMultiOsAccountEnabled exception: ' + JSON.stringify(err)); + console.error(`checkMultiOsAccountEnabled failed, code is ${err.code}, message is ${err.message}`); } ``` @@ -3604,7 +3604,7 @@ Obtains the type of the account to which the current process belongs. This API u getDistributedVirtualDeviceId(callback: AsyncCallback<string>): void -Obtains the ID of the distributed virtual device. This API uses an asynchronous callback to return the result. +Obtains the ID of this distributed virtual device. This API uses an asynchronous callback to return the result. > **NOTE** > @@ -3634,7 +3634,7 @@ Obtains the ID of the distributed virtual device. This API uses an asynchronous getDistributedVirtualDeviceId(): Promise<string> -Obtains the ID of the distributed virtual device. This API uses a promise to return the result. +Obtains the ID of this distributed virtual device. This API uses a promise to return the result. > **NOTE** > @@ -4323,13 +4323,13 @@ Unregisters this PIN inputer. pinAuth.unregisterInputer(); ``` -### InputerManager 10+ +## InputerManager 9+ Provides APIs for managing credential inputers. -### registerInputer10+ +### registerInputer9+ -registerInputer(authType: AuthType, inputer: IInputer): void; +static registerInputer(authType: AuthType, inputer: IInputer): void Register a credential inputer. @@ -4357,11 +4357,10 @@ Register a credential inputer. **Example** ```js - let inputerMgr = new account_osAccount.InputerManager(); let authType = account_osAccount.AuthType.DOMAIN; let password = new Uint8Array([0, 0, 0, 0, 0]); try { - inputerMgr.registerInputer(authType, { + account_osAccount.InputerManager.registerInputer(authType, { onGetData: (authSubType, callback) => { callback.onSetData(authSubType, password); } @@ -4372,9 +4371,9 @@ Register a credential inputer. } ``` -### unregisterInputer10+ +### unregisterInputer9+ -unregisterInputer(authType: AuthType): void; +static unregisterInputer(authType: AuthType): void Unregisters this credential inputer. @@ -4398,16 +4397,129 @@ Unregisters this credential inputer. **Example** ```js - let inputerMgr = new account_osAccount.InputerManager(); let authType = account_osAccount.AuthType.DOMAIN; try { - inputerMgr.unregisterInputer(authType); + account_osAccount.InputerManager.unregisterInputer(authType); console.log('unregisterInputer success.'); } catch(err) { console.log("unregisterInputer err:" + JSON.stringify(err)); } ``` +## DomainPlugin9+ + +Provides APIs for domain account authentication. + +**System API**: This is a system API. + +### auth9+ + +auth(domainAccountInfo: DomainAccountInfo, credential: Uint8Array, callback: IUserAuthCallback): void + +Authenticates a domain account. + +**System API**: This is a system API. + +**System capability**: SystemCapability.Account.OsAccount + +**Parameters** + +| Name | Type | Mandatory| Description | +| ---------- | --------------------------------------- | ---- | --------------- | +| domainAccountInfo | [DomainAccountInfo](#domainaccountinfo8) | Yes | Domain account information.| +| credential | Uint8Array | Yes | Credentials of the domain account.| +| callback | [IUserAuthCallback](#iuserauthcallback8) | Yes | Callback invoked to return the authentication result.| + +**Example** + ```js + let plugin = { + auth: (domainInfo, credential, callback) => { + // mock authentication + callback.onResult(0, {}); + } + } + account_osAccount.DomainAccountManager.registerPlugin(plugin); + let userAuth = new account_osAccount.UserAuth(); + let challenge = new Uint8Array([0]); + let authType = account_osAccount.AuthType.PIN; + let authTrustLevel = account_osAccount.AuthTrustLevel.ATL1; + try { + userAuth.auth(challenge, authType, authTrustLevel, { + onResult: (resultCode, authResult) => { + console.log('auth resultCode = ' + resultCode); + console.log('auth authResult = ' + JSON.stringify(authResult)); + } + }); + } catch (err) { + console.log('auth exception = ' + JSON.stringify(err)); + } + ``` + +## DomainAccountManager 9+ +Provides APIs for domain account management. + +### registerPlugin9+ + +static registerPlugin(plugin: DomainPlugin): void + +Registers a domain plug-in. + +**System API**: This is a system API. + +**System capability**: SystemCapability.Account.OsAccount + +**Required permissions**: ohos.permission.MANAGE_LOCAL_ACCOUNTS + +**Parameters** + +| Name | Type | Mandatory| Description | +| ----------| ----------------------- | --- | -------------------------- | +| plugin | [DomainPlugin](#domainplugin9) | Yes | Domain plug-in to register.| + +**Error codes** + +| ID| Error Message | +| -------- | --------------------------- | +| 12300201 | The domain plugin has been registered. | + +**Example** + ```js + let plugin = { + auth: (domainInfo, credential, callback) => { + // mock authentication + callback.onResult(0, {}); + } + } + try { + account_osAccount.DomainAccountManager.registerPlugin(plugin); + console.log('registerPlugin success.'); + } catch(err) { + console.log("registerPlugin err:" + JSON.stringify(err)); + } + ``` + +### unregisterPlugin9+ + +static unregisterPlugin(): void + +Unregisters this domain plug-in. + +**System API**: This is a system API. + +**System capability**: SystemCapability.Account.OsAccount + +**Required permissions**: ohos.permission.MANAGE_LOCAL_ACCOUNTS + +**Example** + ```js + try { + account_osAccount.DomainAccountManager.unregisterPlugin(); + console.log('unregisterPlugin success.'); + } catch(err) { + console.log("unregisterPlugin err:" + JSON.stringify(err)); + } + ``` + ## UserIdentityManager8+ Provides APIs for user identity management (IDM). diff --git a/en/application-dev/reference/apis/js-apis-privacyManager.md b/en/application-dev/reference/apis/js-apis-privacyManager.md index c7da8609952d245b53e82aead09f57f97eeeedf1..7880d8a09af980bbc51635e7220738722142829b 100644 --- a/en/application-dev/reference/apis/js-apis-privacyManager.md +++ b/en/application-dev/reference/apis/js-apis-privacyManager.md @@ -120,9 +120,9 @@ try { } ``` -## privacyManager.getPermissionUsedRecords +## privacyManager.getPermissionUsedRecord -getPermissionUsedRecords(request: PermissionUsedRequest): Promise<PermissionUsedResponse> +getPermissionUsedRecord(request: PermissionUsedRequest): Promise<PermissionUsedResponse> Obtains historical permission usage records. This API uses a promise to return the result. @@ -170,19 +170,19 @@ let request = { "flag":privacyManager.PermissionUsageFlag.FLAG_PERMISSION_USAGE_DETAIL, }; try { - privacyManager.getPermissionUsedRecords(request).then((data) => { - console.log(`getPermissionUsedRecords success, data->${JSON.stringify(data)}`); + privacyManager.getPermissionUsedRecord(request).then((data) => { + console.log(`getPermissionUsedRecord success, data->${JSON.stringify(data)}`); }).catch((err) => { - console.log(`getPermissionUsedRecords fail, err->${JSON.stringify(err)}`); + console.log(`getPermissionUsedRecord fail, err->${JSON.stringify(err)}`); }); } catch(err) { console.log(`catch err->${JSON.stringify(err)}`); } ``` -## privacyManager.getPermissionUsedRecords +## privacyManager.getPermissionUsedRecord -getPermissionUsedRecords(request: PermissionUsedRequest, callback: AsyncCallback<PermissionUsedResponse>): void +getPermissionUsedRecord(request: PermissionUsedRequest, callback: AsyncCallback<PermissionUsedResponse>): void Obtains historical permission usage records. This API uses an asynchronous callback to return the result. @@ -225,11 +225,11 @@ let request = { "flag":privacyManager.PermissionUsageFlag.FLAG_PERMISSION_USAGE_DETAIL, }; try { - privacyManager.getPermissionUsedRecords(request, (err, data) => { + privacyManager.getPermissionUsedRecord(request, (err, data) => { if (err) { - console.log(`getPermissionUsedRecords fail, err->${JSON.stringify(err)}`); + console.log(`getPermissionUsedRecord fail, err->${JSON.stringify(err)}`); } else { - console.log(`getPermissionUsedRecords success, data->${JSON.stringify(data)}`); + console.log(`getPermissionUsedRecord success, data->${JSON.stringify(data)}`); } }); } catch(err) { diff --git a/en/application-dev/reference/apis/js-apis-promptAction.md b/en/application-dev/reference/apis/js-apis-promptAction.md index 2d01a8db31a0a0f01f62ce4747ef2d6449b348e3..4250e7503f68a0ef1144531c2f2ac74c5143edd4 100644 --- a/en/application-dev/reference/apis/js-apis-promptAction.md +++ b/en/application-dev/reference/apis/js-apis-promptAction.md @@ -32,7 +32,7 @@ For details about the error codes, see [promptAction Error Codes](../errorcodes/ | ID | Error Message| | --------- | ------- | -| 100001 | If UI execution context not found. | +| 100001 | if UI execution context not found. | **Example** @@ -40,7 +40,7 @@ For details about the error codes, see [promptAction Error Codes](../errorcodes/ try { promptAction.showToast({ message: 'Message Info', - duration: 2000, + duration: 2000 }); } catch (error) { console.error(`showToast args error code is ${error.code}, message is ${error.message}`); @@ -88,7 +88,7 @@ For details about the error codes, see [promptAction Error Codes](../errorcodes/ | ID | Error Message| | --------- | ------- | -| 100001 | If UI execution context not found. | +| 100001 | if UI execution context not found. | **Example** @@ -100,11 +100,11 @@ try { buttons: [ { text: 'button1', - color: '#000000', + color: '#000000' }, { text: 'button2', - color: '#000000', + color: '#000000' } ], }) @@ -142,7 +142,7 @@ For details about the error codes, see [promptAction Error Codes](../errorcodes/ | ID | Error Message| | --------- | ------- | -| 100001 | If UI execution context not found. | +| 100001 | if UI execution context not found. | **Example** @@ -154,11 +154,11 @@ try { buttons: [ { text: 'button1', - color: '#000000', + color: '#000000' }, { text: 'button2', - color: '#000000', + color: '#000000' } ] }, (err, data) => { @@ -218,7 +218,7 @@ For details about the error codes, see [promptAction Error Codes](../errorcodes/ | ID | Error Message| | --------- | ------- | -| 100001 | If UI execution context not found. | +| 100001 | if UI execution context not found. | **Example** @@ -229,11 +229,11 @@ try { buttons: [ { text: 'item1', - color: '#666666', + color: '#666666' }, { text: 'item2', - color: '#000000', + color: '#000000' }, ] }, (err, data) => { @@ -276,7 +276,7 @@ For details about the error codes, see [promptAction Error Codes](../errorcodes/ | ID | Error Message| | --------- | ------- | -| 100001 | If UI execution context not found. | +| 100001 | if UI execution context not found. | **Example** @@ -287,11 +287,11 @@ try { buttons: [ { text: 'item1', - color: '#666666', + color: '#666666' }, { text: 'item2', - color: '#000000', + color: '#000000' }, ] }) diff --git a/en/application-dev/reference/apis/js-apis-reminderAgent.md b/en/application-dev/reference/apis/js-apis-reminderAgent.md index 29b20c42950323df2346d817922f178d71d11a80..3f9387defec0e68dc6414fdb4b21c5bca9cb1490 100644 --- a/en/application-dev/reference/apis/js-apis-reminderAgent.md +++ b/en/application-dev/reference/apis/js-apis-reminderAgent.md @@ -1,4 +1,4 @@ -# @ohos.reminderAgent (reminderAgent) +# @ohos.reminderAgent (Reminder Agent) The **reminderAgent** module provides APIs for publishing scheduled reminders through the reminder agent. diff --git a/en/application-dev/reference/apis/js-apis-reminderAgentManager.md b/en/application-dev/reference/apis/js-apis-reminderAgentManager.md index ab3d0f116871392e6cdbf0c004b9c418c5660e16..f443c028e40072e8b402f93b54be1e9ecfdc0842 100644 --- a/en/application-dev/reference/apis/js-apis-reminderAgentManager.md +++ b/en/application-dev/reference/apis/js-apis-reminderAgentManager.md @@ -1,4 +1,4 @@ -# @ohos.reminderAgentManager (reminderAgentManager) +# @ohos.reminderAgentManager (Reminder Agent Management) The **reminderAgentManager** module provides APIs for publishing scheduled reminders through the reminder agent. diff --git a/en/application-dev/reference/apis/js-apis-request.md b/en/application-dev/reference/apis/js-apis-request.md index d3a0eeb30ea75a3109b6917d50b7b1d24cdd2fb4..ff95e4da7e13247791af681c793b5aade7ba84d3 100644 --- a/en/application-dev/reference/apis/js-apis-request.md +++ b/en/application-dev/reference/apis/js-apis-request.md @@ -2,7 +2,8 @@ The **request** module provides applications with basic upload, download, and background transmission agent capabilities. -> **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. @@ -77,7 +78,7 @@ The table below lists the causes of download pause that may be returned by [getT | PAUSED_QUEUED_FOR_WIFI7+ | number | 0 | Download paused and queuing for a WLAN connection, because the file size exceeds the maximum value allowed by a mobile network session.| | PAUSED_WAITING_FOR_NETWORK7+ | number | 1 | Download paused due to a network connection problem, for example, network disconnection.| | PAUSED_WAITING_TO_RETRY7+ | number | 2 | Download paused and then retried.| -| PAUSED_BY_USER9+ | number | 3 | The user paused the session. | +| PAUSED_BY_USER9+ | number | 3 | The user paused the session.| | PAUSED_UNKNOWN7+ | number | 4 | Download paused due to unknown reasons.| ### Download Task Status Codes @@ -378,6 +379,8 @@ Uploads files. This API uses an asynchronous callback to return the result. Implements file uploads. Before using any APIs of this class, you must obtain an **UploadTask** object through [request.uploadFile9+](#requestuploadfile9) in promise mode or [request.uploadFile9+](#requestuploadfile9-1) in callback mode. + + ### on('progress') on(type: 'progress', callback:(uploadedSize: number, totalSize: number) => void): void @@ -399,8 +402,8 @@ Parameters of the callback function | Name| Type| Mandatory| Description| | -------- | -------- | -------- | -------- | -| uploadedSize | number | Yes| Size of the uploaded files, in bytes. | -| totalSize | number | Yes| Total size of the files to upload, in bytes. | +| uploadedSize | number | Yes| Size of the uploaded files, in bytes.| +| totalSize | number | Yes| Total size of the files to upload, in bytes.| **Example** @@ -504,12 +507,12 @@ Unsubscribes from an upload event. This API uses an asynchronous callback to ret | type | string | Yes| Type of the event to unsubscribe from. The value is **'progress'** (upload progress).| | callback | function | No| Callback for the upload progress event.| - Parameters of the callback function +Parameters of the callback function | Name| Type| Mandatory| Description| | -------- | -------- | -------- | -------- | -| uploadedSize | number | Yes| Size of the uploaded files, in bytes. | -| totalSize | number | Yes| Total size of the files to upload, in bytes. | +| uploadedSize | number | Yes| Size of the uploaded files, in bytes.| +| totalSize | number | Yes| Total size of the files to upload, in bytes.| **Example** @@ -764,7 +767,7 @@ Removes this upload task. This API uses an asynchronous callback to return the r | -------- | -------- | -------- | -------- | | filename | string | Yes| File name in the header when **multipart** is used.| | name | string | Yes| Name of a form item when **multipart** is used. The default value is **file**.| -| uri | string | Yes| Local path for storing files.
The **dataability** and **internal** protocol types are supported. However, the **internal** protocol type supports only temporary directories. Below are examples:
dataability:///com.domainname.dataability.persondata/person/10/file.txt

internal://cache/path/to/file.txt | +| uri | string | Yes| Local path for storing files.
Only the **internal** protocol type is supported. In the value, **internal://cache/** is mandatory. Example:
internal://cache/path/to/file.txt | | type | string | Yes| Type of the file content. By default, the type is obtained based on the extension of the file name or URI.| @@ -1047,12 +1050,12 @@ Subscribes to a download event. This API uses an asynchronous callback to return | type | string | Yes| Type of the event to subscribe to. The value is **'progress'** (download progress).| | callback | function | Yes| Callback for the download progress event.| - Parameters of the callback function +Parameters of the callback function | Name| Type| Mandatory| Description| | -------- | -------- | -------- | -------- | -| receivedSize | number | Yes| Size of the downloaded files, in bytes. | -| totalSize | number | Yes| Total size of the files to download, in bytes. | +| receivedSize | number | Yes| Size of the downloaded files, in bytes.| +| totalSize | number | Yes| Total size of the files to download, in bytes.| **Example** @@ -1085,8 +1088,8 @@ Parameters of the callback function | Name| Type| Mandatory| Description| | -------- | -------- | -------- | -------- | -| receivedSize | number | Yes| Size of the downloaded files, in bytes. | -| totalSize | number | Yes| Total size of the files to download, in bytes. | +| receivedSize | number | Yes| Size of the downloaded files, in bytes.| +| totalSize | number | Yes| Total size of the files to download, in bytes.| **Example** @@ -1252,7 +1255,7 @@ Removes this download task. This API uses a promise to return the result. delete(callback: AsyncCallback<boolean>): void -Removes this download task. This API uses an asynchronous callback to return the result. +Deletes this download task. This API uses an asynchronous callback to return the result. **Required permissions**: ohos.permission.INTERNET @@ -1262,7 +1265,7 @@ Removes this download task. This API uses an asynchronous callback to return the | Name| Type| Mandatory| Description| | -------- | -------- | -------- | -------- | -| callback | AsyncCallback<boolean> | Yes| Callback used to return the task removal result.| +| callback | AsyncCallback<boolean> | Yes| Callback used to return the task deletion result. | **Example** diff --git a/en/application-dev/reference/apis/js-apis-resourceschedule-backgroundTaskManager.md b/en/application-dev/reference/apis/js-apis-resourceschedule-backgroundTaskManager.md index d5daa5d41e299d368b7d38af4428856bf343c516..e1ee89e11a5bb2e69f48e9575c1443ae850afcdc 100644 --- a/en/application-dev/reference/apis/js-apis-resourceschedule-backgroundTaskManager.md +++ b/en/application-dev/reference/apis/js-apis-resourceschedule-backgroundTaskManager.md @@ -67,8 +67,8 @@ For details about the error codes, see [backgroundTaskManager Error Codes](../er let delayInfo = backgroundTaskManager.requestSuspendDelay(myReason, () => { console.info("Request suspension delay will time out."); }) - var id = delayInfo.requestId; - var time = delayInfo.actualDelayTime; + let id = delayInfo.requestId; + let time = delayInfo.actualDelayTime; console.info("The requestId is: " + id); console.info("The actualDelayTime is: " + time); } catch (error) { @@ -258,7 +258,7 @@ For details about the error codes, see [backgroundTaskManager Error Codes](../er ```js import UIAbility from '@ohos.app.ability.UIAbility'; import backgroundTaskManager from '@ohos.resourceschedule.backgroundTaskManager'; -import wantAgent from '@ohos.wantAgent'; +import wantAgent from '@ohos.app.ability.wantAgent'; function callback(error, data) { if (error) { @@ -282,14 +282,18 @@ export default class EntryAbility extends UIAbility { wantAgentFlags: [wantAgent.WantAgentFlags.UPDATE_PRESENT_FLAG] }; - wantAgent.getWantAgent(wantAgentInfo).then((wantAgentObj) => { - try { - backgroundTaskManager.startBackgroundRunning(this.context, - backgroundTaskManager.BackgroundMode.LOCATION, wantAgentObj, callback) - } catch (error) { - console.error(`Operation startBackgroundRunning failed. code is ${error.code} message is ${error.message}`); - } - }); + try { + wantAgent.getWantAgent(wantAgentInfo).then((wantAgentObj) => { + try { + backgroundTaskManager.startBackgroundRunning(this.context, + backgroundTaskManager.BackgroundMode.LOCATION, wantAgentObj, callback) + } catch (error) { + console.error(`Operation startBackgroundRunning failed. code is ${error.code} message is ${error.message}`); + } + }); + } catch (error) { + console.error(`Operation getWantAgent failed. code is ${error.code} message is ${error.message}`); + } } }; ``` @@ -337,7 +341,7 @@ For details about the error codes, see [backgroundTaskManager Error Codes](../er ```js import UIAbility from '@ohos.app.ability.UIAbility'; import backgroundTaskManager from '@ohos.resourceschedule.backgroundTaskManager'; -import wantAgent from '@ohos.wantAgent'; +import wantAgent from '@ohos.app.ability.wantAgent'; export default class EntryAbility extends UIAbility { onCreate(want, launchParam) { @@ -353,18 +357,22 @@ export default class EntryAbility extends UIAbility { wantAgentFlags: [wantAgent.WantAgentFlags.UPDATE_PRESENT_FLAG] }; - wantAgent.getWantAgent(wantAgentInfo).then((wantAgentObj) => { - try { - backgroundTaskManager.startBackgroundRunning(this.context, - backgroundTaskManager.BackgroundMode.LOCATION, wantAgentObj).then(() => { - console.info("Operation startBackgroundRunning succeeded"); - }).catch((error) => { + try { + wantAgent.getWantAgent(wantAgentInfo).then((wantAgentObj) => { + try { + backgroundTaskManager.startBackgroundRunning(this.context, + backgroundTaskManager.BackgroundMode.LOCATION, wantAgentObj).then(() => { + console.info("Operation startBackgroundRunning succeeded"); + }).catch((error) => { + console.error(`Operation startBackgroundRunning failed. code is ${error.code} message is ${error.message}`); + }); + } catch (error) { console.error(`Operation startBackgroundRunning failed. code is ${error.code} message is ${error.message}`); - }); - } catch (error) { - console.error(`Operation startBackgroundRunning failed. code is ${error.code} message is ${error.message}`); - } - }); + } + }); + } catch (error) { + console.error(`Operation getWantAgent failed. code is ${error.code} message is ${error.message}`); + } } }; ``` diff --git a/en/application-dev/reference/apis/js-apis-resourceschedule-workScheduler.md b/en/application-dev/reference/apis/js-apis-resourceschedule-workScheduler.md index 70f20b743d5ee09f2c79877ab626d76fdaeb0d95..0e7ad7e7c38f32e85af6ab3504252da38afb32eb 100644 --- a/en/application-dev/reference/apis/js-apis-resourceschedule-workScheduler.md +++ b/en/application-dev/reference/apis/js-apis-resourceschedule-workScheduler.md @@ -1,4 +1,4 @@ -# @ohos.resourceschedule.workScheduler (workScheduler) +# @ohos.resourceschedule.workScheduler (Work Scheduler) The **workScheduler** module provides the APIs for registering, canceling, and querying Work Scheduler tasks, which do not have real-time constraints. diff --git a/en/application-dev/reference/apis/js-apis-router.md b/en/application-dev/reference/apis/js-apis-router.md index 80451d894a244a7cd2c1f91e4d4fed86cf1f898e..1234e81445de56ead44aaf2f118c53f0e12e7dbc 100644 --- a/en/application-dev/reference/apis/js-apis-router.md +++ b/en/application-dev/reference/apis/js-apis-router.md @@ -40,32 +40,28 @@ For details about the error codes, see [Router Error Codes](../errorcodes/errorc | ID | Error Message| | --------- | ------- | -| 100001 | If UI execution context not found. | -| 100002 | If the uri is not exist. | -| 100003 | If the pages are pushed too much. | +| 100001 | if UI execution context not found. | +| 100002 | if the uri is not exist. | +| 100003 | if the pages are pushed too much. | **Example** ```js -try { - router.pushUrl({ - url: 'pages/routerpage2', - params: { - data1: 'message', - data2: { - data3: [123, 456, 789] - } +router.pushUrl({ + url: 'pages/routerpage2', + params: { + data1: 'message', + data2: { + data3: [123, 456, 789] } + } +}) + .then(() => { + // success + }) + .catch(err => { + console.error(`pushUrl failed, code is ${err.code}, message is ${err.message}`); }) - .then(() => { - // success - }) - .catch(err => { - console.error(`pushUrl failed, code is ${err.code}, message is ${err.message}`); - }) -} catch (error) { - console.error(`pushUrl args error code is ${error.code}, message is ${error.message}`); -}; ``` ## router.pushUrl9+ @@ -81,7 +77,7 @@ Navigates to a specified page in the application. | Name | Type | Mandatory | Description | | ------- | ------------------------------- | ---- | --------- | | options | [RouterOptions](#routeroptions) | Yes | Page routing parameters.| -| callback | AsyncCallback<void> | Yes | Callback used to return the result. | +| callback | AsyncCallback<void> | Yes | Callback used to return the result. | **Error codes** @@ -89,32 +85,28 @@ For details about the error codes, see [Router Error Codes](../errorcodes/errorc | ID | Error Message| | --------- | ------- | -| 100001 | If UI execution context not found. | -| 100002 | If the uri is not exist. | -| 100003 | If the pages are pushed too much. | +| 100001 | if UI execution context not found. | +| 100002 | if the uri is not exist. | +| 100003 | if the pages are pushed too much. | **Example** ```js -try { - router.pushUrl({ - url: 'pages/routerpage2', - params: { - data1: 'message', - data2: { - data3: [123, 456, 789] - } - } - }, (err) => { - if (err) { - console.error(`pushUrl failed, code is ${err.code}, message is ${err.message}`); - return; +router.pushUrl({ + url: 'pages/routerpage2', + params: { + data1: 'message', + data2: { + data3: [123, 456, 789] } - console.info('pushUrl success'); - }); -} catch (error) { - console.error(`pushUrl args error code is ${error.code}, message is ${error.message}`); -}; + } +}) + .then(() => { + // success + }) + .catch(err => { + console.error(`pushUrl failed, code is ${err.code}, message is ${err.message}`); + }) ``` ## router.pushUrl9+ @@ -143,32 +135,28 @@ For details about the error codes, see [Router Error Codes](../errorcodes/errorc | ID | Error Message| | --------- | ------- | -| 100001 | If UI execution context not found. | -| 100002 | If the uri is not exist. | -| 100003 | If the pages are pushed too much. | +| 100001 | if UI execution context not found. | +| 100002 | if the uri is not exist. | +| 100003 | if the pages are pushed too much. | **Example** ```js -try { - router.pushUrl({ - url: 'pages/routerpage2', - params: { - data1: 'message', - data2: { - data3: [123, 456, 789] - } +router.pushUrl({ + url: 'pages/routerpage2', + params: { + data1: 'message', + data2: { + data3: [123, 456, 789] } - }, router.RouterMode.Standard) - .then(() => { - // success - }) - .catch(err => { - console.error(`pushUrl failed, code is ${err.code}, message is ${err.message}`); - }) -} catch (error) { - console.error(`pushUrl args error code is ${error.code}, message is ${error.message}`); -}; + } +}, router.RouterMode.Standard) + .then(() => { + // success + }) + .catch(err => { + console.error(`pushUrl failed, code is ${err.code}, message is ${err.message}`); + }) ``` ## router.pushUrl9+ @@ -185,7 +173,7 @@ Navigates to a specified page in the application. | ------- | ------------------------------- | ---- | ---------- | | options | [RouterOptions](#routeroptions) | Yes | Page routing parameters. | | mode | [RouterMode](#routermode9) | Yes | Routing mode.| -| callback | AsyncCallback<void> | Yes | Callback used to return the result. | +| callback | AsyncCallback<void> | Yes | Callback used to return the result. | **Error codes** @@ -193,32 +181,28 @@ For details about the error codes, see [Router Error Codes](../errorcodes/errorc | ID | Error Message| | --------- | ------- | -| 100001 | If UI execution context not found. | -| 100002 | If the uri is not exist. | -| 100003 | If the pages are pushed too much. | +| 100001 | if UI execution context not found. | +| 100002 | if the uri is not exist. | +| 100003 | if the pages are pushed too much. | **Example** ```js -try { - router.pushUrl({ - url: 'pages/routerpage2', - params: { - data1: 'message', - data2: { - data3: [123, 456, 789] - } - } - }, router.RouterMode.Standard, (err) => { - if (err) { - console.error(`pushUrl failed, code is ${err.code}, message is ${err.message}`); - return; +router.pushUrl({ + url: 'pages/routerpage2', + params: { + data1: 'message', + data2: { + data3: [123, 456, 789] } - console.info('pushUrl success'); - }); -} catch (error) { - console.error(`pushUrl args error code is ${error.code}, message is ${error.message}`); -}; + } +}, router.RouterMode.Standard, (err) => { + if (err) { + console.error(`pushUrl failed, code is ${err.code}, message is ${err.message}`); + return; + } + console.info('pushUrl success'); +}) ``` ## router.replaceUrl9+ @@ -247,28 +231,24 @@ For details about the error codes, see [Router Error Codes](../errorcodes/errorc | ID | Error Message| | --------- | ------- | -| 100001 | If UI execution context not found, only throw in standard system. | -| 200002 | If the uri is not exist. | +| 100001 | if UI execution context not found, only throw in standard system. | +| 200002 | if the uri is not exist. | **Example** ```js -try { - router.replaceUrl({ - url: 'pages/detail', - params: { - data1: 'message' - } +router.replaceUrl({ + url: 'pages/detail', + params: { + data1: 'message' + } +}) + .then(() => { + // success + }) + .catch(err => { + console.error(`replaceUrl failed, code is ${err.code}, message is ${err.message}`); }) - .then(() => { - // success - }) - .catch(err => { - console.error(`replaceUrl failed, code is ${err.code}, message is ${err.message}`); - }) -} catch (error) { - console.error(`replaceUrl args error code is ${error.code}, message is ${error.message}`); -}; ``` ## router.replaceUrl9+ @@ -284,7 +264,7 @@ Replaces the current page with another one in the application and destroys the c | Name | Type | Mandatory| Description | | ------- | ------------------------------- | ---- | ------------------ | | options | [RouterOptions](#routeroptions) | Yes | Description of the new page.| -| callback | AsyncCallback<void> | Yes | Callback used to return the result. | +| callback | AsyncCallback<void> | Yes | Callback used to return the result. | **Error codes** @@ -292,28 +272,24 @@ For details about the error codes, see [Router Error Codes](../errorcodes/errorc | ID | Error Message| | --------- | ------- | -| 100001 | If UI execution context not found, only throw in standard system. | -| 200002 | If the uri is not exist. | +| 100001 | if UI execution context not found, only throw in standard system. | +| 200002 | if the uri is not exist. | **Example** ```js -try { - router.replaceUrl({ - url: 'pages/detail', - params: { - data1: 'message' - } - }, (err) => { - if (err) { - console.error(`replaceUrl failed, code is ${err.code}, message is ${err.message}`); - return; - } - console.info('replaceUrl success'); - }); -} catch (error) { - console.error(`replaceUrl args error code is ${error.code}, message is ${error.message}`); -}; +router.replaceUrl({ + url: 'pages/detail', + params: { + data1: 'message' + } +}, (err) => { + if (err) { + console.error(`replaceUrl failed, code is ${err.code}, message is ${err.message}`); + return; + } + console.info('replaceUrl success'); +}) ``` ## router.replaceUrl9+ @@ -344,28 +320,24 @@ For details about the error codes, see [Router Error Codes](../errorcodes/errorc | ID | Error Message| | --------- | ------- | -| 100001 | If UI execution context not found, only throw in standard system. | -| 200002 | If the uri is not exist. | +| 100001 | if UI execution context not found, only throw in standard system. | +| 200002 | if the uri is not exist. | **Example** ```js -try { - router.replaceUrl({ - url: 'pages/detail', - params: { - data1: 'message' - } - }, router.RouterMode.Standard) - .then(() => { - // success - }) - .catch(err => { - console.error(`replaceUrl failed, code is ${err.code}, message is ${err.message}`); - }) -} catch (error) { - console.error(`replaceUrl args error code is ${error.code}, message is ${error.message}`); -}; +router.replaceUrl({ + url: 'pages/detail', + params: { + data1: 'message' + } +}, router.RouterMode.Standard) + .then(() => { + // success + }) + .catch(err => { + console.error(`replaceUrl failed, code is ${err.code}, message is ${err.message}`); + }) ``` ## router.replaceUrl9+ @@ -382,7 +354,7 @@ Replaces the current page with another one in the application and destroys the c | ------- | ------------------------------- | ---- | ---------- | | options | [RouterOptions](#routeroptions) | Yes | Description of the new page. | | mode | [RouterMode](#routermode9) | Yes | Routing mode.| -| callback | AsyncCallback<void> | Yes | Callback used to return the result. | +| callback | AsyncCallback<void> | Yes | Callback used to return the result. | **Error codes** @@ -390,28 +362,25 @@ For details about the error codes, see [Router Error Codes](../errorcodes/errorc | ID | Error Message| | --------- | ------- | -| 100001 | If UI execution context not found, only throw in standard system. | -| 200002 | If the uri is not exist. | +| 100001 | if UI execution context not found, only throw in standard system. | +| 200002 | if the uri is not exist. | **Example** ```js -try { - router.replaceUrl({ - url: 'pages/detail', - params: { - data1: 'message' - } - }, router.RouterMode.Standard, (err) => { - if (err) { - console.error(`replaceUrl failed, code is ${err.code}, message is ${err.message}`); - return; - } - console.info('replaceUrl success'); - }); -} catch (error) { - console.error(`replaceUrl args error code is ${error.code}, message is ${error.message}`); -}; +router.replaceUrl({ + url: 'pages/detail', + params: { + data1: 'message' + } +}, router.RouterMode.Standard, (err) => { + if (err) { + console.error(`replaceUrl failed, code is ${err.code}, message is ${err.message}`); + return; + } + console.info('replaceUrl success'); +}); + ``` ## router.back @@ -524,7 +493,7 @@ For details about the error codes, see [Router Error Codes](../errorcodes/errorc | ID | Error Message| | --------- | ------- | -| 100001 | If UI execution context not found. | +| 100001 | if UI execution context not found. | **Example** @@ -571,9 +540,9 @@ Obtains the parameters passed from the page that initiates redirection to the cu **Return value** -| Type | Description | -| ------ | ----------------- | -| Object | Parameters passed from the page that initiates redirection to the current page.| +| Type | Description | +| ------ | ---------------------------------- | +| object | Parameters passed from the page that initiates redirection to the current page.| **Example** @@ -594,6 +563,7 @@ Describes the page routing options. > **NOTE** + > > The page routing stack supports a maximum of 32 pages. ## RouterMode9+ @@ -636,7 +606,7 @@ export default { ### TypeScript-based Declarative Development Paradigm ```ts -// Navigate to the target page through router.push with the params parameter carried. +// Navigate to the target page through router.pushUrl with the params parameter carried. import router from '@ohos.router' @Entry @@ -745,37 +715,6 @@ router.push({ } }); ``` -## router.push(deprecated) - -push(options: RouterOptions, mode: RouterMode): void - -Navigates to a specified page in the application. - -This API is deprecated since API version 9. You are advised to use [pushUrl9+](#routerpushurl9) instead. - -**System capability**: SystemCapability.ArkUI.ArkUI.Full - -**Parameters** - -| Name | Type | Mandatory | Description | -| ------- | ------------------------------- | ---- | ---------- | -| options | [RouterOptions](#routeroptions) | Yes | Page routing parameters. | -| mode | [RouterMode](#routermode9) | Yes | Routing mode.| - - -**Example** - -```js -router.push({ - url: 'pages/routerpage2/routerpage2', - params: { - data1: 'message', - data2: { - data3: [123, 456, 789] - } - } -},router.RouterMode.Standard); -``` ## router.replace(deprecated) @@ -785,7 +724,7 @@ Replaces the current page with another one in the application and destroys the c This API is deprecated since API version 9. You are advised to use [replaceUrl9+](#routerreplaceurl9) instead. -**System capability**: SystemCapability.ArkUI.ArkUI.Full +**System capability**: SystemCapability.ArkUI.ArkUI.Lite **Parameters** @@ -804,34 +743,6 @@ router.replace({ }); ``` -## router.replace(deprecated) - -replace(options: RouterOptions, mode: RouterMode): void - -Replaces the current page with another one in the application and destroys the current page. - -This API is deprecated since API version 9. You are advised to use [replaceUrl9+](#routerreplaceurl9) instead. - -**System capability**: SystemCapability.ArkUI.ArkUI.Lite - -**Parameters** - -| Name | Type | Mandatory | Description | -| ------- | ------------------------------- | ---- | ---------- | -| options | [RouterOptions](#routeroptions) | Yes | Description of the new page. | -| mode | [RouterMode](#routermode9) | Yes | Routing mode.| - -**Example** - -```js -router.replace({ - url: 'pages/detail/detail', - params: { - data1: 'message' - } -}, router.RouterMode.Standard); -``` - ## router.enableAlertBeforeBackPage(deprecated) enableAlertBeforeBackPage(options: EnableAlertOptions): void diff --git a/en/application-dev/reference/apis/js-apis-screen-lock.md b/en/application-dev/reference/apis/js-apis-screen-lock.md index c726ec7c8fdd4cd6f16d71f5a6892bc565b66cf6..f7f2a551648df0db4ad96733ef1a169f8fb42e14 100644 --- a/en/application-dev/reference/apis/js-apis-screen-lock.md +++ b/en/application-dev/reference/apis/js-apis-screen-lock.md @@ -226,7 +226,7 @@ screenlock.lock().then((data) => { onSystemEvent(callback: Callback<SystemEvent>): boolean -Registers a callback for system events related to screen locking. +Registers a callback for system events related to screen locking. This API can be called only by system screen lock applications. **System capability**: SystemCapability.MiscServices.ScreenLock diff --git a/en/application-dev/reference/apis/js-apis-screenshot.md b/en/application-dev/reference/apis/js-apis-screenshot.md index 4fa5e15b59c8d70b09f5bcf8cd1e9686ba329a14..309a1bc64491497bf61aaf6f2695a9d5c4fbd9d4 100644 --- a/en/application-dev/reference/apis/js-apis-screenshot.md +++ b/en/application-dev/reference/apis/js-apis-screenshot.md @@ -1,4 +1,4 @@ -# @ohos.screenshot +# @ohos.screenshot (Screenshot) The **Screenshot** module provides APIs for you to set information such as the region to capture and the size of the screen region when capturing a screen. diff --git a/en/application-dev/reference/apis/js-apis-statfs.md b/en/application-dev/reference/apis/js-apis-statfs.md index 59647b01e2595656e49753a120157ab0e0cae153..9e3d28d465e097d57055339534152f72d53b95fc 100644 --- a/en/application-dev/reference/apis/js-apis-statfs.md +++ b/en/application-dev/reference/apis/js-apis-statfs.md @@ -4,7 +4,9 @@ The **statfs** module provides APIs for obtaining file system information, inclu > **NOTE** > -> The initial APIs of this module are supported since API version 8. Newly added APIs will be marked with a superscript to indicate their earliest API version. +> - The initial APIs of this module are supported since API version 8. Newly added APIs will be marked with a superscript to indicate their earliest API version. +> +> - The APIs provided by this module are deprecated since API version 9. You are advised to use [@ohos.file.statvfs](js-apis-file-statvfs.md). ## Modules to Import @@ -21,15 +23,15 @@ Obtains the number of free bytes of the specified file system in asynchronous mo **Parameters** - | Name| Type | Mandatory| Description | - | ------ | ------ | ---- | ---------------------------- | - | path | string | Yes | File path of the file system.| +| Name| Type | Mandatory| Description | +| ------ | ------ | ---- | ---------------------------- | +| path | string | Yes | File path of the file system.| **Return value** - | Type | Description | - | --------------------- | -------------- | - | Promise<number> | Promise used to return the number of free bytes obtained.| +| Type | Description | +| --------------------- | -------------- | +| Promise<number> | Promise used to return the number of free bytes obtained.| **Example** @@ -52,10 +54,10 @@ Obtains the number of free bytes of the specified file system in asynchronous mo **Parameters** - | Name | Type | Mandatory| Description | - | -------- | --------------------------- | ---- | ---------------------------- | - | path | string | Yes | File path of the file system.| - | callback | AsyncCallback<number> | Yes | Callback invoked to return the number of free bytes obtained.| +| Name | Type | Mandatory| Description | +| -------- | --------------------------- | ---- | ---------------------------- | +| path | string | Yes | File path of the file system.| +| callback | AsyncCallback<number> | Yes | Callback invoked to return the number of free bytes obtained.| **Example** @@ -79,15 +81,15 @@ Obtains the total number of bytes of the specified file system in asynchronous m **Parameters** - | Name| Type | Mandatory| Description | - | ---- | ------ | ---- | ---------------------------- | - | path | string | Yes | File path of the file system.| +| Name| Type | Mandatory| Description | +| ---- | ------ | ---- | ---------------------------- | +| path | string | Yes | File path of the file system.| **Return value** - | Type | Description | - | --------------------- | ------------ | - | Promise<number> | Promise used to return the total number of bytes obtained.| +| Type | Description | +| --------------------- | ------------ | +| Promise<number> | Promise used to return the total number of bytes obtained.| **Example** @@ -110,10 +112,10 @@ Obtains the total number of bytes of the specified file system in asynchronous m **Parameters** - | Name | Type | Mandatory| Description | - | -------- | --------------------------- | ---- | ---------------------------- | - | path | string | Yes | File path of the file system.| - | callback | AsyncCallback<number> | Yes | Callback invoked to return the total number of bytes obtained. | +| Name | Type | Mandatory| Description | +| -------- | --------------------------- | ---- | ---------------------------- | +| path | string | Yes | File path of the file system.| +| callback | AsyncCallback<number> | Yes | Callback invoked to return the total number of bytes obtained. | **Example** diff --git a/en/application-dev/reference/apis/js-apis-stationary.md b/en/application-dev/reference/apis/js-apis-stationary.md index ceae25ac4c711e8dd3664520290fda7b897c9ae9..bd7c29020ed3d0b65501421c4b9547423986fdf9 100644 --- a/en/application-dev/reference/apis/js-apis-stationary.md +++ b/en/application-dev/reference/apis/js-apis-stationary.md @@ -5,6 +5,8 @@ The **stationary** module provides APIs to report the device status, including a > **NOTE** > > The initial APIs of this module are supported since API version 9. Newly added APIs will be marked with a superscript to indicate their earliest API version. +> +> This module does not support x86 emulators. ## Modules to Import diff --git a/en/application-dev/reference/apis/js-apis-system-bluetooth.md b/en/application-dev/reference/apis/js-apis-system-bluetooth.md index a8c77cd86a20c0401d01ce1e54a61c58c7aace17..c65aef6079cb393917d7f8a44ef9d62de5e49478 100644 --- a/en/application-dev/reference/apis/js-apis-system-bluetooth.md +++ b/en/application-dev/reference/apis/js-apis-system-bluetooth.md @@ -1,4 +1,4 @@ -# Bluetooth +# @system.bluetooth (Bluetooth) > **NOTE**
diff --git a/en/application-dev/reference/apis/js-apis-system-configuration.md b/en/application-dev/reference/apis/js-apis-system-configuration.md index dfeb0cf7db9c94d7831fe96cc19c6a6c09afd471..934ceb020412a18c64499de1cb0ef1593ace2e50 100644 --- a/en/application-dev/reference/apis/js-apis-system-configuration.md +++ b/en/application-dev/reference/apis/js-apis-system-configuration.md @@ -1,4 +1,4 @@ -# Application Configuration +# @system.configuration (Application Configuration) > **NOTE**
> - The APIs of this module are no longer maintained since API version 7. You are advised to use [`@ohos.i18n`](js-apis-i18n.md) and [`@ohos.intl`](js-apis-intl.md) instead. diff --git a/en/application-dev/reference/apis/js-apis-system-device.md b/en/application-dev/reference/apis/js-apis-system-device.md index bb56a0899e3f3646d6138e8acb21fbae0244070f..18c6c703d5e033c216fb47594fa8116fc581dfc6 100644 --- a/en/application-dev/reference/apis/js-apis-system-device.md +++ b/en/application-dev/reference/apis/js-apis-system-device.md @@ -3,13 +3,14 @@ The **device** module provides APIs for checking information about the current device. > **NOTE** +> > - The APIs of this module are no longer maintained since API version 6. It is recommended that you use [@ohos.deviceInfo](js-apis-device-info.md) instead. -> +> > - The initial APIs of this module are supported since API version 3. Newly added APIs will be marked with a superscript to indicate their earliest API version. ## Modules to Import -``` +```typescript import device from '@system.device'; ``` @@ -39,14 +40,14 @@ Obtains the device information. | -------- | -------- | -------- | | brand | string | Brand.| | manufacturer | string | Manufacturer.| -| model | string | Model. | +| model | string | Model.| | product | string | Product number.| | language4+ | string | System language.| | region4+ | string | System region.| | windowWidth | number | Window width.| | windowHeight | number | Window height.| | screenDensity4+ | number | Screen density.| -| screenShape4+ | string | Screen shape. The options are as follows:
- **rect**: rectangle screen
- **circle**: circle screen| +| screenShape4+ | string | Screen shape. The options are as follows:
- **rect**: rectangular screen
- **circle**: round screen| | apiVersion4+ | number | API version.| | releaseType4+ | string | Release type. The value includes both the release type and the API version, for example, Beta1.
Available release types are as follows:
- **Canary**: For the same API version, different canary releases are compatible with each other, but not compatible with those of the **beta** and **release** type.
- **Beta**: For the same API version, different beta releases are compatible with each other, but not compatible with those of the **release** type.
- **Release**: Releases of this type are compatible with the latest five API versions.| | deviceType4+ | string | Device type.| @@ -55,11 +56,11 @@ Obtains the device information. | Error Code| Description| | -------- | -------- | -| 200 | The returned result contains information that cannot be obtained.| +| 200 | Certain information cannot be obtained.| **Example** -``` +```typescript export default { getInfo() { device.getInfo({ diff --git a/en/application-dev/reference/apis/js-apis-system-fetch.md b/en/application-dev/reference/apis/js-apis-system-fetch.md index b9566ae178fb1bd4d4400eb998f3b12bea609845..529dc836e0132e77cae90c08f855d8ecb2c5fe8c 100644 --- a/en/application-dev/reference/apis/js-apis-system-fetch.md +++ b/en/application-dev/reference/apis/js-apis-system-fetch.md @@ -1,8 +1,9 @@ -# Data Request +# @system.fetch (Data Request) -> ![icon-note.gif](public_sys-resources/icon-note.gif) **NOTE**
+> **NOTE** +> > - The APIs of this module are no longer maintained since API version 6. You are advised to use [`@ohos.net.http`](js-apis-http.md) instead. -> +> > - The initial APIs of this module are supported since API version 3. Newly added APIs will be marked with a superscript to indicate their earliest API version. diff --git a/en/application-dev/reference/apis/js-apis-system-file.md b/en/application-dev/reference/apis/js-apis-system-file.md index 841f0b90056e377710f20336a3a5bf07ba58dde8..8483433af3dd490b8ae640b74d2e31378c45b6d2 100644 --- a/en/application-dev/reference/apis/js-apis-system-file.md +++ b/en/application-dev/reference/apis/js-apis-system-file.md @@ -1,4 +1,4 @@ -# File Storage +# @system.file (File Storage) > **NOTE**
> - The APIs of this module are no longer maintained since API version 6. You are advised to use [`@ohos.fileio`](js-apis-fileio.md). diff --git a/en/application-dev/reference/apis/js-apis-system-location.md b/en/application-dev/reference/apis/js-apis-system-location.md index f1ada5f0f2e7df99e3aa9889889d66eece5b2b3f..4f34c5ade9c9721f58ab188320291136e19eba73 100644 --- a/en/application-dev/reference/apis/js-apis-system-location.md +++ b/en/application-dev/reference/apis/js-apis-system-location.md @@ -1,4 +1,4 @@ -# Geographic Location +# @system.geolocation (Geographic Location) > **NOTE** > diff --git a/en/application-dev/reference/apis/js-apis-system-notification.md b/en/application-dev/reference/apis/js-apis-system-notification.md index 608bb4d3d3ee2ec6d4c48e7d9b7a4abd01e52c2e..91b35f9b29ce4a18b32e19741b14337322ab00bf 100644 --- a/en/application-dev/reference/apis/js-apis-system-notification.md +++ b/en/application-dev/reference/apis/js-apis-system-notification.md @@ -1,4 +1,4 @@ -# @system.notification +# @system.notification (Notification) > **NOTE** > - The APIs of this module are no longer maintained since API version 7. You are advised to use [`@ohos.notification`](js-apis-notification.md). @@ -9,7 +9,7 @@ ## Modules to Import -``` +```ts import notification from '@system.notification'; ``` @@ -59,9 +59,9 @@ export default { clickAction: { bundleName: 'com.example.testapp', abilityName: 'notificationDemo', - uri: '/path/to/notification', - }, + uri: '/path/to/notification' + } }); - }, + } } ``` diff --git a/en/application-dev/reference/apis/js-apis-system-prompt.md b/en/application-dev/reference/apis/js-apis-system-prompt.md index 5f33952a9d0d8401ae69f683f0cd4f1eb7dd43f4..831a8acabb7735d67f119370155e13d1bf929ce0 100644 --- a/en/application-dev/reference/apis/js-apis-system-prompt.md +++ b/en/application-dev/reference/apis/js-apis-system-prompt.md @@ -38,7 +38,7 @@ export default { showToast() { prompt.showToast({ message: 'Message Info', - duration: 2000, + duration: 2000 }); } } @@ -67,11 +67,11 @@ export default { showDialog() { prompt.showDialog({ title: 'Title Info', - message: 'Message Info', + message: 'Message Info', buttons: [ { text: 'button', - color: '#666666', + color: '#666666' }, ], success: function(data) { @@ -110,12 +110,12 @@ export default { buttons: [ { text: 'item1', - color: '#666666', + color: '#666666' }, { text: 'item2', - color: '#000000', - }, + color: '#000000' + }, ], success: function(tapIndex) { console.log('dialog success callback, click button : ' + data.tapIndex); diff --git a/en/application-dev/reference/apis/js-apis-system-request.md b/en/application-dev/reference/apis/js-apis-system-request.md index 82ba741d0964faa44066b5d43568b4fa25316f87..675a7fb9977fb5756d8a9a84296eebf0049011cb 100644 --- a/en/application-dev/reference/apis/js-apis-system-request.md +++ b/en/application-dev/reference/apis/js-apis-system-request.md @@ -3,8 +3,8 @@ The **system.request** module provides applications with basic upload and download capabilities. > **NOTE** +> - The APIs of this module are deprecated since API version 9. You are advised to use [@ohos.request](js-apis-request.md) instead. > -> - The APIs of this module are deprecated since API version 9. You are advised to use [`@ohos.request`](js-apis-request.md) instead. > - The initial APIs of this module are supported since API version 3. Newly added APIs will be marked with a superscript to indicate their earliest API version. @@ -25,9 +25,9 @@ Uploads a file. This API returns no value. **Parameters** - | Name| Type| Mandatory| Description| - | -------- | -------- | -------- | -------- | - | options | [UploadRequestOptions](#uploadrequestoptions) | Yes| Upload configurations.| +| Name| Type| Mandatory| Description| +| -------- | -------- | -------- | -------- | +| options | [UploadRequestOptions](#uploadrequestoptions) | Yes| Upload configurations.| **Example** @@ -61,27 +61,27 @@ Uploads a file. This API returns no value. **System capability**: SystemCapability.MiscServices.Upload - | Name| Type| Mandatory| Description| - | -------- | -------- | -------- | -------- | - | url | string | Yes| URL of the upload server.| - | data | Array<[RequestData](#requestdata)> | No| Form data in the request body.| - | files | Array<[RequestFile](#requestfile)> | Yes| List of files to upload, which is submitted through **multipart/form-data**.| - | header | Object | No| Request header.| - | method | string | No| Request method, which can be **'POST'** or **'PUT'**. The default value is **POST**.| - | success | Function | No| Called when API call is successful.| - | fail | Function | No| Called when API call has failed.| - | complete | Function | No| Called when API call is complete.| +| Name| Type| Mandatory| Description| +| -------- | -------- | -------- | -------- | +| url | string | Yes| URL of the upload server.| +| data | Array<[RequestData](#requestdata)> | No| Form data in the request body.| +| files | Array<[RequestFile](#requestfile)> | Yes| List of files to upload, which is submitted through **multipart/form-data**.| +| header | Object | No| Request header.| +| method | string | No| Request method, which can be **'POST'** or **'PUT'**. The default value is **POST**.| +| success | Function | No| Called when API call is successful.| +| fail | Function | No| Called when API call has failed.| +| complete | Function | No| Called when API call is complete.| **success parameter** - | Name| Type| Mandatory| Description| - | -------- | -------- | -------- | -------- | - | data | [UploadResponse](#uploadresponse) | Yes| Information returned when the upload task is successful.| +| Name| Type| Mandatory| Description| +| -------- | -------- | -------- | -------- | +| data | [UploadResponse](#uploadresponse) | Yes| Information returned when the upload task is successful.| **fail parameters** - | Name| Type| Mandatory| Description| - | -------- | -------- | -------- | -------- | - | data | any | Yes| Header information returned when the upload task fails.| - | code | number | Yes| HTTP status code returned when the upload task fails.| +| Name| Type| Mandatory| Description| +| -------- | -------- | -------- | -------- | +| data | any | Yes| Header information returned when the upload task fails.| +| code | number | Yes| HTTP status code returned when the upload task fails.| @@ -89,33 +89,33 @@ Uploads a file. This API returns no value. **System capability**: SystemCapability.MiscServices.Upload - | Name| Type| Description| - | -------- | -------- | -------- | - | code | number | HTTP status code returned by the server.| - | data | string | Content returned by the server. The value type is determined by the type in the returned headers.| - | headers | Object | Headers returned by the server.| +| Name| Type| Mandatory| Description| +| -------- | -------- | -------- | -------- | +| code | number | Yes| HTTP status code returned by the server.| +| data | string | Yes| Content returned by the server. The value type is determined by the type in the returned headers.| +| headers | Object | Yes| Headers returned by the server.| ## RequestFile **System capability**: SystemCapability.MiscServices.Upload - | Name| Type| Mandatory| Description| - | -------- | -------- | -------- | -------- | - | filename | string | No| File name in the header when **multipart** is used.| - | name | string | No| Name of a form item when **multipart** is used. The default value is **file**.| - | uri | string | Yes| Local path for storing files.| - | type | string | No| Type of the file content. By default, the type is obtained based on the extension of the file name or URI.| +| Name| Type| Mandatory| Description| +| -------- | -------- | -------- | -------- | +| filename | string | No| File name in the header when **multipart** is used.| +| name | string | No| Name of a form item when **multipart** is used. The default value is **file**.| +| uri | string | Yes| Local path for storing files.| +| type | string | No| Type of the file content. By default, the type is obtained based on the extension of the file name or URI.| ## RequestData **System capability**: SystemCapability.MiscServices.Upload - | Name| Type| Mandatory| Description| - | -------- | -------- | -------- | -------- | - | name | string | Yes| Name of the form element.| - | value | string | Yes| Value of the form element.| +| Name| Type| Mandatory| Description| +| -------- | -------- | -------- | -------- | +| name | string | Yes| Name of the form element.| +| value | string | Yes| Value of the form element.| @@ -129,9 +129,9 @@ Downloads a file. This API returns no value. **Parameters** - | Name| Type| Mandatory| Description| - | -------- | -------- | -------- | -------- | - | options | [DownloadRequestOptions](#downloadrequestoptions) | Yes| Download configurations.| +| Name| Type| Mandatory| Description| +| -------- | -------- | -------- | -------- | +| options | [DownloadRequestOptions](#downloadrequestoptions) | Yes| Download configurations.| **Example** @@ -164,34 +164,34 @@ Downloads a file. This API returns no value. **System capability**: SystemCapability.MiscServices.Download - | Name| Type| Mandatory| Description| - | -------- | -------- | -------- | -------- | - | url | string | Yes| Resource URL.| - | filename | string | No| Name of the file to download. The value is obtained from the current request or resource URL by default.| - | header | Object | No| Request header.| - | description | string | No| Download description. The default value is the file name.| - | success | Function | No| Called when API call is successful.| - | fail | Function | No| Called when API call has failed.| - | complete | Function | No| Called when API call is complete.| +| Name| Type| Mandatory| Description| +| -------- | -------- | -------- | -------- | +| url | string | Yes| Resource URL.| +| filename | string | No| Name of the file to download. The value is obtained from the current request or resource URL by default.| +| header | Object | No| Request header.| +| description | string | No| Download description. The default value is the file name.| +| success | Function | No| Called when API call is successful.| +| fail | Function | No| Called when API call has failed.| +| complete | Function | No| Called when API call is complete.| **success parameter** - | Name| Type| Mandatory| Description| - | -------- | -------- | -------- | -------- | - | data | [DownloadResponse](#downloadresponse) | Yes| Information returned when the download task is successful.| +| Name| Type| Mandatory| Description| +| -------- | -------- | -------- | -------- | +| data | [DownloadResponse](#downloadresponse) | Yes| Information returned when the download task is successful.| **fail parameters** - | Name| Type| Mandatory| Description| - | -------- | -------- | -------- | -------- | - | data | any | Yes| Header information returned when the download task fails.| - | code | number | Yes| HTTP status code returned when the download task fails.| +| Name| Type| Mandatory| Description| +| -------- | -------- | -------- | -------- | +| data | any | Yes| Header information returned when the download task fails.| +| code | number | Yes| HTTP status code returned when the download task fails.| ## DownloadResponse **System capability**: SystemCapability.MiscServices.Download - | Name| Type| Description| - | -------- | -------- | -------- | - | token | string | Download token, which is used to obtain the download status| +| Name| Type| Mandatory| Description| +| -------- | -------- | -------- | -------- | +| token | string | Yes| Download token, which is used to obtain the download status| ## request.onDownloadComplete @@ -204,9 +204,9 @@ Listens for download task status. This API returns no value. **Parameters** - | Name| Type| Mandatory| Description| - | -------- | -------- | -------- | -------- | - | options | [OnDownloadCompleteOptions](#ondownloadcompleteoptions) | Yes| Configurations of the download task.| +| Name| Type| Mandatory| Description| +| -------- | -------- | -------- | -------- | +| options | [OnDownloadCompleteOptions](#ondownloadcompleteoptions) | Yes| Configurations of the download task.| **Example** @@ -231,29 +231,29 @@ Listens for download task status. This API returns no value. **System capability**: SystemCapability.MiscServices.Download - | Name| Type| Mandatory| Description| - | -------- | -------- | -------- | -------- | - | token | string | Yes| Result token returned by the download API.| - | success | Function | No| Called when API call is successful.| - | fail | Function | No| Called when API call has failed.| - | complete | Function | No| Called when API call is complete.| +| Name| Type| Mandatory| Description| +| -------- | -------- | -------- | -------- | +| token | string | Yes| Result token returned by the download API.| +| success | Function | No| Called when API call is successful.| +| fail | Function | No| Called when API call has failed.| +| complete | Function | No| Called when API call is complete.| **success parameter** - | Name| Type| Mandatory| Description| - | -------- | -------- | -------- | -------- | - | data | [OnDownloadCompleteResponse](#ondownloadcompleteresponse) | Yes| Information returned when the download task is successful.| +| Name| Type| Mandatory| Description| +| -------- | -------- | -------- | -------- | +| data | [OnDownloadCompleteResponse](#ondownloadcompleteresponse) | Yes| Information returned when the download task is successful.| **fail parameters** - | Name| Type| Mandatory| Description| - | -------- | -------- | -------- | -------- | - | data | any | Yes| Header information returned when the download task fails.| - | code | number | Yes| HTTP status code returned when the download task fails.| +| Name| Type| Mandatory| Description| +| -------- | -------- | -------- | -------- | +| data | any | Yes| Header information returned when the download task fails.| +| code | number | Yes| HTTP status code returned when the download task fails.| ## OnDownloadCompleteResponse **System capability**: SystemCapability.MiscServices.Download - | Name| Type| Description| - | -------- | -------- | -------- | - | uri | string | URI of the download file.| +| Name| Type| Mandatory| Description| +| -------- | -------- | -------- | -------- | +| uri | string | Yes| URI of the download file.| diff --git a/en/application-dev/reference/apis/js-apis-system-router.md b/en/application-dev/reference/apis/js-apis-system-router.md index 6e45d6c012ee2ba4ff6664e1f68ffcd38f9d7570..5ca064cb6ca57c6b2b3449def902dcfd44be6029 100644 --- a/en/application-dev/reference/apis/js-apis-system-router.md +++ b/en/application-dev/reference/apis/js-apis-system-router.md @@ -127,7 +127,7 @@ Returns to the previous page or a specified page. | Name | Type | Mandatory | Description | | ------- | --------------------------------------- | ---- | ----------------------- | -| options | [BackRouterOptions](#backrouteroptions) | Yes | For details, see **BackRouterOptions**.| +| options | [BackRouterOptions](#backrouteroptions) | No | For details, see **BackRouterOptions**.| **Example** @@ -188,7 +188,7 @@ export default { > > In the example, the **uri** field indicates the page route, which is specified by the **pages** list in the **config.json** file. -## router.getParams +## router.getParams7+ getParams(): ParamsInterface @@ -397,6 +397,6 @@ Defines the **DisableAlertBeforeBackPage** parameters. ## ParamsInterface -| Name | Type | Description | -| ------------- | ------ | ------- | -| [key: string] | Object | List of routing parameters.| +| Name | Type| Description | +| ------------- | -------- | -------------- | +| [key: string] | object | List of routing parameters.| diff --git a/en/application-dev/reference/apis/js-apis-system-storage.md b/en/application-dev/reference/apis/js-apis-system-storage.md index a593a0972638bbbf376fb9bcb0693009b081e197..0549fac53863bd341d1ff0d1aa8d0e95a0a262c8 100644 --- a/en/application-dev/reference/apis/js-apis-system-storage.md +++ b/en/application-dev/reference/apis/js-apis-system-storage.md @@ -1,23 +1,22 @@ -# Data Storage +# @system.storage (Data Storage) -> **NOTE**
+> **NOTE** > -> - The APIs of this module are no longer maintained since API Version 6, and you are advised to use [`@ohos.data.storage`](js-apis-data-storage.md). From API Version 9, you are advised to use [`@ohos.data.preferences`](js-apis-data-preferences.md). +> - The APIs of this module are no longer maintained since API version 6, and you are advised to use [`@ohos.data.storage`](js-apis-data-storage.md). From API version 9, you are advised to use [`@ohos.data.preferences`](js-apis-data-preferences.md). > -> - The initial APIs of this module are supported since API version 3. Newly added APIs will be marked with a superscript to indicate their earliest API version. -> - The APIs of this module can be used only in the FA model. +> - The initial APIs of this module are supported since API version 3. Newly added APIs will be marked with a superscript to indicate their earliest API version. +> +> - The APIs of this module can be used only in the FA model. ## Modules to Import - ```js import storage from '@system.storage'; ``` - ## storage.get -get(Object): void +get(options: GetStorageOptions): void Reads the value stored in the cache based on the specified key. @@ -25,13 +24,9 @@ Reads the value stored in the cache based on the specified key. **Parameters** -| Name| Type| Mandatory| Description| -| -------- | -------- | -------- | -------- | -| key | string | Yes| Key of the data to read.| -| default | string | No| Default value returned when the **key** does not exist.| -| success | Function | No| Called to return the value obtained when **storage.get()** is successful.| -| fail | Function | No| Called when **storage.get()** fails. In the callback, **data** indicates the error information, and **code** indicates the error code.| -| complete | Function | No| Called when **storage.get()** is complete.| +| Name | Type | Mandatory| Description | +| ------- | -------------------- | ---- | ---------- | +| options | [GetStorageOptions](#getstorageoptions) | Yes | API configuration.| **Example** @@ -54,10 +49,9 @@ export default { } ``` - ## storage.set -set(Object): void +get(options: SetStorageOptions): void Sets the value in the cache based on the specified key. @@ -65,13 +59,9 @@ Sets the value in the cache based on the specified key. **Parameters** -| Name| Type| Mandatory| Description| -| -------- | -------- | -------- | -------- | -| key | string | Yes| Key of the data to set.| -| value | string | Yes| New value to set. The length must be less than 128 bytes.| -| success | Function | No| Called when **storage.set()** is successful.| -| fail | Function | No| Called when **storage.set()** fails. In the callback, **data** indicates the error information, and **code** indicates the error code.| -| complete | Function | No| Called when **storage.set()** is complete.| +| Name | Type | Mandatory| Description | +| ------- | ------------------- | ---- | ---------- | +| options | [SetStorageOptions](#setstorageoptions) | Yes | API configuration.| **Example** @@ -92,10 +82,9 @@ export default { } ``` - ## storage.clear -clear(Object): void +clear(options?: ClearStorageOptions): void Clears the key-value pairs from the cache. @@ -103,11 +92,9 @@ Clears the key-value pairs from the cache. **Parameters** -| Name| Type| Mandatory| Description| -| -------- | -------- | -------- | -------- | -| success | Function | No| Called when **storage.clear()** is successful.| -| fail | Function | No| Called when **storage.clear()** fails. In the callback, **data** indicates the error information, and **code** indicates the error code.| -| complete | Function | No| Called when **storage.clear()** is complete.| +| Name | Type | Mandatory| Description | +| ------- | ------------------------------------------- | ---- | -------------- | +| options | [ClearStorageOptions](#clearstorageoptions) | No | API configuration.| **Example** @@ -126,10 +113,9 @@ export default { } ``` - ## storage.delete -delete(Object): void +delete(options: DeleteStorageOptions): void Deletes the key-value pair based on the specified key. @@ -137,12 +123,9 @@ Deletes the key-value pair based on the specified key. **Parameters** -| Name| Type| Mandatory| Description| -| -------- | -------- | -------- | -------- | -| key | string | Yes| Key of the data to delete.| -| success | Function | No| Called when **storage.delete()** is successful.| -| fail | Function | No| Called when **storage.delete()** fails. In the callback, **data** indicates the error information, and **code** indicates the error code.| -| complete | Function | No| Called when **storage.delete()** is complete.| +| Name | Type | Mandatory| Description | +| ------- | --------------------------------------------- | ---- | -------------- | +| options | [DeleteStorageOptions](#deletestorageoptions) | Yes | API configuration.| **Example** @@ -161,3 +144,52 @@ export default { } } ``` + +## GetStorageOptions + +**System capability**: SystemCapability.DistributedDataManager.Preferences.Core + +| Name | Type | Mandatory| Description | +| -------- | ---------------- | ---- | ------------------- | +| key | string | Yes | Key of the target data. | +| default | string | No | Default value returned when the specified key does not exist. | +| success | (data: any) => void | No | Called to return the result when **storage.get()** is called successfully. **data** is the value indexed by the specified key. | +| fail | (data: string, code: number) => void | No | Called to return the result when **storage.get()** fails to be called. **data** is the error information, and **code** indicates the error code. | +| complete | () => void | No | Called when **storage.get()** is complete. | + + +## SetStorageOptions + +**System capability**: SystemCapability.DistributedDataManager.Preferences.Core + +| Name | Type | Mandatory| Description | +| -------- | ------------------- | ---- | -------------------- | +| key | string | Yes | Key of the data to set. | +| value | string | Yes | New value to set. The length must be less than 128 bytes. | +| success | () => void | No | Called when **storage.set()** is called successfully. | +| fail | (data: string, code: number) => void | No | Called to return the result when **storage.get()** fails to be called. **data** is the error information, and **code** indicates the error code. | +| complete | () => void | No | Called when **storage.get()** is complete. | + + +## ClearStorageOptions + +**System capability**: SystemCapability.DistributedDataManager.Preferences.Core + +| Name | Type | Mandatory| Description | +| -------- | --------------------- | ---- | -------------------- | +| success | () => void | No | Called when **storage.clear()** is called successfully. | +| fail | (data: string, code: number) => void | No | Called to return the result when **storage.clear()** fails to be called. **data** is the error information, and **code** indicates the error code. | +| complete | () => void | No | Called when **storage.clear()** is complete. | + + +## DeleteStorageOptions + +**System capability**: SystemCapability.DistributedDataManager.Preferences.Core + +| Name | Type | Mandatory| Description | +| -------- | -------------------- | ---- | ------------------ | +| key | string | Yes | Key of the data to delete. | +| success | () => void | No | Called when **storage.delete()** is called successfully. | +| fail | (data: string, code: number) => void | No | Called to return the result when **storage.delete()** fails to be called. **data** is the error information, and **code** indicates the error code. | +| complete | () => void | No | Called when **storage.delete()** is complete. | + diff --git a/en/application-dev/reference/apis/js-apis-taskpool.md b/en/application-dev/reference/apis/js-apis-taskpool.md new file mode 100644 index 0000000000000000000000000000000000000000..a441a39e8bb232fd589a0b03e473890ef6bbbc5f --- /dev/null +++ b/en/application-dev/reference/apis/js-apis-taskpool.md @@ -0,0 +1,243 @@ +# @ohos.taskpool (Using the Task Pool) + +The task pool provides a multi-thread running environment for applications. It helps reduce resource consumption and improve system performance. It also frees you from caring about the lifecycle of thread instances. You can use the **TaskPool** APIs to create background tasks and perform operations on them, for example, executing or canceling a task. Theoretically, you can create an unlimited number of tasks, but this is not recommended for memory considerations. In addition, you are not advised performing blocking operations in a task, especially indefinite blocking. Long-time blocking operations occupy worker threads and may block other task scheduling, adversely affecting your application performance. + +You can determine the execution sequence of tasks with the same priority. They are executed in the same sequence as you call the task execution APIs. The default task priority is **MEDIUM**. (The task priority mechanism is not supported yet.) + +If the number of tasks to be executed is greater than the number of worker threads in the task pool, the task pool scales out based on load balancing to minimize the waiting duration. Similarly, when the number of tasks to be executed falls below the number of worker threads, the task pool scales in to reduce the number of worker threads. (The load balancing mechanism is not supported yet.) + +The **TaskPool** APIs return error codes in numeric format. For details about the error codes, see [Utils Error Codes](../errorcodes/errorcode-utils.md). + +> **NOTE**
+> The initial APIs of this module are supported since API version 9. Newly added APIs will be marked with a superscript to indicate their earliest API version. + +## Modules to Import + +```js +import taskpool from '@ohos.taskpool'; +``` + +## Priority + +Enumerates the priorities available for created tasks. (This enum is not supported yet.) + +**System capability**: SystemCapability.Utils.Lang + +| Name| Value| Description| +| -------- | -------- | -------- | +| HIGH | 0 | The task has a high priority.| +| MEDIUM | 1 | The task has a medium priority.| +| LOW | 2 | The task has a low priority.| + +## Task + +Implements a task. Before using any of the following APIs, you must create a **Task** instance. + +### constructor + +constructor(func: Function, ...args: unknown[]) + +A constructor used to create a **Task** instance. + +**System capability**: SystemCapability.Utils.Lang + +**Parameters** + +| Name| Type | Mandatory| Description | +| ------ | --------- | ---- | -------------------------------------------------------------------- | +| func | Function | Yes | Function to be passed in for task execution. For details about the supported return value types of the function, see [Sequenceable Data Types](#sequenceable-data-types). | +| args | unknown[] | No | Arguments of the function. For details about the supported parameter types, see [Sequenceable Data Types](#sequenceable-data-types).| + +**Error codes** + +For details about the error codes, see [Utils Error Codes](../errorcodes/errorcode-utils.md). + +| ID| Error Message | +| -------- | --------------------------------------- | +| 10200014 | The function is not mark as concurrent. | + +**Example** + +```js +function func(args) { + "use concurrent" + console.log("func: " + args); + return args; +} +let task = new taskpool.Task(func, "this is my first Task"); +``` + +### Attributes + +**System capability**: SystemCapability.Utils.Lang + +| Name | Type | Readable| Writable| Description | +| --------- | --------- | ---- | ---- | ------------------------------------------------------------------------- | +| function | Function | Yes | Yes | Function to be passed in during task creation. For details about the supported return value types of the function, see [Sequenceable Data Types](#sequenceable-data-types). | +| arguments | unknown[] | Yes | Yes | Arguments of the function. For details about the supported parameter types, see [Sequenceable Data Types](#sequenceable-data-types).| + +## taskpool.execute + +execute(func: Function, ...args: unknown[]): Promise\ + +Executes a task in the task pool. You must pass in a function and arguments to execute the task, and the task executed in this mode cannot be canceled. + +**System capability**: SystemCapability.Utils.Lang + +**Parameters** + +| Name| Type | Mandatory| Description | +| ------ | --------- | ---- | ---------------------------------------------------------------------- | +| func | Function | Yes | Function used to execute the task. For details about the supported return value types of the function, see [Sequenceable Data Types](#sequenceable-data-types). | +| args | unknown[] | No | Arguments of the function. For details about the supported parameter types, see [Sequenceable Data Types](#sequenceable-data-types).| + +**Return value** + +| Type | Description | +| ----------------- | ------------------------------------ | +| Promise\ | Promise used to return the result.| + +**Error codes** + +For details about the error codes, see [Utils Error Codes](../errorcodes/errorcode-utils.md). + +| ID| Error Message | +| -------- | ----------------------------------------- | +| 10200003 | Worker initialization failure. | +| 10200006 | Serializing an uncaught exception failed. | +| 10200014 | The function is not mark as concurrent. | + +**Example** + +```js +function func(args) { + "use concurrent" + console.log("func: " + args); + return args; +} + +let value = taskpool.execute(func, 100); +``` + +## taskpool.execute + +execute(task: Task, priority?: Priority): Promise\ + +Executes a task in the task pool. You must pass in a created task, and the task executed in this mode can be canceled. + +**System capability**: SystemCapability.Utils.Lang + +**Parameters** + +| Name | Type | Mandatory| Description | +| -------- | --------------------- | ---- | ------------------------------------ | +| task | [Task](#task) | Yes | Task to be executed. | +| priority | [Priority](#priority) | No | Priority of the task (not supported yet).| + +**Return value** + +| Type | Description | +| ---------------- | ------------------------------ | +| Promise\ | Promise used to return the result.| + +**Error codes** + +For details about the error codes, see [Utils Error Codes](../errorcodes/errorcode-utils.md). + +| ID| Error Message | +| -------- | ----------------------------------------- | +| 10200003 | Worker initialization failure. | +| 10200006 | Serializing an uncaught exception failed. | +| 10200014 | The function is not mark as concurrent. | + +**Example** + +```js +function func(args) { + "use concurrent" + console.log("func: " + args); + return args; +} +let task = new taskpool.Task(func, "this is my first Task"); +let value = taskpool.execute(task); +``` + +## taskpool.cancel + +cancel(task: Task): void + +Cancels a task in the task pool. + +**System capability**: SystemCapability.Utils.Lang + +**Parameters** + +| Name| Type | Mandatory| Description | +| ------ | ------------- | ---- | -------------------- | +| task | [Task](#task) | Yes | Task to cancel.| + +**Error codes** + +For details about the error codes, see [Utils Error Codes](../errorcodes/errorcode-utils.md). + +| ID| Error Message | +| -------- | ------------------------- | +| 10200015 | If the task is not exist. | +| 10200016 | If the task is running. | + +**Example** + +```js +function func(args) { + "use concurrent" + console.log("func: " + args); + return args; +} +let task = new taskpool.Task(func, "this is first Task"); +let value = taskpool.execute(task); +taskpool.cancel(task); +``` + +## Additional Information + +### Sequenceable Data Types +The following sequenceable data types are supported: All Primitive Type (excluding symbol), Date, String, RegExp, Array, Map, Set, Object, ArrayBuffer, and TypedArray. + +### Precautions +A task in the task pool can reference only variables passed in by input parameters or imported variables. It does not support closure variables. + +```js +// 1. Reference a variable passed in by the input parameter. +function func(args) { + "use concurrent" + console.log("func: " + args); + return args; +} + +let task = new taskpool.Task(func, "create task, then execute"); +let val1 = taskpool.execute(task); + +let val2 = taskpool.execute(func, "execute task by func"); +``` + +```js +// 2. Reference an imported variable. + +// b.ts +export var c = 2000; + +// a.ts +import { c } from './b' + +function test(a) { + "use concurrent" + console.log(a); + console.log(c); + return a; +} + +let task = new taskpool.Task(test, "create task, then execute"); +let val1 = taskpool.execute(task); + +let val2 = taskpool.execute(test, "execute task by func"); +``` diff --git a/en/application-dev/reference/apis/js-apis-uitest.md b/en/application-dev/reference/apis/js-apis-uitest.md index 8c229cc5ec06e1bef82452420848b8175a02c22c..d738e7b69170bc84f17286594cfd98b3ff908249 100644 --- a/en/application-dev/reference/apis/js-apis-uitest.md +++ b/en/application-dev/reference/apis/js-apis-uitest.md @@ -31,7 +31,7 @@ Enumerates the match patterns supported for component attributes. | Name | Value | Description | | ----------- | ---- | -------------- | -| EQUALS | 0 | Equal to the given value. | +| EQUALS | 0 | Equals the given value. | | CONTAINS | 1 | Contains the given value. | | STARTS_WITH | 2 | Starts with the given value.| | ENDS_WITH | 3 | Ends with the given value.| @@ -70,12 +70,12 @@ Provides bounds information of a component. **System capability**: SystemCapability.Test.UiTest -| Name | Type | Readable| Writable| Description | -| ------- | ------ | ---- | ---- | ------------------------- | -| leftX | number | Yes | No | X-coordinate of the upper left corner of the component bounds.| -| topY | number | Yes | No | Y-coordinate of the upper left corner of the component bounds.| -| rightX | number | Yes | No | X-coordinate of the lower right corner of the component bounds.| -| bottomY | number | Yes | No | Y-coordinate of the lower right corner of the component bounds.| +| Name | Type | Readable| Writable| Description | +| ------ | ------ | ---- | ---- | ------------------------- | +| left | number | Yes | No | X-coordinate of the upper left corner of the component bounds.| +| top | number | Yes | No | Y-coordinate of the upper left corner of the component bounds.| +| right | number | Yes | No | X-coordinate of the lower right corner of the component bounds.| +| bottom | number | Yes | No | Y-coordinate of the lower right corner of the component bounds.| ## WindowMode9+ @@ -219,7 +219,7 @@ Specifies the clickable status attribute of the target component. | Name| Type | Mandatory| Description | | ------ | ------- | ---- | ------------------------------------------------------------ | -| b | boolean | No | Clickable status of the target component.
**true**: clickable.
**false**: not clickable.
Default value: **true**| +| b | boolean | No | Clickable status of the target component.
**true**: clickable.
**false**: not clickable.
Default value: **true** | **Return value** @@ -245,7 +245,7 @@ Specifies the long-clickable status attribute of the target component. | Name| Type | Mandatory| Description | | ------ | ------- | ---- | ------------------------------------------------------------ | -| b | boolean | No | Long-clickable status of the target component.
**true**: long-clickable.
**false**: not long-clickable.
Default value: **true**| +| b | boolean | No | Long-clickable status of the target component.
**true**: long-clickable.
**false**: not long-clickable.
Default value: **true** | **Return value** @@ -272,7 +272,7 @@ Specifies the scrollable status attribute of the target component. | Name| Type | Mandatory| Description | | ------ | ------- | ---- | ----------------------------------------------------------- | -| b | boolean | No | Scrollable status of the target component.
**true**: scrollable.
**false**: not scrollable.
Default value: **true**| +| b | boolean | No | Scrollable status of the target component.
**true**: scrollable.
**false**: not scrollable.
Default value: **true** | **Return value** @@ -298,7 +298,7 @@ Specifies the enabled status attribute of the target component. | Name| Type | Mandatory| Description | | ------ | ------- | ---- | --------------------------------------------------------- | -| b | boolean | No | Enabled status of the target component.
**true**: enabled.
**false**: disabled.
Default value: **true**| +| b | boolean | No | Enabled status of the target component.
**true**: enabled.
**false**: not enabled.
Default value: **true** | **Return value** @@ -324,7 +324,7 @@ Specifies the focused status attribute of the target component. | Name| Type | Mandatory| Description | | ------ | ------- | ---- | ----------------------------------------------------- | -| b | boolean | No | Focused status of the target component.
**true**: focused.
**false**: not focused.
Default value: **true**| +| b | boolean | No | Focused status of the target component.
**true**: focused.
**false**: not focused.
Default value: **true** | **Return value** @@ -350,7 +350,7 @@ Specifies the selected status attribute of the target component. | Name| Type | Mandatory| Description | | ------ | ------- | ---- | ------------------------------------------------------------ | -| b | boolean | No | Selected status of the target component.
**true**: selected.
**false**: not selected.
Default value: **true**| +| b | boolean | No | Selected status of the target component.
**true**: selected.
**false**: not selected.
Default value: **true** | **Return value** @@ -376,7 +376,7 @@ Specifies the checked status attribute of the target component. | Name| Type | Mandatory| Description | | ------ | ------- | ---- | ------------------------------------------------------------ | -| b | boolean | No | Checked status of the target component.
**true**: checked.
**false**: not checked.
Default value: **false**| +| b | boolean | No | Checked status of the target component.
**true**: checked.
**false**: not checked.
Default value: **false** | **Return value** @@ -402,7 +402,7 @@ Specifies the checkable status attribute of the target component. | Name| Type | Mandatory| Description | | ------ | ------- | ---- | ------------------------------------------------------------ | -| b | boolean | No | Checkable status of the target component.
**true**: checkable.
**false**: not checkable.
Default value: **false**| +| b | boolean | No | Checkable status of the target component.
**true**: checkable.
**false**: not checkable.
Default value: **false** | **Return value** @@ -2788,7 +2788,7 @@ This API is deprecated since API version 9. You are advised to use [clickable**true**: clickable.
**false**: not clickable.
Default value: **true**| +| b | boolean | No | Clickable status of the target component.
**true**: clickable.
**false**: not clickable.
Default value: **true** | **Return value** @@ -2817,7 +2817,7 @@ This API is deprecated since API version 9. You are advised to use [scrollable**true**: scrollable.
**false**: not scrollable.
Default value: **true**| +| b | boolean | No | Scrollable status of the target component.
**true**: scrollable.
**false**: not scrollable.
Default value: **true** | **Return value** @@ -2845,7 +2845,7 @@ This API is deprecated since API version 9. You are advised to use [enabled | Name| Type | Mandatory| Description | | ------ | ------- | ---- | --------------------------------------------------------- | -| b | boolean | No | Enabled status of the target component.
**true**: enabled.
**false**: not disabled.
Default value: **true**| +| b | boolean | No | Enabled status of the target component.
**true**: enabled.
**false**: not enabled.
Default value: **true** | **Return value** @@ -2873,7 +2873,7 @@ This API is deprecated since API version 9. You are advised to use [focused | Name| Type | Mandatory| Description | | ------ | ------- | ---- | ----------------------------------------------------- | -| b | boolean | No | Focused status of the target component.
**true**: focused.
**false**: not focused.
Default value: **true**| +| b | boolean | No | Focused status of the target component.
**true**: focused.
**false**: not focused.
Default value: **true** | **Return value** @@ -2901,7 +2901,7 @@ This API is deprecated since API version 9. You are advised to use [selected**true**: selected.
**false**: not selected.
Default value: **true**| +| b | boolean | No | Selected status of the target component.
**true**: selected.
**false**: not selected.
Default value: **true** | **Return value** diff --git a/en/application-dev/reference/apis/js-apis-uri.md b/en/application-dev/reference/apis/js-apis-uri.md index 00bf51656958f8ca58b926cb54ad9fd1d82a8e53..b3fb6f7a3ea58550cfa93a514591715952c52ad6 100644 --- a/en/application-dev/reference/apis/js-apis-uri.md +++ b/en/application-dev/reference/apis/js-apis-uri.md @@ -35,7 +35,7 @@ Naming format: A standard URI consists of the following parts: [scheme:]scheme-specific-part[#fragment] -- Scheme: scheme component, which is mandatory. Example values: **http**, **https**, **ftp**, **datashare**, and **dataability**. +- scheme: scheme component. Set this parameter as required. Example values: **http**, **https**, **ftp**, **datashare**, and **dataability**. - scheme-specific-part: specific part of the URI decoding scheme. The value consists of [//][authority][path][?query]. Set this parameter as required. - authority: decoding authority component of the URI. The value consists of [userinfo@]host[:port]. Set this parameter as required. - userinfo: user information. Set this parameter as required. @@ -226,7 +226,9 @@ Checks whether this URI is an absolute URI (whether the scheme component is defi ```js const uriInstance = new uri.URI('https://username:password@www.qwer.com:8080?query=pppppp'); -uriInstance.checkIsAbsolute(); +console.log(uriInstance.checkIsAbsolute()); // true +const uriInstance1 = new uri.URI('xxx.com/suppliers.htm'); +console.log(uriInstance1.checkIsAbsolute()); // false ``` @@ -248,6 +250,7 @@ Normalizes the path of this URI. ```js const uriInstance = new uri.URI('https://username:password@www.qwer.com:8080/path/path1/../path2/./path3?query=pppppp'); +console.log(uriInstance.path); // /path/path1/../path2/./path3 let uriInstance1 = uriInstance.normalize(); -uriInstance1.path; +console.log(uriInstance1.path); // /path/path2/path3 ``` diff --git a/en/application-dev/reference/apis/js-apis-url.md b/en/application-dev/reference/apis/js-apis-url.md index 8a972e121d32b041e1ff7f8319c4e26261afb2f5..d4d453a59685a23f228ca2d4bc7e56ac0608a8e8 100755 --- a/en/application-dev/reference/apis/js-apis-url.md +++ b/en/application-dev/reference/apis/js-apis-url.md @@ -87,7 +87,7 @@ paramsObject.delete('fod'); getAll(name: string): string[] -Obtains all the key-value pairs based on the specified name. +Obtains all the values based on the specified key. **System capability**: SystemCapability.Utils.Lang @@ -95,13 +95,13 @@ Obtains all the key-value pairs based on the specified name. | Name| Type| Mandatory| Description| | -------- | -------- | -------- | -------- | -| name | string | Yes| Key specified to obtain all key-value pairs.| +| name | string | Yes| Target key.| **Return value** | Type| Description| | -------- | -------- | -| string[] | Key-value pairs obtained.| +| string[] | All the values obtained.| **Example** @@ -432,7 +432,7 @@ A no-argument constructor used to create a URL. It returns a **URL** object afte **System capability**: SystemCapability.Utils.Lang ### parseURL9+ - + static parseURL(url : string, base?: string | URL): URL Parses a URL. @@ -514,7 +514,7 @@ A constructor used to create a **URLSearchParams** instance. > **NOTE** > -> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [URLParams9+](#constructor9) instead. +> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [URLParams.constructor9+](#constructor9) instead. **System capability**: SystemCapability.Utils.Lang @@ -542,7 +542,7 @@ Appends a key-value pair into the query string. > **NOTE** > -> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [URLParams9+.append9+](#append9) instead. +> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [URLParams.append9+](#append9) instead. **System capability**: SystemCapability.Utils.Lang @@ -569,7 +569,7 @@ Deletes key-value pairs of the specified key. > **NOTE** > -> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [URLParams9+.delete9+](#delete9) instead. +> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [URLParams.delete9+](#delete9) instead. **System capability**: SystemCapability.Utils.Lang @@ -595,7 +595,7 @@ Obtains all the key-value pairs based on the specified key. > **NOTE** > -> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [URLParams9+.getAll9+](#getall9) instead. +> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [URLParams.getAll9+](#getall9) instead. **System capability**: SystemCapability.Utils.Lang @@ -603,7 +603,7 @@ Obtains all the key-value pairs based on the specified key. | Name| Type| Mandatory| Description| | -------- | -------- | -------- | -------- | -| name | string | Yes| Key specified to obtain all key-value pairs.| +| name | string | Yes| Target key.| **Return value** @@ -628,7 +628,7 @@ Obtains an ES6 iterator. Each item of the iterator is a JavaScript array, and th > **NOTE** > -> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [URLParams9+.entries9+](#entries9) instead. +> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [URLParams.entries9+](#entries9) instead. **System capability**: SystemCapability.Utils.Lang @@ -656,7 +656,7 @@ Traverses the key-value pairs in the **URLSearchParams** instance by using a cal > **NOTE** > -> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [URLParams9+.forEach9+](#foreach9) instead. +> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [URLParams.forEach9+](#foreach9) instead. **System capability**: SystemCapability.Utils.Lang @@ -693,7 +693,7 @@ Obtains the value of the first key-value pair based on the specified key. > **NOTE** > -> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [URLParams9+.get9+](#get9) instead. +> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [URLParams.get9+](#get9) instead. **System capability**: SystemCapability.Utils.Lang @@ -727,7 +727,7 @@ Checks whether a key has a value. > **NOTE** > -> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [URLParams9+.has9+](#has9) instead. +> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [URLParams.has9+](#has9) instead. **System capability**: SystemCapability.Utils.Lang @@ -760,7 +760,7 @@ Sets the value for a key. If key-value pairs matching the specified key exist, t > **NOTE** > -> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [URLParams9+.set9+](#set9) instead. +> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [URLParams.set9+](#set9) instead. **System capability**: SystemCapability.Utils.Lang @@ -788,7 +788,7 @@ Sorts all key-value pairs contained in this object based on the Unicode code poi > **NOTE** > -> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [URLParams9+.sort9+](#sort9) instead. +> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [URLParams.sort9+](#sort9) instead. **System capability**: SystemCapability.Utils.Lang @@ -809,7 +809,7 @@ Obtains an ES6 iterator that contains the keys of all the key-value pairs. > **NOTE** > -> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [URLParams9+.keys9+](#keys9) instead. +> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [URLParams.keys9+](#keys9) instead. **System capability**: SystemCapability.Utils.Lang @@ -837,7 +837,7 @@ Obtains an ES6 iterator that contains the values of all the key-value pairs. > **NOTE** > -> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [URLParams9+.values9+](#values9) instead. +> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [URLParams.values9+](#values9) instead. **System capability**: SystemCapability.Utils.Lang @@ -865,7 +865,7 @@ Obtains an ES6 iterator. Each item of the iterator is a JavaScript array, and th > **NOTE** > -> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [Symbol.iterator]9+](#symboliterator9) instead. +> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [URLParams.[Symbol.iterator]9+](#symboliterator9) instead. **System capability**: SystemCapability.Utils.Lang @@ -892,7 +892,7 @@ Obtains search parameters that are serialized as a string and, if necessary, per > **NOTE** > -> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [tostring9+](#tostring9) instead. +> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [URLParams.tostring9+](#tostring9) instead. **System capability**: SystemCapability.Utils.Lang diff --git a/en/application-dev/reference/apis/js-apis-usb-deprecated.md b/en/application-dev/reference/apis/js-apis-usb-deprecated.md index 68a127a08bdfd1df0ca558866dc3cde577e2b25a..95eb105b0a25fc824b4f7762a73e035283097ddc 100644 --- a/en/application-dev/reference/apis/js-apis-usb-deprecated.md +++ b/en/application-dev/reference/apis/js-apis-usb-deprecated.md @@ -43,7 +43,7 @@ console.log(`devicesList = ${JSON.stringify(devicesList)}`); vendorId: 7531, productId: 2, clazz: 9, - subclass: 0, + subClass: 0, protocol: 1, devAddress: 1, busNum: 1, @@ -60,7 +60,7 @@ console.log(`devicesList = ${JSON.stringify(devicesList)}`); id: 0, protocol: 0, clazz: 9, - subclass: 0, + subClass: 0, alternateSetting: 0, name: "1-1", endpoints: [ @@ -171,7 +171,7 @@ usb.requestRight(devicesName).then((ret) => { ## usb.claimInterface -claimInterface(pipe: USBDevicePipe, iface: USBInterface, force?: boolean): number +claimInterface(pipe: USBDevicePipe, iface: USBInterface, force ?: boolean): number Claims a USB interface. @@ -348,7 +348,7 @@ let ret = usb.getFileDescriptor(devicepipe); ## usb.controlTransfer -controlTransfer(pipe: USBDevicePipe, controlparam: USBControlParams, timeout?: number): Promise<number> +controlTransfer(pipe: USBDevicePipe, controlparam: USBControlParams, timeout ?: number): Promise<number> Performs control transfer. @@ -380,7 +380,7 @@ usb.controlTransfer(devicepipe, USBControlParams).then((ret) => { ## usb.bulkTransfer -bulkTransfer(pipe: USBDevicePipe, endpoint: USBEndpoint, buffer: Uint8Array, timeout?: number): Promise<number> +bulkTransfer(pipe: USBDevicePipe, endpoint: USBEndpoint, buffer: Uint8Array, timeout ?: number): Promise<number> Performs bulk transfer. diff --git a/en/application-dev/reference/apis/js-apis-usb.md b/en/application-dev/reference/apis/js-apis-usb.md index a0a0dc40c837d45da72209b5faa6a57ed0b95909..521fef517823a160e22a17b752fdc62443eeba7a 100644 --- a/en/application-dev/reference/apis/js-apis-usb.md +++ b/en/application-dev/reference/apis/js-apis-usb.md @@ -42,7 +42,7 @@ console.log(`devicesList = ${JSON.stringify(devicesList)}`); vendorId: 7531, productId: 2, clazz: 9, - subclass: 0, + subClass: 0, protocol: 1, devAddress: 1, busNum: 1, @@ -59,7 +59,7 @@ console.log(`devicesList = ${JSON.stringify(devicesList)}`); id: 0, protocol: 0, clazz: 9, - subclass: 0, + subClass: 0, alternateSetting: 0, name: "1-1", endpoints: [ @@ -252,7 +252,7 @@ if (usb.addRight(bundleName, devicesName) { ## usb.claimInterface -claimInterface(pipe: USBDevicePipe, iface: USBInterface, force?: boolean): number +claimInterface(pipe: USBDevicePipe, iface: USBInterface, force ?: boolean): number Claims a USB interface. @@ -429,7 +429,7 @@ let ret = usb.getFileDescriptor(devicepipe); ## usb.controlTransfer -controlTransfer(pipe: USBDevicePipe, controlparam: USBControlParams, timeout?: number): Promise<number> +controlTransfer(pipe: USBDevicePipe, controlparam: USBControlParams, timeout ?: number): Promise<number> Performs control transfer. @@ -461,7 +461,7 @@ usb.controlTransfer(devicepipe, USBControlParams).then((ret) => { ## usb.bulkTransfer -bulkTransfer(pipe: USBDevicePipe, endpoint: USBEndpoint, buffer: Uint8Array, timeout?: number): Promise<number> +bulkTransfer(pipe: USBDevicePipe, endpoint: USBEndpoint, buffer: Uint8Array, timeout ?: number): Promise<number> Performs bulk transfer. diff --git a/en/application-dev/reference/apis/js-apis-util.md b/en/application-dev/reference/apis/js-apis-util.md index f4193680d4d0732a38ab9564bbd67428c7a3497a..21ac9df11df7cabdf260edf97fc5fe17f83871b8 100755 --- a/en/application-dev/reference/apis/js-apis-util.md +++ b/en/application-dev/reference/apis/js-apis-util.md @@ -497,6 +497,7 @@ Decodes the input content. | -------- | -------- | -------- | -------- | -------- | | encoding | string | Yes| No| Encoding format. The default format is **utf-8**.| + ### constructor constructor() @@ -1456,7 +1457,7 @@ Performs subsequent operations after a value is removed. | Name | Type | Mandatory| Description | | -------- | ------- | ---- | ------------------------------------------------------------ | -| isEvict | boolean | Yes | Whether the cache capacity is insufficient. If the value is **true**, this method is called due to insufficient capacity. | +| isEvict | boolean | Yes | Whether the cache capacity is insufficient. If the value is **true**, this API is called due to insufficient capacity. | | key | K | Yes | Key removed. | | value | V | Yes | Value removed. | | newValue | V | Yes | New value for the key if the **put()** method is called and the key to be added already exists. In other cases, this parameter is left blank.| @@ -3358,7 +3359,7 @@ A constructor used to create a **LruBuffer** instance. The default capacity of t > **NOTE** > -> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [constructor9+](#constructor9) instead. +> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [LRUCache.constructor9+](#constructor9-3) instead. **System capability**: SystemCapability.Utils.Lang @@ -3382,7 +3383,7 @@ Changes the **LruBuffer** capacity. If the new capacity is less than or equal to > **NOTE** > -> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [updateCapacity9+](#updatecapacity9) instead. +> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [LRUCache.updateCapacity9+](#updatecapacity9) instead. **System capability**: SystemCapability.Utils.Lang @@ -3407,7 +3408,7 @@ Obtains the string representation of this **LruBuffer** object. > **NOTE** > -> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [toString9+](#tostring9) instead. +> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [LRUCache.toString9+](#tostring9) instead. **System capability**: SystemCapability.Utils.Lang @@ -3435,7 +3436,7 @@ Obtains the capacity of this buffer. > **NOTE** > -> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [getCapacity9+](#getcapacity9) instead. +> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [LRUCache.getCapacity9+](#getcapacity9) instead. **System capability**: SystemCapability.Utils.Lang @@ -3459,7 +3460,7 @@ Clears key-value pairs from this buffer. The **afterRemoval()** method will be c > **NOTE** > -> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [clear9+](#clear9) instead. +> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [LRUCache.clear9+](#clear9) instead. **System capability**: SystemCapability.Utils.Lang @@ -3480,7 +3481,7 @@ Obtains the number of return values for **createDefault()**. > **NOTE** > -> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [getCreateCount9+](#getcreatecount9) instead. +> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [LRUCache.getCreateCount9+](#getcreatecount9) instead. **System capability**: SystemCapability.Utils.Lang @@ -3506,7 +3507,7 @@ Obtains the number of times that the queried values are mismatched. > **NOTE** > -> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [getMissCount9+](#getmisscount9) instead. +> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [LRUCache.getMissCount9+](#getmisscount9) instead. **System capability**: SystemCapability.Utils.Lang @@ -3533,7 +3534,7 @@ Obtains the number of removals from this buffer. > **NOTE** > -> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [getRemovalCount9+](#getremovalcount9) instead. +> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [LRUCache.getRemovalCount9+](#getremovalcount9) instead. **System capability**: SystemCapability.Utils.Lang @@ -3561,7 +3562,7 @@ Obtains the number of times that the queried values are matched. > **NOTE** > -> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [getMatchCount9+](#getmatchcount9) instead. +> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [LRUCache.getMatchCount9+](#getmatchcount9) instead. **System capability**: SystemCapability.Utils.Lang @@ -3588,7 +3589,7 @@ Obtains the number of additions to this buffer. > **NOTE** > -> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [getPutCount9+](#getputcount9) instead. +> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [LRUCache.getPutCount9+](#getputcount9) instead. **System capability**: SystemCapability.Utils.Lang @@ -3614,7 +3615,7 @@ Checks whether this buffer is empty. > **NOTE** > -> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [isEmpty9+](#isempty9) instead. +> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [LRUCache.isEmpty9+](#isempty9) instead. **System capability**: SystemCapability.Utils.Lang @@ -3640,7 +3641,7 @@ Obtains the value of the specified key. > **NOTE** > -> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [get9+](#get9) instead. +> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [LRUCache.get9+](#get9) instead. **System capability**: SystemCapability.Utils.Lang @@ -3672,7 +3673,7 @@ Adds a key-value pair to this buffer. > **NOTE** > -> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [put9+](#put9) instead. +> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [LRUCache.put9+](#put9) instead. **System capability**: SystemCapability.Utils.Lang @@ -3704,7 +3705,7 @@ Obtains all values in this buffer, listed from the most to the least recently ac > **NOTE** > -> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [values9+](#values9) instead. +> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [LRUCache.values9+](#values9) instead. **System capability**: SystemCapability.Utils.Lang @@ -3732,7 +3733,7 @@ Obtains all keys in this buffer, listed from the most to the least recently acce > **NOTE** > -> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [keys9+](#keys9) instead. +> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [LRUCache.keys9+](#keys9) instead. **System capability**: SystemCapability.Utils.Lang @@ -3743,6 +3744,7 @@ Obtains all keys in this buffer, listed from the most to the least recently acce | K [] | All keys in the buffer, listed from the most to the least recently accessed.| **Example** + ```js let pro = new util.LruBuffer(); pro.put(2,10); @@ -3757,7 +3759,7 @@ Removes the specified key and its value from this buffer. > **NOTE** > -> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [remove9+](#remove9) instead. +> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [LRUCache.remove9+](#remove9) instead. **System capability**: SystemCapability.Utils.Lang @@ -3788,7 +3790,7 @@ Performs subsequent operations after a value is removed. > **NOTE** > -> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [afterRemoval9+](#afterremoval9) instead. +> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [LRUCache.afterRemoval9+](#afterremoval9) instead. **System capability**: SystemCapability.Utils.Lang @@ -3796,7 +3798,7 @@ Performs subsequent operations after a value is removed. | Name| Type| Mandatory| Description| | -------- | -------- | -------- | -------- | -| isEvict | boolean | Yes| Whether the buffer capacity is insufficient. If the value is **true**, this method is called due to insufficient capacity.| +| isEvict | boolean | Yes| Whether the buffer capacity is insufficient. If the value is **true**, this API is called due to insufficient capacity.| | key | K | Yes| Key removed.| | value | V | Yes| Value removed.| | newValue | V | Yes| New value for the key if the **put()** method is called and the key to be added already exists. In other cases, this parameter is left blank.| @@ -3832,7 +3834,7 @@ Checks whether this buffer contains the specified key. > **NOTE** > -> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [contains9+](#contains9) instead. +> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [LRUCache.contains9+](#contains9) instead. **System capability**: SystemCapability.Utils.Lang @@ -3864,7 +3866,7 @@ Creates a value if the value of the specified key is not available. > **NOTE** > -> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [createDefault9+](#createdefault9) instead. +> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [LRUCache.createDefault9+](#createdefault9) instead. **System capability**: SystemCapability.Utils.Lang @@ -3895,7 +3897,7 @@ Obtains a new iterator object that contains all key-value pairs in this object. > **NOTE** > -> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [entries9+](#entries9) instead. +> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [LRUCache.entries9+](#entries9) instead. **System capability**: SystemCapability.Utils.Lang @@ -3921,7 +3923,7 @@ Obtains a two-dimensional array in key-value pairs. > **NOTE** > -> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [Symbol.iterator9+](#symboliterator9) instead. +> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [LRUCache.Symbol.iterator9+](#symboliterator9) instead. **System capability**: SystemCapability.Utils.Lang @@ -3953,7 +3955,7 @@ A constructor used to create a **Scope** object with the specified upper and low > **NOTE** > -> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [constructor9+](#constructor9) instead. +> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [ScopeHelper.constructor9+](#constructor9-4) instead. **System capability**: SystemCapability.Utils.Lang @@ -3980,7 +3982,7 @@ Obtains a string representation that contains this **Scope**. > **NOTE** > -> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [toString9+](#tostring9) instead. +> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [ScopeHelper.toString9+](#tostring9-1) instead. **System capability**: SystemCapability.Utils.Lang @@ -4007,7 +4009,7 @@ Obtains the intersection of this **Scope** and the given **Scope**. > **NOTE** > -> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [intersect9+](#intersect9) instead. +> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [ScopeHelper.intersect9+](#intersect9) instead. **System capability**: SystemCapability.Utils.Lang @@ -4043,7 +4045,7 @@ Obtains the intersection of this **Scope** and the given lower and upper limits. > **NOTE** > -> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [intersect9+](#intersect9) instead. +> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [ScopeHelper.intersect9+](#intersect9-1) instead. **System capability**: SystemCapability.Utils.Lang @@ -4079,7 +4081,7 @@ Obtains the upper limit of this **Scope**. > **NOTE** > -> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [getUpper9+](#getupper9) instead. +> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [ScopeHelper.getUpper9+](#getupper9) instead. **System capability**: SystemCapability.Utils.Lang @@ -4106,7 +4108,7 @@ Obtains the lower limit of this **Scope**. > **NOTE** > -> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [getLower9+](#getlower9) instead. +> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [ScopeHelper.getLower9+](#getlower9) instead. **System capability**: SystemCapability.Utils.Lang @@ -4133,7 +4135,7 @@ Obtains the union set of this **Scope** and the given lower and upper limits. > **NOTE** > -> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [expand9+](#expand9) instead. +> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [ScopeHelper.expand9+](#expand9) instead. **System capability**: SystemCapability.Utils.Lang @@ -4169,7 +4171,7 @@ Obtains the union set of this **Scope** and the given **Scope**. > **NOTE** > -> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [expand9+](#expand9) instead. +> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [ScopeHelper.expand9+](#expand9-1) instead. **System capability**: SystemCapability.Utils.Lang @@ -4205,7 +4207,7 @@ Obtains the union set of this **Scope** and the given value. > **NOTE** > -> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [expand9+](#expand9) instead. +> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [ScopeHelper.expand9+](#expand9-2) instead. **System capability**: SystemCapability.Utils.Lang @@ -4239,7 +4241,7 @@ Checks whether a value is within this **Scope**. > **NOTE** > -> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [contains9+](#contains9) instead. +> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [ScopeHelper.contains9+](#contains9-1) instead. **System capability**: SystemCapability.Utils.Lang @@ -4273,7 +4275,7 @@ Checks whether a range is within this **Scope**. > **NOTE** > -> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [contains9+](#contains9) instead. +> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [ScopeHelper.contains9+](#contains9-2) instead. **System capability**: SystemCapability.Utils.Lang @@ -4310,7 +4312,7 @@ Limits a value to this **Scope**. > **NOTE** > -> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [clamp9+](#clamp9) instead. +> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [ScopeHelper.clamp9+](#clamp9) instead. **System capability**: SystemCapability.Utils.Lang @@ -4351,7 +4353,7 @@ A constructor used to create a **Base64** object. > **NOTE** > -> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [constructor9+](#constructor9) instead. +> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [Base64Helper.constructor9+](#constructor9-5) instead. **System capability**: SystemCapability.Utils.Lang @@ -4369,7 +4371,7 @@ Encodes the input content. > **NOTE** > -> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [encodeSync9+](#encodesync9) instead. +> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [Base64Helper.encodeSync9+](#encodesync9) instead. **System capability**: SystemCapability.Utils.Lang @@ -4401,7 +4403,7 @@ Encodes the input content. > **NOTE** > -> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [encodeToStringSync9+](#encodetostringsync9) instead. +> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [Base64Helper.encodeToStringSync9+](#encodetostringsync9) instead. **System capability**: SystemCapability.Utils.Lang @@ -4433,7 +4435,7 @@ Decodes the input content. > **NOTE** > -> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [decodeSync9+](#decodesync9) instead. +> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [Base64Helper.decodeSync9+](#decodesync9) instead. **System capability**: SystemCapability.Utils.Lang @@ -4465,7 +4467,7 @@ Encodes the input content asynchronously. > **NOTE** > -> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [encode9+](#encode9) instead. +> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [Base64Helper.encode9+](#encode9) instead. **System capability**: SystemCapability.Utils.Lang @@ -4502,7 +4504,7 @@ Encodes the input content asynchronously. > **NOTE** > -> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [encodeToString9+](#encodetostring9) instead. +> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [Base64Helper.encodeToString9+](#encodetostring9) instead. **System capability**: SystemCapability.Utils.Lang @@ -4537,7 +4539,7 @@ Decodes the input content asynchronously. > **NOTE** > -> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [decode9+](#decode9) instead. +> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [Base64Helper.decode9+](#decode9) instead. **System capability**: SystemCapability.Utils.Lang @@ -4565,5 +4567,3 @@ Decodes the input content asynchronously. } }) ``` - - diff --git a/en/application-dev/reference/apis/js-apis-wantAgent.md b/en/application-dev/reference/apis/js-apis-wantAgent.md index 215816e358a3c70d147a149db7c9142a15535ec1..6657eb3e558732fa50af4c7bb82f7b26e3457433 100644 --- a/en/application-dev/reference/apis/js-apis-wantAgent.md +++ b/en/application-dev/reference/apis/js-apis-wantAgent.md @@ -1,4 +1,4 @@ -# @ohos.wantAgent +# @ohos.wantAgent (wantAgent) The **WantAgent** module provides APIs for creating and comparing **WantAgent** objects, and obtaining the user ID and bundle name of a **WantAgent** object. diff --git a/en/application-dev/reference/apis/js-apis-webview.md b/en/application-dev/reference/apis/js-apis-webview.md index 4a7bee42b6eba3d30626dac89817440efeebff2e..08c8413e6107382b516a25676cb19bafde1a1e2a 100644 --- a/en/application-dev/reference/apis/js-apis-webview.md +++ b/en/application-dev/reference/apis/js-apis-webview.md @@ -1,3 +1,5 @@ + + # @ohos.web.webview (Webview) The **Webview** module provides APIs for web control. @@ -262,6 +264,45 @@ struct WebComponent { } ``` +### setWebDebuggingAccess + +static setWebDebuggingAccess(webDebuggingAccess: boolean): void + +Sets whether to enable web debugging. + +**System capability**: SystemCapability.Web.Webview.Core + +**Parameters** + +| Name | Type | Mandatory | Description| +| ------------------ | ------- | ---- | ------------- | +| webDebuggingAccess | boolean | Yes | Whether to enable web debugging.| + +```ts +// xxx.ets +import web_webview from '@ohos.web.webview'; + +@Entry +@Component +struct WebComponent { + controller: web_webview.WebviewController = new web_webview.WebviewController(); + + aboutToAppear():void { + try { + web_webview.WebviewController.setWebDebuggingAccess(true); + } catch(error) { + console.error(`ErrorCode: ${error.code}, Message: ${error.message}`); + } + } + + build() { + Column() { + Web({ src: 'www.example.com', controller: this.controller }) + } + } +} +``` + ### loadUrl loadUrl(url: string | Resource, headers?: Array\): void @@ -1469,10 +1510,8 @@ struct WebComponent { try { // 1. Create two message ports. this.ports = this.controller.createWebMessagePorts(); - // 2. Send one of the message ports to the HTML side, which can then save and use the port. - this.controller.postMessage('__init_port__', [this.ports[0]], '*'); - // 3. Register a callback for the other message port on the application side. - this.ports[1].onMessageEvent((result: WebMessage) => { + // 2. Register a callback on a message port (for example, port 1) on the application side. + this.ports[1].onMessageEvent((result: web_webview.WebMessage) => { var msg = 'Got msg from HTML:'; if (typeof(result) == "string") { console.log("received string message from html5, string is:" + result); @@ -1489,12 +1528,14 @@ struct WebComponent { } this.receivedFromHtml = msg; }) + // 3. Send another message port (for example, port 0) to the HTML side, which can then save the port for future use. + this.controller.postMessage('__init_port__', [this.ports[0]], '*'); } catch (error) { console.error(`ErrorCode: ${error.code}, Message: ${error.message}`); } }) - // 4. Use the port on the application side to send messages to the message port that has been sent to the HTML. + // 4. Use the port on the application side to send messages to the port that has been sent to the HTML side. Button('SendDataToHTML') .onClick(() => { try { @@ -1504,7 +1545,7 @@ struct WebComponent { console.error(`ports is null, Please initialize first`); } } catch (error) { - console.error(`ErrorCode: ${error.code}, Message: ${error.message}`); + console.error(`ErrorCode: ${error.code}, Message: ${error.message}`); } }) Web({ src: $rawfile('xxx.html'), controller: this.controller }) @@ -1526,7 +1567,7 @@ struct WebComponent {

WebView Message Port Demo


-
+

display received message send from ets

@@ -2748,6 +2789,104 @@ struct WebComponent { } ``` +### pageUp + +pageUp(top:boolean): void + +Scrolls the page up by half the view port or jumps to the top of the page. + +**System capability**: SystemCapability.Web.Webview.Core + +**Parameters** + +| Name| Type | Mandatory| Description | +| ------ | ------- | ---- | ------------------------------------------------------------ | +| top | boolean | Yes | Whether to jump to the top of the page. The value **true** means to jump to the top of the page; and **false** means to scroll the page up by half the view port.| + +**Error codes** + +For details about the error codes, see [Webview Error Codes](../errorcodes/errorcode-webview.md). + +| ID| Error Message | +| -------- | ------------------------------------------------------------ | +| 17100001 | Init error. The WebviewController must be associated with a Web component. | + +**Example** + +```ts +// xxx.ets +import web_webview from '@ohos.web.webview'; + +@Entry +@Component +struct WebComponent { + controller: web_webview.WebviewController = new web_webview.WebviewController(); + + build() { + Column() { + Button('pageUp') + .onClick(() => { + try { + this.controller.pageUp(false); + } catch (error) { + console.error(`ErrorCode: ${error.code}, Message: ${error.message}`); + } + }) + Web({ src: 'www.example.com', controller: this.controller }) + } + } +} +``` + +### pageDown + +pageDown(bottom:boolean): void + +Scrolls the page down by half the view port or jumps to the bottom of the page. + +**System capability**: SystemCapability.Web.Webview.Core + +**Parameters** + +| Name| Type | Mandatory| Description | +| ------ | ------- | ---- | ------------------------------------------------------------ | +| bottom | boolean | Yes | Whether to jump to the bottom of the page. The value **true** means to jump to the bottom of the page; and **false** means to scroll the page down by half the view port.| + +**Error codes** + +For details about the error codes, see [Webview Error Codes](../errorcodes/errorcode-webview.md). + +| ID| Error Message | +| -------- | ------------------------------------------------------------ | +| 17100001 | Init error. The WebviewController must be associated with a Web component. | + +**Example** + +```ts +// xxx.ets +import web_webview from '@ohos.web.webview'; + +@Entry +@Component +struct WebComponent { + controller: web_webview.WebviewController = new web_webview.WebviewController(); + + build() { + Column() { + Button('pageDown') + .onClick(() => { + try { + this.controller.pageDown(false); + } catch (error) { + console.error(`ErrorCode: ${error.code}, Message: ${error.message}`); + } + }) + Web({ src: 'www.example.com', controller: this.controller }) + } + } +} +``` + ### getBackForwardEntries getBackForwardEntries(): BackForwardList @@ -2797,6 +2936,122 @@ struct WebComponent { } ``` +### serializeWebState + +serializeWebState(): Uint8Array + +Serializes the page status history of the current Webview. + +**System capability**: SystemCapability.Web.Webview.Core + +**Return value** + +| Type | Description | +| ---------- | --------------------------------------------- | +| Uint8Array | Serialized data of the page status history of the current WebView.| + +**Error codes** + +For details about the error codes, see [Webview Error Codes](../errorcodes/errorcode-webview.md). + +| ID| Error Message | +| -------- | ------------------------------------------------------------ | +| 17100001 | Init error. The WebviewController must be associated with a Web component. | + +**Example** + +```ts +// xxx.ets +import web_webview from '@ohos.web.webview'; +import fileio from '@ohos.fileio'; + +@Entry +@Component +struct WebComponent { + controller: web_webview.WebviewController = new web_webview.WebviewController(); + + build() { + Column() { + Button('serializeWebState') + .onClick(() => { + try { + let state = this.controller.serializeWebState(); + let path = globalThis.AbilityContext.cacheDir; + path += '/WebState'; + let fd = fileio.openSync(path, 0o2 | 0o100, 0o666); + fileio.writeSync(fd, state.buffer); + fileio.closeSync(fd); + } catch (error) { + console.error(`ErrorCode: ${error.code}, Message: ${error.message}`); + } + }) + Web({ src: 'www.example.com', controller: this.controller }) + } + } +} +``` + +### restoreWebState + +restoreWebState(state: Uint8Array): void + +Restores the page status history from the serialized data of the current WebView. + +**System capability**: SystemCapability.Web.Webview.Core + +**Parameters** + +| Name| Type | Mandatory| Description | +| ------ | ---------- | ---- | ---------------------------- | +| state | Uint8Array | Yes | Serialized data of the page status history.| + +**Error codes** + +For details about the error codes, see [Webview Error Codes](../errorcodes/errorcode-webview.md). + +| ID| Error Message | +| -------- | ------------------------------------------------------------ | +| 17100001 | Init error. The WebviewController must be associated with a Web component. | + +**Example** + +```ts +// xxx.ets +import web_webview from '@ohos.web.webview'; +import fileio from '@ohos.fileio'; + +@Entry +@Component +struct WebComponent { + controller: web_webview.WebviewController = new web_webview.WebviewController(); + + build() { + Column() { + Button('RestoreWebState') + .onClick(() => { + try { + let path = globalThis.AbilityContext.cacheDir; + path += '/WebState'; + let fd = fileio.openSync(path, 0o002, 0o666); + let stat = fileio.fstatSync(fd); + let size = stat.size; + let buf = new ArrayBuffer(size); + fileio.read(fd, buf, (err, data) => { + if (data) { + this.controller.restoreWebState(new Uint8Array(data.buffer)); + } + fileio.closeSync(fd); + }); + } catch (error) { + console.error(`ErrorCode: ${error.code}, Message: ${error.message}`); + } + }) + Web({ src: 'www.example.com', controller: this.controller }) + } + } +} +``` + ### customizeSchemes static customizeSchemes(schemes: Array\): void @@ -3999,7 +4254,7 @@ Stores this web page. This API uses an asynchronous callback to return the resul | Name | Type | Mandatory | Description | | -------- | ---------------------------------------- | ---- | ----------------------------------- | | baseName | string | Yes| Save path. The value cannot be null. | -| autoName | boolean | Yes| Whether to automatically generate a file name.
The value **false** means not to automatically generate a file name.
The value **true** means to automatically generate a file name based on the URL of current page and the **baseName** value. In this case, **baseName** is regarded as a directory. | +| autoName | boolean | Yes| Whether to automatically generate a file name.
The value **false** means not to automatically generate a file name.
The value **true** means to automatically generate a file name based on the URL of current page and the **baseName** value. In this case, **baseName** is regarded as a directory. | | callback | AsyncCallback\ | Yes | Callback used to return the save path if the operation is successful and null otherwise.| **Example** @@ -4080,6 +4335,10 @@ Stores this web page. This API uses a promise to return the result. Implements a **GeolocationPermissions** object. +### Required Permissions + +**ohos.permission.LOCATION**, **ohos.permission.APPROXIMATELY_LOCATION**, and **ohos.permission.LOCATION_IN_BACKGROUND**, which are required for accessing the location information. For details about the permissions, see [@ohos.geolocation (Geolocation)](./js-apis-geolocation.md). + ### allowGeolocation static allowGeolocation(origin: string): void @@ -4467,6 +4726,8 @@ Provides the element information of the area being clicked. For details about th Describes the data types supported for [WebMessagePort](#webmessageport). +**System capability**: SystemCapability.Web.Webview.Core + | Type | Description | | -------- | -------------------------------------- | | string | String type.| @@ -4490,10 +4751,10 @@ Provides the historical information list of the current webview. **System capability**: SystemCapability.Web.Webview.Core -| Name | Type | Readable| Writable| Description | -| ------------ | ------ | ---- | ---- | ---------------------------- | -| currentIndex | number | Yes | No | Index of the current page in the page history stack.| -| size | number | Yes | No | Number of indexes in the history stack. | +| Name | Type | Readable| Writable| Description | +| ------------ | ------ | ---- | ---- | ------------------------------------------------------------ | +| currentIndex | number | Yes | No | Index of the current page in the page history stack. | +| size | number | Yes | No | Number of indexes in the history stack. The maximum value is 50. If this value is exceeded, the earliest index will be overwritten.| ### getItemAtIndex diff --git a/en/application-dev/reference/apis/js-apis-window.md b/en/application-dev/reference/apis/js-apis-window.md index bc1ad05712b63c8b2d990af46c8bf70242134e77..9f3a86e1a616d1fce7d3a2f732351b90f3eb2785 100644 --- a/en/application-dev/reference/apis/js-apis-window.md +++ b/en/application-dev/reference/apis/js-apis-window.md @@ -1,4 +1,4 @@ -# @ohos.window +# @ohos.window (Window) The **Window** module provides basic window management capabilities, such as creating and destroying the current window, setting properties for the current window, and managing and scheduling windows. @@ -54,7 +54,7 @@ Defines the parameters for creating a subwindow or system window. | ---------- | -------------------------- | -- | ----------------------------------- | | name | string | Yes| Name of the window. | | windowType | [WindowType](#windowtype7) | Yes| Type of the window. | -| ctx | BaseContext | No| Current application context.
For details about the context in the FA model, see [Context](js-apis-inner-app-context.md).
For details about the context in the stage model, see [ServiceExtensionContext](js-apis-inner-application-serviceExtensionContext.md). If this parameter is not set, no context is used.
A system window is created when **Context** is [ServiceExtensionContext](js-apis-inner-application-serviceExtensionContext.md).| +| ctx | [BaseContext](js-apis-inner-application-baseContext.md) | No| Current application context. If this parameter is not set, no context is used.
You do not need to set this parameter to create a subwindow in the FA model or a system window in the stage model. | | displayId | number | No| ID of the current physical screen. If this parameter is not set, the default value **-1** is used.| | parentId | number | No| ID of the parent window. If this parameter is not set, the default value **-1** is used. | @@ -430,7 +430,7 @@ Obtains the top window of the current application. This API uses an asynchronous | Name| Type| Mandatory| Description| | -------- | -------------------------------------- | -- | ---------------------------------------- | -| ctx | BaseContext | Yes| Current application context.
For details about the context in the FA model, see [Context](js-apis-inner-app-context.md).
For details about the context in the stage model, see [Context](js-apis-ability-context.md).| +| ctx | [BaseContext](js-apis-inner-application-baseContext.md) | Yes| Current application context.| | callback | AsyncCallback<[Window](#window)> | Yes| Callback used to return the top window obtained.| **Error codes** @@ -472,7 +472,7 @@ Obtains the top window of the current application. This API uses a promise to re | Name| Type| Mandatory| Description| | ------ | ----------- | ---- | ------------------------------------------------------------ | -| ctx | BaseContext | Yes | Current application context.
For details about the context in the FA model, see [Context](js-apis-inner-app-context.md).
For details about the context in the stage model, see [Context](js-apis-ability-context.md).| +| ctx | [BaseContext](js-apis-inner-application-baseContext.md) | Yes | Current application context.| **Return value** @@ -897,7 +897,7 @@ promise.then((data)=> { create(ctx: BaseContext, id: string, type: WindowType, callback: AsyncCallback<Window>): void -Creates a subwindow (in API version 8) or a system window (from API version 9). This API uses an asynchronous callback to return the result. +Creates a system window. This API uses an asynchronous callback to return the result. > **NOTE** > @@ -907,12 +907,12 @@ Creates a subwindow (in API version 8) or a system window (from API version 9). **Parameters** -| Name | Type | Mandatory| Description | -| -------- | -------------------------------------- | ---- | ------------------------------------------------------------ | -| ctx | BaseContext | Yes | Current application context.
For details about the context in the FA model, see [Context](js-apis-inner-app-context.md).
For details about the context in the stage model, see [ServiceExtensionContext](js-apis-inner-application-serviceExtensionContext.md).| -| id | string | Yes | Window ID. | -| type | [WindowType](#windowtype7) | Yes | Window type. | -| callback | AsyncCallback<[Window](#window)> | Yes | Callback used to return the subwindow created. | +| Name | Type | Mandatory| Description | +| -------- | ------------------------------------------------------- | ---- | ------------------------------------ | +| ctx | [BaseContext](js-apis-inner-application-baseContext.md) | Yes | Current application context. | +| id | string | Yes | Window ID. | +| type | [WindowType](#windowtype7) | Yes | Window type. | +| callback | AsyncCallback<[Window](#window)> | Yes | Callback used to return the subwindow created.| **Example** @@ -933,7 +933,7 @@ window.create(this.context, 'alertWindow', window.WindowType.TYPE_SYSTEM_ALERT, create(ctx: BaseContext, id: string, type: WindowType): Promise<Window> -Creates a subwindow (in API version 8) or a system window (from API version 9). This API uses a promise to return the result. +Creates a system window. This API uses a promise to return the result. > **NOTE** > @@ -945,7 +945,7 @@ Creates a subwindow (in API version 8) or a system window (from API version 9). | Name| Type | Mandatory| Description | | ------ | ------------------------- | ---- | ------------------------------------------------------------ | -| ctx | BaseContext | Yes | Current application context.
For details about the context in the FA model, see [Context](js-apis-inner-app-context.md).
For details about the context in the stage model, see [ServiceExtensionContext](js-apis-inner-application-serviceExtensionContext.md).| +| ctx | [BaseContext](js-apis-inner-application-baseContext.md) | Yes | Current application context.| | id | string | Yes | Window ID. | | type | [WindowType](#windowtype7) | Yes | Window type. | @@ -1121,7 +1121,7 @@ Obtains the top window of the current application. This API uses an asynchronous | Name | Type | Mandatory| Description | | -------- | -------------------------------------- | ---- | ------------------------------------------------------------ | -| ctx | BaseContext | Yes | Current application context.
For details about the context in the FA model, see [Context](js-apis-inner-app-context.md).
For details about the context in the stage model, see [Context](js-apis-ability-context.md).| +| ctx | [BaseContext](js-apis-inner-application-baseContext.md) | Yes | Current application context.| | callback | AsyncCallback<[Window](#window)> | Yes | Callback used to return the top window obtained. | **Example** @@ -1154,7 +1154,7 @@ Obtains the top window of the current application. This API uses a promise to re | Name| Type | Mandatory| Description | | ------ | ----------- | ---- | ------------------------------------------------------------ | -| ctx | BaseContext | Yes | Current application context.
For details about the context in the FA model, see [Context](js-apis-inner-app-context.md).
For details about the context in the stage model, see [Context](js-apis-ability-context.md).| +| ctx | [BaseContext](js-apis-inner-application-baseContext.md) | Yes | Current application context.| **Return value** @@ -1864,7 +1864,7 @@ Obtains the area where this window cannot be displayed, for example, the system | Name| Type| Mandatory| Description| | ---- |----------------------------------| -- | ------------------------------------------------------------ | -| type | [AvoidAreaType](#avoidareatype7) | Yes| Type of the area. | +| type | [AvoidAreaType](#avoidareatype7) | Yes| Type of the area.| **Return value** @@ -4629,10 +4629,10 @@ Obtains the area where this window cannot be displayed, for example, the system **Parameters** -| Name | Type | Mandatory | Description | -| -------- | --------------------------------------------- | --------- | ------------------------------------------------------------ | -| type | [AvoidAreaType](#avoidareatype7) | Yes | Type of the area. | -| callback | AsyncCallback<[AvoidArea](#avoidarea7)> | Yes | Callback used to return the area. | +| Name | Type | Mandatory | Description | +| -------- | --------------------------------------------- | --------- | --------------------------------- | +| type | [AvoidAreaType](#avoidareatype7) | Yes | Type of the area. | +| callback | AsyncCallback<[AvoidArea](#avoidarea7)> | Yes | Callback used to return the area. | **Example** @@ -4662,9 +4662,9 @@ Obtains the area where this window cannot be displayed, for example, the system **Parameters** -| Name | Type | Mandatory | Description | -| ---- | -------------------------------- | --------- | ------------------------------------------------------------ | -| type | [AvoidAreaType](#avoidareatype7) | Yes | Type of the area. | +| Name | Type | Mandatory | Description | +| ---- | -------------------------------- | --------- | ----------------- | +| type | [AvoidAreaType](#avoidareatype7) | Yes | Type of the area. | **Return value** @@ -5237,10 +5237,10 @@ Sets a color space for this window. This API uses an asynchronous callback to re **Parameters** -| Name | Type | Mandatory | Description | -| ---------- | ------------------------- | --------- | ----------------------------------- | +| Name | Type | Mandatory | Description | +| ---------- | -------------------------- | --------- | ----------------------------------- | | colorSpace | [ColorSpace](#colorspace8) | Yes | Color space to set. | -| callback | AsyncCallback<void> | Yes | Callback used to return the result. | +| callback | AsyncCallback<void> | Yes | Callback used to return the result. | **Example** @@ -5269,8 +5269,8 @@ Sets a color space for this window. This API uses a promise to return the result **Parameters** -| Name | Type | Mandatory | Description | -| ---------- | ------------------------- | --------- | ------------------- | +| Name | Type | Mandatory | Description | +| ---------- | -------------------------- | --------- | ------------------- | | colorSpace | [ColorSpace](#colorspace8) | Yes | Color space to set. | **Return value** @@ -5305,8 +5305,8 @@ Obtains the color space of this window. This API uses an asynchronous callback t **Parameters** -| Name | Type | Mandatory | Description | -| -------- | ---------------------------------------------- | --------- | ------------------------------------------------------------ | +| Name | Type | Mandatory | Description | +| -------- | ----------------------------------------------- | --------- | ------------------------------------------------------------ | | callback | AsyncCallback<[ColorSpace](#colorspace8)> | Yes | Callback used to return the result. When the color space is obtained successfully, **err** is **undefined**, and **data** is the current color space. | **Example** @@ -5336,8 +5336,8 @@ Obtains the color space of this window. This API uses a promise to return the re **Return value** -| Type | Description | -| ---------------------------------------- | ----------------------------------------------- | +| Type | Description | +| ----------------------------------------- | ----------------------------------------------- | | Promise<[ColorSpace](#colorspace8)> | Promise used to return the current color space. | **Example** diff --git a/en/application-dev/reference/arkui-js/js-components-canvas-canvasrenderingcontext2d.md b/en/application-dev/reference/arkui-js/js-components-canvas-canvasrenderingcontext2d.md index 8df65d142a4129699c45f44b69c1c5f1fbe96829..34e2663dc5e17b7c950a50bf140b3204f4f74e73 100644 --- a/en/application-dev/reference/arkui-js/js-components-canvas-canvasrenderingcontext2d.md +++ b/en/application-dev/reference/arkui-js/js-components-canvas-canvasrenderingcontext2d.md @@ -1735,9 +1735,9 @@ Creates a radial gradient and returns a **CanvasGradient** object. // Radial gradient: inner circle(200,200,r:50) outer circle(200,200,r:200) var gradient = ctx.createRadialGradient(200,200,50, 200,200,200); // Add three color stops - gradient.addColorStop(0.0, 'red'); - gradient.addColorStop(0.5, 'white'); - gradient.addColorStop(1.0, 'green'); + gradient.addColorStop(0.0, '#ff0000'); + gradient.addColorStop(0.5, '#ffffff'); + gradient.addColorStop(1.0, '#00ff00'); // Set the fill style and draw a rectangle ctx.fillStyle = gradient; ctx.fillRect(0, 0, 500, 500); diff --git a/en/application-dev/reference/arkui-ts/figures/animateTo.gif b/en/application-dev/reference/arkui-ts/figures/animateTo.gif deleted file mode 100644 index 8755e2bc014f3843f8798acae725eeb0fee11f54..0000000000000000000000000000000000000000 Binary files a/en/application-dev/reference/arkui-ts/figures/animateTo.gif and /dev/null differ diff --git a/en/application-dev/reference/arkui-ts/figures/animationComponent1.png b/en/application-dev/reference/arkui-ts/figures/animationComponent1.png new file mode 100644 index 0000000000000000000000000000000000000000..b2aa53b14b112434bb736d2dc2f301bac3b46043 Binary files /dev/null and b/en/application-dev/reference/arkui-ts/figures/animationComponent1.png differ diff --git a/en/application-dev/reference/arkui-ts/figures/animationComponent2.png b/en/application-dev/reference/arkui-ts/figures/animationComponent2.png new file mode 100644 index 0000000000000000000000000000000000000000..c348c9305503698fab2f6b401450048a653e581a Binary files /dev/null and b/en/application-dev/reference/arkui-ts/figures/animationComponent2.png differ diff --git a/en/application-dev/reference/arkui-ts/figures/animationComponent3.png b/en/application-dev/reference/arkui-ts/figures/animationComponent3.png new file mode 100644 index 0000000000000000000000000000000000000000..b53d8f308a879d4b4ce84db7adac1289c8b85cfa Binary files /dev/null and b/en/application-dev/reference/arkui-ts/figures/animationComponent3.png differ diff --git a/en/application-dev/reference/arkui-ts/figures/animationComponent4.png b/en/application-dev/reference/arkui-ts/figures/animationComponent4.png new file mode 100644 index 0000000000000000000000000000000000000000..a93f8390861d3638a35de13f38e2ab51816b8083 Binary files /dev/null and b/en/application-dev/reference/arkui-ts/figures/animationComponent4.png differ diff --git a/en/application-dev/reference/arkui-ts/figures/datePicker.gif b/en/application-dev/reference/arkui-ts/figures/datePicker.gif new file mode 100644 index 0000000000000000000000000000000000000000..52ee9ca7eb42b521cf879e364c95694ca698b834 Binary files /dev/null and b/en/application-dev/reference/arkui-ts/figures/datePicker.gif differ diff --git a/en/application-dev/reference/arkui-ts/figures/timePicker.gif b/en/application-dev/reference/arkui-ts/figures/timePicker.gif index 9ae06ee5b27f1b4ce369b8e90ef5602a1ea0f846..57ba2404c92ca64f11dba247f081fc2da5aacf44 100644 Binary files a/en/application-dev/reference/arkui-ts/figures/timePicker.gif and b/en/application-dev/reference/arkui-ts/figures/timePicker.gif differ diff --git a/en/application-dev/reference/arkui-ts/ts-basic-components-datapanel.md b/en/application-dev/reference/arkui-ts/ts-basic-components-datapanel.md index 8ee9c34e359dad14776f7fca6e55ec18d8381cc2..a661b6abc36a1820fbcd634178d5cf2654911336 100644 --- a/en/application-dev/reference/arkui-ts/ts-basic-components-datapanel.md +++ b/en/application-dev/reference/arkui-ts/ts-basic-components-datapanel.md @@ -24,7 +24,7 @@ DataPanel(options:{values: number[], max?: number, type?: DataPanelType}) | ----------------- | -------- | ----- | -------- | | values | number[] | Yes | Data value list. A maximum of nine values are supported. If more than nine values are set, only the first nine ones are used. If the value is less than 0, the value 0 is used.| | max | number | No | - When set to a value greater than 0, this parameter indicates the maximum value in the **values** list.
- When set to a value equal to or smaller than 0, this parameter indicates the sum of values in the **values** list. The values are displayed in proportion.
Default value: **100**| -| type8+ | [DataPanelType](#datapaneltype) | No| Type of the data panel.
Default value: **DataPanelType.Circle**| +| type8+ | [DataPanelType](#datapaneltype) | No| Type of the data panel (dynamic modification is not supported).
Default value: **DataPanelType.Circle**| ## DataPanelType diff --git a/en/application-dev/reference/arkui-ts/ts-basic-components-scrollbar.md b/en/application-dev/reference/arkui-ts/ts-basic-components-scrollbar.md index f87d471b580ea09127f939d391af7a1acdaf6201..962a2de43931dc23157f7d168de50f2843afba06 100644 --- a/en/application-dev/reference/arkui-ts/ts-basic-components-scrollbar.md +++ b/en/application-dev/reference/arkui-ts/ts-basic-components-scrollbar.md @@ -21,7 +21,7 @@ ScrollBar(value: { scroller: Scroller, direction?: ScrollBarDirection, state?: B | Name| Type| Mandatory| Description| | -------- | -------- | -------- | -------- | | scroller | [Scroller](ts-container-scroll.md#scroller) | Yes| Scroller, which can be bound to scrollable components.| -| direction | ScrollBarDirection | No| Scrollbar direction in which scrollable components scroll.
Default value: **ScrollBarDirection.Vertical**| +| direction | [ScrollBarDirection](#scrollbardirection) | No| Scrollbar direction in which scrollable components scroll.
Default value: **ScrollBarDirection.Vertical**| | state | [BarState](ts-appendix-enums.md#barstate) | No| Scrollbar state.
Default value: **BarState.Auto**| > **NOTE** @@ -65,7 +65,7 @@ struct ScrollBarExample { .margin({ top: 5 }) } }, item => item) - }.margin({ left: 52 }) + }.margin({ right: 52 }) } .scrollBar(BarState.Off) .scrollable(ScrollDirection.Vertical) 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 e2afb3e5eaa55dfb4d4509db3c87ba55821cd748..efd01a21bbdecede13695ffd8cfc44168cd8f05c 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 @@ -577,7 +577,7 @@ Sets whether to display the horizontal scrollbar, including the system default s verticalScrollBarAccess(verticalScrollBar: boolean) -Sets whether to display the vertical scrollbar, including the system default scrollbar and custom scrollbar. By default, the vertical scrollbar is displayed. +Sets whether to display the vertical scrollbar, including the default system scrollbar and custom scrollbar. By default, the vertical scrollbar is displayed. **Parameters** @@ -745,36 +745,6 @@ Sets the user agent. } ``` -### webDebuggingAccess9+ - -webDebuggingAccess(webDebuggingAccess: boolean) - -Sets whether to enable web debugging. - -**Parameters** - -| Name | Type | Mandatory | Default Value | Description | -| ------------------ | ------- | ---- | ----- | ------------- | -| webDebuggingAccess | boolean | Yes | false | Whether to enable web debugging.| - -**Example** - - ```ts - // xxx.ets - @Entry - @Component - struct WebComponent { - controller: WebController = new WebController() - @State webDebuggingAccess: boolean = true - build() { - Column() { - Web({ src: 'www.example.com', controller: this.controller }) - .webDebuggingAccess(this.webDebuggingAccess) - } - } - } - ``` - ### blockNetwork9+ blockNetwork(block: boolean) @@ -1211,6 +1181,52 @@ struct WebComponent { } ``` +### allowWindowOpenMethod9+ + +allowWindowOpenMethod(flag: boolean) + +Sets whether to allow a new window to automatically open through JavaScript. + +When **flag** is set to **true**, a new window can automatically open through JavaScript. When **flag** is set to **false**, a new window can still automatically open through JavaScript for user behavior, but cannot for non-user behavior. The user behavior here refers to that a user requests to open a new window (**window.open**) within 5 seconds. + +This API takes effect only when [javaScriptAccess](#javascriptaccess) is enabled. + +This API opens a new window when [multiWindowAccess](#multiwindowaccess9) is enabled and opens a local window when [multiWindowAccess](#multiwindowaccess9) is disabled. + +The default value of **flag** is subject to the settings of the **persist.web.allowWindowOpenMethod.enabled** system attribute. If this attribute is not set, the default value of **flag** is **false**. + +To check the settings of **persist.web.allowWindowOpenMethod.enabled**, run the **hdc shell param get persist.web.allowWindowOpenMethod.enabled** command. If the attribute is set to 0 or does not exist, +you can run the **hdc shell param set persist.web.allowWindowOpenMethod.enabled 1** command to enable it. + +**Parameters** + +| Name| Type| Mandatory| Default Value | Description | +| ------ | ------- | ---- | ----- | ------------------ | +| flag | boolean | Yes | Subject to the settings of the **persist.web.allowWindowOpenMethod.enabled** system attribute. If this attribute is set, the default value of **flag** is **true**. Otherwise, the default value of **flag** is **false**. | Whether to allow a new window to automatically open through JavaScript.| + +**Example** + + ```ts + // xxx.ets + import web_webview from '@ohos.web.webview' + @Entry + @Component + struct WebComponent { + controller: web_webview.WebviewController = new web_webview.WebviewController() + @State access: boolean = true + @State multiWindow: boolean = true + @State flag: boolean = true + build() { + Column() { + Web({ src: 'www.example.com', controller: this.controller }) + .javaScriptAccess(this.access) + .multiWindowAccess(this.multiWindow) + .allowWindowOpenMethod(this.flag) + } + } + } + ``` + ## Events The universal events are not supported. @@ -1219,7 +1235,7 @@ The universal events are not supported. onAlert(callback: (event?: { url: string; message: string; result: JsResult }) => boolean) -Triggered when **alert()** is invoked to display an alert dialog box on the web page. +Called when **alert()** is invoked to display an alert dialog box on the web page. **Parameters** @@ -1233,7 +1249,7 @@ Triggered when **alert()** is invoked to display an alert dialog box on the web | Type | Description | | ------- | ---------------------------------------- | -| boolean | If the callback returns **false**, the default dialog box is displayed. If the callback returns **true**, a system application can use the system dialog box (allows the confirm and cancel operations) and invoke the **JsResult** API to notify the **\** component of the user's operation.| +| boolean | If the callback returns **true**, the application can use the system dialog box (allows the confirm and cancel operations) and invoke the **JsResult** API to instruct the **\** component to exit the current page based on the user operation. If the callback returns **false**, the **\** component cannot trigger the system dialog box.| **Example** @@ -1277,7 +1293,7 @@ Triggered when **alert()** is invoked to display an alert dialog box on the web onBeforeUnload(callback: (event?: { url: string; message: string; result: JsResult }) => boolean) -Triggered when this page is about to exit after the user refreshes or closes the page. This callback is triggered only when the page has obtained focus. +Called when this page is about to exit after the user refreshes or closes the page. This API takes effect only when the page has obtained focus. **Parameters** @@ -1291,7 +1307,7 @@ Triggered when this page is about to exit after the user refreshes or closes the | Type | Description | | ------- | ---------------------------------------- | -| boolean | If the callback returns **false**, the default dialog box is displayed. If the callback returns **true**, a system application can use the system dialog box (allows the confirm and cancel operations) and invoke the **JsResult** API to notify the **\** component of the user's operation.| +| boolean | If the callback returns **true**, the application can use the system dialog box (allows the confirm and cancel operations) and invoke the **JsResult** API to instruct the **\** component to exit the current page based on the user operation. If the callback returns **false**, the **\** component cannot trigger the system dialog box.| **Example** @@ -1301,7 +1317,7 @@ Triggered when this page is about to exit after the user refreshes or closes the @Component struct WebComponent { controller: WebController = new WebController() - + build() { Column() { Web({ src: 'www.example.com', controller: this.controller }) @@ -1338,7 +1354,7 @@ Triggered when this page is about to exit after the user refreshes or closes the onConfirm(callback: (event?: { url: string; message: string; result: JsResult }) => boolean) -Triggered when **confirm()** is invoked by the web page. +Called when **confirm()** is invoked by the web page. **Parameters** @@ -1352,7 +1368,7 @@ Triggered when **confirm()** is invoked by the web page. | Type | Description | | ------- | ---------------------------------------- | -| boolean | If the callback returns **false**, the default dialog box is displayed. If the callback returns **true**, a system application can use the system dialog box (allows the confirm and cancel operations) and invoke the **JsResult** API to notify the **\** component of the user's operation.| +| boolean | If the callback returns **true**, the application can use the system dialog box (allows the confirm and cancel operations) and invoke the **JsResult** API to instruct the **\** component to exit the current page based on the user operation. If the callback returns **false**, the **\** component cannot trigger the system dialog box.| **Example** @@ -1362,7 +1378,7 @@ Triggered when **confirm()** is invoked by the web page. @Component struct WebComponent { controller: WebController = new WebController() - + build() { Column() { Web({ src: 'www.example.com', controller: this.controller }) @@ -1412,7 +1428,7 @@ onPrompt(callback: (event?: { url: string; message: string; value: string; resul | Type | Description | | ------- | ---------------------------------------- | -| boolean | If the callback returns **false**, the default dialog box is displayed. If the callback returns **true**, a system application can use the system dialog box (allows the confirm and cancel operations) and invoke the **JsResult** API to notify the **\** component of the user's operation.| +| boolean | If the callback returns **true**, the application can use the system dialog box (allows the confirm and cancel operations) and invoke the **JsResult** API to instruct the **\** component to exit the current page based on the user operation. If the callback returns **false**, the **\** component cannot trigger the system dialog box.| **Example** @@ -1422,7 +1438,7 @@ onPrompt(callback: (event?: { url: string; message: string; value: string; resul @Component struct WebComponent { controller: WebController = new WebController() - + build() { Column() { Web({ src: 'www.example.com', controller: this.controller }) @@ -1460,7 +1476,7 @@ onPrompt(callback: (event?: { url: string; message: string; value: string; resul onConsole(callback: (event?: { message: ConsoleMessage }) => boolean) -Triggered to notify the host application of a JavaScript console message. +Called to notify the host application of a JavaScript console message. **Parameters** @@ -1482,7 +1498,7 @@ Triggered to notify the host application of a JavaScript console message. @Component struct WebComponent { controller: WebController = new WebController() - + build() { Column() { Web({ src: 'www.example.com', controller: this.controller }) @@ -1519,7 +1535,7 @@ onDownloadStart(callback: (event?: { url: string, userAgent: string, contentDisp @Component struct WebComponent { controller: WebController = new WebController() - + build() { Column() { Web({ src: 'www.example.com', controller: this.controller }) @@ -1539,7 +1555,7 @@ onDownloadStart(callback: (event?: { url: string, userAgent: string, contentDisp onErrorReceive(callback: (event?: { request: WebResourceRequest, error: WebResourceError }) => void) -Triggered when an error occurs during web page loading. For better results, simplify the implementation logic in the callback. +Called when an error occurs during web page loading. For better results, simplify the implementation logic in the callback. **Parameters** @@ -1556,7 +1572,7 @@ Triggered when an error occurs during web page loading. For better results, simp @Component struct WebComponent { controller: WebController = new WebController() - + build() { Column() { Web({ src: 'www.example.com', controller: this.controller }) @@ -1583,7 +1599,7 @@ Triggered when an error occurs during web page loading. For better results, simp onHttpErrorReceive(callback: (event?: { request: WebResourceRequest, response: WebResourceResponse }) => void) -Triggered when an HTTP error (the response code is greater than or equal to 400) occurs during web page resource loading. +Called when an HTTP error (the response code is greater than or equal to 400) occurs during web page resource loading. **Parameters** @@ -1600,7 +1616,7 @@ Triggered when an HTTP error (the response code is greater than or equal to 400) @Component struct WebComponent { controller: WebController = new WebController() - + build() { Column() { Web({ src: 'www.example.com', controller: this.controller }) @@ -1635,7 +1651,7 @@ Triggered when an HTTP error (the response code is greater than or equal to 400) onPageBegin(callback: (event?: { url: string }) => void) -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. +Called when the web page starts to be loaded. This API is called only for the main frame content, and not for the iframe or frameset content. **Parameters** @@ -1651,7 +1667,7 @@ Triggered when the web page starts to be loaded. This API is triggered only for @Component struct WebComponent { controller: WebController = new WebController() - + build() { Column() { Web({ src: 'www.example.com', controller: this.controller }) @@ -1668,7 +1684,7 @@ Triggered when the web page starts to be loaded. This API is triggered only for onPageEnd(callback: (event?: { url: string }) => void) -Triggered when the web page loading is complete. This API is triggered only for the main frame content. +Called when the web page loading is complete. This API takes effect only for the main frame content. **Parameters** @@ -1684,7 +1700,7 @@ Triggered when the web page loading is complete. This API is triggered only for @Component struct WebComponent { controller: WebController = new WebController() - + build() { Column() { Web({ src: 'www.example.com', controller: this.controller }) @@ -1700,7 +1716,7 @@ Triggered when the web page loading is complete. This API is triggered only for onProgressChange(callback: (event?: { newProgress: number }) => void) -Triggered when the web page loading progress changes. +Called when the web page loading progress changes. **Parameters** @@ -1716,7 +1732,7 @@ Triggered when the web page loading progress changes. @Component struct WebComponent { controller: WebController = new WebController() - + build() { Column() { Web({ src: 'www.example.com', controller: this.controller }) @@ -1732,7 +1748,7 @@ Triggered when the web page loading progress changes. onTitleReceive(callback: (event?: { title: string }) => void) -Triggered when the document title of the web page is changed. +Called when the document title of the web page is changed. **Parameters** @@ -1748,7 +1764,7 @@ Triggered when the document title of the web page is changed. @Component struct WebComponent { controller: WebController = new WebController() - + build() { Column() { Web({ src: 'www.example.com', controller: this.controller }) @@ -1764,7 +1780,7 @@ Triggered when the document title of the web page is changed. onRefreshAccessedHistory(callback: (event?: { url: string, isRefreshed: boolean }) => void) -Triggered when loading of the web page is complete. This API is used by an application to update the historical link it accessed. +Called when loading of the web page is complete. This API is used by an application to update the historical link it accessed.. **Parameters** @@ -1781,7 +1797,7 @@ Triggered when loading of the web page is complete. This API is used by an appli @Component struct WebComponent { controller: WebController = new WebController() - + build() { Column() { Web({ src: 'www.example.com', controller: this.controller }) @@ -1797,7 +1813,7 @@ Triggered when loading of the web page is complete. This API is used by an appli onRenderExited(callback: (event?: { renderExitReason: RenderExitReason }) => void) -Triggered when the rendering process exits abnormally. +Called when the rendering process exits abnormally. **Parameters** @@ -1813,7 +1829,7 @@ Triggered when the rendering process exits abnormally. @Component struct WebComponent { controller: WebController = new WebController() - + build() { Column() { Web({ src: 'chrome://crash/', controller: this.controller }) @@ -1829,7 +1845,7 @@ Triggered when the rendering process exits abnormally. onShowFileSelector(callback: (event?: { result: FileSelectorResult, fileSelector: FileSelectorParam }) => boolean) -Triggered to process an HTML form whose input type is **file**, in response to the tapping of the **Select File** button. +Called to process an HTML form whose input type is **file**, in response to the tapping of the **Select File** button. **Parameters** @@ -1842,7 +1858,7 @@ Triggered to process an HTML form whose input type is **file**, in response to t | Type | Description | | ------- | ---------------------------------------- | -| boolean | The value **true** means that the pop-up window provided by the system is displayed. The value **false** means that the default web pop-up window is displayed.| +| boolean | The value **true** means that the pop-up window provided by the system is displayed. If the callback returns **false**, the **\** component cannot trigger the system dialog box.| **Example** @@ -1885,7 +1901,7 @@ Triggered to process an HTML form whose input type is **file**, in response to t onResourceLoad(callback: (event: {url: string}) => void) -Invoked to notify the **\** component of the URL of the loaded resource file. +Called to notify the **\** component of the URL of the loaded resource file. **Parameters** @@ -1901,7 +1917,7 @@ Invoked to notify the **\** component of the URL of the loaded resource fil @Component struct WebComponent { controller: WebController = new WebController() - + build() { Column() { Web({ src: 'www.example.com', controller: this.controller }) @@ -1917,7 +1933,7 @@ Invoked to notify the **\** component of the URL of the loaded resource fil onScaleChange(callback: (event: {oldScale: number, newScale: number}) => void) -Invoked when the display ratio of this page changes. +Called when the display ratio of this page changes. **Parameters** @@ -1934,7 +1950,7 @@ Invoked when the display ratio of this page changes. @Component struct WebComponent { controller: WebController = new WebController() - + build() { Column() { Web({ src: 'www.example.com', controller: this.controller }) @@ -1950,7 +1966,7 @@ Invoked when the display ratio of this page changes. onUrlLoadIntercept(callback: (event?: { data:string | WebResourceRequest }) => boolean) -Triggered when the **\** component is about to access a URL. This API is used to determine whether to block the access. +Called when the **\** component is about to access a URL. This API is used to determine whether to block the access. **Parameters** @@ -1972,7 +1988,7 @@ Triggered when the **\** component is about to access a URL. This API is us @Component struct WebComponent { controller: WebController = new WebController() - + build() { Column() { Web({ src: 'www.example.com', controller: this.controller }) @@ -1989,7 +2005,7 @@ Triggered when the **\** component is about to access a URL. This API is us onInterceptRequest(callback: (event?: { request: WebResourceRequest}) => WebResourceResponse) -Invoked when the **\** component is about to access a URL. This API is used to block the URL and return the response data. +Called when the **\** component is about to access a URL. This API is used to block the URL and return the response data. **Parameters** @@ -2054,7 +2070,7 @@ Invoked when the **\** component is about to access a URL. This API is used onHttpAuthRequest(callback: (event?: { handler: HttpAuthHandler, host: string, realm: string}) => boolean) -Invoked when an HTTP authentication request is received. +Called when an HTTP authentication request is received. **Parameters** @@ -2080,7 +2096,7 @@ Invoked when an HTTP authentication request is received. struct WebComponent { controller: WebController = new WebController() httpAuth: boolean = false - + build() { Column() { Web({ src: 'www.example.com', controller: this.controller }) @@ -2123,7 +2139,7 @@ Invoked when an HTTP authentication request is received. onSslErrorEventReceive(callback: (event: { handler: SslErrorHandler, error: SslError }) => void) -Invoked when an SSL error occurs during resource loading. +Called when an SSL error occurs during resource loading. **Parameters** @@ -2141,7 +2157,7 @@ Invoked when an SSL error occurs during resource loading. @Component struct WebComponent { controller: WebController = new WebController() - + build() { Column() { Web({ src: 'www.example.com', controller: this.controller }) @@ -2176,7 +2192,7 @@ Invoked when an SSL error occurs during resource loading. onClientAuthenticationRequest(callback: (event: {handler : ClientAuthenticationHandler, host : string, port : number, keyTypes : Array, issuers : Array}) => void) -Invoked when an SSL client certificate request is received. +Called when an SSL client certificate request is received. **Parameters** @@ -2231,7 +2247,7 @@ Invoked when an SSL client certificate request is received. onPermissionRequest(callback: (event?: { request: PermissionRequest }) => void) -Invoked when a permission request is received. +Called when a permission request is received. **Parameters** @@ -2320,7 +2336,7 @@ Shows a context menu after the user clicks the right mouse button or long presse onScroll(callback: (event: {xOffset: number, yOffset: number}) => void) -Invoked when the scrollbar of the page scrolls. +Called when the scrollbar of the page scrolls. **Parameters** @@ -2398,7 +2414,7 @@ Registers a callback for receiving a request to obtain the geolocation informati onGeolocationHide(callback: () => void) -Triggered to notify the user that the request for obtaining the geolocation information received when **[onGeolocationShow](#ongeolocationshow)** is called has been canceled. +Called to notify the user that the request for obtaining the geolocation information received when **[onGeolocationShow](#ongeolocationshow)** is called has been canceled. **Parameters** @@ -2430,7 +2446,7 @@ Triggered to notify the user that the request for obtaining the geolocation info onFullScreenEnter(callback: (event: { handler: FullScreenExitHandler }) => void) -Registers a callback for the component's entering into full screen mode. +Called when the component enters full screen mode. **Parameters** @@ -2463,7 +2479,7 @@ Registers a callback for the component's entering into full screen mode. onFullScreenExit(callback: () => void) -Registers a callback for the component's exiting full screen mode. +Called when the component exits full screen mode. **Parameters** @@ -2568,7 +2584,7 @@ Registers a callback for window closure. onSearchResultReceive(callback: (event?: {activeMatchOrdinal: number, numberOfMatches: number, isDoneCounting: boolean}) => void): WebAttribute -Invoked to notify the caller of the search result on the web page. +Called to notify the caller of the search result on the web page. **Parameters** @@ -2603,7 +2619,7 @@ Invoked to notify the caller of the search result on the web page. onDataResubmitted(callback: (event: {handler: DataResubmissionHandler}) => void) -Invoked when the web form data is resubmitted. +Called when the web form data is resubmitted. **Parameters** @@ -2636,7 +2652,7 @@ Invoked when the web form data is resubmitted. onPageVisible(callback: (event: {url: string}) => void) -Invoked when the old page is not displayed and the new page is about to be visible. +Called when the old page is not displayed and the new page is about to be visible. **Parameters** @@ -2668,7 +2684,7 @@ Invoked when the old page is not displayed and the new page is about to be visib onInterceptKeyEvent(callback: (event: KeyEvent) => boolean) -Invoked when the key event is intercepted, before being consumed by the Webview. +Called when the key event is intercepted, before being consumed by the Webview. **Parameters** @@ -2710,7 +2726,7 @@ Invoked when the key event is intercepted, before being consumed by the Webview. onTouchIconUrlReceived(callback: (event: {url: string, precomposed: boolean}) => void) -Invoked when an apple-touch-icon URL is received. +Called when an apple-touch-icon URL is received. **Parameters** @@ -2743,7 +2759,7 @@ Invoked when an apple-touch-icon URL is received. onFaviconReceived(callback: (event: {favicon: image.PixelMap}) => void) -Invoked when this web page receives a new favicon. +Called when this web page receives a new favicon. **Parameters** @@ -3243,7 +3259,7 @@ Performs HTTP authentication with the user name and password provided by the use isHttpAuthInfoSaved(): boolean -Uses the password cached on the server for authentication. +Uses the account name and password cached on the server for authentication. **Return value** @@ -3611,7 +3627,7 @@ This API is deprecated since API version 9. You are advised to use [requestFocus @Component struct WebComponent { controller: WebController = new WebController() - + build() { Column() { Button('requestFocus') @@ -3646,7 +3662,7 @@ This API is deprecated since API version 9. You are advised to use [accessBackwa @Component struct WebComponent { controller: WebController = new WebController() - + build() { Column() { Button('accessBackward') @@ -3682,7 +3698,7 @@ This API is deprecated since API version 9. You are advised to use [accessForwar @Component struct WebComponent { controller: WebController = new WebController() - + build() { Column() { Button('accessForward') @@ -3725,7 +3741,7 @@ This API is deprecated since API version 9. You are advised to use [accessStep @Component struct WebComponent { controller: WebController = new WebController() - + build() { Column() { Button('forward') @@ -3818,7 +3834,7 @@ Performs a specific number of steps forward or backward on the current page base struct WebComponent { controller: WebController = new WebController() @State step: number = -2 - + build() { Column() { Button('backOrForward') @@ -3854,7 +3870,7 @@ This API is deprecated since API version 9. You are advised to use [deleteJavaSc struct WebComponent { controller: WebController = new WebController() @State name: string = 'Object' - + build() { Column() { Button('deleteJavaScriptRegister') @@ -3871,7 +3887,7 @@ This API is deprecated since API version 9. You are advised to use [deleteJavaSc getHitTest(): HitTestType -Obtains the element type of the area being clicked. +Obtains the element type of the area being clicked. This API is deprecated since API version 9. You are advised to use [getHitTest9+](../apis/js-apis-webview.md#gethittest). @@ -3889,7 +3905,7 @@ This API is deprecated since API version 9. You are advised to use [getHitTest** component, which can be used for **\< @Component struct WebComponent { controller: WebController = new WebController() - + build() { Column() { Button('getWebId') @@ -3989,7 +4005,7 @@ Obtains the title of the current web page. @Component struct WebComponent { controller: WebController = new WebController() - + build() { Column() { Button('getTitle') @@ -4022,7 +4038,7 @@ Obtains the height of the current web page. @Component struct WebComponent { controller: WebController = new WebController() - + build() { Column() { Button('getPageHeight') @@ -4055,7 +4071,7 @@ Obtains the default user agent of the current web page. @Component struct WebComponent { controller: WebController = new WebController() - + build() { Column() { Button('getDefaultUserAgent') @@ -4099,7 +4115,7 @@ This API is deprecated since API version 9. You are advised to use [loadData @Component struct WebComponent { controller: WebController = new WebController() - + build() { Column() { Button('loadUrl') @@ -4160,7 +4176,7 @@ This API is deprecated since API version 9. You are advised to use [loadUrl onActive(): void -Invoked when the **\** component enters the active state. +Called when the **\** component enters the active state. This API is deprecated since API version 9. You are advised to use [onActive9+](../apis/js-apis-webview.md#onactive). @@ -4172,7 +4188,7 @@ This API is deprecated since API version 9. You are advised to use [onActive** component enters the inactive state. +Called when the **\** component enters the inactive state. This API is deprecated since API version 9. You are advised to use [onInactive9+](../apis/js-apis-webview.md#oninactive). @@ -4201,7 +4217,7 @@ This API is deprecated since API version 9. You are advised to use [onInactive9+< struct WebComponent { controller: WebController = new WebController() @State factor: number = 1 - + build() { Column() { Button('zoom') @@ -4268,7 +4284,7 @@ Zooms in on this web page by 20%. @Component struct WebComponent { controller: WebController = new WebController() - + build() { Column() { Button('zoomIn') @@ -4301,7 +4317,7 @@ Zooms out of this web page by 20%. @Component struct WebComponent { controller: WebController = new WebController() - + build() { Column() { Button('zoomOut') @@ -4319,7 +4335,7 @@ Zooms out of this web page by 20%. refresh() -Invoked when the **\** component refreshes the web page. +Called when the **\** component refreshes the web page. This API is deprecated since API version 9. You are advised to use [refresh9+](../apis/js-apis-webview.md#refresh). @@ -4331,7 +4347,7 @@ This API is deprecated since API version 9. You are advised to use [refresh @Component struct WebComponent { controller: WebController = new WebController() - + build() { Column() { Button('refresh') @@ -4409,7 +4425,7 @@ This API is deprecated since API version 9. You are advised to use [registerJava } - + ``` ### runJavaScript(deprecated) @@ -4489,7 +4505,7 @@ This API is deprecated since API version 9. You are advised to use [stop9+< @Component struct WebComponent { controller: WebController = new WebController() - + build() { Column() { Button('stop') @@ -4518,7 +4534,7 @@ This API is deprecated since API version 9. You are advised to use [clearHistory @Component struct WebComponent { controller: WebController = new WebController() - + build() { Column() { Button('clearHistory') @@ -4605,7 +4621,7 @@ Obtains the cookie management object of the **\** component. @Component struct WebComponent { controller: WebController = new WebController() - + build() { Column() { Button('getCookieManager') @@ -4959,7 +4975,7 @@ Sets the cookie. This API returns the result synchronously. Returns **true** if @Component struct WebComponent { controller: WebController = new WebController() - + build() { Column() { Button('setCookie') @@ -4992,7 +5008,7 @@ Saves the cookies in the memory to the drive. This API returns the result synchr @Component struct WebComponent { controller: WebController = new WebController() - + build() { Column() { Button('saveCookieSync') @@ -5032,7 +5048,7 @@ Obtains the cookie value corresponding to the specified URL. @Component struct WebComponent { controller: WebController = new WebController() - + build() { Column() { Button('getCookie') @@ -5073,7 +5089,7 @@ Sets a cookie value for the specified URL. @Component struct WebComponent { controller: WebController = new WebController() - + build() { Column() { Button('setCookie') @@ -5107,7 +5123,7 @@ Saves the cookies in the memory to the drive. This API uses a promise to return @Component struct WebComponent { controller: WebController = new WebController() - + build() { Column() { Button('saveCookieAsync') @@ -5146,7 +5162,7 @@ Saves the cookies in the memory to the drive. This API uses an asynchronous call @Component struct WebComponent { controller: WebController = new WebController() - + build() { Column() { Button('saveCookieAsync') @@ -5181,7 +5197,7 @@ Checks whether the **WebCookieManager** instance has the permission to send and @Component struct WebComponent { controller: WebController = new WebController() - + build() { Column() { Button('isCookieAllowed') @@ -5215,7 +5231,7 @@ Sets whether the **WebCookieManager** instance has the permission to send and re @Component struct WebComponent { controller: WebController = new WebController() - + build() { Column() { Button('putAcceptCookieEnabled') @@ -5248,7 +5264,7 @@ Checks whether the **WebCookieManager** instance has the permission to send and @Component struct WebComponent { controller: WebController = new WebController() - + build() { Column() { Button('isThirdPartyCookieAllowed') @@ -5282,7 +5298,7 @@ Sets whether the **WebCookieManager** instance has the permission to send and re @Component struct WebComponent { controller: WebController = new WebController() - + build() { Column() { Button('putAcceptThirdPartyCookieEnabled') @@ -5315,7 +5331,7 @@ Checks whether cookies exist. @Component struct WebComponent { controller: WebController = new WebController() - + build() { Column() { Button('existCookie') @@ -5343,7 +5359,7 @@ Deletes all cookies. @Component struct WebComponent { controller: WebController = new WebController() - + build() { Column() { Button('deleteEntireCookie') @@ -5370,7 +5386,7 @@ Deletes all session cookies. @Component struct WebComponent { controller: WebController = new WebController() - + build() { Column() { Button('deleteSessionCookie') @@ -5670,7 +5686,7 @@ Sets the message port in this object. For the complete sample code, see [postMes struct WebComponent { controller: WebController = new WebController() ports: WebMessagePort[] = null - + build() { Column() { Button('setPorts') diff --git a/en/application-dev/reference/arkui-ts/ts-canvasrenderingcontext2d.md b/en/application-dev/reference/arkui-ts/ts-canvasrenderingcontext2d.md index 1e0ce0647f6067d5396e131e6bcc7ac75bc6a718..138578c1ecd983536ea7688a1892baa7dec2a0ab 100644 --- a/en/application-dev/reference/arkui-ts/ts-canvasrenderingcontext2d.md +++ b/en/application-dev/reference/arkui-ts/ts-canvasrenderingcontext2d.md @@ -773,7 +773,7 @@ Clears the content in a rectangle on the canvas. Canvas(this.context) .width('100%') .height('100%') - .backgroundColor('#ffffff') + .backgroundColor('#ffff00') .onReady(() =>{ this.context.fillStyle = 'rgb(0,0,255)' this.context.fillRect(20,20,200,200) @@ -1583,7 +1583,7 @@ struct Fill { region.lineTo(270, 90) region.closePath() // Fill path - this.context.fillStyle = 'green' + this.context.fillStyle = '#00ff00' this.context.fill(region, "evenodd") }) } @@ -1749,7 +1749,7 @@ Rotates a canvas clockwise around its coordinate axes. .height('100%') .backgroundColor('#ffff00') .onReady(() =>{ - this.context.rotate(45 * Math.PI / 180) // Rotate the rectangle 45 degrees + this.context.rotate(45 * Math.PI / 180) this.context.fillRect(70, 20, 50, 50) }) } @@ -2417,7 +2417,7 @@ Restores the saved drawing context. .backgroundColor('#ffff00') .onReady(() =>{ this.context.save() // save the default state - this.context.fillStyle = "green" + this.context.fillStyle = "#00ff00" this.context.fillRect(20, 20, 100, 100) this.context.restore() // restore to the default state this.context.fillRect(150, 75, 100, 100) @@ -2455,7 +2455,7 @@ Saves all states of the canvas in the stack. This API is usually called when the .backgroundColor('#ffff00') .onReady(() =>{ this.context.save() // save the default state - this.context.fillStyle = "green" + this.context.fillStyle = "#00ff00" this.context.fillRect(20, 20, 100, 100) this.context.restore() // restore to the default state this.context.fillRect(150, 75, 100, 100) @@ -2502,9 +2502,9 @@ Creates a linear gradient. .backgroundColor('#ffff00') .onReady(() =>{ var grad = this.context.createLinearGradient(50,0, 300,100) - grad.addColorStop(0.0, 'red') - grad.addColorStop(0.5, 'white') - grad.addColorStop(1.0, 'green') + grad.addColorStop(0.0, '#ff0000') + grad.addColorStop(0.5, '#ffffff') + grad.addColorStop(1.0, '#00ff00') this.context.fillStyle = grad this.context.fillRect(0, 0, 500, 500) }) @@ -2553,9 +2553,9 @@ Creates a linear gradient. .backgroundColor('#ffff00') .onReady(() =>{ var grad = this.context.createRadialGradient(200,200,50, 200,200,200) - grad.addColorStop(0.0, 'red') - grad.addColorStop(0.5, 'white') - grad.addColorStop(1.0, 'green') + grad.addColorStop(0.0, '#ff0000') + grad.addColorStop(0.5, '#ffffff') + grad.addColorStop(1.0, '#00ff00') this.context.fillStyle = grad this.context.fillRect(0, 0, 500, 500) }) diff --git a/en/application-dev/reference/arkui-ts/ts-container-alphabet-indexer.md b/en/application-dev/reference/arkui-ts/ts-container-alphabet-indexer.md index 97b08d90ca88b2cef08ac931cc6a6405c2236dd5..0a33bf8135951134bb63fcd80caba5c00b77e683 100644 --- a/en/application-dev/reference/arkui-ts/ts-container-alphabet-indexer.md +++ b/en/application-dev/reference/arkui-ts/ts-container-alphabet-indexer.md @@ -35,9 +35,9 @@ In addition to the [universal attributes](ts-universal-attributes-size.md), the | selectedBackgroundColor | [ResourceColor](ts-types.md#resourcecolor) | Background color of the selected item.
Default value: **0x1F0A59F7** | | popupBackground | [ResourceColor](ts-types.md#resourcecolor) | Background color of the pop-up text.
Default value: **0xFFF1F3F5** | | usingPopup | boolean | Whether to use pop-up text.
Default value: **false** | -| selectedFont | [Font](ts-types.md#font) | Font style of the selected text.
Default value:
{
fontSize:10,
fontStyle:FontStyle.Normal,
fontWeight:FontWeight.Normal,
fontFamily:HarmonyOS Sans
} | -| popupFont | [Font](ts-types.md#font) | Font style of the pop-up text.
Default value:
{
fontSize:10,
fontStyle:FontStyle.Normal,
fontWeight:FontWeight.Normal,
fontFamily:HarmonyOS Sans
} | -| font | [Font](ts-types.md#font) | Default font style of the alphabetic index bar.
Default value:
{
fontSize:10,
fontStyle:FontStyle.Normal,
fontWeight:FontWeight.Normal,
fontFamily:HarmonyOS Sans
} | +| selectedFont | [Font](ts-types.md#font) | Font style of the selected text.
Default value:
{
size:10,
style:FontStyle.Normal,
weight:FontWeight.Normal,
family:'HarmonyOS Sans'
} | +| popupFont | [Font](ts-types.md#font) | Font style of the pop-up text.
Default value:
{
size:10,
style:FontStyle.Normal,
weight:FontWeight.Normal,
family:'HarmonyOS Sans'
} | +| font | [Font](ts-types.md#font) | Default font style of the alphabetic index bar.
Default value:
{
size:10,
style:FontStyle.Normal,
weight:FontWeight.Normal,
family:'HarmonyOS Sans'
} | | itemSize | string \| number | Size of an item in the alphabetic index bar. The item is a square, and the side length needs to be set. This attribute cannot be set to a percentage.
Default value: **24.0** | | alignStyle | IndexerAlign | Alignment style of the alphabetic index bar. Left alignment and right alignment are supported.
Default value: **IndexerAlign.Right**| | selected | number | Index of the selected item.
Default value: **0**| diff --git a/en/application-dev/reference/arkui-ts/ts-container-listitem.md b/en/application-dev/reference/arkui-ts/ts-container-listitem.md index 9de0b8a25a4bf88c91c0883561cc9ff61b63c086..5ff83b20ec921e32c2b3c4e6d078f89941ec55d2 100644 --- a/en/application-dev/reference/arkui-ts/ts-container-listitem.md +++ b/en/application-dev/reference/arkui-ts/ts-container-listitem.md @@ -1,6 +1,6 @@ # ListItem -The **\** component displays specific items in the list. Its width occupies the **\** component by default and must be used together with **\**. +The **\** component displays specific items in the list. It must be used together with **\**. > **NOTE** > @@ -22,7 +22,7 @@ In addition to the [universal attributes](ts-universal-attributes-size.md), the | Name| Type| Description| | -------- | -------- | -------- | -| sticky(deprecated) | [Sticky](#stickydeprecated) | Sticky effect of the list item.
Default value: **Sticky.None**
This API is deprecated since API version 9. You are advised to use **sticky** of the [\](ts-container-list.md#attributes) component. | +| sticky(deprecated) | [Sticky](#stickydeprecated) | Sticky effect of the list item.
Default value: **Sticky.None**
This API is deprecated since API version 9. You are advised to use **sticky** of the [\](ts-container-list.md#attributes) component.| | editable(deprecated) | boolean \| [EditMode](#editmodedeprecated) | Whether to enter editing mode, where the list item can be deleted or moved.
This API is deprecated since API version 9.
Default value: **false**| | selectable8+ | boolean | Whether the current list item is selectable by mouse drag.
**NOTE**
This attribute takes effect only when mouse frame selection is enabled for the parent **\** container.
Default value: **true**| | swipeAction9+ | {
start?: CustomBuilder,
end?:CustomBuilder,
edgeEffect?: [SwipeEdgeEffect](#swipeedgeeffect9),
} | Component displayed when the list item is swiped out from the screen edge.
- **start**: component on the left of the list item when the item is swiped to the right (in vertical list layout) or component above the list item when the item is swiped down (in horizontal list layout).
- **end**: component on the right of the list item when the item is swiped to the left (in vertical list layout) or component below the list item when the item is swiped up (in horizontal list layout).
- **edgeEffect**: scroll effect.
| diff --git a/en/application-dev/reference/arkui-ts/ts-container-scroll.md b/en/application-dev/reference/arkui-ts/ts-container-scroll.md index 90d17f70d4fc01ef8e80d9f13069e6d08b5d02fd..a0efd8457d392485781624d95fef53017706964a 100644 --- a/en/application-dev/reference/arkui-ts/ts-container-scroll.md +++ b/en/application-dev/reference/arkui-ts/ts-container-scroll.md @@ -131,7 +131,7 @@ Scrolls to the item with the specified index. > **NOTE** > -> Only the **\** component is supported. +> Only the **\**, **\**, and **\** components are supported. **Parameters** diff --git a/en/application-dev/reference/arkui-ts/ts-transition-animation-component.md b/en/application-dev/reference/arkui-ts/ts-transition-animation-component.md index 7e38b90f2497876d12af34b965cc34ed4e71af21..7c62710b64759d42e205eb91b010fb50e478e108 100644 --- a/en/application-dev/reference/arkui-ts/ts-transition-animation-component.md +++ b/en/application-dev/reference/arkui-ts/ts-transition-animation-component.md @@ -50,7 +50,7 @@ struct TransitionExample { }) }) if (this.flag) { - // Apply different transition effects to the appearance and disappearance of the image. + // Apply different transition effects to the showing and hiding of the image. Image($r('app.media.testImg')).width(300).height(300) .transition({ type: TransitionType.Insert, scale: { x: 0, y: 1.0 } }) .transition({ type: TransitionType.Delete, rotate: { angle: 180 } }) @@ -60,4 +60,20 @@ struct TransitionExample { } ``` -![animateTo](figures/animateTo.gif) +Diagrams: + +When the image is completely displayed: + +![animationComponent1](figures/animationComponent1.png) + +When the transition effect of 180° clockwise rotation is applied to the hiding of the image: + +![animationComponent3](figures/animationComponent3.png) + +When the image disappears completely: + +![animationComponent2](figures/animationComponent2.png) + +When the transition effect of zooming in twice horizontally is applied to the image displayed: + +![animationComponent4](figures/animationComponent4.png) diff --git a/en/application-dev/reference/arkui-ts/ts-universal-attributes-focus.md b/en/application-dev/reference/arkui-ts/ts-universal-attributes-focus.md index 363bb92058913192b1353e819c27eb74bc0cdb63..53cc8c854b46f4acd7e8a51d618ad85595bb2d2e 100644 --- a/en/application-dev/reference/arkui-ts/ts-universal-attributes-focus.md +++ b/en/application-dev/reference/arkui-ts/ts-universal-attributes-focus.md @@ -201,7 +201,7 @@ Sample code for **focusControl.requestFocus**: Use the **focusContrl.requestFocus** API to enable a specified component to obtain focus. ```ts // requestFocus.ets -import prompt from '@ohos.prompt' +import promptAction from '@ohos.promptAction'; @Entry @Component @@ -253,9 +253,9 @@ struct RequestFocusExample { .onClick(() => { var res = focusControl.requestFocus(this.selectId) // Enable the component selected by this.selectId to obtain focus. if (res) { - prompt.showToast({message: 'Request success'}) + promptAction.showToast({message: 'Request success'}) } else { - prompt.showToast({message: 'Request failed'}) + promptAction.showToast({message: 'Request failed'}) } }) } diff --git a/en/application-dev/reference/errorcodes/errorcode-filemanagement.md b/en/application-dev/reference/errorcodes/errorcode-filemanagement.md index 42192691a4127493dfe94fbef0d67135f870a253..2c352ff97bc21223625ffc048353711b949e040a 100644 --- a/en/application-dev/reference/errorcodes/errorcode-filemanagement.md +++ b/en/application-dev/reference/errorcodes/errorcode-filemanagement.md @@ -1,10 +1,5 @@ # File Management Error Codes -The error codes of the file management subsystem consist of the following: - -- Basic file I/O error codes -- User data management error codes -- User file access error codes -- Spatial statistics error codes +The error codes of the file management subsystem consist of the following:
- Basic file I/O error codes
- User data management error codes
- User file access error codes
- Spatial statistics error codes ## Basic File I/O Error Codes @@ -719,3 +714,41 @@ Fail to notify agent **Solution** Check whether the client is normal. + +## Error Code Adaptation +The APIs provided by the file management subsystem support exception handling. +Sample code for exception handling in a synchronous API: +```js +import fs from '@ohos.file.fs' + +try { + let file = fs.openSync(path, fs.OpenMode.READ_ONLY); +} catch (err) { + console.error("openSync errCode:" + err.code + ", errMessage:" + err.message); +} +``` +Sample code for exception handling in an asynchronous API (promise): +```js +import fs from '@ohos.file.fs' + +try { + let file = await fs.open(path, fs.OpenMode.READ_ONLY); +} catch (err) { + console.error("open promise errCode:" + err.code + ", errMessage:" + err.message); +} +``` + +Sample code for exception handling in an asynchronous API (callback): +```js +import fs from '@ohos.file.fs' + +try { + fs.open(path, fs.OpenMode.READ_ONLY, function(e, file){ // Asynchronous thread (such as the system call) errors are obtained via a callback. + if (e) { + console.error("open in async errCode:" + e.code + ", errMessage:" + e.message); + } + }); +} catch (err) {// Main thread errors (such as invalid parameters) are obtained by try catch. + console.error("open callback errCode:" + err.code + ", errMessage:" + err.message); +} +``` diff --git a/en/application-dev/reference/native-lib/third_party_napi/napi.md b/en/application-dev/reference/native-lib/third_party_napi/napi.md index d555b935351b675e35777f01b58789650a54de57..c14804bfc2316d4573b67a9a1b9254319c2bcc9c 100644 --- a/en/application-dev/reference/native-lib/third_party_napi/napi.md +++ b/en/application-dev/reference/native-lib/third_party_napi/napi.md @@ -2,124 +2,124 @@ ## Introduction -Node-API provides APIs to encapsulate JavaScript capabilities as a native plug-in. It is independent of the underlying JavaScript and is maintained as part of Node.js. +Node-API (NAPI) provides APIs to encapsulate JavaScript capabilities as a native plug-in. It is independent of the underlying JavaScript and is maintained as part of Node.js. ## Supported Capabilities -Node-API eliminates the differences between underlying JavaScript engines and provides a set of stable interfaces. +NAPI eliminates the differences between underlying JavaScript engines and provides a set of stable interfaces. -The OpenHarmony Native API (NAPI) component optimizes the Node-API interface implementation and provides connection to underlying engines such as ArkJS. Currently, some APIs in the [Node-API](https://nodejs.org/docs/v14.9.0/api/n-api.html) standard library are supported. +The OpenHarmony Native API component optimizes the NAPI interface implementation and provides connection to underlying engines such as ArkJS. Currently, some APIs in the [Node-API](https://nodejs.org/docs/v14.9.0/api/n-api.html) standard library are supported. -## Extended Symbols of NAPI +## Symbols Extended by the OpenHarmony API Component -|Type|Symbol|Remarks| +|Type|Symbol|Description| | --- | --- | --- | |FUNC|napi_run_script_path|Runs a JavaScript file.| -**Symbols Exported from the Standard Library** +** Symbols Exported from the NAPI Library** -|Type|Symbol|Remarks| +|Type|Symbol|Description| | --- | --- | --- | -|FUNC|napi_module_register|| -|FUNC|napi_get_last_error_info|| -|FUNC|napi_throw|| -|FUNC|napi_throw_error|| -|FUNC|napi_throw_type_error|| -|FUNC|napi_throw_range_error|| -|FUNC|napi_is_error|| -|FUNC|napi_create_error|| -|FUNC|napi_create_type_error|| -|FUNC|napi_create_range_error|| -|FUNC|napi_get_and_clear_last_exception|| -|FUNC|napi_is_exception_pending|| -|FUNC|napi_fatal_error|| -|FUNC|napi_open_handle_scope|| -|FUNC|napi_close_handle_scope|| -|FUNC|napi_open_escapable_handle_scope|| -|FUNC|napi_close_escapable_handle_scope|| -|FUNC|napi_escape_handle|| -|FUNC|napi_create_reference|| -|FUNC|napi_delete_reference|| -|FUNC|napi_reference_ref|| -|FUNC|napi_reference_unref|| -|FUNC|napi_get_reference_value|| -|FUNC|napi_create_array|| -|FUNC|napi_create_array_with_length|| -|FUNC|napi_create_arraybuffer|| -|FUNC|napi_create_external|| -|FUNC|napi_create_external_arraybuffer|| -|FUNC|napi_create_object|| -|FUNC|napi_create_symbol|| -|FUNC|napi_create_typedarray|| -|FUNC|napi_create_dataview|| -|FUNC|napi_create_int32|| -|FUNC|napi_create_uint32|| -|FUNC|napi_create_int64|| -|FUNC|napi_create_double|| -|FUNC|napi_create_string_latin1|| -|FUNC|napi_create_string_utf8|| -|FUNC|napi_get_array_length|| -|FUNC|napi_get_arraybuffer_info|| -|FUNC|napi_get_prototype|| -|FUNC|napi_get_typedarray_info|| -|FUNC|napi_get_dataview_info|| -|FUNC|napi_get_value_bool|| -|FUNC|napi_get_value_double|| -|FUNC|napi_get_value_external|| -|FUNC|napi_get_value_int32|| -|FUNC|napi_get_value_int64|| -|FUNC|napi_get_value_string_latin1|| -|FUNC|napi_get_value_string_utf8|| -|FUNC|napi_get_value_uint32|| -|FUNC|napi_get_boolean|| -|FUNC|napi_get_global|| -|FUNC|napi_get_null|| -|FUNC|napi_get_undefined|| -|FUNC|napi_coerce_to_bool|| -|FUNC|napi_coerce_to_number|| -|FUNC|napi_coerce_to_object|| -|FUNC|napi_coerce_to_string|| -|FUNC|napi_typeof|| -|FUNC|napi_instanceof|| -|FUNC|napi_is_array|| -|FUNC|napi_is_arraybuffer|| -|FUNC|napi_is_typedarray|| -|FUNC|napi_is_dataview|| -|FUNC|napi_is_date|| -|FUNC|napi_strict_equals|| -|FUNC|napi_get_property_names|| -|FUNC|napi_set_property|| -|FUNC|napi_get_property|| -|FUNC|napi_has_property|| -|FUNC|napi_delete_property|| -|FUNC|napi_has_own_property|| -|FUNC|napi_set_named_property|| -|FUNC|napi_get_named_property|| -|FUNC|napi_has_named_property|| -|FUNC|napi_set_element|| -|FUNC|napi_get_element|| -|FUNC|napi_has_element|| -|FUNC|napi_delete_element|| -|FUNC|napi_define_properties|| -|FUNC|napi_call_function|| -|FUNC|napi_create_function|| -|FUNC|napi_get_cb_info|| -|FUNC|napi_get_new_target|| -|FUNC|napi_new_instance|| -|FUNC|napi_define_class|| -|FUNC|napi_wrap|| -|FUNC|napi_unwrap|| -|FUNC|napi_remove_wrap|| -|FUNC|napi_create_async_work|| -|FUNC|napi_delete_async_work|| -|FUNC|napi_queue_async_work|| -|FUNC|napi_cancel_async_work|| -|FUNC|napi_get_node_version|| -|FUNC|napi_get_version|| -|FUNC|napi_create_promise|| -|FUNC|napi_resolve_deferred|| -|FUNC|napi_reject_deferred|| -|FUNC|napi_is_promise|| -|FUNC|napi_run_script|| -|FUNC|napi_get_uv_event_loop|| \ No newline at end of file +|FUNC|napi_module_register|Registers the NAPI native module.| +|FUNC|napi_get_last_error_info|Obtains the **napi_extended_error_info** structure, which contains the latest error information.| +|FUNC|napi_throw|Throws a JavaScript value.| +|FUNC|napi_throw_error|Throws a JavaScript **Error** with text information.| +|FUNC|napi_throw_type_error|Throws a JavaScript **TypeError** with text information.| +|FUNC|napi_throw_range_error|Throws a JavaScript **RangeError** with text information.| +|FUNC|napi_is_error|Checks whether **napi_value** indicates an error object.| +|FUNC|napi_create_error|Creates and obtains a JavaScript **Error** with text information.| +|FUNC|napi_create_type_error|Creates and obtains a JavaScript **TypeError** with text information.| +|FUNC|napi_create_range_error|Creates and obtains a JavaScript **RangeError** with text information.| +|FUNC|napi_get_and_clear_last_exception|Obtains and clears the latest exception.| +|FUNC|napi_is_exception_pending|Checks whether an exception occurs.| +|FUNC|napi_fatal_error|Raises a fatal error to terminate the process immediately.| +|FUNC|napi_open_handle_scope|Creates a context environment.| +|FUNC|napi_close_handle_scope|Closes the context environment. After the context environment is closed, all references declared in it are closed.| +|FUNC|napi_open_escapable_handle_scope|Creates an escapable handle scope from which the declared values can be returned to the parent scope.| +|FUNC|napi_close_escapable_handle_scope|Closes the escapable handle scope passed in.| +|FUNC|napi_escape_handle|Promotes the handle to the input JavaScript object so that it is valid for the lifespan of its parent scope.| +|FUNC|napi_create_reference|Creates a reference for an **Object** to extend its lifespan. The caller needs to manage the reference lifespan.| +|FUNC|napi_delete_reference|Deletes the reference passed in.| +|FUNC|napi_reference_ref|Increments the reference count for the reference passed in and returns the count.| +|FUNC|napi_reference_unref|Decrements the reference count for the reference passed in and returns the count.| +|FUNC|napi_get_reference_value|Obtains the JavaScript **Object** associated with the reference.| +|FUNC|napi_create_array|Creates and obtains a JavaScript **Array**.| +|FUNC|napi_create_array_with_length|Creates and obtains a JavaScript **Array** of the specified length.| +|FUNC|napi_create_arraybuffer|Creates and obtains a JavaScript **ArrayBuffer** of the specified size.| +|FUNC|napi_create_external|Allocates a JavaScript value with external data.| +|FUNC|napi_create_external_arraybuffer|Allocates a JavaScript **ArrayBuffer** with external data.| +|FUNC|napi_create_object|Creates a default JavaScript **Object**.| +|FUNC|napi_create_symbol|Create a JavaScript **Symbol**.| +|FUNC|napi_create_typedarray|Creates a JavaScript **TypeArray** from an existing **ArrayBuffer**.| +|FUNC|napi_create_dataview|Creates a JavaScript **DataView** from an existing **ArrayBuffer**.| +|FUNC|napi_create_int32|Creates a JavaScript **Number** from C **int32_t** data.| +|FUNC|napi_create_uint32|Creates a JavaScript **Number** from C **uint32_t** data.| +|FUNC|napi_create_int64|Creates a JavaScript **Number** from C **int64_t** data.| +|FUNC|napi_create_double|Creates a JavaScript **Number** from C **double** data.| +|FUNC|napi_create_string_latin1|Creates a JavaScript **String** from an ISO-8859-1-encoded C string.| +|FUNC|napi_create_string_utf8|Creates a JavaScript **String** from a UTF8-encoded C string.| +|FUNC|napi_get_array_length|Obtains the length of an array.| +|FUNC|napi_get_arraybuffer_info|Obtains the underlying data buffer of the **ArrayBuffer** and its length.| +|FUNC|napi_get_prototype|Obtains the prototype of the specified JavaScript **Object**.| +|FUNC|napi_get_typedarray_info|Obtains properties of the specified **TypedArray**.| +|FUNC|napi_get_dataview_info|Obtains properties of the specified **DataView**.| +|FUNC|napi_get_value_bool|Obtains the C Boolean equivalent of the given JavaScript **Boolean**.| +|FUNC|napi_get_value_double|Obtains the C double equivalent of the given JavaScript **Number**.| +|FUNC|napi_get_value_external|Obtains the external data pointer previously passed through **napi_create_external()**.| +|FUNC|napi_get_value_int32|Obtains the C int32 equivalent of the given JavaScript **Number**.| +|FUNC|napi_get_value_int64|Obtains the C int64 equivalent of the given JavaScript **Number**.| +|FUNC|napi_get_value_string_latin1|Obtains the ISO-8859-1-encoded string corresponding to the given JavaScript value.| +|FUNC|napi_get_value_string_utf8|Obtains the UTF8-encoded string corresponding to the given JavaScript value.| +|FUNC|napi_get_value_uint32|Obtains the C uint32 equivalent of the given JavaScript **Number**.| +|FUNC|napi_get_boolean|Obtains the JavaScript Boolean object based on the given C Boolean value.| +|FUNC|napi_get_global|Obtains the **global** object.| +|FUNC|napi_get_null|Obtains the **null** object.| +|FUNC|napi_get_undefined|Obtains the **undefined** object.| +|FUNC|napi_coerce_to_bool|Forcibly converts the given JavaScript value to a JavaScript Boolean value.| +|FUNC|napi_coerce_to_number|Forcibly converts the given JavaScript value to a JavaScript number.| +|FUNC|napi_coerce_to_object|Forcibly converts the given JavaScript value to a JavaScript object.| +|FUNC|napi_coerce_to_string|Forcibly converts the given JavaScript value to a JavaScript string.| +|FUNC|napi_typeof|Obtains the JavaScript type of the given JavaScript value.| +|FUNC|napi_instanceof|Checks whether the given object is an instance of the specified constructor.| +|FUNC|napi_is_array|Checks whether the given JavaScript value is an array.| +|FUNC|napi_is_arraybuffer|Checks whether the given JavaScript value is a `ArrayBuffer`.| +|FUNC|napi_is_typedarray|Checks whether the given JavaScript value is a **TypedArray**.| +|FUNC|napi_is_dataview|Checks whether the given JavaScript value is a **DataView**.| +|FUNC|napi_is_date|Checks whether the given JavaScript value is a JavaScript **Date** object.| +|FUNC|napi_strict_equals|Checks whether two JavaScript values are strictly equal.| +|FUNC|napi_get_property_names|Obtains the names of the enumerable properties of **Object** in an array of strings.| +|FUNC|napi_set_property|Sets a property for the given **Object**.| +|FUNC|napi_get_property|Obtains the requested property of the given **Object**.| +|FUNC|napi_has_property|Checks whether the given **Object** has the specified property.| +|FUNC|napi_delete_property|Deletes the **key** property from the given **Object**.| +|FUNC|napi_has_own_property|Checks whether the given **Object** has the own property named **key**.| +|FUNC|napi_set_named_property|Sets a property with the specified name for the given **Object**.| +|FUNC|napi_get_named_property|Obtains the property with the specified name in the given **Object**.| +|FUNC|napi_has_named_property|Checks whether the given **Object** has the property with the specified name.| +|FUNC|napi_set_element|Sets an element at the specified index of the given **Object**.| +|FUNC|napi_get_element|Obtains the element at the specified index of the given **Object**.| +|FUNC|napi_has_element|Obtains the element if the given **Object** has an element at the specified index.| +|FUNC|napi_delete_element|Deletes the element at the specified index of the given **Object**.| +|FUNC|napi_define_properties|Defines multiple properties for the given **Object**.| +|FUNC|napi_call_function|Calls a JavaScript function in a native method, that is, native call JavaScript.| +|FUNC|napi_create_function|Creates a native method for JavaScript to call.| +|FUNC|napi_get_cb_info|Obtains detailed information about the call, such as the parameters and **this** pointer, from the given callback info.| +|FUNC|napi_get_new_target|Obtains the **new.target** of the constructor call.| +|FUNC|napi_new_instance|Creates an instance based on the given constructor.| +|FUNC|napi_define_class|Defines a JavaScript class corresponding to the C++ class.| +|FUNC|napi_wrap|Wraps a native instance in a JavaScript object.| +|FUNC|napi_unwrap|Obtains the native instance that was previously wrapped in a JavaScript object.| +|FUNC|napi_remove_wrap|Obtains the native instance that was previously wrapped in a JavaScript object and removes the wrapping.| +|FUNC|napi_create_async_work|Creates a work object that executes logic asynchronously.| +|FUNC|napi_delete_async_work|Releases an asynchronous work object.| +|FUNC|napi_queue_async_work|Adds an asynchronous work object to the queue so that it can be scheduled for execution.| +|FUNC|napi_cancel_async_work|Cancels the queued asynchronous work if it has not been started.| +|FUNC|napi_get_node_version|Obtains the current Node-API version.| +|FUNC|napi_get_version|Obtains the latest Node-API version supported when the Node.js runtime.| +|FUNC|napi_create_promise|Creates a deferred object and a JavaScript promise.| +|FUNC|napi_resolve_deferred|Resolves a deferred object that is associated with a JavaScript promise.| +|FUNC|napi_reject_deferred|Rejects a deferred object that is associated with a JavaScript promise.| +|FUNC|napi_is_promise|Checks whether the given JavaScript value is a promise object.| +|FUNC|napi_run_script|Executes a string of JavaScript code.| +|FUNC|napi_get_uv_event_loop|Obtains the current libuv loop instance.| diff --git a/en/application-dev/security/accesstoken-guidelines.md b/en/application-dev/security/accesstoken-guidelines.md index 93b5b158051c29b5860ccb1480788db3a677a183..3bcced1762e505be29184aefe46cee2c402dbc35 100644 --- a/en/application-dev/security/accesstoken-guidelines.md +++ b/en/application-dev/security/accesstoken-guidelines.md @@ -2,9 +2,9 @@ ## When to Use -The [Ability Privilege Level (APL)](accesstoken-overview.md#app-apls) of an application can be **normal**, **system_basic**, or **system_core**. The default APL is **normal**. The [permission types](accesstoken-overview.md#permission-types) include **system_grant** and **user_grant**. For details about the permissions for apps, see the [Application Permission List](permission-list.md). +The [Ability Privilege Level (APL)](accesstoken-overview.md#app-apls) of an application can be **normal**, **system_basic**, or **system_core**. The default APL is **normal**. The [permission types](accesstoken-overview.md#permission-types) include **system_grant** and **user_grant**. For details about the permissions for applications, see the [Application Permission List](permission-list.md). -This document describes the following operations: +This document describes: - [Declaring Permissions in the Configuration File](#declaring-permissions-in-the-configuration-file) - [Declaring Permissions in the ACL](#declaring-permissions-in-the-acl) @@ -119,23 +119,22 @@ For example, if an application needs to access audio files of a user and capture If an application needs to access user privacy information or use system abilities, for example, accessing location or calendar information or using the camera to take photos or record videos, it must request the permission from users. A permission verification is performed first to determine whether the current invoker has the corresponding permission. If the application has not obtained that permission, a dialog box will be displayed to request user authorization. The following figure shows an example. -> **NOTE**
Each time before an API protected by a permission is accessed, the [**requestPermissionsFromUser()**](../reference/apis/js-apis-abilityAccessCtrl.md#requestpermissionsfromuser9) API will be called to request user authorization. After a permission is dynamically granted, the user may revoke the permission. Therefore, the previously granted authorization status cannot be persistent. +> **NOTE**
Each time before an API protected by a permission is accessed, [**requestPermissionsFromUser()**](../reference/apis/js-apis-abilityAccessCtrl.md#requestpermissionsfromuser9) will be called to request user authorization. After a permission is dynamically granted, the user may revoke the permission. Therefore, the previously granted authorization status cannot be persistent. ### Stage Model -Example: Request the permission to read calendar information for an app. +Example: Request the permission for an application to access calendar information. 1. Apply for the **ohos.permission.READ_CALENDAR** permission. For details, see [Declaring Permissions in the Configuration File](#declaring-permissions-in-the-configuration-file). -2. Call [**requestPermissionsFromUser()**](../reference/apis/js-apis-abilityAccessCtrl.md#requestpermissionsfromuser9) in the **onWindowStageCreate()** callback of the UIAbility to dynamically apply for the permission, or request user authorization on the UI based on service requirements. The return value of [requestPermissionsFromUser()](../reference/apis/js-apis-abilityAccessCtrl.md#requestpermissionsfromuser9) indicates whether the app has the target permission. If yes, the target API can be called normally. +2. Call [**requestPermissionsFromUser()**](../reference/apis/js-apis-abilityAccessCtrl.md#requestpermissionsfromuser9) in the **onWindowStageCreate()** callback of the UIAbility to dynamically apply for the permission, or request user authorization on the UI based on service requirements. The return value of [requestPermissionsFromUser()](../reference/apis/js-apis-abilityAccessCtrl.md#requestpermissionsfromuser9) indicates whether the application has the target permission. If yes, the target API can be called normally. Request user authorization in UIAbility. ```typescript import UIAbility from '@ohos.app.ability.UIAbility'; import window from '@ohos.window'; - import abilityAccessCtrl from '@ohos.abilityAccessCtrl'; - import { Permissions } from '@ohos.abilityAccessCtrl'; + import abilityAccessCtrl, { Permissions } from '@ohos.abilityAccessCtrl'; export default class EntryAbility extends UIAbility { // ... @@ -143,10 +142,10 @@ Example: Request the permission to read calendar information for an app. onWindowStageCreate(windowStage: window.WindowStage) { // Main window is created, set main page for this ability let context = this.context; - let AtManager = abilityAccessCtrl.createAtManager(); + let atManager = abilityAccessCtrl.createAtManager(); // The return value of requestPermissionsFromUser determines whether to display a dialog box to request user authorization. const permissions: Array = ['ohos.permission.READ_CALENDAR']; - AtManager.requestPermissionsFromUser(context, permissions).then((data) => { + atManager.requestPermissionsFromUser(context, permissions).then((data) => { console.info(`[requestPermissions] data: ${JSON.stringify(data)}`); let grantStatus: Array = data.authResults; if (grantStatus[0] === -1) { @@ -165,8 +164,7 @@ Example: Request the permission to read calendar information for an app. Request user authorization on the UI. ```typescript - import abilityAccessCtrl from '@ohos.abilityAccessCtrl'; - import { Permissions } from '@ohos.abilityAccessCtrl'; + import abilityAccessCtrl, { Permissions } from '@ohos.abilityAccessCtrl'; import common from '@ohos.app.ability.common'; @Entry @@ -174,10 +172,10 @@ Example: Request the permission to read calendar information for an app. struct Index { reqPermissions() { let context = getContext(this) as common.UIAbilityContext; - let AtManager = abilityAccessCtrl.createAtManager(); + let atManager = abilityAccessCtrl.createAtManager(); // The return value of requestPermissionsFromUser determines whether to display a dialog box to request user authorization. const permissions: Array = ['ohos.permission.READ_CALENDAR']; - AtManager.requestPermissionsFromUser(context, permissions).then((data) => { + atManager.requestPermissionsFromUser(context, permissions).then((data) => { console.info(`[requestPermissions] data: ${JSON.stringify(data)}`); let grantStatus: Array = data.authResults; if (grantStatus[0] === -1) { @@ -217,11 +215,11 @@ onWindowStageCreate() { } ``` ## Pre-Authorizing user_grant Permissions -By default, the **user_grant** permissions must be dynamically authorized by the user through a dialog box. However, for pre-installed apps, you can pre-authroize the permissions, for example, the **ohos.permission.MICROPHONE** permission, in the [**install_list_permission.json**](https://gitee.com/openharmony/vendor_hihope/blob/master/rk3568/preinstall-config/install_list_permissions.json) file to prevent the user authorization dialog box from being displayed. The **install_list_permissions.json** file is in the **/system/etc/app/** directory on a device. When the device is started, the **install_list_permissions.json** file is loaded. When the application is installed, the **user_grant** permissions in the file are granted. The **install_list_permissions.json** file contains the following fields: +By default, the **user_grant** permissions must be dynamically authorized by the user through a dialog box. However, for pre-installed applications, you can pre-authorize the permissions, for example, the **ohos.permission.MICROPHONE** permission for camera applications, in the [**install_list_permission.json**] file to prevent the user authorization dialog box from being displayed. The [**install_list_permissions.json** file](https://gitee.com/openharmony/vendor_hihope/blob/master/rk3568/preinstall-config/install_list_permissions.json) is in the **/system/etc/app/** directory on a device. When the device is started, the **install_list_permissions.json** file is loaded. When the application is installed, the **user_grant** permissions in the file are granted. The **install_list_permissions.json** file contains the following fields: - **bundleName**: bundle name of the application. -- `app_signature`: fingerprint information of the application. For details, see **Configuration in install_list_capability.json** in [Application Privilege Configuration Guide](../../device-dev/subsystems/subsys-app-privilege-config-guide.md). -- **permissions**: **name** specifies the name of the **user_grant** permission to pre-authorize. **userCancellable** specifies whether the user can revoke the pre-authorization. The value **true** means the user can revoke the pre-authorization; the vaue **false** means the opposite. +- **app_signature**: fingerprint information of the application. For details, see **Configuration in install_list_capability.json** in [Application Privilege Configuration Guide](../../device-dev/subsystems/subsys-app-privilege-config-guide.md). +- **permissions**: **name** specifies the name of the **user_grant** permission to pre-authorize. **userCancellable** specifies whether the user can revoke the pre-authorization. The value **true** means the user can revoke the pre-authorization; the value **false** means the opposite. > **NOTE**
This file is available only for preinstalled applications. diff --git a/en/application-dev/security/permission-list.md b/en/application-dev/security/permission-list.md index ff90272d78f26b485b9e916e4ae91ac2ffd724c2..e77eac675a9df3d0e219b4453f7a676b4e806d13 100644 --- a/en/application-dev/security/permission-list.md +++ b/en/application-dev/security/permission-list.md @@ -534,9 +534,9 @@ Allows an application to change the telephone state. **Enable ACL**: TRUE -## ohos.permission.START_ABILIIES_FROM_BACKGROUND +## ohos.permission.START_ABILITIES_FROM_BACKGROUND -Allows an application to start Feature abilities in the background. +Allows an application to start or access other components from the background. **Permission level**: system_basic @@ -1594,6 +1594,16 @@ Allows a system application to obtain the authentication and networking capabili **Enable ACL**: TRUE +## ohos.permission.APP_TRACKING_CONSENT + +Allows an application to read advertisement identifiers. + +**Permission level**: normal + +**Authorization mode**: user_grant + +**Enable ACL**: TRUE + ## ohos.permission.RUN_ANY_CODE Allows an application to run unsigned code. diff --git a/en/application-dev/task-management/continuous-task-dev-guide.md b/en/application-dev/task-management/continuous-task-dev-guide.md index b278a686e4267d7b62d123c2f6f2c338a9278ab7..b301ee707bf62ce6cf773be2b744d905e807da42 100644 --- a/en/application-dev/task-management/continuous-task-dev-guide.md +++ b/en/application-dev/task-management/continuous-task-dev-guide.md @@ -89,18 +89,22 @@ struct Index { }; // Obtain the WantAgent object by using the getWantAgent API of the wantAgent module. - wantAgent.getWantAgent(wantAgentInfo).then((wantAgentObj) => { - try { - backgroundTaskManager.startBackgroundRunning(this.context, - backgroundTaskManager.BackgroundMode.DATA_TRANSFER, wantAgentObj).then(() => { - console.info("Operation startBackgroundRunning succeeded"); - }).catch((err) => { - console.error("Operation startBackgroundRunning failed Cause: " + err); - }); - } catch (error) { - console.error(`Operation startBackgroundRunning failed. code is ${error.code} message is ${error.message}`); - } - }); + try { + wantAgent.getWantAgent(wantAgentInfo).then((wantAgentObj) => { + try { + backgroundTaskManager.startBackgroundRunning(this.context, + backgroundTaskManager.BackgroundMode.DATA_TRANSFER, wantAgentObj).then(() => { + console.info("Operation startBackgroundRunning succeeded"); + }).catch((err) => { + console.error("Operation startBackgroundRunning failed Cause: " + err); + }); + } catch (error) { + console.error(`Operation startBackgroundRunning failed. code is ${error.code} message is ${error.message}`); + } + }); + } catch (error) { + console.error(`Operation getWantAgent failed. code is ${error.code} message is ${error.message}`); + } } stopContinuousTask() { @@ -151,7 +155,7 @@ struct Index { ```ts import UIAbility from '@ohos.app.ability.UIAbility'; -import backgroundTaskManager from '@ohos.resourceschedule.backgroundTaskManager'; +import backgroundTaskManager from '@ohos.resourceschedule.backgroundTaskManager'; import wantAgent from '@ohos.app.ability.wantAgent'; const MSG_SEND_METHOD: string = 'CallSendMsg'; @@ -176,25 +180,29 @@ function startContinuousTask() { }; // Obtain the WantAgent object by using the getWantAgent API of the wantAgent module. - wantAgent.getWantAgent(wantAgentInfo).then((wantAgentObj) => { - try { - backgroundTaskManager.startBackgroundRunning(featureAbility.getContext(), - backgroundTaskManager.BackgroundMode.DATA_TRANSFER, wantAgentObj).then(() => { - console.info("Operation startBackgroundRunning succeeded"); - }).catch((error) => { + try { + wantAgent.getWantAgent(wantAgentInfo).then((wantAgentObj) => { + try { + backgroundTaskManager.startBackgroundRunning(mContext, + backgroundTaskManager.BackgroundMode.DATA_TRANSFER, wantAgentObj).then(() => { + console.info("Operation startBackgroundRunning succeeded"); + }).catch((error) => { + console.error(`Operation startBackgroundRunning failed. code is ${error.code} message is ${error.message}`); + }); + } catch (error) { console.error(`Operation startBackgroundRunning failed. code is ${error.code} message is ${error.message}`); - }); - } catch (error) { - console.error(`Operation startBackgroundRunning failed. code is ${error.code} message is ${error.message}`); - } - }); + } + }); + } catch (error) { + console.error(`Operation getWantAgent failed. code is ${error.code} message is ${error.message}`); + } } function stopContinuousTask() { try { - backgroundTaskManager.stopBackgroundRunning(featureAbility.getContext()).then(() => { + backgroundTaskManager.stopBackgroundRunning(mContext).then(() => { console.info("Operation stopBackgroundRunning succeeded"); - }).catch((err) => { + }).catch((error) => { console.error(`Operation stopBackgroundRunning failed. code is ${error.code} message is ${error.message}`); }); } catch (error) { @@ -312,7 +320,7 @@ If an application needs to interact with a continuous task in the background (fo 2. Call the APIs for requesting and canceling a continuous task in the Service ability. ```js -import backgroundTaskManager from '@ohos.resourceschedule.backgroundTaskManager'; +import backgroundTaskManager from '@ohos.resourceschedule.backgroundTaskManager'; import featureAbility from '@ohos.ability.featureAbility'; import wantAgent from '@ohos.app.ability.wantAgent'; import rpc from "@ohos.rpc"; @@ -335,18 +343,22 @@ function startContinuousTask() { }; // Obtain the WantAgent object by using the getWantAgent API of the wantAgent module. - wantAgent.getWantAgent(wantAgentInfo).then((wantAgentObj) => { - try { - backgroundTaskManager.startBackgroundRunning(featureAbility.getContext(), - backgroundTaskManager.BackgroundMode.DATA_TRANSFER, wantAgentObj).then(() => { - console.info("Operation startBackgroundRunning succeeded"); - }).catch((err) => { - console.error("Operation startBackgroundRunning failed Cause: " + err); - }); - } catch (error) { - console.error(`Operation startBackgroundRunning failed. code is ${error.code} message is ${error.message}`); - } - }); + try { + wantAgent.getWantAgent(wantAgentInfo).then((wantAgentObj) => { + try { + backgroundTaskManager.startBackgroundRunning(featureAbility.getContext(), + backgroundTaskManager.BackgroundMode.DATA_TRANSFER, wantAgentObj).then(() => { + console.info("Operation startBackgroundRunning succeeded"); + }).catch((err) => { + console.error("Operation startBackgroundRunning failed Cause: " + err); + }); + } catch (error) { + console.error(`Operation startBackgroundRunning failed. code is ${error.code} message is ${error.message}`); + } + }); + } catch (error) { + console.error(`Operation getWantAgent failed. code is ${error.code} message is ${error.message}`); + } } function stopContinuousTask() { @@ -396,7 +408,7 @@ class MyStub extends rpc.RemoteObject { } export default { - onStart(want) { + onStart() { console.info('ServiceAbility onStart'); mMyStub = new MyStub("ServiceAbility-test"); // Call the API to start the task. @@ -416,7 +428,7 @@ export default { onDisconnect() { console.info('ServiceAbility onDisconnect'); }, - onCommand(want, restart, startId) { + onCommand(want, startId) { console.info('ServiceAbility onCommand'); } }; diff --git a/en/application-dev/tools/aa-tool.md b/en/application-dev/tools/aa-tool.md index e03cdd52c6df142c13a06c918ae242c4115b323c..69db1fd8814bd5880063bb063f6c77db1b4a281c 100644 --- a/en/application-dev/tools/aa-tool.md +++ b/en/application-dev/tools/aa-tool.md @@ -6,14 +6,14 @@ The Ability Assistant provides the application debugging and testing capabilitie - help -Displays help information for the Ability Assistant. - -**Return value** - -Returns the help information. - -**Method** - + Displays help information for the Ability Assistant. + + **Return value** + + Returns the help information. + + **Method** + ```bash aa help @@ -22,97 +22,97 @@ Returns the help information. - start -Starts an application component. The target component can be the PageAbility and ServiceAbility components of the FA model or the UIAbility and ServiceExtensionAbility components of the Stage model. The **visible** tag in the configuration file of the target component cannot be set to **false**. - + Starts an application component. The target component can be the PageAbility and ServiceAbility components of the FA model or the UIAbility and ServiceExtensionAbility components of the Stage model. The **visible** tag in the configuration file of the target component cannot be set to **false**. + | Name| Description| | -------- | -------- | | -h/--help | Help information.| | -d | Device ID. Optional.| | -a | Ability name. Mandatory.| | -b | Bundle name. Mandatory.| -| -D | Debugging mode. Optional.| - -**Return value** - -Returns "start ability successfully." if the ability is started; returns "error: failed to start ability." and the corresponding error information otherwise. - -**Method** - + | -D | Debugging mode. Optional.| + + **Return value** + + Returns "start ability successfully." if the ability is started; returns "error: failed to start ability." and the corresponding error information otherwise. + + **Method** + ```bash aa start [-d ] -a -b [-D] -``` - + ``` + - stop-service -Stops a ServiceAbility. - + Stops a ServiceAbility. + | Name| Description| | -------- | -------- | | -h/--help | Help information.| | -d | Device ID. Optional.| | -a | Ability name. Mandatory.| -| -b | Bundle name. Mandatory.| - -**Return value** - -Returns "stop service ability successfully." if the ServiceAbility is stopped; returns "error: failed to stop service ability." otherwise. - -**Method** - + | -b | Bundle name. Mandatory.| + + **Return value** + + Returns "stop service ability successfully." if the ServiceAbility is stopped; returns "error: failed to stop service ability." otherwise. + + **Method** + ```bash aa stop-service [-d ] -a -b -``` - + ``` + - dump - + Prints information about an application component. - | Name| Level-2 Parameter| Description| + | Name| Level-2 Parameter| Description| | -------- | -------- | -------- | | -h/--help | - | Help information.| | -a/--all | - | Application component information in all missions.| - | -l/--mission-list | type (All logs are printed if this parameter is left unspecified.)| Mission stack information.
The following values are available for **type**:
- NORMAL
- DEFAULT_STANDARD
- DEFAULT_SINGLE
- LAUNCHER | + | -l/--mission-list | type (All logs are printed if this parameter is left unspecified.)| For better management, the service side maintains four types of MissionLists, as described below:
- **NORMAL**: MissionList that is started normally. For example, if A starts B and C, the corresponding MissionList is A->B->C.
- **DEFAULT_STANDARD**: If a MissionList is damaged, missions with the launch type set to **standard** are removed to this MissionList. The Missions in it are not associated with each other.
- **DEFAULT_SINGLE**: If a MissionList is damaged, missions with the launch type set to **singleton** are removed to this MissionList. The Missions in it are not associated with each other.
- **LAUNCHER**: MissionList for launcher abilities. | | -e/--extension | elementName | Extended component information.| | -u/--userId | UserId | Mission stack information of a specified user ID. This parameter must be used together with other parameters. Example commands: **aa dump -a -u 100** and **aa dump -d -u 100**.| | -d/--data | - | DataAbility information.| -| -i/--ability | AbilityRecord ID | Detailed information about an application component.| + | -i/--ability | AbilityRecord ID | Detailed information about an application component.| | -c/--client | - | Detailed information about an application component. This parameter must be used together with other parameters. Example commands: **aa dump -a -c** and **aa dump -i 21 -c**.| **Method** - + ```bash -aa dump -a + aa dump -a ``` ![aa-dump-a](figures/aa-dump-a.png) - + ```bash -aa dump -l + aa dump -l ``` ![aa-dump-l](figures/aa-dump-l.png) - + ```bash -aa dump -i 12 + aa dump -i 12 ``` - ![aa-dump-i](figures/aa-dump-i.png) - + ![aa-dump-i](figures/aa-dump-i.png) + - force-stop -Forcibly stops a process based on the bundle name. - -**Return value** - -Returns "force stop process successfully." if the process is forcibly stopped; returns "error: failed to force stop process." otherwise. - -**Method** - + Forcibly stops a process based on the bundle name. + + **Return value** + + Returns "force stop process successfully." if the process is forcibly stopped; returns "error: failed to force stop process." otherwise. + + **Method** + ```bash aa force-stop diff --git a/en/application-dev/ui/ui-ts-building-data-model.md b/en/application-dev/ui/ui-ts-building-data-model.md index bb3454cc6299d4910445caaae2e14f7478591425..c520596252a9652ce8ad9e00e21a0e33a93e2ba3 100644 --- a/en/application-dev/ui/ui-ts-building-data-model.md +++ b/en/application-dev/ui/ui-ts-building-data-model.md @@ -1,21 +1,19 @@ # Building a Food Data Model - -On the created page, we use various items to describe food, such as food names, calories, proteins, fats, carbohydrates, and vitamin C. This form of coding is impractical in actual development. Therefore, you need to create food data models to store and manage data in a unified manner. +In real-world development, it is impractical to describe all aspects of food in code, including the food name and nutrition facts. This is where the food data model comes into the picture. With the food data model, you can store and manage data in a unified manner. ![en-us_image_0000001267767897](figures/en-us_image_0000001267767897.png) -1. Create a folder named model and create a file named FoodData.ets therein. - -![en-us_image_0000001223127760](figures/en-us_image_0000001223127760.png) - -2. Define a food data storage model, FoodData, and an enum variable, Category. The FoodData class contains the food ID, name, category, image, calories, protein, fat, carbohydrates, and vitamin C attributes. - The ArkTS programming language is an extension of the TS language and also supports the TS syntax. +1. Create a folder named **model** and create a file named **FoodData.ets** therein. + ![en-us_image_0000001223127760](figures/en-us_image_0000001223127760.png) - ``` +2. Define a food data storage model, **FoodData**, and an enum variable, **Category**. The **FoodData** class contains **id**, **name**, **category**, **image**, **calories**, **protein**, **fat**, **carbohydrates**, and **vitaminC** attributes. + The ArkTS programming language is an extension of the TS language and also supports the TS syntax. + + ```ts enum Category { Fruit, Vegetable, @@ -50,14 +48,21 @@ On the created page, we use various items to describe food, such as food names, } ``` -3. Store food image resources in the resources > base > media directory. Use food names as the image names. - -4. Create food resource data. Create FoodDataModels.ets in the model folder and declare a food composition array, FoodComposition on the page. - In this example, you can customize more data resources when needed. Use LazyForEach to load data if a large amount of food data is involved. +3. Store food images in the **resources** > **base** > **media** directory. Use food names as the image names. -5. Create the initializeOnStartUp method to initialize the FoodData array. Export the FoodData class from FoodData.ets, and import FoodData and Category in FoodDataModels.ets. +4. Create food resource data. Create **FoodDataModels.ets** in the **model** folder and declare the food composition array **FoodComposition** on the page. The following example creates two pieces of food data. + ```ts + const FoodComposition: any[] = [ + { 'name': 'Tomato', 'image': $r('app.media.Tomato'), 'category': Category.Vegetable, 'calories': 17, 'protein': 0.9, 'fat': 0.2, 'carbohydrates': 3.9, 'vitaminC': 17.8 }, + { 'name': 'Walnut', 'image': $r('app.media.Walnut'), 'category': Category.Nut, 'calories': 654 , 'protein': 15, 'fat': 65, 'carbohydrates': 14, 'vitaminC': 1.3 } + ] ``` + + In real-world development, you can customize more data resources when needed. Use [Lazy Loading](../quick-start/arkts-rendering-control.md#lazy-loading) to load data if a large amount of food data is involved. + +5. Create the **initializeOnStartUp** method to initialize the **FoodData** array. Export the **FoodData** class from **FoodData.ets**, and import **FoodData** and **Category** in **FoodDataModels.ets**. + ```ts // FoodData.ets export enum Category { ...... diff --git a/en/application-dev/ui/ui-ts-layout-grid-container-new.md b/en/application-dev/ui/ui-ts-layout-grid-container-new.md index 8afee0cc3d48894ff646a4251c38227daef3c0fb..f51288b2a77901abf6620a6bcc8f0499fb647289 100644 --- a/en/application-dev/ui/ui-ts-layout-grid-container-new.md +++ b/en/application-dev/ui/ui-ts-layout-grid-container-new.md @@ -27,12 +27,12 @@ After you set the breakpoints, the layout listens for changes in the application The grid system defines breakpoints, which are screen width types in effect, based on the horizontal width (screen density pixels, in vp) of the screens. You can use the breakpoints to meet specific layout requirements. By default, the grid system provides four breakpoints: xs, sm, md, and lg. -| Breakpoint | Value Range (vp)| -| --------| ------ | -| xs | [0, 320) | -| sm | [320, 520) | -| md | [520, 840) | -| lg | [840, +∞) | +| Breakpoint | Value Range (vp)| +| --------| ------ | +| xs | [0, 320) | +| sm | [320, 520) | +| md | [520, 840) | +| lg | [840, +∞) | In the **\** component, you can use **breakpoints** to customize the value range of breakpoints. A maximum of six breakpoints are supported. In addition to the four default breakpoints, you can also enable the xl and xxl breakpoints for your application window layout. @@ -83,15 +83,15 @@ GridRow({ } }) { Row() { - Text(${index}) + Text(`${index}`) }.width("100%").height("50vp") }.backgroundColor(color) }) } -``` + ``` ![](figures/breakpoints.gif) - + ### Columns @@ -173,7 +173,7 @@ In the **\**, **columns** is used to set the total number of columns in ``` ![](figures/columns3.gif) - As shown above, if **columns** is only set for the sm and md screen size types, screen sizes smaller than sm use the default value 12, and screen sizes larger than md (lg, xl, and xxl) use the value of **columns** of the md type. + As shown above, if **columns** is only set for the sm and md screen size types, screen sizes smaller than sm use the default value **12**, and screen sizes larger than md (lg, xl, and xxl) use the value of **columns** of the md type. ### Gutters @@ -264,7 +264,7 @@ Sets the number of columns occupied by a child component in the grid layout, whi ForEach(this.bgColors, (color, index) => { GridCol({ span: 2 }) { Row() { - Text(${index}) + Text(`${index}`) }.width("100%").height("50vp") } .backgroundColor(color) @@ -281,7 +281,7 @@ Sets the number of columns occupied by a child component in the grid layout, whi ForEach(this.bgColors, (color, index) => { GridCol({ span: { xs: 1, sm: 2, md: 3, lg: 4 } }) { Row() { - Text(${index}) + Text(`${index}`) }.width("100%").height("50vp") } .backgroundColor(color) @@ -333,8 +333,8 @@ Sets the column offset of a child component relative to the previous child compo ### order - Sets the sequence number of a child component in the grid layout. If a child component shares an **order** value with another child component or does not have **order** set, it is displayed based on its code sequence number. A child components with a larger **order** value is placed before the one with a smaller **order** value. - If **order** is not set for all child components, those that have **order** set are displayed after those that do not have **order** set and are sorted in descending order based on the value. +Sets the sequence number of a child component in the grid layout. If a child component shares an **order** value with another child component or does not have **order** set, it is displayed based on its code sequence number. A child components with a smaller **order** value is placed before the one with a larger **order** value. +If **order** is not set for all child components, those that have **order** set are displayed after those that do not have **order** set and are sorted in ascending order based on the value. - When the value type is number, child components are sorted in the same order across screen sizes. diff --git a/en/application-dev/windowmanager/application-window-fa.md b/en/application-dev/windowmanager/application-window-fa.md index b2123e720b1bf1cb15cfe648597e6f82e7b3dae4..ee7848d49aaccd039c59a1bac2553f0b485ecc1c 100644 --- a/en/application-dev/windowmanager/application-window-fa.md +++ b/en/application-dev/windowmanager/application-window-fa.md @@ -52,7 +52,7 @@ You can create a subwindow, such as a dialog box, and set its properties. let windowClass = null; // Method 1: Create a subwindow. - let config = {name: "subWindow", windowType: window.WindowType.TYPE_APP, ctx: this.context}; + let config = {name: "subWindow", windowType: window.WindowType.TYPE_APP}; window.createWindow(config, (err, data) => { if (err.code) { console.error('Failed to create the subWindow. Cause: ' + JSON.stringify(err)); diff --git a/en/application-dev/windowmanager/application-window-stage.md b/en/application-dev/windowmanager/application-window-stage.md index 709d58ba9f469f11a3675f8fd4326e1b490a1b5d..c9d15a6227008938ed361929f6811596d55ca2ad 100644 --- a/en/application-dev/windowmanager/application-window-stage.md +++ b/en/application-dev/windowmanager/application-window-stage.md @@ -67,9 +67,9 @@ In the stage model, the main window of an application is created and maintained Call **loadContent** to load the page content to the main window. ```ts -import Ability from '@ohos.application.Ability' +import UIAbility from '@ohos.app.ability.UIAbility'; -class MainAbility extends Ability { +export default class EntryAbility extends UIAbility { onWindowStageCreate(windowStage) { // 1. Obtain the main window of the application. let windowClass = null; @@ -127,11 +127,11 @@ You can create an application subwindow, such as a dialog box, and set its prope When the subwindow is no longer needed, you can call **destroyWindow** to destroy it. ```ts - import Ability from '@ohos.application.Ability' + import UIAbility from '@ohos.app.ability.UIAbility'; let windowStage_ = null; let sub_windowClass = null; - class MainAbility extends Ability { + export default class EntryAbility extends UIAbility { showSubWindow() { // 1. Create a subwindow. windowStage_.createSubWindow("mySubWindow", (err, data) => { @@ -220,9 +220,9 @@ To create a better video watching and gaming experience, you can use the immersi Call **loadContent** to load the content to the immersive window. ```ts - import Ability from '@ohos.application.Ability' + import UIAbility from '@ohos.app.ability.UIAbility'; - class MainAbility extends Ability { + export default class EntryAbility extends UIAbility { onWindowStageCreate(windowStage) { // 1. Obtain the main window of the application. let windowClass = null; @@ -303,7 +303,7 @@ A floating window is created based on an existing task. It is always displayed i "name" : "ohos.permission.SYSTEM_FLOAT_WINDOW", "usedScene": { "abilities": [ - "MainAbility" + "EntryAbility" ], "when":"inuse" } @@ -330,11 +330,11 @@ A floating window is created based on an existing task. It is always displayed i When the floating window is no longer needed, you can call **destroyWindow** to destroy it. ```ts - import Ability from '@ohos.application.Ability' - import ExtensionContext from '@ohos.application.ServiceExtensionAbility'; + import UIAbility from '@ohos.app.ability.UIAbility'; + import ExtensionContext from '@ohos.app.ability.ServiceExtensionAbility'; import window from '@ohos.window'; - class MainAbility extends Ability { + export default class EntryAbility extends UIAbility { onWindowStageCreate(windowStage) { // 2. Create a floating window. let windowClass = null; @@ -390,4 +390,3 @@ A floating window is created based on an existing task. It is always displayed i }; ``` - \ No newline at end of file diff --git a/en/application-dev/windowmanager/system-window-stage.md b/en/application-dev/windowmanager/system-window-stage.md index 33240f364106fdab17a34926bc225e0685b2d70b..01ea738913af6d167d2ae3fffd6b10d92f40b02a 100644 --- a/en/application-dev/windowmanager/system-window-stage.md +++ b/en/application-dev/windowmanager/system-window-stage.md @@ -58,12 +58,11 @@ This section uses the volume bar as an example to describe how to develop a syst When the volume bar window is no longer needed, you can call **hide** or **destroyWindow** to hide or destroy it. ```ts -import ExtensionContext from '@ohos.application.ServiceExtensionAbility'; +import ExtensionContext from '@ohos.app.ability.ServiceExtensionAbility'; import window from '@ohos.window'; export default class ServiceExtensionAbility1 extends ExtensionContext { onCreate(want) { - console.log("[Demo] MainAbility onCreate") globalThis.abilityWant = want; // 1. Create a volume bar window. let windowClass = null; @@ -151,7 +150,6 @@ import window from '@ohos.window'; export default class ServiceExtensionAbility1 extends ExtensionContext { onCreate(want) { - console.log("[Demo] MainAbility onCreate") globalThis.abilityWant = want; // Create a volume bar window. let windowClass = null; diff --git a/en/contribute/OpenHarmony-build-rule.md b/en/contribute/OpenHarmony-build-rule.md new file mode 100644 index 0000000000000000000000000000000000000000..27f69325582cba08daf6eb66aebbf823c641af84 --- /dev/null +++ b/en/contribute/OpenHarmony-build-rule.md @@ -0,0 +1,613 @@ +# OpenHarmony Build Specifications + +## Overview + +This topic aims to guide OpenHarmony developers to enhance the build reproducibility, maintainability, and quality. The build standards team has analyzed a variety of typical build issues and summarized the build guidelines and recommendations in this topic. + +## General Build Principles + +**P01 Automate the entire build process.** + +Manual operations are error-prone and time-consuming. Automate all the build operations to make the build process more efficient and reliable. + +**P02 Make build projects and build environments code-based.** + +Use a high-level build framework such as CMake, Maven, and Gradle to describe build projects, and use Ansible or Dockerfile to describe build environments. + +This principle helps hide the complexity of the build system from developers. + +**P03 Make the build process reproducible and traceable.** + +Manage build dependencies and always explicitly specify fixed dependency versions to ensure version consistency. Incorporate build environments and build projects into the configuration file as configuration options to ensure that the build projects are traceable. + +**P04 Ensure that the build scripts are simple, clear, and easy to maintain.** + +Build scripts are also code and should be easy to read. + +**P05 Standardize the build process.** + +The build directory structure, dependencies, initialization, entry, and naming must be standardized to ensure consistency among all OpenHarmony products, platforms, and components for easier management and maintenance. + +## Build Projects + +### General Guidelines + +#### One-Click Build + +##### G.COM.01 Use build scripts to implement one-click, automated build by delivery unit. + +One-click, automated build means that no manual interventions are allowed throughout the entire build process (until the final delivery package is generated) in a build environment. + +Manual interventions include but are not limited to: manual parameter setting on the IDE; file directory creation or deletion; file creation, copying, moving, deletion, or renaming; manual setting of file attributes; file compression/decompression. + +Delivery unit refers to a product, platform, or component that can be independently compiled, loaded, deployed, and run. + +[Type] Requirement + +[Description] One-click build improves operation efficiency while greatly reducing the possibility of operation errors. + +[Negative Example] The one-click build of a component can be triggered only by the CI system but cannot be triggered locally. + +[Negative Example] Manually set the memory mapping address on the Xplorer IDE UI for a component, and then perform manual build. + +[Negative Example] Manually create the **r6c03_view\r6c03_client_view** directory for a component. + +[Positive Example] Use the python script to automatically create a directory. + +```python +dir_src = os.getcwd() +dir_client_view = r"r6c03_client_view" +# os.path is used to shield system differences. +dir_mk = os.path.join(dir_src, dir_client_view) + +cmd = "{0} {1}".format("mkdir", dir_mk) +cmd_re = subprocess.run(cmd) +``` + +#### Build Directory + +##### G.COM.02 DO NOT delete or modify source code files and their directory structures during build. + +[Type] Forbidden + +[Description] + +- If the source code directory structure is deleted or modified during the build, the build process will be non-reproducible. + +- During the build, the build output (including the target files, temporary files, and build logs) should not pollute the source code directory. + +- During the build, do not modify source files, including but not limited to copying, moving, and running **dos2unix** to convert the source code format. Any modification to the source files must be completed in the code preparation phase before the build. + +- The tool-triggered, automatic generation of source code must also be completed in the preparation phase before the build. If tools are used to automatically generate source code during the build, the source code generated (low-value and reproducible) must be isolated from the existing source code directory for better distinguishing, so as to reduce the complexity of the build system. + +[Exception] Some source code may be added or adjusted during patch build. + +##### G.COM.12 Provide appropriate permissions for files and directories created during the build. + +[Type] Requirement + +[Description] Directories or files of the target system that are created during the build must comply with the design of least privilege. For example, do not create directories or files with the **777** permission in the Linux system during the build. + +For details about common directory files and permissions in the Linux system, see the *Linux Security Configuration Standard*. + +#### Build Initialization + +##### G.COM.03 Provide the clean command for each component. + +- If the **clean** command is executed with no arguments specified, all target files, temporary files, and build logs in the build project of the current level will be cleared, and the **clean** commands of the lower-level build project are recursively called to restore the build projects to the initial state. +- If the **clean** command is executed with certain arguments specified, only the corresponding target files, temporary files, and build logs generated in the specified build will be cleared. + +[Type] Requirement + +[Description] The **clean** command prevents a build from being affected by historical build files and build logs, ensuring build reproducibility. The **clean** command without any arguments must be supported. The **clean** command with arguments applies only to internal delivery and local build. + +[Positive Example] + +``` +base_dir + |---build.suffix + |---logs + |---component_depository_1 + |---build.suffix + |---logs + |---component_depository_2 + |---build.suffix + |---logs + +# No arguments +base_dir/build.suffix clean +#....Call clean of component_depository_1 and component_depository_2. + +# With arguments: component name +base_dir/build.suffix clean component_depository_1 +#....Call clean of component_depository_1 only. + +# With arguments +component_depository_1/build.suffix clean makebin hert umpt +#....Call clean of the umpt board of component_depository_1. +``` + +##### G.COM.04 Clear legacy build files in the build environment before the build of a component. + +[Type] Requirement + +[Description] If code is downloaded for the first time and the build environment has been initialized, the build environment does not have legacy build files. In this case, you do not need to run the **clean** command. If build has been performed, run the **clean** command to clear legacy build files. + +#### Full Build + +##### G.COM.05 For a version release build, recompile all the archived deliverables (including all dependent platforms and components). DO NOT use incremental build. DO NOT change the installation disk by manually replacing files. + +A version release build refers to the build of a formally released product version (including all dependent platforms and components). + +[Type] Requirement + +[Description] Conducting incremental build after file modification may cause failures in updating some binary files and integrating new security build options into the version, causing inconsistent build results. Manually replacing files may make the build unreproducible and inconsistent. + + +#### Build Configurations + +Separate the build configuration data from the build script to prevent the build project architecture from decaying. Store configuration data, such as the source code path, build options, and target file path, in a file different from the file that stores the build script to minimize the maintenance cost of build scripts. + +##### G.COM.06 DO NOT use a file that is strongly bound to the operating system (for example, an Excel file) as a build configuration file. Use a file format recognized by different platforms, such as an XML file, as the build configuration file. + +[Type] Requirement + +[Description] Using an Excel configuration file brings the following problems: + +- The file calls Microsoft Office APIs during the build. Each time the Excel file is accessed, the Excel program is started in the background, causing slow responding. + +- A large number of Excel configurations require manual operations on the GUI, resulting in poor manageability. + +#### Build Logs + +##### G.COM.07 Generate simple and clear build logs, and use the format "timestamp + [module name] (optional) + log level + log content" for each log record. +[Type] Requirement + +You are advised to set the timestamp in the format of date and time, for example, *MM/dd/yyyy HH:mm:ss*. + +Log levels are classified into error, warning (warn), and information (info), either in lowercase or uppercase. + +You are advised to use square brackets ([]) to enclose each part of a log record. + +[Positive Example] + +[05/21/2020 00:12:40] [ERROR] mkdir: cannot create directory Permission denied. + +[Exception] If the entire log is automatically generated by a tool, you can skip the log file in the following way: Output "This project is built using + *tool name*" at the beginning of the log, for example, "This project is built using CMake." + +##### G.COM.08 Stop the build if error is displayed in the log. + +[Type] Requirement + +[Description] An error log indicates a build error that requires manual intervention, for example, an incorrect environment variable, tool version error, operating system error, or incorrect software source code. For a version release build, all errors generated during the build must be eliminated. DO NOT shield build errors. + +[Negative Example] A component is successfully built, but the build log contains a large amount of exception information, such as "fail", "critical", "cannot", "not found", "missing" and "no input files". + +##### G.COM.09 Retain only the logs of the current build in the build log file. + +[Type] Requirement + +[Description] Retaining historical build logs in the build log file may cause confusing. For example, when a new build fails, users may confuse the logs of historical successful builds with those of the new build and mistakenly consider the new build successful. + +##### G.COM.10 Add the corresponding module name to each log for quick fault locating. + +[Type] Recommendation + +[Description] If there are a large number of logs, it is difficult to quickly locate the module involved in a specific fault. Adding the corresponding module name facilitates quick fault locating. + +[Exception] The native logs of tools such as CMake contain the module paths, which can be used to locate the modules. For such logs, you do not need to add the module name information. + +#### Build Users + +##### G.COM.11 DO NOT use the super administrator **root** or system user for build. Instead, use a common user account. + +[Type] Requirement + +[Description] The super administrator **root** and system user have high system permissions. Using such an account for the build may cause the build environment to be tampered with. + +In the installation state, the **root** user account can be used. In the running state, use a common user account. If you need to run the **sudo** command for privilege escalation, comply with *IAM Security Design Specifications*. + +#### Build Output Files + +##### G.COM.12 Follow the industry conventions for build output file name extensions. + +[Type] Requirement + +[Description] An incorrect file name extension is misleading. + +The file name extensions of the output files, such as .lib and .obj files, must comply with the default naming rules of the build tools. + +[Negative Example] A text file is named ***Example*.lib**. + +[Negative Example] An object file is named ***Example*.a**. + +[Negative Example] A static library is named **lib*Example***, without a file name extension. + +[Positive Example] Query the common file name extension conventions at http://www.fileextension.org/, https://fileinfo.com/, https://www.file-extensions.org/, and http://file-extension.net/. + +Conventions about common file name extensions are as follows: + +| File Name Extension| Type Convention | File Name Extension| Type Convention | +| ---------- | -------------------- | ---------- | --------------- | +| .a | Static library | .so | Dynamic library | +| .o | Object file | .7z | 7-zip compressed file | +| .tar | TAR archive file | .gz/.gzip | GNU zip archive file| +| .pack | Java pack200 compressed file| .rar/.rar5 | RAR compressed file | + +### C/C++ Build Projects + +#### Build Directory + +##### G.C&C++.01 Standardize the build directory structure. + +Build directories are classified into Source Tree, Build Tree, and Install Tree by functionality. + +- Source Tree is the directory for storing source code and build scripts. +- Build Tree is the directory for storing build middleware. Generally, the directory name is **build**. +- Install Tree is the directory for storing build deliverables. The directory name is fixed at **output**. + +The Source Tree, Build Tree, and Install Tree directories should be isolated from each other and should not overlap. One directory cannot be used for two or more purposes. For example, it is prohibited that a directory is used as both Source Tree to store source code and Build Tree to store build middleware. + +Source Tree contains the following files and directories: + +- Build tool entry file, such as **CMakeLists.txt**. After the **add_subdirectory()** command is executed in the upper-level **CMakeLists.txt** file, the CMake automatically invokes the **CMakeLists.txt** files in the subdirectory and lower-level subdirectories. +- **build.*suffix*** script file, which is the one-click build entry. You only need to invoke this script to complete the build. In the build entry file name, *.suffix* (such as .bat, .sh, or .py) indicates the programming language used by the build script. +- **config.*suffix*** configuration file, which is used to store build options and is the unique entry for configuration. +- Build script directory, which is optional. For example, the **cmake** directory is used to store CMake scripts. CMake script files include macros, functions, and the toolchain. The **CMakeLists.txt** script contains CMake script files by executing the **include()** command, and invokes the macros and functions in the script files. +- Component code directory, which is used to store source code and build scripts of each component. + +Among the preceding files and directories, only the **CMakeLists.txt**, **build.*suffix***, and **config.*suffix*** files are mandatory. Other files and directories are optional and provided as examples for your better understanding. + +Build Tree contains the following directories: + +- **build** directory, which is used to store the build middleware. This directory may be created during the build process and may not exist in the Git repository. If the **build** directory is used to store build scripts, you can create another directory as Build Tree. + +Install Tree contains the following directories: + +- **output** directory, which is used to store deliverables. This directory may be created during the build process and may not exist in the Git repository. + +[Type] Requirement + +[Description] + +A typical directory structure is as follows: + +``` +base_dir + |---CMakeLists.txt ---| + |---build.suffix | + |---config.suffix | + |---cmake |--> Source Tree + |---component_1 | + |---component_2 | + |---...... | + |---component_n ---| + |---build ------> Build Tree + |---output ------> Install Tree +``` + +The directory structure of each component is similar to the top directory structure. Example: + +``` +component_1 + |---CMakeLists.txt ---| + |---build.suffix | + |---config.suffix | + |---cmake |--> Source Tree + |---module_1 | + |---module_2 | + |---...... | + |---module_n ---| + |---build ------> Build Tree + |---output ------> Install Tree +``` + +##### G.C&C++.02 DO NOT modify Source Tree in any form during the build process. + +[Type] Recommendation + +[Description] If Source Tree is modified during the build, the build process will be non-reproducible. + +The common operations for modifying Source Tree are as follows: + +- Patch installation +- Dotting +- Tailoring +- Automatic source code generation +- Modifying source code and then restoring it +- Adding, modifying, or deleting temporary files or directories +- Modifying the attribute or format of a file or directory (For example, modify the execute permission of a file or **dos2unix**.) + +Recommended operations are as follows: + +(1) Copy code to Build Tree, install a patch, and build the code. + +(2) As the dotting tool modifies source code and makes the build process untrustworthy, do not use the dotting tool during the build. Instead, upload the dotted code to the code repository and use the dotted code for the build. + +(3) Tailoring is an independent source code delivery requirement and can be considered as the code preparation phase. Source Tree in the versions before and after tailoring must not be modified during the build. + +(4) The automatically generated source code must be stored in Build Tree. + +(5) Modifying and then restoring source code is prohibited because the source code has changed during the build. + +(6) Temporary files or directories must be stored in Build Tree. + +(7) Ensure that the attributes and formats of files in the code repository are correct to prevent modifying them during the build. + +To check for Source Tree changes, run the **git status** command in the source code directory after the build. Source Tree should not have any change. The **git status** command may fail to detect changes to Source Tree where source code is modified and then restored. + +[Exception] + +(1) Changes in the Build Tree and Install Tree directories detected by the **git status** command are allowed. + +(2) Tailoring-caused changes detected by the **git status** command are allowed. + +##### G.C&C++.03 Use D:\*deliveryUnitName + versionNumber (optional)* and /usr1/*deliveryUnitName + versionNumber (optional)* as the build root directory in Windows and Linux, respectively. + +[Type] Recommendation + +[Description] Name the build root directory in the format of *deliveryUnitName + versionNumber*, where *versionNumber* is optional. DO NOT use the directory name that cannot identify a specific delivery unit, such as **build** or **code**. + +A clear build directory structure helps test personnel set build parameters, execute one-click build entries, and compare build results. + +The following are two root directory examples: + +``` +D:\Offering [Version (optional)] or /usr1/Offering [Version (optional)] +``` + +##### G.C&C++.04 Store all middleware generated during the build in Build Tree. + +[Type] Requirement + +[Description] The middleware generated during the build includes the makefile automatically generated by the build tool CMake, the source code automatically generated by the build script, the source code and patches copied by the build script, as well as the object files, repository files, executable programs, and build logs generated during the build. Store the middleware in Build Tree only, to avoid pollution to Source Tree or Install Tree. Do not store anything else in Build Tree. +Create the **logs** subdirectory under Build Tree and name build log files in .log format. + +##### G.C&C++.05 You can specify any directory except Source Tree and Install Tree as Build Tree. + +[Type] Requirement + +[Description] You can specify any directory other than Source Tree and Install Tree as Build Tree. In this way, the build process is irrelevant to the directory. The directory where the build is executed is Build Tree, and the build middleware is stored in this directory. Generally, the Build Tree directory name is **build**. You can also use another name. + +[Positive Example] Use CMake system variables **CMAKE_BINARY_DIR** and **CMAKE_CURRENT_BINARY_DIR** to access Build Tree to prevent coupling between Build Tree and Source Tree. + +##### G.C&C++.06 Store all deliverables in Install Tree. + +[Type] Requirement + +[Description] In the local build scenario, deliverables are directly installed on the host computer and run. In the cross-build scenario, deliverables run on the target computer. + +The deliverables include library files, executable programs, package files, and header files. They are binary interfaces provided by components. All the deliverables must be stored in Install Tree. + +Do not place any file other than deliverables (such as build middleware) in Install Tree. + +##### G.C&C++.07 You can specify any directory except Source Tree and Build Tree as Install Tree. + +[Type] Requirement + +[Description] You can specify any directory other than Source Tree and Build Tree as Install Tree. In this way, the build process is irrelevant to the directory. The Install Tree directory name is fixed at **output**. + +[Positive Example] The CMake build project supports the function of specifying the Install Tree directory through the system variable **CMAKE_INSTALL_PREFIX**. + +#### Build Entry + +##### G.C&C++.08 Provide a unique build entry for each delivery unit. Name all the build entry scripts in the **build.*suffix*** format, and store them in the build root directory. + +[Type] Requirement + +[Description] A unique build entry allows for a more efficient and automated build process. Each delivery unit has a unique build entry, making one-click, automated build possible. + +[Negative Example] The following build has multiple entry points. If no description document is provided, it is difficult to determine which entry point is correct. + +build.bat + +build_all.sh + +build_v6.sh + +[Positive Example] A typical one-click build script **build.sh** is as follows: + +```bash +#!/bin/bash + +if [ -d "build" ]; then + rm -fr build/* +else + mkdir build +fi + +if [ -d "output" ]; then + rm -fr output/* +else + mkdir output +fi + +cd build +cmake .. + +cpu_processor_num=$(grep processor /proc/cpuinfo | wc -l) +job_num=$(expr "$cpu_processor_num" \* 2) +echo Parallel job num is "$job_num" +make -j"$job_num" +``` + +##### G.C&C++.09 You can specify the build target. + +[Type] Requirement + +[Description] In routine development scenarios, you can specify the target to build modified code. A project can be built by specifying the target to meet flexible build and debugging requirements. + +[Positive Example] A typical command is as follows: + +``` +base_dir # cd build +base_dir/build # cmake .. +# Build all targets. +base_dir/build # make +# Build a specific target. +base_dir/build # make target_name +``` + +##### G.C&C++.10 Reproducible build is supported. + +[Type] Requirement + +[Description] If you do not modify the source code, clear the middleware and deliverables, or modify the build environment after the last successful build, you can perform a new round of build and obtain the same result. + +##### G.C&C++.11 Incremental build is supported. + +[Type] Recommendation + +[Description] In routine development scenarios, incremental build can improve development efficiency. Therefore, it is advised to support incremental build. + +##### G.C&C++.12 Parallel build is supported. + +[Type] Requirement + +[Description] You can run the **make -jN** command for quicker parallel build. This guideline applies only to projects that use the make tool. + +Support unified scheduling in jobserver mode to optimize the project load to the best level. The following alarms are not allowed: + +``` +warning: jobserver unavailable: using -j1. Add '+' to parent make rule. +warning: -jN forced in submake: disabling jobserver mode. +``` + +To support the jobserver mode, perform any of the following operations: + +1. Use **$(MAKE)** to directly invoke the **make** command. + + ```cmake + ExternalProject_Add(foo + SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/foo + CONFIGURE_COMMAND sh configure_ext.sh + BUILD_COMMAND $(MAKE) + ) + ``` + +2. Use the shell script to invoke the **make** command. + + ```cmake + ExternalProject_Add(foo + SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/foo + CONFIGURE_COMMAND sh configure_ext.sh + BUILD_COMMAND sh build_ext.sh $(MAKE) + ) + ``` + + The content of **build_ext.sh** is as follows: + + ```bash + #!/bin/bash + + make + ``` + + Note: **build_ext.sh** does not need to parse or use the **$(MAKE)** parameter. + +3. Use the python script to invoke the **make** command. + + ```cmake + ExternalProject_Add(foo + SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/foo + CONFIGURE_COMMAND sh configure_ext.sh + BUILD_COMMAND python build_ext.py $(MAKE) + ) + ``` + + The content of **build_ext.py** is as follows: + + ```bash + #!/usr/bin/python + # -*- coding: UTF-8 -*- + + import subprocess + + def main(): + child = subprocess.Popen("make", close_fds=False) + ret = child.wait() + return + + if __name__ == '__main__': + main() + ``` + + Note: **build_ext.py** does not need to parse or use the **$(MAKE)** parameter. + + +#### Build Dependencies + +##### G.C&C++.13 Define a build dependency file **dependence.xml** to describe all components on which the build depends. The build script automatically reads the dependency file to produce the final software package. + +[Type] Recommendation + +[Description] Make software packages based on the dependency file, so that you do not need to define dependency components in the build scripts. This improves the build process maintainability. + +#### Build Configurations + +##### G.C&C++.14 Use the configuration file **config.*suffix*** in the build root directory as the unique configuration entry for the entire delivery project. + +[Type] Requirement + +[Description] Expose the least configuration options in the top-level **config.*suffix*** file. Configure only the information about the build environment and build tool in this file. + +[Exception] If there are a small number of build options and key-value pairs are used, the configuration file can be named **config.conf**. + +### GN Build Specifications + +#### Build Rules + +##### Rule 1.1 DO NOT use GN to invoke external build tools to build software modules. + +[Type] Forbidden + +[Description] Port external components to the GN build mode to avoid unnecessary dependencies on the environment during the build and obtain common capabilities, such as compiler security options and AddressSanitizer (ASan), provided by the build framework. + +[Negative Example] In GN, use **action** to invoke **automake** and **Make** to build third-party components. + +[Exception] The Linux kernel build framework builds user-mode programs. The kernel can be independently built outside the build framework. It is acceptable that some platforms use GN to include the kernel build in the build process to deliver one-click builds. + +##### Rule 1.2 DO NOT add compiler security options that have been added to the build system to the GN file of the module. + +[Type] Forbidden + +[Description] The default options that have been added globally should not be added again to meet internal and external rules. + +| Option| Parameter | Default Value | +|---------|------------|------------| +| Stack protection | -fstack-protector-strong| Enabled| +| Fortify Source | -D_FORTIFY_SOURCE=2 -O2 | Enabled| + +[Negative Example] Add **-fstack-protector-strong** to the GN file of the module. + +##### Rule 1.3 DO NOT add build options that are opposite to the default build options to GN. + +[Type] Forbidden + +[Description] The default build options represent the default capabilities of the build system. If your module needs to remove some default build options, there must be sufficient reasons. + +[Negative Example] Add **-wno-unused** to a module to clear build alarms. + +[Exception] When porting or using a third-party component, you can overwrite the default build options based on the component requirements. + +##### Rule 2.1 Use **gn format** to format GN files to meet the format and typesetting requirements. + +[Type] Requirement + +##### Rule 2.2 Use Python instead of shell to compile **action**. + +[Type] Recommendation + +[Description] The Python environment is easier to keep code unified and can run on multiple operating systems. It also provides better scalability, readability, and testability. + +##### Rule 2.3 DO NOT modify the content in the source code directory during the execution of GN and Ninja. + +[Type] Forbidden + +[Description] The forbidden operations include but are not limited to installing patches for, copying files to, performing build tasks in, and generating intermediate files in the source code directory. + +##### Rule 2.4 Set the encoding format of the build script to UTF-8 and the newline character to UNIX format. + +[Type] Requirement + +[Negative Example] After a script is compiled on Windows, Chinese comments are used and saved as local codes. \ No newline at end of file diff --git a/en/contribute/OpenHarmony-compile-rule.md b/en/contribute/OpenHarmony-compile-rule.md new file mode 100644 index 0000000000000000000000000000000000000000..d7129129e259839de22e9c51d4907d9283fce17c --- /dev/null +++ b/en/contribute/OpenHarmony-compile-rule.md @@ -0,0 +1,1369 @@ + +# OpenHarmony Compilation Specifications + +## Overview + +**Introduction** + +This topic covers C, C++, and Java compiler options or system configurations, including language options, warning options, security options, general options, code generation options, architecture options, optimization options, and compiler macros. + +**Scope** + +This topic specifies the C, C++, and Java compiler options or system configurations to be added during the compilation and build, and briefly describes the functionalities of these options. It also explains the involved exceptions. + +This topic does not cover security options in non-OS cases (such as bare core, BIOS, Bootloader, and BSBC). It is recommended that stack protection be implemented before related specifications are released. + +You can apply for arbitration for any dispute over exceptions that are not described in this document. + +**Clause Composition** + +Each clause generally includes the title, level, and description. In the description part, "Positive Example" provides an example that meets the clause, and "Negative Example" provides an example that does not meet the clause. + +**Title** + +Brief description of the clause. + +Clauses are classified into principles and guidelines. Principles can be used to evaluate the quality of guidelines and serve as a guide for their adjustment. Guidelines are practices that need to be followed or referenced. The identifier preceding a title tells whether the clause is a principle (P) or guideline (G). + +As stipulated in *Security Engineering Guidelines*, a principle identifier takes the format of P.Number, and a guideline identifier takes the format of G.Language.Element.Number, where **Language** indicates the programming language in use, **Element** is an abbreviation of the key element (corresponding to the level-1 title in this topic) in the domain, and **Number** is a 2-bit number incremented from 01. + +| Language | Element | Catalog | Language | Element | Catalog | +|----------|---------|----------|----------|---------|--------------| +| C&C++ | LANG | Language options| C&C++ | WARN | Warning options | +| C&C++ | SEC | Security options| C&C++ | CDG | Code generation options| +| C&C++ | OPT | Optimization options| C&C++ | MD | Architecture options | +| C&C++ | OVA | General options| C&C++ | LNK | Link options | +| C&C++ | DBG | Debugging options| C&C++ | PRE | Compiler macros | +| C&C++ | OTH | Other | Java | JAVAC | Javac | +| Java | MAVEN | Maven | | | | + +**Level** + +Guidelines are classified into requirements and recommendations by level. + +- Requirement: a guideline that must be followed in principle, but can be implemented phase by phase based on the specific product version plan. + +- Recommendation: a best practice that helps mitigate risks. Your team can determine whether to follow the recommendation based on actual business conditions. + +**Description** + +This part describes the clause, its working principle, and positive and negative examples. For some clauses, exceptions are provided. + +## C/C++ Compiler Options + +### Language Options + +##### G.C&C++.LANG.01 Explicitly set the compiler language standards. + +**[Type]** Requirement + +**[Description]** According to the time sequence, common ISO C standards include **-std=c90**, **-std=c99**, and **-std=c11**, and the corresponding GNU extension standards are **-std=gnu90**, **-std=gnu99**, and **-std=gnu11**. + +According to the time sequence, common ISO C++ standards include **-std=c++98**, **-std=c++11**, **-std=c++14**, and **-std=c++1z**, and the corresponding GNU extension standards are **-std=gnu++98**, **-std=gnu++11**, **-std=gnu++14**, and **-std=gnu++1z**. + +**-ansi** corresponds to **-std=c90** in the ISO C standard and **-std=c++98** in the ISO C++ standard. + +The GNU extensions fully support the corresponding ISO standards. + +Options such as **-Wpedantic**, **-pedantic**, and **-pedantic-errors** are used to check whether the ISO standards are strictly complied with. If the syntax does not comply with the ISO standards, a warning is generated. The GNU extension syntax may also trigger warnings. + +##### G.C&C++.LANG.02 Use the new language standards. + +**[Type]** Recommendation + +##### G.C&C++.LANG.03 Explicitly set the char type, either **-fsigned-char** or **-funsigned-char**. + +**[Type]** Recommendation + +**[Description]** In the x86 environment, char is of the signed type by default. In the ARM64 environment, char is of the unsigned type by default. Generally, use the **-fsigned-char** option to ensure that the compiler can adapt to instruction sets of different platforms. + +If char is equivalent to unsigned char (this is the case for some products), you are advised to use the **-funsigned-char** option. + +##### G.C&C++.LANG.04 DO NOT enable -fpermissive for C++. + +**[Type]** Requirement + +**[Description]** The **-fpermissive** option downgrades syntax errors in the C++ code to warnings. Therefore, do not enable this option. + +### Warning Options + +#### Options + +##### G.C&C++.WARN.01 Enable -Wall to check for useful warnings. + +**[Type]** Requirement + +**[Description]** **-Wall** is a set of useful warning options recognized by the GNU Compiler Collection (GCC), including **-Wpointer-sign**, **-Wframe-address**, **-Wmaybe-uninitialized**, and **-Wint-in-bool-context**. Learn the meanings of these warnings and modify code to clear them. + +##### G.C&C++.WARN.02 Enable -Wextra to check for additional warnings except -Wall. Use -Wno-XXXX to suppress huge numbers of false positives. + +**[Type]** Requirement + +**[Description]** **-Wextra** is a set of useful warning options except **-Wall**, including **-Wempty-body**, **Wmissing-field-initializers**, and **-Wunused-parameter**. + +Enabling **-Wextra** may cause many false positives. Based on the actual test, you can use **-Wno-XXXX** to suppress false positives. For example, if your product has a huge number of false positives for **-Wunused-parameter\-Wmissing-field-initializers**, you can set **-Wextra -Wno-unused-parameter\-Wno-missing-field-initializers**, after being approved by the chief software engineer of the product line. + +##### G.C&C++.WARN.03 Enable -Weffc++ to check for Scott Meyers' Effective C++ options. + +**[Type]** Recommendation + +**[Description]** **-Weffc++** is a set of warning options corresponding to Scott Meyers' Effective C++ options. + +#### Warning Suppression + +##### G.C&C++.WARN.04 DO NOT enable -w to suppress all warnings. + +**[Type]** Requirement + +**[Description]** The warnings displayed by the compiler are useful for identifying poor code and obscure bugs. Enabling the **-w** option will suppress all warnings. + +##### G.C&C++.WARN.05 DO NOT enable -Wno-XXXX to suppress all warning options contained in -Wall. + +**[Type]** Requirement + +**[Description]** **-Wall** is a set of useful alarm options recognized by the GCC compiler. Do not use **-Wno-pointer-sign**, **-Wno-frame-address**, **-Wno-maybe-uninitialized**, or **-Wno-int-in-bool-context** to suppress the **-Wpointer-sign**, **-Wframe-address**, **-Wmaybe-uninitialized**, and **-Wint-in-bool-context** options contained in **-Wall**. + +##### G.C&C++.WARN.06 DO NOT enable -Wno-error= XXXX to degrade a specific warning that has been upgraded to an error to a warning again. + +**[Type]** Requirement + +**[Description]** **-Werror=XXXX** escalates a warning to an error. **-Wno-error= XXXX** downgrades a warning that has been escalated to an error to a warning again. + +##### G.C&C++.WARN.07 DO NOT enable -Wno-XXXX to suppress the warning options enabled by the compiler by default. + +**[Type]** Recommendation + +**[Description]** The warning options enabled by the compiler by default are useful options recognized by the GCC, such as **-Wwrite-strings**, **-Wdelete-incomplete**, and **-Wsizeof-array-argument**. Learn the meanings of these warnings and modify code to clear them. + +**[Negative Example]** In the build project of a component, **-Wno-write-strings** is used to suppress the **-Wwrite-strings** warning for 7749 times. + +**[Exception]** To ensure build consistency, you can redefine the **\_*****FILE*****\_** macro to eliminate absolute paths. In this case, you can use **-Wno-builtin-macro-redefined** to suppress the **-Wbuiltin-macro-redefined** warning. + +#### Warning Escalation + +##### G.C&C++.WARN.08 Enable -Werror or -Werror=XXXX to escalate warnings to errors. + +**[Type]** Recommendation + +**[Description]** Enable the **-Werror** or **-Werror=XXXX** option to escalate warnings to errors. + +If **-Werror** is enabled, all warnings are escalated as errors. Once a warning is generated, the compilation will fail. This helps clear all warnings during development. + +If **-Werror=XXXX** is enabled, a specific type of warning is escalated as errors. This helps clear the specified warnings during development. Example: **-Werror=implicit-function-declaration** and **-Werror=format-SEC**. + +#### Warning Management + +##### G.C&C++.WARN.09 Use unified warning options in a build project. + +**[Type]** Requirement + +**[Description]** Use unified compilation warning options to ensure the same code quality of each part. + +#### Functions + +##### G.C&C++.WARN.10 Enable -Wtrampolines to check for trampolines pointed to by nested functions. + +**[Type]** Recommendation + +**[Description]** With the **-Wtrampolines** option enabled, a warning is generated when a nested function points to a trampoline. A trampoline is a small piece of data or code that is created at runtime and resides on the stack. It contains the address of a nested function and is used to indirectly call the nested function. On some platforms, a trampoline consists of only specially processed data. However, on most platforms, it is made up of code and requires an executable stack. For an executable stack, the CPU reads instructions from the stack and executes the instructions. This makes it possible for attackers to run their code in the stack memory by means of buffer overflow attacks. + +**[Negative Example]** Define a nested function **fun** in the **main** function, and use the function pointer to call **fun**. + +- Source program +``` +\#include \ +int main(){ + int ret; + int (\*pfunc)(int a, int b); + int fun(int a, int b){ + return a + b; + } + pfunc = fun; + ret = pfunc(10, 20); + printf("test gcc option -Wtrampolines! ret = %d\\n", ret); + return 0; +} +``` + +- Compiler options +``` +gcc -Wtrampolines trampolines.c -o out +``` + +- Compilation result +``` +warning: trampoline generated for nested function 'fun' [-Wtrampolines] +``` +**[Exception]** The **-Wtrampolines** option is not supported by xt-xcc and Clang compilers. + +##### G.C&C++.WARN.11 Enable -Wformat=2 to check input/output format functions. + +**[Type]** Recommendation + +**[Description]** **-Wformat=2** is a collection of **-Wformat**, **-Wformat-nonliteral**, **-Wformat-SEC**, and **\-Wformat-y2k**. + +1. With the **-Wformat** option enabled, a warning is generated when the parameter type or format of a format function is incorrect. + +2. With the **-Wformat-nonliteral** option enabled, a warning is generated when the format string is a non-string constant. + +3. **-Wformat-SEC** and **-Wformat-y2k**: If your product has encapsulated input and output framework format functions, declare the format attribute in the API to use the compiler check capabilities. For details, see the following: +[https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html\#Common-Function-Attributes](https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html#Common-Function-Attributes) + +##### G.C&C++.WARN.12 Enable -Wstrict-prototypes to check for unspecified parameter types in the function declaration or definition. + +**[Type]** Recommendation + +**[Description]** When a function is declared or defined, explicitly specify its parameter type. The compiler checks whether the parameter type in the call matches that in the definition. + +**[Negative Example]** + +- Source program +``` +\#include \ +int func(param){ + return param; +} + +``` +- Compiler options +``` +gcc -Wstrict-prototypes strict_prototypes.c -o out +``` +- Compilation result +``` + warning: function declaration isn't a prototype [-Wstrict-prototypes] int func(param){ +``` + +Related document: SEI CERT C Coding Standard DCL07-C.Include the appropriate type +information in function declarators + +#### Binary Consistency + +##### G.C&C++.WARN.13 Enable -Wdate-time to check for time macros. + +**[Type]** Recommendation + +**[Description]** Enable the **-Wdate-time** option to check for **__DATE__**, **TIME**, or **TIMESTAMP** in the code. This ensures binary consistency. + +**[Negative Example]** + +- Source program +``` +\#include \ +int main() { + printf ("%s %s %s\\n",_DATE_,_TIME_,_TIMESTAMP_); + return 0; +} +``` +- Compiler options +``` +gcc -Wdate-time datetime.c -o out +``` +- Compilation result +``` +warning:macro "_DATE_" might prevent reproducible builds [-Wdate-time] warning:macro "_TIME_" might prevent reproducible builds [-Wdate-time] warning:macro "_TIMESTAMP_" might prevent reproducible builds [-Wdate-time] +``` + +#### Statements + +##### G.C&C++.WARN.14 Enable -Wfloat-equal to check for equality comparison of floating point numbers. + +**[Type]** Requirement + +**[Description]** Floating point numbers have precision problems and cannot be accurately determined whether they are equal or not. You are advised to check whether the absolute value of the difference between two numbers is less than the acceptable error. You can use the C function **fabs()** to obtain the absolute value of the difference, and then compare the absolute value with the acceptable error. If the absolute value is less than the acceptable error, the two numbers are equal. Otherwise, they are not equal. Note that no warning is generated when the following comparison operators are used to compare floating point numbers: \>, \<, \>=, and \<=. + +**[Negative Example]** + +- Source program +``` +\#include \ +int main() { + double a = 0.3; + double b = 0.6; + ouble c = 0.9; + if ((a+b) == c) { + /\* It seems that a+b is equal to c, but actually not. \*/ + printf("double equal\\n"); + } + return 0; +} +``` + +- Compiler options +``` +gcc -Wfloat-equal float_equal.c -o out +``` + +In the preceding example, when double-precision floating point numbers are compared, the compiler generates "warning:comparing floating point with == or != is unsafe[-Wfloat-equal]". The correct method is to set an acceptable error range. If the absolute value of the difference between two floating point numbers is within the range, they are determined to be equal. + +**[Positive Example]** + +- Source program +``` +\#include \ \#include \ \#define EPSILON 1e-6 / +\* Acceptable error range for the comparison of double-precision floating point numbers \*/ +int main() { + double a = 0.3; + double b = 0.6; + double c = 0.9; + if (fabs((a+b)-c) \< EPSILON) { + printf("double equal\\n"); + } + return 0; +} +``` + +- Compiler options + +``` +gcc -Wfloat-equal float_equal.c -o out +``` + +##### G.C&C++.WARN.15 Enable -Wswitch-default to check whether the **switch** statement has the default branch. + +**[Type]** Recommendation + +**[Description]** If the **switch** statement does not have the default branch, a compilation warning is generated under the **-Wswitch-default** option. + +**[Negative Example]** + +- Source program +``` +enum TintColor{ + RED, DARK_RED, GREEN, LIGHT_GREEN +}; +void Colorize(enum TintColor Color) { + switch (Color) { + case RED: + /\* code \*/ + break; + case DARK_RED: + break; + } +} +``` +- Compiler options +``` +gcc -Wswitch-default switch_default.c -o out +``` +- Compilation result +``` +warning: switch missing default case [-Wswitch-default] switch (Color) +``` + +#### Variables + +##### G.C&C++.WARN.16 Enable -Wshadow to check variable coverage. + +**[Type]** Recommendation + +**[Description]** With the **-Wshadow** option enabled, a warning is generated when local variables overwrite global variables and function parameters. A large number of warnings will be generated when this option is enabled in C++. You can determine whether to enable it based on the actual situation. + +**[Negative Example]** + +- Source program +``` +int num = 0; +int foo(int a, int b){ + int num = a + b; + return num; +} + +``` +- Compiler options +``` +gcc -Wshadow shadow.c -o out +``` +- Compilation result +``` +warning: declaration of 'num' shadows a global declaration [-Wshadow] int num = a + b; +``` + +##### G.C&C++.WARN.17 Enable -Wstack-usage=len to set the stack size. + +**[Type]** Recommendation + +**[Description]** If the stack memory used by a function may exceed the number of bytes specified by **len**, a compilation warning is generated. You can set **len** based on the project requirements. + +**[Negative Example]** + +- Source program +``` +void foo(void) { + int arr[1000] = {0}; + return; +} +``` +- Compiler options +``` +gcc -Wstack-usage=1000 stack_usage.c -o out +``` +- Compilation result +``` +warning: stack usage is 4012 bytes [-Wstack-usage=] void foo(void) { +``` + +##### G.C&C++.WARN.18 Enable -Wframe-larger-than=len to set the stack framework size. + +**[Type]** Recommendation + +**[Description]** If the stack framework of a function exceeds the number of bytes specified by **len**, a compilation warning is generated. You can set **len** based on the project requirements. + +**[Negative Example]** + +- Source program +``` +void foo(void) { + int arr[1000] = {0}; + return; +} +``` +- Compiler options +``` +gcc -Wframe-larger-than=1000 stack_usage.c -o out +``` +- Compilation result +``` +warning: the frame size of 4000 bytes is larger than 1000 bytes [-Wframe-larger-than=] +``` + +##### G.C&C++.WARN.19 DO NOT enable -Wno-return-local-addr and check the returned local variable address. + +**[Type]** Recommendation + +**[Description]** If a function returns the address of a local variable, the **-Wreturn-local-addr** warning is generated by default during compilation. Do not enable the **-Wno-return-local-addr** option to suppress this warning. + +**[Negative Example]** + +- Source program +``` +int\* foo() { + int a=0; + return \&a; +} +``` +- Compiler options +``` +gcc -Wreturn-local-addr return_local_addr.c -o out +``` +- Compilation result +``` +warning: function returns address of local variable [-Wreturn-local-addr] return \&a; +``` + +#### Type Conversion + +##### G.C&C++.WARN.20 Enable -Wconversion to check for implicit conversion that results in value changes. + +**[Type]** Recommendation + +**[Description]** If implicit conversion in the code causes value changes, a compilation warning is generated under the **-Wconversion** option. + +Implicit conversions that may cause value changes include: converting a real number with a decimal to an integer, converting an unsigned number to a signed number (or vice versa), and converting a number of a larger type to a smaller type. If explicit conversion is used in the code, no warning is generated under **-Wconversion** during the compilation. + +**[Negative Example]** + +- Source program +``` +int foo(void) { + double num = 1.2; + return num; +} +``` +- Compiler options +``` +gcc-Wconversion conversion.c -o out +``` +- Compilation result +``` +warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] return num; +``` + +Do not forcibly convert object pointers from one type to another. + +##### G.C&C++.WARN.21 Enable -Wcast-qual to check for missing type qualifier of the target type when the pointer type is forcibly converted. + +**[Type]** Recommendation + +**[Description]** When the pointer type is forcibly converted, the target type may not contain the type qualifier. + +For example, if the const char\* pointer type is forcibly converted to a common char\* pointer type, the type qualifier **const** is not contained. Missing this qualifier may cause modifications to the memory that is not expected to be modified. + +**[Negative Example]** + +- Source program +``` +static char buf[8]; +void foo(){ + const char\* ptr = buf; + char\* q = (char\*)ptr; +} +``` +- Compiler options +``` +gcc -Wcast-qual cast_qual.c -o out +``` +- Compilation result +``` +warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] char\* q = (char\*)ptr; +``` + +##### G.C&C++.WARN.22 Enable -Wcast-align to check for explicit pointer type conversion to prevent the number of bytes used by the target type for address alignment from increasing. + +**[Type]** Recommendation + +**[Description]** A warning is generated when the number of bytes used by the target type for address alignment increases due to explicit conversion of a pointer type in the source program. For example, on a machine where an integer is aligned to a two- or four-byte boundary, a warning is generated when char \* is converted to int \*. + +#### Arrays + +##### G.C&C++.WARN.23 Enable -Wvla to check for variable-length arrays. + +**[Type]** Recommendation + +**[Description]** If the length of an array is a variable, a compilation warning is generated under the **-Wvla** option. + +**[Negative Example]** + +- Source program +``` +void foo(int len) { + int arr[len]; +} +``` +- Compiler options +``` +gcc -Wvla val.c -o out +``` +- Compilation result +``` +warning: ISO C90 forbids variable length array 'arr' [-Wvla] int arr[len]; +``` + +#### Invalid Code + +##### G.C&C++.WARN.24 Enable -Wunused to check for invalid code. + +**[Type]** Recommendation + +**[Description]** The **-Wunused** option checks for unused variables, functions, parameters, and aliases in the code. This option contains multiple suboptions, as listed below: + +- \-Wunused-but-set-variable + +- \-Wunused-function + +- \-Wunused-label + +- \-Wunused-local-typedefs + +- \-Wunused-variable + +- \-Wunused-value + + +Warnings about formal parameters that are not used in the function are generated only when **-Wextra \-Wunused** or **-Wunused-parameter** is enabled. + +**[Negative Example]** + +- Source program +``` +void foo(void) { + int a; +} +``` +- Compiler options +``` +gcc -Wunused unused.c -o out +``` +- Compilation result +``` +warning: unused variable 'a' [-Wunused-variable] int a; +``` + +#### Preprocessing + +##### G.C&C++.WARN.25 Enable -Wundef to check for undefined identifiers in the \#if statement of preprocessing directives. + +**[Type]** Recommendation + +**[Description]** When an undefined identifier appears in the \#if statement, a warning is generated. + +**[Negative Example]** + +- Source program +``` +\#if DEFINE_A_VALUE +\#endif +``` +- Compiler options +``` +gcc -Wunused unused.c -o out +``` + +- Compilation result +``` +warning: "DEFINE_A_VALUE" is not defined, evaluates to 0 [-Wundef] \#if DEFINE_A_VALUE +``` + +#### Classes + +##### G.C&C++.WARN.26 Enable -Wnon-virtual-dtor to check for undefined virtual destructors for the base class. + +**[Type]** Recommendation + +**[Description]** Destructors of the derived class can be called during polymorphism invocation only when destructors of the base class are virtual. + +**[Negative Example]** + +- Source program +``` +class Base { + public: virtual void foo() const = 0;\ + ~Base() {} +}; +class Derived: public Base { + public: virtual void foo() const {} + Derived() {} +}; +``` +- Compiler options +``` +gcc-Wnon-virtual-dtor non_virtual_destructors.cpp -o out +``` + +- Compilation result +``` +warning: 'class Base' has virtual functions and accessible non-virtual destructor [-Wnon-virtual-dtor] +``` + +##### G.C&C++.WARN.27 Enable -Wdelete-non-virtual-dtor to check whether the pointer of the base class is used for deletion when no virtual destructor is defined for the base class. + +**[Type]** Recommendation + +**[Description]** If the pointer of the base class is used for deletion when no virtual destructor is defined for a base class, undefined behavior may occur. Do not enable the **-Wno-delete-non-virtual-dtor** option to suppress this type of warning. + +**[Negative Example]** + +- Source program +``` +class Base { + public: virtual void f(); +}; +class Sub: public Base { + public: void f(int); +}; +int main() { + Sub\ * sub = new Sub(); + Base\ * base = sub; + delete base; +} +``` +- Compiler options +``` +gcc--Woverloaded-virtual overloaded_virtual.cpp -o out +``` +- Compilation result +``` +warning: deleting object of polymorphic class type 'Base' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] delete base; +``` + +##### G.C&C++.WARN.28 Enable -Woverloaded-virtual to check for hiding virtual functions of the base class. + +**[Type]** Recommendation + +**[Description]** A derived class redefines the virtual function of the base class, causing that function to be hidden. If this is the case, a warning is generated when **-Woverloaded-virtual** is enabled. + +**[Negative Example]** + +- Source program +``` +class Base { + public: virtual void f(); +}; +class Sub: public Base { + public: void f(int); +}; +``` +- Compiler options +``` +gcc--Woverloaded-virtual overloaded_virtual.cpp -o out +``` +- Compilation result +``` +warning: by 'void Sub::f(int)' [-Woverloaded-virtual] void f(int); +``` +### Security Options + +#### Options + +##### G.C&C++.SEC.01 Enable the stack protection options. + +**[Type]** Requirement + +**[Description]** + +**User-mode Linux** + +Application phase: compiler options + +Application scope: relocatable files (.o), dynamic libraries, and executable programs. + +Syntax: -fstack-protector-all/-fstack-protector-strong + +Description: + +In the case of a buffer overflow vulnerability, an attacker can overwrite the return address on the stack to hijack the control flow. When stack protection is enabled, a canary word is inserted between the buffer and the control flow. Generally, this canary word is overwritten when the attacker overwrites the return address. By checking the canary word, you can determine whether an overflow attack occurs. + +1\. Enable **-fstack-protector-strong** in GCC 4.9 and later versions. + +2\. Enable **-fstack-protector-all** in versions earlier than GCC 4.9. + +3\. This feature is not supported in the Wind River Linux 4.3 + MIPS environment. + +**Kernel-mode Linux** + +Application phase: compiler options + +Application scope: kernel mode of the Linux platform + +Usage: Enable **CONFIG_CC_STACKPROTECTOR** or **CONFIG_CC_STACKPROTECTOR_STRONG** before kernel compilation. + +Description: + +In kernel 3.14 and later versions, **CONFIG_CC_STACKPROTECTOR_STRONG** is supported, and **CONFIG_CC_STACKPROTECTOR** (corresponding to **-fstack-protector**) is changed to **CONFIG_CC_STACKPROTECTOR_REGULAR**. In kernel 4.18 and later versions, **CONFIG_CC_STACKPROTECTOR_REGULAR** (corresponding to **-fstack-protector**) is changed to **CONFIG_STACKPROTECTOR**, and **CONFIG_CC_STACKPROTECTOR_STRONG** (corresponding to **-fstack-protector-strong**) is changed to **CONFIG_STACKPROTECTOR_STRONG**. + +Exception: You do not need to enable this feature if the OS kernel in use, which must fall into one of the following scenarios, does not support it. + +1. The OS version is the latest official version or recommended version. + +2. The OS version in a mandatory selection for purposes of product compatibility. + +3. The OS version cannot be upgraded due to commercial reasons. + +**LiteOS** + +Application phase: compiler options + +Application scope: LiteOS V200R003C00 and later versions + +Syntax: -fstack-protector-all/-fstack-protector-strong + +Description: + +1. Enable **-fstack-protector-strong** in GCC 4.9 and later versions. + +2. Enable **-fstack-protector-all** in versions earlier than GCC 4.9. + +Exception: You do not need to enable this feature if the compiler does not provide this option or hardware stack protection is supported, as described below: + +1. Versions earlier than IAR 8.20 do not support stack protection. + +2. Hardware stack protection is provided. For example, some products in the ARC architecture can provide hardware stack protection, and hardware exceptions are triggered in the case of stack overflow. + +##### G.C&C++.SEC.02 Enable the ASLR option. + +**[Type]** Requirement + +Type for the high address space layout randomization (ASLR) and force ASLR option on the Windows platform: Recommendation + +**[Description]** + +**User-mode Linux** + +a. Run the **echo 2 \>/proc/sys/kernel/randomize_va_space** command to enable the system randomization configuration. + +Application phase: runtime system configuration + +Application scope: heap, stack, and memory mapping segment (mmap base address, shared libraries, and vDSO page) + +Syntax: echo 2 \>/proc/sys/kernel/randomize_va_space + +Description: + +ASLR is a security technique used to prevent the exploit of buffer overflow vulnerabilities. It randomizes the layout of linear regions such as heaps, stacks, and shared libraries, making it harder for attackers to predict target addresses and preventing them from locating attack code, which leads to reduced overflow attacks. When **randomize_va_space** is set to **1**, the stack, data segment, and vDSO are randomized. When **randomize_va_space** is set to **2**, the heap address is also randomized. + +To use the highest level ASLR, set **randomize_va_space** to **2**. + +b. Enable the PIC option to randomly load dynamic libraries. + +Application phase: compiler options + +Application scope: dynamic libraries + +Syntax: –fPIC(-fpic) + +Description: + +The position-independent code (PIC) option implements code segment relocation on a data segment, so the code segment does not change when .so files are being loaded. In this case, all processes share a code segment copy. + +Both the **\-fPIC** and **-fpic** options ensure that GCC produces PIC. The only difference is that **-fPIC** produces larger code whereas **-fpic** produces smaller code. + +c. Enable the PIE option to randomly load executable files. + +Application phase: compile options and link options + +Application scope: executable programs + +Syntax: –fPIE (-fpie) -pie + +Description: + +Position-independent executable (PIE) files can be loaded randomly in the same manner as shared libraries during loading and execution. The PIE can effectively reduce the success rate of fixed address attacks and buffer overflow attacks. + +(1) Check whether hot patch versions support the PIE options. If not, do not use any PIE option. + +(2) **-fPIE** is a compiler option, and **-pie** is a link option. + +(3) **-fPIE** produces larger code, whereas **-fpic** produces smaller code. + +**LiteOS** + +a. Enable random loading of code segments and data segments. + +Application phase: compiler options, link options, and runtime system configuration + +Application scope: LiteOS V200R003C00 and later versions + +Usage: Compile the image into a random image, and then randomly correct the address during image loading. + +Description: + +1. This feature depends on the bootloader that supports random address loading and depends on the MMU and DDR space. + +2. When this feature is enabled, the performance decreases by about 10%. + +3. The **-fPIE** and **-pie** options use the Global Offset Table (GOT) to implement address randomization. Both GCC and in-house HCC compilers support this feature. + +4. If the cost is high and cannot be implemented, provide specific data to the TMG for review. + +Exception: You do not need to enable this feature in the case of product hardware design or startup process restrictions, as described below: + +1. XIP scenario, where the system directly runs on the flash memory. + +2. ROM-based scenario, that is, all or part of the code is ROM-based and cannot be reloaded. + +3. The bootloader does not support random address loading. + +b. Enable random loading of dynamic libraries. + +Application phase: compiler options + +Application scope: LiteOS V200R003C00 and later versions + +Syntax: -fPIC + +Description: **-fPIC** is used in the dynamic library compilation phase. + +##### G.C&C++.SEC.03 Enable GOT RELRO. + +**[Type]** Requirement + +**[Description]** + +**User-mode Linux** + +a. Partial RELRO + +Application phase: link options + +Application scope: dynamic libraries and executable programs + +Syntax: -Wl,-z,relro + +Description: + +A dynamically linked executable and linkable format (ELF) binary uses the GOT to dynamically resolve functions in shared libraries. Attackers can leverage the buffer overflow to modify the function addresses of GOT entries in an attempt to attack the system. By adding the Relocation Read-Only (RELRO) option, you can prevent the GOT from being maliciously overwritten. + +b. Full RELRO + +Application phase: link options + +Application scope: dynamic libraries and executable programs + +Syntax: -Wl,-z,now + +Description: + +After partial RELRO is enabled and then the now option is enabled, full RELRO can be implemented. In other words, **-Wl,-z,relro,-z,now** is used to implement full RELRO. It can defend against Return to Procedural Linkage Table (Ret2PLT) attacks, but not buffer overflow attacks. + +If your product uses a large number of functions in shared libraries, applying RELRO will slow down program loading (startup), but it does not affect the runtime performance. + +##### G.C&C++.SEC.04 Enable the non-executable stack option/data execution protection option to implement non-executable stack protection. + +**[Type]** Requirement + +**[Description]** + +**User-mode Linux** + +Application phase: link options + +Application scope: dynamic libraries and executable programs + +Syntax: -Wl,-z,noexecstack + +Description: + +1. If there are nested functions, functional errors may occur. In this case, use **-Wtrampolines** to check the code. The version must be GCC 4.6.4 or later. +2. Wind River Linux 4.3 does not support this feature. +3. Wind River Linux 6 + MIPS does not support this feature. + +**LiteOS** + +Application phase: runtime system configuration + +Application scope: LiteOS V200R003C00 and later versions + +Usage: The runtime configuration stack cannot be executed, and the data segment (BSS and DATA) cannot be executed. + +Description: This feature requires the hardware to support memory protection units such as MMU, MPU, and PMP. + +##### G.C&C++.SEC.05 Use the -s option or the strip tool to remove the symbol tables. + +**[Type]** Requirement for user-mode Linux and recommendation for other platforms + +**[Description]** + +**User-mode Linux** + +Application phase: link options + +Application scope: dynamic libraries and executable programs + +Usage: -s (strip tool) + +Description: + +Symbols play a vital role in the linking process. The essence of a linking process is to link multiple target files together. A symbol can be regarded as the adhesive for linking. The entire linking process is completed based on symbols. After linking is complete, the symbol table will no longer affect the running of executable files. Instead, it can be exploited by attackers. Therefore, deleting the symbol table can help defend against hacker attacks. In addition, it can help reduce the file size. + +1. For static libraries, relocatable files (.o) cannot be stripped. Otherwise, compilation errors occur. The symbol table can be removed only for products involving ELF executable files and dynamic libraries. + +2. For components and platforms that are delivered only to internal products, a formal mechanism must be provided to instruct downstream products to delete the symbol table in the release phase. + +3. Stripping affects the locating of network problems and hot patches. Therefore, the versions before and after stripping must be synchronized in the build process. That is, the versions that are not stripped must be reserved locally for patch making and online commissioning. The following solutions can be used: + + 3.1 During compilation, the executor generates executable files and dynamic library versions whose symbol tables are not stripped. The versions are archived to the VMP (CMC) for hot patches. + + 3.2 Use the strip tool to delete symbol tables from dynamic libraries and executable files. + + 3.3 The executable files and dynamic libraries with symbol tables removed can be compressed to the startup software package. + +4. The strip tool and the **-s** option can achieve the same effect of removing the symbol table. If the **-s** option is used, the version will be compiled and built twice. You are advised to use the strip tool before release. The strip level is the default value, for example, stripbin.out. + +**LiteOS** + +Application phase: link options + +Application scope: LiteOS V200R003C00 and later versions + +Syntax: -s(strip) + +Description: The compilation result of LiteOS products for burning is a .bin file, which does not contain symbol table. Therefore, you are advised not to enable this feature. + +##### G.C&C++.SEC.06 Do not use the Run-time Search Path option. + +**[Type]** Requirement + +**[Description]** + +**User-mode Linux** + +Application phase: link options + +Application scope: dynamic libraries and executable programs + +Syntax: -Wl,--disable-new-dtags,--rpath,/libpath1:/libpath2;-Wl,--enable-new-dtags,--rpath,/libpath1:/libpath2 + +Description: + +This option is used to protect against the substitute of the **LD_LIBRARY_PATH** for a dynamic library with the same name. This option specifies a path for the runtime dynamic library search, which has a higher search priority than the path specified by **LD_LIBRARY_PATH**. When an executable file searches for a dynamic library at run time, it first searches the path specified by **--rpath** and then searches the path specified by **LD_LIBRARY_PATH**. In the case **LD_LIBRARY_PATH =[attackpath]**, using this option can effectively prevent against the substitute of the **LD_LIBRARY_PATH** for a dynamic library with the same name. However, this option has limitations. For example, if the specified path is not secure, common users can use malicious programs to replace normal programs in these directories, causing privilege escalation and subsequently resulting in insecure path vulnerabilities. + +##### G.C&C++.SEC.07 Enable write protection for code segments and data segments. + +**[Type]** Recommendation + +**[Description]** + +**LiteOS** + +a. Configure write protection for code segments and read-only data segments. + +Application phase: runtime system configuration + +Application scope: LiteOS V200R003C00 and later versions + +Usage: The runtime configuration code segment and read-only data segment cannot be modified. + +Description: This feature requires the hardware to support memory protection units such as MMU, MPU, and PMP. + +##### G.C&C++.SEC.10 Enable the compiler macro FORTIFY_SOURCE to enable the FS option. + +**[Type]** Recommendation + +**[Description]** + +**User-mode Linux** + +Application phase: compiler options + +Syntax: -D_FORTIFY_SOURCE=2 -O2 + +Description: + +When a program uses a static buffer with a fixed size, adding this option will allow the compiler or runtime library to check the call of related functions at compile time or run time. + +In principle, the recommended level is -O2, which delivers a better performance optimization effect than O1. If the product is based on O2, -O1 can be used. + +Add the option to a branch version first and conduct performance testing. Then determine whether to add the option to the mainline version based on the test result. + +**LiteOS** + +Application phase: compiler options + +Application scope: LiteOS V200R003C00 and later versions + +Syntax: -D_FORTIFY_SOURCE=2 -O2 + +Description: + +1. The benefits of the option are related to the implementation of the library. + +2. Currently, LiteOS uses the musl library. If the product uses another library that supports related functionalities, enable the option as required. + +Exception: You do not need to enable this option if the library does not support this feature, as described below: + +1. Setting D_FORTIFY_SOURCE=2 for the musl library does not take effect, which may cause misleading. Therefore, you do not need to enable D_FORTIFY_SOURCE. + +##### G.C&C++.SEC.11 Enable the ftrapv option to detect integer overflow. + +**[Type]** Recommendation + +**[Description]** + +User-mode Linux and LiteOS + +Application phase: compiler options + +Syntax: -ftrapv + +After the **-ftrapv** option is used, the addition, subtraction, and multiplication operations on signed integers are performed by using functions contained in a GCC library libgcc.c instead of CPU instructions. + +Using this option greatly affects the performance. You are not advised enabling the option in the release version. + +##### G.C&C++.SEC.13 Enable the stack check option. + +**[Level]** + +Recommendation for user-mode Linux + +Requirement (disabled) for LiteOS + +**[Description]** + +**User-mode Linux** + +Application phase: compiler options + +Application scope: relocatable files, dynamic libraries, and executable programs. + +Syntax: -fstack-check + +Description: + +The **stack-check** option checks the stack space in a program at compile time. If the stack space exceeds the alarm threshold, an alarm is generated. Then, an extra instruction is generated in the program to check whether the stack overflows at run time. The **stack-check** option sets a secure buffer at the lowest bottom of each stack. If the stack space applied in the function enters the security buffer, a Storage_Error exception is triggered. However, the generated code does not process exceptions. If an exception is detected, a message is sent to notify the OS. It ensures that the OS can detect stack extension. + +Using this option greatly affects the performance. You are advised to enable the option in the debug version, but not the release version. + +Implementation suggestion: optional + +**LiteOS** + +Application phase: compiler options + +Application scope: LiteOS V100R003C00 and later versions + +Syntax: -fstack-check + +Description: After the stack check option is enabled, the program may access an invalid address, causing execution exceptions. Therefore, do not enable it on the LiteOS platform. + +### Optimization Options + +#### Options + +##### P.C&C++.01 Select an appropriate optimization level based on the actual test result. + +**[Description]** Based on the actual test result, try different code optimization options to see if they are really faster for the program. + +##### G.C&C++.OPT.01 Preferentially select -O2, -Os, and -O3. + +**[Type]** Recommendation + +##### G.C&C++.OPT.02 Use -fno-strict-aliasing to disable strict alias optimization when many pointers of different types need to be converted. + +**[Type]** Recommendation + +**[Description]** **-O2** of GCC enables **-fstrict-aliasing** for strict alias rule optimization. The compiler assumes that the same memory address will never store different types of data. This optimization option is relatively radical. To avoid optimization issues caused by the conversion between pointers of different types in the code, you can use **-fno-strict-aliasing** to disable the optimization. A good practice is to modify the code to follow strict alias rules. + +Using the **-fno-strict-aliasing** option may affect product performance. For example, in the test of a performance-sensitive component of a product, the performance of **-O2 \-fno-strict-aliasing** decreases by 9% compared with **-O2**. + +##### G.C&C++.OPT.03 In the x86/ARM architecture, use -fno-omit-frame-pointer to disable stack frame pointer (SFP) optimization for DOPRA-based products. + +**[Type]** Recommendation + +**[Description]** **-fno-omit-frame-pointer**: The -O (-O1) option of GCC +enables the **-fomit-frame-pointer** optimization option, that is, removing the frame pointer used during function invoking. This optimization makes the code difficult to debug. You are advised to disable the optimization by using the **-fno-omit-frame-pointer** option. + +You need to balance performance optimization and debugging information retention. + +### Code Generation Options + +#### Options + +##### G.C&C++.CDG.01 Use -fno-common to check for uninitialized global variables in the data segment of the target file. + +**[Type]** Requirement + +**[Description]** With the **-fno-common** option enabled, a warning is generated when an uninitialized global variable placed in the data segment of the target file is declared in two compilation units. Defining multiple temporary global variables increases the difficulty in code maintenance, reduce the linking speed, and consume more space. + +##### G.C&C++.CDG.02: Use -freg-struct-return to return a struct in the register. + +**[Type]** Recommendation + +**[Description]** With the **-freg-struct-return** option, the register returns the struct and union. + +With the **-fpcc-struct-return** option, the memory instead of the register is used to return a struct and union (either short or long). + +You are advised to use the register to return the struct and union. For a small struct, this is more efficient than **-fpcc-struct-return**. + +If neither **-fpcc-struct-return** nor **-freg-struct-return** is used, GNU CC uses the standard rules specified by the target machine. If there is no standard rule, GNU CC uses **-fpcc-struct-return** by default except on the machine where GNU CC is the main compiler. If a standard can be selected, the register return mode is selected. + +Note that this option affects binary compatibility and should be unified for the entire product. + +##### G.C&C++.CDG.03 Use -fvisibility=hidden to set the visibility of symbols in the default ELF image to hidden. + +**[Type]** Recommendation + +**[Description]** The **-fvisibility=hidden** option makes only APIs in the dynamic library externally visible, effectively implementing binary modularization. This option helps increase the speed of dynamic library linking and loading and prevent symbol conflicts. However, after this option is enabled, the cost of patching the module function needs to be considered because the original global symbol now has the LOCAL attribute, the name needs to be changed when the patch is installed (the DOPRA patch specification has detailed naming rules), and the patch building cost will increase. Balance the benefits against the costs before enabling this option. + +##### G.C&C++.CDG.04 Use -fstrong-eval-order to enable the expression calculation sequence rule. + +**[Type]** Recommendation + +**[Description]** The **-fstrong-eval-order** option determines the calculation sequence of subexpressions based on C++17 specifications. For example, when the option is not enabled, +the expression T().m_i = A().B() may generate the evaluation sequence A() T() B(), which is different from that expected. This option is automatically enabled when **-std=c++17** is enabled. However, **-std=c++14** is used in GCC 7.3 by default. You are advised to enable this option explicitly to reduce unexpected behavior. + +### General Options + +#### Options + +##### G.C&C++.OVA.01 Enable the general option -pipe. + +**[Type]** Recommendation + +**[Description]** With the **-pipe** option enabled, multiple pipes are concurrently used during compilation to shorten compilation time. + +### Architecture Options + +#### Options + +##### G.C&C++.MD.01 Explicitly specify the following architecture options for embedded software. + +1. Soft and hard floating points (added or not added based on CPU-supported types) + +2. Instruction set (such as march=armv7-a and march=armv8-a) + +**[Type]** Requirement + +### Link Options + +#### Options + +##### G.C&C++.LNK.01 Enable the link options -Wl,-Bsymbolic, -rdynamic, and -Wl,--no-undefined. + +**[Type]** Recommendation + +**[Description]** With the **-Wl,-Bsymbolic** option enabled, the symbol with the same name preferentially uses the local .so file to reduce GOT redirections. +The **-rdynamic** option resolves the reverse dependency problem of dlopen. The .bin file returns symbol names through addresses. If this option is disabled, backtrace_symbol returns an address that cannot be used for locating. This option increases the size of the .bin file. + +The **-Wl,--no-undefined** option identifies runtime loading errors in the linking period. If this option is enabled, the linking time is prolonged due to dependency verification in the linking period. If dependency libraries specified by **-l** are incomplete, functional errors may occur. You need to balance between performance and functions. + + +### Debugging Options +#### Options + +##### G.C&C++.DBG.01 DO NOT carry debugging information during version release build. + +**[Type]** Requirement + +**[Description]** The debugging information refers to the symbol table and the detailed debugging information table. According to the security regulations, the debugging information is not mandatory for running and should be deleted from the release package. However, the information loss adversely affects maintenance and debugging, such as hot patches, perf analysis, and stack capture. + +If the **-s** link option is used, no debugging information is generated. Note that the build-id of the component generated by this method is different from that of the rebuilt components without the **-s** option, and therefore it cannot be directly used to locate faults in the GDB. You can also use **objcopy --only-keep-debug \ \** and **objcopy objcopy --strip-unneeded \** to separate debugging symbols after linking. In this way, the deliverables do not contain debugging information. + +If **-g** is enabled in the compilation phase to generate a detailed debugging information table, binary differences may occur in different directories due to the absolute path information of the source code. In this case, you can use **-fdebug-prefix-map=old=new** to map the absolute path to a relative path. + +### Compiler Macros +#### Options + +##### G.C&C++.PRE.01 Specify a specific purpose of each -D compiler macro and create a list of -D compiler macros. + +**[Type]** Requirement + +**[Description]** Each time a -D compiler macro is added, additional testing is required. Verify that the code modifications made on each software -D compiler macro are applicable to other -D compiler macros. First, for all -D compiler macros, software build is required to eliminate compilation errors. Second, complete testing is mandatory for all -D compiler macros. + +Delete all unused -D compiler macros. + +### Other +#### Options + +##### G.C&C++.OTH.01 DO NOT use duplicate or inclusion compiler options in a build project. + +**[Type]** Recommendation + +**[Description]** Duplicate compiler options cause redundant information and hinder maintenance. If the compiler options have different parameters, the source file may be compiled in a way different than initially expected. + +Using compiler options with inclusion relationships also causes redundancy. For example, **-Wall** contains more than 40 sub-warning options, and **-O** contains more than 40 sub-optimization options. When they are used together with sub-options, redundancy occurs. + +**[Negative Example]** A component takes the value of the compiler optimization option **-O** for 7055 times, and multiple **-O** options, for example, **-O2...-O6** and **-O2...-O3**, exist in a build project. + +\# The use of **-Wall** and **-Waddress** at the same time causes redundancy. + +gcc -Wall -Waddress -c test.c -o test.o + +\# The use of **-O** and **-fauto-inc-dec** at the same time causes redundancy. + +gcc -O -fauto-inc-dec -c test.c -o test.o + +##### G.C&C++.OTH.02 DO NOT use conflicting options. + +**[Type]** Recommendation + +**[Description]** Most **-f** and **-W** have two opposite options, +such as **-fname** and **-fno-name**, as well as **-Wname** and **-Wno-name**. If they are referenced at the same time, conflicts occur, which is confusing and inconvenient for maintenance. + +**[Negative Example]** + +\# Reference both **-fomit-frame-pointer** and **-fno-omit-frame-pointer**. + +``` +set(CMAKE_C_FLAGS "-MD -MF -Wall -save-temps -fverbose-asm -fsigned-char +\-fomit-frame-pointer -fno-stack-protector \\ + +\-fno-delete-null-pointer-checks -fno-common -freg-struct-return -O2 +\-fno-omit-frame-pointer -fno-strength-reduce" ) +``` + +##### G.C&C++.OTH.03 Compiler options are compiled in the following sequence: optimization levels (such as -O2) + general options + warning options + language options + code generation options + architecture options (MD-dependent options) + optimization options + security options + custom macros. + +**[Type]** Recommendation + +**[Description]** Place compiler option sets prior to specific options. For example, write **-Wall** before **-Wformat=2**. + +**[Positive Example]** + +``` +\# Copyright (c) Huawei Technologies Co., Ltd. 2019. All rights reserved. +\# toolchain for ARMA15(without FPU)HI1381/HI1215 +\# cpu_family = arm +\# bit_width_in_run = 32 +\# cpu_core = a15 +\# compile flags +set(CC_OPT_LEVEL "-O2") +set(CC_OVERALL_FLAGS "-pipe") +set(CC_WARN_FLAGS "-Wall -Wextra -Wdate-time -Wtrampolines -Wfloat-equal +\-Wshadow -Wformat=2") +set(CC_LANGUAGE_FLAGS "-fsigned-char") +set(CC_CDG_FLAGS "-fno-common -freg-struct-return") +set(CC_MD_DEPENDENT_FLAGS "-mfloat-abi=soft -march=armv7-a -mtune=cortex-a15") +set(CC_OPT_FLAGS "-fno-strict-aliasing -fno-omit-frame-pointer") +set(CC_SEC_FLAGS "-fPIC -fstack-protector-strong --param=ssp-buffer-size=4") +set(CC_DEFINE_FLAGS "-DXXXXX") +set(CC_ALL_OPTIONS "\${CC_OPT_LEVEL} \${CC_OVERALL_FLAGS} \${CC_WARN_FLAGS} +\${CC_LANNGUAGE_FLAGS} \\ +\${CC_CDG_FLAGS} \${CC_MD_DEPENDENT_FLAGS} \${CC_OPT_FLAGS} \${CC_SEC_FLAGS} +\${CC_DEFINE_FLAGS}") + +\# public link flags +set(PUBLIC_LNK_FLAGS "-rdynamic -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now") + +\# link flag for module +set(SHARED_LNK_FLAGS "-shared \${PUBLIC_LNK_FLAGS}") +set(PIE_EXE_LNK_FLAGS "-pie \${PUBLIC_LNK_FLAGS}") + +``` + +## Java Compiler Options + +### Language Level +#### Options + +##### G.JAVA.LANG.01 Use the same Java compiler language level for each delivery unit, and use the same language level as that of the Java version in use. + +**[Type]** Requirement + +**[Description]** If the compiler language levels of multiple modules are different, different compiler options need to be configured for these modules. Consequently, the compilation scripts are inconsistent. + +If the compiler language level corresponding to the Java version is used, a warning is displayed during compilation when the code is not recommended by the Java version. For example, when you use a Java 7 API, which is annotated as @Deprecated and replaced with a new API in Java 8, a warning is display during compilation if the compiler language level 8 is used. + +### Maven +#### Options + +##### G.JAVA.MAVEN.01 DO NOT use **-X** during version release to avoid generating a large number of debug logs. + +**[Type]** Requirement + +**[Description]** **-X** is a debug option. If **-X** is enabled, a large number of debug logs will be generated. + +### Javac +#### Options + +##### G.JAVA.JAVAC.01 DO NOT use -nowarn, -Xlint:none, or -Xlint:name to suppress all or some javac compilation warnings, and DO NOT use -g:none or -g:[keyword list] to suppress all or some debugging information. + +**[Type]** Requirement + +**[Description]** Compilation warnings help detect code defects and risks in advance. Suppressing compilation warnings brings potential risks to code quality. If the **-g:none** or **-g:[keywordlist]** option is used, too little or too much debugging information is generated, which adversely affects code maintainability or reduces operating efficiency. + +**[Exception]** -Xlint:all,-processing + +Annotations processed at run time do not require an annotation processor. Such compilation warnings can be suppressed by using the **-processing** parameter of **-Xlint**. + +##### G.JAVA.JAVAC.02 Use -source, -target, and -Xlint:all, and set showWarnings in maven-compiler-plugin to true. + +**[Type]** Requirement + +**[Description]** + +**\-source** specifies the Java source file version accepted by the compiler. + +**\-target** specifies the version of the class file generated by the compiler. + +**\-Xlint:all** enables all recommended compilation warnings. + +If **showWarnings** is left blank or set to **false**, some compilation warnings cannot be detected. + +**[Positive Example]** + +``` +\ + +\org.apache.maven.plugins\ + +\maven-compiler-plugin\ + +\ + +\1.8\ + +\1.8\ + +\true\ + +\ + +\-Xlint:all\ + +\ + +\ + +\ + +``` diff --git a/en/contribute/open-source-compliance-issue-management.md b/en/contribute/open-source-compliance-issue-management.md new file mode 100644 index 0000000000000000000000000000000000000000..49bc5f5d2acbbd73a52843ddeaffd6e10af29ebd --- /dev/null +++ b/en/contribute/open-source-compliance-issue-management.md @@ -0,0 +1,28 @@ +# Open Source Compliance Issue Management Process +## Issue Classification and Reporting Process +Open source compliance issues are issues related to licenses, copyrights, open source fragment reference, and open source obligation fulfillment. They are classified into public compliance issues and repository-dedicated compliance rectification issues. + +- Public compliance issues include but are not limited to the following: + - Community compliance requirements (including processes, rules, and engineering methods) + - Open source compliance consulting (including third-party compliance) + - Community compliance suggestions + - Compliance issues for which the home modules and code repositories cannot be determined + - Issues for which compliance or noncompliance cannot be determined (including repository-dedicated issues for which compliance or noncompliance cannot be determined) + - Other scenarios not included in repository-dedicated issues + +- Repository-dedicated compliance rectification issues are specific issues that have been clearly identified as noncompliance in a given repository and require only rectification tasks. +### Public Compliance Issues +If you find any public compliance issue, submit an issue on the [Issues](https://gitee.com/openharmony/community/issues) tab page in the community repository, start the issue title with **[Compliance]**, and provide a detailed description. +### Repository-dedicated Compliance Rectification Issues +If you find any compliance issue in a specific repository, submit an issue on the **Issues** tab page in that repository, start the issue title with **[Compliance]**, and provide a detailed description. + +## Issue Labels + +Committers of the community repository regularly review public compliance issues, and committers of the respective code repository regularly review repository-dedicated compliance rectification issues. +They will attach the **sig-compliance** label to issues prefixed with **[Compliance]**. + +## Issue Management Process +Routine management is carried out for compliance issues based on the OpenHarmony [Issue Dashboard] (http://ci.openharmony.cn/quality/issueDashboard). (Compliance issues are filtered based on the **[Compliance]** prefix and **sig-compliance** label). The compliance SIG routinely handles public compliance issues based on regular meetings and routinely checks whether the repository-dedicated compliance rectification issues are resolved before version release. + +In principle, public compliance issues should be replied within 14 days after they are submitted. For compliance issues that require urgent handling, send them to the [Compliance SIG leader](https://gitee.com/openharmony/community/blob/8e25fc45b1fa2f51fbfc627f243be415fa31385e/sig/sig-compliance/sig_compliance_cn.md#leader) by email. + \ No newline at end of file diff --git a/en/device-dev/driver/driver-platform-gpio-des.md b/en/device-dev/driver/driver-platform-gpio-des.md index 34d6279ffab201e88471dc0a043de62f0a0413c3..38cb4a1bab78d48e0729711ce693c06f232ca752 100644 --- a/en/device-dev/driver/driver-platform-gpio-des.md +++ b/en/device-dev/driver/driver-platform-gpio-des.md @@ -138,7 +138,7 @@ int32_t ret; ret = GpioSetDir(3, GPIO_DIR_OUT); // Set GPIO pin 3 as an output. if (ret != 0) { - HDF_LOGE("GpioSerDir: failed, ret %d\n", ret); + HDF_LOGE("GpioSetDir: failed, ret %d\n", ret); return ret; } ``` diff --git a/en/device-dev/kernel/Readme-EN.md b/en/device-dev/kernel/Readme-EN.md index 243ae9fb87332aa7ba04b381fecc814f610ffb93..ad2bb3f9e459a3d8fbee4edf192dd74187ff7fbe 100644 --- a/en/device-dev/kernel/Readme-EN.md +++ b/en/device-dev/kernel/Readme-EN.md @@ -26,6 +26,7 @@ - [Exception Debugging](kernel-mini-memory-exception.md) - [Trace](kernel-mini-memory-trace.md) - [LMS](kernel-mini-memory-lms.md) + - [Shell](kernel-mini-debug-shell.md) - Appendix - [Kernel Coding Specification](kernel-mini-appx-code.md) - [Standard Libraries](kernel-mini-appx-lib.md) @@ -135,7 +136,7 @@ - [Magic Key](kernel-small-debug-shell-magickey.md) - [User-Space Exception Information](kernel-small-debug-shell-error.md) - [Trace](kernel-small-debug-trace.md) - - [Perf](kernel-mini-memory-perf.md) + - [Perf](kernel-small-debug-perf.md) - [LMS](kernel-small-memory-lms.md) - [Process Debugging](kernel-small-debug-process-cpu.md) - Kernel-Mode Memory Debugging diff --git a/en/device-dev/kernel/kernel-mini-appx-lib.md b/en/device-dev/kernel/kernel-mini-appx-lib.md index 9f1021017b7ae99e88bee3430cf365076226b739..17a997d2411dc5ec5b9f9b4231c99dc526d77d2b 100644 --- a/en/device-dev/kernel/kernel-mini-appx-lib.md +++ b/en/device-dev/kernel/kernel-mini-appx-lib.md @@ -177,7 +177,7 @@ int main (void) { // ... osKernelInitialize(); // Initialize CMSIS-RTOS. - osThreadNew(app_main, NULL, NULL); // Create the main thread of the application. + osThreadNew(app_main, NULL, NULL); // Create the main thread of the application. osKernelStart(); // Start to execute the thread. for (;;) {} } @@ -196,14 +196,14 @@ The OpenHarmony kernel uses the **musl libc** library and self-developed APIs an #### Available APIs - **Table 1** APIs for process management + **Table 11** APIs for process management | Header File| API| Description| | -------- | -------- | -------- | | \#include <stdlib.h> | void abort(void); | Terminates the thread.| | \#include <assert.h> | void assert(scalar expression); | Terminates the thread if the assertion is false.| -| \#include <pthread.h> | int pthread_cond_destroy(pthread_cond_t *cond); | Destroys a condition variable.| -| \#include <pthread.h> | int pthread_cond_init(pthread_cond_t *restrict cond, const pthread_condattr_t \*restrict attr); | Initializes a condition variable.| +| \#include <pthread.h> | int pthread_cond_destroy(pthread_cond_t \*cond); | Destroys a condition variable.| +| \#include <pthread.h> | int pthread_cond_init(pthread_cond_t \*restrict cond, const pthread_condattr_t \*restrict attr); | Initializes a condition variable.| | \#include <pthread.h> | int pthread_cond_timedwait(pthread_cond_t \*restrict cond, pthread_mutex_t \*restrict mutex, const struct timespec \*restrict abstime); | Waits for the condition.| | \#include <pthread.h> | int pthread_condattr_init(pthread_condattr_t \*attr); | Initializes the condition variable attribute.| | \#include <pthread.h> | int pthread_mutex_unlock(pthread_mutex_t \*mutex); | Unlocks a mutex.| @@ -212,13 +212,13 @@ The OpenHarmony kernel uses the **musl libc** library and self-developed APIs an | \#include <pthread.h> | pthread_t pthread_self(void); | Obtains the ID of the current thread.| | \#include <pthread.h> | int pthread_getschedparam(pthread_t thread, int \*policy, struct sched_param \*param); | Obtains the scheduling policy and parameters of a thread.| | \#include <pthread.h> | int pthread_setschedparam(pthread_t thread, intpolicy, const struct sched_param \*param); | Sets a scheduling policy and parameters for a thread.| -| \#include <pthread.h> | int pthread_mutex_init(pthread_mutex_t \* __restrict m, const pthread_mutexattr_t \*__restrict a); | Initializes a mutex.| +| \#include <pthread.h> | int pthread_mutex_init(pthread_mutex_t *\_restrict m, const pthread_mutexattr_t \*__restrict a); | Initializes a mutex.| | \#include <pthread.h> | int pthread_mutex_lock(pthread_mutex_t \*m); | Locks a mutex.| | \#include <pthread.h> | int pthread_mutex_trylock(pthread_mutex_t \*m); | Attempts to lock a mutex.| | \#include <pthread.h> | int pthread_mutex_destroy(pthread_mutex_t \*m); | Destroys a mutex.| | \#include <pthread.h> | int pthread_attr_init(pthread_attr_t \*attr); | Initializes a thread attribute object.| | \#include <pthread.h> | int pthread_attr_destroy(pthread_attr_t \*attr); | Destroys a thread attribute object.| -| \#include <pthread.h> | int pthread_attr_getstacksize(const pthread_attr_t \*attr, size_t \*stacksize); | Obtains the stack size of a thread attribute object.| +| \#include <pthread.h> | int pthread_attr_getstacksize(const pthread_attr*t \*attr, size*t \*stacksize); | Obtains the stack size of a thread attribute object.| | \#include <pthread.h> | int pthread_attr_setstacksize(pthread_attr_t \*attr, size_t stacksize); | Sets the stack size for a thread attribute object.| | \#include <pthread.h> | int pthread_attr_getschedparam(const pthread_attr_t \*attr, struct sched_param \*param); | Obtains scheduling parameter attributes of a thread attribute object.| | \#include <pthread.h> | int pthread_attr_setschedparam(pthread_attr_t \*attr, const struct sched_param \*param); | Sets scheduling parameter attributes for a thread attribute object.| @@ -226,9 +226,9 @@ The OpenHarmony kernel uses the **musl libc** library and self-developed APIs an | \#include <pthread.h> | int pthread_setname_np(pthread_t pthread, constchar \*name); | Sets the thread name.| | \#include <pthread.h> | int pthread_cond_broadcast(pthread_cond_t \*c); | Unblocks all threads that are currently blocked on the condition variable **cond**.| | \#include <pthread.h> | int pthread_cond_signal(pthread_cond_t \*c); | Unblocks a thread.| -| \#include <pthread.h> | int pthread_cond_wait(pthread_cond_t \*__restrictc, pthread_mutex_t \*__restrict m); | Waits for the condition.| +| \#include <pthread.h> | int pthread_cond_wait(pthread_cond_t *\__restrictc, pthread_mutex_t \*__restrict m); | Waits for the condition.| - **Table 2** APIs for file system management + **Table 12** APIs for file system management | Header File| API| Description| | -------- | -------- | -------- | @@ -250,7 +250,7 @@ The OpenHarmony kernel uses the **musl libc** library and self-developed APIs an | \#include <sys/stat.h> | int fstat(int fd, struct stat \*buf); | Obtains file status.| | \#include <sys/statfs.h> | int statfs(const char \*path, struct statfs \*buf); | Obtains the file system information for a file in a specified path.| - **Table 3** APIs for time management + **Table 13** APIs for time management | Header File| API| Description| | -------- | -------- | -------- | @@ -265,19 +265,19 @@ The OpenHarmony kernel uses the **musl libc** library and self-developed APIs an | \#include <unistd.h> | int usleep(useconds_t usec); | Goes to hibernation, in microseconds.| | \#include <time.h> | int nanosleep(const struct timespec \*tspec1, structtimespec \*tspec2); | Suspends the current thread till the specified time.| | \#include <time.h> | int clock_gettime(clockid_t id, struct timespec \*tspec); | Obtains the clock time.| -| \#include <time.h> | int timer_create(clockid_t id, struct sigevent \*__restrict evp, timer_t \*__restrict t); | Creates a timer for a thread.| +| \#include <time.h> | int timer_create(clockid_t id, struct sigevent *\__restrict evp, timer_t \*__restrict t); | Creates a timer for a thread.| | \#include <time.h> | int timer_delete(timer_t t); | Deletes the timer for a thread.| -| \#include <time.h> | int timer_settime(timer_t t, int flags, const structitimerspec \*__restrict val, struct itimerspec \*__restrict old); | Sets a timer for a thread.| +| \#include <time.h> | int timer_settime(timer_t t, int flags, const struct itimerspec *\__restrict val, struct itimerspec \*_restrict old); | Sets a timer for a thread.| | \#include <time.h> | time_t time (time_t \*t); | Obtains the time.| | \#include <time.h> | char \*strptime(const char \*s, const char \*format, struct tm \*tm); | Converts the time string into the time **tm** structure.| - **Table 4** APIs for util + **Table 14** APIs for util | Header File| API| Description| | -------- | -------- | -------- | -| \#include <stdlib.h> | int atoi(const char \*nptr); | Converts the string pointed to by **nptr** into an integer (**int** type).| -| \#include <stdlib.h> | long atol(const char \*nptr); | Converts the string pointed to by **nptr** into a long Integer (long type).| -| \#include <stdlib.h> | long long atoll(const char \*nptr); | Converts the string pointed to by **nptr** into a long long Integer (long long type).| +| \#include <stdlib.h> | int atoi(const char \*nptr); | Converts a string into an integer (**int** type).| +| \#include <stdlib.h> | long atol(const char \*nptr); | Converts the string into a long Integer (**long** type).| +| \#include <stdlib.h> | long long atoll(const char \*nptr); | Converts a string into a long longer integer (**long long** type).| | \#include <ctype.h> | int isalnum(int c); | Checks whether the passed character is alphanumeric.| | \#include <ctype.h> | int isascii(int c); | Checks whether the passed character is an ASCII character.| | \#include <ctype.h> | int isdigit(int c); | Checks whether the passed character is a digit.| @@ -302,17 +302,17 @@ The OpenHarmony kernel uses the **musl libc** library and self-developed APIs an | \#include <strings.h> | int strncasecmp(const char \*s1, const char \*s2, size_t n); | Compares the bytes of the specified length in two strings, ignoring case.| | \#include <strings.h> | int strcasecmp(const char \*s1, const char \*s2); | Compares two strings, ignoring case.| | \#include <string.h> | int strncmp(const char \*s1, const char \*s2, size_t n); | Compares the bytes of the specified length in two strings.| -| \#include <string.h> | char \*strrchr(const char \*s, int c); | Searches for the last occurrence of a character in a string.| +| \#include <string.h> | char \*strrchr(const char \*s, int c); | Searches for a character in a string.| | \#include <string.h> | char \*strstr(const char \*haystack, const char \*needle); | Searches for the specified substring in a string.| | \#include <stdlib.h> | long int strtol(const char \*nptr, char \*\*endptr, int base); | Converts the string pointed to by **nptr** into a **long int** value according to the given **base**.| -| \#include <stdlib.h> | unsigned long int strtoul(const char \*nptr, char\*\*endptr, int base); | Converts the string pointed to by **nptr** into an unsigned long integer.| -| \#include <stdlib.h> | unsigned long long int strtoull(const char \*nptr,char \*\*endptr, int base); | Converts the string pointed to by **nptr** into an unsigned long long integer.| +| \#include <stdlib.h> | unsigned long int strtoul(const char \*nptr, char\*\*endptr, int base); | Converts a string into an unsigned long integer.| +| \#include <stdlib.h> | unsigned long long int strtoull(const char \*nptr,char \*\*endptr,int base); | Converts a string into an unsigned long long integer.| | \#include <regex.h> | int regcomp(regex_t \*preg, const char \*regex,int cflags); | Compiles a regular expression.| | \#include <regex.h> | int regexec(const regex_t \*preg, const char \*string, size_t nmatch, regmatch_t pmatch[], int eflags); | Executes the compiled regular expression.| | \#include <regex.h> | void regfree(regex_t \*preg); | Releases the regular expression.| | \#include <string.h> | char \*strerror(int errnum); | Obtains an error message string of the specified error code.| - **Table 5** APIs for math operations + **Table 15** APIs for math operations | Header File| API| Description| | -------- | -------- | -------- | @@ -322,7 +322,7 @@ The OpenHarmony kernel uses the **musl libc** library and self-developed APIs an | \#include <math.h> | double round(double x); | Rounds off the value from zero to the nearest integer.| | \#include <math.h> | double sqrt(double x); | Obtains the square root of **x**.| - **Table 6** APIs for I/O operations + **Table 16** APIs for I/O operations | Header File| API| Description| | -------- | -------- | -------- | @@ -335,16 +335,16 @@ The OpenHarmony kernel uses the **musl libc** library and self-developed APIs an | \#include <stdio.h> | int fileno(FILE \*stream); | Obtains the file descriptor for a stream.| | \#include <stdio.h> | FILE \*fopen(const char \*path, const char \*mode); | Opens a stream.| | \#include <stdio.h> | int fputs(const char \*s, FILE \*stream); | Writes a line to the specified stream.| -| \#include <stdio.h> | size_t fread(void \*ptr, size_t size, size_t nmemb,FILE \*stream); | Reads a stream.| +| \#include <stdio.h> | size_t fread(void \*ptr, size_t size, size_t nmemb, FILE \*stream); | Reads a stream.| | \#include <stdio.h> | int fseek(FILE \*stream, long offset, int whence); | Sets the position of the stream pointer.| | \#include <stdio.h> | long ftell(FILE \*stream); | Obtains the position of the stream pointer.| -| \#include <stdio.h> | size_t fwrite(const void \*ptr, size_t size, size_tnmemb,FILE \*stream); | Writes data to a stream.| +| \#include <stdio.h> | size_t fwrite(const void \*ptr, size_t size, size_tnmemb, FILE \*stream); | Writes data to a stream.| | \#include <stdio.h> | void perror(const char \*s); | Prints system error information.| | \#include <stdio.h> | void rewind(FILE \*stream); | Sets the position to the beginning of the file of the specified stream.| | \#include <unistd.h> | ssize_t write(int fd, const void \*buf, size_t size); | Writes data a file.| | \#include <unistd.h> | ssize_t read(int fd, void \*buf, size_t size); | Reads data from a file.| - **Table 7** APIs for network + **Table 17** APIs for network | Header File| API| Description| | -------- | -------- | -------- | @@ -363,7 +363,7 @@ The OpenHarmony kernel uses the **musl libc** library and self-developed APIs an | \#include <sys/socket.h> | ssize_t sendto(int sockfd, const void \*buf, size_t len, intflags,const struct sockaddr \*dest_addr, socklen_t addrlen); | Sends a message on a socket.| | \#include <sys/socket.h> | int setsockopt(int sockfd, int level, int optname,constvoid \*optval, socklen_t optlen); | Sets options associated with a socket.| - **Table 8** APIs for memory management + **Table 18** APIs for memory management | Header File| API| Description| | -------- | -------- | -------- | @@ -374,7 +374,7 @@ The OpenHarmony kernel uses the **musl libc** library and self-developed APIs an | \#include <stdlib.h> | void \*malloc(size_t size); | Dynamically allocates memory blocks.| | \#include <stdlib.h> | void free(void \*ptr); | Release the memory space pointed to by **ptr**.| - **Table 9** APIs for IPC + **Table 19** APIs for IPC | Header File| API| Description| | -------- | -------- | -------- | @@ -386,11 +386,11 @@ The OpenHarmony kernel uses the **musl libc** library and self-developed APIs an | \#include <mqueue.h> | mqd_t mq_open(const char \*mqName, int openFlag, ...); | Opens an existing message queue with the specified name or creates a message queue.| | \#include <mqueue.h> | int mq_close(mqd_t personal); | Closes a message queue with the specified descriptor.| | \#include <mqueue.h> | int mq_unlink(const char \*mqName); | Deletes the message queue of the specified name.| -| \#include <mqueue.h> | int mq_send(mqd_t personal, const char \*msg,size_t msgLen, unsigned int msgPrio); | Puts a message with the specified content and length into a message queue.| -| \#include <mqueue.h> | ssize_t mq_receive(mqd_t personal, char \*msg,size_t msgLen, unsigned int \*msgPrio); | Deletes the oldest message from a message queue and puts it in the buffer pointed to by **msg_ptr**.| +| \#include <mqueue.h> | int mq_send(mqd_t personal, const char \*msg, size_t msgLen, unsigned int msgPrio); | Puts a message with the specified content and length into a message queue.| +| \#include <mqueue.h> | ssize_t mq_receive(mqd_t personal, char \*msg, size_t msgLen, unsigned int \*msgPrio); | Deletes the oldest message from a message queue and puts it in the buffer pointed to by **msg_ptr**.| | \#include <mqueue.h> | int mq_timedsend(mqd_t personal, const char\*msg, size_t msgLen, unsigned int msgPrio, const struct timespec \*absTimeout) | Puts a message with the specified content and length into a message queue at the specified time.| | \#include <mqueue.h> | ssize_t mq_timedreceive(mqd_t personal, char\*msg, size_t msgLen, unsigned int \*msgPrio, const struct timespec \*absTimeout); | Obtains a message with the specified content and length from a message queue.| -| \#include <mqueue.h> | int mq_setattr(mqd_t mqdes, const struct mq_attr \*__restrict newattr, struct mq_attr \*__restrict oldattr); | Sets the message queue attributes specified by the descriptor.| +| \#include <mqueue.h> | int mq_setattr(mqd_t mqdes, const struct mq_attr \*\_\_restrict newattr, struct mq_attr *\__restrict oldattr); | Sets the message queue attributes specified by the descriptor.| | \#include <libc.h> | const char \*libc_get_version_string(void); | Obtains the libc version string.| | \#include <libc.h> | int libc_get_version(void); | Obtains the libc version.| @@ -459,6 +459,8 @@ Example: Creates a thread, transfers the information in the parent thread to the child thread, and prints the transferred information and the thread ID in the child thread. +The sample code can be compiled and verified in **./kernel/liteos_m/testsuites/src/osTest.c**. The **DemoForTest** function is called in **TestTaskEntry**. + ``` #include diff --git a/en/device-dev/kernel/kernel-mini-basic-ipc-event.md b/en/device-dev/kernel/kernel-mini-basic-ipc-event.md index a39a68606f1a780ea75b05fe788f4d577ac554a5..3339899d1e1b04c94513c64692c93aeb1bea8b0a 100644 --- a/en/device-dev/kernel/kernel-mini-basic-ipc-event.md +++ b/en/device-dev/kernel/kernel-mini-basic-ipc-event.md @@ -1,15 +1,15 @@ -# Events +# Event ## Basic Concepts -An event is a mechanism for communication between tasks. It can be used to synchronize tasks. The events have the following features: +An event is a communication mechanism used to synchronize tasks. Events have the following features: - Events can be synchronized in one-to-many or many-to-many mode. In one-to-many mode, a task can wait for multiple events. In many-to-many mode, multiple tasks can wait for multiple events. However, a write event wakes up only one task from the block. - Event read timeout mechanism is used. -- Events are used only for task synchronization, but not for data transmission. +- Events are used for task synchronization, but not for data transmission. APIs are provided to initialize, read/write, clear, and destroy events. @@ -18,7 +18,7 @@ APIs are provided to initialize, read/write, clear, and destroy events. ### Event Control Block -The event control block is a struct configured in the event initialization function. It is passed in as an input parameter to identify the event for operations such as event read and write. The data structure of the event control block is as follows: +The event control block is a structure in the event initialization function. It passes in event identifies for operations such as event read and write. The data structure of the event control block is as follows: ``` @@ -31,23 +31,33 @@ typedef struct tagEvent { ### Working Principles -**Initializing an event**: An event control block is created to maintain a collection of processed events and a linked list of tasks waiting for specific events. +**Initializing an Event** -**Writing an event**: When a specified event is written to the event control block, the event control block updates the event set, traverses the task linked list, and determines whether to wake up related task based on the task conditions. +An event control block is created to maintain a set of processed events and a linked list of tasks waiting for specific events. -**Reading an event**: If the read event already exists, it is returned synchronously. In other cases, the return time is determined based on the timeout period and event triggering status. If the wait event condition is met before the timeout period expires, the blocked task will be directly woken up. Otherwise, the blocked task will be woken up only after the timeout period has expired. +**Writing an Event** -The input parameters **eventMask** and **mode** determine whether the condition for reading an event is met. **eventMask** indicates the mask of the event. **mode** indicates the handling mode, which can be any of the following: +When an event is written to the event control block, the event control block updates the event set, traverses the task linked list, and determines whether to wake up related tasks based on the task conditions. -- **LOS_WAITMODE_AND**: Event reading is successful only when all the events corresponding to **eventMask** occur. Otherwise, the task will be blocked, or an error code will be returned. +**Reading an Event** -- **LOS_WAITMODE_OR**: Event reading is successful when any of the events corresponding to **eventMask** occur. Otherwise, the task will be blocked, or an error code will be returned. +If the event to read already exists, it is returned synchronously. In other cases, the event is returned based on the timeout period and event triggering conditions. If the wait condition is met before the timeout period expires, the blocked task will be directly woken up. Otherwise, the blocked task will be woken up only after the timeout period has expired. + +The parameters **eventMask** and **mode** determine whether the condition for reading an event is met. **eventMask** specifies the event mask. **mode** specifies the handling mode, which can be any of the following: + +- **LOS_WAITMODE_AND**: Read the event only when all the events corresponding to **eventMask** occur. Otherwise, the task will be blocked, or an error code will be returned. + +- **LOS_WAITMODE_OR**: Read the event only when any of the events corresponding to **eventMask** occur. Otherwise, the task will be blocked, or an error code will be returned. - **LOS_WAITMODE_CLR**: This mode must be used with one or all of the event modes (LOS_WAITMODE_AND | LOS_WAITMODE_CLR or LOS_WAITMODE_OR | LOS_WAITMODE_CLR). In this mode, if all event modes or any event mode is successful, the corresponding event type bit in the event control block will be automatically cleared. -**Clearing events**: Clear the event set of the event control block based on the specified mask. If the mask is **0**, the event set will be cleared. If the mask is **0xffff**, no event will be cleared, and the event set remains unchanged. +**Clearing Events** + +The events in the event set of the event control block can be cleared based on the specified mask. The mask **0** means to clear the event set; the mask **0xffff** means the opposite. + +**Destroying Events** -**Destroying an event**: Destroy the specified event control block. +The event control block can be destroyed to release resources. **Figure 1** Event working mechanism for a mini system @@ -58,12 +68,12 @@ The input parameters **eventMask** and **mode** determine whether the condition | Category| API| Description| | -------- | -------- | -------- | -| Event check| LOS_EventPoll | Checks whether the expected event occurs based on **eventID**, **eventMask**, and **mode**.
**NOTICE**

If **mode** contains **LOS_WAITMODE_CLR** and the expected event occurs, the event that meets the requirements in **eventID** will be cleared. In this case, **eventID** is an input parameter and an output parameter. In other cases, **eventID** is used only as an input parameter.| -| Initialization| LOS_EventInit | Initializes an event control block.| -| Event read| LOS_EventRead | Reads an event (wait event). The task will be blocked to wait based on the timeout period (in ticks).
If no event is read, **0** is returned.
If an event is successfully read, a positive value (event set) is returned.
In other cases, an error code is returned.| -| Event write| LOS_EventWrite | Writes an event to the event control block.| -| Event clearance| LOS_EventClear | Clears an event in the event control block based on the event mask.| -| Event destruction| LOS_EventDestroy | Destroys an event control block.| +| Checking an event | LOS_EventPoll | Checks whether the expected event occurs based on **eventID**, **eventMask**, and **mode**.
**NOTE**
If **mode** contains **LOS_WAITMODE_CLR** and the expected event occurs, the event that meets the requirements in **eventID** will be cleared. In this case, **eventID** is an input parameter and an output parameter. In other cases, **eventID** is used only as an input parameter. | +| Initializing an event control block | LOS_EventInit | Initializes an event control block.| +| Reading an event | LOS_EventRead | Reads an event (wait event). The task will be blocked to wait based on the timeout period (in ticks).
If no event is read, **0** is returned.
If an event is successfully read, a positive value (event set) is returned.
In other cases, an error code is returned.| +| Writing an event | LOS_EventWrite | Writes an event to the event control block.| +| Clearing events | LOS_EventClear | Clears events in the event control block based on the event mask. | +| Destroying events | LOS_EventDestroy | Destroys an event control block.| ## How to Develop @@ -72,11 +82,11 @@ The typical event development process is as follows: 1. Initialize an event control block. -2. Block a read event control block. +2. Block a read event. -3. Write related events. +3. Write events. -4. Wake up a blocked task, read the event, and check whether the event meets conditions. +4. Wake up the blocked task, read the event, and check whether the event meets conditions. 5. Handle the event control block. @@ -84,7 +94,7 @@ The typical event development process is as follows: > **NOTE** -> - When an event is read or written, the 25th bit of the event is reserved and cannot be set. +> - For event read and write operations, the 25th bit (`0x02U << 24`) of the event is reserved and cannot be set. > > - Repeated writes of the same event are treated as one write. @@ -111,7 +121,7 @@ In the **ExampleEvent** task, create an **EventReadTask** task with a timout per The sample code is as follows: -The sample code is compiled and verified in **./kernel/liteos_m/testsuites/src/osTest.c**. Call **ExampleEvent()** in **TestTaskEntry**. +The sample code can be compiled and verified in **./kernel/liteos_m/testsuites/src/osTest.c**. The **ExampleEvent()** function is called in **TestTaskEntry**. ``` diff --git a/en/device-dev/kernel/kernel-mini-basic-ipc-queue.md b/en/device-dev/kernel/kernel-mini-basic-ipc-queue.md index 3f874e55624965233b940bf1a33d378120a47762..b0677e6d8074ee0d0fbed29d74074cbc582fe543 100644 --- a/en/device-dev/kernel/kernel-mini-basic-ipc-queue.md +++ b/en/device-dev/kernel/kernel-mini-basic-ipc-queue.md @@ -77,7 +77,7 @@ The preceding figure illustrates how to write data to the tail node only. Writin ## Available APIs -| Category| Description| +| Category| API Description | | -------- | -------- | | Creating or deleting a message queue| **LOS_QueueCreate**: creates a message queue. The system dynamically allocates the queue space.
**LOS_QueueCreateStatic**: creates a static message queue. You need to pass in the queue space.
**LOS_QueueDelete**: deletes a message queue. After a static message queue is deleted, you need to release the queue space.| | Reading or writing data (address without the content) in a queue| **LOS_QueueRead**: reads data in the head node of the specified queue. The data in the queue node is an address.
**LOS_QueueWrite**: writes the **bufferAddr** (buffer address) to the tail node of the specified queue.
**LOS_QueueWriteHead**: writes the **bufferAddr** (buffer address) to the head node of the specified queue.| @@ -136,7 +136,7 @@ Create a queue and two tasks. Enable task 1 to write data to the queue, and task The sample code is as follows: -The sample code is compiled and verified in **./kernel/liteos_m/testsuites/src/osTest.c**. Call **ExampleQueue** in **TestTaskEntry**. +The sample code can be compiled and verified in **./kernel/liteos_m/testsuites/src/osTest.c**. The **ExampleQueue** function is called in **TestTaskEntry**. ``` diff --git a/en/device-dev/kernel/kernel-mini-debug-shell.md b/en/device-dev/kernel/kernel-mini-debug-shell.md new file mode 100644 index 0000000000000000000000000000000000000000..142bf85cec273294fd71c69fc420ccdf77788406 --- /dev/null +++ b/en/device-dev/kernel/kernel-mini-debug-shell.md @@ -0,0 +1,258 @@ +# Shell + +The shell provided by the OpenHarmony kernel supports basic debugging functions and provides commands related to the system, files, and network. It also supports commands customized based on service requirements. + +The shell function is used for debugging only. Currently, it does not support the functions such as tab completion and undo with a key. + +Some commands can be used only after the corresponding options are enabled by using **make menuconfig**. + +## Common Shell Commands + +### cat + +Displays the content of a text file. This command can be used only after **LOSCFG_FS_VFS** is enabled. + +#### Format + +cat [FILE] + +#### Parameters + +| Parameter| Description | Value Range | +| ---- | ---------- | -------------- | +| FILE | File path.| An existing file.| + +### cd + +Changes the current directory. This command can be used only after **LOSCFG_FS_VFS** is enabled. + +#### Format + +cd [path] + +#### Parameters + +| Parameter| Description | Value Range | +| ---- | ---------- | -------------- | +| path | File path.| Path of the new directory.| + +### cp + +Copies a file. This command can be used only after **LOSCFG_FS_VFS** is enabled. + +#### Format + +cp [SOURCEFILE] [DESTFILE] + +#### Parameters + +| Parameter | Description | Value Range | +| ---------- | -------------- | ----------------------------------------- | +| SOURCEFILE | Path of the file to copy. | Currently, only files are supported. Directories are not supported. The file cannot be empty.| +| DESTFILE | Path of the file created.| Directory and file names are supported. The directory must exist. | + +### date + +Queries the system date and time. + +#### Format + +date + +#### Parameters + +None. + +### free + +Displays the memory usage of the system. + +#### Format + +free [ -k | -m ] + +#### Parameters + +| Parameter| Description | Value Range| +| ---- | ----------------- | -------- | +| -k | Display the memory usage in KiB.| N/A | +| -m | Display the memory usage in MiB.| N/A | + +### help + +Displays all commands in this operating system. + +#### Format + +help + +#### Parameters + +None. + +### ifconfig + +Displays the IP address, network mask, gateway, and MAC address of a network adapter. This command can be used only after **LWIP_SHELLCMD_ENABLE** is enabled. + +#### Format + +ifconfig + +#### Parameters + +None. + +### ls + +Displays the content of a directory. This command can be used only after **LOSCFG_FS_VFS** is enabled. + +#### Format + +ls [DIRECTORY] + +#### Parameters + +| Parameter | Description | Value Range | +| --------- | ---------- | ------------------------------------------------------------ | +| DIRECTORY | Path of the directory.| If **DIRECTORY** is not specified, the content of the current directory is displayed.
If **DIRECTORY** is a valid directory, the content of the specified directory is displayed.
Currently, LiteOS-M does not support the root directory /.| + +### memusage + +Displays the memory waterline. + +#### Format + +memusage [-k/-m] + +#### Parameters + +| Parameter| Description | Value Range| +| ---- | ----------------- | -------- | +| -k | Display the memory usage in KiB.| N/A | +| -m | Display the memory usage in MiB.| N/A | + +### mkdir + +Creates a directory. This command can be used only after **LOSCFG_FS_VFS** is enabled. + +#### Format + +mkdir [DIRECTORY] + +#### Parameters + +| Parameter | Description | Value Range | +| --------- | ---------- | ------------------------------------- | +| DIRECTORY | Path of the directory.| The value of **DIRECTORY** can be an absolute path or a relative path.| + +### ping + +Checks whether the network is connected. This command can be used only after **LWIP_SHELLCMD_ENABLE** is enabled. + +#### Format + +ping [ip] + +#### Parameters + +| Parameter| Description | Value Range| +| ---- | ------------------------------ | -------- | +| ip | IPv4 address of the network to test.| N/A | + +### pwd + +Displays the current path. This command can be used only after **LOSCFG_FS_VFS** is enabled. + +#### Format + +pwd + +### rm + +Deletes a file or folder. This command can be used only after **LOSCFG_FS_VFS** is enabled. + +#### Format + +rm [FILE] or rm [-r/-R] [FILE] + +#### Parameters + +| Parameter | Description | Value Range | +| ----- | ------------------------------- | -------------------------------- | +| FILE | File or folder name.| The value of **FILE** can be an absolute path or a relative path.| +| -r/-R | If **FILE** is a folder, -r/-R needs to be set. | N/A | + +### rmdir + +Deletes a folder. This command can be used only after **LOSCFG_FS_VFS** is enabled. + +#### Format + +rmdir [DIRECTORY] + +#### Parameters + +| Parameter | Description | Value Range | +| --------- | ---------- | ------------------------------------- | +| DIRECTORY | Path of the directory.| The value of **DIRECTORY** can be an absolute path or a relative path.| + +### task + +Displays the status of each task. + +#### Format + +task + +The displayed information includes the task No., priority, status, stack information, signal, event, CPU usage, and task name. + +### touch + +Creates a file. This command can be used only after **LOSCFG_FS_VFS** is enabled. + +#### Format + +touch [FILE] + +#### Parameters + +| Parameter| Description| Value Range | +| ---- | -------- | -------------------------------- | +| FILE | File name.| The value of **FILE** can be an absolute path or a relative path.| + +### stack + +Displays the stack information of a task. This command can be used only after **LOSCFG_DEBUG_TOOLS** is enabled. Enabling this function affects the performance. + +#### Format + +stack [ID] + +#### Parameters + +| Parameter| Description| Value Range | +| ---- | -------- | ------------------------ | +| ID | Task ID.| The task corresponding to the task ID must exist.| + +### hwi + +Queries the interrupt usage. This command can be used only after **LOSCFG_DEBUG_TOOLS** is enabled. Enabling this function affects the performance. + +#### Format + +hwi + +### st + +Queries scheduling information. This command can be used only afterf **LOSCFG_DEBUG_TOOLS** is enabled. Enabling this function affects the performance. + +#### Format + +st -s | st -e + +#### Parameters + +| Parameter| Description | Value Range| +| ---- | ---------------------- | -------- | +| -s | Start to record scheduling information. | N/A | +| -e | Stop recording and print scheduling information.| N/A | diff --git a/en/device-dev/kernel/kernel-mini-extend-cpup.md b/en/device-dev/kernel/kernel-mini-extend-cpup.md index a5d10352b390a3610804eaf10e70b3d021193322..f6c1e97c7bf8b46ddfcb1b318b220dcc8c5315a7 100644 --- a/en/device-dev/kernel/kernel-mini-extend-cpup.md +++ b/en/device-dev/kernel/kernel-mini-extend-cpup.md @@ -1,27 +1,41 @@ # CPUP + ## Basic Concepts -The central processing unit percent \(CPUP\) includes the system CPUP and task CPUP. +The central processing unit percent (CPUP) includes the system CPUP and task CPUP. -The system CPUP is the CPU usage of the system within a period of time. It reflects the CPU load and the system running status \(idle or busy\) in the given period of time. The valid range of the system CPUP is 0 to 100 in percentage. The precision can be adjusted through configuration. The value **100** indicates that the system runs with full load. +**System CPUP** -Task CPUP refers to the CPU usage of a single task. It reflects the task status, busy or idle, in a period of time. The valid range of task CPUP is 0 to 100 in percentage. The precision can be adjusted through configuration. The value **100** indicates that the task is being executed for the given period of time. +The system CPUP is the CPU usage of the system within a period of time. It reflects the CPU load and the system running status (idle or busy) in the given period of time. The CPUP ranges from 0 to 100, in percentage. The value **100** indicates that the system runs with full load. With the system CPUP, you can determine whether the current system load exceeds the designed specifications. +**Task CPUP** + +Task CPUP refers to the CPU usage of a single task. It reflects the task status, busy or idle, in a period of time. The task CPUP ranges from 0 to 100, in percentage. The value **100** indicates that the task is being executed for the given period of time. + With the CPUP of each task, you can determine whether the CPU usage of each task meets expectations of the design. +**Interrupt CPUP** + +In addition, you can enable the interrupt usage statistics function after the CPUP function is enabled. + +Interrupt CPUP indicates the CPU usage of a single interrupt out of the total interrupt duration. The interrupt CPUP ranges from 0 to 100. The value **100** indicates that only the interrupt is triggered within a period of time. + + ## Working Principles The OpenHarmony LiteOS-M CPUP records the system CPU usage on a task basis. When task switching occurs, the task start time and task switch-out or exit time are recorded. Each time when a task exits, the system accumulates the CPU time used by the task. -You can configure this function in **target\_config.h**. +You can configure this function in **target_config.h**. The OpenHarmony LiteOS-M provides the following types of CPUP information: -- System CPUP -- Task CPUP +- System CPUP +- Task CPUP + +In addition, the system provides the capability of querying the interrupt CPUP (the CPUP and timer must be enabled). The CPUP is calculated as follows: @@ -29,156 +43,148 @@ System CPUP = Total running time of all tasks except idle tasks/Total running ti Task CPUP = Total running time of the task/Total running time of the system -## Available APIs - -**Table 1** Functions - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Function

-

API

-

Description

-

Obtaining the system CPU usage

-

LOS_SysCpuUsage

-

Obtains the current system CPUP.

-

LOS_HistorySysCpuUsage

-

Obtains the historical CPUP of the system.

-

Obtaining the task CPUP

-

LOS_TaskCpuUsage

-

Obtains the CPUP of a specified task.

-

LOS_HistoryTaskCpuUsage

-

Obtains the historical CPUP of a specified task.

-

LOS_AllCpuUsage

-

Obtains the CPUP of all tasks.

-

Outputting the task CPUP

-

LOS_CpupUsageMonitor

-

Outputs the historical CPUP of a task.

-
+Interrupt CPUP = Running time of a single interrupt/Total running time of all interrupts + + +## Available APIs + + **Table 1** APIs for CPUP + +| Category| Description| +| -------- | -------- | +| Obtaining the system CPUP| **LOS_SysCpuUsage**: obtains the current system CPUP.
**LOS_HistorySysCpuUsage**: obtains the historical CPUP of the system.| +| Obtaining the task CPUP| **LOS_TaskCpuUsage**: obtains the CPUP of a task.
**LOS_HistoryTaskCpuUsage**: obtains the historical CPUP of a task.
**LOS_AllTaskCpuUsage**: obtains the CPUP of all tasks.| +| Outputting the task CPUP| **LOS_CpupUsageMonitor**: outputs the historical CPUP of a task.| +| Obtaining the interrupt CPUP| **LOS_GetAllIrqCpuUsage**: obtains the CPUP of all interrupts.| ## How to Develop +In the **kernel/liteos_m** directory, run the **make menuconfig** command and choose **Kernel > Enable Cpup** to enable CPUP. + +Choose **Enable Cpup include irq** to enable interrupt CPUP. + The typical CPUP development process is as follows: -1. Call **LOS\_SysCpuUsage** to obtain the system CPUP. -2. Call **LOS\_HistorySysCpuUsage** to obtain the historical CPUP of the system. -3. Call **LOS\_TaskCpuUsage** to obtain the CPUP of a specified task. - - If the task has been created, disable interrupt, obtain the CPUP, and then enable interrupt. - - If the task is not created, return an error code. +1. Call **LOS_SysCpuUsage** to obtain the system CPUP. + +2. Call **LOS_HistorySysCpuUsage** to obtain the historical CPUP of the system. -4. Call **LOS\_HistoryTaskCpuUsage** to obtain the historical CPUP of a specified task. - - If the task has been created, disable interrupt, obtain the CPUP in different modes, and then enable interrupt. - - If the task is not created, return an error code. +3. Call **LOS_TaskCpuUsage** to obtain the CPUP of a task. + - If the task has been created, disable interrupt, obtain the CPUP, and then enable interrupt. + - If the task is not created, return an error code. -5. Call **LOS\_AllCpuUsage** to obtain the CPUP of all tasks. - - If the CPUP is initialized, disable interrupt, obtain the CPUP in different modes, and then enable interrupt. - - If CPUP is not initialized or has invalid input parameters, return an error code. +4. Call **LOS_HistoryTaskCpuUsage** to obtain the historical CPUP of a task. + - If the task has been created, disable interrupt, obtain the CPUP in different modes, and then enable interrupt. + - If the task is not created, return an error code. + +5. Call **LOS_AllCpuUsage** to obtain the CPUP of all tasks. + - If CPUP has been initialized, disable interrupt, obtain the CPUP in different modes, and then enable interrupt. + - If CPUP is not initialized or has invalid input parameters, return an error code. ## Development Example + ### Example Description This example implements the following: -1. Create a task for the CPUP test. -2. Obtain the CPUP of the current system. -3. Obtain the historical system CPUP in different modes. -4. Obtain the CPUP of the created test task. -5. Obtain the CPUP of the created test task in different modes. +1. Create a task for the CPUP test. + +2. Obtain the CPUP of the current system. + +3. Obtain the historical system CPUP in different modes. + +4. Obtain the CPUP of the created task. + +5. Obtain the CPUP of the created task in different modes. + ### Sample Code -Prerequisites +**Prerequisites** -In **target\_config.h**, the **LOSCFG\_BASE\_CORE\_CPUP** parameter is enabled. +CPUP is enabled.
To enable CPUP, run **make menuconfig** in the **kernel/liteos_m** directory and choose **Kernel->Enable Cpup** to enable CPUP. The sample code is as follows: +The sample code can be compiled and verified in **./kernel/liteos_m/testsuites/src/osTest.c**. The **ExampleCpup** function is called in **TestTaskEntry**. + + ``` #include "los_task.h" -#include "los_cpup.h" -#define MODE 4 -UINT32 g_cpuTestTaskID; -VOID ExampleCpup(VOID) -{ +#include "los_cpup.h" + +#define TEST_TASK_PRIO 5 +#define TASK_DELAY_TIME 100 +VOID CpupTask(VOID) +{ printf("entry cpup test example\n"); - while(1) { - usleep(100); - } + usleep(TASK_DELAY_TIME); + usleep(TASK_DELAY_TIME); + printf("exit cpup test example\n"); } -UINT32 ItCpupTest(VOID) -{ + +UINT32 ExampleCpup(VOID) +{ UINT32 ret; UINT32 cpupUse; + UINT32 taskID; TSK_INIT_PARAM_S cpupTestTask = { 0 }; - memset(&cpupTestTask, 0, sizeof(TSK_INIT_PARAM_S)); - cpupTestTask.pfnTaskEntry = (TSK_ENTRY_FUNC)ExampleCpup; - cpupTestTask.pcName = "TestCpupTsk"; - cpupTestTask.uwStackSize = 0x800; - cpupTestTask.usTaskPrio = 5; - ret = LOS_TaskCreate(&g_cpuTestTaskID, &cpupTestTask); + + cpupTestTask.pfnTaskEntry = (TSK_ENTRY_FUNC)CpupTask; + cpupTestTask.pcName = "TestCpupTsk"; + cpupTestTask.uwStackSize = LOSCFG_BASE_CORE_TSK_DEFAULT_STACK_SIZE; + cpupTestTask.usTaskPrio = TEST_TASK_PRIO; + ret = LOS_TaskCreate(&taskID, &cpupTestTask); if(ret != LOS_OK) { printf("cpupTestTask create failed .\n"); return LOS_NOK; } - usleep(100); + usleep(TASK_DELAY_TIME); - /* Obtain the current CPUP of the system. */ + /* Obtain the current system CPUP. */ cpupUse = LOS_SysCpuUsage(); printf("the current system cpu usage is: %u.%u\n", - cpupUse / LOS_CPUP_PRECISION_MULT, cpupUse % LOS_CPUP_PRECISION_MULT); + cpupUse / LOS_CPUP_PRECISION_MULT, cpupUse % LOS_CPUP_PRECISION_MULT); - cpupUse = LOS_HistorySysCpuUsage(CPU_LESS_THAN_1S); - /* Obtain the CPUP of the specified task (cpupTestTask in this example).*/ - printf("the history system CPUP in all time: %u.%u\n", + /* Obtain the historical CPUP of the system. */ + cpupUse = LOS_HistorySysCpuUsage(CPUP_LESS_THAN_1S); + printf("the history system cpu usage in all time: %u.%u\n", cpupUse / LOS_CPUP_PRECISION_MULT, cpupUse % LOS_CPUP_PRECISION_MULT); - cpupUse = LOS_TaskCpuUsage(g_cpuTestTaskID); - /* Obtain the CPUP of the specified historical task (cpupTestTask in this example) since the system startup. */ + + /* Obtain the CPUP of a specified task. */ + cpupUse = LOS_TaskCpuUsage(taskID); printf("cpu usage of the cpupTestTask:\n TaskID: %d\n usage: %u.%u\n", - g_cpuTestTaskID, cpupUse / LOS_CPUP_PRECISION_MULT, cpupUse % LOS_CPUP_PRECISION_MULT); - cpupUse = LOS_HistoryTaskCpuUsage(g_cpuTestTaskID, CPU_LESS_THAN_1S); + taskID, cpupUse / LOS_CPUP_PRECISION_MULT, cpupUse % LOS_CPUP_PRECISION_MULT); + + /* Obtain the CPUP of a specified task since the system starts. */ + cpupUse = LOS_HistoryTaskCpuUsage(taskID, CPUP_LESS_THAN_1S); printf("cpu usage of the cpupTestTask in all time:\n TaskID: %d\n usage: %u.%u\n", - g_cpuTestTaskID, cpupUse / LOS_CPUP_PRECISION_MULT, cpupUse % LOS_CPUP_PRECISION_MULT); - return LOS_OK; + taskID, cpupUse / LOS_CPUP_PRECISION_MULT, cpupUse % LOS_CPUP_PRECISION_MULT); + + return LOS_OK; } ``` + ### Verification -The development is successful if the return result is as follows: + The development is successful if the return result is as follows: ``` -entry cpup test example -the current system cpu usage is : 1.5 - the history system cpu usage in all time: 3.0 - cpu usage of the cpupTestTask: TaskID:10 usage: 0.0 - cpu usage of the cpupTestTask in all time: TaskID:10 usage: 0.0 +entry cpup test example +the current system cpu usage is: 8.2 +the history system cpu usage in all time: 8.9 +cpu usage of the cpupTestTask: + TaskID: 5 + usage: 0.5 +cpu usage of the cpupTestTask in all time: + TaskID: 5 + usage: 0.5 + +exit cpup test example + +The preceding data may vary depending on the running environment. ``` - diff --git a/en/device-dev/kernel/kernel-mini-extend-file.md b/en/device-dev/kernel/kernel-mini-extend-file.md index 5d0656dd59a90ea3fd9b6aade4acae18a932d4b9..ff10e418ada3317e8ff5c5e4eefc6e2e892ea31f 100644 --- a/en/device-dev/kernel/kernel-mini-extend-file.md +++ b/en/device-dev/kernel/kernel-mini-extend-file.md @@ -1,27 +1,32 @@ -# File System +# File Systems -The OpenHarmony LiteOS-M kernel supports File Allocation Table file system (FATFS) and LittleFS file systems. Like the OpenHarmony LiteOS-A kernel, the OpenHarmony LiteOS-M kernel provides POSIX over the virtual file system (VFS) to ensure interface consistency. However, the VFS of the LiteOS-M kernel is light due to insufficient resources and does not provide advanced functions (such as pagecache). Therefore, the VFS of the LiteOS-M kernel implements only API standardization and adaptation. The file systems handle specific transactions. +## VFS -The following tables list the APIs supported by the file systems of the LiteOS-M kernel. +### Basic Concepts - **Table 1** File management operations +The Virtual File System (VFS) is not a real file system. It is an abstract layer on top of a heterogeneous file system and provides you with a unified Unix-like interface for file operations. Different types of file systems use different file operation interfaces. If there are multiple types of file systems in a system, different and non-standard interfaces are required for accessing these file systems. The VFS is introduced as an abstract layer to shield the differences between these heterogeneous file systems. With the VFS, you do not need to care about the underlying storage medium and file system type. -| API| Description| FATFS | LITTLEFS | +The OpenHarmony LiteOS-M kernel supports the File Allocation Table (FAT) and LittleFS file systems. It provides the Portable Operating System Interface (POSIX) over the VFS to ensure interface consistency. However, the VFS of the LiteOS-M kernel is light and does not provide advanced functions (such as pagecache) due to insufficient resources. Therefore, the VFS of the LiteOS-M kernel implements only API standardization and adaptation. The file systems handle specific transactions. The following tables describe the APIs supported by the file systems of the LiteOS-M kernel. + +### Available APIs + +**Table 1** APIs for file operations + +| API| Description| FAT | LittleFS | | -------- | -------- | -------- | -------- | | open | Opens a file.| Supported| Supported| | close | Closes a file.| Supported| Supported| -| read | Reads the file content.| Supported| Supported| -| write | Writes data to a file.| Supported| Supported| -| lseek | Sets the file offset.| Supported| Supported| +| read | Reads the file content. | Supported | Supported | +| write | Writes data to a file. | Supported | Supported | +| lseek | Sets the file offset. | Supported | Supported | +| stat | Obtains file information based on the file path name.| Supported | Supported | | unlink | Deletes a file.| Supported| Supported| | rename | Renames the file.| Supported| Supported| -| fstat | Obtains file information based on the file handle.| Supported| Supported| -| stat | Obtains file information based on the file path name.| Supported| Supported| -| fsync | Saves file updates to a storage device.| Supported| Supported| - +| fstat | Obtains file information based on the file handle. | Supported | Supported | +| fsync | Saves a file to a storage device. | Supported | Supported | - **Table 2** Directory management operations +**Table 2** APIs for directory operations | API| Description| FATFS | LITTLEFS | | -------- | -------- | -------- | -------- | @@ -31,8 +36,7 @@ The following tables list the APIs supported by the file systems of the LiteOS-M | closedir | Closes a directory.| Supported| Supported| | rmdir | Deletes a directory.| Supported| Supported| - - **Table 3** Partition operations +**Table 3** APIs for partition operations | API| Description| FATFS | LITTLEFS | | -------- | -------- | -------- | -------- | @@ -41,14 +45,18 @@ The following tables list the APIs supported by the file systems of the LiteOS-M | umount2 | Forcibly unmounts a partition using the **MNT_FORCE** parameter.| Supported| Not supported| | statfs | Obtains partition information.| Supported| Not supported| +Interfaces, such as **ioctl** and **fcntl**, are supported by different libraries and are irrelevant to the underlying file system. + ## FAT ### Basic Concepts -File Allocation Table (FAT) is a file system developed for personal computers. It consists of the DOS Boot Record (DBR) region, FAT region, and Data region. Each entry in the FAT region records information about the corresponding cluster in the storage device. The cluster information includes whether the cluster is used, number of the next cluster of the file, whether the file ends with the cluster. The FAT file system supports multiple formats, such as FAT12, FAT16, and FAT32. The numbers 12, 16, and 32 indicate the number of bits per cluster within the FAT, respectively. The FAT file system supports multiple media, especially removable media (such as USB flash drives, SD cards, and removable hard drives). The FAT file system ensures good compatibility between embedded devices and desktop systems (such as Windows and Linux) and facilitates file management. +As a file system designed for personal computers, the FAT file system consists of the DOS Boot Record (DBR) region, FAT region, and Data region. Each entry in the FAT region records information about the corresponding cluster in the storage device. The cluster information includes whether the cluster is used, number of the next cluster of the file, whether the file ends with the cluster. + +The FAT file system supports a variety of formats, including FAT12, FAT16, and FAT32. The numbers 12, 16, and 32 indicate the number of bits per cluster within the FAT, respectively. The FAT file system also supports diversified storage media, especially removable media (such as USB flash drives, SD cards, and removable hard drives). It features good compatibility between embedded devices and desktop systems (such as Windows and Linux) and facilitates file management. -The OpenHarmony kernel supports FAT12, FAT16, and FAT32 file systems. These file systems require a tiny amount of code to implement, use less resources, support a variety of physical media, and are tailorable and compatible with Windows and Linux systems. They also support identification of multiple devices and partitions. The kernel supports multiple partitions on hard drives and allows creation of the FAT file system on the primary partition and logical partition. +The OpenHarmony kernel supports FAT12, FAT16, and FAT32 file systems. These file systems require a tiny amount of code to implement, use less resources, support a variety of physical media, and are tailorable and compatible with Windows and Linux systems. They also support identification of multiple devices and partitions. The kernel supports multiple partitions on hard drives and allows creation of the FAT file system on the primary and logical partitions. ### Development Guidelines @@ -56,11 +64,13 @@ The OpenHarmony kernel supports FAT12, FAT16, and FAT32 file systems. These file #### Driver Adaptation -The use of the FAT file system requires support from the underlying MultiMediaCard (MMC) drivers. To run FatFS on a board with an MMC storage device, you must: +The use of a FAT file system requires support from the underlying MultiMediaCard (MMC) driver. Before using a FAT file system on a board with an MMC, you must perform the following operations: + +1. Implement the **disk_status**, **disk_initialize**, **disk_read**, **disk_write**, and **disk_ioctl** APIs to adapt to the embedded MMC (eMMC) driver on the board. -1. Implement the **disk_status**, **disk_initialize**, **disk_read**, **disk_write**, and **disk_ioctl** APIs to adapt to the embedded MMC (eMMC) drivers on the board. +2. Add the **fs_config.h** file with information such as **FS_MAX_SS** (maximum sector size of the storage device) and **FF_VOLUME_STRS** (partition names) configured. -2. Add the **fs_config.h** file with information such as **FS_MAX_SS** (maximum sector size of the storage device) and **FF_VOLUME_STRS** (partition names) configured. The following is an example: + The following is an example: ``` @@ -69,29 +79,115 @@ The use of the FAT file system requires support from the underlying MultiMediaCa #define FAT_MAX_OPEN_FILES 50 ``` - +#### Mounting Partitions + +Before using a FAT file system on a device, you need to initialize the flash drive and partition the device storage. + +API for partitioning the storage: + +**int LOS_DiskPartition(const char \*dev, const char \*fsType, int \*lengthArray, int \*addrArray, int partNum);** + +- **dev**: pointer to the device name, for example, **spinorblk0**. +- **fsType**: pointer to the file system type, which is **vfat** for the FAT file system. +- **lengthArray**: pointer to a list of partition lengths (in percentage for a FAT file system) of the device. +- **addrArray**: pointer to a list of partition start addresses of the device. +- **partNum**: number of partitions. + +API for formatting a partition: + +**int LOS_PartitionFormat(const char \*partName, char \*fsType, void \*data);** + +- **partName**: pointer to the partition name, in the *Device_name*+**p**+*Partition_ number* format. For example, **spinorblk0p0**. +- **fsType**: pointer to the file system type, which is **vfat** for the FAT file system. +- **data**: pointer to the private data that passes in **(VOID \*) formatType**, for example, **FMT_FAT** or **FMT_FAT32**. + +API for mounting a partition: + +**int mount(const char \*source, const char \*target, const char \*filesystemtype, unsigned long mountflags, const void \*data);** + +- **source**: pointer to the partition name, in the *Device_name*+**p**+*Partition_ number* format. For example, **spinorblk0p0**. +- **target**: pointer to the target path to mount. +- **filesystemtype**: pointer to the file system type, which is **vfat** for the FAT file system. +- **mountflags**: parameters used for the mount operation. +- **data**: pointer to the private data that passes in **(VOID \*) formatType**, for example, **FMT_FAT** or **FMT_FAT32**. + +The sample code is implemented in **./device/qemu/arm_mps2_an386/liteos_m/board/fs/fs_init.c** and can be directly used on the Quick EMUlator (QEMU) that uses the LiteOS-M kernel. You can modify the code based on the hardware you use. + + #include "fatfs_conf.h" + #include "fs_config.h" + #include "los_config.h" + #include "ram_virt_flash.h" + #include "los_fs.h" + + struct fs_cfg { + CHAR *mount_point; + struct PartitionCfg partCfg; + }; + + INT32 FatfsLowLevelInit() + { + INT32 ret; + INT32 i; + UINT32 addr; + int data = FMT_FAT32; + + const char * const pathName[FF_VOLUMES] = {FF_VOLUME_STRS}; + HalLogicPartition *halPartitionsInfo = getPartitionInfo(); /* Function for obtaining the partition lengths and start addresses. Modify it as required. */ + INT32 lengthArray[FF_VOLUMES] = {25, 25, 25, 25}; + INT32 addrArray[FF_VOLUMES]; + + /* Set the address and length for each partition. */ + for (i = 0; i < FF_VOLUMES; i++) { + addr = halPartitionsInfo[FLASH_PARTITION_DATA1].partitionStartAddr + i * 0x10000; + addrArray[i] = addr; + FlashInfoInit(i, addr); + } + + /* Set partition information. */ + SetupDefaultVolToPartTable(); + + ret = LOS_DiskPartition("spinorblk0", "vfat", lengthArray, addrArray, FF_VOLUMES); + printf("%s: DiskPartition %s\n", __func__, (ret == 0) ? "succeed" : "failed"); + if (ret != 0) { + return -1; + } + + ret = LOS_PartitionFormat("spinorblk0p0", "vfat", &data); + printf("%s: PartitionFormat %s\n", __func__, (ret == 0) ? "succeed" : "failed"); + if (ret != 0) { + return -1; + } + + ret = mount("spinorblk0p0", "/system", "vfat", 0, &data); + printf("%s: mount fs on '%s' %s\n", __func__, pathName[0], (ret == 0) ? "succeed" : "failed"); + if (ret != 0) { + return -1; + } + return 0; + } #### How to Develop -Note the following when managing FatFS files and directories: +Observe the following when managing files and directories in a FAT file system: - A file cannot exceed 4 GB. - - **FAT_MAX_OPEN_FILES** specifies the maximum number files you can open at a time, and **FAT_MAX_OPEN_DIRS** specifies the maximum number of folders you can open at a time. -- Root directory management is not supported. File and directory names start with the partition name. For example, **user/testfile** indicates the file or directory **testfile** in the **user** partition. -- To open a file multiple times, use **O_RDONLY** (read-only mode). **O_RDWR** or **O_WRONLY** (writable mode) can open a file only once. +- Root directory management is not supported. File and directory names start with the partition name. For example, **user/testfile** indicates the **testfile** file or directory in the **user** partition. +- To open a file multiple times at the same time, use **O_RDONLY** (read-only mode). **O_RDWR** or **O_WRONLY** (writable mode) can open a file only once at a time. - The read and write pointers are not separated. If a file is open in **O_APPEND** mode, the read pointer is also at the end of the file. If you want to read the file from the beginning, you must manually set the position of the read pointer. - File and directory permission management is not supported. - The **stat** and **fstat** APIs do not support query of the modification time, creation time, and last access time. The Microsoft FAT protocol does not support time before A.D. 1980. -Note the following when mounting and unmounting FatFS partitions: -- Partitions can be mounted with the read-only attribute. When the input parameter of the **mount** function is **MS_RDONLY**, all APIs with the write attribute, such as **write**, **mkdir**, **unlink**, and **open** with **non-O_RDONLY** attributes, will be rejected. -- You can use the **MS_REMOUNT** flag with **mount** to modify the permission for a mounted partition. +Observe the following when managing files and directories in a FAT file system: + +- Partitions can be mounted with the read-only attribute. If the input parameter of **mount()** is **MS_RDONLY**, all APIs with the write attribute, such as **write()**, **mkdir()**, **unlink()**, and **open()** with **non-O_RDONLY** attributes, will be rejected. +- You can use the **MS_REMOUNT** flag in **mount()** to modify the permissions for a mounted partition. - Before unmounting a partition, ensure that all directories and files in the partition are closed. -- You can use **umount2** with the **MNT_FORCE** parameter to forcibly close all files and folders and unmount the partition. However, this may cause data loss. Therefore, exercise caution when running **umount2**. +- You can use **umount2** with the **MNT_FORCE** parameter to forcibly close all files and folders and unmount the partition. However, this may cause data loss. Therefore, exercise caution when using **umount2**. + +You can use **fatfs_fdisk()** and **fatfs_format()** to re-partition the device storage and format the partitions. Observe the following: -The FAT file system supports re-partitioning and formatting of storage devices using **fatfs_fdisk** and **fatfs_format**. -- If a partition is mounted before being formatted using **fatfs_format**, you must close all directories and files in the partition and unmount the partition first. -- Before calling **fatfs_fdisk**, ensure that all partitions in the device are unmounted. +- Before using **fatfs_format()**, ensure that the target partition is unmounted and all directories and files in the partition are closed. +- Before using **fatfs_fdisk**, ensure that all partitions in the device are unmounted. - Using **fatfs_fdisk** and **fatfs_format** may cause data loss. Exercise caution when using them. @@ -102,9 +198,9 @@ The FAT file system supports re-partitioning and formatting of storage devices u This example implements the following: -1. Create the **user/test** directory. +1. Create a **system/test** directory. -2. Create the **file.txt** file in the **user/test** directory. +2. Create a **file.txt** file in the **system/test** directory. 3. Write **Hello OpenHarmony!** at the beginning of the file. @@ -123,99 +219,103 @@ This example implements the following: #### Sample Code - **Prerequisites** +**Prerequisites** - The MMC device partition is mounted to the **user** directory. +- The **system** partition is mounted to the QEMU. +- FAT is enabled. + 1. In the **kernel/liteos_m** directory, run the **make menuconfig** command and choose **FileSystem->Enable FS VFS** to enable VFS. + 2. Select **Enable FAT** to enable the FAT file system. - The sample code is as follows: - - ``` - #include - #include - #include "sys/stat.h" - #include "fcntl.h" - #include "unistd.h" +**Implementation** - #define LOS_OK 0 - #define LOS_NOK -1 +The sample code can be compiled and verified in **./kernel/liteos_m/testsuites/src/osTest.c**. The **ExampleFatfs** function is called in **TestTaskEntry**. - int FatfsTest(void) - { + ``` +#include +#include +#include "sys/stat.h" +#include "fcntl.h" +#include "unistd.h" + +#define BUF_SIZE 20 +#define TEST_ROOT "system" /* Set the test root directory. */ +VOID ExampleFatfs(VOID) +{ int ret; - int fd = -1; + int fd; ssize_t len; off_t off; - char dirName[20] = "user/test"; - char fileName[20] = "user/test/file.txt"; - char writeBuf[20] = "Hello OpenHarmony!"; - char readBuf[20] = {0}; + char dirName[BUF_SIZE] = TEST_ROOT"/test"; + char fileName[BUF_SIZE] = TEST_ROOT"/test/file.txt"; + char writeBuf[BUF_SIZE] = "Hello OpenHarmony!"; + char readBuf[BUF_SIZE] = {0}; - /* Create the user/test directory. */ + /* Create a test directory. */ ret = mkdir(dirName, 0777); if (ret != LOS_OK) { printf("mkdir failed.\n"); - return LOS_NOK; + return; } - /* Create a readable and writable file named file.txt in the user/test/ directory. */ + /* Create a file that is readable and writable. */ fd = open(fileName, O_RDWR | O_CREAT, 0777); if (fd < 0) { printf("open file failed.\n"); - return LOS_NOK; + return; } /* Write the content from writeBuf to the file. */ len = write(fd, writeBuf, strlen(writeBuf)); if (len != strlen(writeBuf)) { printf("write file failed.\n"); - return LOS_NOK; + return; } /* Save the file to a storage device. */ ret = fsync(fd); if (ret != LOS_OK) { printf("fsync failed.\n"); - return LOS_NOK; + return; } /* Move the read/write pointer to the beginning of the file. */ off = lseek(fd, 0, SEEK_SET); if (off != 0) { printf("lseek failed.\n"); - return LOS_NOK; + return; } /* Read the file content with the length of readBuf to readBuf. */ len = read(fd, readBuf, sizeof(readBuf)); if (len != strlen(writeBuf)) { printf("read file failed.\n"); - return LOS_NOK; + return; } printf("%s\n", readBuf); - /* Close the file. */ + /* Close the test file. */ ret = close(fd); if (ret != LOS_OK) { printf("close failed.\n"); - return LOS_NOK; + return; } - /* Delete file.txt from the user/test directory. */ + /* Delete the test file. */ ret = unlink(fileName); if (ret != LOS_OK) { printf("unlink failed.\n"); - return LOS_NOK; + return; } - /* Delete the user/test directory. */ + /* Delete the test directory. */ ret = rmdir(dirName); if (ret != LOS_OK) { printf("rmdir failed.\n"); - return LOS_NOK; + return; } - return LOS_OK; - } + return; +} ``` @@ -232,102 +332,219 @@ Hello OpenHarmony! ### Basic Concepts -LittleFS is a small file system designed for flash. By combining the log-structured file system and the copy-on-write (COW) file system, LittleFS stores metadata in log structure and data in the COW structure. This special storage empowers LittleFS high power-loss resilience. LittleFS uses the statistical wear leveling algorithm when allocating COW data blocks, effectively prolonging the service life of flash devices. LittleFS is designed for small-sized devices with limited resources, such as ROM and RAM. All RAM resources are allocated through a buffer with the fixed size (configurable). That is, the RAM usage does not grow with the file system. +LittleFS is a small file system designed for the flash drive. It stores metadata in log structure and data in the copy-on-write (COW) structure. This feature empowers LittleFS high power-loss resilience. LittleFS uses the statistical wear leveling algorithm when allocating COW data blocks, effectively prolonging the service life of flash devices. LittleFS is designed for small-sized devices with limited resources, such as ROM and RAM. All RAM resources are allocated through a buffer with the fixed size (configurable). That is, the RAM usage does not grow with the file system. LittleFS is a good choice when you look for a flash file system that is power-cut resilient and has wear leveling support on a small device with limited resources. ### Development Guidelines -Before porting LittleFS to a new hardware device, you need to declare **lfs_config**: +Before using a LittleFS to a device, you need to initialize the flash drive and partition the device storage + +API for partitioning the storage: + +**int LOS_DiskPartition(const char \*dev, const char \*fsType, int \*lengthArray, int \*addrArray, int partNum);** + +- **dev**: pointer to the device name. +- **fsType**: pointer to the file system type, which is **littlefs** for LittleFS. +- **lengthArray**: pointer to a list of partition lengths of the device. +- **addrArray**: pointer to a list of partition start addresses of the device. +- **partNum**: number of partitions. + +API for formatting a partition: + +**int LOS_PartitionFormat(const char \*partName, char \*fsType, void \*data);** + +- **partName**: pointer to the partition name. +- **fsType**: pointer to the file system type, which is **littlefs** for LittleFS. +- **data**: pointer to the private data that passes in **void pass (VOID \*) struct fs_cfg**. + +API for mounting a partition: + +**int mount(const char \*source, const char \*target, const char \*filesystemtype, unsigned long mountflags, const void \*data);** + +- **source**: pointer to the partition name. +- **target**: pointer to the target path to mount. +- **filesystemtype**: pointer to the file system type, which is **littlefs** for LittleFS. +- **mountflags**: parameters used for the mount operation. +- **data**: pointer to the private data that passes in **void pass (VOID \*) struct fs_cfg**. + +The sample code is implemented in **./device/qemu/arm_mps2_an386/liteos_m/board/fs/fs_init.c** and can be directly used on the QEMU that uses the LiteOS-M kernel. You can modify the code based on the hardware you use. ``` -const struct lfs_config cfg = { - // block device operations - .read = user_provided_block_device_read, - .prog = user_provided_block_device_prog, - .erase = user_provided_block_device_erase, - .sync = user_provided_block_device_sync, - - // block device configuration - .read_size = 16, - .prog_size = 16, - .block_size = 4096, - .block_count = 128, - .cache_size = 16, - .lookahead_size = 16, - .block_cycles = 500, +#include "los_config.h" +#include "ram_virt_flash.h" +#include "los_fs.h" + +struct fs_cfg { + CHAR *mount_point; + struct PartitionCfg partCfg; }; + +INT32 LfsLowLevelInit() +{ + INT32 ret; + struct fs_cfg fs[LOSCFG_LFS_MAX_MOUNT_SIZE] = {0}; + HalLogicPartition *halPartitionsInfo = getPartitionInfo(); /* Function for obtaining the partition lengths and start addresses. You can modify the function to match your development. */ + + INT32 lengthArray[2]; + lengthArray[0]= halPartitionsInfo[FLASH_PARTITION_DATA0].partitionLength; + + INT32 addrArray[2]; + addrArray[0] = halPartitionsInfo[FLASH_PARTITION_DATA0].partitionStartAddr; + + ret = LOS_DiskPartition("flash0", "littlefs", lengthArray, addrArray, 2); + printf("%s: DiskPartition %s\n", __func__, (ret == 0) ? "succeed" : "failed"); + if (ret != 0) { + return -1; + } + fs[0].mount_point = "/littlefs"; + fs[0].partCfg.partNo = 0; + fs[0].partCfg.blockSize = 4096; /* 4096, lfs block size */ + fs[0].partCfg.blockCount = 1024; /* 2048, lfs block count */ + fs[0].partCfg.readFunc = virt_flash_read; /* Function for reading data from the flash drive. You can modify it to match your development. */ + fs[0].partCfg.writeFunc = virt_flash_write; /* Function for writing data to the flash drive. You can modify it to match your development. */ + fs[0].partCfg.eraseFunc = virt_flash_erase; /* Function for erasing the flash driver. You can modify it to match your development. */ + + fs[0].partCfg.readSize = 256; /* 256, lfs read size */ + fs[0].partCfg.writeSize = 256; /* 256, lfs prog size */ + fs[0].partCfg.cacheSize = 256; /* 256, lfs cache size */ + fs[0].partCfg.lookaheadSize = 16; /* 16, lfs lookahead size */ + fs[0].partCfg.blockCycles = 1000; /* 1000, lfs block cycles */ + + ret = LOS_PartitionFormat("flash0", "littlefs", &fs[0].partCfg); + printf("%s: PartitionFormat %s\n", __func__, (ret == 0) ? "succeed" : "failed"); + if (ret != 0) { + return -1; + } + ret = mount(NULL, fs[0].mount_point, "littlefs", 0, &fs[0].partCfg); + printf("%s: mount fs on '%s' %s\n", __func__, fs[0].mount_point, (ret == 0) ? "succeed" : "failed"); + if (ret != 0) { + return -1; + } + return 0; +} ``` -**.read**, **.prog**, **.erase**, and **.sync** correspond to the read, write, erase, and synchronization APIs at the bottom layer of the hardware platform, respectively. +The **.readFunc**, **.writeFunc**, and **.eraseFunc** functions correspond to **read()**, **write()**, and **erase()** of the underlying hardware platform. -**read_size** indicates the number of bytes read each time. You can set it to a value greater than the physical read unit to improve performance. This value determines the size of the read cache. However, if the value is too large, more memory is consumed. +**readSize** indicates the number of bytes read each time. You can set it to a value greater than the physical read unit to improve performance. This value determines the size of the read cache. However, if the value is too large, more memory is consumed. -**prog_size** indicates the number of bytes written each time. You can set it to a value greater than the physical write unit to improve performance. This value determines the size of the write cache and must be an integral multiple of **read_size**. However, if the value is too large, more memory is consumed. +**writeSize** indicates the number of bytes written each time. You can set it to a value greater than the physical write unit to improve performance. This value determines the size of the write cache and must be an integral multiple of **readSize**. However, if the value is too large, more memory is consumed. -**block_size**: indicates the number of bytes in each erase block. The value can be greater than that of the physical erase unit. However, a smaller value is recommended because each file occupies at least one block. The value must be an integral multiple of **prog_size**. +**blockSize** indicates the number of bytes in each erase block. The value can be greater than that of the physical erase unit. However, a smaller value is recommended because each file occupies at least one block. The value must be an integral multiple of **writeSize**. -**block_count** indicates the number of blocks that can be erased, which depends on the capacity of the block device and the size of the block to be erased (**block_size**). +**blockCount** indicates the number of blocks that can be erased, which depends on the capacity of the block device and the size of the block to be erased (**blockSize**). ### Sample Code - The sample code is as follows: +**Prerequisites** + +- **/littlefs** is mounted to the QEMU. +- LittleFS is enabled. + 1. In the **kernel/liteos_m** directory, run the **make menuconfig** command and choose **FileSystem->Enable FS VFS** to enable VFS. + 2. Select **Enable Little FS** to enable the LittleFS. + +The sample code is as follows: + +The sample code can be compiled and verified in **./kernel/liteos_m/testsuites/src/osTest.c**. The **ExampleLittlefs** function is called in **TestTaskEntry**. ``` -#include "lfs.h" -#include "stdio.h" -lfs_t lfs; -lfs_file_t file; -const struct lfs_config cfg = { - // block device operations - .read = user_provided_block_device_read, - .prog = user_provided_block_device_prog, - .erase = user_provided_block_device_erase, - .sync = user_provided_block_device_sync, - // block device configuration - .read_size = 16, - .prog_size = 16, - .block_size = 4096, - .block_count = 128, - .cache_size = 16, - .lookahead_size = 16, - .block_cycles = 500, -}; -int main(void) { - // mount the filesystem - int err = lfs_mount(&lfs, &cfg); - // reformat if we can't mount the filesystem - // this should only happen on the first boot - if (err) { - lfs_format(&lfs, &cfg); - lfs_mount(&lfs, &cfg); +#include +#include +#include "sys/stat.h" +#include "fcntl.h" +#include "unistd.h" + +#define BUF_SIZE 20 +#define TEST_ROOT "/littlefs" /* Set the test root directory. */ +VOID ExampleLittlefs(VOID) +{ + int ret; + int fd; + ssize_t len; + off_t off; + char dirName[BUF_SIZE] = TEST_ROOT"/test"; + char fileName[BUF_SIZE] = TEST_ROOT"/test/file.txt"; + char writeBuf[BUF_SIZE] = "Hello OpenHarmony!"; + char readBuf[BUF_SIZE] = {0}; + + /* Create a test directory. */ + ret = mkdir(dirName, 0777); + if (ret != LOS_OK) { + printf("mkdir failed.\n"); + return; } - // read current count - uint32_t boot_count = 0; - lfs_file_open(&lfs, &file, "boot_count", LFS_O_RDWR | LFS_O_CREAT); - lfs_file_read(&lfs, &file, &boot_count, sizeof(boot_count)); - // update boot count - boot_count += 1; - lfs_file_rewind(&lfs, &file); - lfs_file_write(&lfs, &file, &boot_count, sizeof(boot_count)); - // remember the storage is not updated until the file is closed successfully - lfs_file_close(&lfs, &file); - // release any resources we were using - lfs_unmount(&lfs); - // print the boot count - printf("boot_count: %d\n", boot_count); + + /* Create a file that is readable and writable. */ + fd = open(fileName, O_RDWR | O_CREAT, 0777); + if (fd < 0) { + printf("open file failed.\n"); + return; + } + + /* Write the content from writeBuf to the file. */ + len = write(fd, writeBuf, strlen(writeBuf)); + if (len != strlen(writeBuf)) { + printf("write file failed.\n"); + return; + } + + /* Save the file to a storage device. */ + ret = fsync(fd); + if (ret != LOS_OK) { + printf("fsync failed.\n"); + return; + } + + /* Move the read/write pointer to the beginning of the file. */ + off = lseek(fd, 0, SEEK_SET); + if (off != 0) { + printf("lseek failed.\n"); + return; + } + + /* Read the file content with the length of readBuf to readBuf. */ + len = read(fd, readBuf, sizeof(readBuf)); + if (len != strlen(writeBuf)) { + printf("read file failed.\n"); + return; + } + printf("%s\n", readBuf); + + /* Close the test file. */ + ret = close(fd); + if (ret != LOS_OK) { + printf("close failed.\n"); + return; + } + + /* Delete the test file. */ + ret = unlink(fileName); + if (ret != LOS_OK) { + printf("unlink failed.\n"); + return; + } + + /* Delete the directory. */ + ret = rmdir(dirName); + if (ret != LOS_OK) { + printf("rmdir failed.\n"); + return; + } + + return LOS_OK; } ``` - - **Verification** +**Verification** The development is successful if the return result is as follows: ``` -Say hello 1 times. +Hello OpenHarmony! ``` + diff --git a/en/device-dev/kernel/kernel-mini-memory-debug.md b/en/device-dev/kernel/kernel-mini-memory-debug.md index 4cb0f39bba4e3a86a09238de86431d4541f8d051..c23372f9f0ffdd1b55e3eb818cb0f5acb78c942f 100644 --- a/en/device-dev/kernel/kernel-mini-memory-debug.md +++ b/en/device-dev/kernel/kernel-mini-memory-debug.md @@ -11,16 +11,16 @@ The purpose of memory debugging is to locate problems related to dynamic memory. Memory information includes the memory pool size, memory usage, remaining memory size, maximum free memory, memory waterline, number of memory nodes, and fragmentation rate. -- Memory waterline: indicates the maximum memory used in a memory pool. The waterline value is updated upon each memory allocation and release. The memory pool size can be optimized based on this value. +- Memory waterline indicates the maximum memory used in a memory pool. The waterline value is updated upon each memory allocation and release. The memory pool size can be optimized based on this value. -- Fragmentation rate: indicates the fragmentation degree of the memory pool. If the fragmentation rate is high, there are a large number of free memory blocks in the memory pool but each block is small. You can use the following formula to calculate the fragmentation rate:
Fragmentation rate = 100 – 100 x Maximum free memory block size/Remaining memory size +- Fragmentation rate indicates the fragmentation degree of the memory pool. If the fragmentation rate is high, there are a large number of free memory blocks in the memory pool but each block is small. You can use the following formula to calculate the fragmentation rate:
Fragmentation rate = 100 – 100 x Maximum free memory block size/Remaining memory size -- Other parameters: You can call APIs described in [Memory Management](../kernel/kernel-mini-basic-memory.md) to scan node information in the memory pool and collect statistics. +- You can use [APIs for memory management](kernel-mini-basic-memory.md) to scan node information in the memory pool and collect statistics. ### Function Configuration -**LOSCFG_MEM_WATERLINE**: specifies the setting of the memory information statistics function. This function is enabled by default. To disable the function, set this macro to **0** in **target_config.h**. If you want to obtain the memory waterline, you must enable this macro. +**LOSCFG_MEM_WATERLINE** specifies the setting of the memory information statistics function. This function is enabled by default. To disable the function, set this macro to **0** in **target_config.h**. If you want to obtain the memory waterline, you must enable this macro. ### Development Guidelines @@ -33,20 +33,20 @@ Key structure: ``` typedef struct { - UINT32 totalUsedSize; // Memory usage of the memory pool. - UINT32 totalFreeSize; // Remaining size of the memory pool. - UINT32 maxFreeNodeSize; // Maximum size of the free memory block in the memory pool. - UINT32 usedNodeNum; // Number of non-free memory blocks in the memory pool. - UINT32 freeNodeNum; // Number of free memory blocks in the memory pool. -#if (LOSCFG_MEM_WATERLINE == 1) //The function is enabled by default. To disable it, set this macro to 0 in target_config.h. - UINT32 usageWaterLine; // Waterline of the memory pool. + UINT32 totalUsedSize; // Memory usage of the memory pool. + UINT32 totalFreeSize; // Remaining size of the memory pool. + UINT32 maxFreeNodeSize; // Maximum size of the free memory block in the memory pool. + UINT32 usedNodeNum; // Number of non-free memory blocks in the memory pool. + UINT32 freeNodeNum; // Number of free memory blocks in the memory pool. +#if (LOSCFG_MEM_WATERLINE == 1) // The function is enabled by default. To disable it, set this macro to 0 in target_config.h. + UINT32 usageWaterLine; // Waterline of the memory pool. #endif } LOS_MEM_POOL_STATUS; ``` -- To obtain the memory waterline, call **LOS_MemInfoGet**. The first parameter in the API is the start address of the memory pool, and the second parameter is the handle of the **LOS_MEM_POOL_STATUS** type. The **usageWaterLine** field indicates the waterline. +To obtain the memory waterline, call **LOS_MemInfoGet**. The first parameter in the API is the start address of the memory pool, and the second parameter is the handle of the **LOS_MEM_POOL_STATUS** type. The **usageWaterLine** field indicates the waterline. -- To calculate the memory fragmentation rate, call **LOS_MemInfoGet** to obtain the remaining memory size and the maximum free memory block size in the memory pool, and then calculate the fragmentation rate of the dynamic memory pool as follows:
Fragmentation rate = 100 – 100 x Maximum free memory block size/Remaining memory size +To calculate the memory fragmentation rate, call **LOS_MemInfoGet** to obtain the remaining memory size and the maximum free memory block size in the memory pool, and then calculate the fragmentation rate of the dynamic memory pool as follows:
Fragmentation rate = 100 – 100 x Maximum free memory block size/Remaining memory size #### Development Example @@ -62,7 +62,9 @@ This example implements the following: #### Sample Code - The sample code is as follows: +The sample code is as follows: + +The sample code can be compiled and verified in **./kernel/liteos_m/testsuites/src/osTest.c**. The **MemTest** function is called in **TestTaskEntry**. ``` #include @@ -71,20 +73,20 @@ This example implements the following: #include "los_memory.h" #include "los_config.h" - +#define TEST_TASK_PRIO 5 void MemInfoTaskFunc(void) { LOS_MEM_POOL_STATUS poolStatus = {0}; - /* pool is the memory address of the information to be collected. OS_SYS_MEM_ADDR is used as an example. */ + /* pool is the memory address of the information to be collected. OS_SYS_MEM_ADDR is used as an example. */ void *pool = OS_SYS_MEM_ADDR; LOS_MemInfoGet(pool, &poolStatus); /* Calculate the fragmentation rate of the memory pool. */ - unsigned char fragment = 100 - poolStatus.maxFreeNodeSize * 100 / poolStatus.totalFreeSize; + float fragment = 100 - poolStatus.maxFreeNodeSize * 100.0 / poolStatus.totalFreeSize; /* Calculate the memory usage of the memory pool. */ - unsigned char usage = LOS_MemTotalUsedGet(pool) * 100 / LOS_MemPoolSizeGet(pool); - printf("usage = %d, fragment = %d, maxFreeSize = %d, totalFreeSize = %d, waterLine = %d\n", usage, fragment, poolStatus.maxFreeNodeSize, - poolStatus.totalFreeSize, poolStatus.usageWaterLine); + float usage = LOS_MemTotalUsedGet(pool) * 100.0 / LOS_MemPoolSizeGet(pool); + printf("usage = %f, fragment = %f, maxFreeSize = %d, totalFreeSize = %d, waterLine = %d\n", usage, fragment, + poolStatus.maxFreeNodeSize, poolStatus.totalFreeSize, poolStatus.usageWaterLine); } int MemTest(void) @@ -93,9 +95,9 @@ int MemTest(void) unsigned int taskID; TSK_INIT_PARAM_S taskStatus = {0}; taskStatus.pfnTaskEntry = (TSK_ENTRY_FUNC)MemInfoTaskFunc; - taskStatus.uwStackSize = 0x1000; + taskStatus.uwStackSize = LOSCFG_BASE_CORE_TSK_DEFAULT_STACK_SIZE; taskStatus.pcName = "memInfo"; - taskStatus.usTaskPrio = 10; + taskStatus.usTaskPrio = TEST_TASK_PRIO; ret = LOS_TaskCreate(&taskID, &taskStatus); if (ret != LOS_OK) { printf("task create failed\n"); @@ -112,7 +114,9 @@ The result is as follows: ``` -usage = 22, fragment = 3, maxFreeSize = 49056, totalFreeSize = 50132, waterLine = 1414 +usage = 0.458344, fragment = 0.000000, maxFreeSize = 16474928, totalFreeSize = 16474928, waterLine = 76816 + +The preceding data may vary depending on the running environment. ``` ## Memory Leak Check @@ -124,14 +128,15 @@ As an optional function of the kernel, memory leak check is used to locate dynam ### Function Configuration -1. **LOSCFG_MEM_LEAKCHECK**: specifies the setting of the memory leak check. This function is disabled by default. To enable the function, set this macro to **1** in **target_config.h**. +**LOSCFG_MEM_LEAKCHECK** specifies the setting of the memory leak check. This function is disabled by default. To enable the function, set this macro to **1** in **target_config.h**. -2. **LOSCFG_MEM_RECORD_LR_CNT**: specifies the number of LRs recorded. The default value is **3**. Each LR consumes the memory of **sizeof(void\*)** bytes. +**LOSCFG_MEM_RECORD_LR_CNT** specifies the number of LRs recorded. The default value is **3**. Each LR consumes the memory of **sizeof(void \*)** bytes. -3. **LOSCFG_MEM_OMIT_LR_CNT**: specifies the number of ignored LRs. The default value is **4**, which indicates that LRs are recorded from the time when **LOS_MemAlloc** is called. You can change the value based on actual requirements. This macro is configured because: - - **LOS_MemAlloc** is also called internally. - - **LOS_MemAlloc** may be encapsulated externally. - - The number of LRs configured by **LOSCFG_MEM_RECORD_LR_CNT** is limited. +**LOSCFG_MEM_OMIT_LR_CNT** specifies the number of ignored LRs. The default value is **4**, which indicates that LRs are recorded from the time when **LOS_MemAlloc** is called. You can change the value based on actual requirements. This macro is configured because: + +- **LOS_MemAlloc** is also called internally. +- **LOS_MemAlloc** may be encapsulated externally. +- The number of LRs configured by **LOSCFG_MEM_RECORD_LR_CNT** is limited. Correctly setting this macro can ignore invalid LRs and reduce memory consumption. @@ -156,7 +161,8 @@ node size LR[0] LR[1] LR[2] 0x100179cc: 0x5c 0x9b02c24e 0x9b02c246 0x9b008ef0 ``` -> ![icon-caution.gif](../public_sys-resources/icon-caution.gif) **CAUTION**
+> **CAUTION** +> > Enabling memory leak check affects memory application performance. LR addresses will be recorded for each memory node, increasing memory overhead. @@ -179,6 +185,12 @@ This example implements the following: The sample code is as follows: +The sample code can be compiled and verified in **./kernel/liteos_m/testsuites/src/osTest.c**. The **MemLeakTest** function is called in **TestTaskEntry**. + +When QEMU is running, ensure that the value of **LOSCFG_MEM_FREE_BY_TASKID** in **target_config.h** is **0**. + +After the memory check function is enabled, other tasks running on certain platforms may frequently print memory-related information such as "psp, start = xxxxx, end = xxxxxxx". Ignore the information or delete the print information called by **OsStackAddrGet**. + ``` #include @@ -216,7 +228,9 @@ node size LR[0] LR[1] LR[2] 0x20002594: 0x120 0x08000e0c 0x08000e56 0x08000c8a 0x20002aac: 0x56 0x08000e0c 0x08000e56 0x08004220 0x20003ac4: 0x1d 0x08001458 0x080014e0 0x080041e6 -0x20003ae0: 0x1d 0x080041ee 0x08000cc2 0x00000000 +0x20003ae0: 0x1d 0x080041ee 0x08000cc2 0x00000000 + +The preceding data may vary depending on the running environment. ``` The difference between the two logs is as follows. The following memory nodes are suspected to have blocks with a memory leak. @@ -224,7 +238,9 @@ The difference between the two logs is as follows. The following memory nodes ar ``` 0x20003ac4: 0x1d 0x08001458 0x080014e0 0x080041e6 -0x20003ae0: 0x1d 0x080041ee 0x08000cc2 0x00000000 +0x20003ae0: 0x1d 0x080041ee 0x08000cc2 0x00000000 + +The preceding data may vary depending on the running environment. ``` The following is part of the assembly file: @@ -246,6 +262,8 @@ The following is part of the assembly file: 0x80041f0: 0xf7fd 0xf933 BL LOS_MemUsedNodeShow ; 0x800145a 0x80041f4: 0xbd10 POP {R4, PC} 0x80041f6: 0x0000 MOVS R0, R0 + + The preceding data may vary depending on the running environment. ``` The memory node addressed by **0x080041ee** is not released after being requested in **MemLeakTest**. @@ -260,15 +278,16 @@ As an optional function of the kernel, memory corruption check is used to check ### Function Configuration -**LOSCFG_BASE_MEM_NODE_INTEGRITY_CHECK**: specifies the setting of the memory corruption check. This function is disabled by default. To enable the function, set this macro to **1** in **target_config.h**. +**LOSCFG_BASE_MEM_NODE_INTEGRITY_CHECK** specifies the setting of the memory corruption check. This function is disabled by default. To enable the function, set this macro to **1** in **target_config.h**. 1. If this macro is enabled, the memory pool integrity will be checked in real time upon each memory allocation. -2. If this macro is not enabled, you can call **LOS_MemIntegrityCheck** to check the memory pool integrity when required. Using **LOS_MemIntegrityCheck** does not affect the system performance. In addition, the check accuracy decreases because the node header does not contain the magic number (which is available only when **LOSCFG_BASE_MEM_NODE_INTEGRITY_CHECK** is enabled). +2. If this macro is not enabled, you can call **LOS_MemIntegrityCheck** to check the memory pool integrity when required. Using **LOS_MemIntegrityCheck** does not affect the system performance. However, the check accuracy decreases because the node header does not contain the magic number (which is available only when **LOSCFG_BASE_MEM_NODE_INTEGRITY_CHECK** is enabled). This check only detects the corrupted memory node and provides information about the previous node (because memory is contiguous, a node is most likely corrupted by the previous node). To further determine the location where the previous node is requested, you need to enable the memory leak check and use LRs to locate the fault. -> ![icon-caution.gif](../public_sys-resources/icon-caution.gif) **CAUTION**
+> **CAUTION** +> > If memory corruption check is enabled, a magic number is added to the node header, which increases the size of the node header. The real-time integrity check has a great impact on the performance. In performance-sensitive scenarios, you are advised to disable this function and use **LOS_MemIntegrityCheck** to check the memory pool integrity. @@ -295,6 +314,12 @@ This example implements the following: The sample code is as follows: +The sample code can be compiled and verified in **./kernel/liteos_m/testsuites/src/osTest.c**. The **MemIntegrityTest** function is called in **TestTaskEntry**. + +When QEMU is running, ensure that the value of **LOSCFG_MEM_FREE_BY_TASKID** in **target_config.h** is **0**. + +Because the exception is triggered intentionally, you need to restart QEMU when the execution is complete. For example, open a new terminal and run **killall qemu-system-arm**. + ``` #include @@ -320,20 +345,28 @@ The log is as follows: ``` -[ERR][OsMemMagicCheckPrint], 2028, memory check error! -memory used but magic num wrong, magic num = 0x00000000 /* Error information, indicating that the first four bytes, that is, the magic number, of the next node are corrupted. */ - - broken node head: 0x20003af0 0x00000000 0x80000020, prev node head: 0x20002ad4 0xabcddcba 0x80000020 -/* Key information about the corrupted node and its previous node, including the address of the previous node, magic number of the node, and sizeAndFlag of the node. In this example, the magic number of the corrupted node is cleared. */ - - broken node head LR info: /* The node LR information can be output only after the memory leak check is enabled. */ - LR[0]:0x0800414e - LR[1]:0x08000cc2 - LR[2]:0x00000000 - - pre node head LR info: /* Based on the LR information, you can find where the previous node is requested in the assembly file and then perform further analysis. */ - LR[0]:0x08004144 - LR[1]:0x08000cc2 - LR[2]:0x00000000 -[ERR]Memory integrity check error, cur node: 0x20003b10, pre node: 0x20003af0 /* Addresses of the corrupted node and its previous node */ + +/* Error information indicating the field corrupted. In this example, the first four bytes of the next node are cleared, that is, the magic number field is corrupted. */ +[ERR][IT_TST_INI][OsMemMagicCheckPrint], 1664, memory check error! +memory used but magic num wrong, magic num = 0x0 + + /* Key information about the corrupted node and its previous node, including the address of the previous node, magic number of the node, and sizeAndFlag of the node. In this example, the magic number of the corrupted node is cleared. */ + broken node head: 0x2103d7e8 0x0 0x80000020, prev node head: 0x2103c7cc 0xabcddcba 0x80000020 + + /*The node LR information can be output only after the memory leak check is enabled. */ + broken node head LR info: + LR[0]:0x2101906c + LR[1]:0x0 + LR[2]:0x0 + + /* Based on the LR information, you can determine where the previous node in requsted in the assembly file and check the use of the node. */ + pre node head LR info: + LR[0]:0x2101906c + LR[1]:0x0 + LR[2]:0x0 + + /* Addresses of the corrupted node and its previous node. */ +[ERR][IT_TST_INI]Memory integrity check error, cur node: 0x2103d784, pre node: 0x0 + + The preceding data may vary depending on the running environment. ``` diff --git a/en/device-dev/kernel/kernel-mini-memory-exception.md b/en/device-dev/kernel/kernel-mini-memory-exception.md index a5fa385993177947d5884643fd3186cb65d2bfa8..599623cbb364b7fc93cd1b6a9cd6d11cc338053d 100644 --- a/en/device-dev/kernel/kernel-mini-memory-exception.md +++ b/en/device-dev/kernel/kernel-mini-memory-exception.md @@ -1,321 +1,277 @@ # Exception Debugging + ## Basic Concepts The OpenHarmony LiteOS-M provides exception handling and debugging measures to help locate and analyze problems. Exception handling involves a series of actions taken by the OS to respond to exceptions occurred during the OS running, for example, printing the exception type, system status, call stack information of the current function, CPU information, and call stack information of tasks. + ## Working Principles -A stack frame contains information such as function parameters, variables, and return value in a function call process. When a function is called, a stack frame of the subfunction is created, and the input parameters, local variables, and registers of the function are stored into the stack. Stack frames grow towards lower addresses. The ARM32 CPU architecture is used as an example. Each stack frame stores the historical values of the program counter \(PC\), LR \(link register\), stack pointer \(SP\), and frame pointer \(FP\) registers. The LR points to the return address of a function, and the FP points to the start address of the stack frame of the function's parent function. The FP helps locate the parent function's stack frame, which further helps locate the parent function's FP. The parent function's FP helps locate the grandparent function's stack frame and FP... In this way, the call stack of the program can be traced to obtain the relationship between the functions called. +A stack frame contains information such as function parameters, variables, and return value in a function call process. When a function is called, a stack frame of the subfunction is created, and the input parameters, local variables, and registers of the function are stored into the stack. Stack frames grow towards lower addresses. The ARM32 CPU architecture is used as an example. Each stack frame stores the historical values of the program counter (PC), link register (LR), stack pointer (SP), and frame pointer (FP) registers. The LR points to the return address of a function, and the FP points to the start address of the stack frame of the function's parent function. The FP helps locate the parent function's stack frame, which further helps locate the parent function's FP. The parent function's FP helps locate the grandparent function's stack frame and FP... In this way, the call stack of the program can be traced to obtain the relationship between the functions called. When an exception occurs in the system, the system prints the register information in the stack frame of the abnormal function as well as the LRs and FPs in the stack frames of its parent function and grandfather function. The relationships between the functions help you locate the cause of the exception. The following figure illustrates the stack analysis mechanism for your reference. The actual stack information varies depending on the CPU architecture. -**Figure 1** Stack analysis mechanism +**Figure 1** Stack analysis mechanism + ![](figures/stack-analysis-mechanism.png "stack-analysis-mechanism") In the figure, the registers in different colors indicate different functions. The registers save related data when functions are called. The FP register helps track the stack to the parent function of the abnormal function and further presents the relationships between the functions called. + ## Available APIs The following table describes APIs available for the OpenHarmony LiteOS-M stack trace module. For more details about the APIs, see the API reference. -**Table 1** APIs of the stack trace module - - - - - - - - - - - - - - - -

Function

-

API

-

Description

-

Stack trace

-

LOS_BackTrace

-

Prints the call stack relationship at the function calling point.

-

LOS_RecordLR

-

Obtains the call stack relationship at the function calling point when print is unavailable.

-
- -## Usage Guidelines + **Table 1** APIs of the stack trace module + +| Category| API| +| -------- | -------- | +| Stack tracing| **LOS_BackTrace**: prints the call stack relationship at the calling point.
**LOS_RecordLR**: obtains the call stack relationship at the calling point when print is unavailable.| + + +## Development Guidelines + ### How to Develop The typical process for enabling exception debugging is as follows: -1. Configure the macros related to exception handling. - - Modify the configuration in the **target\_config.h** file. - - - - - - - - - - - - - - - - -

Parameter

-

Description

-

Value

-

LOSCFG_BACKTRACE_DEPTH

-

Depth of the function call stack. The default value is 15.

-

15

-

LOSCFG_BACKTRACE_TYPE

-

Type of the stack trace.

-

0: disabled

-

1: supports function call stack analysis of the Cortex-m series hardware.

-

2: supports function call stack analysis of the RISC-V series hardware.

-

Set this parameter to 1 or 2 based on the toolchain type.

-
- - -1. Use the error code in the example to build and run a project, and check the error information displayed on the serial port terminal. The sample code simulates error code. During actual product development, use the exception debugging mechanism to locate exceptions. - - The following example demonstrates the exception output through a task. The task entry function simulates calling of multiple functions and finally calls a function that simulates an exception. The sample code is as follows: - - ``` - #include - #include "los_config.h" - #include "los_interrupt.h" - #include "los_task.h" - - UINT32 g_taskExcId; - #define TSK_PRIOR 4 - - /* Simulate an abnormal function. */ - - UINT32 Get_Result_Exception_0(UINT16 dividend){ - UINT32 divisor = 0; - UINT32 result = dividend / divisor; - return result; - } - - UINT32 Get_Result_Exception_1(UINT16 dividend){ - return Get_Result_Exception_0(dividend); - } - - UINT32 Get_Result_Exception_2(UINT16 dividend){ - return Get_Result_Exception_1(dividend); - } - - UINT32 Example_Exc(VOID) - { - UINT32 ret; - - printf("Enter Example_Exc Handler.\r\n"); - - /* Simulate the function calling. */ - ret = Get_Result_Exception_2(TSK_PRIOR); - printf("Divided result =%u.\r\n", ret); - - printf("Exit Example_Exc Handler.\r\n"); - return ret; - } - - - /* Task entry function used to create a task with an exception. */ - UINT32 Example_Exc_Entry(VOID) - { - UINT32 ret; - TSK_INIT_PARAM_S initParam; - - /* Lock task scheduling to prevent newly created tasks from being scheduled prior to this task due to higher priority.*/ - LOS_TaskLock(); - - printf("LOS_TaskLock() Success!\r\n"); - - initParam.pfnTaskEntry = (TSK_ENTRY_FUNC)Example_Exc; - initParam.usTaskPrio = TSK_PRIOR; - initParam.pcName = "Example_Exc"; - initParam.uwStackSize = LOSCFG_SECURE_STACK_DEFAULT_SIZE; - /* Create a task with higher priority. The task will not be executed immediately after being created, because task scheduling is locked.*/ - ret = LOS_TaskCreate(&g_taskExcId, &initParam); - if (ret != LOS_OK) { - LOS_TaskUnlock(); - - printf("Example_Exc create Failed!\r\n"); - return LOS_NOK; - } - - printf("Example_Exc create Success!\r\n"); - - /* Unlock task scheduling. The task with the highest priority in the Ready queue will be executed.*/ - LOS_TaskUnlock(); - - return LOS_OK; - } - ``` - - -1. The error information displayed on the serial port terminal is as follows: - - ``` - entering kernel init... - LOS_TaskLock() Success! - Example_Exc create Success! - Entering scheduler - Enter Example_Exc Handler. - *************Exception Information************** - Type = 10 - ThrdPid = 4 - Phase = exc in task - FaultAddr = 0xabababab - Current task info: - Task name = Example_Exc - Task ID = 4 - Task SP = 0x200051ac - Task ST = 0x20004ff0 - Task SS = 0x200 - Exception reg dump: - PC = 0x80037da - LR = 0x80037fe - SP = 0x20005190 - R0 = 0x4 - R1 = 0x40 - R2 = 0x4 - R3 = 0x0 - R4 = 0x4040404 - R5 = 0x5050505 - R6 = 0x6060606 - R7 = 0x20005190 - R8 = 0x8080808 - R9 = 0x9090909 - R10 = 0x10101010 - R11 = 0x11111111 - R12 = 0x12121212 - PriMask = 0x0 - xPSR = 0x41000000 - ----- backtrace start ----- - backtrace 0 -- lr = 0x800381a - backtrace 1 -- lr = 0x8003836 - backtrace 2 -- lr = 0x8005a4e - backtrace 3 -- lr = 0x8000494 - backtrace 4 -- lr = 0x8008620 - backtrace 5 -- lr = 0x800282c - backtrace 6 -- lr = 0x80008a0 - backtrace 7 -- lr = 0x80099f8 - backtrace 8 -- lr = 0x800a01a - backtrace 9 -- lr = 0x800282c - backtrace 10 -- lr = 0x80008a0 - backtrace 11 -- lr = 0x80099f8 - backtrace 12 -- lr = 0x8009bf0 - backtrace 13 -- lr = 0x8009c52 - backtrace 14 -- lr = 0x80099aa - ----- backtrace end ----- - - TID Priority Status StackSize WaterLine StackPoint TopOfStack EventMask SemID name - --- -------- -------- --------- ---------- ---------- ---------- --------- ----- ---- - 0 0 Pend 0x2d0 0x104 0x200029bc 0x200027f0 0x0 0xffff Swt_Task - 1 31 Ready 0x500 0x44 0x20002f84 0x20002ac8 0x0 0xffff IdleCore000 - 2 6 Ready 0x1000 0x44 0x20003f94 0x20002fd8 0x0 0xffff TaskSampleEntry1 - 3 7 Ready 0x1000 0x44 0x20004f9c 0x20003fe0 0x0 0xffff TaskSampleEntry2 - 4 4 Running 0x200 0xec 0x200051ac 0x20004ff0 0x0 0xffff Example_Exc - - OS exception NVIC dump: - interrupt enable register, base address: 0xe000e100, size: 0x20 - 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 - interrupt pending register, base address: 0xe000e200, size: 0x20 - 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 - interrupt active register, base address: 0xe000e300, size: 0x20 - 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 - interrupt priority register, base address: 0xe000e400, size: 0xf0 - 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 - 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 - 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 - 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 - interrupt exception register, base address: 0xe000ed18, size: 0xc - 0x0 0x0 0xf0f00000 - interrupt shcsr register, base address: 0xe000ed24, size: 0x4 - 0x70008 - interrupt control register, base address: 0xe000ed04, size: 0x4 - 0x400f806 - - memory pools check: - system heap memcheck over, all passed! - memory pool check end! - ``` +1. Configure the macros related to exception handling + in the **target_config.h** file. + | Configuration Item| Description| Value| + | -------- | -------- | -------- | + | LOSCFG_BACKTRACE_DEPTH | Depth of the function call stack. The default value is **15**.| 15 | + | LOSCFG_BACKTRACE_TYPE | Type of the stack tracing.
**0**: The stack tracing is disabled.
**1**: supports call stack analysis of the Cortex-M series hardware.
**2**: supports call stack analysis of the RISC-V series hardware.| Set this parameter to **1** or **2** based on the toolchain type.| + +1. Use the error code in the example to build and run a project, and check the error information displayed on the serial port terminal. The sample code simulates error code. During actual product development, use the exception debugging mechanism to locate exceptions. + The following example demonstrates the exception output through a task. The task entry function simulates calling of multiple functions and finally calls a function that simulates an exception. The sample code is as follows: + + The sample code can be compiled and verified in **./kernel/liteos_m/testsuites/src/osTest.c**. The **ExampleExcEntry** function is called in **TestTaskEntry**. + + ``` + #include + #include "los_config.h" + #include "los_interrupt.h" + #include "los_task.h" + + UINT32 g_taskExcId; + #define TSK_PRIOR 4 + + /* Simulate an exception. */ + UINT32 GetResultException0(UINT16 dividend){ + UINT32 result = *(UINT32 *)(0xffffffff); + printf("Enter GetResultException0. %u\r\n", result); + return result; + } + + UINT32 GetResultException1(UINT16 dividend){ + printf("Enter GetResultException1.\r\n"); + return GetResultException0(dividend); + } + + UINT32 GetResultException2(UINT16 dividend){ + printf("Enter GetResultException2.\r\n"); + return GetResultException1(dividend); + } + + UINT32 ExampleExc(VOID) + { + UINT32 ret; + + printf("Enter Example_Exc Handler.\r\n"); + + /* Simulate the triggering of the exception. */ + ret = GetResultException2(TSK_PRIOR); + printf("Divided result =%u.\r\n", ret); + + printf("Exit Example_Exc Handler.\r\n"); + return ret; + } + + + /* Create a task with an exception in the task entry function. */ + UINT32 ExampleExcEntry(VOID) + { + UINT32 ret; + TSK_INIT_PARAM_S initParam = { 0 }; + + /* Lock task scheduling to prevent newly created tasks from being scheduled prior to this task due to higher priority. */ + LOS_TaskLock(); + + printf("LOS_TaskLock() Success!\r\n"); + + initParam.pfnTaskEntry = (TSK_ENTRY_FUNC)ExampleExc; + initParam.usTaskPrio = TSK_PRIOR; + initParam.pcName = "Example_Exc"; + initParam.uwStackSize = LOSCFG_BASE_CORE_TSK_DEFAULT_STACK_SIZE; + /* Create a task with a higher priority. The task will not be executed because task scheduling is locked. */ + ret = LOS_TaskCreate(&g_taskExcId, &initParam); + if (ret != LOS_OK) { + LOS_TaskUnlock(); + + printf("Example_Exc create Failed!\r\n"); + return LOS_NOK; + } + + printf("Example_Exc create Success!\r\n"); + + /* Unlock task scheduling. The task with the highest priority in the Ready queue will be executed. */ + LOS_TaskUnlock(); + + return LOS_OK; + } + ``` + + The error information output by the serial port terminal is as follows: + + ``` + LOS_TaskLock() Success! + Example_Exc create Success! + Enter Example_Exc Handler. + Enter GetResultException2. + Enter GetResultException1. + *************Exception Information************** + Type = 4 + ThrdPid = 5 + Phase = exc in task + FaultAddr = 0xfffffffc + Current task info: + Task name = Example_Exc + Task ID = 5 + Task SP = 0x210549bc + Task ST = 0x21053a00 + Task SS = 0x1000 + Exception reg dump: + PC = 0x2101c61a + LR = 0x2101c64d + SP = 0x210549a8 + R0 = 0x4 + R1 = 0xa + R2 = 0x0 + R3 = 0xffffffff + R4 = 0x2103fb20 + R5 = 0x5050505 + R6 = 0x6060606 + R7 = 0x210549a8 + R8 = 0x8080808 + R9 = 0x9090909 + R10 = 0x10101010 + R11 = 0x11111111 + R12 = 0x0 + PriMask = 0x0 + xPSR = 0x41000000 + ----- backtrace start ----- + backtrace 0 -- lr = 0x2101c64c + backtrace 1 -- lr = 0x2101c674 + backtrace 2 -- lr = 0x2101c696 + backtrace 3 -- lr = 0x2101b1ec + ----- backtrace end ----- + + TID Priority Status StackSize WaterLine StackPoint TopOfStack EventMask SemID CPUUSE CPUUSE10s CPUUSE1s TaskEntry name + --- -------- -------- --------- --------- ---------- ---------- --------- ------ ------- --------- -------- ---------- ---- + 0 0 Pend 0x1000 0xdc 0x2104730c 0x210463e8 0 0xffff 0.0 0.0 0.0 0x2101a199 Swt_Task + 1 31 Ready 0x500 0x44 0x210478e4 0x21047428 0 0xffff 0.0 0.0 0.0 0x2101a9c9 IdleCore000 + 2 5 PendTime 0x6000 0xd4 0x2104e8f4 0x210489c8 0 0xffff 5.7 5.7 0.0 0x21016149 tcpip_thread + 3 3 Pend 0x1000 0x488 0x2104f90c 0x2104e9e8 0x1 0xffff 8.6 8.6 0.0 0x21016db5 ShellTaskEntry + 4 25 Ready 0x4000 0x460 0x21053964 0x2104f9f0 0 0xffff 9.0 8.9 0.0 0x2101c765 IT_TST_INI + 5 4 Running 0x1000 0x458 0x210549bc 0x21053a00 0 0xffff 76.5 76.6 0.0 0x2101c685 Example_Exc + + OS exception NVIC dump: + interrupt enable register, base address: 0xe000e100, size: 0x20 + 0x2001 0x0 0x0 0x0 0x0 0x0 0x0 0x0 + interrupt pending register, base address: 0xe000e200, size: 0x20 + 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 + interrupt active register, base address: 0xe000e300, size: 0x20 + 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 + interrupt priority register, base address: 0xe000e400, size: 0xf0 + 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 + 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 + 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 + 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 + interrupt exception register, base address: 0xe000ed18, size: 0xc + 0x0 0x0 0xf0f00000 + interrupt shcsr register, base address: 0xe000ed24, size: 0x4 + 0x70002 + interrupt control register, base address: 0xe000ed04, size: 0x4 + 0x1000e805 + + memory pools check: + system heap memcheck over, all passed! + memory pool check end! + + The preceding data may vary depending on the running environment. + ``` ### How to Locate Exceptions The procedure for locating the exception is as follows: -1. Open the image disassembly file \(.asm\) generated after compilation. If the file is not generated by default, use the objdump tool to generate it. Run the following command: - - ``` - arm-none-eabi-objdump -S -l XXX.elf - ``` - - -1. Search for the PC \(pointing to the instruction being executed\) in the ASM file to locate the abnormal function. - - The PC address directs to the instruction being executed when the exception occurs. In the ASM file corresponding to the currently executed binary file, search for the PC value **0x80037da** and locate the instruction being executed by the CPU. Disassemble the code as follows: - - ``` - UINT32 Get_Result_Exception_0(UINT16 dividend){ - 80037c8: b480 push {r7} - 80037ca: b085 sub sp, #20 - 80037cc: af00 add r7, sp, #0 - 80037ce: 4603 mov r3, r0 - 80037d0: 80fb strh r3, [r7, #6] - kernel_liteos_m\targets\cortex-m7_nucleo_f767zi_gcc/Core/Src/exc_example.c:10 - UINT32 divisor = 0; - 80037d2: 2300 movs r3, #0 - 80037d4: 60fb str r3, [r7, #12] - kernel_liteos_m\targets\cortex-m7_nucleo_f767zi_gcc/Core/Src/exc_example.c:11 - UINT32 result = dividend / divisor; - 80037d6: 88fa ldrh r2, [r7, #6] - 80037d8: 68fb ldr r3, [r7, #12] - 80037da: fbb2 f3f3 udiv r3, r2, r3 - 80037de: 60bb str r3, [r7, #8] - ``` - - -1. As indicated by the code: - 1. When the exception occurs, the CPU is executing **udiv r3, r2, r3**. The value of **r3** is **0**, which causes the divide-by-zero error. - 2. The exception occurs in the **Get\_Result\_Exception\_0** function. - -2. Locate the parent function of the abnormal function based on the LR value. - - The code disassembly of the LR value **0x80037fe** is as follows: - - ``` - 080037ec : - Get_Result_Exception_1(): - kernel_liteos_m\targets\cortex-m7_nucleo_f767zi_gcc/Core/Src/exc_example.c:15 - UINT32 Get_Result_Exception_1(UINT16 dividend){ - 80037ec: b580 push {r7, lr} - 80037ee: b082 sub sp, #8 - 80037f0: af00 add r7, sp, #0 - 80037f2: 4603 mov r3, r0 - 80037f4: 80fb strh r3, [r7, #6] - kernel_liteos_m\targets\cortex-m7_nucleo_f767zi_gcc/Core/Src/exc_example.c:16 - return Get_Result_Exception_0(dividend); - 80037f6: 88fb ldrh r3, [r7, #6] - 80037f8: 4618 mov r0, r3 - 80037fa: f7ff ffe5 bl 80037c8 - 80037fe: 4603 mov r3, r0 - ``` - - -1. The previous line of LR **80037fe** is **bl 80037c8 **, which calls the abnormal function. The parent function that calls the abnormal function is **Get\_Result\_Exception\_1\(\)**. -2. Repeat [3](#li18973161743110) to analyze the LR values between **backtrace start** and **backtrace end** in the exception information to obtain the call stack relationship and find the exception cause. - +1. Ensure that the compiler optimization is disabled. Otherwise, the following problems may be optimized during the compilation process. + +2. Open the image disassembly file (.asm) generated. If the file is not generated, use the objdump tool to generate it. The command is as follows: + + ``` + arm-none-eabi-objdump -S -l XXX.elf + ``` + +3. Search for the PC (pointing to the instruction being executed) in the .asm file to locate the abnormal function. + + The PC address directs to the instruction being executed when the exception occurs. In the .asm file corresponding to the currently executed binary file, search for the PC value **0x2101c61a** and locate the instruction being executed by the CPU. Disassemble the code as follows: + + ``` + 2101c60c : + 2101c60c: b580 push {r7, lr} + 2101c60e: b084 sub sp, #16 + 2101c610: af00 add r7, sp, #0 + 2101c612: 4603 mov r3, r0 + 2101c614: 80fb strh r3, [r7, #6] + 2101c616: f04f 33ff mov.w r3, #4294967295 ; 0xffffffff + 2101c61a: 681b ldr r3, [r3, #0] + 2101c61c: 60fb str r3, [r7, #12] + 2101c61e: 68f9 ldr r1, [r7, #12] + 2101c620: 4803 ldr r0, [pc, #12] ; (2101c630 ) + 2101c622: f001 f92b bl 2101d87c + 2101c626: 68fb ldr r3, [r7, #12] + 2101c628: 4618 mov r0, r3 + 2101c62a: 3710 adds r7, #16 + 2101c62c: 46bd mov sp, r7 + 2101c62e: bd80 pop {r7, pc} + 2101c630: 21025f90 .word 0x21025f90 + ``` + + As indicated by the information displayed: + + - The CPU is executing **ldr r3, [r3, #0]** when an exception occurs. The value of **r3** is **0xffffffff**, which causes an invalid address. + - The exception occurs in the **GetResultException0** function. + +4. Search for the parent function of the abnormal function based on the LR value. + The code disassembly of the LR value **0x2101c64d** is as follows: + + ``` + 2101c634 : + 2101c634: b580 push {r7, lr} + 2101c636: b082 sub sp, #8 + 2101c638: af00 add r7, sp, #0 + 2101c63a: 4603 mov r3, r0 + 2101c63c: 80fb strh r3, [r7, #6] + 2101c63e: 4806 ldr r0, [pc, #24] ; (2101c658 ) + 2101c640: f001 f91c bl 2101d87c + 2101c644: 88fb ldrh r3, [r7, #6] + 2101c646: 4618 mov r0, r3 + 2101c648: f7ff ffe0 bl 2101c60c + 2101c64c: 4603 mov r3, r0 + 2101c64e: 4618 mov r0, r3 + 2101c650: 3708 adds r7, #8 + 2101c652: 46bd mov sp, r7 + 2101c654: bd80 pop {r7, pc} + 2101c656: bf00 nop + 2101c658: 21025fb0 .word 0x21025fb0 + ``` + + The previous line of LR **2101c648** is **bl2101c60c **, which calls the abnormal function. The parent function is **GetResultException1**. + +5. Parse the LR value between **backtrace start** and **backtrace end** in the exception information to obtain the call stack relationship where the exception occurs and find the cause of the exception. \ No newline at end of file diff --git a/en/device-dev/kernel/kernel-mini-memory-lms.md b/en/device-dev/kernel/kernel-mini-memory-lms.md index afce67ceeabce8acadfd993eebd32f7e968280b9..eb6f913d03dd05d67d02f852c9975c53918a8a24 100644 --- a/en/device-dev/kernel/kernel-mini-memory-lms.md +++ b/en/device-dev/kernel/kernel-mini-memory-lms.md @@ -1,180 +1,117 @@ # LMS + ## Basic Concepts -Lite Memory Sanitizer \(LMS\) is a tool used to detect memory errors on a real-time basis. LMS can detect buffer overflow, Use-After-Free \(UAF\), and double free errors in real time, and notify the operating system immediately. Together with locating methods such as Backtrace, LMS can locate the code line that causes the memory error. It greatly improves the efficiency of locating memory errors. +Lite Memory Sanitizer (LMS) is a tool used to detect memory errors on a real-time basis. It can detect buffer overflow, Use-After-Free (UAF), and double free errors in real time, and notify the operating system immediately. Together with Backtrace, the LMS can locate the code line that causes the memory error. It greatly improves the efficiency of locating memory errors. The LMS module of the OpenHarmony LiteOS-M kernel provides the following functions: -- Supports check of multiple memory pools. -- Checks the memory allocated by **LOS\_MemAlloc**, **LOS\_MemAllocAlign**, and **LOS\_MemRealloc**. -- Checks the memory when bounds-checking functions are called \(enabled by default\). -- Checks the memory when libc frequently accessed functions, including **memset**, **memcpy**, **memmove**, **strcat**, **strcpy**, **strncat** and **strncpy**, are called. +- Supports check of multiple memory pools. + +- Checks the memory allocated by **LOS_MemAlloc**, **LOS_MemAllocAlign**, and **LOS_MemRealloc**. + +- Checks the memory when bounds-checking functions are called (enabled by default). + +- Checks the memory when libc frequently accessed functions, including **memset**, **memcpy**, **memmove**, **strcat**, **strcpy**, **strncat** and **strncpy**, are called. + ## Working Principles -LMS uses shadow memory mapping to mark the system memory state. There are three states: **Accessible**, **RedZone**, and **Freed**. The shadow memory is located in the tail of the memory pool. +The LMS uses shadow memory mapping to mark the system memory state. There are three states: **Accessible**, **RedZone**, and **Freed**. The shadow memory is located in the tail of the memory pool. + +- After memory is allocated from the heap, the shadow memory in the data area is set to the **Accessible** state, and the shadow memory in the head node area is set to the **RedZone** state. + +- When memory is released from the heap, the shadow memory of the released memory is set to the **Freed** state. + +- During code compilation, a function is inserted before the read/write instructions in the code to check the address validity. The tool checks the state value of the shadow memory that accesses the memory. If the shadow memory is in the **RedZone** statue, an overflow error will be reported. If the shadow memory is in the **Freed** state, a UAF error will be reported. + +- When memory is released, the tool checks the state value of the shadow memory at the released address. If the shadow memory is in the **RedZone** state, a double free error will be reported. -- After memory is allocated from the heap, the shadow memory in the data area is set to the **Accessible** state, and the shadow memory in the head node area is set to the **RedZone** state. -- When memory is released from the heap, the shadow memory of the released memory is set to the **Freed** state. -- During code compilation, a function is inserted before the read/write instructions in the code to check the address validity. The tool checks the state value of the shadow memory that accesses the memory. If the shadow memory is in the **RedZone** statue, an overflow error will be reported. If the shadow memory is in the **Freed** state, a UAF error will be reported. -- When memory is released, the tool checks the state value of the shadow memory at the released address. If the shadow memory is in the **RedZone** state, a double free error will be reported. ## Available APIs -The LMS module of the OpenHarmony LiteOS-M kernel provides the following APIs. For more details about the APIs, see the [API](https://gitee.com/openharmony/kernel_liteos_m/blob/master/components/lms/los_lms.h) reference. - -**Table 1** LMS module APIs - - - - - - - - - - - - - - - - - - - - - - - - -

Function

-

API

-

Description

-

Adding a memory pool to be checked

-

LOS_LmsCheckPoolAdd

-

Adds the address range of a memory pool to the LMS check linked list. LMS performs a validity check when the accessed address is within the linked list. In addition, LOS_MemInit calls this API to add the initialized memory pool to the LMS check linked list by default.

-

Deleting a memory pool from the LMS check linked list

-

LOS_LmsCheckPoolDel

-

Cancels the validity check on the specified memory pool.

-

Protecting a specified memory chunk

-

LOS_LmsAddrProtect

-

Locks a memory chunk to prevent it from being read or written. Once the locked memory chunk is accessed, an error will be reported.

-

Disabling protection of a specified memory chunk

-

LOS_LmsAddrDisableProtect

-

Unlocks a memory chunk to make it readable and writable.

-
+The LMS module of the OpenHarmony LiteOS-A kernel provides the following APIs. For more details, see [API reference](https://gitee.com/openharmony/kernel_liteos_m/blob/master/components/lms/los_lms.h). + +**Table 1** APIs of the LMS module + +| Category| API | Description| +| -------- | -------- | -------- | +| Adding a memory pool to be checked| LOS_LmsCheckPoolAdd | Adds the address range of a memory pool to the LMS check linked list. LMS performs a validity check when the accessed address is within the linked list. In addition, **LOS_MemInit** calls this API to add the initialized memory pool to the LMS check linked list by default.| +| Deleting a memory pool from the LMS check linked list| LOS_LmsCheckPoolDel | Cancels the validity check on the specified memory pool.| +| Protecting a specified memory chunk| LOS_LmsAddrProtect | Locks a memory chunk to prevent it from being read or written. Once the locked memory chunk is accessed, an error will be reported.| +| Disabling protection of a specified memory chunk| LOS_LmsAddrDisableProtect | Unlocks a memory chunk to make it readable and writable.| + ## Development Guidelines + ### How to Develop The typical process for enabling LMS is as follows: -1. Configure the macros related to the LMS module. - - Configure the LMS macro **LOSCFG\_KERNEL\_LMS**, which is disabled by default. Run the **make update\_config** command in the **kernel/liteos\_m** directory, choose **Kernel**, and set **Enable Lite Memory Sanitizer** to **Yes**. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Macro

-

menuconfig Option

-

Description

-

Value

-

LOSCFG_KERNEL_LMS

-

Enable Lms Feature

-

Whether to enable LMS.

-

YES/NO

-

LOSCFG_LMS_MAX_RECORD_POOL_NUM

-

Lms check pool max num

-

Maximum number of memory pools that can be checked by LMS.

-

INT

-

LOSCFG_LMS_LOAD_CHECK

-

Enable lms read check

-

Whether to enable LMS read check.

-

YES/NO

-

LOSCFG_LMS_STORE_CHECK

-

Enable lms write check

-

Whether to enable LMS write check.

-

YES/NO

-

LOSCFG_LMS_CHECK_STRICT

-

Enable lms strict check, byte-by-byte

-

Whether to enable LMS byte-by-byte check.

-

YES/NO

-
- -2. Modify the compile script of the target module. - - Add "-fsanitize=kernel-address" to insert memory access checks, and add the **-O0** option to disable optimization performed by the compiler. - - The modifications vary depending on the compiler \(GCC or Clang\) used. The following is an example: - - ``` - if ("$ohos_build_compiler_specified" == "gcc") { - cflags_c = [ - "-O0", - "-fsanitize=kernel-address", - ] - } else { - cflags_c = [ - "-O0", - "-fsanitize=kernel-address", - "-mllvm", - "-asan-instrumentation-with-call-threshold=0", - "-mllvm", - "-asan-stack=0", - "-mllvm", - "-asan-globals=0", - ] - } - ``` +1. Configure the macros related to the LMS module. + Configure the LMS macro **LOSCFG_KERNEL_LMS**, which is disabled by default. + + Run the **make menuconfig** command in the **kernel/liteos_m** directory, and set **Kernel->Enable Lite Memory Sanitizer** to **YES**. If this option is unavailable, select **Enable Backtrace**. + + | Macro| menuconfig Option| Description| Value| + | -------- | -------- | -------- | -------- | + | LOSCFG_KERNEL_LMS | Enable Lms Feature | Whether to enable LMS.| YES/NO | + | LOSCFG_LMS_MAX_RECORD_POOL_NUM | Lms check pool max num | Maximum number of memory pools that can be checked by LMS.| INT | + | LOSCFG_LMS_LOAD_CHECK | Enable lms read check | Whether to enable LMS read check.| YES/NO | + | LOSCFG_LMS_STORE_CHECK | Enable lms write check | Whether to enable LMS write check.| YES/NO | + | LOSCFG_LMS_CHECK_STRICT | Enable lms strict check, byte-by-byte | Whether to enable LMS byte-by-byte check.| YES/NO | + +2. Modify the build script of the target module. + Add **-fsanitize=kernel-address** to insert memory access checks, and add **-O0** to disable optimization performed by the compiler. + + The modifications vary depending on the compiler (GCC or Clang) used. The following is an example: + + ``` + if ("$ohos_build_compiler_specified" == "gcc") { + cflags_c = [ + "-O0", + "-fsanitize=kernel-address", + ] + } else { + cflags_c = [ + "-O0", + "-fsanitize=kernel-address", + "-mllvm", + "-asan-instrumentation-with-call-threshold=0", + "-mllvm", + "-asan-stack=0", + "-mllvm", + "-asan-globals=0", + ] + } + ``` + +3. Recompile the code and check the serial port output. + + The memory problem detected will be displayed. -3. Recompile the code and check the serial port output. The memory problem detected will be displayed. ### Development Example This example implements the following: -1. Create a task for LMS. -2. Construct a buffer overflow error and a UAF error. -3. Add "-fsanitize=kernel-address", execute the compilation, and check the output. +1. Create a task for LMS. + +2. Construct a buffer overflow error and a UAF error. + +3. Add "-fsanitize=kernel-address", execute the compilation, and check the output. + ### Sample Code The code is as follows: +The sample code can be compiled and verified in **./kernel/liteos_m/testsuites/src/osTest.c**. The **Example_Lms_test** function is called in **TestTaskEntry**. + +Modify **./kernel/liteos_m/testsuites/BUILD.gn** corresponding to **osTest.c**. + ``` #define PAGE_SIZE (0x1000U) #define INDEX_MAX 20 @@ -214,10 +151,10 @@ VOID LmsTestCaseTask(VOID) UINT32 Example_Lms_test(VOID){ UINT32 ret; TSK_INIT_PARAM_S lmsTestTask; - /* Create a task for LMS. */ + /* Create a task for LMS. */ memset(&lmsTestTask, 0, sizeof(TSK_INIT_PARAM_S)); lmsTestTask.pfnTaskEntry = (TSK_ENTRY_FUNC)LmsTestCaseTask; - lmsTestTask.pcName = "TestLmsTsk"; /* Task name. */ + lmsTestTask.pcName = "TestLmsTsk"; /* Test task name. */ lmsTestTask.uwStackSize = 0x800; lmsTestTask.usTaskPrio = 5; lmsTestTask.uwResved = LOS_TASK_STATUS_DETACHED; @@ -230,89 +167,137 @@ UINT32 Example_Lms_test(VOID){ } ``` + ### Verification -The output is as follows: + The following is an example of the command output. The data may vary depending on the running environment. ``` ######LmsTestOsmallocOverflow start ###### -[ERR]***** Kernel Address Sanitizer Error Detected Start ***** -[ERR]Heap buffer overflow error detected -[ERR]Illegal READ address at: [0x4157a3c8] -[ERR]Shadow memory address: [0x4157be3c : 4] Shadow memory value: [2] -OsBackTrace fp = 0x402c0f88 -runTask->taskName = LmsTestCaseTask -runTask->taskID = 2 -*******backtrace begin******* -traceback fp fixed, trace using fp = 0x402c0fd0 -traceback 0 -- lr = 0x400655a4 fp = 0x402c0ff8 -traceback 1 -- lr = 0x40065754 fp = 0x402c1010 -traceback 2 -- lr = 0x40044bd0 fp = 0x402c1038 -traceback 3 -- lr = 0x40004e14 fp = 0xcacacaca -[LMS] Dump info around address [0x4157a3c8]: - [0x4157a3a0]: 00 00 00 00 00 00 00 00 | [0x4157be3a | 0]: 1 1 - [0x4157a3a8]: ba dc cd ab 00 00 00 00 | [0x4157be3a | 4]: 2 2 - [0x4157a3b0]: 20 00 00 80 00 00 00 00 | [0x4157be3b | 0]: 2 0 - [0x4157a3b8]: 00 00 00 00 00 00 00 00 | [0x4157be3b | 4]: 0 0 - [0x4157a3c0]: 00 00 00 00 00 00 00 00 | [0x4157be3c | 0]: 0 0 - [0x4157a3c8]: [ba] dc cd ab a8 a3 57 41 | [0x4157be3c | 4]: [2] 2 - [0x4157a3d0]: 2c 1a 00 00 00 00 00 00 | [0x4157be3d | 0]: 2 3 - [0x4157a3d8]: 00 00 00 00 00 00 00 00 | [0x4157be3d | 4]: 3 3 - [0x4157a3e0]: 00 00 00 00 00 00 00 00 | [0x4157be3e | 0]: 3 3 - [0x4157a3e8]: 00 00 00 00 00 00 00 00 | [0x4157be3e | 4]: 3 3 - [0x4157a3f0]: 00 00 00 00 00 00 00 00 | [0x4157be3f | 0]: 3 3 -[ERR]***** Kernel Address Sanitizer Error Detected End ***** -str[20]=0xffffffba +[ERR][TestLmsTsk]***** Kernel Address Sanitizer Error Detected Start ***** +[ERR][TestLmsTsk]Heap buffer overflow error detected +[ERR][TestLmsTsk]Illegal READ address at: [0x21040414] +[ERR][TestLmsTsk]Shadow memory address: [0x21041e84 : 6] Shadow memory value: [2] +psp, start = 21057d88, end = 21057e80 +taskName = TestLmsTsk +taskID = 5 +----- traceback start ----- +traceback 0 -- lr = 0x210099f4 +traceback 1 -- lr = 0x2101da6e +traceback 2 -- lr = 0x2101db38 +traceback 3 -- lr = 0x2101c494 +----- traceback end ----- + +[LMS] Dump info around address [0x21040414]: + + [0x21040390]: 00 00 00 00 00 00 00 00 | [0x21041e7c | 4]: 1 1 + [0x21040398]: 00 00 00 00 00 00 00 00 | [0x21041e7d | 0]: 1 1 + [0x210403a0]: 00 00 00 00 00 00 00 00 | [0x21041e7d | 4]: 1 1 + [0x210403a8]: 00 00 00 00 00 00 00 00 | [0x21041e7e | 0]: 1 1 + [0x210403b0]: 00 00 00 00 00 00 00 00 | [0x21041e7e | 4]: 1 1 + [0x210403b8]: 00 00 00 00 00 00 00 00 | [0x21041e7f | 0]: 1 1 + [0x210403c0]: 00 00 00 00 00 00 00 00 | [0x21041e7f | 4]: 1 1 + [0x210403c8]: 00 00 00 00 00 00 00 00 | [0x21041e80 | 0]: 1 1 + [0x210403d0]: 00 00 00 00 00 00 00 00 | [0x21041e80 | 4]: 1 1 + [0x210403d8]: 00 00 00 00 00 00 00 00 | [0x21041e81 | 0]: 1 1 + [0x210403e0]: 00 00 00 00 00 00 00 00 | [0x21041e81 | 4]: 1 1 + [0x210403e8]: 00 00 00 00 00 00 00 00 | [0x21041e82 | 0]: 1 1 + [0x210403f0]: 00 00 00 00 00 00 00 00 | [0x21041e82 | 4]: 1 1 + [0x210403f8]: 40 1e 04 21 05 07 00 80 | [0x21041e83 | 0]: 2 2 + [0x21040400]: 00 00 00 00 00 00 00 00 | [0x21041e83 | 4]: 0 0 + [0x21040408]: 00 00 00 00 00 00 00 00 | [0x21041e84 | 0]: 0 0 + [0x21040410]: 00 00 00 00 [f8] 03 04 21 | [0x21041e84 | 4]: 0 [2] + [0x21040418]: 00 8b 06 00 00 00 00 00 | [0x21041e85 | 0]: 2 3 + [0x21040420]: 00 00 00 00 00 00 00 00 | [0x21041e85 | 4]: 3 3 + [0x21040428]: 00 00 00 00 00 00 00 00 | [0x21041e86 | 0]: 3 3 + [0x21040430]: 00 00 00 00 00 00 00 00 | [0x21041e86 | 4]: 3 3 + [0x21040438]: 00 00 00 00 00 00 00 00 | [0x21041e87 | 0]: 3 3 + [0x21040440]: 00 00 00 00 00 00 00 00 | [0x21041e87 | 4]: 3 3 + [0x21040448]: 00 00 00 00 00 00 00 00 | [0x21041e88 | 0]: 3 3 + [0x21040450]: 00 00 00 00 00 00 00 00 | [0x21041e88 | 4]: 3 3 + [0x21040458]: 00 00 00 00 00 00 00 00 | [0x21041e89 | 0]: 3 3 + [0x21040460]: 00 00 00 00 00 00 00 00 | [0x21041e89 | 4]: 3 3 + [0x21040468]: 00 00 00 00 00 00 00 00 | [0x21041e8a | 0]: 3 3 + [0x21040470]: 00 00 00 00 00 00 00 00 | [0x21041e8a | 4]: 3 3 + [0x21040478]: 00 00 00 00 00 00 00 00 | [0x21041e8b | 0]: 3 3 + [0x21040480]: 00 00 00 00 00 00 00 00 | [0x21041e8b | 4]: 3 3 + [0x21040488]: 00 00 00 00 00 00 00 00 | [0x21041e8c | 0]: 3 3 + [0x21040490]: 00 00 00 00 00 00 00 00 | [0x21041e8c | 4]: 3 3 +[ERR][TestLmsTsk]***** Kernel Address Sanitizer Error Detected End ***** +str[20]=0xfffffff8 ######LmsTestOsmallocOverflow stop ###### -###### LmsTestUseAfterFree start ###### -[ERR]***** Kernel Address Sanitizer Error Detected Start ***** -[ERR]Use after free error detected -[ERR]Illegal READ address at: [0x4157a3d4] -[ERR]Shadow memory address: [0x4157be3d : 2] Shadow memory value: [3] -OsBackTrace fp = 0x402c0f90 -runTask->taskName = LmsTestCaseTask -runTask->taskID = 2 -*******backtrace begin******* -traceback fp fixed, trace using fp = 0x402c0fd8 -traceback 0 -- lr = 0x40065680 fp = 0x402c0ff8 -traceback 1 -- lr = 0x40065758 fp = 0x402c1010 -traceback 2 -- lr = 0x40044bd0 fp = 0x402c1038 -traceback 3 -- lr = 0x40004e14 fp = 0xcacacaca -[LMS] Dump info around address [0x4157a3d4]: - [0x4157a3a8]: ba dc cd ab 00 00 00 00 | [0x4157be3a | 4]: 2 2 - [0x4157a3b0]: 20 00 00 80 00 00 00 00 | [0x4157be3b | 0]: 2 0 - [0x4157a3b8]: 00 00 00 00 00 00 00 00 | [0x4157be3b | 4]: 0 0 - [0x4157a3c0]: 00 00 00 00 00 00 00 00 | [0x4157be3c | 0]: 0 0 - [0x4157a3c8]: ba dc cd ab a8 a3 57 41 | [0x4157be3c | 4]: 2 2 - [0x4157a3d0]: 2c 1a 00 00 [00] 00 00 00 | [0x4157be3d | 0]: 2 [3] - [0x4157a3d8]: 00 00 00 00 00 00 00 00 | [0x4157be3d | 4]: 3 3 - [0x4157a3e0]: 00 00 00 00 00 00 00 00 | [0x4157be3e | 0]: 3 3 - [0x4157a3e8]: ba dc cd ab c8 a3 57 41 | [0x4157be3e | 4]: 2 2 - [0x4157a3f0]: 0c 1a 00 00 00 00 00 00 | [0x4157be3f | 0]: 2 3 - [0x4157a3f8]: 00 00 00 00 00 00 00 00 | [0x4157be3f | 4]: 3 3 -[ERR]***** Kernel Address Sanitizer Error Detected End ***** + +######LmsTestUseAfterFree start ###### +[ERR][TestLmsTsk]***** Kernel Address Sanitizer Error Detected Start ***** +[ERR][TestLmsTsk]Use after free error detected +[ERR][TestLmsTsk]Illegal READ address at: [0x2104041c] +[ERR][TestLmsTsk]Shadow memory address: [0x21041e85 : 2] Shadow memory value: [3] +psp, start = 21057d90, end = 21057e80 +taskName = TestLmsTsk +taskID = 5 +----- traceback start ----- +traceback 0 -- lr = 0x210099f4 +traceback 1 -- lr = 0x2101daec +traceback 2 -- lr = 0x2101db3c +traceback 3 -- lr = 0x2101c494 +----- traceback end ----- + +[LMS] Dump info around address [0x2104041c]: + + [0x21040398]: 00 00 00 00 00 00 00 00 | [0x21041e7d | 0]: 1 1 + [0x210403a0]: 00 00 00 00 00 00 00 00 | [0x21041e7d | 4]: 1 1 + [0x210403a8]: 00 00 00 00 00 00 00 00 | [0x21041e7e | 0]: 1 1 + [0x210403b0]: 00 00 00 00 00 00 00 00 | [0x21041e7e | 4]: 1 1 + [0x210403b8]: 00 00 00 00 00 00 00 00 | [0x21041e7f | 0]: 1 1 + [0x210403c0]: 00 00 00 00 00 00 00 00 | [0x21041e7f | 4]: 1 1 + [0x210403c8]: 00 00 00 00 00 00 00 00 | [0x21041e80 | 0]: 1 1 + [0x210403d0]: 00 00 00 00 00 00 00 00 | [0x21041e80 | 4]: 1 1 + [0x210403d8]: 00 00 00 00 00 00 00 00 | [0x21041e81 | 0]: 1 1 + [0x210403e0]: 00 00 00 00 00 00 00 00 | [0x21041e81 | 4]: 1 1 + [0x210403e8]: 00 00 00 00 00 00 00 00 | [0x21041e82 | 0]: 1 1 + [0x210403f0]: 00 00 00 00 00 00 00 00 | [0x21041e82 | 4]: 1 1 + [0x210403f8]: 40 1e 04 21 05 07 00 80 | [0x21041e83 | 0]: 2 2 + [0x21040400]: 00 00 00 00 00 00 00 00 | [0x21041e83 | 4]: 0 0 + [0x21040408]: 00 00 00 00 00 00 00 00 | [0x21041e84 | 0]: 0 0 + [0x21040410]: 00 00 00 00 f8 03 04 21 | [0x21041e84 | 4]: 0 2 + [0x21040418]: 05 8b 06 00 [00] 00 00 00 | [0x21041e85 | 0]: 2 [3] + [0x21040420]: 00 00 00 00 00 00 00 00 | [0x21041e85 | 4]: 3 3 + [0x21040428]: 00 00 00 00 00 00 00 00 | [0x21041e86 | 0]: 3 3 + [0x21040430]: 14 04 04 21 00 84 06 00 | [0x21041e86 | 4]: 2 2 + [0x21040438]: 00 00 00 00 00 00 00 00 | [0x21041e87 | 0]: 3 3 + [0x21040440]: 00 00 00 00 00 00 00 00 | [0x21041e87 | 4]: 3 3 + [0x21040448]: 00 00 00 00 00 00 00 00 | [0x21041e88 | 0]: 3 3 + [0x21040450]: 00 00 00 00 00 00 00 00 | [0x21041e88 | 4]: 3 3 + [0x21040458]: 00 00 00 00 00 00 00 00 | [0x21041e89 | 0]: 3 3 + [0x21040460]: 00 00 00 00 00 00 00 00 | [0x21041e89 | 4]: 3 3 + [0x21040468]: 00 00 00 00 00 00 00 00 | [0x21041e8a | 0]: 3 3 + [0x21040470]: 00 00 00 00 00 00 00 00 | [0x21041e8a | 4]: 3 3 + [0x21040478]: 00 00 00 00 00 00 00 00 | [0x21041e8b | 0]: 3 3 + [0x21040480]: 00 00 00 00 00 00 00 00 | [0x21041e8b | 4]: 3 3 + [0x21040488]: 00 00 00 00 00 00 00 00 | [0x21041e8c | 0]: 3 3 + [0x21040490]: 00 00 00 00 00 00 00 00 | [0x21041e8c | 4]: 3 3 + [0x21040498]: 00 00 00 00 00 00 00 00 | [0x21041e8d | 0]: 3 3 +[ERR][TestLmsTsk]***** Kernel Address Sanitizer Error Detected End ***** str[ 0]=0x 0 ######LmsTestUseAfterFree stop ###### ``` The key output information is as follows: -- Error type: - - Heap buffer overflow - - UAF - -- Incorrect operations: - - Illegal read - - Illegal write - - Illegal double free - -- Context: - - Task information \(**taskName** and **taskId**\) - - Backtrace +- Error type: + - Heap buffer overflow + - UAF -- Memory information of the error addresses: - - Memory value and the value of the corresponding shadow memory - - Memory address: memory value|\[shadow memory address|shadow memory byte offset\]: shadow memory value - - Shadow memory value. **0** \(Accessible\), **3** \(Freed\), **2** \(RedZone\), and **1** \(filled value\) +- Incorrect operations: + - Illegal read + - Illegal write + - Illegal double free +- Context: + - Task information (**taskName** and **taskId**) + - Backtrace +- Memory information of the error addresses: + - Memory value and the value of the corresponding shadow memory + - Memory address: memory value|[shadow memory address|shadow memory byte offset]: shadow memory value + - Shadow memory value. **0** (Accessible), **3** (Freed), **2** (RedZone), and **1** (filled value) diff --git a/en/device-dev/kernel/kernel-mini-memory-perf.md b/en/device-dev/kernel/kernel-mini-memory-perf.md deleted file mode 100644 index 95d097792307376342a55eefcfde96f7f921952b..0000000000000000000000000000000000000000 --- a/en/device-dev/kernel/kernel-mini-memory-perf.md +++ /dev/null @@ -1,449 +0,0 @@ -# perf - - -## Basic Concepts - -perf is a performance analysis tool. It uses the performance monitoring unit (PMU) to count sampling events and collect context information and provides hot spot distribution and hot paths. - - -## Working Principles - -When a performance event occurs, the corresponding event counter overflows and triggers an interrupt. The interrupt handler records the event information, including the current PC, task ID, and call stack. - -perf provides two working modes: counting mode and sampling mode. - -In counting mode, perf collects only the number of event occurrences and duration. In sampling mode, perf also collects context data and stores the data in a circular buffer. The IDE then analyzes the data and provides information about hotspot functions and paths. - - -## Available APIs - - -### Kernel Mode - -The Perf module of the OpenHarmony LiteOS-A kernel provides the following functions. For details about the interfaces, see the [API reference](https://gitee.com/openharmony/kernel_liteos_a/blob/master/kernel/include/los_perf.h). - - **Table 1** APIs of the perf module - -| API| Description| -| -------- | -------- | -| LOS_PerfStart| Starts sampling.| -| LOS_PerfStop| Stops sampling.| -| LOS_PerfConfig| Sets the event type and sampling interval.| -| LOS_PerfDataRead| Reads the sampling data.| -| LOS_PerfNotifyHookReg| Registers the hook to be called when the buffer waterline is reached.| -| LOS_PerfFlushHookReg| Registers the hook for flushing the cache in the buffer.| - -- The structure of the perf sampling event is **PerfConfigAttr**. For details, see **kernel\include\los_perf.h**. - -- The sampling data buffer is a circular buffer, and only the region that has been read in the buffer can be overwritten. - -- The buffer has limited space. You can register a hook to provide a buffer overflow notification or perform buffer read operation when the buffer waterline is reached. The default buffer waterline is 1/2 of the buffer size. - - Example: - - ``` - VOID Example_PerfNotifyHook(VOID) - { - CHAR buf[LOSCFG_PERF_BUFFER_SIZE] = {0}; - UINT32 len; - PRINT_DEBUG("perf buffer reach the waterline!\n"); - len = LOS_PerfDataRead(buf, LOSCFG_PERF_BUFFER_SIZE); - OsPrintBuff(buf, len); /* print data */ - } - LOS_PerfNotifyHookReg(Example_PerfNotifyHook); - ``` - -- If the buffer sampled by perf involves caches across CPUs, you can register a hook for flushing the cache to ensure cache consistency. - - Example: - - ``` - VOID Example_PerfFlushHook(VOID *addr, UINT32 size) - { - OsCacheFlush(addr, size); /* platform interface */ - } - LOS_PerfNotifyHookReg(Example_PerfFlushHook); - ``` - - The API for flushing the cache is configured based on the platform. - - -### User Mode - - -The perf character device is located in **/dev/perf**. You can read, write, and control the user-mode perf by running the following commands on the device node: - - -- **read**: reads perf data in user mode. - -- **write**: writes user-mode sampling events. - -- **ioctl**: controls the user-mode perf, which includes the following: - - ``` - #define PERF_IOC_MAGIC 'T' - #define PERF_START _IO(PERF_IOC_MAGIC, 1) - #define PERF_STOP _IO(PERF_IOC_MAGIC, 2) - ``` - - The operations correspond to **LOS_PerfStart** and **LOS_PerfStop**. - - -For details, see [User-Mode Development Example](#user-mode-development-example). - - -## How to Develop - - -### Kernel-Mode Development Process - -The typical process of enabling perf is as follows: - -1. Configure the macros related to the perf module. - - Configure the perf control macro **LOSCFG_KERNEL_PERF**, which is disabled by default. In the **kernel/liteos_a** directory, run the **make update_config** command, choose **Kernel**, and select **Enable Perf Feature**. - - | Item| menuconfig Option| Description| Value| - | -------- | -------- | -------- | -------- | - | LOSCFG_KERNEL_PERF | Enable Perf Feature | Whether to enable perf.| YES/NO | - | LOSCFG_PERF_CALC_TIME_BY_TICK | Time-consuming Calc Methods->By Tick | Whether to use tick as the perf timing unit.| YES/NO | - | LOSCFG_PERF_CALC_TIME_BY_CYCLE | Time-consuming Calc Methods->By Cpu Cycle | Whether to use cycle as the perf timing unit.| YES/NO | - | LOSCFG_PERF_BUFFER_SIZE | Perf Sampling Buffer Size | Size of the buffer used for perf sampling.| INT | - | LOSCFG_PERF_HW_PMU | Enable Hardware Pmu Events for Sampling | Whether to enable hardware PMU events. The target platform must support the hardware PMU.| YES/NO | - | LOSCFG_PERF_TIMED_PMU | Enable Hrtimer Period Events for Sampling | Whether to enable high-precision periodical events. The target platform must support the high precision event timer (HPET).| YES/NO | - | LOSCFG_PERF_SW_PMU | Enable Software Events for Sampling | Whether to enable software events. **LOSCFG_KERNEL_HOOK** must also be enabled.| YES/NO | - -2. Call **LOS_PerfConfig** to configure the events to be sampled. - - perf provides two working modes and three types of events. - - Working modes: counting mode (counts only the number of event occurrences) and sampling mode (collects context information such as task IDs, PC, and backtrace) - - Events: CPU hardware events (such as cycle, branch, icache, and dcache), high-precision periodical events (such as CPU clock), and OS software events (such as task switch, mux pend, and IRQ) - -3. Call **LOS_PerfStart(UINT32 sectionId)** at the start of the code to be sampled. The input parameter **sectionId** specifies different sampling session IDs. - -4. Call **LOS_PerfStop** at the end of the code to be sampled. - -5. Call **LOS_PerfDataRead** to read the sampling data and use IDE to analyze the collected data. - - -#### Kernel-Mode Development Example - -This example implements the following: - -1. Create a perf task. - -2. Configure sampling events. - -3. Start perf. - -4. Execute algorithms for statistics. - -5. Stop perf. - -6. Export the result. - - -#### Kernel-Mode Sample Code - -Prerequisites: The perf module configuration is complete in **menuconfig**. - -The sample code is as follows: - -``` -#include "los_perf.h" -STATIC VOID OsPrintBuff(const CHAR *buf, UINT32 num) -{ - UINT32 i = 0; - PRINTK("num: "); - for (i = 0; i < num; i++) { - PRINTK(" %02d", i); - } - PRINTK("\n"); - PRINTK("hex: "); - for (i = 0; i < num; i++) { - PRINTK(" %02x", buf[i]); - } - PRINTK("\n"); -} -STATIC VOID perfTestHwEvent(VOID) -{ - UINT32 ret; - CHAR *buf = NULL; - UINT32 len; - PerfConfigAttr attr = { - .eventsCfg = { - .type = PERF_EVENT_TYPE_HW, - .events = { - [0] = {PERF_COUNT_HW_CPU_CYCLES, 0xFFFF}, - [1] = {PERF_COUNT_HW_BRANCH_INSTRUCTIONS, 0xFFFFFF00}, - }, - .eventsNr = 2, - .predivided = 1, /* cycle counter increase every 64 cycles */ - }, - .taskIds = {0}, - .taskIdsNr = 0, - .needSample = 0, - .sampleType = PERF_RECORD_IP | PERF_RECORD_CALLCHAIN, - }; - ret = LOS_PerfConfig(&attr); - if (ret != LOS_OK) { - PRINT_ERR("perf config error %u\n", ret); - return; - } - PRINTK("------count mode------\n"); - LOS_PerfStart(0); - test(); /* this is any test function*/ - LOS_PerfStop(); - PRINTK("--------sample mode------ \n"); - attr.needSample = 1; - LOS_PerfConfig(&attr); - LOS_PerfStart(2); - test(); /* this is any test function*/ - LOS_PerfStop(); - buf = LOS_MemAlloc(m_aucSysMem1, LOSCFG_PERF_BUFFER_SIZE); - if (buf == NULL) { - PRINT_ERR("buffer alloc failed\n"); - return; - } - /* get sample data */ - len = LOS_PerfDataRead(buf, LOSCFG_PERF_BUFFER_SIZE); - OsPrintBuff(buf, len); /* print data */ - (VOID)LOS_MemFree(m_aucSysMem1, buf); -} -UINT32 Example_Perf_test(VOID){ - UINT32 ret; - TSK_INIT_PARAM_S perfTestTask; - /* Create a perf task. */ - memset(&perfTestTask, 0, sizeof(TSK_INIT_PARAM_S)); - perfTestTask.pfnTaskEntry = (TSK_ENTRY_FUNC)perfTestHwEvent; - perfTestTask.pcName = "TestPerfTsk"; /* Test task name. */ - perfTestTask.uwStackSize = 0x800; - perfTestTask.usTaskPrio = 5; - perfTestTask.uwResved = LOS_TASK_STATUS_DETACHED; - ret = LOS_TaskCreate(&g_perfTestTaskId, &perfTestTask); - if(ret != LOS_OK){ - PRINT_ERR("PerfTestTask create failed.\n"); - return LOS_NOK; - } - return LOS_OK; -} -LOS_MODULE_INIT(perfTestHwEvent, LOS_INIT_LEVEL_KMOD_EXTENDED); -``` - - -#### Kernel-Mode Verification - - The output is as follows: - -``` ---------count mode---------- -[EMG] [cycles] eventType: 0xff: 5466989440 -[EMG] [branches] eventType: 0xc: 602166445 -------- sample mode---------- -[EMG] dump section data, addr: 0x8000000 length: 0x800000 -num: 00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 ... -hex: 00 ef ef ef 00 00 00 00 14 00 00 00 60 00 00 00 00 00 00 00 70 88 36 40 08 00 00 00 6b 65 72 6e 65 6c 00 00 01 00 00 00 cc 55 30 40 08 00 00 00 6b 65 72 6e 65 6c 00 00 -``` - -- For the counting mode, the following information is displayed after perf is stopped: - Event name (cycles), event type (0xff), and number of event occurrences (5466989440) - - For hardware PMU events, the displayed event type is the hardware event ID, not the abstract type defined in **enum PmuHWId**. - -- For the sampling mode, the address and length of the sampled data will be displayed after perf is stopped: - dump section data, addr: (0x8000000) length: (0x5000) - - You can export the data using the JTAG interface and then use the IDE offline tool to analyze the data. - - You can also call **LOS_PerfDataRead** to read data to a specified address for further analysis. In the example, **OsPrintBuff** is a test API, which prints the sampled data by byte. **num** indicates the sequence number of the byte, and **hex** indicates the value in the byte. - - -### User-Mode Development Process - -Choose **Driver** > **Enable PERF DRIVER** in **menuconfig** to enable the perf driver. This option is available in **Driver** only after **Enable Perf Feature** is selected in the kernel. - -1. Open the **/dev/perf** file and perform read, write, and ioctl operations. - -2. Run the **perf** commands in user mode in the **/bin** directory. - - After running **cd bin**, you can use the following commands: - - - **./perf start [*id*]**: starts perf sampling. *id* is optional and is **0** by default. - - **./perf stop**: stops perf sampling. - - **./perf read <*nBytes*>**: reads n-byte data from the sampling buffer and displays the data. - - **./perf list**: lists the events supported by **-e**. - - **./perf stat/record [*option*] <*command*>**: sets counting or sampling parameters. - - The [*option*] can be any of the following: - - -**-e**: sets sampling events. Events of the same type listed in **./perf list** can be used. - - -**-p**: sets the event sampling interval. - - -**-o**: specifies the path of the file for saving the perf sampling data. - - -**-t**: specifies the task IDs for data collection. Only the contexts of the specified tasks are collected. If this parameter is not specified, all tasks are collected by default. - - -**-s**: specifies the context type for sampling. For details, see **PerfSampleType** defined in **los_perf.h**. - - -**-P**: specifies the process IDs for data collection. Only the contexts of the specified processes are collected. If this parameter is not specified, all processes are collected by default. - - -**-d**: specifies whether to divide the frequency (the value is incremented by 1 each time an event occurs 64 times). This option is valid only for hardware cycle events. - - *command* specifies the program to be checked by perf. - -Examples: - -Run the **./perf list** command to display available events. - -The output is as follows: - - -``` -cycles [Hardware event] -instruction [Hardware event] -dcache [Hardware event] -dcache-miss [Hardware event] -icache [Hardware event] -icache-miss [Hardware event] -branch [Hardware event] -branch-miss [Hardware event] -clock [Timed event] -task-switch [Software event] -irq-in [Software event] -mem-alloc [Software event] -mux-pend [Software event] -``` - -Run **./perf stat -e cycles os_dump**. - -The output is as follows: - - -``` -type: 0 -events[0]: 255, 0xffff -predivided: 0 -sampleType: 0x0 -needSample: 0 -usage os_dump [--help | -l | SERVICE] - --help: shows this help - -l: only list services, do not dump them - SERVICE: dumps only service SERVICE -time used: 0.058000(s) -[cycles] eventType: 0xff [core 0]: 21720647 -[cycles] eventType: 0xff [core 1]: 13583830 -``` - -Run **./perf record -e cycles os_dump**. - -The output is as follows: - - -``` -type: 0 -events[0]: 255, 0xffff -predivided: 0 -sampleType: 0x60 -needSample: 1 -usage os_dump [--help | -l | SERVICE] - --help: shows this help - -l: only list services, do not dump them - SERVICE: dumps only service SERVICE -dump perf data, addr: 0x408643d8 length: 0x5000 -time used: 0.059000(s) -save perf data success at /storage/data/perf.data -``` - -> ![icon-note.gif](public_sys-resources/icon-note.gif) **NOTE**
-> After running the **./perf stat/record** command, you can run the **./perf start** and **./perf stop** commands multiple times. The sampling event configuration is as per the parameters set in the latest **./perfstat/record** command. - - -#### User-Mode Development Example - -This example implements the following: - -1. Open the perf character device. - -2. Write the perf events. - -3. Start perf. - -4. Stop perf. - -5. Read the perf sampling data. - - -#### User-Mode Sample Code - - The code is as follows: - -``` -#include "fcntl.h" -#include "user_copy.h" -#include "sys/ioctl.h" -#include "fs/driver.h" -#include "los_dev_perf.h" -#include "los_perf.h" -#include "los_init.h" -/* perf ioctl */ -#define PERF_IOC_MAGIC 'T' -#define PERF_START _IO(PERF_IOC_MAGIC, 1) -#define PERF_STOP _IO(PERF_IOC_MAGIC, 2) -int main(int argc, char **argv) -{ - char *buf = NULL; - ssize_t len; - int fd = open("/dev/perf", O_RDWR); - if (fd == -1) { - printf("Perf open failed.\n"); - exit(EXIT_FAILURE); - } - PerfConfigAttr attr = { - .eventsCfg = { -#ifdef LOSCFG_PERF_HW_PMU - .type = PERF_EVENT_TYPE_HW, - .events = { - [0] = {PERF_COUNT_HW_CPU_CYCLES, 0xFFFF}, - }, -#elif defined LOSCFG_PERF_TIMED_PMU - .type = PERF_EVENT_TYPE_TIMED, - .events = { - [0] = {PERF_COUNT_CPU_CLOCK, 100}, - }, -#elif defined LOSCFG_PERF_SW_PMU - .type = PERF_EVENT_TYPE_SW, - .events = { - [0] = {PERF_COUNT_SW_TASK_SWITCH, 1}, - }, -#endif - .eventsNr = 1, /* 1 event */ - .predivided = 0, - }, - .taskIds = {0}, - .taskIdsNr = 0, - .processIds = {0}, - .processIdsNr = 0, - .needSample = 1, - .sampleType = PERF_RECORD_IP | PERF_RECORD_CALLCHAIN, - }; - (void)write(fd, &attr, sizeof(PerfConfigAttr)); /* perf config */ - ioctl(fd, PERF_START, NULL); /* perf start */ - test(); - ioctl(fd, PERF_STOP, NULL); /* perf stop */ - buf = (char *)malloc(LOSCFG_PERF_BUFFER_SIZE); - if (buf == NULL) { - printf("no memory for read perf 0x%x\n", LOSCFG_PERF_BUFFER_SIZE); - return -1; - } - len = read(fd, buf, LOSCFG_PERF_BUFFER_SIZE); - OsPrintBuff(buf, len); /* print data */ - free(buf); - close(fd); - return 0; -} -``` - - -#### User-Mode Verification - - The output is as follows: - -``` -[EMG] dump section data, addr: 0x8000000 length: 0x800000 -num: 00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 ... -hex: 00 ef ef ef 00 00 00 00 14 00 00 00 60 00 00 00 00 00 00 00 70 88 36 40 08 00 00 00 6b 65 72 6e 65 6c 00 00 01 00 00 00 cc 55 30 40 08 00 00 00 6b 65 72 6e 65 6c 00 00 -``` diff --git a/en/device-dev/kernel/kernel-mini-memory-trace.md b/en/device-dev/kernel/kernel-mini-memory-trace.md index 1417442602eee705b8541acd9547f3dd55267d23..a60e3656c477f26c58cc135304fb343bb4c34730 100644 --- a/en/device-dev/kernel/kernel-mini-memory-trace.md +++ b/en/device-dev/kernel/kernel-mini-memory-trace.md @@ -1,8 +1,10 @@ # Trace + ## Basic Concepts -Trace helps you learn about the kernel running process and the execution sequence of modules and tasks. With the information, you can better understand the code running process of the kernel and locate time sequence problems. +Trace helps you learn about the kernel running process and the execution sequence of modules and tasks. With the traced information, you can better understand the code running process of the kernel and locate time sequence problems. + ## Working Principles @@ -16,265 +18,168 @@ In offline mode, trace frames are stored in a circular buffer. If too many frame ![](figures/kernel-small-mode-process.png) -The online mode must be used with the integrated development environment \(IDE\). Trace frames are sent to the IDE in real time. The IDE parses the records and displays them in a visualized manner. +The online mode must be used with the integrated development environment (IDE). Trace frames are sent to the IDE in real time. The IDE parses the records and displays them in a visualized manner. -## Available APIs -The trace module of the OpenHarmony LiteOS-M kernel provides the following functions. For more details about the APIs, see the API reference. - -**Table 1** Trace module APIs - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Function

-

API

-

Description

-

Starting and stopping trace

-

LOS_TraceStart

-

Starts trace.

-

LOS_TraceStop

-

Stops trace.

-

Managing trace records

-

LOS_TraceRecordDump

-

Exports data in the trace buffer.

-

LOS_TraceRecordGet

-

Obtains the start address of the trace buffer.

-

LOS_TraceReset

-

Clears events in the trace buffer.

-

Filtering trace records

-

LOS_TraceEventMaskSet

-

Sets the event mask to trace only events of the specified modules.

-

Masking events of specified interrupt IDs

-

LOS_TraceHwiFilterHookReg

-

Registers a hook to filter out events of specified interrupt IDs.

-

Performing function instrumentation

-

LOS_TRACE_EASY

-

Performs simple instrumentation.

-

LOS_TRACE

-

Performs standard instrumentation.

-
- -- You can perform function instrumentation in the source code to trace specific events. The system provides the following APIs for instrumentation: - - **LOS\_TRACE\_EASY\(TYPE, IDENTITY, params...\)** for simple instrumentation - - You only need to insert this API into the source code. - - **TYPE** specifies the event type. The value range is 0 to 0xF. The meaning of each value is user-defined. - - **IDENTITY** specifies the object of the event operation. The value is of the **UIntPtr** type. - - **Params** specifies the event parameters. The value is of the **UIntPtr** type. - - Example: - - ``` - Perform simple instrumentation for reading and writing files fd1 and fd2. - Set TYPE to 1 for read operations and 2 for write operations. - Insert the following to the position where the fd1 file is read: - LOS_TRACE_EASY(1, fd1, flag, size); - Insert the following to the position where the fd2 file is read: - LOS_TRACE_EASY(1, fd2, flag, size); - Insert the following to the position where the fd1 file is written: - LOS_TRACE_EASY(2, fd1, flag, size); - Insert the following in the position where the fd2 file is written: - LOS_TRACE_EASY(2, fd2, flag, size); - ``` - - - **LOS\_TRACE\(TYPE, IDENTITY, params...\)** for standard instrumentation. - - Compared with simple instrumentation, standard instrumentation supports dynamic event filtering and parameter tailoring. However, you need to extend the functions based on rules. - - **TYPE** specifies the event type. You can define the event type in **enum LOS\_TRACE\_TYPE** in the header file **los\_trace.h**. For details about methods and rules for defining events, see other event types. - - The **IDENTITY** and **Params** are the same as those of simple instrumentation. - - Example: - - ``` - 1. Set the event mask (module-level event type) in enum LOS_TRACE_MASK. - Format: TRACE_#MOD#_FLAG (MOD indicates the module name) - Example: - TRACE_FS_FLAG = 0x4000 - 2. Define the event type in enum LOS_TRACE_TYPE. - Format: #TYPE# = TRACE_#MOD#_FLAG | NUMBER - Example: - FS_READ = TRACE_FS_FLAG | 0; // Read files - FS_WRITE = TRACE_FS_FLAG | 1; // Write files - 3. Set event parameters in the #TYPE#_PARAMS(IDENTITY, parma1...) IDENTITY, ... format. - #TYPE# is the #TYPE# defined in step 2. - Example: - #define FS_READ_PARAMS(fp, fd, flag, size) fp, fd, flag, size - The parameters defined by the macro correspond to the event parameters recorded in the trace buffer. You can modify the parameters as required. - If no parameter is specified, events of this type are not traced. - #define FS_READ_PARAMS(fp, fd, flag, size) // File reading events are not traced. - 4. Insert a code stub in a proper position. - Format: LOS_TRACE(#TYPE#, #TYPE#_PARAMS(IDENTITY, parma1...)) - LOS_TRACE(FS_READ, fp, fd, flag, size); // Code stub for reading files - The parameters following #TYPE# are the input parameter of the FS_READ_PARAMS function in step 3. - ``` - - >![](../public_sys-resources/icon-note.gif) **NOTE:** - >The trace event types and parameters can be modified as required. For details about the parameters, see **kernel\\include\\los\_trace.h**. - - - -- For **LOS\_TraceEventMaskSet\(UINT32 mask\)**, only the most significant 28 bits \(corresponding to the enable bit of the module in **LOS\_TRACE\_MASK**\) of the mask take effect and are used only for module-based tracing. Currently, fine-grained event-based tracing is not supported. For example, in **LOS\_TraceEventMaskSet\(0x202\)**, the effective mask is **0x200 \(TRACE\_QUE\_FLAG\)** and all events of the QUE module are collected. The recommended method is **LOS\_TraceEventMaskSet\(TRACE\_EVENT\_FLAG | TRACE\_MUX\_FLAG | TRACE\_SEM\_FLAG | TRACE\_QUE\_FLAG\);**. -- To enable trace of only simple instrumentation events, set **Trace Mask** to **TRACE\_MAX\_FLAG**. -- The trace buffer has limited capacity. When the trace buffer is full, events will be overwritten. You can use **LOS\_TraceRecordDump** to export data from the trace buffer and locate the latest records by **CurEvtIndex**. -- The typical trace operation process includes **LOS\_TraceStart**, **LOS\_TraceStop**, and **LOS\_TraceRecordDump**. -- You can filter out interrupt events by interrupt ID to prevent other events from being overwritten due to frequent triggering of a specific interrupt in some scenarios. You can customize interrupt filtering rules. +## Available APIs +The trace module of the OpenHarmony LiteOS-M kernel provides the following APIs. For more details about the APIs, see the API reference. + + **Table 1** APIs of the trace module + +| Category| API| +| -------- | -------- | +| Starting/Stopping trace| - **LOS_TraceStart**: starts a trace.
- **LOS_TraceStop**: stops the trace.| +| Managing trace records| - **LOS_TraceRecordDump**: dumps data from the trace buffer.
- **LOS_TraceRecordGet**: obtains the start address of the trace buffer.
- **LOS_TraceReset**: clears events in the trace buffer.| +| Filtering trace records| **LOS_TraceEventMaskSet**: sets the event mask to trace only events of the specified modules.| +| Masking events of specified interrupt IDs| **LOS_TraceHwiFilterHookReg**: registers a hook to filter out events of specified interrupt IDs.| +| Performing function instrumentation| - **LOS_TRACE_EASY**: performs simple instrumentation.
- **LOS_TRACE**: performs standard instrumentation.| + +- You can perform function instrumentation in the source code to trace specific events. The system provides the following APIs for instrumentation: + - **LOS_TRACE_EASY(TYPE, IDENTITY, params...)** for simple instrumentation + - You only need to insert this API into the source code. + - **TYPE** specifies the event type. The value range is 0 to 0xF. The meaning of each value is user-defined. + - **IDENTITY** specifies the object of the event operation. The value is of the **UIntPtr** type. + - **Params** specifies the event parameters. The value is of the **UIntPtr** type. + - Example of simple instrumentation for reading and writing data based on the file FDs: + + ``` + /* Set TYPE to 1 for read operation and 2 for write operations. */ + LOS_TRACE_EASY(1, fd, flag, size); /* Add it to a proper position. */ + LOS_TRACE_EASY(2, fd, flag, size); /* Add it to a proper position. */ + ``` + - **LOS_TRACE(TYPE, IDENTITY, params...)** for standard instrumentation. + - Compared with simple instrumentation, standard instrumentation supports dynamic event filtering and parameter tailoring. However, you need to extend the functions based on rules. + - **TYPE** specifies the event type. You can define the event type in **enum LOS_TRACE_TYPE** in the header file **los_trace.h**. For details about methods and rules for defining events, see other event types. + - The **IDENTITY** and **Params** are the same as those of simple instrumentation. + - Example: + 1. Define the type of the FS module (event mask of the FS module) in **enum LOS_TRACE_MASK**. + + ``` + /* Define the event mask in the format of TRACE_#MOD#_FLAG, where #MOD# indicates the module name. */ + TRACE_FS_FLAG = 0x4000 + ``` + + 2. Define the event types of the FS module. + + + ``` + /* Define the event type in the format: #TYPE# = TRACE_#MOD#_FLAG | NUMBER */ + FS_READ = TRACE_FS_FLAG | 0; /* Read data. */ + FS_WRITE = TRACE_FS_FLAG | 1; /* Write data. */ + ``` + + 3. Define event parameters. + + + ``` + /* Define the parameters in the format: #TYPE#_PARAMS(IDENTITY, parma1...) IDENTITY, ... */ + #define FS_READ_PARAMS(fp, fd, flag, size) fp, fd, flag, size /* The parameters defined by the macro correspond to the event parameters recorded in the trace buffer. You can tailor the parameters as required. */ + #define FS_READ_PARAMS(fp, fd, flag, size) /* If no parameters are defined, events of this type are not traced. */ + ``` + + 4. Add the code stubs in the code. + + + ``` + /* Format: LOS_TRACE(#TYPE#, #TYPE#_PARAMS(IDENTITY, parma1...)) */ + LOS_TRACE(FS_READ, fp, fd, flag, size); /* Code stub for reading data. */ + ``` + + > **NOTE**
+ > You can modify the traced event types and parameters as required. For details about the parameters, see **kernel\include\los_trace.h**. + +- For **LOS_TraceEventMaskSet(UINT32 mask)**, only the most significant 28 bits (corresponding to the enable bit of the module in **LOS_TRACE_MASK**) of the mask take effect and are used only for module-based tracing. Currently, fine-grained event-based tracing is not supported. For example, in **LOS_TraceEventMaskSet(0x202)**, the effective mask is **0x200 (TRACE_QUE_FLAG)** and all events of the QUE module are collected. The recommended method is **LOS_TraceEventMaskSet(TRACE_EVENT_FLAG | TRACE_MUX_FLAG | TRACE_SEM_FLAG | TRACE_QUE_FLAG);**. + +- To enable trace of only simple instrumentation events, set **Trace Mask** to **TRACE_MAX_FLAG**. + +- The trace buffer has limited capacity. When the trace buffer is full, events will be overwritten. You can use **LOS_TraceRecordDump** to export data from the trace buffer and locate the latest records by **CurEvtIndex**. + +- The typical trace operation process includes **LOS_TraceStart**, **LOS_TraceStop**, and **LOS_TraceRecordDump**. + +- You can filter out interrupt events by interrupt ID to prevent other events from being overwritten due to frequent triggering of a specific interrupt in some scenarios. You can customize interrupt filtering rules.
The sample code is as follows: + + ``` + BOOL Example_HwiNumFilter(UINT32 hwiNum) + { + if ((hwiNum == TIMER_INT) || (hwiNum == DMA_INT)) { + return TRUE; + } + return FALSE; + } + LOS_TraceHwiFilterHookReg(Example_HwiNumFilter); + ``` - ``` - BOOL Example_HwiNumFilter(UINT32 hwiNum) - { - if ((hwiNum == TIMER_INT) || (hwiNum == DMA_INT)) { - return TRUE; - } - return FALSE; - } - LOS_TraceHwiFilterHookReg(Example_HwiNumFilter); - ``` - - The interrupt events with interrupt ID of **TIMER\_INT** or **DMA\_INT** are not traced. + The interrupt events with interrupt ID of **TIMER_INT** or **DMA_INT** are not traced. ## Development Guidelines + ### How to Develop -The typical trace process is as follows: - -1. Configure the macro related to the trace module. - - Modify the configuration in the **target\_config.h** file. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Configuration

-

Description

-

Value

-

LOSCFG_KERNEL_TRACE

-

Specifies whether to enable the trace feature.

-

YES/NO

-

LOSCFG_RECORDER_MODE_OFFLINE

-

Specifies whether to enable the online trace mode.

-

YES/NO

-

LOSCFG_RECORDER_MODE_ONLINE

-

Specifies whether to enable the offline trace mode.

-

YES/NO

-

LOSCFG_TRACE_CLIENT_INTERACT

-

Specifies whether to enable interaction with Trace IDE (dev tools), including data visualization and process control.

-

YES/NO

-

LOSCFG_TRACE_FRAME_CORE_MSG

-

Specifies whether to enable recording of the CPU ID, interruption state, and lock task state.

-

YES/NO

-

LOSCFG_TRACE_FRAME_EVENT_COUNT

-

Specifies whether to enables recording of the event sequence number.

-

YES/NO

-

LOSCFG_TRACE_FRAME_MAX_PARAMS

-

Specifies the maximum number of parameters for event recording.

-

INT

-

LOSCFG_TRACE_BUFFER_SIZE

-

Specifies the trace buffer size.

-

INT

-
- -2. \(Optional\) Preset event parameters and stubs \(or use the default event parameter settings and event stubs\). -3. \(Optional\) Call **LOS\_TraceStop** to stop trace and call **LOS\_TraceReset** to clear the trace buffer. \(Trace is started by default.\) -4. \(Optional\) Call **LOS\_TraceEventMaskSet** to set the event mask for trace \(only the interrupts and task events are enabled by default\). For details about the event mask, see **LOS\_TRACE\_MASK** in **los\_trace.h**. -5. Call **LOS\_TraceStart** at the start of the code where the event needs to be traced. -6. Call **LOS\_TraceStop** at the end of the code where the event needs to be traced. -7. Call **LOS\_TraceRecordDump** to output the data in the buffer. \(The input parameter of the function is of the Boolean type. The value **FALSE** means to output data in the specified format, and the value **TRUE** means to output data to a Windows client.\) +The typical development process is as follows: + +1. Configure the macros related to the trace module in the **target_config.h** file. + | Configuration Item| Description| Value| + | -------- | -------- | -------- | + | LOSCFG_KERNEL_TRACE | Whether to enable the trace feature. | YES/NO | + | LOSCFG_RECORDER_MODE_OFFLINE | Whether to enable the online trace mode. | YES/NO | + | LOSCFG_RECORDER_MODE_ONLINE | Whether to enable the offline trace mode. | YES/NO | + | LOSCFG_TRACE_CLIENT_INTERACT | Whether to enable interaction with Trace IDE (dev tools), including data visualization and process control. | YES/NO | + | LOSCFG_TRACE_FRAME_CORE_MSG | Whether to enable trace of the CPU ID, interruption state, and lock task state. | YES/NO | + | LOSCFG_TRACE_FRAME_EVENT_COUNT | Whether to enable trace of the event sequence number. | YES/NO | + | LOSCFG_TRACE_FRAME_MAX_PARAMS | Specifies the maximum number of parameters for event tracing. | INT | + | LOSCFG_TRACE_BUFFER_SIZE | Specifies the trace buffer size.| INT | + +2. (Optional) Preset event parameters and stubs (or use the default event parameter settings and event stubs). + +3. (Optional) Call **LOS_TraceStop** to stop trace and **LOS_TraceReset** to clear the trace buffer. (Trace is started by default.) + +4. (Optional) Call **LOS_TraceEventMaskSet** to set the event mask for trace (only the interrupts and task events are enabled by default). For details about the event mask, see **LOS_TRACE_MASK** in **los_trace.h**. + +5. Call **LOS_TraceStart** at the start of the code where the event needs to be traced. + +6. Call **LOS_TraceStop** at the end of the code where the event needs to be traced. + +7. Call **LOS_TraceRecordDump** to output the data in the buffer. (The input parameter of the function is of the Boolean type. The value **FALSE** means to output data in the specified format, and the value **TRUE** means to output data to a Windows client.) The methods in steps 3 to 7 are encapsulated with shell commands. After the shell is enabled, the corresponding commands can be executed. The mapping is as follows: -- LOS\_TraceReset —— trace\_reset -- LOS\_TraceEventMaskSet —— trace\_mask -- LOS\_TraceStart —— trace\_start -- LOS\_TraceStop —— trace\_stop -- LOS\_TraceRecordDump —— trace\_dump +- LOS_TraceReset —— trace_reset + +- LOS_TraceEventMaskSet —— trace_mask + +- LOS_TraceStart —— trace_start + +- LOS_TraceStop —— trace_stop + +- LOS_TraceRecordDump —— trace_dump + ### Development Example This example implements the following: -1. Create a trace task. -2. Set the event mask. -3. Start trace. -4. Stop trace. -5. Output trace data in the specified format. +1. Create a trace task. + +2. Set the event mask. + +3. Start trace. + +4. Stop trace. + +5. Output trace data in the specified format. + ### Sample Code The sample code is as follows: +The sample code can be compiled and verified in **./kernel/liteos_m/testsuites/src/osTest.c**. The **ExampleTraceTest** function is called in **TestTaskEntry**. + + ``` #include "los_trace.h" UINT32 g_traceTestTaskId; @@ -288,21 +193,21 @@ VOID Example_Trace(VOID) dprintf("trace start error\n"); return; } - /* Trigger a task switching event.*/ + /* Trigger a task switching event. */ LOS_TaskDelay(1); LOS_TaskDelay(1); LOS_TaskDelay(1); - /* Stop trace.*/ + /* Stop trace. */ LOS_TraceStop(); LOS_TraceRecordDump(FALSE); } -UINT32 Example_Trace_test(VOID){ +UINT32 ExampleTraceTest(VOID){ UINT32 ret; - TSK_INIT_PARAM_S traceTestTask; - /* Create a trace task. */ + TSK_INIT_PARAM_S traceTestTask = { 0 }; + /* Create a trace task. */ memset(&traceTestTask, 0, sizeof(TSK_INIT_PARAM_S)); traceTestTask.pfnTaskEntry = (TSK_ENTRY_FUNC)Example_Trace; - traceTestTask.pcName = "TestTraceTsk"; /* Trace task name*/ + traceTestTask.pcName = "TestTraceTsk"; /* Trace task name. */ traceTestTask.uwStackSize = 0x800; traceTestTask.usTaskPrio = 5; traceTestTask.uwResved = LOS_TASK_STATUS_DETACHED; @@ -311,21 +216,23 @@ UINT32 Example_Trace_test(VOID){ dprintf("TraceTestTask create failed .\n"); return LOS_NOK; } - /* Trace is started by default. Therefore, you can stop trace, clear the buffer, and then restart trace. */ + /* Trace is started by default. You can stop trace, clear the buffer, and restart trace. */ LOS_TraceStop(); LOS_TraceReset(); - /* Enable trace of the Task module events. */ + /* Enable trace of the Task module events. */ LOS_TraceEventMaskSet(TRACE_TASK_FLAG); return LOS_OK; } ``` + ### Verification The output is as follows: + ``` -*******TraceInfo begin******* +***TraceInfo begin*** clockFreq = 50000000 CurEvtIndex = 7 Index Time(cycles) EventType CurTask Identity params @@ -337,36 +244,43 @@ Index Time(cycles) EventType CurTask Identity params 5 0x36eec810 0x45 0xc 0x1 0x9 0x8 0x1f 6 0x3706f804 0x45 0x1 0x0 0x1f 0x4 0x0 7 0x37070e59 0x45 0x0 0x1 0x0 0x8 0x1f -*******TraceInfo end******* +***TraceInfo end*** + +The preceding data may vary depending on the running environment. ``` The output event information includes the occurrence time, event type, task in which the event occurs, object of the event operation, and other parameters of the event. -- **EventType**: event type. For details, see **enum LOS\_TRACE\_TYPE** in the header file **los\_trace.h**. -- **CurrentTask**: ID of the running task. -- **Identity**: object of the event operation. For details, see **\#TYPE\#\_PARAMS** in the header file **los\_trace.h**. -- **params**: event parameters. For details, see **\#TYPE\#\_PARAMS** in the header file **los\_trace.h**. +- **EventType**: event type. For details, see **enum LOS_TRACE_TYPE** in the header file **los_trace.h**. + +- **CurrentTask**: ID of the running task. + +- **Identity**: object of the event operation. For details, see **#TYPE#_PARAMS** in the header file **los_trace.h**. + +- **params**: event parameters. For details, see **#TYPE#_PARAMS** in the header file **los_trace.h**. The following uses output No. 0 as an example. + ``` Index Time(cycles) EventType CurTask Identity params 0 0x366d5e88 0x45 0x1 0x0 0x1f 0x4 ``` -- **Time \(cycles\)** can be converted into time \(in seconds\) by dividing the cycles by clockFreq. -- **0x45** indicates the task switching event. **0x1** is the ID of the task in running. -- For details about the meanings of **Identity** and **params**, see the **TASK\_SWITCH\_PARAMS** macro. +- **Time (cycles)** can be converted into time (in seconds) by dividing the cycles by clockFreq. +- **0x45** indicates the task switching event. **0x1** is the ID of the task in running. + +- For details about the meanings of **Identity** and **params**, see the **TASK_SWITCH_PARAMS** macro. + + ``` #define TASK_SWITCH_PARAMS(taskId, oldPriority, oldTaskStatus, newPriority, newTaskStatus) \ taskId, oldPriority, oldTaskStatus, newPriority, newTaskStatus ``` -Because of **\#TYPE\#\_PARAMS\(IDENTITY, parma1...\) IDENTITY, ...**, **Identity** is **taskId \(0x0\)** and the first parameter is **oldPriority \(0x1f\)**. - ->![](../public_sys-resources/icon-note.gif) **NOTE:** ->The number of parameters in **params** is specified by the **LOSCFG\_TRACE\_FRAME\_MAX\_PARAMS** parameter. The default value is **3**. Excess parameters are not recorded. You need to set **LOSCFG\_TRACE\_FRAME\_MAX\_PARAMS** based on service requirements. - -Task 0x1 is switched to Task 0x0. The priority of task 0x1 is **0x1f**, and the state is **0x4**. The priority of the task 0x0 is **0x0**. + **Identity** is **taskId (0x0)**, and the first parameter is **oldPriority (0x1f)**. +> **NOTE**
+> The number of parameters in **params** is specified by **LOSCFG_TRACE_FRAME_MAX_PARAMS**. The default value is **3**. Excess parameters are not recorded. Set **LOSCFG_TRACE_FRAME_MAX_PARAMS** based on service requirements. +Task 0x1 is switched to Task 0x0. The priority of task 0x1 is **0x1f**, and the state is **0x4**. The priority of task 0x0 is **0x0**. diff --git a/en/device-dev/kernel/kernel-small-apx-bitwise.md b/en/device-dev/kernel/kernel-small-apx-bitwise.md index a3760fc0c586a410de798654e2d4c3f75c2c39ce..7d2021ff322d40f8bccd7ad3cccb8742b0de1503 100644 --- a/en/device-dev/kernel/kernel-small-apx-bitwise.md +++ b/en/device-dev/kernel/kernel-small-apx-bitwise.md @@ -1,80 +1,42 @@ # Bitwise Operation - ## Basic Concepts -A bitwise operation operates on a binary number at the level of its individual bits. For example, a variable can be set as a program status word \(PSW\), and each bit \(flag bit\) in the PSW can have a self-defined meaning. - -## Available APIs - -The system provides operations for setting the flag bit to **1** or **0**, changing the flag bit content, and obtaining the most significant bit and least significant bit of the flag bit 1 in a PSW. You can also perform bitwise operations on system registers. The following table describes the APIs available for the bitwise operation module. For more details about the APIs, see the API reference. - -**Table 1** Bitwise operation module APIs - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Function

-

API

-

Description

-

Setting the flag bit to 1 or 0

-

LOS_BitmapSet

-

Sets a flag bit of a PSW to 1.

-

LOS_BitmapClr

-

Sets a flag bit of a PSW to 0.

-

Obtaining the bit whose flag bit is 1

-

LOS_HighBitGet

-

Obtains the most significant bit of 1 in the PSW.

-

LOS_LowBitGet

-

Obtains the least significant bit of 1 in the PSW.

-

Operating continuous bits

-

LOS_BitmapSetNBits

-

Sets the continuous flag bits of a PSW to 1.

-

LOS_BitmapClrNBits

-

Sets the continuous flag bits of a PSW to 0.

-

LOS_BitmapFfz

-

Obtains the first 0 bit starting from the least significant bit (LSB).

-
- -## Development Example - -### Example Description +A bitwise operation operates on the bits of a binary number. A variable can be set as a program status word (PSW), and each bit (flag bit) in the PSW can have a self-defined meaning. + + +## **Available APIs** + +The system provides operations for setting the flag bit to **1** or **0**, changing the flag bit content, and obtaining the most significant bit (MSB) and least significant bit (LSB) of the flag bit 1 in a PSW. You can also perform bitwise operations on system registers. The following table describes the APIs available for the bitwise operation module. For more details about the APIs, see the API reference. + + **Table 1** APIs of the bitwise operation module + +| Category | API Description | +| -------- | -------- | +| Setting a flag bit| - **LOS_BitmapSet**: sets a flag bit of a PSW to **1**.
- **LOS_BitmapClr**: sets a flag bit of a PSW to **0**. | +| Obtaining the bit whose flag bit is **1**| -**LOS_HighBitGet**: obtains the most significant bit of 1 in a PSW.
- **LOS_LowBitGet**: obtains the least significant bit of 1 in a PSW. | +| Operating continuous bits| - **LOS_BitmapSetNBits**: sets the consecutive flag bits of a PSW to **1**.
- **LOS_BitmapClrNBits**: sets the consecutive flag bits of a PSW to **0**.
- **LOS_BitmapFfz**: obtains the first 0 bit starting from the LSB. | + + +## Development Example + + +### Example Description This example implements the following: -1. Set a flag bit to **1**. -2. Obtain the most significant bit of flag bit 1. -3. Set a flag bit to **0**. -4. Obtain the least significant bit of the flag bit 1. +1. Set a flag bit to **1**. + +2. Obtain the MSB of flag bit 1. + +3. Set a flag bit to **0**. + +4. Obtain the LSB of flag bit 1. + +### Sample Code + +The sample code can be compiled and verified in **./kernel/liteos_a/testsuites/kernel/src/osTest.c**. The **BitSample** function is called in **TestTaskEntry**. ``` #include "los_bitmap.h" @@ -105,10 +67,12 @@ static UINT32 BitSample(VOID) } ``` + ### Verification The development is successful if the return result is as follows: + ``` Bitmap Sample! The flag is 0x10101010 @@ -117,4 +81,3 @@ LOS_HighBitGet:The highest one bit is 28, the flag is 0x10101110 LOS_BitmapClr: pos : 28, the flag is 0x00101110 LOS_LowBitGet: The lowest one bit is 4, the flag is 0x00101110 ``` - diff --git a/en/device-dev/kernel/kernel-small-apx-dll.md b/en/device-dev/kernel/kernel-small-apx-dll.md index e33e8e55d65e6a5e39fbb33e154557e2751148e9..1baa754b958dfbc5613eb7058e8ed4e24edfa376 100644 --- a/en/device-dev/kernel/kernel-small-apx-dll.md +++ b/en/device-dev/kernel/kernel-small-apx-dll.md @@ -8,19 +8,18 @@ A doubly linked list (DLL) is a linked data structure that consists of a set of ## Available APIs -The table below describes the DLL APIs. For more details about the APIs, see the API reference. - -| **Category**| **API**| -| -------- | -------- | -| Initializing a DLL| - **LOS_ListInit**: initializes a node as a DLL node.
- **LOS_DL_LIST_HEAD**: defines a node and initializes it as a DLL node.| -| Adding a node| - **LOS_ListAdd**: adds a node to the head of a DLL.
- **LOS_ListHeadInsert**: same as **LOS_ListAdd**.
- **LOS_ListTailInsert**: inserts a node to the tail of a DLL.| -| Adding a DLL| - **LOS_ListAddList**: adds the head of a DLL to the head of this DLL.
- **LOS_ListHeadInsertList**: inserts the head of a DLL to the head of this DLL.
- **LOS_ListTailInsertList**: Inserts the end of a DLL to the head of this DLL.| -| Deleting a node| - **LOS_ListDelete**: deletes a node from this DLL.
- **LOS_ListDelInit**: deletes a node from this DLL and uses this node to initialize the DLL.| -| Checking a DLL| - **LOS_ListEmpty**: checks whether a DLL is empty.
- **LOS_DL_LIST_IS_END**: checks whether a node is the tail of the DLL.
- **LOS_DL_LIST_IS_ON_QUEUE**: checks whether a node is in the DLL.| -| Obtains structure information.| - **LOS_OFF_SET_OF**: obtains the offset of a member in the specified structure relative to the start address of the structure.
- **LOS_DL_LIST_ENTRY**: obtains the address of the structure that contains the first node in the DLL. The first input parameter of the API indicates the head node in the list, the second input parameter indicates the name of the structure to be obtained, and the third input parameter indicates the name of the linked list in the structure.
- **LOS_ListPeekHeadType**: obtains the address of the structure that contains the first node in the linked list. The first input parameter of the API indicates the head node in the list, the second input parameter indicates the name of the structure to be obtained, and the third input parameter indicates the name of the linked list in the structure. Null will be returned if the DLL is empty.
- **LOS_ListRemoveHeadType**: obtains the address of the structure that contains the first node in the linked list, and deletes the first node from the list. The first input parameter of the API indicates the head node in the list, the second input parameter indicates the name of the structure to be obtained, and the third input parameter indicates the name of the linked list in the structure. Null will be returned if the DLL is empty.
- **LOS_ListNextType**: obtains the address of the structure that contains the next node of the specified node in the linked list. The first input parameter of the API indicates the head node in the list, the second input parameter indicates the specified node, the third parameter indicates the name of the structure to be obtained, and the fourth input parameter indicates the name of the linked list in the structure. If the next node of the linked list node is the head node and is empty, NULL will be returned.| -| Traversing a DLL| - **LOS_DL_LIST_FOR_EACH**: traverses a DLL.
- **LOS_DL_LIST_FOR_EACH_SAFE**: traverses the DLL and stores the subsequent nodes of the current node for security verification.| -| Traversing the structure that contains the DLL| - **LOS_DL_LIST_FOR_EACH_ENTRY**: traverses a DLL and obtains the address of the structure that contains the linked list node.
- **LOS_DL_LIST_FOR_EACH_ENTRY_SAFE**: traverses a DLL, obtains the address of the structure that contains the linked list node, and stores the address of the structure that contains the subsequent node of the current node.| - +The table below describes APIs available for the DLL. For more details about the APIs, see the API reference. + +| Category | API Description | +| ------------------------ | ------------------------------------------------------------ | +| Initializing a DLL | - **LOS_ListInit**: initializes a node as a DLL node.
- **LOS_DL_LIST_HEAD**: defines a node and initializes it as a DLL node.| +| Adding a node | - **LOS_ListAdd**: adds a node to the head of a DLL.
- **LOS_ListHeadInsert**: same as **LOS_ListAdd**.
- **LOS_ListTailInsert**: inserts a node to the tail of a DLL.| +| Adding a DLL | - **LOS_ListAddList**: adds the head of a DLL to the head of this DLL.
- **LOS_ListHeadInsertList**: inserts the head of a DLL to the head of this DLL.
- **LOS_ListTailInsertList**: inserts the end of a DLL to the head of this DLL.| +| Deleting a node | - **LOS_ListDelete**: deletes a node from this DLL.
- **LOS_ListDelInit**: deletes a node from this DLL and uses this node to initialize the DLL.| +| Checking a DLL | - **LOS_ListEmpty**: checks whether a DLL is empty.
- **LOS_DL_LIST_IS_END**: checks whether a node is the tail of the DLL.
- **LOS_DL_LIST_IS_ON_QUEUE**: checks whether a node is in the DLL.| +| Obtaining structure information | - **LOS_OFF_SET_OF**: obtains the offset of a member in the specified structure relative to the start address of the structure.
- **LOS_DL_LIST_ENTRY**: obtains the address of the structure that contains the first node in the DLL. The first input parameter of the API indicates the head node in the list, the second input parameter indicates the name of the structure to be obtained, and the third input parameter indicates the name of the linked list in the structure.
- **LOS_ListPeekHeadType**: obtains the address of the structure that contains the first node in the linked list. The first input parameter of the API indicates the head node in the list, the second input parameter indicates the name of the structure to be obtained, and the third input parameter indicates the name of the linked list in the structure. Null will be returned if the DLL is empty.
- **LOS_ListRemoveHeadType**: obtains the address of the structure that contains the first node in the linked list, and deletes the first node from the list. The first input parameter of the API indicates the head node in the list, the second input parameter indicates the name of the structure to be obtained, and the third input parameter indicates the name of the linked list in the structure. Null will be returned if the DLL is empty.
- **LOS_ListNextType**: obtains the address of the structure that contains the next node of the specified node in the linked list. The first input parameter of the API indicates the head node in the list, the second input parameter indicates the specified node, the third parameter indicates the name of the structure to be obtained, and the fourth input parameter indicates the name of the linked list in the structure. If the next node of the linked list node is the head node and is empty, NULL will be returned.| +| Traversing a DLL | - **LOS_DL_LIST_FOR_EACH**: traverses a DLL.
- **LOS_DL_LIST_FOR_EACH_SAFE**: traverses the DLL and stores the subsequent nodes of the current node for security verification.| +| Traversing the structure that contains a DLL| - **LOS_DL_LIST_FOR_EACH_ENTRY**: traverses a DLL and obtains the address of the structure that contains the linked list node.
- **LOS_DL_LIST_FOR_EACH_ENTRY_SAFE**: traverses a DLL, obtains the address of the structure that contains the linked list node, and stores the address of the structure that contains the subsequent node of the current node.| ## How to Develop @@ -30,7 +29,7 @@ The typical development process of the DLL is as follows: 2. Call **LOS_ListAdd** to add a node into the DLL. -3. Call **LOS_ListTailInsert** to insert a node to the tail of the DLL. +3. Call **LOS_ListTailInsert** to insert a node into the tail of the DLL. 4. Call **LOS_ListDelete** to delete the specified node. @@ -39,18 +38,19 @@ The typical development process of the DLL is as follows: 6. Call **LOS_ListDelInit** to delete the specified node and initialize the DLL based on the node. -> ![icon-note.gif](public_sys-resources/icon-note.gif) **NOTE**
-> - Pay attention to the operations operations of the front and back pointer of the node. -> +> **NOTE**
+> +> - Pay attention to the operations before and after the node pointer. +> > - The DLL APIs are underlying interfaces and do not check whether the input parameters are empty. You must ensure that the input parameters are valid. -> +> > - If the memory of a linked list node is dynamically allocated, release the memory when deleting the node. - **Development Example** +## Development Example -**Example Description** +### Example Description This example implements the following: @@ -63,7 +63,11 @@ This example implements the following: 4. Check the operation result. +### Sample Code + +The sample code can be compiled and verified in **./kernel/liteos_a/testsuites/kernel/src/osTest.c**. The **ListSample** function is called in **TestTaskEntry**. +The sample code is as follows: ``` #include "stdio.h" @@ -109,6 +113,8 @@ static UINT32 ListSample(VOID) The development is successful if the return result is as follows: + + ``` Initial head Add listNode1 success diff --git a/en/device-dev/kernel/kernel-small-apx-library.md b/en/device-dev/kernel/kernel-small-apx-library.md index c99d339880983a28403409a2caf157a20875c47b..dbbc0a9d9b872a5a0fe0a2c703c1d8783d05b59f 100644 --- a/en/device-dev/kernel/kernel-small-apx-library.md +++ b/en/device-dev/kernel/kernel-small-apx-library.md @@ -1,45 +1,49 @@ # Standard Library -The OpenHarmony kernel uses the musl libc library that supports the Portable Operating System Interface \(POSIX\). You can develop components and applications working on the kernel based on the POSIX. +The OpenHarmony kernel uses the musl libc library that supports the Portable Operating System Interface (POSIX). You can develop components and applications working on the kernel based on the POSIX. + ## Standard Library API Framework -**Figure 1** POSIX framework +**Figure 1** POSIX framework + ![](figures/posix-framework.png "posix-framework") The musl libc library supports POSIX standards. The OpenHarmony kernel adapts the related system call APIs to implement external functions. For details about the APIs supported by the standard library, see the API document of the C library, which also covers the differences between the standard library and the POSIX standard library. -## Development Example -In this example, the main thread creates **THREAD\_NUM** child threads. Once a child thread is started, it enters the standby state. After the main thread successfully wakes up all child threads, they continue to execute until the lifecycle ends. The main thread uses the **pthread\_join** method to wait until all child threads are executed. +### Development Example + + +#### Example Description + +In this example, the main thread creates THREAD_NUM child threads. Once a child thread is started, it enters the standby state. After the main thread successfully wakes up all child threads, they continue to execute until the lifecycle ends. The main thread uses the **pthread_join** method to wait until all child threads are executed. + +#### Sample Code + +The sample code can be compiled and verified in **./kernel/liteos_a/testsuites/kernel/src/osTest.c**. The **ExamplePosix** function is called in **TestTaskEntry**. + +The sample code is as follows: ``` #include #include #include -#ifdef __cplusplus -#if __cplusplus -extern "C" { -#endif /* __cplusplus */ -#endif /* __cplusplus */ - #define THREAD_NUM 3 -int g_startNum = 0; /* Number of started threads */ -int g_wakenNum = 0; /* Number of wakeup threads */ +int g_startNum = 0; /* Number of threads to start */ +int g_wakenNum = 0; /* Number of threads to wake up */ struct testdata { pthread_mutex_t mutex; pthread_cond_t cond; } g_td; -/* - * Entry function of child threads. - */ -static void *ChildThreadFunc(void *arg) +/* Entry function of the child thread */ +static VOID *ChildThreadFunc(VOID *arg) { int rc; pthread_t self = pthread_self(); @@ -47,17 +51,17 @@ static void *ChildThreadFunc(void *arg) /* Acquire a mutex. */ rc = pthread_mutex_lock(&g_td.mutex); if (rc != 0) { - printf("ERROR:take mutex lock failed, error code is %d!\n", rc); + dprintf("ERROR:take mutex lock failed, error code is %d!\n", rc); goto EXIT; } /* The value of g_startNum is increased by 1. The value indicates the number of child threads that have acquired a mutex. */ g_startNum++; - /* Wait for the cond variable. */ + /* Wait for the cond variable. */ rc = pthread_cond_wait(&g_td.cond, &g_td.mutex); if (rc != 0) { - printf("ERROR: pthread condition wait failed, error code is %d!\n", rc); + dprintf("ERROR: pthread condition wait failed, error code is %d!\n", rc); (void)pthread_mutex_unlock(&g_td.mutex); goto EXIT; } @@ -65,52 +69,53 @@ static void *ChildThreadFunc(void *arg) /* Attempt to acquire a mutex, which is failed in normal cases. */ rc = pthread_mutex_trylock(&g_td.mutex); if (rc == 0) { - printf("ERROR: mutex gets an abnormal lock!\n"); + dprintf("ERROR: mutex gets an abnormal lock!\n"); goto EXIT; } /* The value of g_wakenNum is increased by 1. The value indicates the number of child threads that have been woken up by the cond variable. */ g_wakenNum++; - /* Unlock a mutex. */ + /* Release a mutex. */ rc = pthread_mutex_unlock(&g_td.mutex); if (rc != 0) { - printf("ERROR: mutex release failed, error code is %d!\n", rc); + dprintf("ERROR: mutex release failed, error code is %d!\n", rc); goto EXIT; } EXIT: return NULL; } -static int testcase(void) +static int ExamplePosix(VOID) { int i, rc; pthread_t thread[THREAD_NUM]; - /* Initialize a mutex. */ + /* Initialize the mutex. */ rc = pthread_mutex_init(&g_td.mutex, NULL); if (rc != 0) { - printf("ERROR: mutex init failed, error code is %d!\n", rc); + dprintf("ERROR: mutex init failed, error code is %d!\n", rc); goto ERROROUT; } /* Initialize the cond variable. */ rc = pthread_cond_init(&g_td.cond, NULL); if (rc != 0) { - printf("ERROR: pthread condition init failed, error code is %d!\n", rc); + dprintf("ERROR: pthread condition init failed, error code is %d!\n", rc); goto ERROROUT; } - /* Create child threads in batches. The number is specified by THREAD_NUM. */ + /* Create child threads in batches. */ for (i = 0; i < THREAD_NUM; i++) { rc = pthread_create(&thread[i], NULL, ChildThreadFunc, NULL); if (rc != 0) { - printf("ERROR: pthread create failed, error code is %d!\n", rc); + dprintf("ERROR: pthread create failed, error code is %d!\n", rc); goto ERROROUT; } } + dprintf("pthread_create ok\n"); - /* Wait until all child threads lock a mutex. */ + /* Wait until all child threads obtain a mutex. */ while (g_startNum < THREAD_NUM) { usleep(100); } @@ -118,14 +123,14 @@ static int testcase(void) /* Acquire a mutex and block all threads using pthread_cond_wait. */ rc = pthread_mutex_lock(&g_td.mutex); if (rc != 0) { - printf("ERROR: mutex lock failed, error code is %d\n", rc); + dprintf("ERROR: mutex lock failed, error code is %d\n", rc); goto ERROROUT; } - /* Release a mutex. */ + /* Release the mutex. */ rc = pthread_mutex_unlock(&g_td.mutex); if (rc != 0) { - printf("ERROR: mutex unlock failed, error code is %d!\n", rc); + dprintf("ERROR: mutex unlock failed, error code is %d!\n", rc); goto ERROROUT; } @@ -133,7 +138,7 @@ static int testcase(void) /* Broadcast signals on the cond variable. */ rc = pthread_cond_signal(&g_td.cond); if (rc != 0) { - printf("ERROR: pthread condition failed, error code is %d!\n", rc); + dprintf("ERROR: pthread condition failed, error code is %d!\n", rc); goto ERROROUT; } } @@ -142,73 +147,69 @@ static int testcase(void) /* Check whether all child threads are woken up. */ if (g_wakenNum != THREAD_NUM) { - printf("ERROR: not all threads awaken, only %d thread(s) awaken!\n", g_wakenNum); + dprintf("ERROR: not all threads awaken, only %d thread(s) awaken!\n", g_wakenNum); goto ERROROUT; } + dprintf("all threads awaked\n"); - /* Wait for all threads to terminate. */ + /* Join all child threads, that is, wait for the end of all child threads. */ for (i = 0; i < THREAD_NUM; i++) { rc = pthread_join(thread[i], NULL); if (rc != 0) { - printf("ERROR: pthread join failed, error code is %d!\n", rc); + dprintf("ERROR: pthread join failed, error code is %d!\n", rc); goto ERROROUT; } } + dprintf("all threads join ok\n"); /* Destroy the cond variable. */ rc = pthread_cond_destroy(&g_td.cond); if (rc != 0) { - printf("ERROR: pthread condition destroy failed, error code is %d!\n", rc); + dprintf("ERROR: pthread condition destroy failed, error code is %d!\n", rc); goto ERROROUT; } return 0; ERROROUT: return -1; } +``` -/* - * Main function - */ -int main(int argc, char *argv[]) -{ - int rc; +#### Verification - /* Start the test function. */ - rc = testcase(); - if (rc != 0) { - printf("ERROR: testcase failed!\n"); - } + The output is as follows: - return 0; -} -#ifdef __cplusplus -#if __cplusplus -} -#endif /* __cplusplus */ -#endif /* __cplusplus */ +``` +pthread_create ok +all threads awaked +all threads join ok ``` ## Differences from the Linux Standard Library -This section describes the key differences between the standard library carried by the OpenHarmony kernel and the Linux standard library. For more differences, see the API document of the C library. +The following describes the key differences between the standard library supported by the OpenHarmony kernel and the Linux standard library. For more differences, see the API document of the C library. + ### Process -1. The OpenHarmony user-mode processes support only static priorities, which range from 10 \(highest\) to 31 \(lowest\). -2. The OpenHarmony user-mode threads support only static priorities, which range from 0 \(highest\) to 31 \(lowest\). -3. The OpenHarmony process scheduling supports **SCHED\_RR** only, and thread scheduling supports **SCHED\_RR** or **SCHED\_FIFO**. +- The OpenHarmony user-mode processes support only static priorities, which range from 10 (highest) to 31 (lowest). + +- The OpenHarmony user-mode threads support only static priorities, which range from 0 (highest) to 31 (lowest). + +- The OpenHarmony process scheduling supports **SCHED_RR** only, and thread scheduling supports **SCHED_RR** or **SCHED_FIFO**. + ### Memory -**h2****Difference with Linux mmap** +**Differences from Linux mmap** + +mmap prototype: **void \*mmap (void \*addr, size_t length, int prot, int flags, int fd, off_t offset)** -mmap prototype: **void \*mmap \(void \*addr, size\_t length, int prot, int flags, int fd, off\_t offset\)** +The lifecycle implementation of **fd** is different from that of Linux glibc. glibc releases the **fd** handle immediately after successfully invoking **mmap** for mapping. In the OpenHarmony kernel, you are not allowed to close the **fd** immediately after the mapping is successful. You can close the **fd** only after **munmap** is called. If you do not close **fd**, the OS reclaims the **fd** when the process exits. -The lifecycle implementation of **fd** is different from that of Linux glibc. glibc releases the **fd** handle immediately after successfully invoking **mmap** for mapping. In the OpenHarmony kernel, you are not allowed to close the **fd** immediately after the mapping is successful. You can close the **fd** only after **munmap** is called. If you do not close **fd**, the OS reclaims the **fd** when the process exits. +**Example** -**h2****Sample Code** -Linux OS: +Linux: ``` int main(int argc, char *argv[]) @@ -226,13 +227,14 @@ int main(int argc, char *argv[]) perror("mmap"); exit(EXIT_FAILURE); } - close(fd); /* OpenHarmony does not support close fd immediately after the mapping is successful. */ + close(fd); /* OpenHarmony does not support closing fd immediately after the mapping is successful. */ ... exit(EXIT_SUCCESS); } ``` -OpenHarmony: + + OpenHarmony: ``` int main(int argc, char *argv[]) @@ -252,27 +254,32 @@ int main(int argc, char *argv[]) } ... munmap(addr, length); - close(fd); /* Close fd after the munmap is canceled. */ + close(fd); /* Close fd after the munmap is canceled. */ exit(EXIT_SUCCESS); } ``` + ### File System -**System directories**: You cannot modify system directories and device mount directories, which include **/dev**, **/proc**, **/app**, **/bin**, **/data**, **/etc**, **/lib**, **/system** and **/usr**. +System directories: You cannot modify system directories and device mount directories, which include **/dev**, **/proc**, **/app**, **/bin**, **/data**, **/etc**, **/lib**, **/system**, and **/usr**. -**User directory**: The user directory refers to the **/storage** directory. You can create, read, and write files in this directory, but cannot mount devices. +User directory: The user directory refers to the **/storage** directory. You can create, read, and write files in this directory, but cannot mount it to a device. + +Except in the system and user directories, you can create directories and mount them to devices. Note that nested mount is not allowed, that is, a mounted folder and its subfolders cannot be mounted repeatedly. A non-empty folder cannot be mounted. -Except in the system and user directories, you can create directories and mount devices. Note that nested mount is not allowed, that is, a mounted folder and its subfolders cannot be mounted repeatedly. A non-empty folder cannot be mounted. ### Signal -- The default behavior for signals does not include **STOP**, **CONTINUE**, or **COREDUMP**. -- A sleeping process \(for example, a process enters the sleeping status by calling the sleep function\) cannot be woken up by a signal. The signal mechanism does not support the wakeup function. The behavior for a signal can be processed only when the process is scheduled by the CPU. -- After a process exits, **SIGCHLD** is sent to the parent process. The sending action cannot be canceled. -- Only signals 1 to 30 are supported. The callback is executed only once even if the same signal is received multiple times. +- The default behavior for signals does not include **STOP**, **CONTINUE**, or **COREDUMP**. -### Time +- A sleeping process (for example, a process enters the sleeping status by calling the sleep function) cannot be woken up by a signal. The signal mechanism does not support the wakeup function. The behavior for a signal can be processed only when the process is scheduled by the CPU. -The OpenHarmony time precision is based on tick. The default value is 10 ms/tick. The time error of the **sleep** and **timeout** functions is less than or equal to 20 ms. +- After a process exits, **SIGCHLD** is sent to the parent process. The sending action cannot be canceled. + +- Only signals 1 to 30 are supported. The callback is invoked only once even if the same signal is received multiple times. + + +### Time +The default time precision of OpenHarmony is 10 ms/tick. The time error of the **sleep** and **timeout** functions is less than or equal to 20 ms. diff --git a/en/device-dev/kernel/kernel-small-basic-interrupt.md b/en/device-dev/kernel/kernel-small-basic-interrupt.md index b84a71b17ddd6c99f9278514a7c514bfc4bc5781..b22e5e78ff75cf72ec14352aa7a37129b4f4e9ee 100644 --- a/en/device-dev/kernel/kernel-small-basic-interrupt.md +++ b/en/device-dev/kernel/kernel-small-basic-interrupt.md @@ -1,132 +1,131 @@ # Interrupt and Exception Handling -## Basic Concepts +## Basic Concepts An interrupt is a signal to the processor emitted by hardware or software indicating an event that needs immediate attention. An interrupt alerts the processor of a high-priority condition requiring interruption of the code being executed by the processor. In this way, the CPU does not need to spend a lot of time in waiting and querying the peripheral status, which effectively improves the real-time performance and execution efficiency of the system. -Exception handling involves a series of actions taken by the OS to respond to exceptions \(chip hardware faults\) that occurred during the OS running, for example, printing the call stack information of the current function, CPU information, and call stack information of tasks when the virtual memory page is missing. +OpenHarmony supports the following interrupt operations: -## Working Principles ++ Initializing an interrupt. ++ Creating an interrupt. ++ Enabling or disabling interrupts. ++ Restoring the system status before interrupts are disabled. ++ Deleting an interrupt. -Peripherals can complete certain work without the intervention of the CPU. In some cases, however, the CPU needs to perform certain work for peripherals. With the interrupt mechanism, the CPU responds to the interrupt request from a peripheral only when required, and execute other tasks when the peripherals do not require the CPU. The interrupt controller receives the input of other peripheral interrupt pins and sends interrupt signals to the CPU. You can enable or disable the interrupt source and set the priority and trigger mode of the interrupt source by programming the interrupt controller. Common interrupt controllers include vector interrupt controllers \(VICs\) and general interrupt controllers \(GICs\). The ARM Cortex-A7 uses GICs. After receiving an interrupt signal sent by the interrupt controller, the CPU interrupts the current task to respond to the interrupt request. +Exception handling involves a series of actions taken by the OS to respond to exceptions (chip hardware faults) that occurred during the OS running, for example, printing the call stack information of the current function, CPU information, and call stack information of tasks when the virtual memory page is missing. -Exception handling interrupts the normal running process of the CPU to handle exceptions, such as, undefined instructions, an attempt to modify read-only data, and unaligned address access. When an exception occurs, the CPU suspends the current program, handles the exception, and then continues to execute the program interrupted by the exception. + +## Working Principles + +Peripherals can complete certain work without the intervention of the CPU. In some cases, however, the CPU needs to perform certain work for peripherals. With the interrupt mechanism, the CPU responds to the interrupt request from a peripheral only when required, and execute other tasks when the peripherals do not require the CPU. + +The interrupt controller receives the input from the interrupt pins of other peripherals and sends interrupt signals to the CPU. You can enable or disable the interrupt source and set the priority and trigger mode of the interrupt source by programming the interrupt controller. Common interrupt controllers include vector interrupt controllers (VICs) and general interrupt controllers (GICs). The ARM Cortex-A7 uses GICs. + +After receiving an interrupt signal sent by the interrupt controller, the CPU interrupts the current task to respond to the interrupt request. + +An exception interrupts the normal running process of the CPU to handle exceptions, such as, undefined instructions, an attempt to modify read-only data, and unaligned address access. When an exception occurs, the CPU suspends the current program, handles the exception, and then continues to execute the program interrupted by the exception. The following uses the ARMv7-a architecture as an example. The interrupt vector table is the entry for interrupt and exception handling. The interrupt vector table contains the entry function for each interrupt and exception handling. -**Figure 1** Interrupt vector table +**Figure 1** Interrupt vector table + ![](figures/interrupt-vector-table.png "interrupt-vector-table") -## Development Guidelines - -### Available APIs - -Exception handling is an internal mechanism and does not provide external APIs. The following table describes APIs available for the interrupt module. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Function

-

API

-

Description

-

Creating or deleting interrupts

-

LOS_HwiCreate

-

Creates an interrupt and registers the interrupt ID, interrupt triggering mode, interrupt priority, and interrupt handler. When an interrupt is triggered, the interrupt handler will be called.

-

LOS_HwiDelete

-

Deletes an interrupt.

-

Enabling and disabling all interrupts

-

LOS_IntUnLock

-

Enables all interrupts of the current processor.

-

LOS_IntLock

-

Disables all interrupts for the current processor.

-

LOS_IntRestore

-

Restores to the status before all interrupts are disabled by using LOS_IntLock.

-

Obtaining the maximum number of interrupts supported

-

LOS_GetSystemHwiMaximum

-

Obtains the maximum number of interrupts supported by the system.

-
- -### How to Develop - -1. Call **LOS\_HwiCreate** to create an interrupt. -2. Call **LOS\_HwiDelete** to delete the specified interrupt. Use this API based on actual requirements. - -### Development Example + +## Development Guidelines + + +### Available APIs + +Exception handling is an internal mechanism and does not provide external APIs. The following tables describe the APIs available for the interrupt module. + +##### Creating or Deleting an Interrupt + +| API | Description | +|------------ | ----------------------------------------------------------- | +| LOS_HwiCreate | Creates an interrupt and registers the interrupt ID, triggering mode, priority, and interrupt handler. When the interrupt is triggered, the interrupt handler will be called.| +| LOS_HwiDelete | Deletes an interrupt based on the interrupt number. | + +##### Enabling or Disabling Interrupts + +| API | Description | +| -------------- | ------------------------------------------- | +| LOS_IntUnlock | Enables all interrupts for the current processor. | +| LOS_IntLock | Disables all interrupts for the current processor. | +| LOS_IntRestore | Restores the status in which the system was before **LOS_IntLock** is called.| + +##### Obtaining Interrupt Information + +| API | Description | +| ----------------------- | ------------------------ | +| LOS_GetSystemHwiMaximum | Obtains the maximum number of interrupts supported by the system.| + + + +### How to Develop + +1. Call **LOS_HwiCreate** to create an interrupt. + +2. Call **LOS_HwiDelete** to delete the specified interrupt. Use this API based on actual requirements. + + +### Development Example + This example implements the following: -1. Create an interrupt. -2. Delete an interrupt. -The following sample code shows how to create and delete an interrupt. When the interrupt **HWI\_NUM\_TEST** is generated, the interrupt handler function will be called. +1. Create an interrupt. -``` +2. Delete an interrupt. + +The following sample code demostrates how to create and delete an interrupt, and call the interrupt handler when the specified interrupt **HWI_NUM_TEST** is triggered. You can add the test function of the sample code to **TestTaskEntry** in **kernel/liteos_a/testsuites/kernel/src/osTest.c** for testing. + +The sample code is as follows: + +```c #include "los_hwi.h" /* Interrupt handler function*/ STATIC VOID HwiUsrIrq(VOID) { - printf("in the func HwiUsrIrq \n"); + PRINTK("in the func HwiUsrIrq \n"); } static UINT32 Example_Interrupt(VOID) { UINT32 ret; - HWI_HANDLE_T hwiNum = 7; - HWI_PRIOR_T hwiPrio = 3; + HWI_HANDLE_T hwiNum = 7; // The interrupt number is 7. + HWI_PRIOR_T hwiPrio = 3; // The interrupt priority is 3. HWI_MODE_T mode = 0; HWI_ARG_T arg = 0; -/* Create an interrupt.*/ + /* Create an interrupt. */ ret = LOS_HwiCreate(hwiNum, hwiPrio, mode, (HWI_PROC_FUNC)HwiUsrIrq, (HwiIrqParam *)arg); - if(ret == LOS_OK){ - printf("Hwi create success!\n"); + if (ret == LOS_OK) { + PRINTK("Hwi create success!\n"); } else { - printf("Hwi create failed!\n"); + PRINTK("Hwi create failed!\n"); return LOS_NOK; } - /* Delay 50 ticks. When a hardware interrupt occurs, call the HwiUsrIrq function.*/ + /* Delay 50 ticks. Call HwiUsrIrq when a hardware interrupt occurs. */ LOS_TaskDelay(50); - /* Delete an interrupt./ - ret = LOS_HwiDelete(hwiNum, (HwiIrqParam *)arg); - if(ret == LOS_OK){ - printf("Hwi delete success!\n"); + /* Delete the interrupt. */ + ret = LOS_HwiDelete(hwiNum, (HwiIrqParam *)arg); + if (ret == LOS_OK) { + PRINTK("Hwi delete success!\n"); } else { - printf("Hwi delete failed!\n"); + PRINTK("Hwi delete failed!\n"); return LOS_NOK; } return LOS_OK; } ``` -### Verification + +### Verification The development is successful if the return result is as follows: @@ -134,4 +133,3 @@ The development is successful if the return result is as follows: Hwi create success! Hwi delete success! ``` - diff --git a/en/device-dev/kernel/kernel-small-basic-process-process.md b/en/device-dev/kernel/kernel-small-basic-process-process.md index 413951926be6282146304660a198bc0546014067..33847a3d95060948d7737a5ed8cbff9a5c76b7cc 100644 --- a/en/device-dev/kernel/kernel-small-basic-process-process.md +++ b/en/device-dev/kernel/kernel-small-basic-process-process.md @@ -1,64 +1,66 @@ # Process -## Basic Concepts +## Basic Concepts -A process is the minimum unit for system resource management. The process module provided by the OpenHarmony LiteOS-A kernel is used to isolate user-mode processes. The kernel mode is considered as a process space and does not have other processes except KIdle, which is an idle process provided by the system and shares the same process space with KProcess. +A process is the minimum unit for system resource management. The process module provided by the OpenHarmony LiteOS-A kernel isolates user-mode processes. The kernel mode is considered as a process space and does not have other processes except KIdle, which is an idle process provided by the system and shares the same process space with KProcess. KProcess is the root process of kernel-mode processes, and KIdle is its child process. -- The process module provides multiple processes for users and implements switching and communication between processes, facilitating your management over service programs. -- The processes use the preemption scheduling mechanism. The processes with a higher priority are scheduled first, and the processes with the same priority are scheduled using the time slice polling. -- The processes are assigned 32 priorities \(**0** to **31**\). Among them, user processes can be configured with 22 priorities from **10** \(highest\) to **31** \(lowest\). -- A higher-priority process can preempt the resources of a lower-priority process. The lower-priority process can be scheduled only after the higher-priority process is blocked or terminated. -- Each user-mode process has its own memory space, which is invisible to other processes. In this way, processes are isolated from each other. -- The user-mode root process **init** is created by the kernel. Other user-mode processes are created by the **init** process via the **fork** call. +- The process module provides multiple processes for users and implements switching and communication between processes, facilitating your management over service programs. -**Process States:** +- The processes use the preemption scheduling mechanism. The processes with a higher priority are scheduled first, and the processes with the same priority are scheduled using the time slice round robin. -- Init: The process is being created. +- The processes are assigned 32 priorities (**0** to **31**). Among them, user processes can be configured with 22 priorities from **10** (highest) to **31** (lowest). -- Ready: The process is in the Ready queue and waits for scheduling by the CPU. -- Running: The process is running. -- Pending: The process is blocked and suspended. When all threads in a process are blocked, the process is blocked and suspended. -- Zombies: The process stops running and waits for the parent process to reclaim its control block resources. +- A higher-priority process can preempt the resources of a lower-priority process. The lower-priority process can be scheduled only after the higher-priority process is blocked or terminated. -**Figure 1** Process state transition -![](figures/process-state-transition.png "process-state-transition") +- Each user-mode process has its own memory space, which is invisible to other processes. In this way, processes are isolated from each other. -**Process State Transition:** +- The user-mode root process **init** is created by the kernel. Other user-mode processes are created by the **init** process via the **fork** call. -- Init→Ready: +**Process States** - When a process is created, the process enters the Init state after obtaining the process control block to start initialization. After the process is initialized, the process is inserted into the scheduling queue and therefore enters the Ready state. +- Init: The process is being created. -- Ready→Running: +- Ready: The process is in the Ready queue and waits for scheduling by the CPU. - When a process switchover is triggered, the process with the highest priority in the Ready queue is executed and enters the Running state. If this process has no thread in the Ready state, the process is deleted from the Ready queue and resides only in the Running state. If it has threads in the Ready state, the process still stays in the Ready queue. In this case, the process is in both the Ready and Running states, but presented as the Running state. +- Running: The process is running. -- Running→Pending: +- Pending: The process is blocked and suspended. When all threads in a process are blocked, the process is blocked and suspended. - When the last thread of a process enters the Pending state, all threads in the process are in the Pending state. Then, the process enters the Pending state, and process switching occurs. +- Zombies: The process stops running and waits for the parent process to reclaim its control block resources. -- Pending→Ready: + **Figure 1** Process state transition - When any thread in a Pending process restores to the Ready state, the process is added to the Ready queue and changes to the Ready state. + ![](figures/process-state-transition.png "process-state-transition") -- Ready→Pending: +**Process State Transition** - When the last ready thread in a process enters the Pending state, the process is deleted from the Ready queue, and the process changes from the Ready state to the Pending state. +- Init→Ready: + When a process is created or forked, the process enters the Init state after obtaining the process control block. When the process initialization is complete, the process is added to the scheduling queue, and the process enters the Ready state. -- Running→Ready: +- Ready→Running: + When process switching occurs, the process that has the highest priority and time slice in the Ready queue is executed and enters the Running state. If this process has no thread in the Ready state, the process is deleted from the Ready queue and resides only in the Running state. If it has threads in the Ready state, the process still stays in the Ready queue. In this case, the process is in both the Ready and Running states, but presented as the Running state. - A process may change from the Running state to the Ready state in either of the following scenarios: +- Running→Pending: + When the last thread of a process enters the Pending state, all threads in the process are in the Pending state. Then, the process enters the Pending state, and process switching occurs. - 1. After a process with a higher priority is created or restored, processes will be scheduled. The process with the highest priority in the Ready queue will change to the Running state, and the originally running process will change from the Running state to the Ready state. - 2. If scheduling policy for a process is **LOS\_SCHED\_RR** and its priority is the same as that of another process in the Ready state, this process will change from the Running state to the Ready state after its time slices are used up, and the other process with the same priority will change from the Ready state to the Running state. +- Pending→Ready: + When any thread in a Pending process restores to the Ready state, the process is added to the Ready queue and changes to the Ready state. -- Running→Zombies: +- Ready→Pending: + When the last ready thread in a process enters the Pending state, the process is deleted from the Ready queue, and the process changes from the Ready state to the Pending state. - After the main thread or all threads of a process are stopped, the process changes from the **Running** state to the **Zombies** state and waits for the parent process to reclaim resources. +- Running→Ready: + A process may change from the Running state to the Ready state in either of the following scenarios: + 1. After a process with a higher priority is created or restored, processes will be scheduled. The process with the highest priority in the Ready queue will change to the Running state, and the originally running process will change from the Running state to the Ready state. + 2. If scheduling policy for a process is **LOS_SCHED_RR** (time slice round robin) and its priority is the same as that of another process in the Ready state, this process will change from the Running state to the Ready state after its time slices are used up, and the other process with the same priority will change from the Ready state to the Running state. -## Working Principles +- Running→Zombies: + After the main thread or all threads of a process are stopped, the process changes from the **Running** state to the **Zombies** state and waits for the parent process to reclaim resources. + + +## Working Principles The OpenHarmony process module is used to isolate user-mode processes and supports the following functions: creating and exiting user-mode processes, reclaiming process resources, setting and obtaining scheduling parameters and process group IDs, and obtaining process IDs. @@ -66,105 +68,65 @@ A user-mode process is created by forking a parent process. During forking, the A process is only a resource management unit, and the actual running is executed by threads in the process. When switching occurs between threads in different processes, the process space will be switched. -**Figure 2** Process management +**Figure 2** Process management + ![](figures/process-management.png "process-management") -## Development Guidelines - -### Available APIs - -**Table 1** Process management module APIs - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Function

-

API

-

Description

-

Process scheduling parameter control

-

LOS_GetProcessScheduler

-

Obtains the scheduling policy of the specified process.

-

LOS_SetProcessScheduler

-

Sets the scheduling parameters, including the priority and scheduling policy, for the specified process.

-

LOS_GetProcessPriority

-

Obtains the priority of the specified process.

-

LOS_SetProcessPriority

-

Sets the priority of the specified process.

-

Waiting for reclaiming child processes

-

LOS_Wait

-

Waits for the specified child process to terminate, and reclaims its resources.

-

Process group

-

LOS_GetProcessGroupID

-

Obtains the process group ID of the specified process.

-

LOS_GetCurrProcessGroupID

-

Obtains the process group ID of the current process.

-

Obtaining the process ID.

-

LOS_GetCurrProcessID

-

Obtains the ID of the current process.

-

User and user group

-

LOS_GetUserID

-

Obtains the user ID of the current process.

-

LOS_GetGroupID

-

Obtains the user group ID of the current process.

-

LOS_CheckInGroups

-

Checks whether the specified user group ID is in the user group of the current process.

-

Maximum number of processes supported

-

LOS_GetSystemProcessMaximum

-

Obtains the maximum number of processes supported by the system.

-
- -### How to Develop -Kernel-mode processes cannot be created. Therefore, kernel-mode process development is not involved. +## Development Guidelines + + +### Available APIs + +**Table 1** APIs for processes and process groups + +| API | Description | +| ------------------------- | ---------------------- | +| LOS_GetCurrProcessID | Obtains the ID of the current process. | +| LOS_GetProcessGroupID | Obtains the process group ID of the specified process.| +| LOS_GetCurrProcessGroupID | Obtains the process group ID of the current process.| + +**Table 2** APIs for users and user groups + +| API | Description | +| ----------------- | ---------------------------------------- | +| LOS_GetUserID | Obtains the user ID of the current process. | +| LOS_GetGroupID | Obtains the user group ID of the current process. | +| LOS_CheckInGroups | Checks whether the specified user group ID is in the user group of the current process.| ->![](../public_sys-resources/icon-note.gif) **NOTE:** ->- The number of idle threads depends on the number of CPU cores. Each CPU has a corresponding idle thread. ->- Except KProcess and KIdle, other kernel-mode processes cannot be created. ->- If a thread is created after a user-mode process enters the kernel mode by a system call, the thread belongs to a KProcess not a user-mode process. +**Table 3** APIs for process scheduling + +| API | API | +| ----------------------- | -------------------------------------------- | +| LOS_GetProcessScheduler | Obtains the scheduling policy of a process. | +| LOS_SetProcessScheduler | Sets scheduling parameters, including the priority and scheduling policy, for a process.| +| LOS_SetProcessPriority | Sets the process priority. | +| LOS_GetProcessPriority | Obtains the priority of a process. | + +**Table 4** APIs for obtaining system process information + +| API | Description | +| --------------------------- | -------------------------- | +| LOS_GetSystemProcessMaximum | Obtains the maximum number of processes supported by the system.| +| LOS_GetUsedPIDList | Obtains a list of used process IDs. | + +**Table 5** APIs for managing processes + +| API | Description | +| ---------- | -------------------------- | +| LOS_Fork | Creates a child process. | +| LOS_Wait | Waits for the child process to terminate, and reclaims its resources.| +| LOS_Waitid | Wait for the specified process to terminate. | +| LOS_Exit | Exits a process. | + + + +### How to Develop + +Kernel-mode processes cannot be created. Therefore, kernel-mode process development is not involved. +> **NOTE** +> +> - The number of idle threads depends on the number of CPU cores. Each CPU has a corresponding idle thread. +>- Except KProcess and KIdle, other kernel-mode processes cannot be created. +> - If a thread is created after a user-mode process enters the kernel mode by a system call, the thread belongs to a KProcess not a user-mode process. diff --git a/en/device-dev/kernel/kernel-small-basic-process-scheduler.md b/en/device-dev/kernel/kernel-small-basic-process-scheduler.md index fdd199036e7bcb51cbdd57e52bdce0b273fec998..8af7150bd3ced5e5c914edf340f79ec238246cca 100644 --- a/en/device-dev/kernel/kernel-small-basic-process-scheduler.md +++ b/en/device-dev/kernel/kernel-small-basic-process-scheduler.md @@ -1,53 +1,48 @@ # Scheduler -## Basic Concepts +## Basic Concepts The OpenHarmony LiteOS-A kernel uses the preemptive scheduling mechanism for tasks. The tasks with a higher priority are scheduled first, and the tasks with the same priority are scheduled using the time slice polling. The system runs based on the real-time timeline from the startup, which ensures good real-time performance of the scheduling algorithm. The OpenHarmony scheduling algorithm is embedded with the tickless mechanism, which ensures lower power consumption and on-demand response to tick interrupts. This minimizes useless tick interrupt response time and further improves the real-time performance of the system. -The OpenHarmony process scheduling policy is **SCHED\_RR**, and the thread scheduling policy can be **SCHED\_RR** or **SCHED\_FIFO**. +OpenHarmony supports **SCHED_RR** (time slice round robin) for process scheduling and **SCHED_RR** and **SCHED_FIFO** (first in, first out) for thread scheduling . -Threads are the minimum scheduling units in the OpenHarmony. +Threads are the minimum scheduling units in OpenHarmony. -## Working Principles -The OpenHarmony uses process priority queue and thread priority queue for scheduling. The process priority ranges from 0 to 31, and there are 32 process priority bucket queues. Each bucket queue corresponds to a thread priority bucket queue. The thread priority ranges from 0 to 31, and a thread priority bucket queue also has 32 priority queues. +## Working Principles + +OpenHarmony uses process priority queue and thread priority queue for scheduling. The process priority ranges from 0 to 31, and there are 32 process priority bucket queues. Each bucket queue corresponds to a thread priority bucket queue. The thread priority ranges from 0 to 31, and a thread priority bucket queue also has 32 priority queues. + +**Figure 1** Scheduling priority bucket queue -**Figure 1** Scheduling priority bucket queue ![](figures/scheduling-priority-bucket-queue.png "scheduling-priority-bucket-queue") The OpenHarmony system starts scheduling after the kernel initialization is complete. The processes or threads created during running are added to the scheduling queues. The system selects the optimal thread for scheduling based on the priorities of the processes and threads and the time slice consumption of the threads. Once a thread is scheduled, it is deleted from the scheduling queue. If a thread is blocked during running, the thread is added to the corresponding blocking queue and triggers scheduling of another thread. If no thread in the scheduling queue can be scheduled, the system selects the thread of the KIdle process for scheduling. -**Figure 2** Scheduling process +**Figure 2** Scheduling process + ![](figures/scheduling-process.png "scheduling-process") -## Development Guidelines - -### Available APIs - - - - - - - - - - - - -

Function

-

API

-

Description

-

System scheduling

-

LOS_Schedule

-

Triggers system scheduling.

-
- -### How to Develop - ->![](../public_sys-resources/icon-note.gif) **NOTE:** ->Scheduling cannot be triggered during the system initialization process. +## Development Guidelines + + +### Available APIs + +| API| Description| +| -------- | -------- | +| LOS_Schedule | Triggers system scheduling.| +| LOS_GetTaskScheduler | Obtains the scheduling policy of a task.| +| LOS_SetTaskScheduler | Sets the scheduling policy for a task.| +| LOS_GetProcessScheduler | Obtains the scheduling policy of a process.| +| LOS_SetProcessScheduler | Sets scheduling parameters, including the priority and scheduling policy, for a process.| + + +### How to Develop + +> **NOTE** +> +> Scheduling cannot be triggered during the system initialization process. diff --git a/en/device-dev/kernel/kernel-small-basic-process-thread.md b/en/device-dev/kernel/kernel-small-basic-process-thread.md index 5631cf62fb43f48d26b5016ac96534e24bdd7f37..96a97e237f8799864e5b9bd4bf01337ab334df56 100644 --- a/en/device-dev/kernel/kernel-small-basic-process-thread.md +++ b/en/device-dev/kernel/kernel-small-basic-process-thread.md @@ -1,315 +1,244 @@ # Task -## Basic Concepts + +## Basic Concepts Tasks are the minimum running units that compete for system resources. They can use or wait to use CPUs and use system resources such as memory. They run independently from one another. In the OpenHarmony kernel, a task represents a thread. -Tasks in the processes of the same priority in the OpenHarmony kernel are scheduled and run in a unified manner. +Tasks for the processes of the same priority in the OpenHarmony kernel are scheduled and run in a unified manner. -The tasks in the kernel use the preemptive scheduling mechanism, either round-robin \(RR\) scheduling or First In First Out \(FIFO\) scheduling. +The tasks in the kernel use the preemptive scheduling mechanism, either round-robin (RR) scheduling or First In First Out (FIFO) scheduling. -Tasks are assigned 32 priorities, ranging from **0** \(highest\) to **31** \(lowest\). +Tasks are assigned 32 priorities, ranging from **0** (highest) to **31** (lowest). In the same process, a higher-priority task can preempt resources of a lower-priority task. The lower-priority task can be scheduled only after the higher-priority task is blocked or terminated. -**Task Status Description** +**Task States** + +- Init: The task is being created. + +- Ready: The task is in the Ready queue and waits for scheduling by the CPU. + +- Running: The task is running. + +- Blocked: The task is blocked and suspended. The Blocked states include pending (blocked due to lock, event, or semaphore issues), suspended (active pending), delay (blocked due to delays), and pendtime (blocked by waiting timeout of locks, events, or semaphores). + +- Exit: The task is complete and waits for the parent task to reclaim its control block resources. -- Init: The task is being created. -- Ready: The task is in the Ready queue and waits for scheduling by the CPU. -- Running: The task is running. -- Blocked: The task is blocked and suspended. The Blocked states include pending \(blocked due to lock, event, or semaphore issues\), suspended \(active pending\), delay \(blocked due to delays\), and pendtime \(blocked by waiting timeout of locks, events, or semaphores\). -- Exit: The task is complete and waits for the parent task to reclaim its control block resources. + **Figure 1** Task state transition -**Figure 1** Task state transition -![](figures/task-state-transition.png "task-state-transition") + ![](figures/task-state-transition.png "task-state-transition") **Task State Transition** -- Init→Ready: +- Init→Ready: + When a task is created, the task obtains the control block and enters the Init state (initialization). After the initialization is complete, the task is inserted into the scheduling queue and enters the Ready state. - When a task is created, the task obtains the control block and enters the Init state \(initialization\). After the initialization is complete, the task is inserted into the scheduling queue and enters the Ready state. +- Ready→Running: + When a task switching is triggered, the task with the highest priority in the Ready queue is executed and enters the Running state. Then, this task is deleted from the Ready queue. -- Ready→Running: +- Running→Blocked: + When a running task is blocked (for example, is pended, delayed, or reading semaphores), its state changes from Running to Blocked. Then, a task switching is triggered to run the task with the highest priority in the Ready queue. - When a task switching is triggered, the task with the highest priority in the Ready queue is executed and enters the Running state. Then, this task is deleted from the Ready queue. +- Blocked→Ready: + After the blocked task is restored (the task is restored, the delay times out, the semaphore reading times out, or the semaphore is read), the task is added to the Ready queue and will change from the Blocked state to the Ready state. -- Running→Blocked: +- Ready→Blocked: + When a task in the Ready state is blocked (suspended), the task changes to the Blocked state and is deleted from the Ready queue. The blocked task will not be scheduled until it is recovered. - When a running task is blocked \(for example, is pended, delayed, or reading semaphores\), its state changes from Running to Blocked. Then, a task switching is triggered to run the task with the highest priority in the Ready queue. +- Running→Ready: + When a task with a higher priority is created or recovered, tasks will be scheduled. The task with the highest priority in the Ready queue changes to the Running state. The originally running task changes to the Ready state and is added to the Ready queue. -- Blocked→Ready: +- Running→Exit: + When a running task is complete, it changes to the Exit state. If the task has a detach attribute (set by **LOS_TASK_STATUS_DETACHED** in **los_task.h**), it will be destroyed directly. - After the blocked task is restored \(the task is restored, the delay times out, the semaphore reading times out, or the semaphore is read\), the task is added to the Ready queue and will change from the Blocked state to the Ready state. -- Ready→Blocked: +## Working Principles - When a task in the Ready state is blocked \(suspended\), the task changes to the Blocked state and is deleted from the Ready queue. The blocked task will not be scheduled until it is recovered. +The OpenHarmony task management module provides the following functions: creating, delaying, suspending, and restoring tasks, locking and unlocking task scheduling, and querying task control block information by ID. -- Running→Ready: +When a user creates a task, the system initializes the task stack and presets the context. The system places the task entry function in the corresponding position so that the function can be executed when the task enters the running state for the first time. - When a task with a higher priority is created or recovered, tasks will be scheduled. The task with the highest priority in the Ready queue changes to the Running state. The originally running task changes to the Ready state and is added to the Ready queue. -- Running→Exit: +## Development Guidelines - When a running task is complete, it changes to the Exit state. If the task is set with a detach attribute \(**LOS\_TASK\_STATUS\_DETACHED**\), it will be directly destroyed after being terminated. +### Available APIs -## Working Principles +**Table 1** APIs for creating and deleting a task -The OpenHarmony task management module provides the following functions: creating, delaying, suspending, and restoring tasks, locking and unlocking task scheduling, and querying task control block information by ID. +| API | Description | +| ------------------ | ------------------------------------------------------------ | +| LOS_TaskCreate | Creates a task. If the priority of the created task is higher than that of the task in running and task scheduling is not locked, the task will be scheduled to run. | +| LOS_TaskCreateOnly | Creates a task and blocks it. The task will not be added to the Ready queue unless it is resumed. | +| LOS_TaskDelete | Deletes a task and reclaims the resources consumed by the task control block and task stack. | + +**Table 2** APIs for controlling task status + +| API | Description | +| --------------- | ------------------------------------------------------------ | +| LOS_TaskResume | Resumes a suspended task. | +| LOS_TaskSuspend | Suspends a task. The suspended task will be removed from the Ready queue. | +| LOS_TaskJoin | Blocks the current task until the specified task is complete, and reclaims its resources. | +| LOS_TaskDetach | Changes the task attribute from **joinable** to **detach**. When a task of the **detach** attribute is complete, the task control block resources will be automatically reclaimed.| +| LOS_TaskDelay | Delays the current task for the specified time (number of ticks). | +| LOS_TaskYield | Moves the current task from the queue of the tasks with the same priority to the end of the Ready queue.| + +**Table 3** APIs for task scheduling -When a task is created, the system initializes the task stack and presets the context. The system also places the task entry function in the corresponding position so that the function can be executed when the task enters the running state for the first time. - -## Development Guidelines - -### Available APIs - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Function

-

API

-

Description

-

Task creation and deletion

-

LOS_TaskCreateOnly

-

Creates a task and places the task in the Init state without scheduling.

-

LOS_TaskCreate

-

Creates a task and places it in the Init state for scheduling.

-

LOS_TaskDelete

-

Deletes the specified task.

-

Task status control

-

LOS_TaskResume

-

Resumes a suspended task.

-

LOS_TaskSuspend

-

Suspends the specified task.

-

LOS_TaskJoin

-

Suspends this task till the specified task is complete and the task control block resources are reclaimed.

-

LOS_TaskDetach

-

Changes the task attribute from joinable to detach. After the task of the detach attribute is complete, the task control block resources will be automatically reclaimed.

-

LOS_TaskDelay

-

Delays a task.

-

LOS_TaskYield

-

Adjusts the scheduling sequence of tasks that call the task priority.

-

Task scheduling control

-

LOS_TaskLock

-

Locks task scheduling.

-

LOS_TaskUnlock

-

Unlocks task scheduling.

-

Task priority control

-

LOS_CurTaskPriSet

-

Sets the priority for the current task.

-

LOS_TaskPriSet

-

Sets the priority for a specified task.

-

LOS_TaskPriGet

-

Obtains the priority of a specified task.

-

Obtaining task information

-

LOS_CurTaskIDGet

-

Obtains the ID of the current task.

-

LOS_TaskInfoGet

-

Obtains information about the specified task.

-

Binding tasks to CPU cores

-

LOS_TaskCpuAffiSet

-

Binds a specified task to the specified CPU. It is used only in multi-core scenarios.

-

LOS_TaskCpuAffiGet

-

Obtains the core binding information of the specified task. It is used only in multi-core scenarios.

-

Task scheduling parameter control

-

LOS_GetTaskScheduler

-

Obtains the scheduling policy of the specified task.

-

LOS_SetTaskScheduler

-

Sets the scheduling parameters, including the priority and scheduling policy, for the specified task.

-

Maximum number of tasks supported

-

LOS_GetSystemTaskMaximum

-

Obtains the maximum number of tasks supported by the system.

-
- -### How to Develop +| API | Description | +| -------------------- | ------------------------------------------------------------ | +| LOS_TaskLock | Locks task scheduling to prevent task switching. | +| LOS_TaskUnlock | Unlocks task scheduling. After that, the task lock count decrements by 1. If a task is locked multiple times, the task can be scheduled only when the number of locks is reduced to 0. | +| LOS_GetTaskScheduler | Obtains the scheduling policy of a task. | +| LOS_SetTaskScheduler | Sets the scheduling parameters, including the priority and scheduling policy, for a task. | +| LOS_Schedule | Triggers active task scheduling. | + +**Table 4** APIs for obtaining task information + +| API | Description | +| ------------------------ | ------------------------ | +| LOS_CurTaskIDGet | Obtains the ID of the current task. | +| LOS_TaskInfoGet | Obtains task information. | +| LOS_GetSystemTaskMaximum | Obtains the maximum number of tasks supported by the system.| + +**Table 5** APIs for managing task priorities + +| API | Description | +| ----------------- | ------------------------------ | +| LOS_CurTaskPriSet | Sets a priority for the current task.| +| LOS_TaskPriSet | Sets a priority for a task. | +| LOS_TaskPriGet | Obtains the priority of a task. | + +**Table 6** APIs for setting CPU pinning + +| API | Description | +| ------------------ | ------------------------------------------- | +| LOS_TaskCpuAffiSet | Binds a task to the specified CPU core. This API is used only in multi-core CPUs.| +| LOS_TaskCpuAffiGet | Obtains information about the core binding of a task. This API is used only in multi-core CPUs. | + + + +### How to Develop The typical task development process is as follows: -1. Call **LOS\_TaskCreate** to create a task. - - Specify the execution entry function for the task. - - Specifies the task name. - - Specify the task stack size. - - Specify the priority of the task. - - Specify the task attribute, which can be **LOS\_TASK\_ATTR\_JOINABLE** or **LOS\_TASK\_STATUS\_DETACHED**. - - Specify the task-core binding attribute for multi-core environment. +1. Call **LOS_TaskCreate** to create a task. + - Specify the execution entry function for the task. + - Specifies the task name. + - Specify the task stack size. + - Specify the priority of the task. + - Specify the task attribute, which can be **LOS_TASK_ATTR_JOINABLE** or **LOS_TASK_STATUS_DETACHED**. + - Specify the task-core binding attribute for multi-core environment. -2. Run the service code to implement task scheduling. -3. Reclaim resources when the task is complete. If the task attribute is **LOS\_TASK\_STATUS\_DETACHED**, the task resources are automatically reclaimed. If the task attribute is **LOS\_TASK\_ATTR\_JOINABLE**, call **LOS\_TaskJoin** to reclaim task resources. The default task attribute is **LOS\_TASK\_STATUS\_DETACHED**. +2. Run the service code to implement task scheduling. ->![](../public_sys-resources/icon-note.gif) **NOTE:** ->- The kernel mode has the highest permission and can operate tasks in any process. ->- If a task is created after a user-mode process enters the kernel mode by a system call, the task belongs to a KProcess not a user-mode process. +3. Reclaim resources when the task is complete. If the task attribute is **LOS_TASK_STATUS_DETACHED**, the task resources are automatically reclaimed. If the task attribute is **LOS_TASK_ATTR_JOINABLE**, call **LOS_TaskJoin** to reclaim task resources. The default task attribute is **LOS_TASK_STATUS_DETACHED**. -### Development Example +> **NOTE** +> +> - The kernel mode has the highest permission and can operate tasks in any process. +> +> - If a task is created after a user-mode process enters the kernel mode by a system call, the task belongs to a KProcess not a user-mode process. -The sample code is as follows: -``` +### Development Example + +The sample code is as follows. You can add the test function of the sample code to **TestTaskEntry** in **kernel/liteos_a/testsuites/kernel/src /osTest.c** for testing + + +```c UINT32 g_taskLoID; -UINT32 g_taskHiID; -#define TSK_PRIOR_HI 4 -#define TSK_PRIOR_LO 5 -UINT32 ExampleTaskHi(VOID) -{ +UINT32 g_taskHiID; +#define TSK_PRIOR_HI 4 +#define TSK_PRIOR_LO 5 +UINT32 ExampleTaskHi(VOID) +{ UINT32 ret; - PRINTK("Enter TaskHi Handler.\n"); - /* Delay the task for 2 ticks. The task is then suspended, and the remaining task with the highest priority (g_taskLoID) will be executed.*/ + PRINTK("Enter TaskHi Handler.\n"); + /* Delay the task for 2 ticks. The task is suspended, and the remaining task with the highest priority (g_taskLoID) will be executed. */ ret = LOS_TaskDelay(2); - if (ret != LOS_OK) { + if (ret != LOS_OK) { PRINTK("Delay Task Failed.\n"); - return LOS_NOK; - } - /* After 2 ticks elapse, the task is resumed and executed.*/ - PRINTK("TaskHi LOS_TaskDelay Done.\n"); - /* Suspend the task.*/ - ret = LOS_TaskSuspend(g_taskHiID); + return LOS_NOK; + } + /* After 2 ticks elapse, the task is resumed and executed. */ + PRINTK("TaskHi LOS_TaskDelay Done.\n"); + /* Suspend the task. */ + ret = LOS_TaskSuspend(g_taskHiID); if (ret != LOS_OK) { - PRINTK("Suspend TaskHi Failed.\n"); + PRINTK("Suspend TaskHi Failed.\n"); return LOS_NOK; - } - PRINTK("TaskHi LOS_TaskResume Success.\n"); + } + PRINTK("TaskHi LOS_TaskResume Success.\n"); return LOS_OK; } -/* Entry function of the lower-priority task */ +/* Entry function of the low-priority task. */ UINT32 ExampleTaskLo(VOID) -{ - UINT32 ret; - PRINTK("Enter TaskLo Handler.\n"); - /* Delay the task for 2 ticks. The task is then suspended, and the remaining task with the highest priority (background task) will be executed.*/ - ret = LOS_TaskDelay(2); - if (ret != LOS_OK) { - PRINTK("Delay TaskLo Failed.\n"); - return LOS_NOK; - } +{ + UINT32 ret; + PRINTK("Enter TaskLo Handler.\n"); + /* Delay the task for 2 ticks. The task is suspended, and the remaining task with the highest priority (background task) will be executed. */ + ret = LOS_TaskDelay(2); + if (ret != LOS_OK) { + PRINTK("Delay TaskLo Failed.\n"); + return LOS_NOK; + } PRINTK("TaskHi LOS_TaskSuspend Success.\n"); - /* Resume the suspended task g_taskHiID.*/ + /* Resume the suspended task g_taskHiID. */ ret = LOS_TaskResume(g_taskHiID); if (ret != LOS_OK) { PRINTK("Resume TaskHi Failed.\n"); return LOS_NOK; - } - PRINTK("TaskHi LOS_TaskDelete Success.\n"); + } + PRINTK("TaskHi LOS_TaskDelete Success.\n"); return LOS_OK; -} -/* Task test entry function, which is used to create two tasks with different priorities.*/ -UINT32 ExampleTaskCaseEntry(VOID) -{ - UINT32 ret; +} +/* Create two tasks with different priorities in the task test entry function. */ +UINT32 ExampleTaskCaseEntry(VOID) +{ + UINT32 ret; TSK_INIT_PARAM_S initParam = {0}; - /* Lock task scheduling.*/ + /* Lock task scheduling. */ LOS_TaskLock(); PRINTK("LOS_TaskLock() Success!\n"); + /* Parameters used to initialize the high-priority task, the resources of which can be reclaimed by LOS_TaskJoin. */ initParam.pfnTaskEntry = (TSK_ENTRY_FUNC)ExampleTaskHi; - initParam.usTaskPrio = TSK_PRIOR_HI; + initParam.usTaskPrio = TSK_PRIOR_HI; initParam.pcName = "HIGH_NAME"; initParam.uwStackSize = LOS_TASK_MIN_STACK_SIZE; initParam.uwResved = LOS_TASK_ATTR_JOINABLE; - /* Create a task with a higher priority. The task will not be executed immediately after being created, because task scheduling is locked.*/ + /* Create a task with higher priority. The task will not be executed immediately after being created, because task scheduling is locked. */ ret = LOS_TaskCreate(&g_taskHiID, &initParam); if (ret != LOS_OK) { LOS_TaskUnlock(); PRINTK("ExampleTaskHi create Failed! ret=%d\n", ret); return LOS_NOK; - } + } PRINTK("ExampleTaskHi create Success!\n"); + /* Parameters used to initialize the low-priority task, which will be automatically destroyed after the task is complete. */ initParam.pfnTaskEntry = (TSK_ENTRY_FUNC)ExampleTaskLo; initParam.usTaskPrio = TSK_PRIOR_LO; initParam.pcName = "LOW_NAME"; initParam.uwStackSize = LOS_TASK_MIN_STACK_SIZE; initParam.uwResved = LOS_TASK_STATUS_DETACHED; - /* Create a task with a lower priority. The task will not be executed immediately after being created, because task scheduling is locked.*/ + /* Create a low-priority task. The task will not be executed immediately after being created, because task scheduling is locked. */ ret = LOS_TaskCreate(&g_taskLoID, &initParam); - if (ret!= LOS_OK) { - LOS_TaskUnlock(); + if (ret!= LOS_OK) { + LOS_TaskUnlock(); PRINTK("ExampleTaskLo create Failed!\n"); - return LOS_NOK; - } - PRINTK("ExampleTaskLo create Success!\n"); + return LOS_NOK; + } + PRINTK("ExampleTaskLo create Success!\n"); - /* Unlock task scheduling. The task with the highest priority in the Ready queue will be executed.*/ + /* Unlock task scheduling. The task with the highest priority in the Ready queue will be executed. */ LOS_TaskUnlock(); ret = LOS_TaskJoin(g_taskHiID, NULL); if (ret != LOS_OK) { @@ -319,11 +248,12 @@ UINT32 ExampleTaskCaseEntry(VOID) } while(1){}; return LOS_OK; -} +} ``` The development is successful if the return result is as follows: + ``` LOS_TaskLock() Success! ExampleTaskHi create Success! @@ -336,4 +266,3 @@ TaskHi LOS_TaskResume Success. TaskHi LOS_TaskDelete Success. Join ExampleTaskHi Success! ``` - diff --git a/en/device-dev/kernel/kernel-small-basic-trans-event.md b/en/device-dev/kernel/kernel-small-basic-trans-event.md index 2aba10352fbf9691cb4ab825f00ec28564d14c44..7d478d71a13aebbfa152bebd7832496887ebdfb7 100644 --- a/en/device-dev/kernel/kernel-small-basic-trans-event.md +++ b/en/device-dev/kernel/kernel-small-basic-trans-event.md @@ -1,146 +1,145 @@ # Event -## Basic Concepts -An event is a mechanism for communication between tasks. It can be used to synchronize tasks. +## Basic Concepts + +An event is a communication mechanism used to synchronize tasks. In multi-task environment, synchronization is required between tasks. Events can be used for synchronization in the following cases: -- One-to-many synchronization: A task waits for the triggering of multiple events. A task is woken up by one or multiple events. -- Many-to-many synchronization: Multiple tasks wait for the triggering of multiple events. +- One-to-many synchronization: A task waits for the triggering of multiple events. A task can be woken up by one or multiple events. + +- Many-to-many synchronization: Multiple tasks wait for the triggering of multiple events. The event mechanism provided by the OpenHarmony LiteOS-A event module has the following features: -- A task triggers or waits for an event by creating an event control block. -- Events are independent of each other. The internal implementation is a 32-bit unsigned integer, and each bit indicates an event type. The 25th bit is unavailable. Therefore, a maximum of 31 event types are supported. -- Events are used only for synchronization between tasks, but not for data transmission. -- Writing the same event type to the event control block for multiple times is equivalent to writing the event type only once before the event control block is cleared. -- Multiple tasks can read and write the same event. -- The event read/write timeout mechanism is supported. +- A task triggers or waits for an event by creating an event control block. + +- Events are independent of each other. The internal implementation is a 32-bit unsigned integer, and each bit indicates an event type. The value **0** indicates that the event type does not occur, and the value **1** indicates that the event type has occurred. There are 31 event types in total. The 25th bit (`0x02U << 24`) is reserved. + +- Events are used for task synchronization, but not for data transmission. + +- Writing the same event type to an event control block multiple times is equivalent to writing the event type only once before the event control block is cleared. + +- Multiple tasks can read and write the same event. -## Working Principles +- The event read/write timeout mechanism is supported. + + +## Working Principles + + +### Event Control Block -### Event Control Block ``` /** -* Event control block data structure + * Event control block data structure */ typedef struct tagEvent { UINT32 uwEventID; /* Event set, which is a collection of events processed (written and cleared). */ - LOS_DL_LIST stEventList; /* List of tasks waiting for specific events */ + LOS_DL_LIST stEventList; /* List of tasks waiting for specific events. */ } EVENT_CB_S, *PEVENT_CB_S; ``` -### Working Principles -**Initializing an event**: An event control block is created to maintain a collection of processed events and a linked list of tasks waiting for specific events. +### Working Principles + +**Initializing an Event** + +An event control block is created to maintain a set of processed events and a linked list of tasks waiting for specific events. -**Writing an event**: When a specified event is written to the event control block, the event control block updates the event set, traverses the task linked list, and determines whether to wake up related task based on the task conditions. +**Writing an Event** -**Reading an event**: If the read event already exists, it is returned synchronously. In other cases, the return time is determined based on the timeout period and event triggering status. If the wait event condition is met before the timeout period expires, the blocked task will be directly woken up. Otherwise, the blocked task will be woken up only after the timeout period has expired. +When an event is written to the event control block, the event control block updates the event set, traverses the task linked list, and determines whether to wake up related task based on the specified conditions. -The input parameters **eventMask** and **mode** determine whether the condition for reading an event is met. **eventMask** indicates the mask of the event. **mode** indicates the handling mode, which can be any of the following: +**Reading an Event** -- **LOS\_WAITMODE\_AND**: Event reading is successful only when all the events corresponding to **eventMask** occur. Otherwise, the task will be blocked, or an error code will be returned. -- **LOS\_WAITMODE\_OR**: Event reading is successful when any of the events corresponding to **eventMask** occurs. Otherwise, the task will be blocked, or an error code will be returned. -- **LOS\_WAITMODE\_CLR**: This mode must be used with **LOS\_WAITMODE\_AND** or **LOS\_WAITMODE\_OR** \(LOS\_WAITMODE\_AND | LOS\_WAITMODE\_CLR or LOS\_WAITMODE\_OR | LOS\_WAITMODE\_CLR\). In this mode, if **LOS\_WAITMODE\_AND** or **LOS\_WAITMODE\_OR** is successful, the corresponding event type bit in the event control block will be automatically cleared. +If the event to read already exists, it is returned synchronously. In other cases, the event is returned based on the timeout period and event triggering conditions. If the wait condition is met before the timeout period expires, the blocked task will be directly woken up. Otherwise, the blocked task will be woken up only after the timeout period has expired. -**Clearing events**: Clear the event set of the event control block based on the specified mask. If the mask is **0**, the event set will be cleared. If the mask is **0xffff**, no event will be cleared, and the event set remains unchanged. +The parameters **eventMask** and **mode** determine whether the condition for reading an event is met. **eventMask** specifies the event mask. **mode** specifies the handling mode, which can be any of the following: -**Destroying an event**: Destroy the specified event control block. +- **LOS_WAITMODE_AND**: Read the event only when all the events corresponding to **eventMask** occur. Otherwise, the task will be blocked, or an error code will be returned. -**Figure 1** Event working mechanism for small systems -![](figures/event-working-mechanism-for-small-systems.png "event-working-mechanism-for-small-systems") +- **LOS_WAITMODE_OR**: Read the event only when any of the events corresponding to **eventMask** occur. Otherwise, the task will be blocked, or an error code will be returned. -## Development Guidelines +- **LOS_WAITMODE_CLR**: This mode must be used with one or all of the event modes (LOS_WAITMODE_AND | LOS_WAITMODE_CLR or LOS_WAITMODE_OR | LOS_WAITMODE_CLR). In this mode, if all event modes or any event mode is successful, the corresponding event type bit in the event control block will be automatically cleared. -### Available APIs +**Clearing Events** + +The events in the event set of the event control block can be cleared based on the specified mask. The mask **0** means to clear the event set; the mask **0xffff** means the opposite. + +**Destroying Events** + +The event control block can be destroyed to release resources. + +**Figure 1** Event working mechanism for small systems + + ![](figures/event-working-mechanism-for-small-systems.png "event-working-mechanism-for-small-systems") + + +## Development Guidelines + + +### Available APIs The following table describes APIs available for the OpenHarmony LiteOS-A event module. -**Table 1** Event module APIs - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Function

-

API

-

Description

-

Initializing events

-

LOS_EventInit

-

Initializes an event control block.

-

Reading/Writing events

-

LOS_EventRead

-

Reads a specified type of event, with the timeout period of a relative time period in ticks.

-

LOS_EventWrite

-

Writes a specified type of event.

-

Clearing events

-

LOS_EventClear

-

Clears a specified type of event.

-

Checking the event mask

-

LOS_EventPoll

-

Returns whether the event input by the user meets the expectation based on the event ID, event mask, and read mode passed by the user.

-

Destroying events

-

LOS_EventDestroy

-

Destroys a specified event control block.

-
- -### How to Develop +**Table 1** APIs of the event module + +| Category| API Description | +| -------- | -------- | +| Initializing an event| **LOS_EventInit**: initializes an event control block.| +| Reading/Writing an event| - **LOS_EventRead**: reads an event, with a relative timeout period in ticks.
- **LOS_EventWrite**: writes an event. | +| Clearing events| **LOS_EventClear**: clears a specified type of events.| +| Checking the event mask| **LOS_EventPoll**: checks whether the specified event occurs.| +| Destroying events | **LOS_EventDestroy**: destroys an event control block.| + + +### How to Develop The typical event development process is as follows: -1. Initialize an event control block. -2. Block a read event control block. -3. Write related events. -4. Wake up a blocked task, read the event, and check whether the event meets conditions. -5. Handle the event control block. -6. Destroy an event control block. +1. Initialize an event control block. + +2. Block a read event. + +3. Write related events. + +4. Wake up a blocked task, read the event, and check whether the event meets conditions. + +5. Handle the event control block. + +6. Destroy an event control block. + +> **NOTE** +> +> - For event read and write operations, the 25th bit (`0x02U << 24`) of the event is reserved and cannot be set. +> +> - Repeated writes of the same event are treated as one write. + + +## Development Example + + +### Example Description ->![](../public_sys-resources/icon-note.gif) **NOTE:** ->- When an event is read or written, the 25th bit of the event is reserved and cannot be set. ->- Repeated writes of the same event are treated as one write. +In this example, run the **Example_TaskEntry** task to create the **Example_Event** task. Run the **Example_Event** task to read an event to trigger task switching. Run the **Example_TaskEntry** task to write an event. You can understand the task switching during event operations based on the sequence in which logs are recorded. -## Development Example +1. Create the **Example_Event** task in the **Example_TaskEntry** task with a higher priority than the **Example_TaskEntry** task. -### Example Description +2. Run the **Example_Event** task to read event **0x00000001**. Task switching is triggered to execute the **Example_TaskEntry** task. -In this example, run the **Example\_TaskEntry** task to create the **Example\_Event** task, run the **Example\_Event** task to read an event to trigger task switching, and run the **Example\_TaskEntry** task to write an event. You can understand the task switching during event operations based on the sequence in which logs are recorded. +3. Run the **Example_TaskEntry** task to write event **0x00000001**. Task switching is triggered to execute the **Example_Event** task. -1. Create the **Example\_Event** task in the **Example\_TaskEntry** task with a higher priority than the **Example\_TaskEntry** task. -2. Run the **Example\_Event** task to read event **0x00000001**. Task switching is triggered to execute the **Example\_TaskEntry** task. -3. Run the **Example\_TaskEntry** task to write event **0x00000001**. Task switching is triggered to execute the **Example\_Event** task. -4. The **Example\_Event** task is executed. -5. The **Example\_TaskEntry** task is executed. +4. The **Example_Event** task is executed. -### Sample Code +5. The **Example_TaskEntry** task is executed. + + +### Sample Code + +The sample code can be compiled and verified in **./kernel/liteos_a/testsuites/kernel/src/osTest.c**. The **Example_EventEntry** function is called in **TestTaskEntry**. The sample code is as follows: @@ -149,28 +148,28 @@ The sample code is as follows: #include "los_task.h" #include "securec.h" -/* Task ID*/ +/* Task ID */ UINT32 g_testTaskId; -/* Event control structure*/ +/* Event control structure */ EVENT_CB_S g_exampleEvent; -/* Type of the wait event*/ -#define EVENT_WAIT 0x00000001 - -/* Example task entry function*/ +/* Type of the wait event */ +#define EVENT_WAIT 0x00000001 +#define EVENT_TIMEOUT 500 +/* Example task entry function */ VOID Example_Event(VOID) { UINT32 event; - /* Set a timeout period for event reading to 100 ticks. If the specified event is not read within 100 ticks, the read operation times out and the task is woken up.*/ - printf("Example_Event wait event 0x%x \n", EVENT_WAIT); + /* Set a timeout period for event reading to 100 ticks. If the specified event is not read within 100 ticks, the read operation times out and the task is woken up. */ + dprintf("Example_Event wait event 0x%x \n", EVENT_WAIT); - event = LOS_EventRead(&g_exampleEvent, EVENT_WAIT, LOS_WAITMODE_AND, 100); + event = LOS_EventRead(&g_exampleEvent, EVENT_WAIT, LOS_WAITMODE_AND, EVENT_TIMEOUT); if (event == EVENT_WAIT) { - printf("Example_Event,read event :0x%x\n", event); + dprintf("Example_Event,read event :0x%x\n", event); } else { - printf("Example_Event,read event timeout\n"); + dprintf("Example_Event,read event timeout\n"); } } @@ -179,14 +178,14 @@ UINT32 Example_EventEntry(VOID) UINT32 ret; TSK_INIT_PARAM_S task1; - /* Initialize the event.*/ + /* Initialize the event. */ ret = LOS_EventInit(&g_exampleEvent); if (ret != LOS_OK) { - printf("init event failed .\n"); + dprintf("init event failed .\n"); return -1; } - /* Create a task.*/ + /* Create a task. */ (VOID)memset_s(&task1, sizeof(TSK_INIT_PARAM_S), 0, sizeof(TSK_INIT_PARAM_S)); task1.pfnTaskEntry = (TSK_ENTRY_FUNC)Example_Event; task1.pcName = "EventTsk1"; @@ -194,39 +193,34 @@ UINT32 Example_EventEntry(VOID) task1.usTaskPrio = 5; ret = LOS_TaskCreate(&g_testTaskId, &task1); if (ret != LOS_OK) { - printf("task create failed.\n"); + dprintf("task create failed.\n"); return LOS_NOK; } /* Write the task wait event (g_testTaskId). */ - printf("Example_TaskEntry write event.\n"); + dprintf("Example_TaskEntry write event.\n"); ret = LOS_EventWrite(&g_exampleEvent, EVENT_WAIT); if (ret != LOS_OK) { - printf("event write failed.\n"); + dprintf("event write failed.\n"); return LOS_NOK; } - /* Clear the flag.*/ - printf("EventMask:%d\n", g_exampleEvent.uwEventID); + /* Clear the flag. */ + dprintf("EventMask:%d\n", g_exampleEvent.uwEventID); LOS_EventClear(&g_exampleEvent, ~g_exampleEvent.uwEventID); - printf("EventMask:%d\n", g_exampleEvent.uwEventID); - - /* Delete the task.*/ - ret = LOS_TaskDelete(g_testTaskId); - if (ret != LOS_OK) { - printf("task delete failed.\n"); - return LOS_NOK; - } + dprintf("EventMask:%d\n", g_exampleEvent.uwEventID); return LOS_OK; } ``` -### Verification + +### Verification The development is successful if the return result is as follows: + ``` Example_Event wait event 0x1 Example_TaskEntry write event. @@ -234,4 +228,3 @@ Example_Event,read event :0x1 EventMask:1 EventMask:0 ``` - diff --git a/en/device-dev/kernel/kernel-small-basic-trans-mutex.md b/en/device-dev/kernel/kernel-small-basic-trans-mutex.md index a911f97e1f894004b5cf48fea296982fe1d4d9b5..4d16065f285430f1a4b4007d65d6e704f4695f3a 100644 --- a/en/device-dev/kernel/kernel-small-basic-trans-mutex.md +++ b/en/device-dev/kernel/kernel-small-basic-trans-mutex.md @@ -1,196 +1,118 @@ # Mutex +## Basic Concepts -## Basic Concepts - -A mutual exclusion \(mutex\) is a special binary semaphore used for exclusive access to shared resources. When a task holds the mutex, the task obtains the ownership of the mutex. When the task releases the mutex, the task will lose the ownership of the mutex. When a task holds a mutex, other tasks cannot hold the mutex. In an environment where multiple tasks compete for shared resources, the mutex ensures exclusive access to the shared resources. +A mutual exclusion (mutex) is a special binary semaphore used for exclusive access to shared resources. When a task holds the mutex, the task obtains the ownership of the mutex. When the task releases the mutex, the task will lose the ownership of the mutex. When a task holds a mutex, other tasks cannot hold the mutex. In an environment where multiple tasks compete for shared resources, the mutex ensures exclusive access to the shared resources. A mutex has three attributes: protocol attribute, priority upper limit attribute, and type attribute. The protocol attribute is used to handle a mutex requested by tasks of different priorities. The protocol attribute can be any of the following: -- LOS\_MUX\_PRIO\_NONE - - Do not inherit or protect the priority of the task requesting the mutex. +- LOS_MUX_PRIO_NONE + -- LOS\_MUX\_PRIO\_INHERIT +Do not inherit or protect the priority of the task requesting the mutex. - Inherits the priority of the task that requests the mutex. This is the default protocol attribute. When the mutex protocol attribute is set to this value: If a task with a higher priority is blocked because the mutex is already held by a task, the priority of the task holding the mutex will be backed up to the priority bitmap of the task control block, and then set to be the same as that of the task of a higher priority. When the task holding the mutex releases the mutex, its task priority is restored to its original value. +- LOS_MUX_PRIO_INHERIT + -- LOS\_MUX\_PRIO\_PROTECT - - Protects the priority of the task that requests the mutex. When the mutex protocol attribute is set to this value: If the priority of the task that requests the mutex is lower than the upper limit of the mutex priority, the task priority will be backed up to the priority bitmap of the task control block, and then set to the upper limit value of the mutex priority. When the mutex is released, the task priority is restored to its original value. +Inherits the priority of the task that requests the mutex. This is the default protocol attribute. When the mutex protocol attribute is set to this value: If a task with a higher priority is blocked because the mutex is already held by a task, the priority of the task holding the mutex will be backed up to the priority bitmap of the task control block, and then set to be the same as that of the task of a higher priority. When the task holding the mutex releases the mutex, its task priority is restored to its original value. +- LOS_MUX_PRIO_PROTECT + + Protects the priority of the task that requests the mutex. When the mutex protocol attribute is set to this value: If the priority of the task that requests the mutex is lower than the upper limit of the mutex priority, the task priority will be backed up to the priority bitmap of the task control block, and then set to the upper limit value of the mutex priority. When the mutex is released, the task priority is restored to its original value. The type attribute of a mutex specifies whether to check for deadlocks and whether to support recursive holding of the mutex. The type attribute can be any of the following: -- LOS\_MUX\_NORMAL - - Common mutex, which does not check for deadlocks. If a task repeatedly attempts to hold a mutex, the thread will be deadlocked. If the mutex type attribute is set to this value, a task cannot release a mutex held by another task or repeatedly release a mutex. Otherwise, unexpected results will be caused. +- LOS_MUX_NORMAL + -- LOS\_MUX\_RECURSIVE +Common mutex, which does not check for deadlocks. If a task repeatedly attempts to hold a mutex, the thread will be deadlocked. If the mutex type attribute is set to this value, a task cannot release a mutex held by another task or repeatedly release a mutex. Otherwise, unexpected results will be caused. - Recursive mutex, which is the default attribute. If the type attribute of a mutex is set to this value, a task can hold the mutex for multiple times. Another task can hold this mutex only when the number of lock holding times is the same as the number of lock release times. However, any attempt to hold a mutex held by another task or attempt to release a mutex that has been released will return an error code. +- LOS_MUX_RECURSIVE + -- LOS\_MUX\_ERRORCHECK +Recursive mutex, which is the default attribute. If the type attribute of a mutex is set to this value, a task can hold the mutex for multiple times. Another task can hold this mutex only when the number of lock holding times is the same as the number of lock release times. However, any attempt to hold a mutex held by another task or attempt to release a mutex that has been released will return an error code. - Allows automatic check for deadlocks. When a mutex is set to this type, an error code will be returned if a task attempts to repeatedly hold the mutex, attempts to release the mutex held by another task, or attempts to release the mutex that has been released. +- LOS_MUX_ERRORCHECK + + Mutex for error checks. When a mutex is set to this type, an error code will be returned if a task attempts to repeatedly hold the mutex, attempts to release the mutex held by another task, or attempts to release the mutex that has been released. -## Working Principles +## Working Principles -In a multi-task environment, multiple tasks may access the same shared resource. However, certain shared resources are not shared, and can only be accessed exclusively by tasks. A mutex can be used to address this issue. +In a multi-task environment, multiple tasks may access the same shared resources. However, certain shared resources are not shared, and can only be accessed exclusively by tasks. A mutex can be used to address this issue. When non-shared resources are accessed by a task, the mutex is locked. Other tasks will be blocked until the mutex is released by the task. The mutex allows only one task to access the shared resources at a time, ensuring integrity of operations on the shared resources. -**Figure 1** Mutex working mechanism for small systems + **Figure 1** Mutex working mechanism for the small system + ![](figures/mutex-working-mechanism-for-small-systems.png "mutex-working-mechanism-for-small-systems") -## Development Guidelines - -### Available APIs - -**Table 1** Mutex module APIs - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Function

-

API

-

Description

-

Initializing or destroying a mutex

-

LOS_MuxInit

-

Initializes a mutex.

-

LOS_MuxDestroy

-

Destroys the specified mutex.

-

Requesting or releasing a mutex

-

LOS_MuxLock

-

Requests the specified mutex.

-

LOS_MuxTrylock

-

Attempts to request the specified mutex in non-block mode.

-

LOS_MuxUnlock

-

Releases the specified mutex.

-

Verifying a mutex

-

LOS_MuxIsValid

-

Checks whether the mutex release is valid.

-

Initializing or destroying mutex attributes

-

LOS_MuxAttrInit

-

Initializes mutex attributes.

-

LOS_MuxAttrDestroy

-

Destroys the specified mutex attributes.

-

Setting and obtaining mutex attributes

-

LOS_MuxAttrGetType

-

Obtains the type attribute of a specified mutex.

-

LOS_MuxAttrSetType

-

Sets the type attribute of a specified mutex.

-

LOS_MuxAttrGetProtocol

-

Obtains the protocol attribute of a specified mutex.

-

LOS_MuxAttrSetProtocol

-

Sets the protocol attribute of a specified mutex.

-

LOS_MuxAttrGetPrioceiling

-

Obtains the priority upper limit attribute of a specified mutex.

-

LOS_MuxAttrSetPrioceiling

-

Sets the priority upper limit attribute of a specified mutex.

-

LOS_MuxGetPrioceiling

-

Obtains the mutex priority upper limit attribute.

-

LOS_MuxSetPrioceiling

-

Sets the mutex priority upper limit attribute.

-
- -### How to Develop + +## Development Guidelines + + +### Available APIs + + **Table 1** APIs of the mutex module + +| Category| API Description | +| -------- | -------- | +| Initializing or destroying a mutex| - **LOS_MuxInit**: initializes a mutex.
- **LOS_MuxDestroy**: destroys a mutex.| +| Requesting or releasing a mutex| - **LOS_MuxLock**: requests a mutex.
- **LOS_MuxTrylock**: requests a mutex without blocking.
- **LOS_MuxUnlock**: releases a mutex.| +| Verifying a mutex| - **LOS_MuxIsValid**: checks whether the mutex release is valid.
- **LOS_MuxAttrDestroy**: destroys the specified mutex attribute.| +| Setting and obtaining mutex attributes| - **LOS_MuxAttrGetType**: obtains the type attribute of a mutex.
- **LOS_MuxAttrSetType**: sets the type attribute for a mutex.
- **LOS_MuxAttrGetProtocol**: obtains the protocol attribute of a mutex.
- **LOS_MuxAttrSetProtocol**: sets the protocol attribute for a mutex.
- **LOS_MuxAttrGetPrioceiling**: obtains the priority upper limit attribute of a mutex.
- **LOS_MuxAttrSetPrioceiling**: sets the priority upper limit attribute for a mutex.
- **LOS_MuxGetPrioceiling**: obtains the priority upper limit of this mutex.
- **LOS_MuxSetPrioceiling**: sets the priority upper limit for this mutex. | + + +### How to Develop The typical mutex development process is as follows: -1. Call **LOS\_MuxInit** to initialize a mutex. +1. Call **LOS_MuxInit** to initialize a mutex. -2. Call **LOS\_MuxLock** to request a mutex. +2. Call **LOS_MuxLock** to request a mutex. The following modes are available: -- Non-block mode: A task acquires the mutex if the requested mutex is not held by any task or the task holding the mutex is the same as the task requesting the mutex. -- Permanent block mode: A task acquires the mutex if the requested mutex is not occupied. If the mutex is occupied, the task will be blocked and the task with the highest priority in the ready queue will be executed. The blocked task can be unlocked and executed only when the mutex is released. -- Scheduled block mode: A task acquires the mutex if the requested mutex is not occupied. If the mutex is occupied, the task will be blocked and the task with the highest priority in the ready queue will be executed. The blocked task can be executed only when the mutex is released within the specified timeout period or when the specified timeout period expires. +- Non-block mode: A task acquires the mutex if the requested mutex is not held by any task or the task holding the mutex is the same as the task requesting the mutex. + +- Permanent block mode: A task acquires the mutex if the requested mutex is not occupied. If the mutex is occupied, the task will be blocked and the task with a highest priority in the ready queue will be executed. The blocked task can be unlocked and executed only when the mutex is released. -3. Call **LOS\_MuxUnlock** to release a mutex. +- Scheduled block mode: A task acquires the mutex if the requested mutex is not occupied. If the mutex is occupied, the task will be blocked and the task with the highest priority in the ready queue will be executed. The blocked task can be executed only when the mutex is released within the specified timeout period or when the specified timeout period expires. -- If tasks are blocked by the specified mutex, the task with a higher priority will be unblocked when the mutex is released. The unblocked task changes to the Ready state and is scheduled. -- If no task is blocked by the specified mutex, the mutex is released successfully. +3. Call **LOS_MuxUnlock** to release a mutex. -4. Call **LOS\_MuxDestroy** to destroy a mutex. +- If tasks are blocked by the specified mutex, the task with a higher priority will be unblocked when the mutex is released. The unblocked task changes to the Ready state and is scheduled. ->![](../public_sys-resources/icon-note.gif) **NOTE:** ->- Two tasks cannot lock the same mutex. If a task attempts to lock a mutex held by another task, the task will be blocked until the mutex is unlocked. ->- Mutexes cannot be used in the interrupt service program. ->- When using the LiteOS-A kernel, the OpenHarmony must ensure real-time task scheduling and avoid long-time task blocking. Therefore, a mutex must be released as soon as possible after use. +- If no task is blocked by the specified mutex, the mutex is released successfully. -### Development Example +4. Call **LOS_MuxDestroy** to destroy a mutex. -Example Description +> **NOTE**
+> - Two tasks cannot lock the same mutex. If a task attempts to lock a mutex held by another task, the task will be blocked until the mutex is unclocked. +> +> - Mutexes cannot be used in the interrupt service program. +> +> - The system using the LiteOS-A kernel must ensure real-time task scheduling and avoid long-time task blocking. Therefore, a mutex must be released as soon as possible after use. + + +### Development Example + +#### Example Description This example implements the following: -1. Create a mutex in the **Example\_TaskEntry** task, and lock task scheduling. Create two tasks **Example\_MutexTask1** and **Example\_MutexTask2**. and unlock task scheduling. -2. When being scheduled, **Example\_MutexTask2** requests a mutex in permanent block mode. After acquiring the mutex, **Example\_MutexTask2** enters the sleep mode for 100 ticks. **Example\_MutexTask2** is suspended, and **Example\_MutexTask1** is woken up. -3. **Example\_MutexTask1** requests a mutex in scheduled block mode, and waits for 10 ticks. Because the mutex is still held by **Example\_MutexTask2**, **Example\_MutexTask1** is suspended. After 10 ticks, **Example\_MutexTask1** is woken up and attempts to request a mutex in permanent block mode. **Example\_MutexTask1** is suspended because the mutex is still held by **Example\_MutexTask2**. -4. After 100 ticks, **Example\_MutexTask2** is woken up and releases the mutex, and then **Example\_MutexTask1** is woken up. **Example\_MutexTask1** acquires the mutex and then releases the mutex. At last, the mutex is deleted. +1. Create the **Example_TaskEntry** task. In this task, create a mutex to lock task scheduling, and create two tasks **Example_MutexTask1** (with a lower priority) and **Example_MutexTask2** (with a higher priority) to unlock task scheduling. + +2. When being scheduled, **Example_MutexTask2** requests a mutex in permanent block mode. After acquiring the mutex, **Example_MutexTask2** enters the sleep mode for 100 ticks. **Example_MutexTask2** is suspended, and **Example_MutexTask1** is woken up. + +3. **Example_MutexTask1** requests a mutex in scheduled block mode, and waits for 10 ticks. Because the mutex is still held by **Example_MutexTask2**, **Example_MutexTask1** is suspended. After 10 ticks, **Example_MutexTask1** is woken up and attempts to request a mutex in permanent block mode. **Example_MutexTask1** is suspended because the mutex is still held by **Example_MutexTask2**. + +4. After 100 ticks, **Example_MutexTask2** is woken up and releases the mutex, and then **Example_MutexTask1** is woken up. **Example_MutexTask1** acquires the mutex and then releases the mutex. At last, the mutex is deleted. -**Sample Code** +#### Sample Code + +The sample code can be compiled and verified in **./kernel/liteos_a/testsuites/kernel/src/osTest.c**. The **Example_MutexEntry** function is called in **TestTaskEntry**. The sample code is as follows: @@ -199,7 +121,7 @@ The sample code is as follows: #include "los_mux.h" /* Mutex */ -LosMux g_testMux; +LosMux g_testMutex; /* Task ID*/ UINT32 g_testTaskId01; UINT32 g_testTaskId02; @@ -207,48 +129,49 @@ UINT32 g_testTaskId02; VOID Example_MutexTask1(VOID) { UINT32 ret; + LOS_TaskDelay(50); - printf("task1 try to get mutex, wait 10 ticks.\n"); - /* Request a mutex.*/ - ret = LOS_MuxLock(&g_testMux, 10); + dprintf("task1 try to get mutex, wait 10 ticks.\n"); + /* Request a mutex. */ + ret = LOS_MuxLock(&g_testMutex, 10); if (ret == LOS_OK) { - printf("task1 get mutex g_testMux.\n"); - /* Release the mutex.*/ - LOS_MuxUnlock(&g_testMux); + dprintf("task1 get mutex g_testMux.\n"); + /* Release the mutex. */ + LOS_MuxUnlock(&g_testMutex); return; - } - if (ret == LOS_ETIMEDOUT ) { - printf("task1 timeout and try to get mutex, wait forever.\n"); - /* Request a mutex.*/ - ret = LOS_MuxLock(&g_testMux, LOS_WAIT_FOREVER); - if (ret == LOS_OK) { - printf("task1 wait forever, get mutex g_testMux.\n"); - /*Release the mutex.*/ - LOS_MuxUnlock(&g_testMux); - /* Delete the mutex. */ - LOS_MuxDestroy(&g_testMux); - printf("task1 post and delete mutex g_testMux.\n"); - return; - } + } + if (ret == LOS_ETIMEDOUT) { + dprintf("task1 timeout and try to get mutex, wait forever.\n"); + /* Request a mutex. */ + ret = LOS_MuxLock(&g_testMutex, LOS_WAIT_FOREVER); + if (ret == LOS_OK) { + dprintf("task1 wait forever, get mutex g_testMux.\n"); + /* Release the mutex. */ + LOS_MuxUnlock(&g_testMutex); + /* Delete the mutex. */ + LOS_MuxDestroy(&g_testMutex); + dprintf("task1 post and delete mutex g_testMux.\n"); + return; + } } return; } VOID Example_MutexTask2(VOID) { - printf("task2 try to get mutex, wait forever.\n"); - /* Request a mutex.*/ - (VOID)LOS_MuxLock(&g_testMux, LOS_WAIT_FOREVER); + dprintf("task2 try to get mutex, wait forever.\n"); + /* Request a mutex. */ + (VOID)LOS_MuxLock(&g_testMutex, LOS_WAIT_FOREVER); - printf("task2 get mutex g_testMux and suspend 100 ticks.\n"); + dprintf("task2 get mutex g_testMux and suspend 100 ticks.\n"); - /* Enable the task to enter sleep mode for 100 ticks.*/ + /* Enable the task to enter sleep mode for 100 ticks. */ LOS_TaskDelay(100); - printf("task2 resumed and post the g_testMux\n"); - /* Release the mutex.*/ - LOS_MuxUnlock(&g_testMux); + dprintf("task2 resumed and post the g_testMux\n"); + /* Release the mutex. */ + LOS_MuxUnlock(&g_testMutex); return; } @@ -258,13 +181,13 @@ UINT32 Example_MutexEntry(VOID) TSK_INIT_PARAM_S task1; TSK_INIT_PARAM_S task2; - /* Initializes the mutex./ - LOS_MuxInit(&g_testMux, NULL); + /* Initialize the mutex. */ + LOS_MuxInit(&g_testMutex, NULL); - /* Lock task scheduling.*/ + /* Lock task scheduling. */ LOS_TaskLock(); - /* Create task 1.*/ + /* Create task 1. */ memset(&task1, 0, sizeof(TSK_INIT_PARAM_S)); task1.pfnTaskEntry = (TSK_ENTRY_FUNC)Example_MutexTask1; task1.pcName = "MutexTsk1"; @@ -272,11 +195,11 @@ UINT32 Example_MutexEntry(VOID) task1.usTaskPrio = 5; ret = LOS_TaskCreate(&g_testTaskId01, &task1); if (ret != LOS_OK) { - printf("task1 create failed.\n"); + dprintf("task1 create failed.\n"); return LOS_NOK; } - /* Create task 2.*/ + /* Create task 2. */ memset(&task2, 0, sizeof(TSK_INIT_PARAM_S)); task2.pfnTaskEntry = (TSK_ENTRY_FUNC)Example_MutexTask2; task2.pcName = "MutexTsk2"; @@ -284,11 +207,11 @@ UINT32 Example_MutexEntry(VOID) task2.usTaskPrio = 4; ret = LOS_TaskCreate(&g_testTaskId02, &task2); if (ret != LOS_OK) { - printf("task2 create failed.\n"); + dprintf("task2 create failed.\n"); return LOS_NOK; } - /* Unlock task scheduling.*/ + /* Unlock task scheduling. */ LOS_TaskUnlock(); return LOS_OK; @@ -299,13 +222,13 @@ UINT32 Example_MutexEntry(VOID) The development is successful if the return result is as follows: + ``` -task1 try to get mutex, wait 10 ticks. task2 try to get mutex, wait forever. task2 get mutex g_testMux and suspend 100 ticks. +task1 try to get mutex, wait 10 ticks. task1 timeout and try to get mutex, wait forever. task2 resumed and post the g_testMux task1 wait forever, get mutex g_testMux. task1 post and delete mutex g_testMux. ``` - diff --git a/en/device-dev/kernel/kernel-small-basic-trans-queue.md b/en/device-dev/kernel/kernel-small-basic-trans-queue.md index 5e2cbc062c4b9c3ba2066e37594d01d0fd871a7e..578fcac6d76ed84eb3129374bff9cf834e6a02f8 100644 --- a/en/device-dev/kernel/kernel-small-basic-trans-queue.md +++ b/en/device-dev/kernel/kernel-small-basic-trans-queue.md @@ -1,7 +1,7 @@ # Queue -## Basic Concepts +## Basic Concepts A queue, also called a message queue, is a data structure used for communication between tasks. The queue receives messages of unfixed length from tasks or interrupts, and determines whether to store the transferred messages in the queue based on different APIs. @@ -11,21 +11,30 @@ You can adjust the timeout period of the read queue and write queue to adjust th An asynchronous processing mechanism is provided to allow messages in a queue not to be processed immediately. In addition, queues can be used to buffer messages and implement asynchronous task communication. Queues have the following features: -- Messages are queued in FIFO mode and can be read and written asynchronously. -- Both the read queue and write queue support the timeout mechanism. -- Each time a message is read, the message node becomes available. -- The types of messages to be sent are determined by the parties involved in communication. Messages of different lengths \(not exceeding the message node size of the queue\) are allowed. -- A task can receive messages from and send messages to any message queue. -- Multiple tasks can receive messages from and send messages to the same queue. -- When a queue is created, the required dynamic memory space is automatically allocated in the queue API. +- Messages are queued in first-in-first-out (FIFO) mode and can be read and written asynchronously. -## Working Principles +- Both the read queue and write queue support the timeout mechanism. + +- Each time a message is read, the message node becomes available. + +- The types of messages to be sent are determined by the parties involved in communication. Messages of different lengths (not exceeding the message node size of the queue) are allowed. + +- A task can receive messages from and send messages to any message queue. + +- Multiple tasks can receive messages from and send messages to the same queue. + +- When a queue is created, the required dynamic memory space is automatically allocated in the queue API. + + +## Working Principles + + +### Queue Control Block -### Queue Control Block ``` /** - * Data structure of the queue control block + * Data structure of the queue control block */ typedef struct { UINT8 *queueHandle; /**< Pointer to a queue handle */ @@ -43,121 +52,94 @@ typedef struct { Each queue control block contains information about the queue status. -- **OS\_QUEUE\_UNUSED**: The queue is not in use. -- **OS\_QUEUE\_INUSED**: The queue is in use. +- **OS_QUEUE_UNUSED**: The queue is not in use. + +- **OS_QUEUE_INUSED**: The queue is in use. + + +### Working Principles + +- The queue ID is returned when a queue is created successfully. + +- The queue control block contains **Head** and **Tail**, which indicate the storage status of messages in a queue. **Head** indicates the start position of occupied message nodes in the queue. **Tail** indicates the end position of the occupied message nodes and the start position of idle message nodes. When a queue is created, **Head** and **Tail** point to the start position of the queue. -### Working Principles +- When data is to be written to a queue, **readWriteableCnt[1]** is used to determine whether data can be written to the queue. If **readWriteableCnt[1]** is **0**, the queue is full and data cannot be written to it. Data can be written to the head node or tail node of a queue. To write data to the tail node, locate the start idle message node based on **Tail** and write data to it. If **Tail** is pointing to the tail of the queue, the rewind mode is used. To write data to the head node, locate previous node based on **Head** and write data to it. If **Head** is pointing to the start position of the queue, the rewind mode is used. -- The queue ID is returned if a queue is created successfully. -- The queue control block contains **Head** and **Tail**, which indicate the storage status of messages in a queue. **Head** indicates the start position of occupied message nodes in the queue. **Tail** indicates the end position of the occupied message nodes and the start position of idle message nodes. When a queue is created, **Head** and **Tail** point to the start position of the queue. -- When data is to be written to a queue, **readWriteableCnt\[1\]** is used to determine whether data can be written to the queue. If **readWriteableCnt\[1\]** is **0**, the queue is full and data cannot be written to it. Data can be written to the head node or tail node of a queue. To write data to the tail node, locate the start idle message node based on **Tail** and write data to it. If **Tail** is pointing to the tail of the queue, the rewind mode is used. To write data to the head node, locate previous node based on **Head** and write data to it. If **Head** is pointing to the start position of the queue, the rewind mode is used. -- When a queue is to be read, **readWriteableCnt\[0\]** is used to determine whether the queue has messages to read. Reading an idle queue \(**readWriteableCnt\[0\]** is** 0**\) will cause task suspension. If the queue has messages to read, the system locates the first node to which data is written based on **Head** and read the message from the node. If **Head** is pointing to the tail of the queue, the rewind mode is used. -- When a queue is to be deleted, the system locates the queue based on the queue ID, sets the queue status to **OS\_QUEUE\_UNUSED**, sets the queue control block to the initial state, and releases the memory occupied by the queue. +- When a queue is to be read, **readWriteableCnt[0]** is used to determine whether the queue has messages to read. Reading an idle queue (**readWriteableCnt[0]** is** 0**) will cause task suspension. If the queue has messages to read, the system locates the first node to which data is written based on **Head** and read the message from the node. If **Head** is pointing to the tail of the queue, the rewind mode is used. -**Figure 1** Reading and writing data in a queue -![](figures/reading-and-writing-data-in-a-queue-3.png "reading-and-writing-data-in-a-queue-3") +- When a queue is to be deleted, the system locates the queue based on the queue ID, sets the queue status to **OS_QUEUE_UNUSED**, sets the queue control block to the initial state, and releases the memory occupied by the queue. + + **Figure 1** Reading and writing data in a queue + + ![](figures/reading-and-writing-data-in-a-queue-3.png "reading-and-writing-data-in-a-queue-3") The preceding figure illustrates how to write data to the tail node only. Writing data to the head node is similar. -## Development Guidelines - -### Available APIs - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Function

-

API

-

Description

-

Creating or deleting a message queue

-

LOS_QueueCreate

-

Creates a message queue. The system dynamically allocates the queue space.

-

LOS_QueueDelete

-

Deletes the specified queue based on the queue ID.

-

Reading or writing data in a queue (without the content contained in the address)

-

LOS_QueueRead

-

Reads data in the head node of the specified queue. The data in the queue node is an address.

-

LOS_QueueWrite

-

Writes the value of the input parameter bufferAddr (buffer address) to the tail node of the specified queue.

-

LOS_QueueWriteHead

-

Writes the value of the input parameter bufferAddr (buffer address) to the head node of the specified queue.

-

Reading or writing in a queue (with the content contained in the address)

-

LOS_QueueReadCopy

-

Reads data from the head node of the specified queue.

-

LOS_QueueWriteCopy

-

Writes the data saved in the input parameter bufferAddr to the tail node of the specified queue.

-

LOS_QueueWriteHeadCopy

-

Writes the data saved in the input parameter bufferAddr to the head node of the specified queue.

-

Obtaining queue information

-

LOS_QueueInfoGet

-

Obtains information about the specified queue, including the queue ID, queue length, message node size, head node, tail node, number of readable nodes, number of writable nodes, tasks waiting for read operations, and tasks waiting for write operations.

-
- -### How to Develop - -1. Call **LOS\_QueueCreate** to create a queue. The queue ID is returned when the queue is created. -2. Call **LOS\_QueueWrite** or **LOS\_QueueWriteCopy** to write messages to the queue. -3. Call **LOS\_QueueRead** or **LOS\_QueueReadCopy** to read messages from the queue. -4. Call **LOS\_QueueInfoGet** to obtain queue information. -5. Call **LOS\_QueueDelete** to delete a queue. - ->![](../public_sys-resources/icon-note.gif) **NOTE:** ->- The maximum number of queues supported by the system is the total number of queue resources of the system, not the number of queue resources available to users. For example, if the system software timer occupies one more queue resource, the number of queue resources available to users decreases by one. ->- The input parameters queue name and flags passed when a queue is created are reserved for future use. ->- The input parameter **timeOut** in the queue interface function is relative time. ->- **LOS\_QueueReadCopy**, **LOS\_QueueWriteCopy**, and **LOS\_QueueWriteHeadCopy** are a group of APIs that must be used together. **LOS\_QueueRead**, **LOS\_QueueWrite**, and **LOS\_QueueWriteHead** are a group of APIs that must be used together. ->- As **LOS\_QueueWrite**, **LOS\_QueueWriteHead**, and **LOS\_QueueRead** are used to manage data addresses, you must ensure that the memory directed by the pointer obtained by calling **LOS\_QueueRead** is not modified or released abnormally when the queue is being read. Otherwise, unpredictable results may occur. ->- If the input parameter **bufferSize** in **LOS\_QueueRead** and **LOS\_QueueReadCopy** is less than the length of the message, the message will be truncated. ->- **LOS\_QueueWrite**, **LOS\_QueueWriteHead**, and **LOS\_QueueRead** are called to manage data addresses, which means that the actual data read or written is pointer data. Therefore, before using these APIs, ensure that the message node size is the pointer length during queue creation, to avoid waste and read failures. - -## Development Example - -### Example Description - -Create a queue and two tasks. Enable task 1 to call the queue write API to send messages, and enable task 2 to receive messages by calling the queue read API. - -1. Create task 1 and task 2 by calling **LOS\_TaskCreate**. -2. Create a message queue by calling **LOS\_QueueCreate**. -3. Enable messages to be sent in task 1 by calling **SendEntry**. -4. Enable messages to be received in task 2 by calling **RecvEntry**. -5. Call **LOS\_QueueDelete** to delete a queue. - -### Sample Code + +## Development Guidelines + + +### Available APIs + +| Category| API Description | +| -------- | -------- | +| Creating or deleting a message queue| - **LOS_QueueCreate**: creates a message queue. The system dynamically allocates the queue space.
- **LOS_QueueDelete**: deletes a queue.| +| Reading or writing data (address without the content) in a queue| - **LOS_QueueRead**: reads data in the head node of the specified queue. The data in the queue node is an address.
- **LOS_QueueWrite**: writes the value of **bufferAddr** (buffer address) to the tail node of a queue.
- **LOS_QueueWrite**: writes the value of **bufferAddr** (buffer address) to the head node of a queue.| +| Reading or writing data (data and address) in a queue| - **LOS_QueueReadCopy**: reads data from the head node of a queue.
- **LOS_QueueWriteCopy**: writes the data saved in **bufferAddr** to the tail node of a queue.
- **LOS_QueueWriteHeadCopy**: writes the data saved in **bufferAddr** to the head node of a queue.| +| Obtaining queue information| **LOS_QueueInfoGet**: obtains queue information, including the queue ID, queue length, message node size, head node, tail node, number of readable/writable nodes, and tasks waiting for read/write operations.| + + +### How to Develop + +1. Call **LOS_QueueCreate** to create a queue. The queue ID is returned when the queue is created. + +2. Call **LOS_QueueWrite** or **LOS_QueueWriteCopy** to write data to the queue. + +3. Call **LOS_QueueRead** or **LOS_QueueReadCopy** to read data from the queue. + +4. Call **LOS_QueueInfoGet** to obtain queue information. + +5. Call **LOS_QueueDelete** to delete a queue. + +> **NOTE**
+> - The maximum number of queues supported by the system is the total number of queue resources of the system, not the number of queue resources available to users. For example, if the system software timer occupies one more queue resource, the number of queue resources available to users decreases by one. +> +> - The queue name and flags passed in when a queue is created are reserved for future use. +> +> - The parameter **timeOut** in the queue function is relative time. +> +> - **LOS_QueueReadCopy**, **LOS_QueueWriteCopy**, and **LOS_QueueWriteHeadCopy** are a group of APIs that must be used together. **LOS_QueueRead**, **LOS_QueueWrite**, and **LOS_QueueWriteHead** are a group of APIs that must be used together. +> +> - As **LOS_QueueWrite**, **LOS_QueueWriteHead**, and **LOS_QueueRead** are used to manage data addresses, you must ensure that the memory directed by the pointer obtained by calling **LOS_QueueRead** is not modified or released abnormally when the queue is being read. Otherwise, unpredictable results may occur. +> +> - If the length of the data to read in **LOS_QueueRead** or **LOS_QueueReadCopy** is less than the actual message length, the message will be truncated. +> +> - **LOS_QueueWrite**, **LOS_QueueWriteHead**, and **LOS_QueueRead** are called to manage data addresses, which means that the actual data read or written is pointer data. Therefore, before using these APIs, ensure that the message node size is the pointer length during queue creation, to avoid waste and read failures. + + +## Development Example + + +### Example Description + +Create a queue and two tasks. Enable task 1 to write data to the queue, and task 2 to read data from the queue. + +1. Call **LOS_TaskCreate** to create task 1 and task 2. + +2. Call **LOS_QueueCreate** to create a message queue. + +3. Task 1 sends a message in **SendEntry**. + +4. Task 2 receives message in **RecvEntry**. + +5. Call **LOS_QueueDelete** to delete the queue. + + +### Sample Code + +The sample code can be compiled and verified in **./kernel/liteos_a/testsuites/kernel/src/osTest.c**. The **ExampleQueue** function is called in **TestTaskEntry**. + +To avoid excessive printing, call **LOS_Msleep(5000)** to cause a short delay before calling **ExampleQueue**. The sample code is as follows: @@ -175,7 +157,7 @@ VOID SendEntry(VOID) ret = LOS_QueueWriteCopy(g_queue, abuf, len, 0); if(ret != LOS_OK) { - printf("send message failure, error: %x\n", ret); + dprintf("send message failure, error: %x\n", ret); } } @@ -185,30 +167,36 @@ VOID RecvEntry(VOID) CHAR readBuf[BUFFER_LEN] = {0}; UINT32 readLen = BUFFER_LEN; - // Sleep for 1s. - usleep(1000000); + LOS_Msleep(1000); ret = LOS_QueueReadCopy(g_queue, readBuf, &readLen, 0); if(ret != LOS_OK) { - printf("recv message failure, error: %x\n", ret); + dprintf("recv message failure, error: %x\n", ret); } - printf("recv message: %s\n", readBuf); + dprintf("recv message: %s\n", readBuf); ret = LOS_QueueDelete(g_queue); if(ret != LOS_OK) { - printf("delete the queue failure, error: %x\n", ret); + dprintf("delete the queue failure, error: %x\n", ret); } - printf("delete the queue success!\n"); + dprintf("delete the queue success!\n"); } UINT32 ExampleQueue(VOID) { - printf("start queue example\n"); + dprintf("start queue example\n"); UINT32 ret = 0; UINT32 task1, task2; TSK_INIT_PARAM_S initParam = {0}; + ret = LOS_QueueCreate("queue", 5, &g_queue, 0, 50); + if(ret != LOS_OK) { + dprintf("create queue failure, error: %x\n", ret); + } + + dprintf("create the queue success!\n"); + initParam.pfnTaskEntry = (TSK_ENTRY_FUNC)SendEntry; initParam.usTaskPrio = 9; initParam.uwStackSize = LOSCFG_BASE_CORE_TSK_DEFAULT_STACK_SIZE; @@ -217,7 +205,8 @@ UINT32 ExampleQueue(VOID) LOS_TaskLock(); ret = LOS_TaskCreate(&task1, &initParam); if(ret != LOS_OK) { - printf("create task1 failed, error: %x\n", ret); + dprintf("create task1 failed, error: %x\n", ret); + LOS_QueueDelete(g_queue); return ret; } @@ -225,29 +214,26 @@ UINT32 ExampleQueue(VOID) initParam.pfnTaskEntry = (TSK_ENTRY_FUNC)RecvEntry; ret = LOS_TaskCreate(&task2, &initParam); if(ret != LOS_OK) { - printf("create task2 failed, error: %x\n", ret); + dprintf("create task2 failed, error: %x\n", ret); + LOS_QueueDelete(g_queue); return ret; } - ret = LOS_QueueCreate("queue", 5, &g_queue, 0, 50); - if(ret != LOS_OK) { - printf("create queue failure, error: %x\n", ret); - } - - printf("create the queue success!\n"); LOS_TaskUnlock(); + LOS_Msleep(5000); return ret; } ``` -### Verification + +### Verification The development is successful if the return result is as follows: + ``` -start test example +start queue example create the queue success! recv message: test message delete the queue success! ``` - diff --git a/en/device-dev/kernel/kernel-small-basic-trans-semaphore.md b/en/device-dev/kernel/kernel-small-basic-trans-semaphore.md index 31cf7a943e55c174be94905d70ad7c5a6d102dcb..22411251d4982ec959d2e1ebb9984c99fd1860f4 100644 --- a/en/device-dev/kernel/kernel-small-basic-trans-semaphore.md +++ b/en/device-dev/kernel/kernel-small-basic-trans-semaphore.md @@ -1,34 +1,38 @@ # Semaphore -## Basic Concepts +## Basic Concepts -Semaphore is a mechanism for implementing inter-task communication. It implements synchronization between tasks or exclusive access to shared resources. +Semaphore is a mechanism used to implement synchronization between tasks or exclusive access to shared resources. -In the data structure of a semaphore, there is a value indicating the number of shared resources available. The value can be: +In the semaphore data structure, there is a value indicating the number of shared resources available. The value can be: -- **0**: The semaphore is unavailable. Tasks waiting for the semaphore may exist. -- Positive number: The semaphore is available. +- **0**: The semaphore is unavailable. In this case, tasks waiting for the semaphore may exist. -The semaphore for exclusive access is different from the semaphore for synchronization: +- Positive number: The semaphore is available. -- Semaphore used for exclusive access: The initial semaphore counter value \(non-zero\) indicates the number of shared resources available. The semaphore counter value must be acquired before a shared resource is used, and released when the resource is no longer required. When all shared resources are used, the semaphore counter is reduced to 0 and the tasks that need to obtain the semaphores will be blocked. This ensures exclusive access to shared resources. In addition, when the number of shared resources is 1, a binary semaphore \(similar to the mutex mechanism\) is recommended. -- Semaphore used for synchronization: The initial semaphore counter value is **0**. Task 1 cannot acquire the semaphore and is blocked. Task 1 enters Ready or Running state only when the semaphore is released by task 2 or an interrupt. In this way, task synchronization is implemented. +The semaphore used for exclusive access to resources is different from the semaphore used for synchronization: -## Working Principles +- Semaphore used for exclusive access: The initial semaphore counter value \(non-zero\) indicates the number of shared resources available. A semaphore must be acquired before a shared resource is used, and released when the resource is no longer required. When all shared resources are used, the semaphore counter is reduced to 0 and all tasks requiring the semaphore will be blocked. This ensures exclusive access to shared resources. In addition, if the number of shared resources is 1, a binary semaphore \(similar to the mutex mechanism\) is recommended. + +- Semaphore used for synchronization: The initial semaphore counter value is **0**. A task without the semaphore will be blocked, and enters the Ready or Running state only when the semaphore is released by another task or an interrupt. + + +## Working Principles **Semaphore Control Block** + ``` /** - * Data structure of the semaphore control block + * Data structure of the semaphore control block */ typedef struct { UINT16 semStat; /* Semaphore status */ - UINT16 semType; /* Semaphore type*/ - UINT16 semCount; /* Semaphore count*/ - UINT16 semId; /* Semaphore index*/ - LOS_DL_LIST semList; /* Mount the task blocked by the semaphore.*/ + UINT16 semType; /* Semaphore type */ + UINT16 semCount; /* Semaphore count */ + UINT16 semId; /* Semaphore ID */ + LOS_DL_LIST semList; /* List of blocked tasks */ } LosSemCB; ``` @@ -36,102 +40,89 @@ typedef struct { Semaphore allows only a specified number of tasks to access a shared resource at a time. When the number of tasks accessing the resource reaches the limit, other tasks will be blocked until the semaphore is released. -- Semaphore initialization +- Semaphore initialization + + Allocate memory for the semaphores (the number of semaphores is specified by the **LOSCFG_BASE_IPC_SEM_LIMIT** macro), set all semaphores to the unused state, and add them to a linked list. + +- Semaphore creation + + Obtain a semaphore from the linked list of unused semaphores and assign an initial value to the semaphore. - The system allocates memory for the semaphores configured \(you can configure the number of semaphores using the **LOSCFG\_BASE\_IPC\_SEM\_LIMIT** macro\), initializes all semaphores to be unused semaphores, and adds them to a linked list for the system to use. +- Semaphore request -- Semaphore creation + If the counter value is greater than 0 when a semaphore is requsted, the counter is decreased by 1 and a success message is returned. Otherwise, the task is blocked and added to the end of a task queue waiting for semaphores. The wait timeout period can be set. - The system obtains a semaphore from the linked list of unused semaphores and assigns an initial value to the semaphore. +- Semaphore release -- Semaphore request + If no task is waiting for the semaphore, the counter is incremented by 1. Otherwise, wake up the first task in the wait queue. - If the counter value is greater than 0, the system allocates a semaphore, decreases the value by 1, and returns a success message. Otherwise, the system blocks the task and moves the task to the end of a task queue waiting for semaphores. The wait timeout period can be set. +- Semaphore deletion -- Semaphore release + Set a semaphore in use to the unused state and add it to the linked list of unused semaphores. - When a semaphore is released, if there is no task waiting for it, the counter value is increased by 1. Otherwise, the first task in the wait queue is woken up. +The following figure illustrates the semaphore working mechanism. -- Semaphore deletion +**Figure 1** Semaphore working mechanism for the small system - The system sets a semaphore in use to unused state and inserts it to the linked list of unused semaphores. +![](figures/semaphore-working-mechanism-for-small-systems.png "semaphore-working-mechanism-for-small-systems") -The following figure illustrates the semaphore working mechanism. +## Development Guidelines -**Figure 1** Semaphore working mechanism for small systems -![](figures/semaphore-working-mechanism-for-small-systems.png "semaphore-working-mechanism-for-small-systems") -## Development Guidelines - -### Available APIs - -**Table 1** Semaphore module APIs - - - - - - - - - - - - - - - - - - - - - - - - - -

Function

-

API

-

Description

-

Creating or deleting a semaphore

-

LOS_SemCreate

-

Creates a semaphore and returns the semaphore ID.

-

LOS_BinarySemCreate

-

Creates a binary semaphore. The maximum counter value is 1.

-

LOS_SemDelete

-

Deletes a semaphore.

-

Requesting or releasing a semaphore

-

LOS_SemPend

-

Requests a specified semaphore and sets the timeout period.

-

LOS_SemPost

-

Posts (releases) a semaphore.

-
- -### How to Develop - -1. Call **LOS\_SemCreate** to create a semaphore. To create a binary semaphore, call **LOS\_BinarySemCreate**. -2. Call **LOS\_SemPend** to request a semaphore. -3. Call **LOS\_SemPost** to release a semaphore. -4. Call **LOS\_SemDelete** to delete a semaphore. - ->![](../public_sys-resources/icon-note.gif) **NOTE:** ->As interrupts cannot be blocked, semaphores cannot be requested in block mode for interrupts. - -### Development Example - -### Example Description +### Available APIs + +**Table 1** APIs for creating and deleting a semaphore + +| API| Description| +| -------- | -------- | +| LOS_SemCreate | Creates a semaphore and returns the semaphore ID.| +| LOS_BinarySemCreate | Creates a binary semaphore. The maximum counter value is **1**.| +| LOS_SemDelete | Deletes a semaphore.| + +**Table 2** APIs for requesting and releasing a semaphore + +| API| Description| +| -------- | -------- | +| LOS_SemPend | Requests a semaphore and sets a timeout period.| +| LOS_SemPost | Releases a semaphore.| + + +### How to Develop + +1. Call **LOS_SemCreate** to create a semaphore. To create a binary semaphore, call **LOS_BinarySemCreate**. + +2. Call **LOS_SemPend** to request a semaphore. + +3. Call **LOS_SemPost** to release a semaphore. + +4. Call **LOS_SemDelete** to delete a semaphore. + +> **NOTE**
+> As interrupts cannot be blocked, semaphores cannot be requested in block mode for interrupts. + + +### Development Example + + +### Example Description This example implements the following: -1. Create a semaphore in task **ExampleSem** and lock task scheduling. Create two tasks **ExampleSemTask1** and **ExampleSemTask2** \(with higher priority\). Enable the two tasks to request the same semaphore. Unlock task scheduling. Enable task **ExampleSem** to enter sleep mode for 400 ticks. Release the semaphore in task **ExampleSem**. -2. Enable** ExampleSemTask2** to enter sleep mode for 20 ticks after acquiring the semaphore. \(When **ExampleSemTask2** is delayed, **ExampleSemTask1** is woken up.\) -3. Enable **ExampleSemTask1** to request the semaphore in scheduled block mode, with a wait timeout period of 10 ticks. \(Because the semaphore is still held by **ExampleSemTask2**, **ExampleSemTask1** is suspended. **ExampleSemTask1** is woken up after 10 ticks.\) Enable **ExampleSemTask1** to request the semaphore in permanent block mode after it is woken up 10 ticks later. \(Because the semaphore is still held by **ExampleSemTask2**, **ExampleSemTask1** is suspended.\) -4. After 20 ticks, **ExampleSemTask2** is woken up and releases the semaphore. **ExampleSemTask1** acquires the semaphore and is scheduled to run. When **ExampleSemTask1** is complete, it releases the semaphore. -5. Task **ExampleSem** is woken up after 400 ticks and deletes the semaphore. +1. Create a semaphore in task **ExampleSem** and lock task scheduling. Create two tasks **ExampleSemTask1** and **ExampleSemTask2** (with higher priority). Enable the two tasks to request the same semaphore. Unlock task scheduling. Enable task **ExampleSem** to enter sleep mode for 400 ticks. Release the semaphore in task **ExampleSem**. + +2. Enable **ExampleSemTask2** to enter sleep mode for 20 ticks after acquiring the semaphore. (When **ExampleSemTask2** is delayed, **ExampleSemTask1** is woken up.) + +3. Enable **ExampleSemTask1** to request the semaphore in scheduled block mode, with a wait timeout period of 10 ticks. (Because the semaphore is still held by **ExampleSemTask2**, **ExampleSemTask1** is suspended. **ExampleSemTask1** is woken up after 10 ticks.) Enable **ExampleSemTask1** to request the semaphore in permanent block mode after it is woken up 10 ticks later. (Because the semaphore is still held by **ExampleSemTask2**, **ExampleSemTask1** is suspended.) + +4. After 20 ticks, **ExampleSemTask2** is woken up and releases the semaphore. **ExampleSemTask1** acquires the semaphore and is scheduled to run. When **ExampleSemTask1** is complete, it releases the semaphore. + +5. Task **ExampleSem** is woken up after 400 ticks. After that, delete the semaphore. + + +### Sample Code -### Sample Code +The sample code can be compiled and verified in **./kernel/liteos_a/testsuites/kernel/src/osTest.c**. The **ExampleSem** function is called in **TestTaskEntry**. The sample code is as follows: @@ -144,33 +135,34 @@ static UINT32 g_testTaskId01; static UINT32 g_testTaskId02; /* Task priority */ -#define TASK_PRIO_TEST 5 +#define TASK_PRIO_LOW 5 +#define TASK_PRIO_HI 4 -/* Semaphore structure ID*/ +/* Semaphore structure ID */ static UINT32 g_semId; VOID ExampleSemTask1(VOID) { UINT32 ret; - printf("ExampleSemTask1 try get sem g_semId, timeout 10 ticks.\n"); + dprintf("ExampleSemTask1 try get sem g_semId, timeout 10 ticks.\n"); - /* Request the semaphore in scheduled block mode, with a wait timeout period of 10 ticks.*/ + /* Request the semaphore in scheduled block mode, with a wait timeout period of 10 ticks. */ ret = LOS_SemPend(g_semId, 10); - - /* The semaphore is acquired.*/ + /* The semaphore is acquired. */ if (ret == LOS_OK) { LOS_SemPost(g_semId); return; } - /* The semaphore is not acquired when the timeout period has expired.*/ + /* The semaphore is not acquired when the timeout period has expired. */ if (ret == LOS_ERRNO_SEM_TIMEOUT) { - printf("ExampleSemTask1 timeout and try get sem g_semId wait forever.\n"); + dprintf("ExampleSemTask1 timeout and try get sem g_semId wait forever.\n"); - /* Request the semaphore in permanent block mode.*/ + /* Request the semaphore in permanent block mode. */ ret = LOS_SemPend(g_semId, LOS_WAIT_FOREVER); - printf("ExampleSemTask1 wait_forever and get sem g_semId.\n"); + dprintf("ExampleSemTask1 wait_forever and get sem g_semId.\n"); if (ret == LOS_OK) { + dprintf("ExampleSemTask1 post sem g_semId.\n"); LOS_SemPost(g_semId); return; } @@ -180,20 +172,19 @@ VOID ExampleSemTask1(VOID) VOID ExampleSemTask2(VOID) { UINT32 ret; - printf("ExampleSemTask2 try get sem g_semId wait forever.\n"); + dprintf("ExampleSemTask2 try get sem g_semId wait forever.\n"); - /* Request the semaphore in permanent block mode.*/ + /* Request the semaphore in permanent block mode. */ ret = LOS_SemPend(g_semId, LOS_WAIT_FOREVER); - if (ret == LOS_OK) { - printf("ExampleSemTask2 get sem g_semId and then delay 20 ticks.\n"); + dprintf("ExampleSemTask2 get sem g_semId and then delay 20 ticks.\n"); } - /* Enable the task to enter sleep mode for 20 ticks.*/ + /* Enable the task to enter sleep mode for 20 ticks. */ LOS_TaskDelay(20); - printf("ExampleSemTask2 post sem g_semId.\n"); - /* Release the semaphore.*/ + dprintf("ExampleSemTask2 post sem g_semId.\n"); + /* Release the semaphore. */ LOS_SemPost(g_semId); return; } @@ -204,60 +195,65 @@ UINT32 ExampleSem(VOID) TSK_INIT_PARAM_S task1; TSK_INIT_PARAM_S task2; - /* Create a semaphore.*/ + /* Create a semaphore. */ LOS_SemCreate(0, &g_semId); - /* Lock task scheduling.*/ + /* Lock task scheduling. */ LOS_TaskLock(); - /* Create task 1.*/ + /* Create task 1. */ (VOID)memset_s(&task1, sizeof(TSK_INIT_PARAM_S), 0, sizeof(TSK_INIT_PARAM_S)); task1.pfnTaskEntry = (TSK_ENTRY_FUNC)ExampleSemTask1; task1.pcName = "TestTask1"; task1.uwStackSize = LOSCFG_BASE_CORE_TSK_DEFAULT_STACK_SIZE; - task1.usTaskPrio = TASK_PRIO_TEST; + task1.usTaskPrio = TASK_PRIO_LOW; ret = LOS_TaskCreate(&g_testTaskId01, &task1); if (ret != LOS_OK) { - printf("task1 create failed .\n"); + dprintf("task1 create failed .\n"); return LOS_NOK; } - /* Create task 2.*/ + /* Create task 2. */ (VOID)memset_s(&task2, sizeof(TSK_INIT_PARAM_S), 0, sizeof(TSK_INIT_PARAM_S)); task2.pfnTaskEntry = (TSK_ENTRY_FUNC)ExampleSemTask2; task2.pcName = "TestTask2"; task2.uwStackSize = LOSCFG_BASE_CORE_TSK_DEFAULT_STACK_SIZE; - task2.usTaskPrio = (TASK_PRIO_TEST - 1); + task2.usTaskPrio = TASK_PRIO_HI; ret = LOS_TaskCreate(&g_testTaskId02, &task2); if (ret != LOS_OK) { - printf("task2 create failed.\n"); + dprintf("task2 create failed.\n"); return LOS_NOK; } - /* Unlock task scheduling.*/ + /* Unlock task scheduling. */ LOS_TaskUnlock(); + /* Enable the task to enter sleep mode for 400 ticks. */ + LOS_TaskDelay(400); + ret = LOS_SemPost(g_semId); - /* Enable the task to enter sleep mode for 400 ticks.*/ + /* Enable the task to enter sleep mode for 400 ticks. */ LOS_TaskDelay(400); - /* Delete the semaphore. */ + /* Delete the semaphore. */ LOS_SemDelete(g_semId); return LOS_OK; } ``` -### Verification + +### Verification The development is successful if the return result is as follows: + ``` ExampleSemTask2 try get sem g_semId wait forever. -ExampleSemTask2 get sem g_semId and then delay 20 ticks. ExampleSemTask1 try get sem g_semId, timeout 10 ticks. ExampleSemTask1 timeout and try get sem g_semId wait forever. +ExampleSemTask2 get sem g_semId and then delay 20 ticks. ExampleSemTask2 post sem g_semId. ExampleSemTask1 wait_forever and get sem g_semId. +ExampleSemTask1 post sem g_semId. ``` - diff --git a/en/device-dev/kernel/kernel-small-debug-memory-corrupt.md b/en/device-dev/kernel/kernel-small-debug-memory-corrupt.md index 86e96a509e36d8b451fadb2b17543c82c7fe8d70..5429d3174fee9be17d1f66ce41d92b7920bb8eb1 100644 --- a/en/device-dev/kernel/kernel-small-debug-memory-corrupt.md +++ b/en/device-dev/kernel/kernel-small-debug-memory-corrupt.md @@ -1,42 +1,52 @@ # Memory Corruption Check -## Basic Concepts +## Basic Concepts As an optional function of the kernel, memory corruption check is used to check the integrity of a dynamic memory pool. This mechanism can detect memory corruption errors in the memory pool in a timely manner and provide alerts. It helps reduce problem locating costs and increase troubleshooting efficiency. -## Function Configuration -**LOSCFG\_BASE\_MEM\_NODE\_INTEGRITY\_CHECK**: specifies the setting of the memory corruption check. This function is disabled by default. To enable this function, configure it in **Debug-\> Enable integrity check or not**. +## Function Configuration + +**LOSCFG_BASE_MEM_NODE_INTEGRITY_CHECK** specifies the setting of the memory corruption check. This function is disabled by default. You can enable it in **Debug -> Enable integrity check or not**. If this macro is enabled, the memory pool integrity will be checked in real time upon each memory allocation. -If this macro is not enabled, you can call **LOS\_MemIntegrityCheck** to check the memory pool integrity when required. Using **LOS\_MemIntegrityCheck** does not affect the system performance. In addition, the check accuracy decreases because the node header does not contain the magic number \(which is available only when **LOSCFG\_BASE\_MEM\_NODE\_INTEGRITY\_CHECK** is enabled\). +If this macro is not enabled, you can call **LOS_MemIntegrityCheck** to check the memory pool integrity when required. Using **LOS_MemIntegrityCheck** does not affect the system performance. However, the check accuracy decreases because the node header does not contain the magic number (which is available only when **LOSCFG_BASE_MEM_NODE_INTEGRITY_CHECK** is enabled). + +This check only detects the corrupted memory node and provides information about the previous node (because memory is contiguous, a node is most likely corrupted by the previous node). To further determine the location where the previous node is requested, you need to enable the memory leak check and use LRs to locate the fault. + +> **CAUTION**
+> If memory corruption check is enabled, a magic number is added to the node header, which increases the size of the node header. The real-time integrity check has a great impact on the performance. In performance-sensitive scenarios, you are advised to disable this function and use **LOS_MemIntegrityCheck** to check the memory pool integrity. + -This check only detects the corrupted memory node and provides information about the previous node \(because memory is contiguous, a node is most likely corrupted by the previous node\). To further determine the location where the previous node is requested, you need to enable the memory leak check and use LRs to locate the fault. +## Development Guidelines ->![](../public_sys-resources/icon-caution.gif) **CAUTION:** ->If memory corruption check is enabled, a magic number is added to the node header, which increases the size of the node header. The real-time integrity check has a great impact on the performance. In performance-sensitive scenarios, you are advised to disable this function and use **LOS\_MemIntegrityCheck** to check the memory pool integrity. -## Development Guidelines +### How to Develop -### How to Develop +Use **LOS_MemIntegrityCheck** to check for memory corruption. If no memory corruption occurs, **0** is returned and no log is output. If memory corruption occurs, the related log is output. For details, see the output of the following example. -Check for memory corruption by calling **LOS\_MemIntegrityCheck**. If no memory corruption occurs, **0** is returned and no log is output. If memory corruption occurs, the related log is output. For details, see the output of the following example. -### Development Example +### Development Example This example implements the following: -1. Requests two physically adjacent memory blocks. -2. Calls **memset** to construct an out-of-bounds access and overwrites the first four bytes of the next node. -3. Calls **LOS\_MemIntegrityCheck** to check whether memory corruption occurs. +1. Request two physically adjacent memory blocks. + +2. Use **memset** to construct an out-of-bounds access and overwrites the first four bytes of the next node. + +3. Call **LOS_MemIntegrityCheck** to check for memory corruption. + **Sample Code** +You can add the test function of the sample code to **TestTaskEntry** in **kernel/liteos_a/testsuites/kernel/src/osTest.c** for testing. The sample code is as follows: -``` + + +```c #include #include #include "los_memory.h" @@ -44,10 +54,10 @@ The sample code is as follows: void MemIntegrityTest(void) { - /* Request two physically adjacent memory blocks.*/ + /* Request two physically adjacent memory blocks. */ void *ptr1 = LOS_MemAlloc(LOSCFG_SYS_HEAP_ADDR, 8); void *ptr2 = LOS_MemAlloc(LOSCFG_SYS_HEAP_ADDR, 8); - /* Construct an out-of-bounds access to cause memory corruption. The memory block of the first node is 8 bytes. Clearing 12 bytes overwrites the header of the second memory node. */ + /* Construct an out-of-bounds access to cause memory corruption. The memory block of the first node is 8 bytes. Clearing 12 bytes overwrites the header of the second memory node. */ memset(ptr1, 0, 8 + 4); LOS_MemIntegrityCheck(LOSCFG_SYS_HEAP_ADDR); } @@ -55,24 +65,26 @@ void MemIntegrityTest(void) **Verification** + The log is as follows: + + ``` [ERR][OsMemMagicCheckPrint], 2028, memory check error! -memory used but magic num wrong, magic num = 0x00000000 /* Error information, indicating that the first four bytes, that is, the magic number, of the next node are corrupted.*/ +memory used but magic num wrong, magic num = 0x00000000 /* Error information, indicating that the first four bytes, that is, the magic number, of the next node are corrupted. */ - broken node head: 0x20003af0 0x00000000 0x80000020, prev node head: 0x20002ad4 0xabcddcba 0x80000020 + broken node head: 0x20003af0 0x00000000 0x80000020, prev node head: 0x20002ad4 0xabcddcba 0x80000020 /* Key information about the corrupted node and its previous node, including the address of the previous node, magic number of the node, and sizeAndFlag of the node. In this example, the magic number of the corrupted node is cleared. */ - broken node head LR info: /* The node LR information can be output only after the memory leak check is enabled.*/ + broken node head LR info: /* The node LR information can be output only after the memory leak check is enabled. */ LR[0]:0x0800414e LR[1]:0x08000cc2 LR[2]:0x00000000 - pre node head LR info: /* Based on the LR information, you can find where the previous node is requested in the assembly file and then perform further analysis.*/ + pre node head LR info: /* Based on the LR information, you can find where the previous node is requested in the assembly file and then perform further analysis. */ LR[0]:0x08004144 LR[1]:0x08000cc2 LR[2]:0x00000000 -[ERR]Memory interity check error, cur node: 0x20003b10, pre node: 0x20003af0 /* Addresses of the corrupted node and its previous node*/ +[ERR]Memory integrity check error, cur node: 0x20003b10, pre node: 0x20003af0 /* Addresses of the corrupted node and its previous node */ ``` - diff --git a/en/device-dev/kernel/kernel-small-debug-memory-info.md b/en/device-dev/kernel/kernel-small-debug-memory-info.md index 7e49011370211aab32ba94e1a578b99f77e857b7..ddfbc57c500d6638f48968860f1e40a34c04e164 100644 --- a/en/device-dev/kernel/kernel-small-debug-memory-info.md +++ b/en/device-dev/kernel/kernel-small-debug-memory-info.md @@ -1,61 +1,67 @@ # Memory Information Statistics -## Basic Concepts + +## Basic Concepts Memory information includes the memory pool size, memory usage, remaining memory size, maximum free memory, memory waterline, number of memory nodes, and fragmentation rate. -- Memory waterline: indicates the maximum memory used in a memory pool. The waterline value is updated upon each memory allocation and release. The memory pool size can be optimized based on this value. +- The memory waterline indicates the maximum memory used in a memory pool. The waterline value is updated each time the memory is allocated or released. The memory pool size can be optimized based on this value. + +- The fragmentation rate indicates the fragmentation degree of the memory pool. If the fragmentation rate is high, there are a large number of free memory blocks in the memory pool but each block is small. You can use the following formula to calculate the fragmentation rate:
Fragmentation rate = 100 – 100 x Maximum free memory block size/Remaining memory size -- Fragmentation rate: indicates the fragmentation degree of the memory pool. If the fragmentation rate is high, there are a large number of free memory blocks in the memory pool but each block is small. You can use the following formula to calculate the fragmentation rate: +- You can use **LOS_MemInfoGet()** to scan the node information in the memory pool and collect the related statistics. - Fragmentation rate = 100 – 100 x Maximum free memory block size/Remaining memory size +## Function Configuration -- Other statistics: When **LOS\_MemInfoGet** is called, the node information in the memory pool is scanned and related statistics are collected. +**LOSCFG_MEM_WATERLINE** specifies the setting of the memory information statistics function. This function is disabled by default. If you want to obtain the memory waterline, enable it in **Debug-> Enable MEM Debug-> Enable memory pool waterline or not**. -## Function Configuration -**LOSCFG\_MEM\_WATERLINE**: specifies the setting of the memory information statistics function. This function is disabled by default. To enable this function, configure it in **Debug-\> Enable memory pool waterline or not in the configuration item**. If you want to obtain the memory waterline, you must enable this macro. +## Development Guidelines -## Development Guidelines -### How to Develop +### How to Develop Key structure: -``` + +```c typedef struct { - UINT32 totalUsedSize; // Memory usage of the memory pool - UINT32 totalFreeSize; // Remaining memory in the memory pool - UINT32 maxFreeNodeSize; // Maximum size of the free memory block in the memory pool - UINT32 usedNodeNum; // Number of non-free memory blocks in the memory pool - UINT32 freeNodeNum; // Number of free memory blocks in the memory pool -#if (LOSCFG_MEM_WATERLINE == 1) // This function is disabled by default and can be enabled using the menuconfig tool. - UINT32 usageWaterLine; // Waterline of the memory pool + UINT32 totalUsedSize; // Memory usage of the memory pool. + UINT32 totalFreeSize; // Remaining size of the memory pool. + UINT32 maxFreeNodeSize; // Maximum size of the free memory block in the memory pool. + UINT32 usedNodeNum; // Number of non-free memory blocks in the memory pool. + UINT32 freeNodeNum; // Number of free memory blocks in the memory pool. +#if (LOSCFG_MEM_WATERLINE == 1) // This function is disabled by default and can be enabled using the **menuconfig** tool. + UINT32 usageWaterLine; // Waterline of the memory pool. #endif } LOS_MEM_POOL_STATUS; ``` -- To obtain the memory waterline, call **LOS\_MemInfoGet**. The first parameter in the API is the start address of the memory pool, and the second parameter is the handle of the **LOS\_MEM\_POOL\_STATUS** type. The **usageWaterLine** field indicates the waterline. +To obtain the memory waterline, call **LOS_MemInfoGet(VOID *pool, LOS_MEM_POOL_STATUS *poolStatus)**. The first parameter specifies the start address of the memory pool, and the second parameter specifies the handle of the **LOS_MEM_POOL_STATUS** type. The **usageWaterLine** field indicates the waterline. -- To calculate the memory fragmentation rate, call **LOS\_MemInfoGet** to obtain the remaining memory size and the maximum free memory block size in the memory pool, and then calculate the fragmentation rate of the dynamic memory pool as follows: +To calculate the memory fragmentation rate, call **LOS_MemInfoGet** to obtain the remaining memory size and the maximum free memory block size in the memory pool, and then calculate the fragmentation rate of the dynamic memory pool as follows: - Fragmentation rate = 100 – 100 x Maximum free memory block size/Remaining memory size +Fragmentation rate = 100 – 100 x Maximum free memory block size/Remaining memory size -### Development Example +### Development Example This example implements the following: -1. Creates a monitoring task to obtain information about the memory pool. -2. Calls **LOS\_MemInfoGet** to obtain the basic information about the memory pool. -3. Calculates the memory usage and fragmentation rate. +1. Create a monitoring task to obtain information about the memory pool. + +2. Call **LOS_MemInfoGet** to obtain the basic information about the memory pool. + +3. Calculate the memory usage and fragmentation rate. **Sample Code** +You can compile and verify the sample code in **kernel/liteos_a/testsuites/kernel/src/osTest.c**. The **MemTest()** function is called in **TestTaskEntry**. + The sample code is as follows: -``` +```c #include #include #include "los_task.h" @@ -66,15 +72,14 @@ void MemInfoTaskFunc(void) { LOS_MEM_POOL_STATUS poolStatus = {0}; - /* pool is the memory address of the information to be collected. OS_SYS_MEM_ADDR is used as an example.*/ + /* pool is the memory address of the information to be collected. OS_SYS_MEM_ADDR is used as an example. */ void *pool = OS_SYS_MEM_ADDR; LOS_MemInfoGet(pool, &poolStatus); /* Calculate the fragmentation rate of the memory pool. */ unsigned char fragment = 100 - poolStatus.maxFreeNodeSize * 100 / poolStatus.totalFreeSize; /* Calculate the memory usage of the memory pool. */ unsigned char usage = LOS_MemTotalUsedGet(pool) * 100 / LOS_MemPoolSizeGet(pool); - printf("usage = %d, fragment = %d, maxFreeSize = %d, totalFreeSize = %d, waterLine = %d\n", usage, fragment, poolStatus.maxFreeNodeSize, - poolStatus.totalFreeSize, poolStatus.usageWaterLine); + dprintf("usage = %d, fragment = %d, maxFreeSize = %d, totalFreeSize = %d, waterLine = %d\n", usage, fragment, poolStatus.maxFreeNodeSize, poolStatus.totalFreeSize, poolStatus.usageWaterLine); } int MemTest(void) @@ -88,18 +93,20 @@ int MemTest(void) taskStatus.usTaskPrio = 10; ret = LOS_TaskCreate(&taskID, &taskStatus); if (ret != LOS_OK) { - printf("task create failed\n"); - return -1; + dprintf("task create failed\n"); + return LOS_NOK; } - return 0; + return LOS_OK; } ``` **Verification** + The result is as follows: +The data may vary depending on the running environment. + ``` usage = 22, fragment = 3, maxFreeSize = 49056, totalFreeSize = 50132, waterLine = 1414 ``` - diff --git a/en/device-dev/kernel/kernel-small-debug-memory-leak.md b/en/device-dev/kernel/kernel-small-debug-memory-leak.md index d67b32bff12085d5f85c831aef31cae9a5f76491..df901f9b1140d19783b8c4e1c4b1a19457fd39af 100644 --- a/en/device-dev/kernel/kernel-small-debug-memory-leak.md +++ b/en/device-dev/kernel/kernel-small-debug-memory-leak.md @@ -1,127 +1,151 @@ # Memory Leak Check -## Basic Concepts +## Basic Concepts -As an optional function of the kernel, memory leak check is used to locate dynamic memory leak problems. After this function is enabled, the dynamic memory mechanism automatically records the link registers \(LRs\) used when memory is allocated. If a memory leak occurs, the recorded information helps locate the memory allocated for further analysis. +As an optional function of the kernel, memory leak check is used to locate dynamic memory leak problems. After this function is enabled, the dynamic memory mechanism automatically records the link registers (LRs) used when memory is allocated. If a memory leak occurs, the recorded information helps locate the memory allocated for further analysis. -## Function Configuration -1. **LOSCFG\_MEM\_LEAKCHECK**: specifies the setting of the memory leak check. This function is disabled by default. To enable this function, configure it in **Debug-\> Enable Function call stack of Mem operation recorded**. -2. **LOS\_RECORD\_LR\_CNT**: number of LRs recorded. The default value is **3**. Each LR consumes the memory of **sizeof\(void \*\)** bytes. -3. **LOS\_OMIT\_LR\_CNT**: number of ignored LRs. The default value is **2**, which indicates that LRs are recorded from the time when **LOS\_MemAlloc** is called. You can change the value based on actual requirements. This macro is configured because: - - **LOS\_MemAlloc** is also called internally. - - **LOS\_MemAlloc** may be encapsulated externally. - - The number of LRs configured by **LOS\_RECORD\_LR\_CNT** is limited. +## Function Configuration +**LOSCFG_MEM_LEAKCHECK** specifies the setting of the memory leak check. This function is disabled by default. You can enable it in **Debug-> Enable MEM Debug-> Enable Function call stack of Mem operation recorded**. + +**LOS_RECORD_LR_CNT** specifies the number of LRs recorded. The default value is **3**. Each LR consumes the memory of **sizeof(void *)** bytes. + +**LOS_OMIT_LR_CNT** specifies the number of ignored LRs. The default value is **2**, which indicates that LRs are recorded from the time when **LOS_MemAlloc** is called. You can change the value based on actual requirements. The reasons for this configuration are as follows: + +- **LOS_MemAlloc** is also called internally. +- **LOS_MemAlloc** may be encapsulated externally. +- The number of LRs configured by **LOS_RECORD_LR_CNT** is limited. Correctly setting this macro can ignore invalid LRs and reduce memory consumption. -## Development Guidelines -### How to Develop +## Development Guidelines -Memory leak check provides a method to check for memory leak in key code logic. If this function is enabled, LR information is recorded each time when memory is allocated. When **LOS\_MemUsedNodeShow** is called before and after the code snippet is checked, information about all nodes that have been used in the specified memory pool is printed. You can compare the node information. The newly added node information indicates the node where the memory leak may occur. You can locate the code based on the LR and further check whether a memory leak occurs. -The node information output by calling **LOS\_MemUsedNodeShow** is in the following format: +### How to Develop -- Each line contains information about a node. -- The first column indicates the node address, based on which you can obtain complete node information using a tool such as a GNU Debugger \(GDB\). -- The second column indicates the node size, which is equal to the node header size plus the data field size. -- Columns 3 to 5 list the LR addresses. +Memory leak check provides a method to check for memory leak in key code logic. If this function is enabled, LR information is recorded each time when memory is allocated. When **LOS_MemUsedNodeShow** is called before and after the code snippet is checked, information about all nodes that have been used in the specified memory pool is printed. You can compare the node information. The newly added node information indicates the node where the memory leak may occur. You can locate the code based on the LR and further check whether a memory leak occurs. + +The node information output by calling **LOS_MemUsedNodeShow** is in the following format:
Each line contains information about a node. The first column indicates the node address, based on which you can obtain complete node information using a tool such as a GNU Debugger (GDB). The second column indicates the node size, which is equal to the node header size plus the data field size. Columns 3 to 5 list the LR addresses. You can determine the specific memory location of the node based on the LR addresses and the assembly file. -You can determine the specific memory location of the node based on the LR addresses and the assembly file. ``` -node size LR[0] LR[1] LR[2] -0x10017320: 0x528 0x9b004eba 0x9b004f60 0x9b005002 -0x10017848: 0xe0 0x9b02c24e 0x9b02c246 0x9b008ef0 -0x10017928: 0x50 0x9b008ed0 0x9b068902 0x9b0687c4 +node size LR[0] LR[1] LR[2] +0x10017320: 0x528 0x9b004eba 0x9b004f60 0x9b005002 +0x10017848: 0xe0 0x9b02c24e 0x9b02c246 0x9b008ef0 +0x10017928: 0x50 0x9b008ed0 0x9b068902 0x9b0687c4 0x10017978: 0x24 0x9b008ed0 0x9b068924 0x9b0687c4 -0x1001799c: 0x30 0x9b02c24e 0x9b02c246 0x9b008ef0 -0x100179cc: 0x5c 0x9b02c24e 0x9b02c246 0x9b008ef0 +0x1001799c: 0x30 0x9b02c24e 0x9b02c246 0x9b008ef0 +0x100179cc: 0x5c 0x9b02c24e 0x9b02c246 0x9b008ef0 ``` ->![](../public_sys-resources/icon-caution.gif) **CAUTION:** ->Enabling memory leak check affects memory application performance. LR addresses will be recorded for each memory node, increasing memory overhead. +> **CAUTION** +> Enabling memory leak check affects memory application performance. LR addresses will be recorded for each memory node, increasing memory overhead. + -### Development Example +### Development Example This example implements the following: -1. Call **OsMemUsedNodeShow** to print information about all nodes. -2. Simulate a memory leak by requesting memory without releasing it. -3. Call **OsMemUsedNodeShow** to print information about all nodes. -4. Compare the logs to obtain information about the node where a memory leak occurred. -5. Locate the code based on the LR address. +1. Call **OsMemUsedNodeShow** to print information about all nodes. + +2. Simulate a memory leak by requesting memory without releasing it. + +3. Call **OsMemUsedNodeShow** to print information about all nodes. + +4. Compare the logs to obtain information about the node where a memory leak occurred. + +5. Locate the code based on the LR address. + **Sample Code** +You can compile and verify the sample code in **kernel/liteos_a/testsuites/kernel/src/osTest.c**. The **MemLeakTest()** function is called in **TestTaskEntry**. + +In this example, a memory pool is created. To achieve this purpose, you need to define **LOSCFG_MEM_MUL_POOL** in **target_config.h**. + The sample code is as follows: -``` +```c #include #include #include "los_memory.h" #include "los_config.h" +#define TEST_NEW_POOL_SIZE 2000 +#define TEST_MALLOC_SIZE 8 + void MemLeakTest(void) { - OsMemUsedNodeShow(LOSCFG_SYS_HEAP_ADDR); - void *ptr1 = LOS_MemAlloc(LOSCFG_SYS_HEAP_ADDR, 8); - void *ptr2 = LOS_MemAlloc(LOSCFG_SYS_HEAP_ADDR, 8); - OsMemUsedNodeShow(LOSCFG_SYS_HEAP_ADDR); + VOID *pool = NULL; + + /* Create a memory pool. */ + pool = LOS_MemAlloc(OS_SYS_MEM_ADDR, TEST_NEW_POOL_SIZE); + (VOID)LOS_MemInit(pool, TEST_NEW_POOL_SIZE); + + OsMemUsedNodeShow(pool); + void *ptr1 = LOS_MemAlloc(pool, TEST_MALLOC_SIZE); + void *ptr2 = LOS_MemAlloc(pool, TEST_MALLOC_SIZE); + OsMemUsedNodeShow(pool); + + /* Release the memory pool. */ + (VOID)LOS_MemDeInit(pool); } ``` + **Verification** + The log is as follows: ``` -node size LR[0] LR[1] LR[2] -0x20001b04: 0x24 0x08001a10 0x080035ce 0x080028fc -0x20002058: 0x40 0x08002fe8 0x08003626 0x080028fc -0x200022ac: 0x40 0x08000e0c 0x08000e56 0x0800359e -0x20002594: 0x120 0x08000e0c 0x08000e56 0x08000c8a -0x20002aac: 0x56 0x08000e0c 0x08000e56 0x08004220 - -node size LR[0] LR[1] LR[2] -0x20001b04: 0x24 0x08001a10 0x080035ce 0x080028fc -0x20002058: 0x40 0x08002fe8 0x08003626 0x080028fc -0x200022ac: 0x40 0x08000e0c 0x08000e56 0x0800359e -0x20002594: 0x120 0x08000e0c 0x08000e56 0x08000c8a -0x20002aac: 0x56 0x08000e0c 0x08000e56 0x08004220 -0x20003ac4: 0x1d 0x08001458 0x080014e0 0x080041e6 -0x20003ae0: 0x1d 0x080041ee 0x08000cc2 0x00000000 +/* Log for the first OsMemUsedNodeShow. Because the memory pool is not allocated, there is no memory node. */ +node LR[0] LR[1] LR[2] + + +/* Log for the second OsMemUsedNodeShow. There are two memory nodes. */ +node LR[0] LR[1] LR[2] +0x00402e0d90: 0x004009f040 0x0040037614 0x0040005480 +0x00402e0db0: 0x004009f04c 0x0040037614 0x0040005480 + ``` + The difference between the two logs is as follows. The following memory nodes are suspected to have blocks with a memory leak. ``` -0x20003ac4: 0x1d 0x08001458 0x080014e0 0x080041e6 -0x20003ae0: 0x1d 0x080041ee 0x08000cc2 0x00000000 +0x00402e0d90: 0x004009f040 0x0040037614 0x0040005480 +0x00402e0db0: 0x004009f04c 0x0040037614 0x0040005480 ``` + The following is part of the assembly file: ``` - MemLeakTest: - 0x80041d4: 0xb510 PUSH {R4, LR} - 0x80041d6: 0x4ca8 LDR.N R4, [PC, #0x2a0] ; g_memStart - 0x80041d8: 0x0020 MOVS R0, R4 - 0x80041da: 0xf7fd 0xf93e BL LOS_MemUsedNodeShow ; 0x800145a - 0x80041de: 0x2108 MOVS R1, #8 - 0x80041e0: 0x0020 MOVS R0, R4 - 0x80041e2: 0xf7fd 0xfbd9 BL LOS_MemAlloc ; 0x8001998 - 0x80041e6: 0x2108 MOVS R1, #8 - 0x80041e8: 0x0020 MOVS R0, R4 - 0x80041ea: 0xf7fd 0xfbd5 BL LOS_MemAlloc ; 0x8001998 - 0x80041ee: 0x0020 MOVS R0, R4 - 0x80041f0: 0xf7fd 0xf933 BL LOS_MemUsedNodeShow ; 0x800145a - 0x80041f4: 0xbd10 POP {R4, PC} - 0x80041f6: 0x0000 MOVS R0, R0 +4009f014: 7d 1e a0 e3 mov r1, #2000 +4009f018: 00 00 90 e5 ldr r0, [r0] +4009f01c: 67 7a fe eb bl #-398948 +4009f020: 7d 1e a0 e3 mov r1, #2000 +4009f024: 00 40 a0 e1 mov r4, r0 +4009f028: c7 79 fe eb bl #-399588 +4009f02c: 04 00 a0 e1 mov r0, r4 +4009f030: 43 78 fe eb bl #-401140 +4009f034: 04 00 a0 e1 mov r0, r4 +4009f038: 08 10 a0 e3 mov r1, #8 +4009f03c: 5f 7a fe eb bl #-398980 +4009f040: 04 00 a0 e1 mov r0, r4 +4009f044: 08 10 a0 e3 mov r1, #8 +4009f048: 5c 7a fe eb bl #-398992 +4009f04c: 04 00 a0 e1 mov r0, r4 +4009f050: 3b 78 fe eb bl #-401172 +4009f054: 3c 00 9f e5 ldr r0, [pc, #60] +4009f058: 40 b8 fe eb bl #-335616 +4009f05c: 04 00 a0 e1 mov r0, r4 +4009f060: 2c 7a fe eb bl #-399184 ``` -The memory node addressed by **0x080041ee** is not released after being requested in **MemLeakTest**. +The memory node addressed by **0x4009f040** is not released after being allocated in **MemLeakTest**. diff --git a/en/device-dev/kernel/kernel-small-debug-perf.md b/en/device-dev/kernel/kernel-small-debug-perf.md new file mode 100644 index 0000000000000000000000000000000000000000..819365eb087c7e13d0853ce1149447981f785a22 --- /dev/null +++ b/en/device-dev/kernel/kernel-small-debug-perf.md @@ -0,0 +1,267 @@ +# perf + + +## Basic Concepts + +perf is a performance analysis tool. It uses the performance monitoring unit (PMU) to count sampling events and collect context information and provides hot spot distribution and hot paths. + + +## Working Principles + +When a performance event occurs, the corresponding event counter overflows and triggers an interrupt. The interrupt handler records the event information, including the current PC, task ID, and call stack. + +perf provides two working modes: counting mode and sampling mode. + +In counting mode, perf collects only the number of event occurrences and duration. In sampling mode, perf also collects context data and stores the data in a circular buffer. The IDE then analyzes the data and provides information about hotspot functions and paths. + + +## Available APIs + +The Perf module of the OpenHarmony LiteOS-A kernel provides the following APIs. For details, see the [API reference](https://gitee.com/openharmony/kernel_liteos_a/blob/master/kernel/include/los_perf.h). + + **Table 1** APIs of the perf module + +| Category| Description| +| -------- | -------- | +| Starting or stopping sampling| **LOS_PerfInit**: initializes perf.
**LOS_PerfStart**: starts sampling.
**LOS_PerfStop**: stops sampling. | +| Configuring perf sampling events| **LOS_PerfConfig**: sets the event type and sampling period. | +| Reading sampling data| **LOS_PerfDataRead**: reads the sampling data. | +| Registering a hook for the sampling data buffer| **LOS_PerfNotifyHookReg**: registers the hook to be called when the buffer waterline is reached.
**LOS_PerfFlushHookReg**: registers the hook for flushing the cache in the buffer. | + +**PerfConfigAttr** is the structure of the perf sampling event. For details, see [kernel\include\los_perf.h](https://gitee.com/openharmony/kernel_liteos_a/blob/master/kernel/include/los_perf.h). + +The sampling data buffer is a circular buffer, and only the region that has been read in the buffer can be overwritten. + +The buffer has limited space. You can register a hook to provide a buffer overflow notification or perform buffer read operation when the buffer waterline is reached. The default buffer waterline is 1/2 of the buffer size. The code snippet is as follows: + +```c +VOID Example_PerfNotifyHook(VOID) +{ + CHAR buf[LOSCFG_PERF_BUFFER_SIZE] = {0}; + UINT32 len; + PRINT_DEBUG("perf buffer reach the waterline!\n"); + len = LOS_PerfDataRead(buf, LOSCFG_PERF_BUFFER_SIZE); + OsPrintBuff(buf, len); /* print data */ +} +LOS_PerfNotifyHookReg(Example_PerfNotifyHook); +``` + +If the buffer sampled by perf involves caches across CPUs, you can register a hook for flushing the cache to ensure cache consistency. The code snippet is as follows: + +```c +VOID Example_PerfFlushHook(VOID *addr, UINT32 size) +{ + OsCacheFlush(addr, size); /* platform interface */ +} +LOS_PerfNotifyHookReg(Example_PerfFlushHook); +``` + +The API for flushing the cache is configured based on the platform. + + +## Development Guidelines + + +### Kernel-Mode Development Process + +The typical process of enabling perf is as follows: + +1. Configure the macros related to the perf module. + Configure the perf control macro **LOSCFG_KERNEL_PERF**, which is disabled by default. In the **kernel/liteos_a** directory, run the **make update_config** command, choose **Kernel**, and select **Enable Perf Feature**. + + | Configuration Item| menuconfig Option| Description| Value| + | -------- | -------- | -------- | -------- | + | LOSCFG_KERNEL_PERF | Enable Perf Feature | Whether to enable perf.| YES/NO | + | LOSCFG_PERF_CALC_TIME_BY_TICK | Time-consuming Calc Methods->By Tick | Whether to use tick as the perf timing unit.| YES/NO | + | LOSCFG_PERF_CALC_TIME_BY_CYCLE | Time-consuming Calc Methods->By Cpu Cycle | Whether to use cycle as the perf timing unit.| YES/NO | + | LOSCFG_PERF_BUFFER_SIZE | Perf Sampling Buffer Size | Size of the buffer used for perf sampling.| INT | + | LOSCFG_PERF_HW_PMU | Enable Hardware Pmu Events for Sampling | Whether to enable hardware PMU events. The target platform must support the hardware PMU.| YES/NO | + | LOSCFG_PERF_TIMED_PMU | Enable Hrtimer Period Events for Sampling | Whether to enable high-precision periodical events. The target platform must support the high precision event timer (HPET).| YES/NO | + | LOSCFG_PERF_SW_PMU | Enable Software Events for Sampling | Whether to enable software events. **LOSCFG_KERNEL_HOOK** must also be enabled.| YES/NO | + +2. Call **LOS_PerfConfig** to configure the events to be sampled. + perf provides two working modes and three types of events. + + - Working modes: counting mode (counts only the number of event occurrences) and sampling mode (collects context information such as task IDs, PC, and backtrace) + - Event types: CPU hardware events (such as cycle, branch, icache, and dcache), high-precision periodical events (such as CPU clock), and OS software events (such as task switch, mux pend, and IRQ) +3. Call **LOS_PerfStart(UINT32 sectionId)** at the start of the code to be sampled. The input parameter **sectionId** specifies different sampling session IDs. + +4. Call **LOS_PerfStop** at the end of the code to be sampled. + +5. Call **LOS_PerfDataRead** to read the sampling data and use IDE to analyze the collected data. + + +#### Development Example + +This example implements the following: + +1. Create a perf task. + +2. Configure sampling events. + +3. Start perf. + +4. Execute algorithms for statistics. + +5. Stop perf. + +6. Export the result. + + +#### Sample Code + +Prerequisites: **Enable Hook Feature** and **Enable Software Events for Sampling** are selected for the perf module in **menuconfig**. + +You can compile and verify the sample code in **kernel/liteos_a/testsuites/kernel/src/osTest.c**. + +The code is as follows: + +```c +#include "los_perf.h" +#define TEST_MALLOC_SIZE 200 +#define TEST_TIME 5 + +/* Add malloc() and free() in the test() function. */ +VOID test(VOID) +{ + VOID *p = NULL; + int i; + for (i = 0; i < TEST_TIME; i++) { + p = LOS_MemAlloc(m_aucSysMem1, TEST_MALLOC_SIZE); + if (p == NULL) { + PRINT_ERR("test alloc failed\n"); + return; + } + + (VOID)LOS_MemFree(m_aucSysMem1, p); + } +} + +STATIC VOID OsPrintBuff(const CHAR *buf, UINT32 num) +{ + UINT32 i = 0; + PRINTK("num: "); + for (i = 0; i < num; i++) { + PRINTK(" %02d", i); + } + PRINTK("\n"); + PRINTK("hex: "); + for (i = 0; i < num; i++) { + PRINTK(" %02x", buf[i]); + } + PRINTK("\n"); +} +STATIC VOID perfTestHwEvent(VOID) +{ + UINT32 ret; + CHAR *buf = NULL; + UINT32 len; + + //LOS_PerfInit(NULL, 0); + + + PerfConfigAttr attr = { + .eventsCfg = { + .type = PERF_EVENT_TYPE_SW, + .events = { + [0] = {PERF_COUNT_SW_TASK_SWITCH, 0xff}, /* Collect task scheduling information. */ + [1] = {PERF_COUNT_SW_MEM_ALLOC, 0xff}, /* Collect memory allocation information. */ + + PERF_COUNT_SW_TASK_SWITCH + }, + .eventsNr = 2, + .predivided = 1, /* cycle counter increase every 64 cycles */ + }, + .taskIds = {0}, + .taskIdsNr = 0, + .needSample = 0, + .sampleType = PERF_RECORD_IP | PERF_RECORD_CALLCHAIN, + }; + ret = LOS_PerfConfig(&attr); + if (ret != LOS_OK) { + PRINT_ERR("perf config error %u\n", ret); + return; + } + PRINTK("------count mode------\n"); + LOS_PerfStart(0); + test(); /* this is any test function*/ + LOS_PerfStop(); + PRINTK("--------sample mode------ \n"); + attr.needSample = 1; + LOS_PerfConfig(&attr); + LOS_PerfStart(2); // 2: set the section id to 2. + test(); /* this is any test function*/ + LOS_PerfStop(); + buf = LOS_MemAlloc(m_aucSysMem1, LOSCFG_PERF_BUFFER_SIZE); + if (buf == NULL) { + PRINT_ERR("buffer alloc failed\n"); + return; + } + /* get sample data */ + len = LOS_PerfDataRead(buf, LOSCFG_PERF_BUFFER_SIZE); + OsPrintBuff(buf, len); /* print data */ + (VOID)LOS_MemFree(m_aucSysMem1, buf); +} + +UINT32 Example_Perf_test(VOID) +{ + UINT32 ret; + TSK_INIT_PARAM_S perfTestTask = {0}; + UINT32 taskID; + /* Create a perf task. */ + perfTestTask.pfnTaskEntry = (TSK_ENTRY_FUNC)perfTestHwEvent; + perfTestTask.pcName = "TestPerfTsk"; /* Test task name. */ + perfTestTask.uwStackSize = 0x1000; // 0x8000: perf test task stack size + perfTestTask.usTaskPrio = 5; // 5: perf test task priority + ret = LOS_TaskCreate(&taskID, &perfTestTask); + if (ret != LOS_OK) { + PRINT_ERR("PerfTestTask create failed. 0x%x\n", ret); + return LOS_NOK; + } + return LOS_OK; +} +LOS_MODULE_INIT(perfTestHwEvent, LOS_INIT_LEVEL_KMOD_EXTENDED); +``` + + +#### Verification + + The output is as follows: + +``` +type: 2 +events[0]: 1, 0xff +events[1]: 3, 0xff +predivided: 1 +sampleType: 0x60 +needSample: 0 +------count mode------ +[task switch] eventType: 0x1 [core 0]: 0 +[mem alloc] eventType: 0x3 [core 0]: 5 +time used: 0.005000(s) +--------sample mode------ +type: 2 +events[0]: 1, 0xff +events[1]: 3, 0xff +predivided: 1 +sampleType: 0x60 +needSample: 1 +dump perf data, addr: 0x402c3e6c length: 0x5000 +time used: 0.000000(s) +num: 00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 +hex: 00 ffffffef ffffffef ffffffef 02 00 00 00 14 00 00 00 60 00 00 00 02 00 00 00 + +The print information may vary depending on the running environment. +``` + +- For the counting mode, the following information is displayed after perf is stopped: + Event name (cycles), event type (0xff), and number of event occurrences (5466989440) + + For hardware PMU events, the displayed event type is the hardware event ID, not the abstract type defined in **enum PmuHWId**. + +- For the sampling mode, the address and length of the sampled data will be displayed after perf is stopped: + dump section data, addr: (0x8000000) length: (0x5000) + + You can export the data using the JTAG interface and then use the IDE offline tool to analyze the data. + + You can also call **LOS_PerfDataRead** to read data to a specified address for further analysis. In the example, **OsPrintBuff** is a test API, which prints the sampled data by byte. **num** indicates the sequence number of the byte, and **hex** indicates the value in the byte. diff --git a/en/device-dev/kernel/kernel-small-debug-process-cpu.md b/en/device-dev/kernel/kernel-small-debug-process-cpu.md index 5801bb007bc9edc1b075363a34ba57eb67e3c498..00946584c794a9c2a4258131846da9ec32b0dabb 100644 --- a/en/device-dev/kernel/kernel-small-debug-process-cpu.md +++ b/en/device-dev/kernel/kernel-small-debug-process-cpu.md @@ -3,35 +3,34 @@ ## Basic Concepts -The central processing unit percent \(CPUP\) includes the system CPUP, process CPUP, task CPUP, and interrupt CPUP. With the system CPUP, you can determine whether the current system load exceeds the designed specifications. With the CPUP of each task/process/interrupt, you can determine whether their CPU usage meets expectations of the design. +The central processing unit percent (CPUP) includes the system CPUP, process CPUP, task CPUP, and interrupt CPUP. With the system CPUP, you can determine whether the current system load exceeds the designed specifications. With the CPUP of each task/process/interrupt, you can determine whether their CPU usage meets expectations of the design. -- System CPUP +- System CPUP + System CPUP is the CPU usage of the system within a period of time. It reflects the CPU load and the system running status (idle or busy) in the given period of time. The valid range of the system CPUP is 0 to 100 in percentage. The precision can be adjusted through configuration. The value **100** indicates that the system runs with full load. - System CPUP is the CPU usage of the system within a period of time. It reflects the CPU load and the system running status \(idle or busy\) in the given period of time. The valid range of the system CPUP is 0 to 100 in percentage. The precision can be adjusted through configuration. The value **100** indicates that the system runs with full load. +- Process CPUP + Process CPUP refers to the CPU usage of a single process. It reflects the process status, busy or idle, in a period of time. The valid range of the process CPUP is 0 to 100 in percentage. The precision can be adjusted through configuration. The value **100** indicates that the process is being executed for a period of time. -- Process CPUP +- Task CPUP + Task CPUP refers to the CPU usage of a single task. It reflects the task status, busy or idle, in a period of time. The valid range of task CPUP is 0 to 100 in percentage. The precision can be adjusted through configuration. The value **100** indicates that the task is being executed for the given period of time. - Process CPUP refers to the CPU usage of a single process. It reflects the process status, busy or idle, in a period of time. The valid range of the process CPUP is 0 to 100 in percentage. The precision can be adjusted through configuration. The value **100** indicates that the process is being executed for a period of time. +- Interrupt CPUP + Interrupt CPUP refers to the CPU usage of a single interrupt. It reflects the interrupt status, busy or idle, in a period of time. The valid range of the interrupt CPUP is 0 to 100 in percentage. The precision can be adjusted through configuration. The value **100** indicates that the interrupt is being executed for a period of time. -- Task CPUP - Task CPUP refers to the CPU usage of a single task. It reflects the task status, busy or idle, in a period of time. The valid range of task CPUP is 0 to 100 in percentage. The precision can be adjusted through configuration. The value **100** indicates that the task is being executed for the given period of time. +## Working Principles -- Interrupt CPUP +The OpenHarmony LiteOS-A kernel CPUP module records the CPU usage by process, task, and interrupt. When a process or task is switched, the start time of the process or task is recorded. When the process or task is switched out or exits, the system accumulates the CPU time of the entire process or task. When an interrupt is executed, the system accumulates and records the execution time of each interrupt. - Interrupt CPUP refers to the CPU usage of a single interrupt. It reflects the interrupt status, busy or idle, in a period of time. The valid range of the interrupt CPUP is 0 to 100 in percentage. The precision can be adjusted through configuration. The value **100** indicates that the interrupt is being executed for a period of time. +OpenHarmony provides the following types of CPUP information: +- System CPUP -## Working Principles +- Process CPUP -The OpenHarmony LiteOS-A kernel CPUP module records the CPU usage by process, task, and interrupt. When a process or task is switched, the start time of the process or task is recorded. When the process or task is switched out or exits, the system accumulates the CPU time of the entire process or task. When an interrupt is executed, the system accumulates and records the execution time of each interrupt. +- Task CPUP -OpenHarmony provides the following types of CPUP information: - -- System CPUP -- Process CPUP -- Task CPUP -- Interrupt CPUP +- Interrupt CPUP The CPUP is calculated as follows: @@ -43,136 +42,111 @@ Task CPUP = Total running time of the task/Total running time of the system Interrupt CPUP = Total running time of the interrupt/Total running time of the system -## Development Guidelines - -### Available APIs - -**Table 1** CPUP module APIs - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Function

-

API

-

Description

-

System CPUP

-

LOS_HistorySysCpuUsage

-

Obtains the historical CPUP of the system.

-

Process CPUP

-

LOS_HistoryProcessCpuUsage

-

Obtains the historical CPUP of a specified process.

-

LOS_GetAllProcessCpuUsage

-

Obtains the historical CPUP of all processes in the system.

-

Task CPUP

-

LOS_HistoryTaskCpuUsage

-

Obtains the historical CPUP of a specified task.

-

Interrupt CPUP

-

LOS_GetAllIrqCpuUsage

-

Obtains the historical CPUP of all interrupts in the system.

-
- -### How to Develop - -The typical CPUP development process is as follows. - -1. Call **LOS\_HistorySysCpuUsage** to obtain the historical CPUP of the system. -2. Call **LOS\_HistoryProcessCpuUsage** to obtain the historical CPUP of a specified process. - - If the process has been created, disable interrupt, obtain the CPUP in different modes, and then enable interrupt. - - If the process is not created, return an error code. - -3. Call **LOS\_GetAllProcessCpuUsage** to obtain the CPUP of all processes. - - If the CPUP has been initialized, disable interrupt, obtain the CPUP in different modes, and then enable interrupt. - - If CPUP is not initialized or has invalid input parameters, return an error code. - -4. Call **LOS\_HistoryTaskCpuUsage** to obtain the historical CPUP of a specified task. - - If the task has been created, disable interrupt, obtain the CPUP in different modes, and then enable interrupt. - - If the task is not created, return an error code. - -5. Call **LOS\_GetAllIrqCpuUsage** to obtain the CPUP of all interrupts. - - If the CPUP has been initialized, disable interrupt, obtain the CPUP in different modes, and then enable interrupt. - - If CPUP has not been initialized or has invalid input parameters, return an error code. - - -### Development Example + +## Development Guidelines + + +### Available APIs + + **Table 1** CPUP module APIs + +| Category| API| Description| +| -------- | -------- | -------- | +| System CPUP| LOS_HistorySysCpuUsage | Obtains the historical CPUP of the system.| +| Process CPUP| LOS_HistoryProcessCpuUsage | Obtains the historical CPUP of a specified process.| +| Process CPUP| LOS_GetAllProcessCpuUsage | Obtains the historical CPUP of all processes in the system.| +| Task CPUP| LOS_HistoryTaskCpuUsage | Obtains the historical CPUP of a specified task.| +| Interrupt CPUP| LOS_GetAllIrqCpuUsage | Obtains the historical CPUP of all interrupts in the system.| +| Reset| LOS_CpupReset | Resets CPUP data.| + + +### How to Develop + +The typical CPUP development process is as follows: + +1. Call **LOS_HistorySysCpuUsage** to obtain the historical CPUP of the system. + +2. Call **LOS_HistoryProcessCpuUsage** to obtain the historical CPUP of a specified process. + - If the process has been created, disable interrupt, obtain the CPUP in different modes, and then enable interrupt. + - If the process is not created, return an error code. + +3. Call **LOS_GetAllProcessCpuUsage** to obtain the CPUP of all processes. + - If the CPUP is initialized, disable interrupt, obtain the CPUP in different modes, and then enable interrupt. + - If CPUP is not initialized or has invalid input parameters, return an error code. + +4. Call **LOS_HistoryTaskCpuUsage** to obtain the historical CPUP of a specified task. + - If the task has been created, disable interrupt, obtain the CPUP in different modes, and then enable interrupt. + - If the task is not created, return an error code. + +5. Call **LOS_GetAllIrqCpuUsage** to obtain the CPUP of all interrupts. + - If the CPUP has been initialized, disable interrupt, obtain the CPUP in different modes, and then enable interrupt. + - If CPUP is not initialized or has invalid input parameters, return an error code. + + +### Development Example This example implements the following: -1. Create a task for the CPUP test. -2. Obtain the CPUP of the current system. -3. Obtain the historical system CPUP in different modes. -4. Obtain the CPUP of the created test task. -5. Obtain the CPUP of the created test task in different modes. +1. Create a task for the CPUP test. + +2. Obtain the CPUP of the current system. -Prerequisites +3. Obtain the historical system CPUP in different modes. -The CPUP control is enabled in the **menuconfig** configuration. +4. Obtain the CPUP of the created test task. + +5. Obtain the CPUP of the created test task in different modes. + +Prerequisites: + +The CPUP control is enabled in the **menuconfig** configuration. **Sample Code** +You can compile and verify the sample code in **kernel/liteos_a/testsuites /kernel/src /osTest.c**. The **CpupTest** function is called in **TestTaskEntry**. The sample code is as follows: -``` + +```c #include "los_task.h" -#include "los_cpup.h" +#include "los_cpup.h" #define MODE 4 -UINT32 g_cpuTestTaskID; -VOID ExampleCpup(VOID) -{ - printf("entry cpup test example\n"); - while(1) { - usleep(100); +UINT32 g_cpuTestTaskID; +VOID ExampleCpup(VOID) +{ + int i = 0; + dprintf("entry cpup test example\n"); + for (i = 0; i < 10; i++) { + usleep(100); // 100: delay for 100ms } } -UINT32 ItCpupTest(VOID) -{ +UINT32 CpupTest(VOID) +{ UINT32 ret; UINT32 cpupUse; - TSK_INIT_PARAM_S cpupTestTask = { 0 }; + TSK_INIT_PARAM_S cpupTestTask = {0}; memset(&cpupTestTask, 0, sizeof(TSK_INIT_PARAM_S)); cpupTestTask.pfnTaskEntry = (TSK_ENTRY_FUNC)ExampleCpup; - cpupTestTask.pcName = "TestCpupTsk"; - cpupTestTask.uwStackSize = 0x800; - cpupTestTask.usTaskPrio = 5; + cpupTestTask.pcName = "TestCpupTsk"; + cpupTestTask.uwStackSize = 0x800; // 0x800: cpup test task stack size + cpupTestTask.usTaskPrio = 5; // 5: cpup test task priority ret = LOS_TaskCreate(&g_cpuTestTaskID, &cpupTestTask); - if(ret != LOS_OK) { + if (ret != LOS_OK) { printf("cpupTestTask create failed .\n"); return LOS_NOK; } - usleep(100); + usleep(100); // 100: delay for 100ms - /* Obtain the historical CPUP of the system. */ - cpupUse = LOS_HistorySysCpuUsage(CPU_LESS_THAN_1S); - printf("the history system cpu usage in all time: %u.%u\n", + /* Obtain the historical CPUP of the system. */ + cpupUse = LOS_HistorySysCpuUsage(CPUP_LAST_ONE_SECONDS); + dprintf("the history system cpu usage in all time: %u.%u\n", cpupUse / LOS_CPUP_PRECISION_MULT, cpupUse % LOS_CPUP_PRECISION_MULT); - /* Obtain the CPUP of the specified task (cpupTestTask in this example).*/ - cpupUse = LOS_HistoryTaskCpuUsage(g_cpuTestTaskID, CPU_LESS_THAN_1S); - printf("cpu usage of the cpupTestTask in all time:\n TaskID: %d\n usage: %u.%u\n", - g_cpuTestTaskID, cpupUse / LOS_CPUP_PRECISION_MULT, cpupUse % LOS_CPUP_PRECISION_MULT); - return LOS_OK; + /* Obtain the CPUP of the specified task (cpupTestTask in this example). */ + cpupUse = LOS_HistoryTaskCpuUsage(g_cpuTestTaskID, CPUP_LAST_ONE_SECONDS); + dprintf("cpu usage of the cpupTestTask in all time:\n TaskID: %d\n usage: %u.%u\n", + g_cpuTestTaskID, cpupUse / LOS_CPUP_PRECISION_MULT, cpupUse % LOS_CPUP_PRECISION_MULT); + return LOS_OK; } ``` @@ -180,9 +154,12 @@ UINT32 ItCpupTest(VOID) The development is successful if the return result is as follows: + ``` entry cpup test example the history system cpu usage in all time: 3.0 cpu usage of the cpupTestTask in all time: TaskID:10 usage: 0.0 + +The print information may vary depending on the running environment. ``` diff --git a/en/device-dev/kernel/kernel-small-debug-trace.md b/en/device-dev/kernel/kernel-small-debug-trace.md index df41fd67f3d7d2ddc196e1ea4ddc3c10e701aa95..16831db5798ed777d5394c0fe61176dcdccf04b4 100644 --- a/en/device-dev/kernel/kernel-small-debug-trace.md +++ b/en/device-dev/kernel/kernel-small-debug-trace.md @@ -28,92 +28,89 @@ The online mode must be used with the integrated development environment (IDE). The trace module of the OpenHarmony LiteOS-A kernel provides the following APIs. For more details, see [API reference](https://gitee.com/openharmony/kernel_liteos_a/blob/master/kernel/include/los_trace.h). - **Table 1** APIs of the trace module +**Table 1** APIs of the trace module | Category| Description| | -------- | -------- | -| Starting/Stopping trace| **LOS_TraceStart**: starts trace.
**LOS_TraceStop**: stops trace. | -| Managing trace records| **LOS_TraceRecordDump**: dumps data from the trace buffer.
**LOS_TraceRecordGet**: obtains the start address of the trace buffer.
**LOS_TraceReset**: clears events in the trace buffer. | +| Starting/Stopping trace| **LOS_TraceStart**: starts trace.
**LOS_TraceStop**: stops trace.| +| Managing trace records| **LOS_TraceRecordDump**: dumps data from the trace buffer.
**LOS_TraceRecordGet**: obtains the start address of the trace buffer.
**LOS_TraceReset**: clears events in the trace buffer.| | Filtering trace records| **LOS_TraceEventMaskSet**: sets the event mask to trace only events of the specified modules.| | Masking events of specified interrupt IDs| **LOS_TraceHwiFilterHookReg**: registers a hook to filter out events of specified interrupt IDs.| -| Performing function instrumentation| **LOS_TRACE_EASY**: performs simple instrumentation.
**LOS_TRACE**: performs standard instrumentation. | - -You can perform function instrumentation in the source code to trace specific events. The system provides the following APIs for instrumentation: - -- **LOS_TRACE_EASY(TYPE, IDENTITY, params...)** for simple instrumentation - - - You only need to insert this API into the source code. - - **TYPE** specifies the event type. The value range is 0 to 0xF. The meaning of each value is user-defined. - - **IDENTITY** specifies the object of the event operation. The value is of the **UIntPtr** type. - - **Params** specifies the event parameters. The value is of the **UIntPtr** type. - Example: - - ``` - Perform simple instrumentation for reading and writing files fd1 and fd2. - Set TYPE to 1 for read operations and 2 for write operations. - Insert the following to the position where the fd1 file is read: - LOS_TRACE_EASY(1, fd1, flag, size); - Insert the following to the position where the fd2 file is read: - LOS_TRACE_EASY(1, fd2, flag, size); - Insert the following to the position where the fd1 file is written: - LOS_TRACE_EASY(2, fd1, flag, size); - Insert the following in the position where the fd2 file is written: - LOS_TRACE_EASY(2, fd2, flag, size); - ``` -- **LOS_TRACE(TYPE, IDENTITY, params...)** for standard instrumentation. - - Compared with simple instrumentation, standard instrumentation supports dynamic event filtering and parameter tailoring. However, you need to extend the functions based on rules. - - **TYPE** specifies the event type. You can define the event type in **enum LOS_TRACE_TYPE** in the header file **los_trace.h**. For details about methods and rules for defining events, see other event types. - - The **IDENTITY** and **Params** are the same as those of simple instrumentation. - Example: - - ``` - 1. Set the event mask (module-level event type) in enum LOS_TRACE_MASK. - Format: TRACE_#MOD#_FLAG (MOD indicates the module name) +| Performing function instrumentation| **LOS_TRACE_EASY**: performs simple instrumentation.
**LOS_TRACE**: performs standard instrumentation.| + +- You can perform function instrumentation in the source code to trace specific events. The system provides the following APIs for instrumentation: + - **LOS_TRACE_EASY(TYPE, IDENTITY, params...)** for simple instrumentation + - You only need to insert this API into the source code. + - **TYPE** specifies the event type. The value range is 0 to 0xF. The meaning of each value is user-defined. + - **IDENTITY** specifies the object of the event operation. The value is of the **UIntPtr** type. + - **Params** specifies the event parameters. The value is of the **UIntPtr** type. Example: - TRACE_FS_FLAG = 0x4000 - 2. Define the event type in **enum LOS_TRACE_TYPE**. - Format: #TYPE# = TRACE_#MOD#_FLAG | NUMBER - Example: - FS_READ = TRACE_FS_FLAG | 0; // Read files. - FS_WRITE = TRACE_FS_FLAG | 1; // Write files. - 3. Set event parameters in the #TYPE#_PARAMS(IDENTITY, parma1...) IDENTITY, ... format. - #TYPE# is the #TYPE# defined in step 2. - Example: - #define FS_READ_PARAMS(fp, fd, flag, size) fp, fd, flag, size - The parameters defined by the macro correspond to the event parameters recorded in the trace buffer. You can modify the parameters as required. - If no parameter is specified, events of this type are not traced. - #define FS_READ_PARAMS(fp, fd, flag, size) // File reading events are not traced. - 4. Insert a code stub in a proper position. - Format: LOS_TRACE(#TYPE#, #TYPE#_PARAMS(IDENTITY, parma1...)) - LOS_TRACE(FS_READ, fp, fd, flag, size); // Code stub for reading files. - The parameters following #TYPE# are the input parameter of the **FS_READ_PARAMS** function in step 3. - ``` - - > ![icon-note.gif](public_sys-resources/icon-note.gif) **NOTE**
- > The trace event types and parameters can be modified as required. For details about the parameters, see **kernel\include\los_trace.h**. - -For **LOS_TraceEventMaskSet(UINT32 mask)**, only the most significant 28 bits (corresponding to the enable bit of the module in **LOS_TRACE_MASK**) of the mask take effect and are used only for module-based tracing. Currently, fine-grained event-based tracing is not supported. For example, in **LOS_TraceEventMaskSet(0x202)**, the effective mask is **0x200 (TRACE_QUE_FLAG)** and all events of the QUE module are collected. The recommended method is **LOS_TraceEventMaskSet(TRACE_EVENT_FLAG | TRACE_MUX_FLAG | TRACE_SEM_FLAG | TRACE_QUE_FLAG);**. -To enable trace of only simple instrumentation events, set **Trace Mask** to **TRACE_MAX_FLAG**. - -The trace buffer has limited capacity. When the trace buffer is full, events will be overwritten. You can use **LOS_TraceRecordDump** to export data from the trace buffer and locate the latest records by **CurEvtIndex**. - -The typical trace operation process includes **LOS_TraceStart**, **LOS_TraceStop**, and **LOS_TraceRecordDump**. - -You can filter out interrupt events by interrupt ID to prevent other events from being overwritten due to frequent triggering of a specific interrupt in some scenarios. You can customize interrupt filtering rules. - -Example: + ``` + Perform simple instrumentation for reading and writing files fd1 and fd2. + Set TYPE to 1 for read operations and 2 for write operations. + Insert the following to the position where the fd1 file is read: + LOS_TRACE_EASY(1, fd1, flag, size); + Insert the following to the position where the fd2 file is read: + LOS_TRACE_EASY(1, fd2, flag, size); + Insert the following to the position where the fd1 file is written: + LOS_TRACE_EASY(2, fd1, flag, size); + Insert the following in the position where the fd2 file is written: + LOS_TRACE_EASY(2, fd2, flag, size); + ``` + - **LOS_TRACE(TYPE, IDENTITY, params...)** for standard instrumentation. + - Compared with simple instrumentation, standard instrumentation supports dynamic event filtering and parameter tailoring. However, you need to extend the functions based on rules. + - **TYPE** specifies the event type. You can define the event type in **enum LOS_TRACE_TYPE** in the header file **los_trace.h**. For details about methods and rules for defining events, see other event types. + - The **IDENTITY** and **Params** are the same as those of simple instrumentation. + Example: -``` -BOOL Example_HwiNumFilter(UINT32 hwiNum) -{ - if ((hwiNum == TIMER_INT) || (hwiNum == DMA_INT)) { - return TRUE; - } - return FALSE; -} -LOS_TraceHwiFilterHookReg(Example_HwiNumFilter); -``` + ``` + 1. Set the event mask (module-level event type) in enum LOS_TRACE_MASK. + Format: TRACE_#MOD#_FLAG (MOD indicates the module name) + Example: + TRACE_FS_FLAG = 0x4000 + 2. Define the event type in **enum LOS_TRACE_TYPE**. + Format: #TYPE# = TRACE_#MOD#_FLAG | NUMBER + Example: + FS_READ = TRACE_FS_FLAG | 0; // Read files. + FS_WRITE = TRACE_FS_FLAG | 1; // Write files. + 3. Set event parameters in the #TYPE#_PARAMS(IDENTITY, parma1...) IDENTITY, ... format. + #TYPE# is the #TYPE# defined in step 2. + Example: + #define FS_READ_PARAMS(fp, fd, flag, size) fp, fd, flag, size + The parameters defined by the macro correspond to the event parameters recorded in the trace buffer. You can modify the parameters as required. + If no parameter is specified, events of this type are not traced. + #define FS_READ_PARAMS(fp, fd, flag, size) // File reading events are not traced. + 4. Insert a code stub in a proper position. + Format: LOS_TRACE(#TYPE#, #TYPE#_PARAMS(IDENTITY, parma1...)) + LOS_TRACE(FS_READ, fp, fd, flag, size); // Code stub for reading files. + #The parameters following #TYPE# are the input parameter of the **FS_READ_PARAMS** function in step 3. + ``` + + > **NOTE**
+ > The preset trace events and parameters can be tailored in the same way. For details about the parameters, see [kernel\include\los_trace.h](https://gitee.com/openharmony/kernel_liteos_a/blob/master/kernel/include/los_trace.h). + +- For **LOS_TraceEventMaskSet(UINT32 mask)**, only the most significant 28 bits (corresponding to the enable bit of the module in **LOS_TRACE_MASK**) of the mask take effect and are used only for module-based tracing. Currently, fine-grained event-based tracing is not supported. For example, in **LOS_TraceEventMaskSet(0x202)**, the effective mask is **0x200 (TRACE_QUE_FLAG)** and all events of the QUE module are collected. The recommended method is **LOS_TraceEventMaskSet(TRACE_EVENT_FLAG | TRACE_MUX_FLAG | TRACE_SEM_FLAG | TRACE_QUE_FLAG);**. + +- To enable trace of only simple instrumentation events, set **Trace Mask** to **TRACE_MAX_FLAG**. + +- The trace buffer has limited capacity. When the trace buffer is full, events will be overwritten. You can use **LOS_TraceRecordDump** to export data from the trace buffer and locate the latest records by **CurEvtIndex**. + +- The typical trace operation process includes **LOS_TraceStart**, **LOS_TraceStop**, and **LOS_TraceRecordDump**. + +- You can filter out interrupt events by interrupt ID to prevent other events from being overwritten due to frequent triggering of a specific interrupt in some scenarios. You can customize interrupt filtering rules. + Example: + + ```c + BOOL Example_HwiNumFilter(UINT32 hwiNum) + { + if ((hwiNum == TIMER_INT) || (hwiNum == DMA_INT)) { + return TRUE; + } + return FALSE; + } + LOS_TraceHwiFilterHookReg(Example_HwiNumFilter); + ``` The interrupt events with interrupt ID of **TIMER_INT** or **DMA_INT** are not traced. @@ -128,8 +125,8 @@ The trace character device is added in **/dev/trace**. You can use **read()**, * - **ioctl()**: performs user-mode trace operations, including: - -``` + +```c #define TRACE_IOC_MAGIC 'T' #define TRACE_START _IO(TRACE_IOC_MAGIC, 1) #define TRACE_STOP _IO(TRACE_IOC_MAGIC, 2) @@ -151,25 +148,24 @@ For details, see [User-Mode Development Example](kernel-small-debug-trace.md#use The typical trace process is as follows: 1. Configure the macro related to the trace module. - Configure the macro **LOSCFG_KERNEL_TRACE**, which is disabled by default. Run the **make update_config** command in the **kernel/liteos_a** directory, choose **Kernel** > **Enable Hook Feature**, and set **Enable Trace Feature** to **YES**. - -| Configuration Item | menuconfig Option| Description| Value| -| -------- | -------- | -------- | -------- | -| LOSCFG_KERNEL_TRACE | Enable Trace Feature | Specifies whether to enable the trace feature.| YES/NO | -| LOSCFG_RECORDER_MODE_OFFLINE | Trace work mode ->Offline mode | Specifies whether to enable the online trace mode.| YES/NO | -| LOSCFG_RECORDER_MODE_ONLINE | Trace work mode ->Online mode | Specifies whether to enable the offline trace mode.| YES/NO | -| LOSCFG_TRACE_CLIENT_INTERACT | Enable Trace Client Visualization and Control | Enables interaction with Trace IDE (dev tools), including data visualization and process control.| YES/NO | -| LOSCFG_TRACE_FRAME_CORE_MSG | Enable Record more extended content -
>Record cpuid, hardware interrupt
 status, task lock status | Specifies whether to enable recording of the CPU ID, interruption state, and lock task state.| YES/NO | -| LOSCFG_TRACE_FRAME_EVENT_COUNT | Enable Record more extended content
 ->Record event count,
 which indicate the sequence of happend events | Specifies whether to enables recording of the event sequence number.| YES/NO | -| LOSCFG_TRACE_FRAME_MAX_PARAMS | Record max params | Specifies the maximum number of parameters for event recording.| INT | -| LOSCFG_TRACE_BUFFER_SIZE | Trace record buffer size | Specifies the trace buffer size.| INT | + + | Item| menuconfig Option| Description| Value| + | -------- | -------- | -------- | -------- | + | LOSCFG_KERNEL_TRACE | Enable Trace Feature | Specifies whether to enable the trace feature.| YES/NO | + | LOSCFG_RECORDER_MODE_OFFLINE | Trace work mode -> Offline mode | Specifies whether to enable the online trace mode.| YES/NO | + | LOSCFG_RECORDER_MODE_ONLINE | Trace work mode -> Online mode | Specifies whether to enable the offline trace mode.| YES/NO | + | LOSCFG_TRACE_CLIENT_INTERACT | Enable Trace Client Visualization and Control | Enables interaction with Trace IDE (dev tools), including data visualization and process control.| YES/NO | + | LOSCFG_TRACE_FRAME_CORE_MSG | Enable Record more extended content -> Record cpuid, hardware interrupt status, task lock status | Specifies whether to enable recording of the CPU ID, interruption state, and lock task state.| YES/NO | + | LOSCFG_TRACE_FRAME_EVENT_COUNT | Enable Record more extended content -> Record event count, which indicate the sequence of happend events | Specifies whether to enables recording of the event sequence number.| YES/NO | + | LOSCFG_TRACE_FRAME_MAX_PARAMS | Record max params | Specifies the maximum number of parameters for event recording.| INT | + | LOSCFG_TRACE_BUFFER_SIZE | Trace record buffer size | Specifies the trace buffer size.| INT | 2. (Optional) Preset event parameters and stubs (or use the default event parameter settings and event stubs). 3. (Optional) Call **LOS_TraceStop** to stop trace and call **LOS_TraceReset** to clear the trace buffer. (Trace is started by default.) -4. (Optional) Call **LOS_TraceEventMaskSet** to set the event mask for trace (only the interrupts and task events are enabled by default). For details about the event mask, see **LOS_TRACE_MASK** in **los_trace.h**. +4. (Optional) Call **LOS_TraceEventMaskSet** to set the mask of the events to be traced. The default event mask enables only trace of interrupts and task events. For details about the event masks, see **LOS_TRACE_MASK** in [los_trace.h](https://gitee.com/openharmony/kernel_liteos_a/blob/master/kernel/include/los_trace.h). 5. Call **LOS_TraceStart** at the start of the code where the event needs to be traced. @@ -177,7 +173,7 @@ The typical trace process is as follows: 7. Call **LOS_TraceRecordDump** to output the data in the buffer. (The input parameter of the function is of the Boolean type. The value **FALSE** means to output data in the specified format, and the value **TRUE** means to output data to Trace IDE.) -The methods in steps 3 to 7 are encapsulated with shell commands. You can run these commands on shell. The mappings between the functions and commands are as follows: +The methods in steps 3 to 7 are encapsulated with shell commands. You can run these commands on shell. The mappings between the methods and commands are as follows: - LOS_TraceReset —— trace_reset @@ -207,50 +203,53 @@ This example implements the following: ### Kernel-Mode Sample Code +You can add the test function of the sample code to **TestTaskEntry** in **kernel/liteos_a/testsuites /kernel /src/osTest.c** for testing. + The sample code is as follows: -``` +```c #include "los_trace.h" UINT32 g_traceTestTaskId; VOID Example_Trace(VOID) -{ - UINT32 ret; +{ + UINT32 ret; LOS_TaskDelay(10); /* Start trace. */ - ret = LOS_TraceStart(); - if (ret != LOS_OK) { - dprintf("trace start error\n"); - return; - } - /* Trigger a task switching event. */ - LOS_TaskDelay(1); - LOS_TaskDelay(1); - LOS_TaskDelay(1); - /* Stop trace. */ - LOS_TraceStop(); + ret = LOS_TraceStart(); + if (ret != LOS_OK) { + dprintf("trace start error\n"); + return; + } + /* Trigger a task switching event. */ + LOS_TaskDelay(1); + LOS_TaskDelay(1); + LOS_TaskDelay(1); + /* Stop trace. */ + LOS_TraceStop(); LOS_TraceRecordDump(FALSE); } -UINT32 Example_Trace_test(VOID){ - UINT32 ret; - TSK_INIT_PARAM_S traceTestTask; - /* Create a trace task. */ - memset(&traceTestTask, 0, sizeof(TSK_INIT_PARAM_S)); - traceTestTask.pfnTaskEntry = (TSK_ENTRY_FUNC)Example_Trace; - traceTestTask.pcName = "TestTraceTsk"; /* Test task name. */ - traceTestTask.uwStackSize = 0x800; - traceTestTask.usTaskPrio = 5; - traceTestTask.uwResved = LOS_TASK_STATUS_DETACHED; - ret = LOS_TaskCreate(&g_traceTestTaskId, &traceTestTask); - if(ret != LOS_OK){ - dprintf("TraceTestTask create failed .\n"); - return LOS_NOK; - } +UINT32 Example_Trace_test(VOID) +{ + UINT32 ret; + TSK_INIT_PARAM_S traceTestTask; + /* Create a trace task. */ + memset(&traceTestTask, 0, sizeof(TSK_INIT_PARAM_S)); + traceTestTask.pfnTaskEntry = (TSK_ENTRY_FUNC)Example_Trace; + traceTestTask.pcName = "TestTraceTsk"; /* Test task name. */ + traceTestTask.uwStackSize = 0x800; // 0x800: trace test task stack size + traceTestTask.usTaskPrio = 5; // 5: trace test task priority + traceTestTask.uwResved = LOS_TASK_STATUS_DETACHED; + ret = LOS_TaskCreate(&g_traceTestTaskId, &traceTestTask); + if (ret != LOS_OK) { + dprintf("TraceTestTask create failed .\n"); + return LOS_NOK; + } /* Trace is started by default. Therefore, you can stop trace, clear the buffer, and then start trace. */ - LOS_TraceStop(); - LOS_TraceReset(); - /* Enable trace of the Task module events. */ - LOS_TraceEventMaskSet(TRACE_TASK_FLAG); + LOS_TraceStop(); + LOS_TraceReset(); + /* Enable trace of the Task module events. */ + LOS_TraceEventMaskSet(TRACE_TASK_FLAG); return LOS_OK; } LOS_MODULE_INIT(Example_Trace_test, LOS_INIT_LEVEL_KMOD_EXTENDED); @@ -266,7 +265,7 @@ The output is as follows: ***TraceInfo begin*** clockFreq = 50000000 CurEvtIndex = 7 -Index Time(cycles) EventType CurTask Identity params +Index Time(cycles) EventType CurTask Identity params 0 0x366d5e88 0x45 0x1 0x0 0x1f 0x4 0x0 1 0x366d74ae 0x45 0x0 0x1 0x0 0x8 0x1f 2 0x36940da6 0x45 0x1 0xc 0x1f 0x4 0x9 @@ -280,13 +279,13 @@ Index Time(cycles) EventType CurTask Identity params The output event information includes the occurrence time, event type, task in which the event occurs, object of the event operation, and other parameters of the event. -- **EventType**: event type. For details, see **enum LOS_TRACE_TYPE** in the header file **los_trace.h**. +- **EventType**: type of the event. For details, see **enum LOS_TRACE_TYPE** in [los_trace.h](https://gitee.com/openharmony/kernel_liteos_a/blob/master/kernel/include/los_trace.h). - **CurrentTask**: ID of the running task. -- **Identity**: object of the event operation. For details, see **#TYPE#_PARAMS** in the header file **los_trace.h**. +- **Identity**: object of the event operation. For details, see **\#TYPE\#_PARAMS** in [los_trace.h](https://gitee.com/openharmony/kernel_liteos_a/blob/master/kernel/include/los_trace.h). -- **params**: event parameters. For details, see **#TYPE#_PARAMS** in the header file **los_trace.h**. +- **params**: event parameters. For details, see **\#TYPE\#_PARAMS** in [los_trace.h](https://gitee.com/openharmony/kernel_liteos_a/blob/master/kernel/include/los_trace.h). The following uses output No. 0 as an example. @@ -302,14 +301,15 @@ Index Time(cycles) EventType CurTask Identity params - For details about the meanings of **Identity** and **params**, see the **TASK_SWITCH_PARAMS** macro. -``` +```c #define TASK_SWITCH_PARAMS(taskId, oldPriority, oldTaskStatus, newPriority, newTaskStatus) \ taskId, oldPriority, oldTaskStatus, newPriority, newTaskStatus ``` Because of **#TYPE#_PARAMS(IDENTITY, parma1...) IDENTITY, ...**, **Identity** is **taskId (0x0)** and the first parameter is **oldPriority (0x1f)**. -> ![icon-note.gif](public_sys-resources/icon-note.gif) **NOTE** +> **NOTE** +> > The number of parameters in **params** is specified by **LOSCFG_TRACE_FRAME_MAX_PARAMS**. The default value is **3**. Excess parameters are not recorded. You need to set **LOSCFG_TRACE_FRAME_MAX_PARAMS** based on service requirements. Task 0x1 is switched to Task 0x0. The priority of task 0x1 is **0x1f**, and the state is **0x4**. The priority of the task 0x0 is **0x0**. diff --git a/en/device-dev/kernel/kernel-small-debug-user.md b/en/device-dev/kernel/kernel-small-debug-user.md index 3a852dae6af647df07ad01dacf12d4cd6dcd92f1..fbdfc0d131f8018f3ceeac1fd9764e99ca5db79f 100644 --- a/en/device-dev/kernel/kernel-small-debug-user.md +++ b/en/device-dev/kernel/kernel-small-debug-user.md @@ -1,11 +1,10 @@ # User-Mode Memory Debugging ## Basic Concepts +The musl libc library of the debug version provides mechanisms, such as memory leak check, heap memory statistics, memory corruption check, and backtrace, to improve the efficiency in locating memory problems in user space. -The musl libc library of the debug version provides maintenance and test methods, such as memory leak check, heap memory statistics, memory corruption check, and backtrace, to improve the efficiency of locating memory problems in user space. - -Instrumentation is performed on the **malloc** and **free** APIs to log key node information. When memory is requested and released by a program, the memory node integrity is checked. When the program ends, memory statistics are provided for identifying memory leaks. +Instrumentation is performed in the **malloc** and **free** APIs to log key node information. The memory node integrity is checked when memory is requested and released by an application. When the application ends, memory statistics are provided to help identifying memory leaks. ## Working Principles @@ -18,15 +17,15 @@ When memory is requested, key information is saved to the memory node control bl When memory is released, the system matches the memory node control block based on the memory address to be released and deletes the control block. - **Figure 1** Heap memory node linked list +**Figure 1** Heap memory node linked list - ![](figures/heap-memory-node-linked-list.png "heap-memory-node-linked-list") +![](figures/heap-memory-node-linked-list.png "heap-memory-node-linked-list") -When memory is allocated, the returned address is saved in a link register (LR). During the process running, the system adds information, such as the LR corresponding to the suspected leak, to the memory node control block. shows the heap memory node information. +When memory is allocated, the returned address is saved in a link register (LR). During the process running, the system adds information, such as the LR corresponding to the suspected leak, to the memory node control block. The following figure shows the heap memory node information. - **Figure 2** Heap memory node information +**Figure 2** Heap memory node information - ![](figures/heap-memory-node-information.png "heap-memory-node-information") +![](figures/heap-memory-node-information.png "heap-memory-node-information") **TID** indicates the thread ID; **PID** indicates the process ID; **ptr** indicates the address of the memory requested; **size** indicates the size of the requested memory; **lr[*n*]** indicates the address of the call stack, and *n* is configurable. @@ -34,9 +33,9 @@ When memory is released, the input parameter pointer in the **free** API is used You can export the memory debugging information of each process through the serial port or file, and use the addr2line tool to convert the exported information into the code lines that cause memory leaks. In this way, the memory leakage problem can be solved. - **Figure 3** Process of locating the code line for a memory leak +**Figure 3** Process of locating the code line for a memory leak - ![](figures/process-of-locating-the-code-lines-for-a-memory-leak.png "process-of-locating-the-code-lines-for-a-memory-leak") +![](figures/process-of-locating-the-code-lines-for-a-memory-leak.png "process-of-locating-the-code-lines-for-a-memory-leak") ### Heap Memory Statistics @@ -46,25 +45,33 @@ You can collect statistics on the percentage of heap memory requested by each th ### Memory Integrity Check -- If the memory requested by using **malloc** is less than or equal to 0x1c000 bytes, the heap allocation algorithm is used to allocate memory. +- Requested memory less than or equal to 0x1c000 bytes + + When the requested memory is less than or equal to 0x1c000 bytes, **malloc** uses the heap allocation algorithm to allocate memory. + When a user program requests heap memory, information such as the check value is added to the heap memory node. If the check value is abnormal, it is probably that the previous heap memory block is overwritten. Currently, the scenario where the check value is damaged by a wild pointer cannot be identified. When memory is allocated or released, the memory node check value is verified. If the memory node is corrupted and the verification fails, the following information is output: TID, PID, and call stack information saved when the previous heap memory block of the corrupted node is allocated. You can use the addr2line tool to obtain the specific code line and rectify the fault. + + **Figure 4** Adding a check value to the node header information + + ![](figures/adding-a-check-value-to-the-node-header-information.png "adding-a-check-value-to-the-node-header-information") + + When heap memory is released by **free**, the memory block is not released immediately. Instead, the magic number 0xFE is written into the memory block, which is then placed in the free queue to prevent the memory block from being allocated by **malloc** within a certain period of time. When a wild pointer or **use-after-free** operation is performed to read the memory, an exception can be detected. However, this mechanism does not apply to write operations. + + **Figure 5** Process of releasing memory + + ![](figures/process-of-releasing-memory.png "process-of-releasing-memory") + + + +- Requested memory greater than 0x1c000 bytes - **Figure 4** Adding a check value to the node header information - - ![](figures/adding-a-check-value-to-the-node-header-information.png "adding-a-check-value-to-the-node-header-information") - - When heap memory is released by using **free**, the memory block is not released immediately. Instead, the magic number 0xFE is written into the memory block, which is then placed in the free queue to prevent the memory block from being allocated by **malloc** within a certain period of time. When a wild pointer or **use-after-free** operation is performed to read the memory, an exception can be detected. However, this mechanism does not apply to write operations. - - **Figure 5** Process of releasing memory - - ![](figures/process-of-releasing-memory.png "process-of-releasing-memory") + When the requested memory is greater than 0x1c000 bytes, **malloc** uses **mmap** to allocate memory. -- If the memory requested by using **malloc** is greater than 0x1c000 bytes, **mmap** is used to allocate memory. - When **mmap** is used to request a large memory block, one more page is allocated at the start and end of the memory region. The current **PAGE_SIZE** of each page is **0x1000**. The permissions of the two pages are set to **PROT_NONE** (no read or write permission) by using the **mprotect** API to prevent out-of-bounds read and write of memory. If out-of-bounds read and write of memory occurs, the user program becomes abnormal because the user does not have the read or write permission. The code logic can be identified based on the abnormal call stack information. + When **mmap** is used to allocate a large memory block, one more page is allocated at the start and end of the memory region. The current **PAGE_SIZE** of each page is **0x1000**. The permissions of the two pages are set to **PROT_NONE** (no read or write permission) by using the **mprotect** API to prevent out-of-bounds read and write of memory. If out-of-bounds read and write of memory occurs, the user program becomes abnormal because the user does not have the read or write permission. The code logic can be identified based on the abnormal call stack information. - **Figure 6** Layout of the memory allocated by using the **mmap** mechanism of **malloc** + **Figure 6** Layout of the memory allocated by using the **mmap** mechanism of **malloc** - ![](figures/layout-of-the-memory-allocated-by-using-the-mmap-mechanism-of-malloc.png "layout-of-the-memory-allocated-by-using-the-mmap-mechanism-of-malloc") + ![](figures/layout-of-the-memory-allocated-by-using-the-mmap-mechanism-of-malloc.png "layout-of-the-memory-allocated-by-using-the-mmap-mechanism-of-malloc") ### Usage Guide #### Available APIs @@ -105,7 +112,7 @@ You can perform heap memory debugging by using either of the following: - CLI: By using the CLI, you do not need to modify user code. However, you cannot accurately check the heap memory information of a specific logic segment. -> ![icon-note.gif](public_sys-resources/icon-note.gif) **NOTE**
+> **NOTE**
> After memory debugging is enabled, a heap memory leak check and a heap memory integrity check will be performed by default when a process exits. If memory debugging is disabled, the heap memory statistics, heap memory leak check, and heap memory integrity check cannot be enabled, and there is no response to the calling of any debug API. @@ -119,7 +126,7 @@ You can perform heap memory debugging by using either of the following: The sample code explicitly calls the related APIs of the memory debugging module to check the memory. -``` +```c #include #include #include @@ -127,7 +134,8 @@ The sample code explicitly calls the related APIs of the memory debugging module #define MALLOC_LEAK_SIZE 0x300 -void func(void) { +void func(void) +{ char *ptr = malloc(MALLOC_LEAK_SIZE); memset(ptr, '3', MALLOC_LEAK_SIZE); } @@ -156,17 +164,18 @@ $ clang -o mem_check mem_check.c -funwind-tables -rdynamic -g -mfloat-abi=softfp ``` -> ![icon-note.gif](public_sys-resources/icon-note.gif) **NOTE**
+> **NOTE** +> > - In this example, the compiler path is written into an environment variable in the **.bashrc** file. -> +> > - When compiling user programs and required libraries, add the option **-funwind-tables -rdynamic -g** for stack backtracking. -> +> > - The **-mfloat-abi=softfp**, **-mcpu=cortex-a7**, and **-mfpu=neon-vfpv4** options specify the floating-point calculation optimization, chip architecture, and FPU, which must be the same as the compilation options used by the libc library. Otherwise, the libc library file cannot be found during the link time. -> +> > - **-target arm-liteos** specifies the path of the library files related to the compiler. -> +> > - **--sysroot=/home//harmony/out/hispark_taurus/ipcamera_hispark_taurus/sysroot** specifies the root directory of the compiler library files. In this example, the OpenHarmony project code is stored in **/home//harmony**. The **out/hispark_taurus/ipcamera_hispark_taurus** directory indicates the product specified by the **hb set** command during compilation. In this example, **ipcamera_hispark_taurus** is the product specified. -> +> > - **$(clang -mfloat-abi=softfp -mcpu=cortex-a7 -mfpu=neon-vfpv4 -target arm-liteos -print-file-name=libunwind.a)** specifies the path of the unwind library. @@ -175,7 +184,7 @@ $ clang -o mem_check mem_check.c -funwind-tables -rdynamic -g -mfloat-abi=softfp ``` OHOS # ./mem_check -OHOS # +OHOS # ==PID:4== Heap memory statistics(bytes): // Heap memory statistics [Check point]: // Call stack of the check point #00: [0x86c] -> mem_check @@ -293,14 +302,15 @@ kill -37 # Check whether the head node of the heap memory is complete. The sample code constructs a memory problem and uses the command line to perform memory debugging. -``` +```c #include #include #include #define MALLOC_LEAK_SIZE 0x300 -void func(void) { +void func(void) +{ char *ptr = malloc(MALLOC_LEAK_SIZE); memset(ptr, '3', MALLOC_LEAK_SIZE); } @@ -317,7 +327,7 @@ int main() ##### Compilation -For details, see [Compilation](kernel-small-debug-user.md#compilation). +For details, see [Compilation](#compilation). ##### Running the mwatch Command @@ -325,9 +335,9 @@ For details, see [Compilation](kernel-small-debug-user.md#compilation). ``` OHOS # ./mem_check --mwatch // Run the task command to obtain the mem_check process PID, which is 4. -OHOS # +OHOS # OHOS # kill -35 4 // Check heap memory statistics. -OHOS # +OHOS # ==PID:4== Heap memory statistics(bytes): [Check point]: #00: [0x58dfc] -> /lib/libc.so @@ -337,7 +347,7 @@ OHOS # ==PID:4== Total heap: 0x640 byte(s), Peak: 0x640 byte(s) OHOS # kill -36 4 // Check for heap memory leaks. -OHOS # +OHOS # ==PID:4== Detected memory leak(s): [Check point]: #00: [0x2da4c] -> /lib/libc.so @@ -355,7 +365,7 @@ OHOS # ==PID:4== SUMMARY: 0x640 byte(s) leaked in 2 allocation(s). OHOS # kill -37 4 // Check the integrity of the head node of the heap memory. -OHOS # +OHOS # Check heap integrity ok! ``` @@ -391,131 +401,132 @@ Now using addr2line ... ##### Running the mrecord Command 1. Run the user program and specify the path of the file that stores the memory debugging information. - + ``` OHOS # ./mem_check --mrecord /storage/check.txt ``` 2. Run the **kill -35 <*pid*>** command to collect statistics on the memory information. The information is exported to a file. Run the **cat** command to view the information. - + ``` OHOS # kill -35 4 OHOS # Memory statistics information saved in /storage/pid(4)_check.txt - + OHOS # cat /storage/pid(4)_check.txt - + ==PID:4== Heap memory statistics(bytes): [Check point]: #00: [0x5973c] -> /lib/libc.so - + [TID: 18, Used: 0x640] - + ==PID:4== Total heap: 0x640 byte(s), Peak: 0x640 byte(s) ``` 3. Run the **kill -36 <*pid*>** command to check memory integrity. The information is exported to a file. Run the **cat** command to view the information. - + ``` OHOS # kill -36 4 OHOS # Leak check information saved in /storage/pid(4)_check.txt - + OHOS # cat /storage/pid(4)_check.txt - + ==PID:4== Heap memory statistics(bytes): [Check point]: #00: [0x5973c] -> /lib/libc.so - + [TID: 18, Used: 0x640] - + ==PID:4== Total heap: 0x640 byte(s), Peak: 0x640 byte(s) - + ==PID:4== Detected memory leak(s): [Check point]: #00: [0x2e38c] -> /lib/libc.so #01: [0x5973c] -> /lib/libc.so - + [TID:18 Leak:0x320 byte(s)] Allocated from: #00: [0x724] -> mem_check #01: <(null)+0x1fdd231c>[0x2231c] -> /lib/libc.so - + [TID:18 Leak:0x320 byte(s)] Allocated from: #00: [0x6ec] -> mem_check #01: [0x740] -> mem_check #02: <(null)+0x1fdd231c>[0x2231c] -> /lib/libc.so - + ==PID:4== SUMMARY: 0x640 byte(s) leaked in 2 allocation(s). ``` 4. Run the **kill -9 <*pid*>** command to kill the current process. After the process exits, a memory integrity check is performed by default. The check result is output to a file. You can run the **cat** command to view it. - + ``` OHOS # kill -9 4 OHOS # Leak check information saved in /storage/pid(4)_check.txt - + Check heap integrity ok! - + OHOS # cat /storage/pid(4)_check.txt - OHOS # + OHOS # ==PID:4== Heap memory statistics(bytes): [Check point]: #00: [0x5973c] -> /lib/libc.so - + [TID: 18, Used: 0x640] - + ==PID:4== Total heap: 0x640 byte(s), Peak: 0x640 byte(s) - + ==PID:4== Detected memory leak(s): [Check point]: #00: [0x2e38c] -> /lib/libc.so #01: [0x5973c] -> /lib/libc.so - + [TID:18 Leak:0x320 byte(s)] Allocated from: #00: [0x724] -> mem_check #01: <(null)+0x1fdd231c>[0x2231c] -> /lib/libc.so - + [TID:18 Leak:0x320 byte(s)] Allocated from: #00: [0x6ec] -> mem_check #01: [0x740] -> mem_check #02: <(null)+0x1fdd231c>[0x2231c] -> /lib/libc.so - + ==PID:4== SUMMARY: 0x640 byte(s) leaked in 2 allocation(s). - + ==PID:4== Detected memory leak(s): [Check point]: #00: [0x2e38c] -> /lib/libc.so #01: [0x11b2c] -> /lib/libc.so - + [TID:18 Leak:0x320 byte(s)] Allocated from: #00: [0x724] -> mem_check #01: <(null)+0x1fdd231c>[0x2231c] -> /lib/libc.so - + [TID:18 Leak:0x320 byte(s)] Allocated from: #00: [0x6ec] -> mem_check #01: [0x740] -> mem_check #02: <(null)+0x1fdd231c>[0x2231c] -> /lib/libc.so - + ==PID:4== SUMMARY: 0x640 byte(s) leaked in 2 allocation(s). ``` -> ![icon-note.gif](public_sys-resources/icon-note.gif) **NOTE**
+> **NOTE**
> The preceding information recorded gradually is added to the file specified during initialization. Therefore, running the **cat** command can also display the historical information in the file. ## Common Problems ### Use After Free (UAF) -- Requested memory block less than or equal to 0x1c000 bytes: - After the memory is released: - +- Requested memory less than or equal to 0x1c000 bytes: + Read operation: If the magic number (0xFEFEFEFE) is read from the memory block released, UAF occurs. - - > ![icon-note.gif](public_sys-resources/icon-note.gif) **NOTE**
+ + > **NOTE** + > > After **free** is called, the heap memory will not be released to the heap memory pool immediately. Instead, the heap memory is placed in a queue with a fixed length and filled with the magic number 0xFE. When the queue is full, the memory block first placed in the queue is released to the heap memory pool first. - + Write operation: The memory debugging module cannot detect UAF errors from write operations. - Requested memory block greater than 0x1c000 bytes: + The heap memory greater than 0x1c000 bytes must be requested by calling the **mmap** API via **malloc**. If the heap memory is accessed after being released, the user program will become abnormal (because the memory region has been unmapped). @@ -527,16 +538,17 @@ Double free errors occur when **free()** is called more than once with the same ### Heap Memory Node Corrupted - Requested memory block less than or equal to 0x1c000 bytes: + When a heap memory node is corrupted, the user program exits unexpectedly, and the call stack that requests the heap memory of the node corrupted is output. The memory debugging module, however, cannot debug the memory corrupted by a wild pointer. For example, if the user program mem_check has heap memory overwriting, you can use the command line to obtain the possible location of the memory corruption. - + ``` - OHOS # ./mem_check --mwatch - OHOS # + OHOS # ./mem_check --mwatch + OHOS # ==PID:6== Memory integrity information: [TID:28 allocated addr: 0x272e1ea0, size: 0x120] The possible attacker was allocated from: #00: [0x640e8] -> /lib/libc.so - #01: [0x21d0] -> mem_check + #01: [0x21d0] -> mem_check ``` You can use the call stack parsing script to parse the call stack information. diff --git a/en/device-dev/kernel/kernel-small-memory-lms.md b/en/device-dev/kernel/kernel-small-memory-lms.md index 277cbea8a28268a9c4597be980a22bb69f8f85f8..937f088a803a8058ad045e27a231b5f662ceacbc 100644 --- a/en/device-dev/kernel/kernel-small-memory-lms.md +++ b/en/device-dev/kernel/kernel-small-memory-lms.md @@ -59,23 +59,20 @@ The user mode provides only the LMS check library. It does not provide external The typical process for enabling LMS is as follows: 1. Configure the macros related to the LMS module. - Configure the LMS macro **LOSCFG_KERNEL_LMS**, which is disabled by default. Run the **make update_config** command in the **kernel/liteos_a** directory, choose **Kernel**, and select **Enable Lite Memory Sanitizer**. - - | Macro| menuconfig Option| Description| Value:| + + | Macro| menuconfig Option| Description| Value | | -------- | -------- | -------- | -------- | | LOSCFG_KERNEL_LMS | Enable Lms Feature | Whether to enable LMS.| YES/NO | | LOSCFG_LMS_MAX_RECORD_POOL_NUM | Lms check pool max num | Maximum number of memory pools that can be checked by LMS.| INT | | LOSCFG_LMS_LOAD_CHECK | Enable lms read check | Whether to enable LMS read check.| YES/NO | | LOSCFG_LMS_STORE_CHECK | Enable lms write check | Whether to enable LMS write check.| YES/NO | | LOSCFG_LMS_CHECK_STRICT | Enable lms strict check, byte-by-byte | Whether to enable LMS byte-by-byte check.| YES/NO | - - -2. Modify the build script of the target module. +2. Modify the build script of the target module. Add **-fsanitize=kernel-address** to insert memory access checks, and add the **-O0** option to disable optimization performed by the compiler. - The modifications vary depending on the compiler (GCC or Clang) used. The following is an example: + The modifications vary depending on the compiler (GCC or Clang) used. The following is an example: ``` if ("$ohos_build_compiler_specified" == "gcc") { @@ -113,9 +110,10 @@ This example implements the following: #### Kernel-Mode Sample Code - The sample code is as follows: +The functions of the sample code can be added to **TestTaskEntry** in **kernel /liteos_a/testsuites /kernel /src /osTest.c** for testing. +The sample code is as follows: -``` +```c #define PAGE_SIZE (0x1000U) #define INDEX_MAX 20 UINT32 g_lmsTestTaskId; @@ -141,31 +139,32 @@ static VOID LmsTestUseAfterFree(VOID) PRINTK("\n######%s start ######\n", __FUNCTION__); UINT32 i; CHAR *str = (CHAR *)LOS_MemAlloc(g_testLmsPool, INDEX_MAX); - LOS_MemFree(g_testLmsPool, str); + (VOID)LOS_MemFree(g_testLmsPool, str); PRINTK("str[%2d]=0x%2x ", 0, str[0]); /* trigger use after free at str[0] */ PRINTK("\n######%s stop ######\n", __FUNCTION__); } VOID LmsTestCaseTask(VOID) -{ +{ testPoolInit(); LmsTestOsmallocOverflow(); LmsTestUseAfterFree(); } -UINT32 Example_Lms_test(VOID){ - UINT32 ret; - TSK_INIT_PARAM_S lmsTestTask; - /* Create a task for LMS. */ - memset(&lmsTestTask, 0, sizeof(TSK_INIT_PARAM_S)); +UINT32 Example_Lms_test(VOID) +{ + UINT32 ret; + TSK_INIT_PARAM_S lmsTestTask; + /* Create a task for LMS. */ + memset(&lmsTestTask, 0, sizeof(TSK_INIT_PARAM_S)); lmsTestTask.pfnTaskEntry = (TSK_ENTRY_FUNC)LmsTestCaseTask; - lmsTestTask.pcName = "TestLmsTsk"; /* Test task name. */ - lmsTestTask.uwStackSize = 0x800; - lmsTestTask.usTaskPrio = 5; - lmsTestTask.uwResved = LOS_TASK_STATUS_DETACHED; - ret = LOS_TaskCreate(&g_lmsTestTaskId, &lmsTestTask); - if(ret != LOS_OK){ - PRINT_ERR("LmsTestTask create failed .\n"); - return LOS_NOK; - } + lmsTestTask.pcName = "TestLmsTsk"; /* Test task name. */ + lmsTestTask.uwStackSize = 0x800; // 0x800: LMS test task stack size + lmsTestTask.usTaskPrio = 5; // 5: LMS test task priority + lmsTestTask.uwResved = LOS_TASK_STATUS_DETACHED; + ret = LOS_TaskCreate(&g_lmsTestTaskId, &lmsTestTask); + if (ret != LOS_OK) { + PRINT_ERR("LmsTestTask create failed .\n"); + return LOS_NOK; + } return LOS_OK; } LOS_MODULE_INIT(Example_Lms_test, LOS_INIT_LEVEL_KMOD_EXTENDED); @@ -260,7 +259,7 @@ The key output information is as follows: ### User-Mode Development Process -Add the following to the build script of the app to be checked. For details about the complete code, see **/kernel/liteos_a/apps/lms/BUILD.gn**. +Add the following to the app build script to be checked. For details about the sample code, see [/kernel/liteos_a/apps/lms/BUILD.gn](https://gitee.com/openharmony/kernel_liteos_a/blob/master/apps/lms/BUILD.gn). ``` @@ -318,7 +317,7 @@ This example implements the following: The code is as follows: -``` +```c static void BufWriteTest(void *buf, int start, int end) { for (int i = start; i <= end; i++) { @@ -335,7 +334,7 @@ static void BufReadTest(void *buf, int start, int end) static void LmsMallocTest(void) { printf("\n-------- LmsMallocTest Start --------\n"); - char *buf = (char *)malloc(16); + char *buf = (char *)malloc(16); // 16: buffer size for test BufReadTest(buf, -1, 16); free(buf); printf("\n-------- LmsMallocTest End --------\n"); @@ -343,7 +342,7 @@ static void LmsMallocTest(void) static void LmsFreeTest(void) { printf("\n-------- LmsFreeTest Start --------\n"); - char *buf = (char *)malloc(16); + char *buf = (char *)malloc(16); // 16: buffer size for test free(buf); BufReadTest(buf, 1, 1); free(buf); @@ -352,7 +351,7 @@ static void LmsFreeTest(void) int main(int argc, char * const * argv) { printf("\n############### Lms Test start ###############\n"); - char *tmp = (char *)malloc(5000); + char *tmp = (char *)malloc(5000); // 5000: temp buffer size LmsMallocTest(); LmsFreeTest(); printf("\n############### Lms Test End ###############\n"); diff --git a/en/device-dev/kernel/kernel-small-start-kernel.md b/en/device-dev/kernel/kernel-small-start-kernel.md index 01c4373ac8b51dc17a9ea91985c98688f4965311..c96beb9191fd8f04aadba8b35b7194fb5d90362e 100644 --- a/en/device-dev/kernel/kernel-small-start-kernel.md +++ b/en/device-dev/kernel/kernel-small-start-kernel.md @@ -3,20 +3,22 @@ ## Kernel Startup Process -The kernel startup process consists of the assembly startup and C language startup, as shown in the following figure. +The kernel startup process consists of the assembly startup and C language startup, as shown in **Figure 1**. The assembly startup involves the following operations: initializing CPU settings, disabling dCache/iCache, enabling the FPU and NEON, setting the MMU to establish the virtual-physical address mapping, setting the system stack, clearing the BSS segment, and calling the main function of the C language. -The C language startup involves the following operations: starting the **OsMain** function and starting scheduling. As shown in the following figure, the **OsMain** function is used for basic kernel initialization and architecture- and board-level initialization. The kernel startup framework leads the initialization process. The right part of the figure shows the phase in which external modules can register with the kernel startup framework and starts. The table below describes each phase. +The C language startup involves the following operations: starting the **OsMain** function and starting scheduling. +**OsMain()** is used for basic kernel initialization and architecture- and board-level initialization. The kernel startup framework leads the initialization process. The right part of the figure shows the phase in which external modules can register with the kernel startup framework and starts. **Table 1** describes each phase. - **Figure 1** Kernel startup process
- ![](figures/kernel-startup-process-2.png "kernel-startup-process-2") +**Figure 1** Kernel startup process +![](figures/kernel-startup-process-2.png "kernel-startup-process-2") - **Table 1** Start framework -| Level | Startup Description | +**Table 1** Kernel startup framework + +| API| Description| | -------- | -------- | | LOS_INIT_LEVEL_EARLIEST | Earliest initialization.
The initialization is architecture-independent. The board and subsequent modules initialize the pure software modules on which they depend.
Example: trace module| | LOS_INIT_LEVEL_ARCH_EARLY | Early initialization of the architecture.
The initialization is architecture-dependent. Subsequent modules initialize the modules on which they depend. It is recommended that functions not required for startup be placed at **LOS_INIT_LEVEL_ARCH**.| @@ -28,54 +30,52 @@ The C language startup involves the following operations: starting the **OsMain* | LOS_INIT_LEVEL_KMOD_BASIC | Initialization of the kernel basic modules.
Initialize the basic modules that can be detached from the kernel.
Example: VFS initialization| | LOS_INIT_LEVEL_KMOD_EXTENDED | Initialization of the kernel extended modules.
Initialize the extended modules that can be detached from the kernel.
Example: initialization of system call, ProcFS, Futex, HiLog, HiEvent, and LiteIPC| | LOS_INIT_LEVEL_KMOD_TASK | Kernel task creation.
Create kernel tasks (kernel tasks and software timer tasks).
Example: creation of the resident resource reclaiming task, SystemInit task, and CPU usage statistics task| +| LOS_INIT_LEVEL_FINISH | Complete of the kernel initialization.| -## Programming Example +## Development Example **Example Description** Add a kernel module and register the initialization function of the module to the kernel startup process through the kernel startup framework, so as to complete the module initialization during the kernel initialization process. +You can compile and verify the sample code in **kernel/liteos_a/testsuites/kernel/src/osTest.c**. **Sample Code** - - -``` +```c /* Header file of the kernel startup framework */ #include "los_init.h" -... /* Initialization function of the new module */ unsigned int OsSampleModInit(void) { PRINTK("OsSampleModInit SUCCESS!\n"); - ...... } -... + /* Register the new module at the target level of the kernel startup framework. */ LOS_MODULE_INIT(OsSampleModInit, LOS_INIT_LEVEL_KMOD_EXTENDED); ``` - **Verification** - - ``` + main core booting up... + +/* The print information may vary depending on the running environment. */ +... + +/* Print the initialization function of the new module in the test code. */ OsSampleModInit SUCCESS! -releasing 1 secondary cores -cpu 1 entering scheduler -cpu 0 entering scheduler ``` -According to the information displayed during the system startup, the kernel has called the initialization function of the registered module during the startup to initialize the module. +According to the information displayed during the system startup, the kernel calls the initialization function of the registered module during the startup to initialize the module. -> ![icon-note.gif](public_sys-resources/icon-note.gif) **NOTE** -> -> Modules at the same level cannot depend on each other. It is recommended that a new module be split based on the preceding startup phase and be registered and started as required. -> +> **NOTE** +> +> Modules of the same level cannot depend on each other. It is recommended that a new module be split based on the preceding startup phase and be registered and started as required. +> > You can view the symbol table in the **.rodata.init.kernel.*** segment of the **OHOS_Image.map** file generated after the build is complete, so as to learn about the initialization entry of each module that has been registered with the kernel startup framework and check whether the newly registered initialization entry has taken effect. diff --git a/en/device-dev/kernel/kernel-small-start-user.md b/en/device-dev/kernel/kernel-small-start-user.md index 40f586e1576f07bd9223d03aa2fbc7681cec086d..96535ef581fb6edcdde458f94085e65cdd04b034 100644 --- a/en/device-dev/kernel/kernel-small-start-user.md +++ b/en/device-dev/kernel/kernel-small-start-user.md @@ -1,17 +1,21 @@ # Startup in User Mode -## Startup of the Root Process in User Mode + +## Startup of the Root Process in User Mode The root process is the first user-mode process in the system. The process ID is 1. The root process is the ancestor of all user-mode processes. -**Figure 1** Process tree +**Figure 1** Process tree + ![](figures/process-tree.png "process-tree") -### Startup Process of the Root Process + +### Startup Process of the Root Process Use the link script to place the following init startup code to the specified location in the system image. -``` + +```c #define LITE_USER_SEC_ENTRY __attribute__((section(".user.entry"))) LITE_USER_SEC_ENTRY VOID OsUserInit(VOID *args) { @@ -23,38 +27,38 @@ LITE_USER_SEC_ENTRY VOID OsUserInit(VOID *args) } ``` -During system startup, **OsUserInitProcess** is called to start the **init** process. The procedure is as follows: +> **NOTE** +> +> The preceeding code is in **kernel/liteos_a/kernel/user/src/los_user_init.c**. The value of **g_initPath** can be **/dev/shm/init** or **/bin/init**, depending on the startup settings. -1. The kernel calls **OsLoadUserInit** to load the code. -2. A process space is created to start the **/bin/init** process. +Use **OsUserInitProcess** to start the **init** process. The procedure is as follows: -### Responsibilities of the Root Process +1. The kernel calls **OsLoadUserInit** to load the code for startup. -- Starts key system programs or services, such as shell. +2. A process space is created to start the **/bin/init** process. - >![](../public_sys-resources/icon-note.gif) **NOTE** - > - >In OpenHarmony, the **init** process reads the **/etc/init.cfg** file and runs specified commands or starts specified processes based on configurations. For details, see [init Module](../subsystems/subsys-boot-init-cfg.md). +### Responsibilities of the Root Process -- Monitors the process for reclaiming the orphan process and clears the zombie processes in child processes. +- The root process starts key system programs or services, such as shell. + > **NOTE** + > In OpenHarmony, the **init** process reads **/etc/init.cfg** and runs commands or starts processes based on the configuration. For details, see [init Configuration File](../subsystems/subsys-boot-init-cfg.md). -## Running Programs in User Mode +- The root process monitors the process for reclaiming the orphan process and clears the zombie processes in child processes. -A user-mode program can be started in either of the following ways: - -- Run the shell command to start the process. - - ``` - OHOS $ exec helloworld - OHOS $ ./helloworld - OHOS $ /bin/helloworld - ``` +## Running Programs in User Mode +A user-mode program can be started in either of the following ways: -- Start a new process by calling the POSIX API. +- Using shell commands - Use the **Fork\(\)** method to create a process, and call the **exec\(\)** method to execute a new process. + ``` + OHOS $ exec helloworld + OHOS $ ./helloworld + OHOS $ /bin/helloworld + ``` +- Using POSIX APIs + Use **Fork()** to create a process, and call **exec()** to execute a process. diff --git a/en/device-dev/quick-start/figures/en-us_image_0000001275267040.png b/en/device-dev/quick-start/figures/en-us_image_0000001275267040.png deleted file mode 100644 index 204894213329c4de1edf74d869c1bfd8e8e78d04..0000000000000000000000000000000000000000 Binary files a/en/device-dev/quick-start/figures/en-us_image_0000001275267040.png and /dev/null differ diff --git a/en/device-dev/quick-start/figures/en-us_image_0000001285965546.png b/en/device-dev/quick-start/figures/en-us_image_0000001285965546.png deleted file mode 100644 index f07b21dbc89b6722f6374a8bde9bdc893798f120..0000000000000000000000000000000000000000 Binary files a/en/device-dev/quick-start/figures/en-us_image_0000001285965546.png and /dev/null differ diff --git a/en/device-dev/quick-start/figures/en-us_image_0000001285965778.png b/en/device-dev/quick-start/figures/en-us_image_0000001285965778.png deleted file mode 100644 index 6aa63a6876293a994ffe1cc90f6973a949e9e43a..0000000000000000000000000000000000000000 Binary files a/en/device-dev/quick-start/figures/en-us_image_0000001285965778.png and /dev/null differ diff --git a/en/device-dev/quick-start/figures/en-us_image_0000001326386753.png b/en/device-dev/quick-start/figures/en-us_image_0000001326386753.png deleted file mode 100644 index 97d98319b294e132d43cd4f75a2cc8031995b99f..0000000000000000000000000000000000000000 Binary files a/en/device-dev/quick-start/figures/en-us_image_0000001326386753.png and /dev/null differ diff --git a/en/device-dev/quick-start/figures/en-us_image_0000001338012765.png b/en/device-dev/quick-start/figures/en-us_image_0000001338012765.png index 7848b0336d1c8fb4e9b8f38e94b8308453b2b464..c9553f714d09d1dae9559eb86bbb801d32d08141 100644 Binary files a/en/device-dev/quick-start/figures/en-us_image_0000001338012765.png and b/en/device-dev/quick-start/figures/en-us_image_0000001338012765.png differ diff --git a/en/device-dev/quick-start/quickstart-ide-env-ubuntu.md b/en/device-dev/quick-start/quickstart-ide-env-ubuntu.md index fb65184467734cd3a8930d68c0247d9cd0b92f1b..7f2c7f416b0e3ec6b49af69ad002a1e8c6cff6a5 100644 --- a/en/device-dev/quick-start/quickstart-ide-env-ubuntu.md +++ b/en/device-dev/quick-start/quickstart-ide-env-ubuntu.md @@ -13,10 +13,12 @@ The following describes how to set up the Ubuntu environment. ## System Requirements -- Ubuntu: Ubuntu 18.04 to 21.10; version 20.04 with 16 GB or larger memory is recommended +- Ubuntu: Ubuntu 18.04 to 21.10; version 20.04 with 16 GB or larger memory and a 100 GB or larger hard disk is recommended - User name (Ubuntu): cannot contain Chinese characters +- DevEco Device Tool: latest and same version installed on both Ubuntu and Windows + ## Procedure @@ -28,6 +30,7 @@ The following describes how to set up the Ubuntu environment. ``` ![en-us_image_0000001226764302](figures/en-us_image_0000001226764302.png) + 2. Start the command-line tool, run the following command, enter your password, and select **No** to set **Ubuntu shell** to **bash**. ```shell @@ -36,24 +39,24 @@ The following describes how to set up the Ubuntu environment. ![ubuntu-dash-to-bash](figures/ubuntu-dash-to-bash.png) -2. Download the [DevEco Device Tool 3.0 Release](https://device.harmonyos.com/cn/ide#download) Linux edition. +2. Download the latest version of [DevEco Device Tool](https://device.harmonyos.com/cn/ide#download) for Linux. 3. Decompress the DevEco Device Tool software package and assign permission on the folder obtained from the decompression. - 1. Go to the directory where the DevEco Device Tool software package is stored and run the following command to decompress the software package. In the command, change **devicetool-linux-tool-3.1.0.300.zip** to the actual software package name. + 1. Go to the directory where the DevEco Device Tool software package is stored and run the following command to decompress the software package. In the command, **devicetool-linux-tool-{Version}.zip** indicates the software package name. ```shell - unzip devicetool-linux-tool-3.1.0.300.zip + unzip devicetool-linux-tool-{Version}.zip ``` - 2. Open the folder of the decompressed software package and run the following command to grant the execute permission on the installation file. In the command, change **devicetool-linux-tool-3.1.0.300.sh** to the actual installation file name. + 2. Open the folder of the decompressed software package and run the following command to grant the execute permission on the installation file. In the command, **devicetool-linux-tool-{Version}.sh** indicates the installation file name. ```shell - chmod u+x devicetool-linux-tool-3.1.0.300.sh + chmod u+x devicetool-linux-tool-{Version}.sh ``` -4. Run the following command to install DevEco Device Tool, where **devicetool-linux-tool-3.1.0.300.sh** indicates the installation file name. +4. Run the following command to install DevEco Device Tool, where **devicetool-linux-tool-{Version}.sh** indicates the installation file name. ```shell - sudo ./devicetool-linux-tool-3.1.0.300.sh + sudo ./devicetool-linux-tool-{Version}.sh ``` 5. On the page for agreeing to the user agreement and privacy statement, read and agree to the user agreement and privacy statement. You can scroll through the options by pressing the up and down arrow keys on the keyboard. diff --git a/en/device-dev/quick-start/quickstart-ide-env-win.md b/en/device-dev/quick-start/quickstart-ide-env-win.md index 51ffa98a5d0a7ec388016e738f1c30f6adc6c773..cf7a0879bb76b86c5c798c62963b88fc8356a5d3 100644 --- a/en/device-dev/quick-start/quickstart-ide-env-win.md +++ b/en/device-dev/quick-start/quickstart-ide-env-win.md @@ -8,54 +8,36 @@ The following describes how to set up the Windows environment. ## System Requirements -- OS: 64-bit Windows 10 +- Windows 10 (64-bit): 8 GB or larger memory and a 100 GB or larger hard disk recommended -- DevEco Device Tool: 3.1 Beta1 +- DevEco Device Tool: latest and same version installed on both Windows and Ubuntu ## Procedure -1. Download the [DevEco Device Tool 3.1 Beta1](https://device.harmonyos.com/cn/ide#download) Windows edition. +1. Download the latest version of [DevEco Device Tool](https://device.harmonyos.com/cn/ide#download) for Windows. 2. Decompress the DevEco Device Tool package, double-click the installer, and then click **Next**. -3. Set the installation path for DevEco Device Tool and click **Next**. Make sure the path does not contain Chinese characters and is in a drive other than the C drive. +3. On the page shown, read the user agreement and privacy statement carefully and select **I accept the licenses** before proceeding to the next step. - ![en-us_image_0000001326386753](figures/en-us_image_0000001326386753.png) +4. Set the installation path for DevEco Device Tool and click **Next**. Make sure the path does not contain Chinese characters and is **in a drive other than the C drive**. -4. When prompted, select the tools to be automatically installed. - 1. On the **VSCode installation confirm** page, select **Install VS Code 1.62.2 automatically** and click **Next**. - > ![icon-note.gif](public_sys-resources/icon-note.gif) **NOTE** - > - > If Visual Studio Code 1.62 or later has been installed, this step will be skipped. - +5. Install the dependent tools by following the onscreen instructions. - ![en-us_image_0000001285965546](figures/en-us_image_0000001285965546.png) - - 2. Select the Visual Studio Code installation path and click Next. + You can select **Install** or **Custom** as needed: - ![select-vscode-path](figures/select-vscode-path.png) + - **Install**: Install the software based on the default path and parameters. + + - **Custom**: You can customize the installation path and other parameters before the installation. - 2. On the displayed **Python select page**, select **Download from Huawei mirror** and click **Next**. - > ![icon-note.gif](public_sys-resources/icon-note.gif) **NOTE** - > - > If Python 3.8 or 3.9 has been installed, select **Use one of compatible on your PC**. - - ![en-us_image_0000001285965778](figures/en-us_image_0000001285965778.png) - -5. When the page shown below is displayed, click **Next**. - - ![en-us_image_0000001285806330](figures/en-us_image_0000001285806330.png) - -6. On the page shown below, read the user agreement and privacy statement carefully and select **I accept the licenses** before proceeding to the next step. - - ![en-us_image_0000001275586896](figures/en-us_image_0000001275586896.png) + After the installation is complete, the status of the dependent tools should be **OK**. + +6. Click **Install** to install DevEco Device Tool. 7. Wait for the DevEco Device Tool setup wizard to automatically install DevEco Device Tool. After the installation is complete, click **Finish** to close the setup wizard. - ![en-us_image_0000001275267040](figures/en-us_image_0000001275267040.png) - 8. From Visual Studio Code, access the DevEco Device Tool page. Now you can conduct your development in DevEco Device Tool. ![en-us_image_0000001338012765](figures/en-us_image_0000001338012765.png) diff --git a/en/device-dev/quick-start/quickstart-pkg-3568-helloworld.md b/en/device-dev/quick-start/quickstart-pkg-3568-helloworld.md index 91826305d91d3eb1caa53563429d0e2a4661283b..014bacde40feaa20ac9c6d6fbb3c2942ba6e8a89 100644 --- a/en/device-dev/quick-start/quickstart-pkg-3568-helloworld.md +++ b/en/device-dev/quick-start/quickstart-pkg-3568-helloworld.md @@ -1,16 +1,18 @@ # Writing a Hello World Program -The following exemplifies how to run the first program on the development board. The created program outputs the message "Hello World!" +The following exemplifies how to run the first program on the development board. The created program outputs the message "Hello World!". + ## Example Directory +Obtain the OpenHarmony project code. From the source code root directory, add the **sample/hello** directory, and then create therein the **hello** source code directory, the build file **BUILD.gn**, and the component configuration file **bundle.json**. The complete code directory is as follows: ``` -applications/sample/hello +sample/hello │── BUILD.gn │── include │ └── helloworld.h @@ -27,11 +29,11 @@ vendor/hihope ## How to Develop -Perform the steps below in the source code directory: +Perform the steps below in the source code root directory: 1. Create a directory and write the service code. - Create the **applications/sample/hello/src/helloworld.c** directory and file whose code is shown in the following example. You can customize the content to be printed. For example, you can change **World** to **OHOS**. Declare the string printing function **HelloPrint** in the **helloworld.h** file. You can use either C or C++ to develop a program. + Create the **sample/hello/src/helloworld.c** file, with the sample code as follows. In this example, the content to be printed is **World**, which you can change to any string that you prefer, for example, **OHOS**. The print function **HelloPrint** is declared in the included **helloworld.h** file. You can use either C or C++ to develop a program. ``` @@ -52,7 +54,7 @@ Perform the steps below in the source code directory: } ``` - Add the header file **applications/sample/hello/include/helloworld.h**. The sample code is as follows: + Add the header file **sample/hello/include/helloworld.h**. The sample code is as follows: ``` @@ -75,85 +77,117 @@ Perform the steps below in the source code directory: ``` 2. Create a build file. - 1. Create the **applications/sample/hello/BUILD.gn** file. The file content is as follows: - - ``` - import("//build/ohos.gni") # Import the build template. - ohos_executable("helloworld") {# Executable module. - sources = [ # Source code of the module. - "src/helloworld.c" - ] - include_dirs = [ # Directory of header files on which the module depends. - "include" - ] - cflags = [] - cflags_c = [] - cflags_cc = [] - ldflags = [] - configs = [] - deps =[] # Internal dependencies of a component. - part_name = "hello" # Component name. This parameter is mandatory. - install_enable = true # Whether to install the software by default. This parameter is optional. By default, the software is not installed. - } - ``` - 2. Create the **applications/sample/hello/bundle.json** file and add the description of the **sample** component. The content is as follows: - - ``` - { - "name": "@ohos/hello", - "description": "Hello world example.", - "version": "3.1", - "license": "Apache License 2.0", - "publishAs": "code-segment", - "segment": { - "destPath": "applications/sample/hello" + + Create the **sample/hello/BUILD.gn** file. For details, see [Module](../subsystems/subsys-build-module.md). + + The content of the **BUILD.gn** file is as follows: + + ``` + import("//build/ohos.gni") # Import the build template. + ohos_executable("helloworld") {# Executable module. + sources = [ # Source code of the module. + "src/helloworld.c" + ] + include_dirs = [ # Directory of header files on which the module depends. + "include" + ] + cflags = [] + cflags_c = [] + cflags_cc = [] + ldflags = [] + configs = [] + deps =[] # Internal dependencies of a component. + part_name = "hello" # Component name. This parameter is mandatory. + install_enable = true # Whether to install the software by default. This parameter is optional. By default, the software is not installed. + } + ``` + +3. Create a component configuration file. + + Create the **sample/hello/bundle.json** file and add the **sample** component description therein. For details, see [Component](../subsystems/subsys-build-component.md). + + The content of the **bundle.json** file is as follows: + + ``` + { + "name": "@ohos/hello", + "description": "Hello world example.", + "version": "3.1", + "license": "Apache License 2.0", + "publishAs": "code-segment", + "segment": { + "destPath": "sample/hello" + }, + "dirs": {}, + "scripts": {}, + "component": { + "name": "hello", + "subsystem": "sample", + "syscap": [], + "features": [], + "adapted_system_type": [ "mini", "small", "standard" ], + "rom": "10KB", + "ram": "10KB", + "deps": { + "components": [], + "third_party": [] }, - "dirs": {}, - "scripts": {}, - "component": { - "name": "hello", - "subsystem": "sample", - "syscap": [], - "features": [], - "adapted_system_type": [ "mini", "small", "standard" ], - "rom": "10KB", - "ram": "10KB", - "deps": { - "components": [], - "third_party": [] - }, - "build": { - "sub_component": [ - "//applications/sample/hello:helloworld" - ], - "inner_kits": [], - "test": [] - } + "build": { + "sub_component": [ + "//sample/hello:helloworld" + ], + "inner_kits": [], + "test": [] } } - ``` + } + ``` - The **bundle.json** file consists of two parts. The first part describes the information about the subsystem to which the component belongs, and the second part defines the build configuration for the component. When adding a component, you must specify the **sub_component** of the component. If there are APIs provided for other components, add them in **inner_kits**. If there are test cases, add them in **test**. + The **bundle.json** file consists of two parts. The first part describes the information about the subsystem to which the component belongs, and the second part defines the build configuration for the component. When adding a component, you must specify the **sub_component** of the component. Add the APIs provided for other components, if any, in **inner_kits**. Add the test cases, if any, in **test**. -3. Modify the subsystem configuration file. +4. Modify the subsystem configuration file. - Add the configuration of the new subsystem to the **build/subsystem_config.json** file. - + Add the configuration of the new subsystem to the **build/subsystem_config.json** file. For details, see [Subsystem](../subsystems/subsys-build-subsystem.md). + + The configuration of the new subsystem is as follows: ``` "sample": { - "path": "applications/sample/hello", + "path": "sample", "name": "sample" }, ``` -4. Modify the product configuration file. +5. Modify the product configuration file. + + > ![icon-note.gif](public_sys-resources/icon-note.gif) **NOTE** + > + > In versions earlier than OpenHarmony-v3.2-Beta2, the RK3568 configuration file is **productdefine/common/products/rk3568.json**. In OpenHarmony-v3.2-Beta2 and later versions, the RK3568 configuration file is **vendor/hihope/rk3568/config.json**. - In the **vendor/hihope/rk3568/config.json** file, add the **hello** part after the existing part. + - Versions earlier than OpenHarmony-v3.2-Beta2 + + In the **productdefine/common/products/rk3568.json** file, add the **hello** part after the existing part. - ``` + ``` "usb:usb_manager_native":{}, "applications:prebuilt_hap":{}, "sample:hello":{}, "wpa_supplicant-2.9:wpa_supplicant-2.9":{}, - ``` + ``` + + - OpenHarmony-v3.2-Beta2 and later versions + + + In the **vendor/hihope/rk3568/config.json** file, add the **hello** part after the existing part. + + ``` + { + "subsystem": "sample", + "components": [ + { + "component": "hello", + "features": [] + } + ] + }, + ``` diff --git a/en/device-dev/subsystems/figure/output-of-the-system-attribute-dumping-command-for-the-liteos-cortex-a-kernel.png b/en/device-dev/subsystems/figure/output-of-the-system-attribute-dumping-command-for-the-liteos-cortex-a-kernel.png deleted file mode 100644 index c7e8c809207f0dc8965a2f8a41b55f0ae2abe13b..0000000000000000000000000000000000000000 Binary files a/en/device-dev/subsystems/figure/output-of-the-system-attribute-dumping-command-for-the-liteos-cortex-a-kernel.png and /dev/null differ diff --git a/en/device-dev/subsystems/figure/output-of-the-system-attribute-dumping-command-for-the-liteos-cortex-m-kernel.png b/en/device-dev/subsystems/figure/output-of-the-system-attribute-dumping-command-for-the-liteos-cortex-m-kernel.png deleted file mode 100644 index 883dccf82ef3ec1828893afa314a66ca2f23c421..0000000000000000000000000000000000000000 Binary files a/en/device-dev/subsystems/figure/output-of-the-system-attribute-dumping-command-for-the-liteos-cortex-m-kernel.png and /dev/null differ diff --git a/en/device-dev/subsystems/figure/unnaming.png b/en/device-dev/subsystems/figure/unnaming.png deleted file mode 100644 index 6350269abdc028f9b1b31d544b78f380e58d7a57..0000000000000000000000000000000000000000 Binary files a/en/device-dev/subsystems/figure/unnaming.png and /dev/null differ diff --git a/en/device-dev/subsystems/subsys-build-gn-kconfig-visual-config-guide.md b/en/device-dev/subsystems/subsys-build-gn-kconfig-visual-config-guide.md index 7deeec6316d5750a5615740fb25dade24fe23fb9..88eb7f5a3a015cf03a57b20bf861963cf93c9e24 100644 --- a/en/device-dev/subsystems/subsys-build-gn-kconfig-visual-config-guide.md +++ b/en/device-dev/subsystems/subsys-build-gn-kconfig-visual-config-guide.md @@ -3,7 +3,7 @@ ## Overview ### Kconfig Visual Configuration -Kconfig visual configuration is implemented on [Kconfiglib](https://github.com/ulfalizer/Kconfiglib) and [Kconfig](https://www.kernel.org/doc/html/latest/kbuild/kconfig-language.html#introduction). It allows customized configuration of OpenHarmony subsystem components. +Kconfig visual configuration is implemented on [Kconfiglib](https://github.com/ulfalizer/Kconfiglib) and [Kconfig](https://www.kernel.org/doc/html/latest/kbuild/kconfig-language.html). It allows customized configuration of OpenHarmony subsystem components. Kconfig visual configuration has the following advantages: @@ -44,7 +44,7 @@ Kconfig visual configuration has the following advantages: 4. Set parameters. - For details about the parameters, see [productdefine/common/base/base_product.json](https://gitee.com/openharmony/productdefine_common/blob/master/base/base_product.json). + For details about the parameters, see productdefine/common/base/base_product.json. ![Setting parameters](./figure/kconfig_set_parameters.gif) @@ -99,7 +99,7 @@ Kconfig visual configuration has the following advantages: ### Latest Components Not Displayed in the Menu List -The component list [productdefine/common/base/base_product.json](https://gitee.com/openharmony/productdefine_common/blob/master/base/base_product.json) is updated with product updates and iterations. The Kconfig menu does not contain the latest components. +The component list productdefine/common/base/base_product.json is updated with product updates and iterations. The Kconfig menu does not contain the latest components. **Solution** diff --git a/en/device-dev/subsystems/subsys-dfx-hisysevent-tool.md b/en/device-dev/subsystems/subsys-dfx-hisysevent-tool.md index cb0f8cead65cd1faed98c723d30f557b4302bbab..1369bb7bc6f4fe3c5aeb24693c72b550a387b60c 100644 --- a/en/device-dev/subsystems/subsys-dfx-hisysevent-tool.md +++ b/en/device-dev/subsystems/subsys-dfx-hisysevent-tool.md @@ -9,7 +9,7 @@ The HiSysEvent tool is a command line tool preconfigured in the **/system/bin** - Command for subscribing to real-time system events: - ``` + ```shell hisysevent -r ``` @@ -21,7 +21,7 @@ The HiSysEvent tool is a command line tool preconfigured in the **/system/bin** - Command for enabling the debugging mode: - ``` + ```shell hisysevent -r -d ``` @@ -29,11 +29,11 @@ The HiSysEvent tool is a command line tool preconfigured in the **/system/bin** | Option| Description| | -------- | -------- | - | -d | Subscription to real-time system events in debugging mode.| + | -d | Subscribes to real-time system events in debugging mode.| - Command for subscribing to real-time system events by event tag: - ``` + ```shell hisysevent -r -t [-c [WHOLE_WORD|PREFIX|REGULAR]] ``` @@ -42,12 +42,12 @@ The HiSysEvent tool is a command line tool preconfigured in the **/system/bin** | Option| Description| | -------- | -------- | | -t | Event tag used to filter subscribed real-time system events.| - | -c | Matching rule for event tags. The option can be **WHOLE_WORD**, **PREFIX**, or **REGULAR**.| + | -c | Matching rule for event tags. The options can be **WHOLE_WORD**, **PREFIX**, or **REGULAR**.| Example: - ``` - # hisysevent -r -t "STA" -c PREFIX + ```shell + # hisysevent -r -t "STA" -c PREFIX {"domain_":"RELIABILITY","name_":"APP_FREEZE","type_":1,"time_":1501963670809,"pid_":1505,"uid_":10002,"FAULT_TYPE":"4","MODULE":"com.ohos.screenlock","REASON":"NO_DRAW","SUMMARY":"SUMMARY:\n","LOG_PATH":"/data/log/faultlog/faultlogger/appfreeze-com.ohos.screenlock-10002-20170805200750","HAPPEN_TIME":1501963670809,"VERSION":"1.0.0","level_":"CRITICAL","tag_":"STABILITY","id_":"4973863135535405472","info_":""} # hisysevent -r -t "STAw{0,6}" -c REGULAR {"domain_":"RELIABILITY","name_":"APP_FREEZE","type_":1,"time_":1501963793206,"pid_":1505,"uid_":10002,"FAULT_TYPE":"4","MODULE":"com.ohos.screenlock","REASON":"NO_DRAW","SUMMARY":"SUMMARY:\n","LOG_PATH":"/data/log/faultlog/faultlogger/appfreeze-com.ohos.screenlock-10002-20170805200953","HAPPEN_TIME":1501963793206,"VERSION":"1.0.0","level_":"CRITICAL","tag_":"STABILITY","id_":"16367997008075110557","info_":""} @@ -57,7 +57,7 @@ The HiSysEvent tool is a command line tool preconfigured in the **/system/bin** - Command for subscribing to real-time system events by event domain and event name: - ``` + ```shell hisysevent -r -o -n [-c [WHOLE_WORD|PREFIX|REGULAR]] ``` @@ -67,11 +67,11 @@ The HiSysEvent tool is a command line tool preconfigured in the **/system/bin** | -------- | -------- | | -o | Event domain used to filter subscribed real-time system events.| | -n | Event name used to filter subscribed real-time system events.| - | -c | Matching rule for event domains and event names. The option can be **WHOLE_WORD**, PREFIX, or **REGULAR**.| + | -c | Matching rule for event domains and event names. The options can be **WHOLE_WORD**, PREFIX, or **REGULAR**.| Example: - ``` + ```shell # hisysevent -r -o "RELIABILITY" -n "APP_FREEZE" {"domain_":"RELIABILITY","name_":"APP_FREEZE","type_":1,"time_":1501963989773,"pid_":1505,"uid_":10002,"FAULT_TYPE":"4","MODULE":"com.ohos.screenlock","REASON":"NO_DRAW","SUMMARY":"SUMMARY:\n","LOG_PATH":"/data/log/faultlog/faultlogger/appfreeze-com.ohos.screenlock-10002-20170805201309","HAPPEN_TIME":1501963989773,"VERSION":"1.0.0","level_":"CRITICAL","tag_":"STABILITY","id_":"16367997008075110557","info_":""} # hisysevent -r -o "RELIABI\w{0,8}" -n "APP_FREEZE" -c REGULAR @@ -85,7 +85,7 @@ The HiSysEvent tool is a command line tool preconfigured in the **/system/bin** - Command for subscribing to real-time system events by event type: - ``` + ```shell hisysevent -r -g [FAULT|STATISTIC|SECURITY|BEHAVIOR] ``` @@ -97,7 +97,7 @@ The HiSysEvent tool is a command line tool preconfigured in the **/system/bin** Example: - ``` + ```shell # hisysevent -r -o "RELIABILITY" -n "APP_FREEZE" -g FAULT {"domain_":"RELIABILITY","name_":"APP_FREEZE","type_":1,"time_":1501963989773,"pid_":1505,"uid_":10002,"FAULT_TYPE":"4","MODULE":"com.ohos.screenlock","REASON":"NO_DRAW","SUMMARY":"SUMMARY:\n","LOG_PATH":"/data/log/faultlog/faultlogger/appfreeze-com.ohos.screenlock-10002-20170805201309","HAPPEN_TIME":1501963989773,"VERSION":"1.0.0","level_":"CRITICAL","tag_":"STABILITY","id_":"16367997008075110557","info_":""} # hisysevent -r -o "POWER\w{0,8}" -n "POWER_RUNNINGLOCK" -c REGULAR -g STATISTIC @@ -108,11 +108,12 @@ The HiSysEvent tool is a command line tool preconfigured in the **/system/bin** {"domain_":"MULTIMODALINPUT","name_":"Z_ORDER_WINDOW_CHANGE","type_":4,"time_":1667549852735,"tz_":"+0000","pid_":2577,"tid_":2588,"uid_":6696,"OLD_ZORDER_FIRST_WINDOWID":-1,"NEW_ZORDER_FIRST_WINDOWID":2,"OLD_ZORDER_FIRST_WINDOWPID":-1,"NEW_ZORDER_FIRST_WINDOWPID":1458,"MSG":"The ZorderFirstWindow changing succeeded","level_":"MINOR","tag_":"PowerStats","id_":"16847308118559691400","info_":""} ``` + ## Querying Historical System Events - Command for querying historical system events: - ``` + ```shell hisysevent -l ``` @@ -124,7 +125,7 @@ The HiSysEvent tool is a command line tool preconfigured in the **/system/bin** - Command for querying historical system events within the specified period of time: - ``` + ```shell hisysevent -l -s -e ``` @@ -132,21 +133,46 @@ The HiSysEvent tool is a command line tool preconfigured in the **/system/bin** | Option| Description| | -------- | -------- | - | -s | Start time for querying historical system events. Only system events generated after the start time are returned.| - | -e | End time for querying historical system events. Only system events generated before the end time are returned.| + | -s | Original start timestamp for querying historical system events. Only system events generated after the start time are returned.| + | -e | Original end timestamp for querying historical system events. Only system events generated before the end time are returned.| Example: - ``` + ```shell # hisysevent -l -s 1501964222980 -e 1501964222996 {"domain_":"RELIABILITY","name_":"APP_FREEZE","type_":1,"time_":1501964222980,"pid_":1505,"uid_":10002,"FAULT_TYPE":"4","MODULE":"com.ohos.screenlock","REASON":"NO_DRAW","SUMMARY":"SUMMARY:\n","LOG_PATH":"/data/log/faultlog/faultlogger/appfreeze-com.ohos.screenlock-10002-20170805201702","HAPPEN_TIME":1501964222980,"VERSION":"1.0.0","level_":"CRITICAL","tag_":"STABILITY","id_":"10435592800188571430","info_":""} {"domain_":"GRAPHIC","name_":"NO_DRAW","type_":1,"time_":1501964222980,"tz_":"+0000","pid_":1505,"tid_":1585,"uid_":10002,"PID":1505,"UID":10002,"ABILITY_NAME":"","MSG":"It took 1957104259905ns to draw, UI took 0ns to draw, RSRenderThread took 8962625ns to draw, RSRenderThread dropped 0 UI Frames","level_":"MINOR","id_":"1708287249901948387","info_":"isResolved,eventId:0"} {"domain_":"RELIABILITY","name_":"APP_FREEZE","type_":1,"time_":1501964222994,"tz_":"+0000","pid_":623,"tid_":1445,"uid_":1201,"SUB_EVENT_TYPE":"NO_DRAW","EVENT_TIME":"20170805201702","MODULE":"NO_DRAW","PNAME":"NO_DRAW","REASON":"NO_DRAW","DIAG_INFO":"","STACK":"SUMMARY:\n","HIVIEW_LOG_FILE_PATHS":["/data/log/faultlog/faultlogger/appfreeze-NO_DRAW-10002-20170805201702"],"DOMAIN":"GRAPHIC","STRING_ID":"NO_DRAW","PID":1505,"UID":10002,"PACKAGE_NAME":"NO_DRAW","PROCESS_NAME":"","MSG":"It took 1956945826265ns to draw, UI took 0ns to draw, RSRenderThread took 9863293ns to draw, RSRenderThread dropped 0 UI Frames\n","level_":"CRITICAL","tag_":"STABILITY","id_":"10448522101019619655","info_":""} ``` -- Command for setting the maximum number of historical events that can be queried: +- Command for querying historical system events within the specified period of time: + ```shell + hisysevent -l -S -E ``` + + Description of command options: + + | Option| Description| + | -------- | -------- | + | -S | Original start timestamp for querying historical system events. Only system events generated after the start time are returned.| + | -E | Original end timestamp for querying historical system events. Only system events generated after the start time are returned.| + + Example: + + ```shell + # hisysevent -l -S "2023-01-05 14:12:50" -E "2023-01-05 14:12:51" + {"domain_":"GRAPHIC","name_":"JANK_FRAME_SKIP","type_":1,"time_":1672899170022,"tz_":"+0800","pid_":1499,"tid_":1573,"uid_":20010037,"PID":1499,"UID":20010037,"ABILITY_NAME":"com.ohos.launcher","MSG":"It took 587948726ns to draw, UI took 483016382ns to draw, RSRenderThread took 96616051ns to draw, RSRenderThread dropped 0 UI Frames","level_":"MINOR","id_":"11351278822867091090","info_":"","seq_":307} + {"domain_":"AAFWK","name_":"START_ABILITY_ERROR","type_":1,"time_":1672899170108,"tz_":"+0800","pid_":550,"tid_":1127,"uid_":5523,"USER_ID":-1,"BUNDLE_NAME":"com.ohos.wallpaper","MODULE_NAME":"","ABILITY_NAME":"WallpaperExtAbility","ERROR_CODE":2097152,"level_":"MINOR","tag_":"ability","id_":"53589395004188308060","info_":"","seq_":313} + {"domain_":"GRAPHIC","name_":"JANK_FRAME_SKIP","type_":1,"time_":1672899170305,"tz_":"+0800","pid_":1293,"tid_":1632,"uid_":10006,"PID":1293,"UID":10006,"ABILITY_NAME":"com.ohos.systemui","MSG":"It took 309597490ns to draw, UI took 92364718ns to draw, RSRenderThread took 205874105ns to draw, RSRenderThread dropped 1 UI Frames","level_":"MINOR","id_":"14843220972178010722","info_":"","seq_":314} + {"domain_":"GRAPHIC","name_":"JANK_FRAME_SKIP","type_":1,"time_":1672899170350,"tz_":"+0800","pid_":1293,"tid_":1632,"uid_":10006,"PID":1293,"UID":10006,"ABILITY_NAME":"com.ohos.systemui","MSG":"It took 259782859ns to draw, UI took 33909753ns to draw, RSRenderThread took 44849879ns to draw, RSRenderThread dropped 5 UI Frames","level_":"MINOR","id_":"66610006717219916560","info_":"","seq_":315} + {"domain_":"AAFWK","name_":"CONNECT_SERVICE_ERROR","type_":1,"time_":1672899170733,"tz_":"+0800","pid_":550,"tid_":1127,"uid_":5523,"USER_ID":100,"BUNDLE_NAME":"com.ohos.wallpaper","MODULE_NAME":"","ABILITY_NAME":"WallpaperExtAbility","ERROR_CODE":2097152,"level_":"MINOR","tag_":"ability","id_":"10040008376311927188","info_":"","seq_":317} + {"domain_":"COMMONEVENT","name_":"PUBLISH","type_":2,"time_":1672899170063,"tz_":"+0800","pid_":550,"tid_":937,"uid_":5523,"USER_ID":-1,"PUBLISHER_BUNDLE_NAME":"","PID":0,"UID":1101,"EVENT_NAME":"usual.event.SCREEN_ON","level_":"MINOR","id_":"80996758983032931610","info_":"","seq_":308} + ``` + +- Command for setting the maximum number of historical events that can be queried: + + ```shell hisysevent -l -m ``` @@ -158,14 +184,14 @@ The HiSysEvent tool is a command line tool preconfigured in the **/system/bin** Example: - ``` + ```shell # hisysevent -l -s 1501964222980 -e 1501964222996 -m 1 {"domain_":"RELIABILITY","name_":"APP_FREEZE","type_":1,"time_":1501964222980,"pid_":1505,"uid_":10002,"FAULT_TYPE":"4","MODULE":"com.ohos.screenlock","REASON":"NO_DRAW","SUMMARY":"SUMMARY:\n","LOG_PATH":"/data/log/faultlog/faultlogger/appfreeze-com.ohos.screenlock-10002-20170805201702","HAPPEN_TIME":1501964222980,"VERSION":"1.0.0","level_":"CRITICAL","tag_":"STABILITY","id_":"10435592800188571430","info_":""} ``` - Command for querying historical system events by event domain and event name: - ``` + ```shell hisysevent -l -o -n [-c WHOLE_WORD] ``` @@ -173,24 +199,24 @@ The HiSysEvent tool is a command line tool preconfigured in the **/system/bin** | Option| Description| | -------- | -------- | - | -o | Domain based on which historical system events are queried.| - | -n | Name based on which historical system events are queried.| + | -o | Event domain based on which historical system events are queried.| + | -n | Event name based on which historical system events are queried.| | -c | Rule for matching the domain and name of historical system events. The option can only be **WHOLE_WORD**.| Example: - ``` + ```shell # hisysevent -l -n "APP_FREEZE" {"domain_":"RELIABILITY","name_":"APP_FREEZE","type_":1,"time_":1501963989773,"pid_":1505,"uid_":10002,"FAULT_TYPE":"4","MODULE":"com.ohos.screenlock","REASON":"NO_DRAW","SUMMARY":"SUMMARY:\n","LOG_PATH":"/data/log/faultlog/faultlogger/appfreeze-com.ohos.screenlock-10002-20170805201309","HAPPEN_TIME":1501963989773,"VERSION":"1.0.0","level_":"CRITICAL","tag_":"STABILITY","id_":"16367997008075110557","info_":""} - # hisysevent -r -o "RELIABILITY" + # hisysevent -l -o "RELIABILITY" {"domain_":"RELIABILITY","name_":"APP_FREEZE","type_":1,"time_":1501963989773,"pid_":1505,"uid_":10002,"FAULT_TYPE":"4","MODULE":"com.ohos.screenlock","REASON":"NO_DRAW","SUMMARY":"SUMMARY:\n","LOG_PATH":"/data/log/faultlog/faultlogger/appfreeze-com.ohos.screenlock-10002-20170805201544","HAPPEN_TIME":1501963989773,"VERSION":"1.0.0","level_":"CRITICAL","tag_":"STABILITY","id_":"13456525196455104060","info_":""} - # hisysevent -r -o "RELIABILITY" -n "APP_FREEZE" -c WHOLE_WORD + # hisysevent -l -o "RELIABILITY" -n "APP_FREEZE" -c WHOLE_WORD {"domain_":"RELIABILITY","name_":"APP_FREEZE","type_":1,"time_":1501963989773,"pid_":1505,"uid_":10002,"FAULT_TYPE":"4","MODULE":"com.ohos.screenlock","REASON":"NO_DRAW","SUMMARY":"SUMMARY:\n","LOG_PATH":"/data/log/faultlog/faultlogger/appfreeze-com.ohos.screenlock-10002-20170805201633","HAPPEN_TIME":1501963989773,"VERSION":"1.0.0","level_":"CRITICAL","tag_":"STABILITY","id_":"12675246910904037271","info_":""} ``` - Command for querying historical system events by event type: - ``` + ```shell hisysevent -l -g [FAULT|STATISTIC|SECURITY|BEHAVIOR] ``` @@ -202,7 +228,7 @@ The HiSysEvent tool is a command line tool preconfigured in the **/system/bin** Example: - ``` + ```shell # hisysevent -l -o "RELIABILITY" -g FAULT {"domain_":"RELIABILITY","name_":"APP_FREEZE","type_":1,"time_":1501963989773,"pid_":1505,"uid_":10002,"FAULT_TYPE":"4","MODULE":"com.ohos.screenlock","REASON":"NO_DRAW","SUMMARY":"SUMMARY:\n","LOG_PATH":"/data/log/faultlog/faultlogger/appfreeze-com.ohos.screenlock-10002-20170805201309","HAPPEN_TIME":1501963989773,"VERSION":"1.0.0","level_":"CRITICAL","tag_":"STABILITY","id_":"16367997008075110557","info_":""} # hisysevent -l -n "POWER_RUNNINGLOCK" -c WHOLE_WORD -g STATISTIC @@ -217,7 +243,7 @@ The HiSysEvent tool is a command line tool preconfigured in the **/system/bin** - Enabling system event validity check - ``` + ```shell hisysevent -v ``` @@ -229,7 +255,7 @@ The HiSysEvent tool is a command line tool preconfigured in the **/system/bin** Example: - ``` + ```shell # hisysevent -v -l -s 1501964222980 -e 1501964222996 # The **HAPPEN_TIME** and **VERSION** fields are not configured in the YAML file for the **APP_FREEZE** event that belongs to the **RELIABILITY** domain. Therefore, the two fields are highlighted in red. {"domain_":"RELIABILITY","name_":"APP_FREEZE","type_":1,"time_":1501964222980,"pid_":1505,"uid_":10002,"FAULT_TYPE":"4","MODULE":"com.ohos.screenlock","REASON":"NO_DRAW","SUMMARY":"SUMMARY:\n","LOG_PATH":"/data/log/faultlog/faultlogger/appfreeze-com.ohos.screenlock-10002-20170805201702","HAPPEN_TIME":1501964222980,"VERSION":"1.0.0","level_":"CRITICAL","tag_":"STABILITY","id_":"10435592800188571430","info_":""} diff --git a/en/device-dev/subsystems/subsys-utils-guide.md b/en/device-dev/subsystems/subsys-utils-guide.md index c1c046cb85ffc0e824a78b762bcc31383338633e..12bd25bd3864682952344eaa69fae0e81a2fc67c 100644 --- a/en/device-dev/subsystems/subsys-utils-guide.md +++ b/en/device-dev/subsystems/subsys-utils-guide.md @@ -31,9 +31,9 @@ The **commonlibrary** subsystem stores basic OpenHarmony components which provid ## Development Guidelines -[Development Guidelines for c_utils](https://gitee.com/openharmony/commonlibrary_c_utils/blob/master/docs/en/c-utils-guide.md) +[Related Documents for c_utils](https://gitee.com/openharmony/commonlibrary_c_utils/blob/master/README.md) # Commonlibrary Subsystem FAQ ## c_utils FAQ -See [Development Guidelines for c_utils](https://gitee.com/openharmony/commonlibrary_c_utils/blob/master/docs/en/c-utils-guide.md), including FAQs for several scenarios. \ No newline at end of file +See [Related Documents for c_utils](https://gitee.com/openharmony/commonlibrary_c_utils/blob/master/README.md), including FAQs for several scenarios. \ No newline at end of file diff --git a/en/readme/distributed-hardware.md b/en/readme/distributed-hardware.md new file mode 100644 index 0000000000000000000000000000000000000000..1da23097f88ddd0cbef48ef41ac8667b9af5004b --- /dev/null +++ b/en/readme/distributed-hardware.md @@ -0,0 +1,49 @@ +# Distributed Hardware + +## Introduction + +### **Distributed Hardware Subsystem** + +The distributed hardware subsystem manages hardware information of all the devices in a Super Device so that the hardware capabilities can be shared and called across devices. + +### Architecture + +![Distributed Hardware Subsystem](figures/distributed-hardware-subsystem.png) + +## Directory Structure + +``` +foundation/distributedhardware +├──device_manager # Directory of DeviceManager. +├──distributed_hardware_fwk # Directory of the distributed hardware framework. +├──distributed_camera # Directory of the distributed camera component. +└──distributed_screen # Directory of the distributed screen component. +``` + +## Component Description + +### DeviceManager + +DeviceManager provides authentication and networking for devices of a Super Device, including discovering distributed devices, performing authentication, and listening for device online/offline status. + +### Distributed Hardware Framework + +As an information management component of the distributed hardware subsystem, the distributed hardware framework implements unified hardware access, information query, and hardware enablement. + +### Distributed Camera + +The distributed camera component implements collaboration of cameras of multiple devices that form a Super Device. Instead of directly interacting with applications, the distributed camera component only provides C++ interfaces for the distributed hardware framework. Applications can call the APIs of the camera framework to use the distributed camera component to operate cameras of other devices, just like operating a local camera. + +### Distributed Screen + +The distributed screen provides a screen virtualization capability, which allows the screen of another authenticated device to be used as a display. In the distributed hardware subsystem, the distributed screen component implements system projection, screen mirroring, and screen splitting across the devices that form a Super Device. + +## Repositories Involved + +[distributedhardware\_device\_manager](https://gitee.com/openharmony/distributedhardware_device_manager) + +[distributedhardware\_distributed\_hardware\_fwk](https://gitee.com/openharmony/distributedhardware_distributed_hardware_fwk) + +[distributedhardware\_distributed\_camera](https://gitee.com/openharmony/distributedhardware_distributed_camera) + +[distributedhardware\_distributed\_screen](https://gitee.com/openharmony/distributedhardware_distributed_screen) diff --git a/en/readme/figures/distributed-hardware-subsystem.png b/en/readme/figures/distributed-hardware-subsystem.png new file mode 100644 index 0000000000000000000000000000000000000000..3c6037bb40688c913f1848a2b5f6fe2ad5517fa1 Binary files /dev/null and b/en/readme/figures/distributed-hardware-subsystem.png differ diff --git a/en/readme/telephony.md b/en/readme/telephony.md index 78b7169591cad3eec673cb1e4cf1d70135931ba5..158478174026532fdb1ee95f536f72c3fc5e2eae 100755 --- a/en/readme/telephony.md +++ b/en/readme/telephony.md @@ -36,7 +36,7 @@ base/telephony/ ## Constraints 1. The open-source version currently provides the cellular call (CS call only), SMS & MMS, and cellular data services and supports the dual-SIM framework. -2. The Hardware Device Interface (HDI) support is subject to the chip vendors' adaptation capability. For details, see [Telephony Development](../device-dev/subsystems/subsys-tel-guide). +2. The Hardware Device Interface (HDI) support is subject to the chip vendors' adaptation capability. For details, see [Telephony Development](../device-dev/subsystems/subsys-tel-overview.md). ## Usage Guidelines diff --git a/en/readme/test.md b/en/readme/test.md index b5171f0388d537e92ecb9418261b30fb2a44d415..d4410e5ab091974940eace2baa5d58bc8a6be406 100644 --- a/en/readme/test.md +++ b/en/readme/test.md @@ -3,8 +3,8 @@ OpenHarmony provides a comprehensive auto-test framework for designing test case This document describes how to use the OpenHarmony test framework. ## Setting Up the Environment -The test framework depends on the Python running environment. Before using the test framework, set up the environment as follows: - - [Setting Up the Environment](../device-dev/subsystems/subsys-testguide-test.md#setting-up-the-environment) +The test framework depends on Python. Before using the test framework, set up the environment as follows: + - [Configuring the Environment](../device-dev/device-test/xdevice.md) - [Obtaining Source Code](../device-dev/get-code/sourcecode-acquire.md) @@ -14,7 +14,7 @@ The directory structure of the test framework is as follows: test # Test subsystem ├── developertest # Developer test module │ ├── aw # Static library of the test framework -│ ├── config # Test framework configuration +│ ├── config # Test framework configuration │ │ │ ... │ │ └── user_config.xml # User configuration │ ├── examples # Examples of test cases @@ -30,30 +30,30 @@ test # Test subsystem ### Designing the Test Case Directory Design the test case directory as follows: ``` -subsystem # Subsystem -├── partA # Part A -│ ├── moduleA # Module A +subsystem # Subsystem +├── partA # Part A +│ ├── moduleA # Module A │ │ ├── include -│ │ ├── src # Service code -│ │ └── test # Test directory -│ │ ├── unittest # Unit test -│ │ │ ├── common # Common test cases -│ │ │ │ ├── BUILD.gn # Build file of test cases -│ │ │ │ └── testA_test.cpp # Source code of unit test cases -│ │ │ ├── phone # Test cases for mobile phones -│ │ │ ├── ivi # Test cases for head units -│ │ │ └── liteos-a # Test cases for the IP cameras that use the LiteOS kernel -│ │ ├── moduletest # Module test +│ │ ├── src # Service code +│ │ └── test # Test directory +│ │ ├── unittest # Unit tests +│ │ │ ├── common # Common test cases +│ │ │ │ ├── BUILD.gn # Build file of test cases +│ │ │ │ └── testA_test.cpp # Source code of unit test cases +│ │ │ ├── phone # Test cases for smart phones +│ │ │ ├── ivi # Test cases for head units +│ │ │ └── liteos-a # Test cases for IP cameras that use the LiteOS kernel +│ │ ├── moduletest # Module tests │ │ ... │ │ -│ ├── moduleB # Module B +│ ├── moduleB # Module B │ ├── test -│ │ └── resource # Dependency resources -│ │ ├── moduleA # Module A -│ │ │ ├── ohos_test.xml # Resource configuration file -│ │ ... └── 1.txt # Resource file +│ │ └── resource # Dependency resources +│ │ ├── moduleA # Module A +│ │ │ ├── ohos_test.xml # Resource configuration file +│ │ ... └── 1.txt # Resource file │ │ -│ ├── ohos_build # Build entry configuration +│ ├── ohos_build # Build entry configuration │ ... │ ... @@ -111,7 +111,7 @@ Example: /** * @tc.name: integer_sub_001 - * @tc.desc: Verify the sub-function. + * @tc.desc: Verify the sub function. * @tc.type: FUNC * @tc.require: Issue Number */ @@ -119,7 +119,7 @@ Example: { // Step 1 Call the function to obtain the result. int actual = Sub(4, 0); - + // Step 2 Use an assertion to compare the obtained result with the expected result. EXPECT_EQ(4, actual); } @@ -127,20 +127,22 @@ Example: The procedure is as follows: 1. Add comment information to the test case file header. - Enter the header comment in the standard format. For details, see [Code Specifications](https://gitee.com/openharmony/docs/blob/master/en/contribute/code-contribution.md). + Enter the header comment in the standard format. For details, see [Code Specifications] (https://gitee.com/openharmony/docs/blob/master/en/contribute/code-contribution.md). 2. Add the test framework header file and namespace. ``` #include - + using namespace testing::ext; ``` - 3. Add the header file of the test class. - ``` + + 3. Add the header file of the test class. + ``` #include "calculator.h" ``` + 4. Define the test suite (test class). - ``` + ``` class CalculatorSubTest : public testing::Test { public: static void SetUpTestCase(void); @@ -148,73 +150,84 @@ Example: void SetUp(); void TearDown(); }; - + void CalculatorSubTest::SetUpTestCase(void) { // Set a setup function, which will be called before all test cases. } - + void CalculatorSubTest::TearDownTestCase(void) { // Set a teardown function, which will be called after all test cases. } - + void CalculatorSubTest::SetUp(void) { // Set a setup function, which will be called before each test case. } - + void CalculatorSubTest::TearDown(void) { // Set a teardown function, which will be called after each test case. - } - ``` - > **NOTE**
When defining a test suite, ensure that the test suite name is the same as the target to build and uses the upper camel case style. - - 5. Add implementation of the test cases, including test case comments and logic. - ``` - /** - * @tc.name: integer_sub_001 - * @tc.desc: Verify the sub function. - * @tc.type: FUNC - * @tc.require: Issue Number - */ - HWTEST_F(CalculatorSubTest, integer_sub_001, TestSize.Level1) - { - // Step 1 Call the function to obtain the test result. - int actual = Sub(4, 0); - - // Step 2 Use an assertion to compare the obtained result with the expected result. - EXPECT_EQ(4, actual); - } - ``` - The following test case templates are provided for your reference. + } + ``` + > **NOTE**
When defining a test suite, ensure that the test suite name is the same as the target to build and uses the upper camel case style. - | Template| Description| - | ------------| ------------| - | HWTEST(A,B,C)| Use this template if the test case execution does not depend on setup or teardown.| - | HWTEST_F(A,B,C)| Use this template if the test case execution (excluding parameters) depends on setup and teardown.| - | HWTEST_P(A,B,C)| Use this template if the test case execution (including parameters) depends on setup and teardown.| - - In the template names: - - *A* indicates the test suite name. - - *B* indicates the test case name, which is in the *Function*\_*No.* format. The *No.* is a three-digit number starting from **001**. - - *C* indicates the test case level. There are five test case levels: guard-control level 0 and non-guard-control level 1 to level 4. Of levels 1 to 4, a smaller value indicates a more important function verified by the test case. - - **NOTE**
- - The expected result of each test case must have an assertion. - - The test case level must be specified. - - It is recommended that the test be implemented step by step according to the template. - - The comment must contain the test case name, description, type, and requirement number, which are in the @tc.*xxx*: *value* format. The test case description must be in the @tc.xxx format. The test case type @tc.type can be any of the following: - - | Test Case Type|Code| - | ------------|------------| - |Function test |FUNC| - |Performance test |PERF| - |Reliability test |RELI| - |Security test |SECU| - |Fuzz test |FUZZ| + 5. Add implementation of the test cases, including test case comments and logic. + ``` + /** + + * @tc.name: integer_sub_001 + + * @tc.desc: Verify the sub function. + + * @tc.type: FUNC + + * @tc.require: Issue Number + */ + HWTEST_F(CalculatorSubTest, integer_sub_001, TestSize.Level1) + { + // Step 1 Call the function to obtain the test result. + int actual = Sub(4, 0); + + // Step 2 Use an assertion to compare the obtained result with the expected result. + EXPECT_EQ(4, actual); + } + ``` + + The following test case templates are provided for your reference. + + | Template | Description | + | --------------- | ------------------------------------------------------------ | + | HWTEST(A,B,C) | Use this template if the test case execution does not depend on setup or teardown. | + | HWTEST_F(A,B,C) | Use this template if the test case execution (excluding parameters) depends on setup and teardown. | + | HWTEST_P(A,B,C) | Use this template if the test case execution (including parameters) depends on setup and teardown. | + + In the template names: + + - *A* indicates the test suite name. + + - *B* indicates the test case name, which is in the *Function*\_*No.* format. The *No.* is a three-digit number starting from **001**. + + - *C* indicates the test case level. There are five test case levels: guard-control level 0 and non-guard-control level 1 to level 4. Of levels 1 to 4, a smaller value indicates a more important function verified by the test case. + + + + > **NOTE** + > + > - The expected result of each test case must have an assertion. + >- The test case level must be specified. + > - It is recommended that the test be implemented step by step according to the template. + >- The comment must contain the test case name, description, type, and requirement number, which are in the @tc.*xxx*: *value* format. The test case description must be in the @tc.xxx format. The test case type @tc.type can be any of the following: + + | Test Case Type | Code | + | ---------------- | ---- | + | Function test | FUNC | + | Performance test | PERF | + | Reliability test | RELI | + | Security test | SECU | + | Fuzz test | FUZZ | #### JavaScript Test Case Example @@ -262,7 +275,7 @@ Example: it("appInfoTest001", 0, function () { // Step 1 Call the function to obtain the test result. var info = app.getInfo() - + // Step 2 Use an assertion to compare the obtained result with the expected result. expect(info != null).assertEqual(true) }) @@ -271,12 +284,12 @@ Example: The procedure is as follows: 1. Add comment information to the test case file header. - Enter the header comment in the standard format. For details, see [Code Specifications](https://gitee.com/openharmony/docs/blob/master/en/contribute/code-contribution.md). + Enter the header comment in the standard format. For details, see [Code Specifications] (https://gitee.com/openharmony/docs/blob/master/en/contribute/code-contribution.md). 2. Import the APIs and JSUnit test library to test. ``` import app from '@system.app' - + import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from 'deccjsunit/index' ``` 3. Define the test suite (test class). @@ -313,7 +326,7 @@ Example: it("appInfoTest001", 0, function () { // Step 1 Call the function to obtain the test result. var info = app.getInfo() - + // Step 2 Use an assertion to compare the obtained result with the expected result. expect(info != null).assertEqual(true) }) @@ -362,12 +375,13 @@ The following provides templates for different languages for your reference. 1. Add comment information for the file header. - Enter the header comment in the standard format. For details, see [Code Specifications](https://gitee.com/openharmony/docs/blob/master/en/contribute/code-contribution.md). + Enter the header comment in the standard format. For details, see [Code Specifications] (https://gitee.com/openharmony/docs/blob/master/en/contribute/code-contribution.md). 2. Import the build template. ``` import("//build/test.gni") ``` + 3. Specify the file output path. ``` module_output_path = "subsystem_examples/calculator" @@ -391,7 +405,9 @@ The following provides templates for different languages for your reference. ohos_unittest("CalculatorSubTest") { } ``` + 6. Write the build script (add the source file, configuration, and dependencies) for the test cases. + ``` ohos_unittest("CalculatorSubTest") { module_out_path = module_output_path @@ -402,30 +418,35 @@ The following provides templates for different languages for your reference. ] sources += [ "calculator_sub_test.cpp" ] configs = [ ":module_private_config" ] - deps = [ "//third_party/googletest:gtest_main" ] - } + deps = [ "//third_party/googletest:gtest_main" ] + } ``` - - > **NOTE**
Set the test type based on actual requirements. The following test types are available: - > - > - **ohos_unittest**: unit test - > - **ohos_moduletest**: module test - > - **ohos_systemtest**: system test - > - **ohos_performancetest**: performance test - > - **ohos_securitytest**: security test - > - **ohos_reliabilitytest**: reliability test - > - **ohos_distributedtest**: distributed test + > **NOTE** + > + > - **ohos_unittest**: unit test + > - **ohos_moduletest**: module test + > - **ohos_systemtest**: system test + > - **ohos_performancetest**: performance test + > - **ohos_securitytest**: security test + > - **ohos_reliabilitytest**: reliability test + > - **ohos_distributedtest**: distributed test + 7. Group the test case files by test type. - - ``` - group("unittest") { - testonly = true - deps = [":CalculatorSubTest"] - } - ``` - > **NOTE**
Grouping test cases by test type allows you to execute a specific type of test cases when required. - + + ``` + group("unittest") { + testonly = true + deps = [":CalculatorSubTest"] + } + ``` + + > **NOTE** + > + > Grouping test cses by test type allows you to execute a specific type of test cases when required. + + ​ + - **Test case build file example (JavaScript)** ``` @@ -451,7 +472,7 @@ The following provides templates for different languages for your reference. 1. Add comment information for the file header. - Enter the header comment in the standard format. For details, see [Code Specifications](https://gitee.com/openharmony/docs/blob/master/en/contribute/code-contribution.md). + Enter the header comment in the standard format. For details, see [Code Specifications] (https://gitee.com/openharmony/docs/blob/master/en/contribute/code-contribution.md). 2. Import the build template. @@ -485,7 +506,7 @@ The following provides templates for different languages for your reference. certificate_profile = "//test/developertest/signature/openharmony_sx.p7b" } ``` - **config.json** is the configuration file required for HAP build. You need to set **target** based on the tested SDK version. Default values can be retained for other items. The following is an example: + **config.json** is the configuration file required for HAP build. You need to set **target** based on the tested SDK version. Default values can be retained for other items. The following is an example: ``` { @@ -677,8 +698,9 @@ When the build is complete, the test cases are automatically saved in **out/hisp 2. Copy **developertest** and **xdevice** from the Linux environment to the **Test** directory on Windows, and copy the test cases to the **testcase** directory. ->**NOTE**
Port the test framework and test cases from the Linux environment to the Windows environment for subsequent execution. - + > **NOTE**
+ > + > Port the test framework and test cases from the Linux environment to the Windows environment for subsequent execution. 3. Modify the **user_config.xml** file. ``` @@ -745,7 +767,7 @@ To enable test cases to be executed on a remote Linux server or a Linux VM, map The test framework locates the test cases based on the command, and automatically builds and executes the test cases. ``` - run -t UT -ts CalculatorSubTest -tc integer_sub_00l + run -t UT -ts CalculatorSubTest -tc interger_sub_00l ``` In the command: ``` diff --git a/en/release-notes/changelogs/OpenHarmony_3.2.10.1/changelog-security.md b/en/release-notes/changelogs/OpenHarmony_3.2.10.1/changelog-security.md index 970c73c2bdbe4ac56682e6ff8266c9f73f31f658..4bd1acf87dcc5940947215d8c3dd3d459d0c49bc 100644 --- a/en/release-notes/changelogs/OpenHarmony_3.2.10.1/changelog-security.md +++ b/en/release-notes/changelogs/OpenHarmony_3.2.10.1/changelog-security.md @@ -1,6 +1,6 @@ # Security Subsystem ChangeLog -## cl.security.1 setSeed API Change of Random from Asynchronous to Synchronous +## cl.security.1 Change of the setSeed API of Random from Asynchronous to Synchronous **Change Impacts** @@ -8,422 +8,468 @@ Behavior of released JavaScript APIs will be changed. The application needs to adapt these APIs so that it can be properly compiled in the SDK environment of the new version. **Key API/Component Changes** - -API prototype before change: - -- setSeed(seed : DataBlob, callback : AsyncCallback\) : void; -- setSeed(seed : DataBlob) : Promise\; - -API prototype after change: - +API prototype before the change: +setSeed(seed : DataBlob, callback : AsyncCallback\) : void; +setSeed(seed : DataBlob) : Promise\; +API prototype after the change: setSeed(seed : DataBlob) : void; **Adaptation Guide** - -See the API adaptation guide of **setSeed** in the API reference: [Crypto Framework - API Reference](https://gitee.com/openharmony/docs/blob/master/en/application-dev/reference/apis/js-apis-cryptoFramework.md) +See the API adaptation guide of **setSeed** in the API reference: +[Crypto Framework - API Reference](https://gitee.com/openharmony/docs/blob/master/en/application-dev/reference/apis/js-apis-cryptoFramework.md) ## cl.security.2 Migration of interface DataArray from @ohos.security.cryptoFramework.d.ts to @ohos.security.cert.d.ts **Change Impacts** Behavior of released JavaScript APIs will be changed. - The application needs to adapt these APIs so that it can be properly compiled in the SDK environment of the new version. **Key API/Component Changes** - Migrated **interface DataArray** from **@ohos.security.cryptoFramework.d.ts** to **@ohos.security.cert.d.ts**. **Adaptation Guide** - Import and use the new .d.ts file: - import cryptoCert from '@ohos.security.cert'; - -See the corresponding API adaptation guide in the API reference: [Certificate - API Reference](https://gitee.com/openharmony/docs/blob/master/en/application-dev/reference/apis/js-apis-cert.md) +See the corresponding API adaptation guide in the API reference: +[Certificate - API Reference](https://gitee.com/openharmony/docs/blob/master/en/application-dev/reference/apis/js-apis-cert.md) ## cl.security.3 Migration of interface EncodingFormat from @ohos.security.cryptoFramework.d.ts to @ohos.security.cert.d.ts **Change Impacts** Behavior of released JavaScript APIs will be changed. - The application needs to adapt these APIs so that it can be properly compiled in the SDK environment of the new version. **Key API/Component Changes** - Migrated **interface EncodingFormat** from **@ohos.security.cryptoFramework.d.ts** to **@ohos.security.cert.d.ts**. **Adaptation Guide** - Import and use the new .d.ts file: - import cryptoCert from '@ohos.security.cert'; - -See the corresponding API adaptation guide in the API reference: [Certificate - API Reference](https://gitee.com/openharmony/docs/blob/master/en/application-dev/reference/apis/js-apis-cert.md) +See the corresponding API adaptation guide in the API reference: +[Certificate - API Reference](https://gitee.com/openharmony/docs/blob/master/en/application-dev/reference/apis/js-apis-cert.md) ## cl.security.4 Migration of interface EncodingBlob from @ohos.security.cryptoFramework.d.ts to @ohos.security.cert.d.ts **Change Impacts** Behavior of released JavaScript APIs will be changed. - The application needs to adapt these APIs so that it can be properly compiled in the SDK environment of the new version. **Key API/Component Changes** - Migrated **interface EncodingBlob** from **@ohos.security.cryptoFramework.d.ts** to **@ohos.security.cert.d.ts**. **Adaptation Guide** - Import and use the new .d.ts file: - import cryptoCert from '@ohos.security.cert'; - -See the corresponding API adaptation guide in the API reference: [Certificate - API Reference](https://gitee.com/openharmony/docs/blob/master/en/application-dev/reference/apis/js-apis-cert.md) +See the corresponding API adaptation guide in the API reference: +[Certificate - API Reference](https://gitee.com/openharmony/docs/blob/master/en/application-dev/reference/apis/js-apis-cert.md) ## cl.security.5 Migration of interface CertChainData from @ohos.security.cryptoFramework.d.ts to @ohos.security.cert.d.ts **Change Impacts** Behavior of released JavaScript APIs will be changed. - The application needs to adapt these APIs so that it can be properly compiled in the SDK environment of the new version. **Key API/Component Changes** - Migrated **interface CertChainData** from **@ohos.security.cryptoFramework.d.ts** to **@ohos.security.cert.d.ts**. **Adaptation Guide** - Import and use the new .d.ts file: - import cryptoCert from '@ohos.security.cert'; - -See the corresponding API adaptation guide in the API reference: [Certificate - API Reference](https://gitee.com/openharmony/docs/blob/master/en/application-dev/reference/apis/js-apis-cert.md) +See the corresponding API adaptation guide in the API reference: +[Certificate - API Reference](https://gitee.com/openharmony/docs/blob/master/en/application-dev/reference/apis/js-apis-cert.md) ## cl.security.6 Migration of interface X509Cert from @ohos.security.cryptoFramework.d.ts to @ohos.security.cert.d.ts **Change Impacts** Behavior of released JavaScript APIs will be changed. - The application needs to adapt these APIs so that it can be properly compiled in the SDK environment of the new version. **Key API/Component Changes** - Migrated **interface X509Cert** from **@ohos.security.cryptoFramework.d.ts** to **@ohos.security.cert.d.ts**. **Adaptation Guide** - Import and use the new .d.ts file: - import cryptoCert from '@ohos.security.cert'; - -See the corresponding API adaptation guide in the API reference: [Certificate - API Reference](https://gitee.com/openharmony/docs/blob/master/en/application-dev/reference/apis/js-apis-cert.md) +See the corresponding API adaptation guide in the API reference: +[Certificate - API Reference](https://gitee.com/openharmony/docs/blob/master/en/application-dev/reference/apis/js-apis-cert.md) ## cl.security.7 Migration of function createX509Cert from @ohos.security.cryptoFramework.d.ts to @ohos.security.cert.d.ts **Change Impacts** Behavior of released JavaScript APIs will be changed. - The application needs to adapt these APIs so that it can be properly compiled in the SDK environment of the new version. **Key API/Component Changes** - Migrated **function createX509Cert** from **@ohos.security.cryptoFramework.d.ts** to **@ohos.security.cert.d.ts**. **Adaptation Guide** - Import and use the new .d.ts file: - import cryptoCert from '@ohos.security.cert'; - -See the corresponding API adaptation guide in the API reference: [Certificate - API Reference](https://gitee.com/openharmony/docs/blob/master/en/application-dev/reference/apis/js-apis-cert.md) +See the corresponding API adaptation guide in the API reference: +[Certificate - API Reference](https://gitee.com/openharmony/docs/blob/master/en/application-dev/reference/apis/js-apis-cert.md) ## cl.security.8 Migration of interface X509CrlEntry from @ohos.security.cryptoFramework.d.ts to @ohos.security.cert.d.ts. **Change Impacts** Behavior of released JavaScript APIs will be changed. - The application needs to adapt these APIs so that it can be properly compiled in the SDK environment of the new version. **Key API/Component Changes** - Migrated **interface X509CrlEntry** from **@ohos.security.cryptoFramework.d.ts** to **@ohos.security.cert.d.ts**. **Adaptation Guide** - Import and use the new .d.ts file: - import cryptoCert from '@ohos.security.cert'; - -See the corresponding API adaptation guide in the API reference: [Certificate - API Reference](https://gitee.com/openharmony/docs/blob/master/en/application-dev/reference/apis/js-apis-cert.md) +See the corresponding API adaptation guide in the API reference: +[Certificate - API Reference](https://gitee.com/openharmony/docs/blob/master/en/application-dev/reference/apis/js-apis-cert.md) ## cl.security.9 Migration of interface X509Crl from @ohos.security.cryptoFramework.d.ts to @ohos.security.cert.d.ts **Change Impacts** Behavior of released JavaScript APIs will be changed. - The application needs to adapt these APIs so that it can be properly compiled in the SDK environment of the new version. **Key API/Component Changes** - Migrated **interface X509Crl** from **@ohos.security.cryptoFramework.d.ts** to **@ohos.security.cert.d.ts**. **Adaptation Guide** - Import and use the new .d.ts file: - import cryptoCert from '@ohos.security.cert'; - -See the corresponding API adaptation guide in the API reference: [Certificate - API Reference](https://gitee.com/openharmony/docs/blob/master/en/application-dev/reference/apis/js-apis-cert.md) +See the corresponding API adaptation guide in the API reference: +[Certificate - API Reference](https://gitee.com/openharmony/docs/blob/master/en/application-dev/reference/apis/js-apis-cert.md) ## cl.security.10 Migration of function createX509Crl from @ohos.security.cryptoFramework.d.ts to @ohos.security.cert.d.ts **Change Impacts** Behavior of released JavaScript APIs will be changed. - The application needs to adapt these APIs so that it can be properly compiled in the SDK environment of the new version. **Key API/Component Changes** - Migrated **function createX509Crl** from **@ohos.security.cryptoFramework.d.ts** to **@ohos.security.cert.d.ts**. **Adaptation Guide** - Import and use the new .d.ts file: - import cryptoCert from '@ohos.security.cert'; - -See the corresponding API adaptation guide in the API reference: [Certificate - API Reference](https://gitee.com/openharmony/docs/blob/master/en/application-dev/reference/apis/js-apis-cert.md) +See the corresponding API adaptation guide in the API reference: +[Certificate - API Reference](https://gitee.com/openharmony/docs/blob/master/en/application-dev/reference/apis/js-apis-cert.md) ## cl.security.11 Migration of interface CertChainValidator from @ohos.security.cryptoFramework.d.ts to @ohos.security.cert.d.ts **Change Impacts** Behavior of released JavaScript APIs will be changed. - The application needs to adapt these APIs so that it can be properly compiled in the SDK environment of the new version. **Key API/Component Changes** - Migrated **interface CertChainValidator** from **@ohos.security.cryptoFramework.d.ts** to **@ohos.security.cert.d.ts**. **Adaptation Guide** - Import and use the new .d.ts file: - import cryptoCert from '@ohos.security.cert'; - -See the corresponding API adaptation guide in the API reference: [Certificate - API Reference](https://gitee.com/openharmony/docs/blob/master/en/application-dev/reference/apis/js-apis-cert.md) +See the corresponding API adaptation guide in the API reference: +[Certificate - API Reference](https://gitee.com/openharmony/docs/blob/master/en/application-dev/reference/apis/js-apis-cert.md) ## cl.security.12 Migration of function createCertChainValidator from @ohos.security.cryptoFramework.d.ts to @ohos.security.cert.d.ts **Change Impacts** Behavior of released JavaScript APIs will be changed. - The application needs to adapt these APIs so that it can be properly compiled in the SDK environment of the new version. **Key API/Component Changes** - Migrated **function createCertChainValidator** from **@ohos.security.cryptoFramework.d.ts** to **@ohos.security.cert.d.ts**. **Adaptation Guide** - Import and use the new .d.ts file: - import cryptoCert from '@ohos.security.cert'; - -See the corresponding API adaptation guide in the API reference: [Certificate - API Reference](https://gitee.com/openharmony/docs/blob/master/en/application-dev/reference/apis/js-apis-cert.md) +See the corresponding API adaptation guide in the API reference: +[Certificate - API Reference](https://gitee.com/openharmony/docs/blob/master/en/application-dev/reference/apis/js-apis-cert.md) -## cl.security.13 getPublicKey API Change of X509Cert from Asynchronous to Synchronous +## cl.security.13 Change of the getPublicKey API of X509Cert from Asynchronous to Synchronous **Change Impacts** Behavior of released JavaScript APIs will be changed. - The application needs to adapt these APIs so that it can be properly compiled in the SDK environment of the new version. **Key API/Component Changes** - -API prototype before change: - -- getPublicKey(callback : AsyncCallback\) : void; -- getPublicKey() : Promise\; - -API prototype after change: - +API prototype before the change: +getPublicKey(callback : AsyncCallback\) : void; +getPublicKey() : Promise\; +API prototype after the change: getPublicKey() : cryptoFramework.PubKey; **Adaptation Guide** - -See the corresponding API adaptation guide in the API reference: [Certificate - API Reference](https://gitee.com/openharmony/docs/blob/master/en/application-dev/reference/apis/js-apis-cert.md) +See the corresponding API adaptation guide in the API reference: +[Certificate - API Reference](https://gitee.com/openharmony/docs/blob/master/en/application-dev/reference/apis/js-apis-cert.md) -## cl.security.14 checkValidityWithDate API Change of X509Cert from Asynchronous to Synchronous +## cl.security.14 Change of the checkValidityWithDate API of X509Cert from Asynchronous to Synchronous **Change Impacts** Behavior of released JavaScript APIs will be changed. - The application needs to adapt these APIs so that it can be properly compiled in the SDK environment of the new version. **Key API/Component Changes** - -API prototype before change: - -- checkValidityWithDate(date: string, callback : AsyncCallback\) : void; -- checkValidityWithDate(date: string) : Promise\; - -API prototype after change: - +API prototype before the change: +checkValidityWithDate(date: string, callback : AsyncCallback\) : void; +checkValidityWithDate(date: string) : Promise\; +API prototype after the change: checkValidityWithDate(date: string) : void; **Adaptation Guide** - -See the corresponding API adaptation guide in the API reference: [Certificate - API Reference](https://gitee.com/openharmony/docs/blob/master/en/application-dev/reference/apis/js-apis-cert.md) +See the corresponding API adaptation guide in the API reference: +[Certificate - API Reference](https://gitee.com/openharmony/docs/blob/master/en/application-dev/reference/apis/js-apis-cert.md) -## cl.security.15 getCertIssuer API Change of X509CrlEntry from Asynchronous to Synchronous +## cl.security.15 Change of the getCertIssuer API of X509CrlEntry from Asynchronous to Synchronous **Change Impacts** Behavior of released JavaScript APIs will be changed. - The application needs to adapt these APIs so that it can be properly compiled in the SDK environment of the new version. **Key API/Component Changes** +API prototype before the change: +getCertIssuer(callback : AsyncCallback\) : void; +getCertIssuer() : Promise\; -API prototype before change: - -- getCertIssuer(callback : AsyncCallback\) : void; -- getCertIssuer() : Promise\; - -API prototype after change: - +API prototype after the change: getCertIssuer() : DataBlob; **Adaptation Guide** - -See the corresponding API adaptation guide in the API reference: [Certificate - API Reference](https://gitee.com/openharmony/docs/blob/master/en/application-dev/reference/apis/js-apis-cert.md) +See the corresponding API adaptation guide in the API reference: +[Certificate - API Reference](https://gitee.com/openharmony/docs/blob/master/en/application-dev/reference/apis/js-apis-cert.md) -## cl.security.16 getRevocationDate API Change of X509CrlEntry from Asynchronous to Synchronous +## cl.security.16 Change of the getRevocationDate API of X509CrlEntry from Asynchronous to Synchronous **Change Impacts** Behavior of released JavaScript APIs will be changed. - The application needs to adapt these APIs so that it can be properly compiled in the SDK environment of the new version. **Key API/Component Changes** +API prototype before the change: +getRevocationDate(callback : AsyncCallback\) : void; +getRevocationDate() : Promise\; -API prototype before change: - -- getRevocationDate(callback : AsyncCallback\) : void; -- getRevocationDate() : Promise\; - -API prototype after change: - +API prototype after the change: getRevocationDate() : string; **Adaptation Guide** +See the corresponding API adaptation guide in the API reference: +[Certificate - API Reference](https://gitee.com/openharmony/docs/blob/master/en/application-dev/reference/apis/js-apis-cert.md) -See the corresponding API adaptation guide in the API reference: [Certificate - API Reference](https://gitee.com/openharmony/docs/blob/master/en/application-dev/reference/apis/js-apis-cert.md) - -## cl.security.17 isRevoked API Change of X509Crl from Asynchronous to Synchronous +## cl.security.17 Change of the isRevoked API of X509Crl from Asynchronous to Synchronous **Change Impacts** Behavior of released JavaScript APIs will be changed. - The application needs to adapt these APIs so that it can be properly compiled in the SDK environment of the new version. **Key API/Component Changes** +API prototype before the change: +isRevoked(cert : X509Cert, callback : AsyncCallback\) : void; +isRevoked(cert : X509Cert) : Promise\; -API prototype before change: - -- isRevoked(cert : X509Cert, callback : AsyncCallback\) : void; -- isRevoked(cert : X509Cert) : Promise\; - -API prototype after change: - +API prototype after the change: isRevoked(cert : X509Cert) : boolean; **Adaptation Guide** - -See the corresponding API adaptation guide in the API reference: [Certificate - API Reference](https://gitee.com/openharmony/docs/blob/master/en/application-dev/reference/apis/js-apis-cert.md) +See the corresponding API adaptation guide in the API reference: +[Certificate - API Reference](https://gitee.com/openharmony/docs/blob/master/en/application-dev/reference/apis/js-apis-cert.md) -## cl.security.18 getRevokedCert API Change of X509Crl from Asynchronous to Synchronous +## cl.security.18 Change of the getRevokedCert API of X509Crl from Asynchronous to Synchronous **Change Impacts** Behavior of released JavaScript APIs will be changed. - The application needs to adapt these APIs so that it can be properly compiled in the SDK environment of the new version. **Key API/Component Changes** +API prototype before the change: +getRevokedCert(serialNumber : number, callback : AsyncCallback\) : void; +getRevokedCert(serialNumber : number) : Promise\; -API prototype before change: +API prototype after the change: +getRevokedCert(serialNumber : number) : X509CrlEntry; -- getRevokedCert(serialNumber : number, callback : AsyncCallback\) : void; -- getRevokedCert(serialNumber : number) : Promise\; +**Adaptation Guide** +See the corresponding API adaptation guide in the API reference: +[Certificate - API Reference](https://gitee.com/openharmony/docs/blob/master/en/application-dev/reference/apis/js-apis-cert.md) -API prototype after change: -getRevokedCert(serialNumber : number) : X509CrlEntry; +## cl.security.19 Change of the getRevokedCertWithCert API of X509Crl from Asynchronous to Synchronous +**Change Impacts** -**Adaptation Guide** +Behavior of released JavaScript APIs will be changed. +The application needs to adapt these APIs so that it can be properly compiled in the SDK environment of the new version. -See the corresponding API adaptation guide in the API reference: [Certificate - API Reference](https://gitee.com/openharmony/docs/blob/master/en/application-dev/reference/apis/js-apis-cert.md) +**Key API/Component Changes** +API prototype before the change: +getRevokedCertWithCert(cert : X509Cert, callback : AsyncCallback\) : void; +getRevokedCertWithCert(cert : X509Cert) : Promise\; +API prototype after the change: +getRevokedCertWithCert(cert : X509Cert) : X509CrlEntry; -## cl.security.19 getRevokedCertWithCert API Change of X509Crl from Asynchronous to Synchronous +**Adaptation Guide** +See the corresponding API adaptation guide in the API reference: +[Certificate - API Reference](https://gitee.com/openharmony/docs/blob/master/en/application-dev/reference/apis/js-apis-cert.md) + + +## cl.security.20 Change of the getTbsInfo API of X509Crl from Asynchronous to Synchronous **Change Impacts** Behavior of released JavaScript APIs will be changed. - The application needs to adapt these APIs so that it can be properly compiled in the SDK environment of the new version. **Key API/Component Changes** +API prototype before the change: +getTbsInfo(callback : AsyncCallback\) : void; +getTbsInfo() : Promise\; -API prototype before change: +API prototype after the change: +getTbsInfo() : DataBlob; -- getRevokedCertWithCert(cert : X509Cert, callback : AsyncCallback\) : void; -- getRevokedCertWithCert(cert : X509Cert) : Promise\; +**Adaptation Guide** +See the corresponding API adaptation guide in the API reference: +[Certificate - API Reference](https://gitee.com/openharmony/docs/blob/master/en/application-dev/reference/apis/js-apis-cert.md) -API prototype after change: +## cl.security.21 Support of No-Hash Signing Mode for HUKS -getRevokedCertWithCert(cert : X509Cert) : X509CrlEntry; +Before the change, the application passes **huks.HuksTag.HUKS_TAG_DIGEST = huks.HuksKeyDigest.HUKS_DIGEST_NONE** and HUKS uses **huks.HuksKeyDigest.HUKS_DIGEST_SHA256** for processing by default. After the change, the application passes **huks.HuksTag.HUKS_TAG_DIGEST = huks.HuksKeyDigest.HUKS_DIGEST_NONE** and HUKS does not perform digest processing by default. In this case, the service needs to perform the hash operation on the original data and then pass the hashed digest to HUKS for signing or signature verification. -**Adaptation Guide** +**Change Impacts** + +Behavior of released JavaScript APIs will be changed. +The application needs to adapt these APIs so that the signing or signature verification result can be passed before and after the change. + +**Key API/Component Changes** + +Released JavaScript APIs remain unchanged, but parameter sets passed to the APIs are changed. + +The service uses the No-Hash signing mode, and needs to hash the original data and then pass the hashed digest to the signing or signature verification API of HUKS. In addition, the **huks.HuksTag.HUKS_TAG_DIGEST** parameter is set to **huks.HuksKeyDigest.HUKS_DIGEST_NONE**. -See the corresponding API adaptation guide in the API reference: [Certificate - API Reference](https://gitee.com/openharmony/docs/blob/master/en/application-dev/reference/apis/js-apis-cert.md) +**Adaptation Guide** +Take signing as an example. The sample code is as follows: + +```js +import huks from '@ohos.security.huks'; + +let keyAlias = 'rsa_Key'; +/* Digest value after SHA-256 encryption */ +let inDataAfterSha256 = new Uint8Array( + 0x4B, 0x1E, 0x22, 0x64, 0xA9, 0x89, 0x60, 0x1D, 0xEC, 0x78, 0xC0, 0x5D, 0xBE, 0x46, 0xAD, 0xCF, + 0x1C, 0x35, 0x16, 0x11, 0x34, 0x01, 0x4E, 0x9B, 0x7C, 0x00, 0x66, 0x0E, 0xCA, 0x09, 0xC0, 0xF3, +); +/* Signing parameters */ +let signProperties = new Array(); +signProperties[0] = { + tag: huks.HuksTag.HUKS_TAG_ALGORITHM, + value: huks.HuksKeyAlg.HUKS_ALG_RSA, +} +signProperties[1] = { + tag: huks.HuksTag.HUKS_TAG_PURPOSE, + value: + huks.HuksKeyPurpose.HUKS_KEY_PURPOSE_SIGN +} +signProperties[2] = { + tag: huks.HuksTag.HUKS_TAG_KEY_SIZE, + value: huks.HuksKeySize.HUKS_RSA_KEY_SIZE_2048, +} +signProperties[3] = { + tag: huks.HuksTag.HUKS_TAG_DIGEST, + value: huks.HuksKeyDigest.HUKS_DIGEST_NONE, // Set digest-none. +} +let signOptions = { + properties: signProperties, + inData: inDataAfterSha256 // Set the value after hashing. +} + +huks.initSession(keyAlias, signOptions); +``` + +For sample codes of other APIs, see [HUKS guidelines](../../../application-dev/security/huks-guidelines.md) and [HUKS APIs](../../../application-dev/reference/apis/js-apis-huks.md). + +## cl.security.22 Support of Key Calculation Parameter Specification for HUKS During Key Usage + +Before the change, all parameters for key calculation must be specified when the application generates a key. After the change, only mandatory parameters need to be specified when the application generates a key, and other parameters can be specified when the key is used. The application can specify key calculation parameters more flexibly. -## cl.security.20 getTbsInfo API Change of X509Crl from Asynchronous to Synchronous **Change Impacts** Behavior of released JavaScript APIs will be changed. -The application needs to adapt these APIs so that it can be properly compiled in the SDK environment of the new version. +The application can specify only mandatory parameters when creating a key and specify other optional parameters when using the key. **Key API/Component Changes** -API prototype before change: +Released JavaScript APIs remain unchanged, but parameter sets passed to the APIs are changed and parameters are classified into mandatory parameters and optional parameters. For details, see [HUKS guidelines](../../../application-dev/security/huks-guidelines.md). -- getTbsInfo(callback : AsyncCallback\) : void; -- getTbsInfo() : Promise\; +huks.generateKeyItem -API prototype after change: +huks.importKeyItem -getTbsInfo() : DataBlob; +huks.importWrappedKeyItem -**Adaptation Guide** +huks.initSession -See the corresponding API adaptation guide in the API reference: [Certificate - API Reference](https://gitee.com/openharmony/docs/blob/master/en/application-dev/reference/apis/js-apis-cert.md) +huks.updateSession + +huks.finishSession + +**Adaptation Guide** - \ No newline at end of file +Take key generation as an example. The sample code is as follows: + +```js +let keyAlias = 'keyAlias'; +let properties = new Array(); +// Mandatory parameter. +properties[0] = { + tag: huks.HuksTag.HUKS_TAG_ALGORITHM, + value: huks.HuksKeyAlg.HUKS_ALG_RSA +}; +// Mandatory parameter. +properties[1] = { + tag: huks.HuksTag.HUKS_TAG_KEY_SIZE, + value: huks.HuksKeySize.HUKS_RSA_KEY_SIZE_2048 +}; +// Mandatory parameter. +properties[2] = { + tag: huks.HuksTag.HUKS_TAG_PURPOSE, + value: + huks.HuksKeyPurpose.HUKS_KEY_PURPOSE_SIGN | + huks.HuksKeyPurpose.HUKS_KEY_PURPOSE_VERIFY +}; +// Optional parameter. If this parameter is not specified when a key is generated, it must be specified when the key is used. +properties[3] = { + tag: huks.HuksTag.HUKS_TAG_DIGEST, + value: huks.HuksKeyDigest.HUKS_DIGEST_SHA256 +}; +let options = { + properties: properties +}; +try { + huks.generateKeyItem(keyAlias, options, function (error, data) { + if (error) { + console.error(`callback: generateKeyItem failed, code: ${error.code}, msg: ${error.message}`); + } else { + console.info(`callback: generateKeyItem key success`); + } + }); +} catch (error) { + console.error(`callback: generateKeyItem input arg invalid, code: ${error.code}, msg: ${error.message}`); +} +``` + +For sample codes of other APIs, see [HUKS guidelines](../../../application-dev/security/huks-guidelines.md) and [HUKS APIs](../../../application-dev/reference/apis/js-apis-huks.md). diff --git a/en/release-notes/changelogs/OpenHarmony_3.2.10.1/changelogs-distributeddatamgr.md b/en/release-notes/changelogs/OpenHarmony_3.2.10.1/changelogs-distributeddatamgr.md index df20e8b95ca67a47f89edf2fd6d6f4efa957bb07..3689b5c62fa100173b4b5579a38f5763b6535d23 100644 --- a/en/release-notes/changelogs/OpenHarmony_3.2.10.1/changelogs-distributeddatamgr.md +++ b/en/release-notes/changelogs/OpenHarmony_3.2.10.1/changelogs-distributeddatamgr.md @@ -79,8 +79,8 @@ function getRdbStoreV9(context: Context, config: StoreConfigV9, version: number) ``` The APIs are migrated from **@ohos.data.rdb.d.ts** to **@ohos.data.relationalStore.d.ts**. ``` -function getRdbStore(context: Context, config: StoreConfig, version: number, callback: AsyncCallback): void; -function getRdbStore(context: Context, config: StoreConfig, version: number): Promise; +function getRdbStore(context: Context, config: StoreConfig, callback: AsyncCallback): void; +function getRdbStore(context: Context, config: StoreConfig): Promise; ``` **Adaptation Guide** diff --git a/en/release-notes/changelogs/OpenHarmony_3.2.10.1/changelogs-url.md b/en/release-notes/changelogs/OpenHarmony_3.2.10.1/changelogs-url.md index 655d5f1348b234110937883f1a8d7899ef0e3ca8..76b0bf08104a53dfb2d943ae3a860bfc76111dc1 100644 --- a/en/release-notes/changelogs/OpenHarmony_3.2.10.1/changelogs-url.md +++ b/en/release-notes/changelogs/OpenHarmony_3.2.10.1/changelogs-url.md @@ -1,28 +1,28 @@ -# ChangeLog of JS API Changes in the URL Subsystem +# Utils Subsystem Changelog -Compared with OpenHarmony 3.2 Beta4, OpenHarmony 3.2.10.1(Mr) has the following API changes in the URL subsystem: +Compared with OpenHarmony 3.2 Beta4, OpenHarmony 3.2.10.1(MR) has the following API changes in the URL module of the utils subsystem. -## cl.url.1 URLParams Class API Changes -APIs in the **URLParams** class in the URL subsystem are changed: +## cl.commonlibrary.1 URLParams Class Changes +The constructor function of the **URLParams** class in the URL module of the utils subsystem is changed. -**constructor(init?: string[][] | Record | string | URLSearchParams)** is changed to **constructor(init?: string[][] | Record | string | URLParams)**, and the parameter type is changed from URLSearchParams to URLParams. +Specifically, **constructor(init?: string[][] | Record | string | URLSearchParams)** is changed to **constructor(init?: string[][] | Record | string | URLParams)**, and the parameter type is changed from **URLSearchParams** to **URLParams**. -You need to adapt your application based on the following information. +You need to adapt your application. **Change Impacts** -JS APIs in API version 9 are affected. Your application needs to adapt these APIs so that it can properly implement functions in the SDK environment of the new version. +JS APIs in API version 9 are affected. Your application needs to adapt these APIs so that it can properly implement features in the SDK environment of the new version. **Key API/Component Changes** -| Module | Class | Method/Attribute/Enumeration/Constant | Change Type| -| :-------- | --------- | ------------------------------------------------------------ | -------- | -| @ohos.url | URLParams | constructor(string[][] \| Record<string, string> \| string \| URLSearchParams) | Deleted | -| @ohos.url | URLParams | constructor(string[][] \| Record<string, string> \| string \| URLParams)| Changed| +| Module | Class | Method/Attribute/Enum/Constant | Change Type| +| :------------------------ | ------------------- | ------------------------------------------------------------ | -------- | +| @ohos.url | URLParams | constructor(string[][] \| Record<string, string> \| string \| URLSearchParams) | Deleted | +| @ohos.url | URLParams | constructor(string[][] \| Record<string, string> \| string \| URLParams)| Changed **Adaptation Guide** -The following illustrates how to create a **URLParams** object in your application: +The following illustrates how to create a **URLParams** object in your application. Example: @@ -37,27 +37,27 @@ try { console.error(`Fail to ceate URLParams.codeis${err.code},message is ${err.message}`); } ``` -## cl.url.2 URL Attribute Changes of URLParams Class APIs -URL attributes in the URL subsystem are changed: +## cl.commonlibrary.2 URL Attribute Changes of URLParams Class APIs +The URL attributes of the URL module in the utils subsystem are changed. -The **searchParams: URLSearchParams** attribute is deprecated, and the **params: URLParams** attribute is added. +Specifically, the **searchParams: URLSearchParams** attribute is deprecated, and the **params: URLParams** attribute is added. -You need to adapt your application based on the following information. +You need to adapt your application. **Change Impacts** -JS APIs in API version 9 are affected. Your application needs to adapt these APIs so that it can properly implement functions in the SDK environment of the new version. +JS APIs in API version 9 are affected. Your application needs to adapt these APIs so that it can properly implement features in the SDK environment of the new version. **Key API/Component Changes** -| Module | Class| Method/Attribute/Enumeration/Constant | Change Type | -| :-------- | ---- | ------------------------------ | --------------- | -| @ohos.url | URL | searchParams: URLSearchParams; | Deprecated (in API version 9)
| -| @ohos.url | URL | params: URLParams; | Added | +| Module | Class | Method/Attribute/Enum/Constant | Change Type| +| :------------------------ | ------------------- | ------------------------------------------------------------ | -------- | +| @ohos.url | URL | searchParams: URLSearchParams; |Deprecated (in API version 9)
| +| @ohos.url | URL | params: URLParams; | Added | **Adaptation Guide** -The following illustrates how to create a **URLParams** object in your application: +The following illustrates how to create a **URLParams** object in your application. Example: diff --git a/en/release-notes/changelogs/OpenHarmony_3.2.10.2/changelogs-bundlemanager.md b/en/release-notes/changelogs/OpenHarmony_3.2.10.2/changelogs-bundlemanager.md new file mode 100644 index 0000000000000000000000000000000000000000..4542c0a871e0f6474220756a2528a514dbfa2f71 --- /dev/null +++ b/en/release-notes/changelogs/OpenHarmony_3.2.10.2/changelogs-bundlemanager.md @@ -0,0 +1,42 @@ +# Bundle Manager Subsystem ChangeLog + +## cl.bundlemanager.1 Field Change of the ApplicationInfo Structure in API Version 9 + +The **ApplicationInfo** structure [[bundleManager/applicationInfo.d.ts](https://gitee.com/openharmony/interface_sdk-js/blob/master/api/bundleManager/applicationInfo.d.ts)] in API version 9 has field changes, with the **systemApp** field being added and the **entryDir** field being deleted. + +**Change Impacts** + +There is no impact on applications that use the APIs of versions earlier than 9. The applications that use the APIs of version 9 need to adapt new modules and APIs. + +**Key API/Component Changes** + +The following table describes the changed fields in the **ApplicationInfo** structure. + +| Deleted Field | Added or Changed Field in API Version 9| Type | +| -------- | -------------- | ------- | +| None | systemApp | boolean | +| entryDir | None | string | + +**Adaptation Guide** + +Import the bundle manager query module and use the **systemApp** field in the **ApplicationInfo** structure of API version 9. If the **entryDir** field is used, change the field because it is redundant in features where HAP decompression is not required. + +## cl.bundlemanager.2 Field Change of the HapModuleInfo Structure in API Version 9 + +The **moduleSourceDir** field is deleted from the **HapModuleInfo** structure [[bundleManager/hapModuleInfo.d.ts](https://gitee.com/openharmony/interface_sdk-js/blob/master/api/bundleManager/hapModuleInfo.d.ts)] in API version 9. + +**Change Impacts** + +There is no impact on applications that use the APIs of versions earlier than 9. The applications that use the APIs of version 9 need to adapt new modules and APIs. + +**Key API/Component Changes** + +The following table describes the changed fields in the **HapModuleInfo** structure. + +| Deleted Field | Added or Changed Field in API Version 9| Type | +| --------------- | -------------- | ------ | +| moduleSourceDir | None | string | + +**Adaptation Guide** + +Import the bundle manager query module and do not use the **moduleSourceDir** field in the **HapModuleInfo** structure of API version 9. If the **moduleSourceDir** field is used, change the field because it is redundant in features where HAP decompression is not required. diff --git a/en/release-notes/changelogs/OpenHarmony_3.2.10.3/changelogs-account_os_account.md b/en/release-notes/changelogs/OpenHarmony_3.2.10.3/changelogs-account_os_account.md new file mode 100644 index 0000000000000000000000000000000000000000..6d5ce737601297172bcf6fedf268705102e1053d --- /dev/null +++ b/en/release-notes/changelogs/OpenHarmony_3.2.10.3/changelogs-account_os_account.md @@ -0,0 +1,36 @@ +# Account Subsystem ChangeLog + +## cl.account_os_account.1 createOsAccountForDomain Error Code Change + +Changed the error code returned when the **createOsAccountForDomain** API is used to create a domain account that already exists from **12300001** to **12300004**. +The error information is changed from a common system error to an error indicating that the account already exists. + +**Change Impacts** + +The application developed based on earlier versions needs to adapt the new error code. Otherwise, the original service logic will be affected. + +**Key API/Component Changes** +- AccountManager + - createOsAccountForDomain(type: OsAccountType, domainInfo: DomainAccountInfo, callback: AsyncCallback<OsAccountInfo>); + - createOsAccountForDomain(type: OsAccountType, domainInfo: DomainAccountInfo): Promise<OsAccountInfo>; + +**Adaptation Guide** + +The sample code for returning an error when a domain account is repeatedly created is as follows: + +```ts +import account_osAccount from "@ohos.account.osAccount" +import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium' + +let accountMgr = account_osAccount.getAccountManager(); +let domainInfo = { + accountName: "zhangsan", + domain: "china.example.com" +}; +try { + await accountMgr.createOsAccountForDomain(account_osAccount.OsAccountType.NORMAL, domainInfo); + await accountMgr.createOsAccountForDomain(account_osAccount.OsAccountType.NORMAL, domainInfo); +} catch (err) { + expect(err.code).assertEqual(12300004); +} +``` diff --git a/en/release-notes/changelogs/OpenHarmony_3.2.10.3/changelogs-bundlemanager.md b/en/release-notes/changelogs/OpenHarmony_3.2.10.3/changelogs-bundlemanager.md new file mode 100644 index 0000000000000000000000000000000000000000..ed95a11140efc969e38d2ba50ad6ec1ed4d08b96 --- /dev/null +++ b/en/release-notes/changelogs/OpenHarmony_3.2.10.3/changelogs-bundlemanager.md @@ -0,0 +1,21 @@ +# Bundle Manager Subsystem ChangeLog + +## cl.bundlemanager.1 Name Change of the Bundle Manager Distributed Query Module + +The name of the bundle manager distributed query module in API version 9 is changed from **ohos.bundle.distributedBundle** to **[ohos.bundle.distributedBundleManager](https://gitee.com/openharmony/interface_sdk-js/blob/master/api/@ohos.bundle.distributedBundleManager.d.ts)**. The APIs remain unchanged. + +**Change Impacts** + +There is no impact on applications that use the APIs of versions earlier than 9. The applications that use the APIs of version 9 need to adapt the new module. + +**Key API/Component Changes** + +The name of the bundle manager distributed query module is changed from **ohos.bundle.distributedBundle** to **ohos.bundle.distributedBundleManager**. The APIs remain unchanged. + +**Adaptation Guide** + +Change the module to import from **@ohos.bundle.distributedBundle** to **@ohos.bundle.distributedBundleManager**. + +```ts +import distributedBundle form '@ohos.bundle.distributedBundleManager'; +``` diff --git a/en/release-notes/changelogs/OpenHarmony_3.2.10.3/changelogs-camera-sync.md b/en/release-notes/changelogs/OpenHarmony_3.2.10.3/changelogs-camera-sync.md new file mode 100644 index 0000000000000000000000000000000000000000..c20c9e4c50f8de7ba2c8a0323f19d2000e4007ad --- /dev/null +++ b/en/release-notes/changelogs/OpenHarmony_3.2.10.3/changelogs-camera-sync.md @@ -0,0 +1,522 @@ +# Multimedia Subsystem ChangeLog + +Compared with OpenHarmony 3.2 Beta4, OpenHarmony3.2.10.3 has the following changes in APIs of the camera component in the multimedia subsystem. + +## cl.subsystemname.1 Camera API Changed +1. All the APIs of the camera component are changed to system APIs in the API version 9. +2. Some functional APIs are added and some others are deprecated to: + +- Improve the usability of camera APIs. +- Help you quickly understand camera APIs and use them for development. +- Facilitate expansion of framework functions in later versions, and reduce coupling between framework modules. + +You need to refer to the following change description to adapt your application. + +**Change Impacts** + +JS APIs in API version 9 are affected. Your application needs to adapt these APIs so that it can properly implement features in the SDK environment of the new version. + +**Key API/Component Changes** + +| Module | Class | Method/Attribute/Enum/Constant | Is System API| Change Type| +| ---------------------- | ----------------------- | ------------------------------------------------------------ | --------------- | -------- | +| ohos.multimedia.camera | camera | function getCameraManager(context: Context): CameraManager; | Yes | Added | +| ohos.multimedia.camera | camera | function getCameraManager(context: Context, callback: AsyncCallback): void;
function getCameraManager(context: Context): Promise; | Yes | Deprecated | +| ohos.multimedia.camera | CameraErrorCode | INVALID_ARGUMENT = 7400101,
OPERATION_NOT_ALLOWED = 7400102,
SESSION_NOT_CONFIG = 7400103,
SESSION_NOT_RUNNING = 7400104,
SESSION_CONFIG_LOCKED = 7400105,
DEVICE_SETTING_LOCKED = 7400106,
CONFILICT_CAMERA = 7400107,
DEVICE_DISABLED = 7400108,
SERVICE_FATAL_ERROR = 7400201 | Yes | Added | +| ohos.multimedia.camera | CameraManager | getSupportedCameras(): Array;
getSupportedOutputCapability(camera: CameraDevice): CameraOutputCapability;
createCameraInput(camera: CameraDevice): CameraInput;
createCameraInput(position: CameraPosition, type: CameraType): CameraInput;
createPreviewOutput(profile: Profile, surfaceId: string): PreviewOutput;
createPhotoOutput(profile: Profile, surfaceId: string): PhotoOutput;
createVideoOutput(profile: VideoProfile, surfaceId: string): VideoOutput;
createMetadataOutput(metadataObjectTypes: Array): MetadataOutput;
createCaptureSession(): CaptureSession; | Yes | Added | +| ohos.multimedia.camera | CameraManager | getSupportedCameras(callback: AsyncCallback>): void;
getSupportedCameras(): Promise>;
getSupportedOutputCapability(camera: CameraDevice, callback: AsyncCallback): void;
getSupportedOutputCapability(camera: CameraDevice): Promise;
createCameraInput(camera: CameraDevice, callback: AsyncCallback): void;
createCameraInput(camera: CameraDevice): Promise;
createCameraInput(position: CameraPosition, type: CameraType, callback: AsyncCallback): void;
createCameraInput(position: CameraPosition, type: CameraType): Promise;
createPreviewOutput(profile: Profile, surfaceId: string, callback: AsyncCallback): void;
createPreviewOutput(profile: Profile, surfaceId: string): Promise;
createPhotoOutput(profile: Profile, surfaceId: string, callback: AsyncCallback): void;
createPhotoOutput(profile: Profile, surfaceId: string): Promise;
createVideoOutput(profile: VideoProfile, surfaceId: string, callback: AsyncCallback): void;
createVideoOutput(profile: VideoProfile, surfaceId: string): Promise;
createMetadataOutput(metadataObjectTypes: Array, callback: AsyncCallback): void;
createMetadataOutput(metadataObjectTypes: Array): Promise;
createCaptureSession(callback: AsyncCallback): void;
createCaptureSession(): Promise; | Yes | Deprecated | +| ohos.multimedia.camera | CameraType | CAMERA_TYPE_DEFAULT = 0 | Yes | Added | +| ohos.multimedia.camera | CameraType | CAMERA_TYPE_UNSPECIFIED = 0 | Yes | Deprecated | +| ohos.multimedia.camera | CameraInput | on(type: 'error', camera: CameraDevice, callback: ErrorCallback): void; | Yes | Added | +| ohos.multimedia.camera | CameraInput | release(callback: AsyncCallback): void;
release(): Promise;
on(type: 'error', camera: CameraDevice, callback: ErrorCallback): void; | Yes | Deprecated | +| ohos.multimedia.camera | CameraInputErrorCode | ERROR_UNKNOWN = -1
ERROR_NO_PERMISSION = 0
ERROR_DEVICE_PREEMPTED = 1
ERROR_DEVICE_DISCONNECTED = 2
ERROR_DEVICE_IN_USE = 3
ERROR_DRIVER_ERROR = 4 | Yes | Deprecated | +| ohos.multimedia.camera | CameraInputError | code: CameraInputErrorCode | Yes | Deprecated | +| ohos.multimedia.camera | CaptureSession | beginConfig(): void;
addInput(cameraInput: CameraInput): void;
removeInput(cameraInput: CameraInput): void;
addOutput(cameraOutput: CameraOutput): void;
removeOutput(cameraOutput: CameraOutput): void;
hasFlash(): boolean;
isFlashModeSupported(flashMode: FlashMode): boolean;
getFlashMode(): FlashMode;
setFlashMode(flashMode: FlashMode): void;
isExposureModeSupported(aeMode: ExposureMode): boolean;
getExposureMode(): ExposureMode;
setExposureMode(aeMode: ExposureMode): void;
getMeteringPoint(): Point;
setMeteringPoint(point: Point): void;
getExposureBiasRange(): Array;
setExposureBias(exposureBias: number): void;
getExposureValue(): number;
isFocusModeSupported(afMode: FocusMode): boolean;
getFocusMode(): FocusMode;
setFocusMode(afMode: FocusMode): void;
setFocusPoint(point: Point): void;
getFocusPoint(): Point;
getFocalLength(): number;
getZoomRatioRange(): Array;
getZoomRatio(): number;
setZoomRatio(zoomRatio: number): void;
isVideoStabilizationModeSupported(vsMode: VideoStabilizationMode): boolean;
getActiveVideoStabilizationMode(): VideoStabilizationMode;
setVideoStabilizationMode(mode: VideoStabilizationMode): void;
on(type: 'error', callback: ErrorCallback): void; | Yes | Added | +| ohos.multimedia.camera | CaptureSession | beginConfig(callback: AsyncCallback): void;
beginConfig(): Promise;
addInput(cameraInput: CameraInput, callback: AsyncCallback): void;
addInput(cameraInput: CameraInput): Promise;
removeInput(cameraInput: CameraInput, callback: AsyncCallback): void;
removeInput(cameraInput: CameraInput): Promise;
addOutput(cameraOutput: CameraOutput, callback: AsyncCallback): void;
addOutput(cameraOutput: CameraOutput): Promise;
removeOutput(cameraOutput: CameraOutput, callback: AsyncCallback): void;
removeOutput(cameraOutput: CameraOutput): Promise;
hasFlash(callback: AsyncCallback): void;
hasFlash(): Promise;
isFlashModeSupported(flashMode: FlashMode, callback: AsyncCallback): void;
isFlashModeSupported(flashMode: FlashMode): Promise;
getFlashMode(callback: AsyncCallback): void;
getFlashMode(): Promise;
setFlashMode(flashMode: FlashMode, callback: AsyncCallback): void;
setFlashMode(flashMode: FlashMode): Promise;
isExposureModeSupported(aeMode: ExposureMode, callback: AsyncCallback): void;
isExposureModeSupported(aeMode: ExposureMode): Promise;
getExposureMode(callback: AsyncCallback): void;
getExposureMode(): Promise;
setExposureMode(aeMode: ExposureMode, callback: AsyncCallback): void;
setExposureMode(aeMode: ExposureMode): Promise;
getMeteringPoint(callback: AsyncCallback): void;
getMeteringPoint(): Promise;
setMeteringPoint(point: Point, callback: AsyncCallback): void;
setMeteringPoint(point: Point): Promise;
getExposureBiasRange(callback: AsyncCallback>): void;
getExposureBiasRange(): Promise>;
setExposureBias(exposureBias: number, callback: AsyncCallback): void;
setExposureBias(exposureBias: number): Promise;
getExposureValue(callback: AsyncCallback): void;
getExposureValue(): Promise;
isFocusModeSupported(afMode: FocusMode, callback: AsyncCallback): void;
isFocusModeSupported(afMode: FocusMode): Promise;
getFocusMode(callback: AsyncCallback): void;
getFocusMode(): Promise;
setFocusMode(afMode: FocusMode, callback: AsyncCallback): void;
setFocusMode(afMode: FocusMode): Promise;
setFocusPoint(point: Point, callback: AsyncCallback): void;
setFocusPoint(point: Point): Promise;
getFocusPoint(callback: AsyncCallback): void;
getFocusPoint(): Promise;
getFocalLength(callback: AsyncCallback): void;
getFocalLength(): Promise;
getZoomRatioRange(callback: AsyncCallback>): void;
getZoomRatioRange(): Promise>;
getZoomRatio(callback: AsyncCallback): void;
getZoomRatio(): Promise;
setZoomRatio(zoomRatio: number, callback: AsyncCallback): void;
setZoomRatio(zoomRatio: number): Promise;
isVideoStabilizationModeSupported(vsMode: VideoStabilizationMode, callback: AsyncCallback): void;
isVideoStabilizationModeSupported(vsMode: VideoStabilizationMode): Promise;
getActiveVideoStabilizationMode(callback: AsyncCallback): void;
getActiveVideoStabilizationMode(): Promise;
setVideoStabilizationMode(mode: VideoStabilizationMode, callback: AsyncCallback): void;
setVideoStabilizationMode(mode: VideoStabilizationMode): Promise;
on(type: 'error', callback: ErrorCallback): void; | Yes | Deprecated | +| ohos.multimedia.camera | CaptureSessionErrorCode | ERROR_UNKNOWN = -1
ERROR_INSUFFICIENT_RESOURCES = 0
ERROR_TIMEOUT = 1 | Yes | Deprecated | +| ohos.multimedia.camera | CaptureSessionError | code: CaptureSessionErrorCode | Yes | Deprecated | +| ohos.multimedia.camera | PreviewOutput | on(type: 'error', callback: ErrorCallback): void; | Yes | Added | +| ohos.multimedia.camera | PreviewOutput | on(type: 'error', callback: ErrorCallback): void; | Yes | Deprecated | +| ohos.multimedia.camera | PreviewOutputErrorCode | ERROR_UNKNOWN = -1 | Yes | Deprecated | +| ohos.multimedia.camera | PreviewOutputError | code: PreviewOutputErrorCode | Yes | Deprecated | +| ohos.multimedia.camera | PhotoOutput | capture(): Promise;
isMirrorSupported(): boolean;
on(type: 'error', callback: ErrorCallback): void; | Yes | Added | +| ohos.multimedia.camera | PhotoOutput | isMirrorSupported(callback: AsyncCallback): void;
isMirrorSupported(): Promise;
on(type: 'error', callback: ErrorCallback): void; | Yes | Deprecated | +| ohos.multimedia.camera | PhotoOutputErrorCode | ERROR_UNKNOWN = -1
ERROR_DRIVER_ERROR = 0
ERROR_INSUFFICIENT_RESOURCES = 1
ERROR_TIMEOUT = 2 | Yes | Deprecated | +| ohos.multimedia.camera | PhotoOutputError | code: PhotoOutputErrorCode | Yes | Deprecated | +| ohos.multimedia.camera | VideoOutput | on(type: 'error', callback: ErrorCallback): void; | Yes | Added | +| ohos.multimedia.camera | VideoOutput | on(type: 'error', callback: ErrorCallback): void; | Yes | Deprecated | +| ohos.multimedia.camera | VideoOutputErrorCode | ERROR_UNKNOWN = -1
ERROR_DRIVER_ERROR = 0 | Yes | Deprecated | +| ohos.multimedia.camera | VideoOutputError | code: VideoOutputErrorCode | Yes | Deprecated | +| ohos.multimedia.camera | MetadataObject | readonly type: MetadataObjectType;
readonly timestamp: number; | Yes | Added | +| ohos.multimedia.camera | MetadataObject | getType(callback: AsyncCallback): void;
getType(): Promise;
getTimestamp(callback: AsyncCallback): void;
getTimestamp(): Promise;
getBoundingBox(callback: AsyncCallback): void;
getBoundingBox(): Promise; | Yes | Deprecated | +| ohos.multimedia.camera | MetadataFaceObject | readonly boundingBox: Rect | Yes | Added | +| ohos.multimedia.camera | MetadataOutput | on(type: 'error', callback: ErrorCallback): void; | Yes | Added | +| ohos.multimedia.camera | MetadataOutput | on(type: 'error', callback: ErrorCallback): void; | Yes | Deprecated | +| ohos.multimedia.camera | MetadataOutputErrorCode | ERROR_UNKNOWN = -1
ERROR_INSUFFICIENT_RESOURCES = 0 | Yes | Deprecated | +| ohos.multimedia.camera | MetadataOutputError | code: MetadataOutputErrorCode | Yes | Deprecated | + +**Adaptation Guide** + +In addition to the new APIs and deprecated APIs, you need to adapt your application to the changed APIs. + +In Beta4 and later versions, the following APIs are changed. + +**New APIs** + +1. **CameraErrorCode** enums + + Enum: INVALID_ARGUMENT; value: 7400101 + + Enum: OPERATION_NOT_ALLOWED; value: 7400102 + + Enum: SESSION_NOT_CONFIG; value: 7400103 + + Enum: SESSION_NOT_RUNNING; value: 7400104 + + Enum: SESSION_CONFIG_LOCKED; value: 7400105 + + Enum: DEVICE_SETTING_LOCKED; value: 7400106 + + Enum: CONFILICT_CAMERA; value: 7400107 + + Enum: DEVICE_DISABLED; value: 7400108 + + Enum: SERVICE_FATAL_ERROR; value: 7400201 + +2. Added **capture(): Promise** to the **PhotoOutput** API. + +3. Added the readonly type **MetadataObjectType** to the **MetadataObject** API. + +4. Added **readonly timestamp: number** to the **MetadataObject** API. + +5. Added **readonly boundingBox: Rect** to the **MetadataObject** API. + +**Deprecated APIs** + +1. Deprecated the **release(callback: AsyncCallback): void** and **release(): Promise** APIs in **CameraInput**. + +2. Deprecated the **CameraInputErrorCode** enums and all their values: **ERROR_UNKNOWN** = **-1**, **ERROR_NO_PERMISSION** = **0**, **ERROR_DEVICE_PREEMPTED** = **1**, **ERROR_DEVICE_DISCONNECTED** = **2**, **ERROR_DEVICE_IN_USE** = **3**, **ERROR_DRIVER_ERROR** = **4** + +3. Deprecated the **CameraInputError** API and its attribute **CameraInputErrorCode**. + +4. Deprecated the **CaptureSessionErrorCode** enums and all their values: **ERROR_UNKNOWN** = **-1**, **ERROR_INSUFFICIENT_RESOURCES** = **0**, **ERROR_TIMEOUT** = **1** + +5. Deprecated the **CaptureSessionError** API and its attribute **CaptureSessionErrorCode**. + +6. Deprecated the **PreviewOutputErrorCode** enum and its value: **ERROR_UNKNOWN** = **-1** + +7. Deprecated the **PreviewOutputError** API and its attribute **PreviewOutputErrorCode**. + +8. Deprecated the **PhotoOutputErrorCode** enums and all their values: **ERROR_UNKNOWN** = **-1**, **ERROR_DRIVER_ERROR** = **0**, **ERROR_INSUFFICIENT_RESOURCES** = **1**, **ERROR_TIMEOUT** = **2** + +9. Deprecated the **PhotoOutputError** API and its attribute **PhotoOutputErrorCode**. + +10. Deprecated the **VideoOutputErrorCode** enums and all their values: **ERROR_UNKNOWN** = **-1**, **ERROR_DRIVER_ERROR** = **0** + +11. Deprecated the **VideoOutputError** API and its attribute **VideoOutputErrorCode**. + +12. Deprecated **getType(callback: AsyncCallback): void** in the **MetadataObject** API. + +13. Deprecated **getType(): Promise** in the **MetadataObject** API. + +14. Deprecated **getTimestamp(callback: AsyncCallback): void** in the **MetadataObject** API. + +15. Deprecated **getTimestamp(): Promise** in the **MetadataObject** API. + +16. Deprecated **getBoundingBox(callback: AsyncCallback): void** in the **MetadataObject** API. + +17. Deprecated **getBoundingBox(): Promise** in the **MetadataObject** API. + +18. Deprecated the **MetadataOutputErrorCode** enums and all their values: **ERROR_UNKNOWN** = **-1**, **ERROR_INSUFFICIENT_RESOURCES** = **0** + +19. Deprecated the **MetadataOutputError** API and its attribute **MetadataOutputErrorCode**. + +**Changed APIs** + +1. Changed the return modes of the **getCameraManager** API in the camera module from asynchronous callback and asynchronous promise to the synchronous mode. Therefore, the original APIs **getCameraManager(context: Context, callback: AsyncCallback): void** and **getCameraManager(context: Context): Promise** are changed to **getCameraManager(context: Context): CameraManager**. + + The sample code is as follows: + + ``` + let cameraManager = camera.getCameraManager(context); + ``` + +2. Changed the return modes of the **getSupportedCameras** API in CameraManager from asynchronous callback and asynchronous promise to the synchronous mode. Therefore, the original APIs **getSupportedCameras(callback: AsyncCallback>): void** and **getSupportedCameras(): Promise>** are changed to **getSupportedCameras(): Array**. + + The sample code is as follows: + + ``` + let cameras = cameraManager.getSupportedCameras(); + ``` + +3. Changed the return modes of the **getSupportedOutputCapability** API in CameraManager from asynchronous callback and asynchronous promise to the synchronous mode. Therefore, the original APIs **getSupportedOutputCapability(camera: CameraDevice, callback: AsyncCallback): void** and **getSupportedOutputCapability(camera: CameraDevice): Promise** are changed to **getSupportedOutputCapability(camera: CameraDevice): CameraOutputCapability**. + + The sample code is as follows: + + ``` + let cameraDevice = cameras[0]; + let CameraOutputCapability = cameraManager.getSupportedOutputCapability(cameraDevice); + ``` + +4. Changed the return modes of the **createCameraInput(camera: CameraDevice)** API in CameraManager from asynchronous callback and asynchronous promise to the synchronous mode. Therefore, the original APIs **createCameraInput(camera: CameraDevice, callback: AsyncCallback): void** and **createCameraInput(camera: CameraDevice): Promise** are changed to **createCameraInput(camera: CameraDevice): CameraInput**. + + The sample code is as follows: + + ``` + let cameraDevice = cameras[0]; + let cameraInput = cameraManager.createCameraInput(cameraDevice); + ``` + +5. Changed the return modes of the **createCameraInput(position: CameraPosition, type: CameraType)** API in CameraManager from asynchronous callback and asynchronous promise to the synchronous mode. Therefore, the original APIs **createCameraInput(position: CameraPosition, type: CameraType, callback: AsyncCallback): void** and **createCameraInput(position: CameraPosition, type: CameraType): Promise** are changed to **createCameraInput(position: CameraPosition, type: CameraType): CameraInput**. + + The sample code is as follows: + + ``` + let cameraDevice = cameras[0]; + let position = cameraDevice.cameraPosition; + let type = cameraDevice.cameraType; + let cameraInput = cameraManager.createCameraInput(position, type); + ``` + +6. Changed the return modes of the **createPreviewOutput** API in CameraManager from asynchronous callback and asynchronous promise to the synchronous mode. Therefore, the original APIs **createPreviewOutput(profile: Profile, surfaceId: string, callback: AsyncCallback): void** and **createPreviewOutput(profile: Profile, surfaceId: string): Promise** are changed to **createPreviewOutput(profile: Profile, surfaceId: string): PreviewOutput**. + + The sample code is as follows: + + ``` + let profile = cameraoutputcapability.previewProfiles[0]; + let previewOutput = cameraManager.createPreviewOutput(profile, surfaceId); + ``` + +7. Changed the return modes of the **createPhotoOutput** API in CameraManager from asynchronous callback and asynchronous promise to the synchronous mode. Therefore, the original APIs **createPhotoOutput(profile: Profile, surfaceId: string, callback: AsyncCallback): void** and **createPhotoOutput(profile: Profile, surfaceId: string): Promise** are changed to **createPhotoOutput(profile: Profile, surfaceId: string): PhotoOutput**. + + The sample code is as follows: + + ``` + let profile = cameraoutputcapability.photoProfiles[0]; + let photoOutput = cameraManager.createPhotoOutput(profile, surfaceId); + ``` + +8. Changed the return modes of the **createVideoOutput** API in CameraManager from asynchronous callback and asynchronous promise to the synchronous mode. Therefore, the original APIs **createVideoOutput(profile: VideoProfile, surfaceId: string, callback: AsyncCallback): void** and **createVideoOutput(profile: VideoProfile, surfaceId: string): Promise** are changed to **createVideoOutput(profile: VideoProfile, surfaceId: string): VideoOutput**. + + The sample code is as follows: + + ``` + let profile = cameraoutputcapability.videoProfiles[0]; + let videoOutput = cameraManager.createVideoOutput(profile, surfaceId); + ``` + +9. Changed the return modes of the **createMetadataOutput** API in CameraManager from asynchronous callback and asynchronous promise to the synchronous mode. Therefore, the original APIs **createMetadataOutput(metadataObjectTypes: Array, callback: AsyncCallback): void** and **createMetadataOutput(metadataObjectTypes: Array): Promise** are changed to **createMetadataOutput(metadataObjectTypes: Array): MetadataOutput**. + + The sample code is as follows: + + ``` + let metadataObjectTypes = cameraoutputcapability.supportedMetadataObjectTypes; + let metadataOutput = cameraManager.createMetadataOutput(metadataObjectTypes); + ``` + +10. Changed the return modes of the **createCaptureSession** API in CameraManager from asynchronous callback and asynchronous promise to the synchronous mode. Therefore, the original APIs **createCaptureSession(callback: AsyncCallback): void** and **createCaptureSession(): Promise** are changed to **createCaptureSession(): CaptureSession**. + + The sample code is as follows: + + ``` + let captureSession = cameraManager.createCaptureSession(); + ``` + +11. Changed the enum **CAMERA_TYPE_UNSPECIFIED** of **CameraType** to **CAMERA_TYPE_DEFAULT**. + +12. Changed the return value type of the **on** API in CameraInput from **CameraInputError** to **BusinessError**. Therefore, the original API **on(type: 'error', camera: CameraDevice, callback: ErrorCallback): void** is changed to **on(type: 'error', camera: CameraDevice, callback: ErrorCallback): void**. + + The sample code is as follows: + + ``` + let cameraDevice = cameras[0]; + cameraInput.on('error', cameraDevice, (BusinessError) => { + + }) + ``` + +13. Changed the return modes of the **beginConfig** API in CaptureSession from asynchronous callback and asynchronous promise to the synchronous mode. Therefore, the original APIs **beginConfig(callback: AsyncCallback): void** and **beginConfig(): Promise** are changed to **beginConfig(): void**. + + The sample code is as follows: + + ``` + captureSession.beginConfig(); + ``` + +14. Changed the return modes of the **addInput** API in CaptureSession from asynchronous callback and asynchronous promise to the synchronous mode. Therefore, the original APIs **addInput(cameraInput: CameraInput, callback: AsyncCallback): void** and **addInput(cameraInput: CameraInput): Promise** are changed to **addInput(cameraInput: CameraInput): void**. + + The sample code is as follows: + + ``` + captureSession.addInput(cameraInput); + ``` + +15. Changed the return modes of the **removeInput** API in CaptureSession from asynchronous callback and asynchronous promise to the synchronous mode. Therefore, the original APIs **removeInput(cameraInput: CameraInput, callback: AsyncCallback): void** and **removeInput(cameraInput: CameraInput): Promise** are changed to **removeInput(cameraInput: CameraInput): void**. + + The sample code is as follows: + + ``` + captureSession.removeInput(cameraInput); + ``` + +16. Changed the return modes of the **addOutput** API in CaptureSession from asynchronous callback and asynchronous promise to the synchronous mode. Therefore, the original APIs **addOutput(cameraOutput: CameraOutput, callback: AsyncCallback): void** and **addOutput(cameraOutput: CameraOutput): Promise** are changed to **addOutput(cameraOutput: CameraOutput): void**. + + The sample code is as follows: + + ``` + captureSession.addOutput(previewOutput); + ``` + +17. Changed the return modes of the **removeOutput** API in CaptureSession from asynchronous callback and asynchronous promise to the synchronous mode. Therefore, the original APIs **removeOutput(cameraOutput: CameraOutput, callback: AsyncCallback): void** and **removeOutput(cameraOutput: CameraOutput): Promise** are changed to **removeOutput(cameraOutput: CameraOutput): void**. + + The sample code is as follows: + + ``` + captureSession.removeOutput(previewOutput); + ``` + +18. Changed the return modes of the **hasFlash** API in CaptureSession from asynchronous callback and asynchronous promise to the synchronous mode. Therefore, the original APIs **hasFlash(callback: AsyncCallback): void** and **hasFlash(): Promise** are changed to **hasFlash(): boolean**. + + The sample code is as follows: + + ``` + let status = captureSession.hasFlash(); + ``` + +19. Changed the return modes of the **isFlashModeSupported** API in CaptureSession from asynchronous callback and asynchronous promise to the synchronous mode. Therefore, the original APIs **isFlashModeSupported(flashMode: FlashMode, callback: AsyncCallback): void** and **isFlashModeSupported(flashMode: FlashMode): Promise** are changed to **isFlashModeSupported(flashMode: FlashMode): boolean**. + + The sample code is as follows: + + ``` + let status = captureSession.isFlashModeSupported(camera.FlashMode.FLASH_MODE_AUTO); + ``` + +20. Changed the return modes of the **getFlashMode** API in CaptureSession from asynchronous callback and asynchronous promise to the synchronous mode. Therefore, the original APIs **getFlashMode(callback: AsyncCallback): void** and **getFlashMode(): Promise** are changed to **getFlashMode(): FlashMode**. + + The sample code is as follows: + + ``` + let flashMode = captureSession.getFlashMode(); + ``` + +21. Changed the return modes of the **isExposureModeSupported** API in CaptureSession from asynchronous callback and asynchronous promise to the synchronous mode. Therefore, the original APIs **isExposureModeSupported(aeMode: ExposureMode, callback: AsyncCallback): void** and **isExposureModeSupported(aeMode: ExposureMode): Promise** are changed to **isExposureModeSupported(aeMode: ExposureMode): boolean**. + + The sample code is as follows: + + ``` + let isSupported = captureSession.isExposureModeSupported(camera.ExposureMode.EXPOSURE_MODE_LOCKED); + ``` + +22. Changed the return modes of the **getExposureMode** API in CaptureSession from asynchronous callback and asynchronous promise to the synchronous mode. Therefore, the original APIs **getExposureMode(callback: AsyncCallback): void** and **getExposureMode(): Promise** are changed to **getExposureMode(): ExposureMode**. + + The sample code is as follows: + + ``` + let exposureMode = captureSession.getExposureMode(); + ``` + +23. Changed the return modes of the **setExposureMode** API in CaptureSession from asynchronous callback and asynchronous promise to the synchronous mode. Therefore, the original APIs **setExposureMode(aeMode: ExposureMode, callback: AsyncCallback): void** and **setExposureMode(aeMode: ExposureMode): Promise** are changed to **setExposureMode(aeMode: ExposureMode): void**. + + The sample code is as follows: + + ``` + captureSession.setExposureMode(camera.ExposureMode.EXPOSURE_MODE_LOCKED); + ``` + +24. Changed the return modes of the **getMeteringPoint** API in CaptureSession from asynchronous callback and asynchronous promise to the synchronous mode. Therefore, the original APIs **getMeteringPoint(callback: AsyncCallback): void** and **getMeteringPoint(): Promise** are changed to **getMeteringPoint(): Point**. + + The sample code is as follows: + + ``` + let exposurePoint = captureSession.getMeteringPoint(); + ``` + +25. Changed the return modes of the **setMeteringPoint** API in CaptureSession from asynchronous callback and asynchronous promise to the synchronous mode. Therefore, the original APIs **setMeteringPoint(point: Point, callback: AsyncCallback): void** and **setMeteringPoint(point: Point): Promise** are changed to **setMeteringPoint(point: Point): void**. + + The sample code is as follows: + + ``` + let Point2 = {x: 2, y: 2}; + captureSession.setMeteringPoint(Point2); + ``` + +26. Changed the return modes of the **getExposureBiasRange** API in CaptureSession from asynchronous callback and asynchronous promise to the synchronous mode. Therefore, the original APIs **getExposureBiasRange(callback: AsyncCallback>): void** and **getExposureBiasRange(): Promise>** are changed to **getExposureBiasRange(): Array**. + + The sample code is as follows: + + ``` + let biasRangeArray = captureSession.getExposureBiasRange(); + ``` + +27. Changed the return modes of the **setExposureBias** API in CaptureSession from asynchronous callback and asynchronous promise to the synchronous mode. Therefore, the original APIs **setExposureBias(exposureBias: number, callback: AsyncCallback): void** and **setExposureBias(exposureBias: number): Promise** are changed to **setExposureBias(exposureBias: number): void**. + + The sample code is as follows: + + ``` + let exposureBias = biasRangeArray[0]; + captureSession.setExposureBias(exposureBias); + ``` + +28. Changed the return modes of the **getExposureValue** API in CaptureSession from asynchronous callback and asynchronous promise to the synchronous mode. Therefore, the original APIs **getExposureValue(callback: AsyncCallback): void** and **getExposureValue(): Promise** are changed to **getExposureValue(): number**. + + The sample code is as follows: + + ``` + let exposureValue = captureSession.getExposureValue(); + ``` + +29. Changed the return modes of the **isFocusModeSupported** API in CaptureSession from asynchronous callback and asynchronous promise to the synchronous mode. Therefore, the original APIs **isFocusModeSupported(afMode: FocusMode, callback: AsyncCallback): void** and **isFocusModeSupported(afMode: FocusMode): Promise** are changed to **isFocusModeSupported(afMode: FocusMode): boolean**. + + The sample code is as follows: + + ``` + let status = captureSession.isFocusModeSupported(camera.FocusMode.FOCUS_MODE_AUTO); + ``` + +30. Changed the return modes of the **getFocusMode** API in CaptureSession from asynchronous callback and asynchronous promise to the synchronous mode. Therefore, the original APIs **getFocusMode(callback: AsyncCallback): void** and **getFocusMode(): Promise** are changed to **getFocusMode(): FocusMode**. + + The sample code is as follows: + + ``` + let afMode = captureSession.getFocusMode(); + ``` + +31. Changed the return modes of the **setFocusMode** API in CaptureSession from asynchronous callback and asynchronous promise to the synchronous mode. Therefore, the original APIs **setFocusMode(afMode: FocusMode, callback: AsyncCallback): void** and **setFocusMode(afMode: FocusMode): Promise** are changed to **setFocusMode(afMode: FocusMode): void**. + + The sample code is as follows: + + ``` + captureSession.setFocusMode(camera.FocusMode.FOCUS_MODE_AUTO); + ``` + +32. Changed the return modes of the **setFocusPoint** API in CaptureSession from asynchronous callback and asynchronous promise to the synchronous mode. Therefore, the original APIs **setFocusPoint(point: Point, callback: AsyncCallback): void** and **setFocusPoint(point: Point): Promise** are changed to **setFocusPoint(point: Point): void**. + + The sample code is as follows: + + ``` + let Point2 = {x: 2, y: 2}; + captureSession.setFocusPoint(Point2); + ``` + +33. Changed the return modes of the **getFocusPoint** API in CaptureSession from asynchronous callback and asynchronous promise to the synchronous mode. Therefore, the original APIs **getFocusPoint(callback: AsyncCallback): void** and **getFocusPoint(): Promise** are changed to **getFocusPoint(): Point**. + + The sample code is as follows: + + ``` + let point = captureSession.getFocusPoint(); + ``` + +34. Changed the return modes of the **getFocalLength** API in CaptureSession from asynchronous callback and asynchronous promise to the synchronous mode. Therefore, the original APIs **getFocalLength(callback: AsyncCallback): void** and **getFocalLength(): Promise** are changed to **getFocalLength(): number**. + + The sample code is as follows: + + ``` + let focalLength = captureSession.getFocalLength(); + ``` + +35. Changed the return modes of the **getZoomRatioRange** API in CaptureSession from asynchronous callback and asynchronous promise to the synchronous mode. Therefore, the original APIs **getZoomRatioRange(callback: AsyncCallback>): void** and **getZoomRatioRange(): Promise>** are changed to **getZoomRatioRange(): Array**. + + The sample code is as follows: + + ``` + let zoomRatioRange = captureSession.getZoomRatioRange(); + ``` + +36. Changed the return modes of the **getZoomRatio** API in CaptureSession from asynchronous callback and asynchronous promise to the synchronous mode. Therefore, the original APIs **getZoomRatio(callback: AsyncCallback): void** and **getZoomRatio(): Promise** are changed to **getZoomRatio(): number**. + + The sample code is as follows: + + ``` + let zoomRatio = captureSession.getZoomRatio(); + ``` + +37. Changed the return modes of the **setZoomRatio** API in CaptureSession from asynchronous callback and asynchronous promise to the synchronous mode. Therefore, the original APIs **setZoomRatio(zoomRatio: number, callback: AsyncCallback): void** and **setZoomRatio(zoomRatio: number): Promise** are changed to **setZoomRatio(zoomRatio: number): void**. + + The sample code is as follows: + + ``` + let zoomRatio = zoomRatioRange[0]; + captureSession.setZoomRatio(zoomRatio); + ``` + +38. Changed the return modes of the **isVideoStabilizationModeSupported** API in CaptureSession from asynchronous callback and asynchronous promise to the synchronous mode. Therefore, the original APIs **isVideoStabilizationModeSupported(vsMode: VideoStabilizationMode, callback: AsyncCallback): void** and **isVideoStabilizationModeSupported(vsMode: VideoStabilizationMode): Promise** are changed to **isVideoStabilizationModeSupported(vsMode: VideoStabilizationMode): boolean**. + + The sample code is as follows: + + ``` + let isSupported = captureSession.isVideoStabilizationModeSupported(camera.VideoStabilizationMode.OFF); + ``` + +39. Changed the return modes of the **getActiveVideoStabilizationMode** API in CaptureSession from asynchronous callback and asynchronous promise to the synchronous mode. Therefore, the original APIs **getActiveVideoStabilizationMode(callback: AsyncCallback): void** and **getActiveVideoStabilizationMode(): Promise** are changed to **getActiveVideoStabilizationMode(): VideoStabilizationMode**. + + The sample code is as follows: + + ``` + let vsMode = captureSession.getActiveVideoStabilizationMode(); + ``` + +40. Changed the return modes of the **setVideoStabilizationMode** API in CaptureSession from asynchronous callback and asynchronous promise to the synchronous mode. Therefore, the original APIs **setVideoStabilizationMode(mode: VideoStabilizationMode, callback: AsyncCallback): void** and **setVideoStabilizationMode(mode: VideoStabilizationMode): Promise** are changed to **setVideoStabilizationMode(mode: VideoStabilizationMode): void**. + + The sample code is as follows: + + ``` + captureSession.setVideoStabilizationMode(camera.VideoStabilizationMode.OFF); + ``` + +41. Changed the **on(type:'error') callback** type in CaptureSession from **ErrorCallback** to **ErrorCallback**. Therefore, the original API **on(type: 'error', callback: ErrorCallback): void** is changed to **on(type: 'error', callback: ErrorCallback): void**. + + The sample code is as follows: + + ``` + captureSession.on('error', (BusinessError) => { + + }) + ``` + +42. Changed the **on(type:'error') callback** type in PreviewOutput, from **ErrorCallback** to **ErrorCallback**. Therefore, the original API **on(type: 'error', callback: ErrorCallback): void** is changed to **on(type: 'error', callback: ErrorCallback): void**. + + The sample code is as follows: + + ``` + previewOutput.on('error', (BusinessError) => { + + }) + ``` + +43. Changed the return modes of the **isMirrorSupported** API in PhotoOutput from asynchronous callback and asynchronous promise to the synchronous mode. Therefore, the original APIs **isMirrorSupported(callback: AsyncCallback): void** and **isMirrorSupported(): Promise** are changed to **isMirrorSupported(): boolean**. + + The sample code is as follows: + + ``` + let isSupported = photoOutput.isMirrorSupported(); + ``` + +44. Changed the **on(type:'error') callback** type in PhotoOutput, from **ErrorCallback** to **ErrorCallback**. Therefore, the original API **on(type: 'error', callback: ErrorCallback): void** is changed to **on(type: 'error', callback: ErrorCallback): void**. + + The sample code is as follows: + + ``` + PhotoOutput.on('error', (BusinessError) => { + + }) + ``` + +45. Changed the **on(type:'error') callback** type in VideoOutput, from **ErrorCallback** to **ErrorCallback**. Therefore, the original API **on(type: 'error', callback: ErrorCallback): void** is changed to **on(type: 'error', callback: ErrorCallback): void**. + + The sample code is as follows: + + ``` + VideoOutput.on('error', (BusinessError) => { + + }) + ``` + +46. Changed the **on(type:'error') callback** type in MetadataOutput, from **ErrorCallback** to **ErrorCallback**. Therefore, the original API **on(type: 'error', callback: ErrorCallback): void** is changed to **on(type: 'error', callback: ErrorCallback): void**. + + The sample code is as follows: + + ``` + MetadataOutput.on('error', (BusinessError) => { + + }) + ``` \ No newline at end of file diff --git a/en/release-notes/changelogs/OpenHarmony_3.2.10.3/changelogs-nfc.md b/en/release-notes/changelogs/OpenHarmony_3.2.10.3/changelogs-nfc.md new file mode 100644 index 0000000000000000000000000000000000000000..a2499c7699ae3f6742ff3bc4e8bb96a879e73c36 --- /dev/null +++ b/en/release-notes/changelogs/OpenHarmony_3.2.10.3/changelogs-nfc.md @@ -0,0 +1,62 @@ +# ChangeLog of NFC JS API Changes in the Communication Subsystem + +Compared with OpenHarmony 3.2 Beta4, OpenHarmony 3.2.10.2(Mr) has the following API changes in the distributed data management subsystem. + +## cl.nfc.1 API Change +Some NFC JS APIs in API versions 6 to 8 cannot throw error codes and need to be deprecated and deleted, and then APIs in API version 9 are used instead. + +You need to adapt your application based on the following information. + + **Change Impacts** + +Some JS APIs in API versions 6 to 8 are affected. Your application needs to adapt new APIs so that it can properly implement functions in the SDK environment of the new version. + +**Key API/Component Changes** + +| Module | Class | Method/Attribute/Enumeration/Constant| Change Type| +| -------------------------------- | ------------- | ------------------- | -------- | +| api/@ohos.nfc.cardEmulation.d.ts | cardEmulation | FeatureType | Deprecated | +| api/@ohos.nfc.cardEmulation.d.ts | cardEmulation | isSupported | Deprecated | +| api/@ohos.nfc.cardEmulation.d.ts | cardEmulation | hasHceCapability | Added | +| api/@ohos.nfc.controller.d.ts | nfcController | isNfcAvailable | Deprecated | +| api/@ohos.nfc.controller.d.ts | nfcController | openNfc | Deprecated | +| api/@ohos.nfc.controller.d.ts | nfcController | closeNfc | Deprecated | +| api/@ohos.nfc.controller.d.ts | nfcController | enableNfc | Added | +| api/@ohos.nfc.controller.d.ts | nfcController | disableNfc | Added | +| api/@ohos.nfc.tag.d.ts | tag | getNfcATag | Deprecated | +| api/@ohos.nfc.tag.d.ts | tag | getNfcBTag | Deprecated | +| api/@ohos.nfc.tag.d.ts | tag | getNfcFTag | Deprecated | +| api/@ohos.nfc.tag.d.ts | tag | getNfcVTag | Deprecated | +| api/@ohos.nfc.tag.d.ts | tag | getNfcA | Added | +| api/@ohos.nfc.tag.d.ts | tag | getNfcB | Added | +| api/@ohos.nfc.tag.d.ts | tag | getNfcF | Added | +| api/@ohos.nfc.tag.d.ts | tag | getNfcV | Added | +| api/tag/tagSession.d.ts | TagSession | getTagInfo | Deprecated | +| api/tag/tagSession.d.ts | TagSession | connectTag | Deprecated | +| api/tag/tagSession.d.ts | TagSession | reset | Deprecated | +| api/tag/tagSession.d.ts | TagSession | isTagConnected | Deprecated | +| api/tag/tagSession.d.ts | TagSession | setSendDataTimeout | Deprecated | +| api/tag/tagSession.d.ts | TagSession | getSendDataTimeout | Deprecated | +| api/tag/tagSession.d.ts | TagSession | sendData | Deprecated | +| api/tag/tagSession.d.ts | TagSession | getMaxSendLength | Deprecated | +| api/tag/tagSession.d.ts | TagSession | connect | Added | +| api/tag/tagSession.d.ts | TagSession | resetConnection | Added | +| api/tag/tagSession.d.ts | TagSession | isConnected | Added | +| api/tag/tagSession.d.ts | TagSession | setTimeout | Added | +| api/tag/tagSession.d.ts | TagSession | getTimeout | Added | +| api/tag/tagSession.d.ts | TagSession | transmit | Added | +| api/tag/tagSession.d.ts | TagSession | getMaxTransmitSize | Added | + +**Adaptation Guide** + +View the following API references: +[@ohos.nfc.cardEmulation (Standard NFC Card Emulation)](https://gitee.com/openharmony/docs/blob/master/en/application-dev/reference/apis/js-apis-cardEmulation.md) + +[@ohos.nfc.controller (Standard NFC)](https://gitee.com/openharmony/docs/blob/master/en/application-dev/reference/apis/js-apis-nfcController.md) + +[@ohos.nfc.tag (Standard NFC Tags)](https://gitee.com/openharmony/docs/blob/master/en/application-dev/reference/apis/js-apis-nfcTag.md) + +[tagSession (Standard NFC Tag Session)](https://gitee.com/openharmony/docs/blob/master/en/application-dev/reference/apis/js-apis-tagSession.md) +``` + +``` diff --git a/en/release-notes/changelogs/OpenHarmony_3.2.10.5/changelog-resourceschedule.md b/en/release-notes/changelogs/OpenHarmony_3.2.10.5/changelog-resourceschedule.md new file mode 100644 index 0000000000000000000000000000000000000000..48da92c6fc824d0d4f799c21bf28906a1a784040 --- /dev/null +++ b/en/release-notes/changelogs/OpenHarmony_3.2.10.5/changelog-resourceschedule.md @@ -0,0 +1,111 @@ +# Resource Scheduler Subsystem ChangeLog + +## cl.resourceschedule.backgroundTaskManager +Rectified the original APIs of **backgroundTaskManager** of the resource scheduler subsystem. All APIs of API version 9 in the **@ohos.backgroundTaskManager.d.ts** file are deleted, and the APIs of API version 9 in the **@ohos.resourceschedule.backgroundTaskManager.d.ts** file are used. The new APIs in API version 9 comply with the error code specifications. + +**Change Impacts** + +If your application is developed based on the SDK versions of OpenHarmony 3.2.10.5 and later, adapt to the modules and APIs in API version 9 and the pattern for returning error codes. Otherwise, the service logic will be affected. + +**Key API/Component Changes** + +The following methods, attributes, enums, and constants are changed in API version 9 and later versions. All the APIs in the **@ohos.backgroundTaskManager.d.ts** file are migrated to the **@ohos.resourceschedule.backgroundTaskManager.d.ts** file. + +| Class| API Type| Declaration| Description| +| -- | -- | -- | -- | +| backgroundTaskManager | method | function resetAllEfficiencyResources(): void; | Deleted in API version 9 and moved to the **ohos.resourceschedule.backgroundTaskManager.d.ts** file.| +| backgroundTaskManager | method | function applyEfficiencyResources(request: EfficiencyResourcesRequest): bool; | Changed in API version 9 to **function applyEfficiencyResources(request: EfficiencyResourcesRequest): void;** and moved to the **ohos.resourceschedule.backgroundTaskManager.d.ts** file.| +| backgroundTaskManager.ResourceType | enum | export enum ResourceType | Deleted in API version 9 and moved to the **ohos.resourceschedule.backgroundTaskManager.d.ts** file.| +| backgroundTaskManager.ResourceType | enum | CPU = 1 | Deleted in API version 9 and moved to the **ohos.resourceschedule.backgroundTaskManager.d.ts** file.| +| backgroundTaskManager.ResourceType | enum | COMMON_EVENT = 1 << 1 | Deleted in API version 9 and moved to the **ohos.resourceschedule.backgroundTaskManager.d.ts** file.| +| backgroundTaskManager.ResourceType | enum | TIMER = 1 << 2 | Deleted in API version 9 and moved to the **ohos.resourceschedule.backgroundTaskManager.d.ts** file.| +| backgroundTaskManager.ResourceType | enum | WORK_SCHEDULER = 1 << 3 | Deleted in API version 9 and moved to the **ohos.resourceschedule.backgroundTaskManager.d.ts** file.| +| backgroundTaskManager.ResourceType | enum | BLUETOOTH = 1 << 4 | Deleted in API version 9 and moved to the **ohos.resourceschedule.backgroundTaskManager.d.ts** file.| +| backgroundTaskManager.ResourceType | enum | GPS = 1 << 5 | Deleted in API version 9 and moved to the **ohos.resourceschedule.backgroundTaskManager.d.ts** file.| +| backgroundTaskManager.ResourceType | enum | AUDIO = 1 << 6 | Deleted in API version 9 and moved to the **ohos.resourceschedule.backgroundTaskManager.d.ts** file.| +| backgroundTaskManager.EfficiencyResourcesRequest | interface | export interface EfficiencyResourcesRequest | Deleted in API version 9 and moved to the **ohos.resourceschedule.backgroundTaskManager.d.ts** file.| +| backgroundTaskManager.EfficiencyResourcesRequest | field | reason: string | Deleted in API version 9 and moved to the **ohos.resourceschedule.backgroundTaskManager.d.ts** file.| +| backgroundTaskManager.EfficiencyResourcesRequest | field | isProcess?: bool | Deleted in API version 9 and moved to the **ohos.resourceschedule.backgroundTaskManager.d.ts** file.| +| backgroundTaskManager.EfficiencyResourcesRequest | field | isPersist?: bool | Deleted in API version 9 and moved to the **ohos.resourceschedule.backgroundTaskManager.d.ts** file.| +| backgroundTaskManager.EfficiencyResourcesRequest | field | timeOut: number | Deleted in API version 9 and moved to the **ohos.resourceschedule.backgroundTaskManager.d.ts** file.| +| backgroundTaskManager.EfficiencyResourcesRequest | field | isApply: bool | Deleted in API version 9 and moved to the **ohos.resourceschedule.backgroundTaskManager.d.ts** file.| +| backgroundTaskManager.EfficiencyResourcesRequest | field | resourceTypes: number | Deleted in API version 9 and moved to the **ohos.resourceschedule.backgroundTaskManager.d.ts** file.| + + +**Adaptation Guide** + +Import the **backgroundTaskManager** module. +``` +import bundle form '@ohos.resourceschedule.backgroundTaskManager' +``` +Exception handling also needs to be adapted. For details, see the [backgroundTaskManager API reference](../../../application-dev/reference/apis/js-apis-resourceschedule-backgroundTaskManager.md). + +## c2.resourceschedule.workScheduler +Rectified the original APIs of **workScheduler** of the resource scheduler subsystem. All APIs of API version 9 in the **@ohos.workScheduler.d.ts** file are deleted, and the APIs of API version 9 in the **@ohos.resourceschedule.workScheduler.d.ts** file are used. The new APIs in API version 9 comply with the error code specifications. + +**Change Impacts** + +If your application is developed based on the SDK versions of OpenHarmony 3.2.10.5 and later, adapt to the modules and APIs in API version 9 and the pattern for returning error codes. Otherwise, the service logic will be affected. + +**Key API/Component Changes** + +The following methods, attributes, enums, and constants are changed in API version 9 and later versions. The **@ohos.workScheduler.d.ts** file is deleted, and all the APIs in it are moved to the **@ohos.resourceschedule.workScheduler.d.ts** file. + +| Class| API Type| Declaration| Change Type| +| -- | -- | -- | -- | +| workScheduler | namespace | declare namespace workScheduler | Deleted in API version 9 and moved to the **ohos.resourceschedule.workScheduler.d.ts** file.| +| workScheduler.WorkInfo | interface | export interface WorkInfo | Deleted in API version 9 and moved to the **ohos.resourceschedule.workScheduler.d.ts** file.| +| workScheduler.WorkInfo | field | parameters?: {[key: string]: any} | Deleted in API version 9 and moved to the **ohos.resourceschedule.workScheduler.d.ts** file.| +| workScheduler.WorkInfo | field | idleWaitTime?: number | Deleted in API version 9 and moved to the **ohos.resourceschedule.workScheduler.d.ts** file.| +| workScheduler.WorkInfo | field | isDeepIdle?: boolean | Deleted in API version 9 and moved to the **ohos.resourceschedule.workScheduler.d.ts** file.| +| workScheduler.WorkInfo | field | repeatCount?: number | Deleted in API version 9 and moved to the **ohos.resourceschedule.workScheduler.d.ts** file.| +| workScheduler.WorkInfo | field | isRepeat?: boolean | Deleted in API version 9 and moved to the **ohos.resourceschedule.workScheduler.d.ts** file.| +| workScheduler.WorkInfo | field | repeatCycleTime?: number | Deleted in API version 9 and moved to the **ohos.resourceschedule.workScheduler.d.ts** file.| +| workScheduler.WorkInfo | field | storageRequest?: StorageRequest | Deleted in API version 9 and moved to the **ohos.resourceschedule.workScheduler.d.ts** file.| +| workScheduler.WorkInfo | field | batteryStatus?: BatteryStatus | Deleted in API version 9 and moved to the **ohos.resourceschedule.workScheduler.d.ts** file.| +| workScheduler.WorkInfo | field | batteryLevel?: number | Deleted in API version 9 and moved to the **ohos.resourceschedule.workScheduler.d.ts** file.| +| workScheduler.WorkInfo | field | chargerType?: ChargingType | Deleted in API version 9 and moved to the **ohos.resourceschedule.workScheduler.d.ts** file.| +| workScheduler.WorkInfo | field | isCharging?: boolean | Deleted in API version 9 and moved to the **ohos.resourceschedule.workScheduler.d.ts** file.| +| workScheduler.WorkInfo | field | networkType?: NetworkType | Deleted in API version 9 and moved to the **ohos.resourceschedule.workScheduler.d.ts** file.| +| workScheduler.WorkInfo | field | isPersisted?: boolean | Deleted in API version 9 and moved to the **ohos.resourceschedule.workScheduler.d.ts** file.| +| workScheduler.WorkInfo | field | abilityName: string | Deleted in API version 9 and moved to the **ohos.resourceschedule.workScheduler.d.ts** file.| +| workScheduler.WorkInfo | field | bundleName: string | Deleted in API version 9 and moved to the **ohos.resourceschedule.workScheduler.d.ts** file.| +| workScheduler.WorkInfo | field | workId: number | Deleted in API version 9 and moved to the **ohos.resourceschedule.workScheduler.d.ts** file.| +| workScheduler | method | function isLastWorkTimeOut(workId: number): Promise; | Deleted in API version 9 and moved to the **ohos.resourceschedule.workScheduler.d.ts** file.| +| workScheduler | method | function isLastWorkTimeOut(workId: number, callback: AsyncCallback): boolean; | Deleted in API version 9 and moved to the **ohos.resourceschedule.workScheduler.d.ts** file.| +| workScheduler | method | function stopAndClearWorks(): boolean; | Changed in API version 8 to **function stopAndClearWorks(): boolean;** and moved to the **ohos.resourceschedule.workScheduler.d.ts** file| +| workScheduler | method | function obtainAllWorks(): Promise>; | Deleted in API version 9 and moved to the **ohos.resourceschedule.workScheduler.d.ts** file.| +| workScheduler | method | function obtainAllWorks(callback: AsyncCallback): Array; | Deleted in API version 9 and moved to the **ohos.resourceschedule.workScheduler.d.ts** file.| +| workScheduler | method | function getWorkStatus(workId: number): Promise; | Deleted in API version 9 and moved to the **ohos.resourceschedule.workScheduler.d.ts** file.| +| workScheduler | method | function getWorkStatus(workId: number, callback: AsyncCallback): void; | Deleted in API version 9 and moved to the **ohos.resourceschedule.workScheduler.d.ts** file.| +| workScheduler | method | function stopWork(work: WorkInfo, needCancel?: boolean): boolean; | Changed in API version 8 to **function stopWork(work: WorkInfo, needCancel?: boolean): void;** and moved to the **ohos.resourceschedule.workScheduler.d.ts** file.| +| workScheduler | method | function startWork(work: WorkInfo): boolean; | Changed in API version 9 to **function startWork(work: WorkInfo): void;** and moved to the **ohos.resourceschedule.workScheduler.d.ts** file| +| workScheduler.NetworkType | enum | export enum NetworkType | Deleted in API version 9 and moved to the **ohos.resourceschedule.workScheduler.d.ts** file.| +| workScheduler.NetworkType | enum | NETWORK_TYPE_ANY = 0 | Deleted in API version 9 and moved to the **ohos.resourceschedule.workScheduler.d.ts** file.| +| workScheduler.NetworkType | enum | NETWORK_TYPE_MOBILE | Deleted in API version 9 and moved to the **ohos.resourceschedule.workScheduler.d.ts** file.| +| workScheduler.NetworkType | enum | NETWORK_TYPE_WIFI | Deleted in API version 9 and moved to the **ohos.resourceschedule.workScheduler.d.ts** file.| +| workScheduler.NetworkType | enum | NETWORK_TYPE_BLUETOOTH | Deleted in API version 9 and moved to the **ohos.resourceschedule.workScheduler.d.ts** file.| +| workScheduler.NetworkType | enum | NETWORK_TYPE_WIFI_P2P | Deleted in API version 9 and moved to the **ohos.resourceschedule.workScheduler.d.ts** file.| +| workScheduler.NetworkType | enum | NETWORK_TYPE_ETHERNET | Deleted in API version 9 and moved to the **ohos.resourceschedule.workScheduler.d.ts** file.| +| workScheduler.ChargingType | enum | export enum ChargingType | Deleted in API version 9 and moved to the **ohos.resourceschedule.workScheduler.d.ts** file.| +| workScheduler.ChargingType | enum | CHARGING_PLUGGED_ANY = 0 | Deleted in API version 9 and moved to the **ohos.resourceschedule.workScheduler.d.ts** file.| +| workScheduler.ChargingType | enum | CHARGING_PLUGGED_AC | Deleted in API version 9 and moved to the **ohos.resourceschedule.workScheduler.d.ts** file.| +| workScheduler.ChargingType | enum | CHARGING_PLUGGED_USB | Deleted in API version 9 and moved to the **ohos.resourceschedule.workScheduler.d.ts** file.| +| workScheduler.ChargingType | enum | CHARGING_PLUGGED_WIRELESS | Deleted in API version 9 and moved to the **ohos.resourceschedule.workScheduler.d.ts** file.| +| workScheduler.BatteryStatus | enum | export enum BatteryStatus | Deleted in API version 9 and moved to the **ohos.resourceschedule.workScheduler.d.ts** file.| +| workScheduler.BatteryStatus | enum | BATTERY_STATUS_LOW = 0 | Deleted in API version 9 and moved to the **ohos.resourceschedule.workScheduler.d.ts** file.| +| workScheduler.BatteryStatus | enum | BATTERY_STATUS_OKAY | Deleted in API version 9 and moved to the **ohos.resourceschedule.workScheduler.d.ts** file.| +| workScheduler.BatteryStatus | enum | BATTERY_STATUS_LOW_OR_OKAY | Deleted in API version 9 and moved to the **ohos.resourceschedule.workScheduler.d.ts** file.| +| workScheduler.StorageRequest | enum | export enum StorageRequest | Deleted in API version 9 and moved to the **ohos.resourceschedule.workScheduler.d.ts** file.| +| workScheduler.BatteryStatus | enum | STORAGE_LEVEL_LOW = 0 | Deleted in API version 9 and moved to the **ohos.resourceschedule.workScheduler.d.ts** file.| +| workScheduler.BatteryStatus | enum | STORAGE_LEVEL_OKAY | Deleted in API version 9 and moved to the **ohos.resourceschedule.workScheduler.d.ts** file.| +| workScheduler.BatteryStatus | enum | STORAGE_LEVEL_LOW_OR_OKAY | Deleted in API version 9 and moved to the **ohos.resourceschedule.workScheduler.d.ts** file.| + + +**Adaptation Guide** + +Import the **workScheduler** module. +``` +import bundle form '@ohos.resourceschedule.workScheduler' +``` +Exception handling also needs to be adapted. For details, see the [workScheduler API reference](../../../application-dev/reference/apis/js-apis-resourceschedule-workScheduler.md). diff --git a/en/release-notes/changelogs/OpenHarmony_3.2.10.5/changelogs-bundlemanager.md b/en/release-notes/changelogs/OpenHarmony_3.2.10.5/changelogs-bundlemanager.md new file mode 100644 index 0000000000000000000000000000000000000000..5836d257282f062f61f1ff54f4b6c3c8322cf04a --- /dev/null +++ b/en/release-notes/changelogs/OpenHarmony_3.2.10.5/changelogs-bundlemanager.md @@ -0,0 +1,106 @@ +# Bundle Manager Subsystem ChangeLog + +## cl.bundlemanager.1 Changed Underlying Capability by Adding Verification to bundle-name in the Signing Certification During Application Installation + +During application installation, the **bundle-name** field in the [signing certificate profile](../../../application-dev/security/app-provision-structure.md) is verified against the bundle name of the application. + +If the value of **bundle-name** is different from the value of **bundleName** in the application configuration file, the installation fails and the following error information is displayed: +``` +error: verify signature failed. +``` + +**Change Impacts** + +For applications using system images of 3.2.10.5 or later, if the **bundle-name** field in the signing certificate profile is different from the bundle name of the application, application installation fails. This change has no impact on applications using system images earlier than 3.2.10.5. + +**Key API/Component Changes** + +No API or component change is involved. + +**Adaptation Guide** + +If "error: verify signature failed" is displayed, change **bundle-name** in the signing certificate profile to the bundle name of the application, generate a new signing certificate (with the file name extension .p7b), and sign the application again. For details about how to use the signing tool and generate a signing certificate, see [hapsigner Guide](../../../application-dev/security/hapsigntool-guidelines.md). + +## cl.bundlemanager.2 Changed Underlying Capability by Adding Control over Applications Without Entry Icons + +If no entry icon is configured for an application that has not requested the **AllowHideDesktopIcon** privilege, a default icon is displayed on the home screen. Any click on the icon redirects to the application details page. An application is determined to have no entry icon in either of the following scenarios: +1. The **abilities** field is not configured for the application. +2. The **abilities** field is configured for the application, but the **skills** field under the ability of any page type does not contain both **action.system.home** and **entity.system.home**, as follows: + ```json + "skills": [ + { + "actions": [ + "action.system.home" + ], + "entities": [ + "entity.system.home" + ] + } + ] + ``` +If the application installation mode is **hdc_std install** or **bm install**, a default icon is displayed for the application on the home screen. + +If your application does not need an icon to be displayed on the home screen, request the **AllowHideDesktopIcon** privilege and configure it in the signing certificate or trustlist (**install_list_capability.json**). For details, see [Application Privilege Configuration Guide](../../../device-dev/subsystems/subsys-app-privilege-config-guide.md). + +If your application needs an icon to be displayed on the home screen, select an ability from **abilities** and configure its **skills** field to contain both **action.system.home** and **entity.system.home**. + +**Change Impacts** + +For applications using system images of 3.2.10.5 and later versions, if no entry icon is configured for an application, the default icon is displayed on the home screen when the application is installed using the CLI. This change has no impact on applications using system images earlier than 3.2.10.5. + +**Key API/Component Changes** + +No API or component change is involved. + +**Adaptation Guide** + +If your application does not need an icon to be displayed on the home screen, request the **AllowHideDesktopIcon** privilege and configure it in the signing certificate or trustlist (**install_list_capability.json**). For details, see [Application Privilege Configuration Guide](../../../device-dev/subsystems/subsys-app-privilege-config-guide.md). + +If your application needs an icon to be displayed on the home screen, select an ability from **abilities** and configure its **skills** field to contain both **action.system.home** and **entity.system.home**. + +## cl.bundlemanager.3 Changed Underlying Capability by Restricting AllowAppUsePrivilegeExtension, AllowAppMultiProcess, and AllowFormVisibleNotify from Being Configured in the Signing Certificate + +The **AllowAppUsePrivilegeExtension**, **AllowAppMultiProcess**, and **AllowFormVisibleNotify** privileges can no longer be configured in the signing certificate. They can be requested only through the trustlist (**install_list_capability.json**). If your application requests these privileges in the signing certificate, the installation may fail or the privileges may be invalid. + +If the following error information is displayed, adapt to the new privilege configuration method. For details, see [Application Privilege Configuration Guide](../../../device-dev/subsystems/subsys-app-privilege-config-guide.md). +``` +error: install parse profile prop check error. +``` + +For the XTS or local debugging demo, if the **install_list_capability.json** file on the development board cannot be modified, you can change the bundle name of the application to start with **com.acts.** and request the privileges in the signing certificate. + +The **AllowAppUsePrivilegeExtension** privilege is requested by configuring it under the **extensionAbilities** field, with the **type** attribute set to **dataShare** or **service**, in the application configuration file. If this privilege is not configured, the installation fails. + +**Change Impacts** + +For applications using system images of 3.2.10.5 or later, if the required privileges are not requested using the trustlist (**install_list_capability.json**), application installation may fail. This change has no impact on applications using system images earlier than 3.2.10.5. + +**Key API/Component Changes** + +No API or component change is involved. + +**Adaptation Guide** + +If the following error information is displayed, adapt to the new privilege configuration method. For details, see [Application Privilege Configuration Guide](../../../device-dev/subsystems/subsys-app-privilege-config-guide.md). + +``` +error: install parse profile prop check error. +``` + +For the XTS or local debugging demo, if the **install_list_capability.json** file on the development board cannot be modified, you can change the bundle name of the application to start with **com.acts.** and request the privileges in the signing certificate. + +## cl.bundlemanager.4 Changed Underlying Capability by Not Decompressing the HAP During HAP Installation + +The HAP will no longer be decompressed during installation. After the installation is complete, only the HAP file exists in the installation directory. As a result, the application must use the standard resource management interface, rather than a combined path, to access a resource file. + +**Change Impacts** + +If the application uses a combined path to access a resource file, the access fails. It must use the resource management interface. + +**Key API/Component Changes** + +No API or component change is involved. + +**Adaptation Guide** + +The resource management subsystem provides the JS interface for accessing resource files. Reference: [Accessing Resource Files](../../../application-dev/reference/apis/js-apis-resource-manager.md#getrawfilecontent9) \ No newline at end of file diff --git a/en/release-notes/changelogs/OpenHarmony_3.2.10.5/changelogs-filemanagement.md b/en/release-notes/changelogs/OpenHarmony_3.2.10.5/changelogs-filemanagement.md new file mode 100644 index 0000000000000000000000000000000000000000..d67dc521bfdb10aff1beee5453a9381ef39d4dc6 --- /dev/null +++ b/en/release-notes/changelogs/OpenHarmony_3.2.10.5/changelogs-filemanagement.md @@ -0,0 +1,145 @@ +# File Management Subsystem ChangeLog + +## cl.filemanagement.1 Changed environment + +The file management subsystem **d.ts** file has been moved to the **file** directory. The **environment** module supports error code processing. + +**Change Impacts** + +If your application is developed based on earlier versions, note that the **d.ts** file storage location and the name of the module to be imported are changed. The **environment** module supports error code processing. See [adaptation instructions](../OpenHarmony_3.2.8.1/changelogs-filemanagement.md) for more details. + +**Key API/Component Changes** + +Before the change, **environment** was imported using **@ohos.environment**: + +```js +import environment from '@ohos.environment'; +``` + +But now, **environment** is imported using **@ohos.file.environment**: + +```js +import environment from '@ohos.file.environment'; +``` + +## cl.filemanagement.2 Changed securityLabel + +The file management subsystem **d.ts** file has been moved to the **file** directory. The **securityLabel** module supports error code processing. + +**Change Impacts** + +If your application is developed based on earlier versions, note that the **d.ts** file storage location and the name of the module to be imported are changed. The **securityLabel** module supports error code processing. See [adaptation instructions](../OpenHarmony_3.2.8.1/changelogs-filemanagement.md) for more details. + +**Key API/Component Changes** + +Before the change, **securityLabel** was imported using **@ohos.securityLabel**: + +```js +import securityLabel from '@ohos.securityLabel'; +``` + +But now, **securityLabel** is imported using **@ohos.file.securityLabel**: + +```js +import securityLabel from '@ohos.file.securityLabel'; +``` + +## cl.filemanagement.3 Changed fs + +The **ino** attribute type of the **Stat** API under the **fs** module is changed. + +**Change Impacts** + +The **ino** attribute type is changed from number to BigInt, to adapt to the inode range of all types of files in the file system. + +**Key API/Component Changes** + +The type of the **ino** attribute of the **Stat** API is changed from number to BigInt. + +## cl.filemanagement.4 Changed fileAccess + +The file management subsystem **d.ts** file has been moved to the **file** directory. The **fileAccess** module supports error code processing. + +**Change Impacts** + +If your application is developed based on earlier versions, note that the **d.ts** file storage location and the name of the module to be imported are changed. The **fileAccess** module supports error code processing. See [adaptation instructions](../OpenHarmony_3.2.8.1/changelogs-filemanagement.md) for more details. + +**Key API/Component Changes** + +Before the change, **fileAccess** was imported using **@ohos.data.fileAccess**: + +```js +import fileAccess from '@ohos.data.fileAccess'; +``` + +But now, **fileAccess** is imported using **@ohos.file.fileAccess**: + +```js +import fileAccess from '@ohos.file.fileAccess'; +``` + +## cl.filemanagement.5 Changed fileExtensionInfo + +The file management subsystem **d.ts** file has been moved to the **file** directory. The **fileExtensionInfo** module supports error code processing. + +**Change Impacts** + +If your application is developed based on earlier versions, note that the **d.ts** file storage location and the name of the module to be imported are changed. The **fileExtensionInfo** module supports error code processing. See [adaptation instructions](../OpenHarmony_3.2.8.1/changelogs-filemanagement.md) for more details. + +**Key API/Component Changes** + +Before the change, **fileExtensionInfo** was imported using **@ohos.fileExtensionInfo**: + +```js +import fileExtensionInfo from '@ohos.fileExtensionInfo'; +``` + +But now, **fileExtensionInfo** is imported using **@ohos.file.fileExtensionInfo**: + +```js +import fileExtensionInfo from '@ohos.file.fileExtensionInfo'; +``` + +## cl.filemanagement.6 Changed storageStatistics + +The file management subsystem **d.ts** file has been moved to the **file** directory. The **fileExtensionInfo** module supports error code processing. + +**Change Impacts** + +If your application is developed based on earlier versions, note that the **d.ts** file storage location and the name of the module to be imported are changed. The **storageStatistics** module supports error code processing. See [adaptation instructions](../OpenHarmony_3.2.8.1/changelogs-filemanagement.md) for more details. + +**Key API/Component Changes** + +Before the change, **storageStatistics** was imported using **@ohos.storageStatistics**: + +```js +import storageStatistics from '@ohos.storageStatistics'; +``` + +But now, **storageStatistics** is imported using **@ohos.file.storageStatistics**: + +```js +import storageStatistics from '@ohos.file.storageStatistics'; +``` + +## cl.filemanagement.7 Changed volumeManager + +The file management subsystem **d.ts** file has been moved to the **file** directory. The **fileExtensionInfo** module supports error code processing. + +**Change Impacts** + +If your application is developed based on earlier versions, note that the **d.ts** file storage location and the name of the module to be imported are changed. The **volumeManager** module supports error code processing. See [adaptation instructions](../OpenHarmony_3.2.8.1/changelogs-filemanagement.md) for more details. + +**Key API/Component Changes** + +Before the change, **volumeManager** was imported using **@ohos.volumeManager**: + +```js +import volumeManager from '@ohos.volumeManager'; +``` + +But now, **volumeManager** is imported using **@ohos.file.volumeManager**: + +```js +import volumeManager from '@ohos.file.volumeManager'; +``` diff --git a/en/release-notes/changelogs/OpenHarmony_3.2.10.5/changelogs-inputmethod-framworks.md b/en/release-notes/changelogs/OpenHarmony_3.2.10.5/changelogs-inputmethod-framworks.md new file mode 100644 index 0000000000000000000000000000000000000000..3318c618bd3cb511da78865aa85a779c689673fb --- /dev/null +++ b/en/release-notes/changelogs/OpenHarmony_3.2.10.5/changelogs-inputmethod-framworks.md @@ -0,0 +1,31 @@ +# Input Method Framework ChangeLog + +## cl.inputmethod_frameworks.1 API Filename Change + +The following modules do not comply with the OpenHarmony API file naming rules. Therefore, they are modified in API version 9 and later. + +**Change Impacts** + +The SDK after the change is incompatible with the earlier versions. Therefore, adaptation is required for applications developed in earlier versions so that they can be properly built with the SDK in the new version. + +**Key API/Component Changes** + +| Module| File Name Before Change| File Name After Change| +|------|--------------|--------------| +| Input method framework module| @ohos.inputmethod.d.ts |@ohos.inputMethod.d.ts | +| Input method service module|@ohos.inputmethodengine.d.ts | @ohos.inputMethodEngine.d.ts | +| Input method ExtentionAbility module| @ohos.inputmethodextensionability.d.ts | @ohos.InputMethodExtensionAbility.d.ts | +| Input method ExtentionContext module|@ohos.inputmethodextensioncontext.d.ts | @ohos.InputMethodExtensionContext.d.ts | +| Input method subtype module| @ohos.inputMethodSubtype.d.ts | @ohos.InputMethodSubtype.d.ts | + +**Adaptation Guide** + +In the application code, change the name of the d.ts file following **import** to the new file name, which complies with the UpperCamelCase or lowerCamelCase style. + +Example: + +```js +import inputMethodEngine from '@ohos.inputMethodEngine'; +``` + + diff --git a/en/release-notes/changelogs/OpenHarmony_3.2.10.5/changelogs-useriam.md b/en/release-notes/changelogs/OpenHarmony_3.2.10.5/changelogs-useriam.md new file mode 100644 index 0000000000000000000000000000000000000000..a3abb3143332e234f4583eaffc95aed632cb5260 --- /dev/null +++ b/en/release-notes/changelogs/OpenHarmony_3.2.10.5/changelogs-useriam.md @@ -0,0 +1,17 @@ +# User IAM Subsystem ChangeLog + +## cl.useriam.1 API9 Authentication Result Code Class Name Change + +The name of the authentication result code class of user IAM API version 9 is changed from **ResultCode** to **UserAuthResultCode**. + +**Change Impacts** + +Applications developed based on earlier versions are not affected. For the applications developed from this version, the class name of the error code needs to be adapted. Otherwise, the service logic is affected. + +**Key API/Component Changes** + +N/A + +**Adaptation Guide** + +Change the class name for invoking the authentication result code from **ResultCode** to **UserAuthResultCode**. diff --git a/en/release-notes/changelogs/OpenHarmony_3.2.10.5/changelogs-window.md b/en/release-notes/changelogs/OpenHarmony_3.2.10.5/changelogs-window.md new file mode 100644 index 0000000000000000000000000000000000000000..b3514e82cca44c154a70b999e6cc62a54d47ff92 --- /dev/null +++ b/en/release-notes/changelogs/OpenHarmony_3.2.10.5/changelogs-window.md @@ -0,0 +1,63 @@ +# Window Subsystem ChangeLog + +## cl.window.1 Change of Window Stage Lifecycle Listener Types + +Changed the enumerated listener types of the window stage lifecycle in version 3.2.10.5 and later. + +**Change Impacts** + +Application lifecycle listeners developed using **FOREGROUND** and **BACKGROUND** in versions earlier than 3.2.10.5 will be invalidated in version 3.2.10.5 and later. + +**Key API/Component Changes** + +## WindowStageEventType9+ + +Before change + +| Name | Value | Description | +| ---------- | ---- | ---------- | +| FOREGROUND | 1 | The window stage is running in the foreground.| +| BACKGROUND | 4 | The window stage is running in the background.| + +After change +| Name | Value | Description | +| ------ | ---- | ---------- | +| SHOWN | 1 | The window stage is running in the foreground.| +| HIDDEN | 4 | The window stage is running in the background.| + +**Adaptation Guide** + +When registering lifecycle listeners, change the foreground and background event types to **SHOWN** and **HIDDEN**, respectively. + +``` +import Ability from '@ohos.application.Ability'; + +class myAbility extends Ability { + onWindowStageCreate(windowStage) { + console.log('onWindowStageCreate'); + try { + windowStage.on('windowStageEvent', (stageEventType) => { + switch (stageEventType) { + case window.WindowStageEventType.SHOWN: + console.log("windowStage shown"); + break; + case window.WindowStageEventType.ACTIVE: + console.log("windowStage active"); + break; + case window.WindowStageEventType.INACTIVE: + console.log("windowStage inActive"); + break; + case window.WindowStageEventType.HIDDEN: + console.log("windowStage hidden"); + break; + default: + break; + } + } ) + } catch (exception) { + console.error('Failed to enable the listener for window stage event changes. Cause:' + + JSON.stringify(exception)); + }; + } +}; +``` diff --git a/en/release-notes/changelogs/OpenHarmony_3.2.8.1/changelogs-testfwk_arkxtest.md b/en/release-notes/changelogs/OpenHarmony_3.2.8.1/changelogs-testfwk_arkxtest.md new file mode 100644 index 0000000000000000000000000000000000000000..69bf6038edfb09bcee929d5f85bb66254ef58ab7 --- /dev/null +++ b/en/release-notes/changelogs/OpenHarmony_3.2.8.1/changelogs-testfwk_arkxtest.md @@ -0,0 +1,41 @@ +# Test Subsystem ChangeLog + +## cl.testfwk_arkxtest.1 Exception Handling Support of On, Driver, and Component APIs + +The original APIs in API version 8 are deprecated, and substitute APIs that support exception handling are introduced in API version 9. You must use **try catch** to capture exceptions thrown by the APIs. + +## Change Impacts + +This change affects the JS APIs in API version 9 provided by **@ohos.uitest**. If you have used the API of **@ohos.uitest-api9** during test case development, adaptation is required so that the compilation can be successful in the SDK environment of the new version. + +## Key API/Component Changes + +- The **By** class in API version 8 is deprecated and replaced by the **On** class in API version 9. The APIs of the **On** class support exception handling and retain their original name, with the exception of **By#key**, which is renamed **On.id**. +- The **BY** object in API version 8 is deprecated and replaced by the **ON** object in API version 9. +- The **UiDriver** class in API version 8 is deprecated and replaced by the **Driver** class in API version 9. The APIs of the **Driver** class support exception handling and retain their original name. +- The **UiComponent** class in API version 8 is deprecated and replaced by the **Component** class in API version 9. The APIs of the **Component** class support exception handling and retain their original name. + +## Adaptation Guide + +1. Adapt to the API name changes. + + You can replace the class name according to the following rules: + + - `By-->On` + - `BY-->ON` + - `UiDriver-->Driver` + - `UiComponent-->Component` + +2. Catch and handle exceptions. + + Use **try-catch** to catch and handle exceptions thrown by the APIs. Below is the sample code: + + ```typescript + import {Driver,ON,Component} from '@ohos.uitest' + + try { + let driver = Driver.create(); + } catch (error) { + // error handle; error.code indicates the error code. + } + ``` \ No newline at end of file diff --git a/en/release-notes/changelogs/OpenHarmony_3.2.8.2/changelog-bundlemanager.md b/en/release-notes/changelogs/OpenHarmony_3.2.8.2/changelog-bundlemanager.md index 8643663fa245f33dcf5866a767327ff83b2ffb92..24146a66cd76375d49e1bad764b474bf59317a20 100644 --- a/en/release-notes/changelogs/OpenHarmony_3.2.8.2/changelog-bundlemanager.md +++ b/en/release-notes/changelogs/OpenHarmony_3.2.8.2/changelog-bundlemanager.md @@ -273,6 +273,7 @@ Use the **HapModuleInfo** structure of API version 9 for modules imported for bu ## cl.bundlemanager.7 ModuleInfo Structure Changes The original **bundle/hapModuleInfo.d.ts** and **moduleInfo.d.ts** fields in the bundle manager are deprecated, and the files are changed to [bundleManager/hapModuleInfo.d.ts](https://gitee.com/openharmony/interface_sdk-js/blob/master/api/bundleManager/hapModuleInfo.d.ts), involving field changes. + The **ModuleInfo** structure is deprecated and replaced by **HapModuleInfo** in [bundleManager/hapModuleInfo.d.ts](https://gitee.com/openharmony/interface_sdk-js/blob/master/api/bundleManager/hapModuleInfo.d.ts). **Change Impacts** @@ -759,3 +760,5 @@ The import module does not change. The new API is directly used to adapt excepti ``` import zlib form '@ohos.zlib' ``` + + \ No newline at end of file diff --git a/en/release-notes/changelogs/OpenHarmony_3.2.8.2/changelog-resourceschedule.md b/en/release-notes/changelogs/OpenHarmony_3.2.8.2/changelog-resourceschedule.md new file mode 100644 index 0000000000000000000000000000000000000000..f109d28cec55335f3422fd063532aad1cafe310f --- /dev/null +++ b/en/release-notes/changelogs/OpenHarmony_3.2.8.2/changelog-resourceschedule.md @@ -0,0 +1,318 @@ +# Resource Scheduler Subsystem ChangeLog + +## cl.resourceschedule.backgroundTaskManager + +Rectified original APIs of **backgroundTaskManager** of the resource scheduler subsystem. All APIs in API version 8 and earlier versions are deprecated, and original APIs in API version 9 are deleted. New APIs in API version 9 need to be used. The new APIs in API version 9 comply with the error code specifications. + +**Change Impacts** + +The application developed based on the SDK versions of OpenHarmony 3.2.8.2 and later needs to adapt the modules and APIs in API version 9 and their methods for returning API error information. Otherwise, the original service logic will be affected. + +**Key API/Component Changes** + +The following methods, attributes, enumerations, and constants are changed in API version 9 and later versions. The **@ohos.backgroundTaskManager.d.ts** file is deprecated and related APIs are migrated to the newly added **@ohos.resourceschedule.backgroundTaskManager.d.ts** file. + +| Class| API Type| Declaration| Description| +| -- | -- | -- | -- | +| backgroundTaskManager | namespace | declare namespace backgroundTaskManager | This API is deprecated in API version 9 and later versions and is migrated to the **ohos.resourceschedule.backgroundTaskManager.d.ts** file.| +| backgroundTaskManager | method | function resetAllEfficiencyResources(): void; | This API is changed in API version 9 and migrated to the **ohos.resourceschedule.backgroundTaskManager.d.ts** file.| +| backgroundTaskManager | method | function applyEfficiencyResources(request: EfficiencyResourcesRequest): bool; | This API is changed in API version 9 to **function applyEfficiencyResources(request: EfficiencyResourcesRequest): void;** and migrated to the **ohos.resourceschedule.backgroundTaskManager.d.ts** file.| +| backgroundTaskManager | method | function stopBackgroundRunning(context: Context): Promise; | This API is deprecated in API version 9 and later versions and is migrated to the **ohos.resourceschedule.backgroundTaskManager.d.ts** file.| +| backgroundTaskManager | method | function stopBackgroundRunning(context: Context, callback: AsyncCallback): void; | This API is deprecated in API version 9 and later versions and is migrated to the **ohos.resourceschedule.backgroundTaskManager.d.ts** file.| +| backgroundTaskManager | method | function startBackgroundRunning(context: Context, bgMode: BackgroundMode, wantAgent: WantAgent): Promise; | This API is deprecated in API version 9 and later versions and is migrated to the **ohos.resourceschedule.backgroundTaskManager.d.ts** file.| +| backgroundTaskManager | method | function startBackgroundRunning(context: Context, bgMode: BackgroundMode, wantAgent: WantAgent, callback: AsyncCallback): void; | This API is deprecated in API version 9 and later versions and is migrated to the **ohos.resourceschedule.backgroundTaskManager.d.ts** file.| +| backgroundTaskManager | method | function requestSuspendDelay(reason: string, callback: Callback): DelaySuspendInfo; | This API is deprecated in API version 9 and later versions and is migrated to the **ohos.resourceschedule.backgroundTaskManager.d.ts** file.| +| backgroundTaskManager | method | function getRemainingDelayTime(requestId: number): Promise; | This API is deprecated in API version 9 and later versions and is migrated to the **ohos.resourceschedule.backgroundTaskManager.d.ts** file.| +| backgroundTaskManager | method | function getRemainingDelayTime(requestId: number, callback: AsyncCallback): void; | This API is deprecated in API version 9 and later versions and is migrated to the **ohos.resourceschedule.backgroundTaskManager.d.ts** file.| +| backgroundTaskManager | method | function cancelSuspendDelay(requestId: number): void; | This API is deprecated in API version 9 and later versions and is migrated to the **ohos.resourceschedule.backgroundTaskManager.d.ts** file.| +| backgroundTaskManager.BackgroundMode | enum | export enum BackgroundMode | This API is deprecated in API version 9 and later versions and is migrated to the **ohos.resourceschedule.backgroundTaskManager.d.ts** file.| +| backgroundTaskManager.BackgroundMode | enum | DATA_TRANSFER = 1 | This API is deprecated in API version 9 and later versions and is migrated to the **ohos.resourceschedule.backgroundTaskManager.d.ts** file.| +| backgroundTaskManager.BackgroundMode | enum | AUDIO_PLAYBACK = 2 | This API is deprecated in API version 9 and later versions and is migrated to the **ohos.resourceschedule.backgroundTaskManager.d.ts** file.| +| backgroundTaskManager.BackgroundMode | enum | AUDIO_RECORDING = 3 | This API is deprecated in API version 9 and later versions and is migrated to the **ohos.resourceschedule.backgroundTaskManager.d.ts** file.| +| backgroundTaskManager.BackgroundMode | enum | LOCATION = 4 | This API is deprecated in API version 9 and later versions and is migrated to the **ohos.resourceschedule.backgroundTaskManager.d.ts** file.| +| backgroundTaskManager.BackgroundMode | enum | BLUETOOTH_INTERACTION = 5 | This API is deprecated in API version 9 and later versions and is migrated to the **ohos.resourceschedule.backgroundTaskManager.d.ts** file.| +| backgroundTaskManager.BackgroundMode | enum | MULTI_DEVICE_CONNECTION = 6 | This API is deprecated in API version 9 and later versions and is migrated to the **ohos.resourceschedule.backgroundTaskManager.d.ts** file.| +| backgroundTaskManager.BackgroundMode | enum | WIFI_INTERACTION = 7 | This API is deprecated in API version 9 and later versions and is migrated to the **ohos.resourceschedule.backgroundTaskManager.d.ts** file.| +| backgroundTaskManager.BackgroundMode | enum | VOIP = 8 | This API is deprecated in API version 9 and later versions and is migrated to the **ohos.resourceschedule.backgroundTaskManager.d.ts** file.| +| backgroundTaskManager.BackgroundMode | enum | TASK_KEEPING = 9 | This API is deprecated in API version 9 and later versions and is migrated to the **ohos.resourceschedule.backgroundTaskManager.d.ts** file.| +| backgroundTaskManager.DelaySuspendInfo | interface | interface DelaySuspendInfo | This API is deprecated in API version 9 and later versions and is migrated to the **ohos.resourceschedule.backgroundTaskManager.d.ts** file.| +| backgroundTaskManager.DelaySuspendInfo | field | requestId: number | This API is deprecated in API version 9 and later versions and is migrated to the **ohos.resourceschedule.backgroundTaskManager.d.ts** file.| +| backgroundTaskManager.DelaySuspendInfo | field | actualDelayTime: number | This API is deprecated in API version 9 and later versions and is migrated to the **ohos.resourceschedule.backgroundTaskManager.d.ts** file.| +| backgroundTaskManager.ResourceType | enum | export enum ResourceType | This API is changed in API version 9 and migrated to the **ohos.resourceschedule.backgroundTaskManager.d.ts** file.| +| backgroundTaskManager.ResourceType | enum | CPU = 1 | This API is changed in API version 9 and migrated to the **ohos.resourceschedule.backgroundTaskManager.d.ts** file.| +| backgroundTaskManager.ResourceType | enum | COMMON_EVENT = 1 << 1 | This API is changed in API version 9 and migrated to the **ohos.resourceschedule.backgroundTaskManager.d.ts** file.| +| backgroundTaskManager.ResourceType | enum | TIMER = 1 << 2 | This API is changed in API version 9 and migrated to the **ohos.resourceschedule.backgroundTaskManager.d.ts** file.| +| backgroundTaskManager.ResourceType | enum | WORK_SCHEDULER = 1 << 3 | This API is changed in API version 9 and migrated to the **ohos.resourceschedule.backgroundTaskManager.d.ts** file.| +| backgroundTaskManager.ResourceType | enum | BLUETOOTH = 1 << 4 | This API is changed in API version 9 and migrated to the **ohos.resourceschedule.backgroundTaskManager.d.ts** file.| +| backgroundTaskManager.ResourceType | enum | GPS = 1 << 5 | This API is changed in API version 9 and migrated to the **ohos.resourceschedule.backgroundTaskManager.d.ts** file.| +| backgroundTaskManager.ResourceType | enum | AUDIO = 1 << 6 | This API is changed in API version 9 and migrated to the **ohos.resourceschedule.backgroundTaskManager.d.ts** file.| +| backgroundTaskManager.EfficiencyResourcesRequest | interface | export interface EfficiencyResourcesRequest | This API is changed in API version 9 and migrated to the **ohos.resourceschedule.backgroundTaskManager.d.ts** file.| +| backgroundTaskManager.EfficiencyResourcesRequest | field | reason: string | This API is changed in API version 9 and migrated to the **ohos.resourceschedule.backgroundTaskManager.d.ts** file.| +| backgroundTaskManager.EfficiencyResourcesRequest | field | isProcess?: bool | This API is changed in API version 9 and migrated to the **ohos.resourceschedule.backgroundTaskManager.d.ts** file.| +| backgroundTaskManager.EfficiencyResourcesRequest | field | isPersist?: bool | This API is changed in API version 9 and migrated to the **ohos.resourceschedule.backgroundTaskManager.d.ts** file.| +| backgroundTaskManager.EfficiencyResourcesRequest | field | timeOut: number | This API is changed in API version 9 and migrated to the **ohos.resourceschedule.backgroundTaskManager.d.ts** file.| +| backgroundTaskManager.EfficiencyResourcesRequest | field | isApply: bool | This API is changed in API version 9 and migrated to the **ohos.resourceschedule.backgroundTaskManager.d.ts** file.| +| backgroundTaskManager.EfficiencyResourcesRequest | field | resourceTypes: number | This API is changed in API version 9 and migrated to the **ohos.resourceschedule.backgroundTaskManager.d.ts** file.| + + +**Adaptation Guide**
+ +Import the **backgroundTaskManager** module. +``` +import bundle form '@ohos.resourceschedule.backgroundTaskManager' +``` +Exception handling also needs to be adapted. For details, see the [backgroundTaskManager API reference](../../../application-dev/reference/apis/js-apis-resourceschedule-backgroundTaskManager.md). + +## c2.resourceschedule.usageStatistics + +Rectified original APIs of **deviceUsageStatistics** of the resource scheduler subsystem. All APIs in API version 8 and earlier versions are deprecated, and original APIs in API version 9 are deleted. New APIs in API version 9 need to be used. The new APIs in API version 9 comply with the error code specifications. + +**Change Impacts** + +The application developed based on the SDK versions of OpenHarmony 3.2.8.2 and later needs to adapt the modules and APIs in API version 9 and their methods for returning API error information. Otherwise, the original service logic will be affected. + +**Key API/Component Changes** + +The following methods, attributes, enumerations, and constants are changed in API version 9 and later versions. The **@ohos.bundleState.d.ts** file is deprecated, the **@ohos.resourceschedule.usageStatistics.d.ts** file is added, and the class name is changed from **bundleState** to **usageStatistics**. + +| Class | API Type | Method/Attribute/Enumeration/Constant | Change Type | +| ----------------------------------------- | --------- | ------------------------------------------------------------ | ------------------------------------------------------------ | +| bundleState | method | function isIdleState(bundleName: string, callback: AsyncCallback): void; | Deprecated and migrated to **usageStatistics.isIdleState** | +| bundleState | method | function isIdleState(bundleName: string): Promise; | Deprecated and migrated to **usageStatistics.isIdleState** | +| bundleState | method | function queryAppUsagePriorityGroup(callback: AsyncCallback): void; | Deprecated and changed to **function queryAppGroup(callback: AsyncCallback): void;**| +| bundleState | method | function queryAppUsagePriorityGroup(): Promise; | Deprecated and changed to **function queryAppGroup(): Promise;** | +| bundleState | method | function queryBundleStateInfos(begin: number, end: number, callback: AsyncCallback): void; | Deprecated and changed to **function queryBundleStatsInfos(begin: number, end: number, callback: AsyncCallback): void;**| +| bundleState | method | function queryBundleStateInfos(begin: number, end: number): Promise; | Deprecated and changed to **function queryBundleStatsInfos(begin: number, end: number): Promise;**| +| bundleState | method | function queryBundleStateInfoByInterval(byInterval: IntervalType, begin: number, end: number): Promise>; | Deprecated and changed to **function queryBundleStatsInfoByInterval(byInterval: IntervalType, begin: number, end: number): Promise>;**| +| bundleState | method | function queryBundleStateInfoByInterval(byInterval: IntervalType, begin: number, end: number, callback: AsyncCallback>): void; | Deprecated and changed to **function queryBundleStatsInfoByInterval(byInterval: IntervalType, begin: number, end: number, callback: AsyncCallback>): void;**| +| bundleState | method | function queryBundleActiveStates(begin: number, end: number): Promise>; | Deprecated and changed to **function queryBundleEvents(begin: number, end: number): Promise>;**| +| bundleState | method | function queryBundleActiveStates(begin: number, end: number, callback: AsyncCallback>): void; | Deprecated and changed to **function queryBundleEvents(begin: number, end: number, callback: AsyncCallback>): void;**| +| bundleState | method | function queryCurrentBundleActiveStates(begin: number, end: number): Promise>; | Deprecated and changed to **function queryCurrentBundleEvents(begin: number, end: number): Promise>;**| +| bundleState | method | function queryCurrentBundleActiveStates(begin: number, end: number, callback: AsyncCallback>): void; | Deprecated and changed to **function queryCurrentBundleEvents(begin: number, end: number, callback: AsyncCallback>): void;**| +| bundleState | method | function getRecentlyUsedModules(maxNum?: number): Promise>; | Deprecated and changed to the following two APIs: **function QueryModuleUsageRecords(maxNum: number): Promise>;** and **function QueryModuleUsageRecords(): Promise>;**| +| bundleState | method | function getRecentlyUsedModules(maxNum?: number, callback: AsyncCallback>): void; | Deprecated and changed to the following two APIs: **function QueryModuleUsageRecords(maxNum: number, callback: AsyncCallback>): void;** and **function QueryModuleUsageRecords(callback: AsyncCallback>): void;**| +| bundleState | method | function queryAppUsagePriorityGroup(bundleName? : string): Promise; | Deprecated and changed to **function queryAppGroup(bundleName: string): Promise;**| +| bundleState | method | function queryAppUsagePriorityGroup(bundleName? : string, callback: AsyncCallback): void; | Deprecated and changed to **function queryAppGroup(bundleName: string, callback: AsyncCallback): void;**| +| bundleState | method | function setBundleGroup(bundleName: string, newGroup: GroupType, callback: AsyncCallback): void; | Deprecated and changed to **function setAppGroup(bundleName: string, newGroup: GroupType, callback: AsyncCallback): void;**| +| bundleState | method | function setBundleGroup(bundleName: string, newGroup: GroupType): Promise; | Deprecated and changed to **function setAppGroup(bundleName: string, newGroup: GroupType): Promise;**| +| bundleState | method | function registerGroupCallBack(callback: Callback, callback: AsyncCallback): void; | Deprecated and changed to **function registerAppGroupCallBack(callback: Callback, callback: AsyncCallback): void;**| +| bundleState | method | function registerGroupCallBack(callback: Callback): Promise; | Deprecated and changed to **function registerAppGroupCallBack(callback: Callback): Promise;**| +| bundleState | method | function unRegisterGroupCallBack(callback: AsyncCallback): void; | Deprecated and changed to **function unregisterAppGroupCallBack(): Promise;**| +| bundleState | method | function unRegisterGroupCallBack(): Promise; | Deprecated and changed to **function unregisterAppGroupCallBack(): Promise;**| +| bundleState | method | function queryBundleActiveEventStates(begin: number, end: number, callback: AsyncCallback>): void; | Changed to **function queryDeviceEventStats(begin: number, end: number, callback: AsyncCallback>): void;**| +| bundleState | method | function queryBundleActiveEventStates(begin: number, end: number): Promise>; | Changed in API version 9 and later versions to **function queryDeviceEventStats(begin: number, end: number): Promise>;**| +| bundleState | method | function queryAppNotificationNumber(begin: number, end: number, callback: AsyncCallback>): void; | Changed in API version 9 and later versions to **function queryNotificationEventStats(begin: number, end: number, callback: AsyncCallback>): void;**| +| bundleState | method | function queryAppNotificationNumber(begin: number, end: number): Promise>; | Changed in API version 9 and later versions to **function queryNotificationEventStats(begin: number, end: number): Promise>;**| +| bundleState.BundleActiveGroupCallbackInfo | interface | interface BundleActiveGroupCallbackInfo | Changed to **usageStatistics.AppGroupCallbackInfo** | +| bundleState.BundleActiveGroupCallbackInfo | field | bundleName: string | Changed and migrated to **usageStatistics.AppGroupCallbackInfo** | +| bundleState.BundleActiveGroupCallbackInfo | field | changeReason: number | Changed and migrated to **usageStatistics.AppGroupCallbackInfo** | +| bundleState.BundleActiveGroupCallbackInfo | field | userId: number | Changed and migrated to **usageStatistics.AppGroupCallbackInfo** | +| bundleState.BundleActiveGroupCallbackInfo | field | appUsageNewGroup: number | Deprecated and changed to **appNewGroup** | +| bundleState.BundleActiveGroupCallbackInfo | field | appUsageOldGroup: number | Deprecated and changed to **appOldGroup** | +| bundleState.BundleActiveEventState | interface | interface BundleActiveEventState | Deprecated and changed to **usageStatistics.DeviceEventStats** | +| bundleState.BundleActiveEventState | field | count: number | Changed and migrated to **usageStatistics.DeviceEventStats** | +| bundleState.BundleActiveEventState | field | eventId: number | Changed and migrated to **usageStatistics.DeviceEventStats** | +| bundleState.BundleActiveEventState | field | name: string | Changed and migrated to **usageStatistics.DeviceEventStats** | +| bundleState.BundleActiveModuleInfo | interface | interface BundleActiveModuleInfo | Changed in API version 9 and later versions to **usageStatistics.HapModuleInfo** | +| bundleState.BundleActiveModuleInfo | field | formRecords: Array | Changed to **formRecords: Array** | +| bundleState.BundleActiveModuleInfo | field | lastModuleUsedTime: number | Changed and migrated to **usageStatistics.HapModuleInfo** | +| bundleState.BundleActiveModuleInfo | field | launchedCount: number | Changed and migrated to **usageStatistics.HapModuleInfo** | +| bundleState.BundleActiveModuleInfo | field | abilityIconId?: number | Changed and migrated to **usageStatistics.HapModuleInfo** | +| bundleState.BundleActiveModuleInfo | field | abilityDescriptionId?: number | Changed and migrated to **usageStatistics.HapModuleInfo** | +| bundleState.BundleActiveModuleInfo | field | abilityLableId?: number | Changed and migrated to **usageStatistics.HapModuleInfo** | +| bundleState.BundleActiveModuleInfo | field | descriptionId?: number; | Changed and migrated to **usageStatistics.HapModuleInfo** | +| bundleState.BundleActiveModuleInfo | field | labelId?: number | Changed and migrated to **usageStatistics.HapModuleInfo** | +| bundleState.BundleActiveModuleInfo | field | appLabelId?: number | Changed and migrated to **usageStatistics.HapModuleInfo** | +| bundleState.BundleActiveModuleInfo | field | abilityName?: string | Changed and migrated to **usageStatistics.HapModuleInfo** | +| bundleState.BundleActiveModuleInfo | field | moduleName: string | Changed and migrated to **usageStatistics.HapModuleInfo** | +| bundleState.BundleActiveModuleInfo | field | bundleName: string | Changed and migrated to **usageStatistics.HapModuleInfo** | +| bundleState.BundleActiveModuleInfo | field | deviceId?: string | Changed and migrated to **usageStatistics.HapModuleInfo** | +| bundleState.GroupType | enum | enum GroupType | Changed and migrated to **usageStatistics.GroupType** | +| bundleState.GroupType | enum | ACTIVE_GROUP_ALIVE | Deprecated and changed to **ALIVE_GROUP** | +| bundleState.GroupType | enum | ACTIVE_GROUP_DAILY | Deprecated and changed to **DAILY_GROUP** | +| bundleState.GroupType | enum | ACTIVE_GROUP_FIXED | Deprecated and changed to **FIXED_GROUP** | +| bundleState.GroupType | enum | ACTIVE_GROUP_RARE | Deprecated and changed to **RARE_GROUP** | +| bundleState.GroupType | enum | ACTIVE_GROUP_LIMIT | Deprecated and changed to **LIMITED_GROUP** | +| bundleState.GroupType | enum | ACTIVE_GROUP_NEVER | Deprecated and changed to **NEVER_GROUP** | +| bundleState.IntervalType | enum | enum IntervalType | Deprecated and migrated to **usageStatistics.IntervalType** | +| bundleState.IntervalType | enum | BY_OPTIMIZED | Deprecated and migrated to **usageStatistics.IntervalType** | +| bundleState.IntervalType | enum | BY_DAILY | Deprecated and migrated to **usageStatistics.IntervalType** | +| bundleState.IntervalType | enum | BY_WEEKLY | Deprecated and migrated to **usageStatistics.IntervalType** | +| bundleState.IntervalType | enum | BY_MONTHLY | Deprecated and migrated to **usageStatistics.IntervalType** | +| bundleState.IntervalType | enum | BY_ANNUALLY | Deprecated and migrated to **usageStatistics.IntervalType** | +| bundleState.BundleActiveInfoResponse | interface | interface BundleActiveInfoResponse | Deprecated and changed to **usageStatistics.BundleStatsMap** | +| bundleState.BundleActiveState | interface | interface BundleActiveState | Deprecated and changed to **usageStatistics.BundleEvents** | +| bundleState.BundleActiveState | field | stateType?: number | Deprecated and changed to **eventId** | +| bundleState.BundleActiveState | field | stateOccurredTime?: number | Deprecated and changed to **eventOccurredTime** | +| bundleState.BundleActiveState | field | nameOfClass?: string | Deprecated and migrated to **usageStatistics.BundleEvents** | +| bundleState.BundleActiveState | field | indexOfLink?: string | Deprecated and migrated to **usageStatistics.BundleEvents** | +| bundleState.BundleActiveState | field | bundleName?: string | Deprecated and migrated to **usageStatistics.BundleEvents** | +| bundleState.BundleActiveState | field | appUsagePriorityGroup?: number | Deprecated and changed to **appGroup** | +| bundleState.BundleStateInfo | interface | interface BundleStateInfo | Deprecated and changed to **usageStatistics.BundleStatsInfo** | +| bundleState.BundleStateInfo | method | merge(toMerge: BundleStateInfo): void | Deprecated | +| bundleState.BundleStateInfo | field | infosEndTime?: number | Deprecated and migrated to **usageStatistics.BundleStatsInfo** | +| bundleState.BundleStateInfo | field | infosBeginTime?: number | Deprecated and migrated to **usageStatistics.BundleStatsInfo** | +| bundleState.BundleStateInfo | field | fgAbilityPrevAccessTime?: number | Deprecated and migrated to **usageStatistics.BundleStatsInfo** | +| bundleState.BundleStateInfo | field | fgAbilityAccessTotalTime?: number | Deprecated and migrated to **usageStatistics.BundleStatsInfo** | +| bundleState.BundleStateInfo | field | bundleName?: string | Deprecated and migrated to **usageStatistics.BundleStatsInfo** | +| bundleState.BundleStateInfo | field | abilitySeenTotalTime?: number | Deprecated and migrated to **usageStatistics.BundleStatsInfo** | +| bundleState.BundleStateInfo | field | abilityPrevSeenTime?: number | Deprecated and migrated to **usageStatistics.BundleStatsInfo** | +| bundleState.BundleStateInfo | field | abilityPrevAccessTime?: number | Deprecated and migrated to **usageStatistics.BundleStatsInfo** | +| bundleState.BundleStateInfo | field | abilityInFgTotalTime?: number | Deprecated and migrated to **usageStatistics.BundleStatsInfo** | +| bundleState.BundleStateInfo | field | id: number | Deprecated and migrated to **usageStatistics.BundleStatsInfo** | +| bundleState | namespace | declare namespace bundleState | Deprecated and changed to **usageStatistics**, and migrated to **ohos.resourceschedule.usageStatistics.d.ts**| + + +**Adaptation Guide**
+ +Import the **usageStatistics** module. +``` +import bundle form '@ohos.resourceschedule.usageStatistics' +``` +Exception handling also needs to be adapted. For details, see the [usageStatistics API reference](../../../application-dev/reference/apis/js-apis-resourceschedule-deviceUsageStatistics.md). + + +## c3.resourceschedule.workScheduler + +Rectified original APIs of **workScheduler** of the resource scheduler subsystem. The original APIs in API version 9 are changed to new APIs in API version 9. The new APIs in API version 9 comply with the error code specifications. + +**Change Impacts** + +The application developed based on the SDK versions of OpenHarmony 3.2.8.2 and later needs to adapt the modules and APIs in API version 9 and their methods for returning API error information. Otherwise, the original service logic will be affected. + +**Key API/Component Changes** + +The following methods, attributes, enumerations, and constants are changed in API version 9 and later versions. The **@ohos.workScheduler.d.ts** file is deprecated and related APIs are migrated to the newly added **@ohos.resourceschedule.workScheduler.d.ts** file. + +| Class| API Type| Declaration| Change Type| +| -- | -- | -- | -- | +| workScheduler | namespace | declare namespace workScheduler | Changed in API version 9 and migrated to the **ohos.resourceschedule.workScheduler.d.ts** file| +| workScheduler.WorkInfo | interface | export interface WorkInfo | Changed in API version 9 and migrated to the **ohos.resourceschedule.workScheduler.d.ts** file| +| workScheduler.WorkInfo | field | parameters?: {[key: string]: any} | Changed in API version 9 and migrated to the **ohos.resourceschedule.workScheduler.d.ts** file| +| workScheduler.WorkInfo | field | idleWaitTime?: number | Changed in API version 9 and migrated to the **ohos.resourceschedule.workScheduler.d.ts** file| +| workScheduler.WorkInfo | field | isDeepIdle?: boolean | Changed in API version 9 and migrated to the **ohos.resourceschedule.workScheduler.d.ts** file| +| workScheduler.WorkInfo | field | repeatCount?: number | Changed in API version 9 and migrated to the **ohos.resourceschedule.workScheduler.d.ts** file| +| workScheduler.WorkInfo | field | isRepeat?: boolean | Changed in API version 9 and migrated to the **ohos.resourceschedule.workScheduler.d.ts** file| +| workScheduler.WorkInfo | field | repeatCycleTime?: number | Changed in API version 9 and migrated to the **ohos.resourceschedule.workScheduler.d.ts** file| +| workScheduler.WorkInfo | field | storageRequest?: StorageRequest | Changed in API version 9 and migrated to the **ohos.resourceschedule.workScheduler.d.ts** file| +| workScheduler.WorkInfo | field | batteryStatus?: BatteryStatus | Changed in API version 9 and migrated to the **ohos.resourceschedule.workScheduler.d.ts** file| +| workScheduler.WorkInfo | field | batteryLevel?: number | Changed in API version 9 and migrated to the **ohos.resourceschedule.workScheduler.d.ts** file| +| workScheduler.WorkInfo | field | chargerType?: ChargingType | Changed in API version 9 and migrated to the **ohos.resourceschedule.workScheduler.d.ts** file| +| workScheduler.WorkInfo | field | isCharging?: boolean | Changed in API version 9 and migrated to the **ohos.resourceschedule.workScheduler.d.ts** file| +| workScheduler.WorkInfo | field | networkType?: NetworkType | Changed in API version 9 and migrated to the **ohos.resourceschedule.workScheduler.d.ts** file| +| workScheduler.WorkInfo | field | isPersisted?: boolean | Changed in API version 9 and migrated to the **ohos.resourceschedule.workScheduler.d.ts** file| +| workScheduler.WorkInfo | field | abilityName: string | Changed in API version 9 and migrated to the **ohos.resourceschedule.workScheduler.d.ts** file| +| workScheduler.WorkInfo | field | bundleName: string | Changed in API version 9 and migrated to the **ohos.resourceschedule.workScheduler.d.ts** file| +| workScheduler.WorkInfo | field | workId: number | Changed in API version 9 and migrated to the **ohos.resourceschedule.workScheduler.d.ts** file| +| workScheduler | method | function isLastWorkTimeOut(workId: number): Promise; | Changed in API version 9 and migrated to the **ohos.resourceschedule.workScheduler.d.ts** file| +| workScheduler | method | function isLastWorkTimeOut(workId: number, callback: AsyncCallback): boolean; | Changed in API version 9 and migrated to the **ohos.resourceschedule.workScheduler.d.ts** file| +| workScheduler | method | function stopAndClearWorks(): boolean; | Changed in API version 8 to **function stopAndClearWorks(): boolean;** and migrated to the **ohos.resourceschedule.workScheduler.d.ts** file| +| workScheduler | method | function obtainAllWorks(): Promise>; | Changed in API version 9 and migrated to the **ohos.resourceschedule.workScheduler.d.ts** file| +| workScheduler | method | function obtainAllWorks(callback: AsyncCallback): Array; | Changed in API version 9 and migrated to the **ohos.resourceschedule.workScheduler.d.ts** file| +| workScheduler | method | function getWorkStatus(workId: number): Promise; | Changed in API version 9 and migrated to the **ohos.resourceschedule.workScheduler.d.ts** file| +| workScheduler | method | function getWorkStatus(workId: number, callback: AsyncCallback): void; | Changed in API version 9 and migrated to the **ohos.resourceschedule.workScheduler.d.ts** file| +| workScheduler | method | function stopWork(work: WorkInfo, needCancel?: boolean): boolean; | Changed in API version 8 to **function stopWork(work: WorkInfo, needCancel?: boolean): void;** and migrated to the **ohos.resourceschedule.workScheduler.d.ts** file| +| workScheduler | method | function startWork(work: WorkInfo): boolean; | Changed in API version 9 to **function startWork(work: WorkInfo): void;** and migrated to the **ohos.resourceschedule.workScheduler.d.ts** file| +| workScheduler.NetworkType | enum | export enum NetworkType | Changed in API version 9 and migrated to the **ohos.resourceschedule.workScheduler.d.ts** file| +| workScheduler.NetworkType | enum | NETWORK_TYPE_ANY = 0 | Changed in API version 9 and migrated to the **ohos.resourceschedule.workScheduler.d.ts** file| +| workScheduler.NetworkType | enum | NETWORK_TYPE_MOBILE | Changed in API version 9 and migrated to the **ohos.resourceschedule.workScheduler.d.ts** file| +| workScheduler.NetworkType | enum | NETWORK_TYPE_WIFI | Changed in API version 9 and migrated to the **ohos.resourceschedule.workScheduler.d.ts** file| +| workScheduler.NetworkType | enum | NETWORK_TYPE_BLUETOOTH | Changed in API version 9 and migrated to the **ohos.resourceschedule.workScheduler.d.ts** file| +| workScheduler.NetworkType | enum | NETWORK_TYPE_WIFI_P2P | Changed in API version 9 and migrated to the **ohos.resourceschedule.workScheduler.d.ts** file| +| workScheduler.NetworkType | enum | NETWORK_TYPE_ETHERNET | Changed in API version 9 and migrated to the **ohos.resourceschedule.workScheduler.d.ts** file| +| workScheduler.ChargingType | enum | export enum ChargingType | Changed in API version 9 and migrated to the **ohos.resourceschedule.workScheduler.d.ts** file| +| workScheduler.ChargingType | enum | CHARGING_PLUGGED_ANY = 0 | Changed in API version 9 and migrated to the **ohos.resourceschedule.workScheduler.d.ts** file| +| workScheduler.ChargingType | enum | CHARGING_PLUGGED_AC | Changed in API version 9 and migrated to the **ohos.resourceschedule.workScheduler.d.ts** file| +| workScheduler.ChargingType | enum | CHARGING_PLUGGED_USB | Changed in API version 9 and migrated to the **ohos.resourceschedule.workScheduler.d.ts** file| +| workScheduler.ChargingType | enum | CHARGING_PLUGGED_WIRELESS | Changed in API version 9 and migrated to the **ohos.resourceschedule.workScheduler.d.ts** file| +| workScheduler.BatteryStatus | enum | export enum BatteryStatus | Changed in API version 9 and migrated to the **ohos.resourceschedule.workScheduler.d.ts** file| +| workScheduler.BatteryStatus | enum | BATTERY_STATUS_LOW = 0 | Changed in API version 9 and migrated to the **ohos.resourceschedule.workScheduler.d.ts** file| +| workScheduler.BatteryStatus | enum | BATTERY_STATUS_OKAY | Changed in API version 9 and migrated to the **ohos.resourceschedule.workScheduler.d.ts** file| +| workScheduler.BatteryStatus | enum | BATTERY_STATUS_LOW_OR_OKAY | Changed in API version 9 and migrated to the **ohos.resourceschedule.workScheduler.d.ts** file| +| workScheduler.StorageRequest | enum | export enum StorageRequest | Changed in API version 9 and migrated to the **ohos.resourceschedule.workScheduler.d.ts** file| +| workScheduler.BatteryStatus | enum | STORAGE_LEVEL_LOW = 0 | Changed in API version 9 and migrated to the **ohos.resourceschedule.workScheduler.d.ts** file| +| workScheduler.BatteryStatus | enum | STORAGE_LEVEL_OKAY | Changed in API version 9 and migrated to the **ohos.resourceschedule.workScheduler.d.ts** file| +| workScheduler.BatteryStatus | enum | STORAGE_LEVEL_LOW_OR_OKAY | Changed in API version 9 and migrated to the **ohos.resourceschedule.workScheduler.d.ts** file| + + +**Adaptation Guide**
+ +Import the **workScheduler** module. +``` +import bundle form '@ohos.resourceschedule.workScheduler' +``` +Exception handling also needs to be adapted. For details, see the [workScheduler API reference](../../../application-dev/reference/apis/js-apis-resourceschedule-workScheduler.md). + + +## c4.resourceschedule.reminderAgent + +Rectified original APIs of **reminderAgent** of the resource scheduler subsystem. All APIs in API version 8 and earlier versions are deprecated, and original APIs in API version 9 are deleted. New APIs in API version 9 need to be used. The new APIs in API version 9 comply with the error code specifications. + +**Change Impacts** + +The application developed based on the SDK versions of OpenHarmony 3.2.8.2 and later needs to adapt the modules and APIs in API version 9 and their methods for returning API error information. Otherwise, the original service logic will be affected. + +**Key API/Component Changes** + +The following methods, attributes, enumerations, and constants are changed in API version 9 and later versions. The **@ohos.reminderAgent.d.ts** file is deprecated, the **@ohos.reminderAgentManager.d.ts** file is added, and the class name is changed from **reminderAgent** to **reminderAgentManager**. + +| Class | API Type | Method/Attribute/Enumeration/Constant | Change Type | +| --------------------- | ----------- | ------------------------------------------------------------ | ------------------------------------------------------------ | +| reminderAgent | method | publishReminder(reminderReq: ReminderRequest, callback: AsyncCallback): void; | Deprecated and migrated to **reminderAgentManager**| +| reminderAgent | method | publishReminder(reminderReq: ReminderRequest): Promise; | Deprecated and migrated to **reminderAgentManager**| +| reminderAgent | method | cancelReminder(reminderId: number, callback: AsyncCallback): void; | Deprecated and migrated to **reminderAgentManager**| +| reminderAgent | method | cancelReminder(reminderId: number): Promise; | Deprecated and migrated to **reminderAgentManager**| +| reminderAgent | method | getValidReminders(callback: AsyncCallback>): void; | Deprecated and migrated to **reminderAgentManager**| +| reminderAgent | method | getValidReminders(): Promise>; | Deprecated and migrated to **reminderAgentManager**| +| reminderAgent | method | cancelAllReminders(callback: AsyncCallback): void; | Deprecated and migrated to **reminderAgentManager**| +| reminderAgent | method | cancelAllReminders(): Promise; | Deprecated and migrated to **reminderAgentManager**| +| reminderAgent | method | addNotificationSlot(slot: NotificationSlot, callback: AsyncCallback): void; | Deprecated and migrated to **reminderAgentManager**| +| reminderAgent | method | addNotificationSlot(slot: NotificationSlot): Promise; | Deprecated and migrated to **reminderAgentManager**| +| reminderAgent | method | removeNotificationSlot(slotType: notification.SlotType, callback: AsyncCallback): void; | Deprecated and migrated to **reminderAgentManager**| +| reminderAgent | method | removeNotificationSlot(slotType: notification.SlotType): Promise; | Deprecated and migrated to **reminderAgentManager**| +| reminderAgent.ActionButtonType | enum | ACTION_BUTTON_TYPE_CLOSE | Deprecated and migrated to **reminderAgentManager.ActionButtonType**| +| reminderAgent.ActionButtonType | enum | ACTION_BUTTON_TYPE_SNOOZE | Deprecated and migrated to **reminderAgentManager.ActionButtonType**| +| reminderAgent.ReminderType | enum | REMINDER_TYPE_TIMER | Deprecated and migrated to **reminderAgentManager.ReminderType**| +| reminderAgent.ReminderType | enum | REMINDER_TYPE_CALENDAR | Deprecated and migrated to **reminderAgentManager.ReminderType**| +| reminderAgent.ReminderType | enum | REMINDER_TYPE_CALENDAR | Deprecated and migrated to **reminderAgentManager.ReminderType**| +| reminderAgent.ActionButton | field | title:string | Deprecated and migrated to **reminderAgentManager.ActionButton**| +| reminderAgent.ActionButton | field | type:ActionButtonType | Deprecated and migrated to **reminderAgentManager.ActionButton**| +| reminderAgent.WantAgent | field | pkgName:string | Deprecated and migrated to **reminderAgentManager.WantAgent**| +| reminderAgent.WantAgent | field | abilityName:string | Deprecated and migrated to **reminderAgentManager.WantAgent**| +| reminderAgent.MaxScreenWantAgent | field | pkgName:string | Deprecated and migrated to **reminderAgentManager.MaxScreenWantAgent**| +| reminderAgent.MaxScreenWantAgent | field | abilityName:string | Deprecated and migrated to **reminderAgentManager.MaxScreenWantAgent**| +| reminderAgent.ReminderRequest | field | reminderType:ReminderType | Deprecated and migrated to **reminderAgentManager.ReminderRequest**| +| reminderAgent.ReminderRequest | field | actionButton?:ActionButton | Deprecated and migrated to **reminderAgentManager.ReminderRequest**| +| reminderAgent.ReminderRequest | field | wantAgent?:WantAgent | Deprecated and migrated to **reminderAgentManager.ReminderRequest**| +| reminderAgent.ReminderRequest | field | maxScreenWantAgent?:MaxScreenWantAgent | Deprecated and migrated to **reminderAgentManager.ReminderRequest**| +| reminderAgent.ReminderRequest | field | ringDuration?:number | Deprecated and migrated to **reminderAgentManager.ReminderRequest**| +| reminderAgent.ReminderRequest | field | snoozeTimes?:number | Deprecated and migrated to **reminderAgentManager.ReminderRequest**| +| reminderAgent.ReminderRequest | field | timeInterval?:number | Deprecated and migrated to **reminderAgentManager.ReminderRequest**| +| reminderAgent.ReminderRequest | field | title?:string | Deprecated and migrated to **reminderAgentManager.ReminderRequest**| +| reminderAgent.ReminderRequest | field | content?:string | Deprecated and migrated to **reminderAgentManager.ReminderRequest**| +| reminderAgent.ReminderRequest | field | expiredContent?:string | Deprecated and migrated to **reminderAgentManager.ReminderRequest**| +| reminderAgent.ReminderRequest | field | snoozeContent?:string | Deprecated and migrated to **reminderAgentManager.ReminderRequest**| +| reminderAgent.ReminderRequest | field | notificationId?:number | Deprecated and migrated to **reminderAgentManager.ReminderRequest**| +| reminderAgent.ReminderRequest | field | slotType?: notification.SlotType | Deprecated and migrated to **reminderAgentManager.ReminderRequest**| +| reminderAgent.ReminderRequestCalendar | field | dateTime:LocalDateTime | Deprecated and migrated to **reminderAgentManager.ReminderRequestCalendar**| +| reminderAgent.ReminderRequestCalendar | field | repeatMonths?:Array | Deprecated and migrated to **reminderAgentManager.ReminderRequestCalendar**| +| reminderAgent.ReminderRequestCalendar | field | repeatDays?:Array | Deprecated and migrated to **reminderAgentManager.ReminderRequestCalendar**| +| reminderAgent.ReminderRequestAlarm | field | hour:number | Deprecated and migrated to **reminderAgentManager.ReminderRequestAlarm**| +| reminderAgent.ReminderRequestAlarm | field | minute:number | Deprecated and migrated to **reminderAgentManager.ReminderRequestAlarm**| +| reminderAgent.ReminderRequestAlarm | field | daysOfWeek?:Array | Deprecated and migrated to **reminderAgentManager.ReminderRequestAlarm**| +| reminderAgent.ReminderRequestTimer | field | triggerTimeInSeconds:number | Deprecated and migrated to **reminderAgentManager.ReminderRequestTimer**| +| reminderAgent.LocalDateTime | field | year:number | Deprecated and migrated to **reminderAgentManager.LocalDateTime**| +| reminderAgent.LocalDateTime | field | month:number | Deprecated and migrated to **reminderAgentManager.LocalDateTime**| +| reminderAgent.LocalDateTime | field | day:number | Deprecated and migrated to **reminderAgentManager.LocalDateTime**| +| reminderAgent.LocalDateTime | field | hour:number | Deprecated and migrated to **reminderAgentManager.LocalDateTime**| +| reminderAgent.LocalDateTime | field | minute:number | Deprecated and migrated to **reminderAgentManager.LocalDateTime**| +| reminderAgent.LocalDateTime | field | second?:number | Deprecated and migrated to **reminderAgentManager.LocalDateTime**| + + +**Adaptation Guide**
+ +Import the **reminderAgentManager** module. +``` +import bundle form '@ohos.reminderAgentManager' +``` +Exception handling also needs to be adapted. For details, see the [reminderAgentManager API reference](../../../application-dev/reference/apis/js-apis-reminderAgentManager.md). diff --git a/en/release-notes/changelogs/OpenHarmony_4.0.1.5/changelogs-geoLocationManager.md b/en/release-notes/changelogs/OpenHarmony_4.0.1.5/changelogs-geoLocationManager.md new file mode 100644 index 0000000000000000000000000000000000000000..610a18c426c33ef08212dfa28070f9053bd4d44e --- /dev/null +++ b/en/release-notes/changelogs/OpenHarmony_4.0.1.5/changelogs-geoLocationManager.md @@ -0,0 +1,18 @@ +# Location Subsystem ChangeLog + +## cl.location.1 Deletion of the geoLocationManager.requestEnableLocation API in API Version 9 + +When the location function is disabled, your application can call the **geoLocationManager.requestEnableLocation** API to request the user to enable the location function. However, this API is seldom used, and user experience for this API is not very good because the user is not notified of the scenario in which your application uses the location information. + +Therefore, your app shows a popup, asking the user to go to the settings page and enable the location function. In addition, the popup clearly states the scenarios in which the location information will be used, improving user experience. + +**Change Impacts** + +Your application cannot use the **geoLocationManager.requestEnableLocation** API in API version 9 to request the user to enable the location function. Instead, you need to implement a popup asking the user to enable the location function for your application. + +**Key API/Component Changes** + +| Class | API Type| Declaration | Change Type | +| ------------------ | -------- | ------------------------------------------------------------ | ------------------ | +| geoLocationManager | method | function requestEnableLocation(callback: AsyncCallback<boolean>): void; | Deleted from API version 9| +| geoLocationManager | method | function requestEnableLocation(): Promise<boolean>; | Deleted from API version 9| diff --git a/en/release-notes/changelogs/OpenHarmony_4.0.1.5/changelogs-wifiManager.md b/en/release-notes/changelogs/OpenHarmony_4.0.1.5/changelogs-wifiManager.md new file mode 100644 index 0000000000000000000000000000000000000000..f424d69976a74e00b8aab625c5d24b8dfc72c99a --- /dev/null +++ b/en/release-notes/changelogs/OpenHarmony_4.0.1.5/changelogs-wifiManager.md @@ -0,0 +1,62 @@ +# Wi-Fi Subsystem ChangeLog + +## cl.location.1 Location Service Permission Change + +From API version 9, the **ohos.permission.APPROXIMATELY_LOCATION** permission is added for obtaining the approximate location. + +If you use API version 9 or later, you need to apply for both the **ohos.permission.LOCATION** and **ohos.permission.APPROXIMATELY_LOCATION** permissions. Applying for only the **ohos.permission.LOCATION** permission will fail. + +**Change Impacts** + +Applications using API versions earlier than 9 are not affected. For an application using API version 9 or later, the method for applying for the location permission is changed. The details are as follows: + +Before using basic location capabilities, check whether your application has been granted the permission to access the device location information. If not, your application needs to obtain the permission from the user as described below. + +The system provides the following location permissions: + +- ohos.permission.LOCATION + +- ohos.permission.APPROXIMATELY_LOCATION + +- ohos.permission.LOCATION_IN_BACKGROUND + +If your application needs to access the device location information, it must first apply for required permissions. Specifically speaking: + +API versions earlier than 9: Apply for **ohos.permission.LOCATION**. + +API version 9 and later: Apply for **ohos.permission.APPROXIMATELY_LOCATION**, or apply for **ohos.permission.APPROXIMATELY_LOCATION** and **ohos.permission.LOCATION**. Note that **ohos.permission.LOCATION** cannot be applied for separately. + +| API Version| Location Permission | Permission Application Result| Location Accuracy | +| ------------- | ------------------------------------------------------------ | -------- | -------------------------------- | +| Earlier than 9 | ohos.permission.LOCATION | Success | Location accurate to meters| +| 9 and later | ohos.permission.LOCATION | Failure | No location obtained | +| 9 and later | ohos.permission.APPROXIMATELY_LOCATION | Success | Location accurate to 5 kilometers | +| 9 and later | ohos.permission.APPROXIMATELY_LOCATION and ohos.permission.LOCATION| Success | Location accurate to meters| + +If your application needs to access the device location information when running in the background, it must be configured to be able to run in the background and be granted the **ohos.permission.LOCATION_IN_BACKGROUND** permission. In this way, the system continues to report device location information after your application moves to the background. + +You can declare the required permissions in your application's configuration file. For details, see the [permission application guide](../../../application-dev/security/accesstoken-guidelines.md). + +**Key API/Component Changes** + +| Class | API Type| Declaration | Change Type | +| ----------- | -------- | ------------------------------------------------------------ | ------------------------------------------------------------ | +| wifiManager | method | function scan(): void; | The permission is changed to **ohos.permission.SET_WIFI_INFO**, **ohos.permission.LOCATION**, and **ohos.permission.APPROXIMATELY_LOCATION**.| +| wifiManager | method | function getScanResults(): Promise<Array<WifiScanInfo>>; | The permission is changed to **ohos.permission.GET_WIFI_INFO** and **ohos.permission.GET_WIFI_PEERS_MAC** or **ohos.permission.GET_WIFI_INFO**, **ohos.permission.LOCATION**, and **ohos.permission.APPROXIMATELY_LOCATION**.| +| wifiManager | method | function getScanResults(callback: AsyncCallback<Array<WifiScanInfo>>): void; | The permission is changed to **ohos.permission.GET_WIFI_INFO** and **ohos.permission.GET_WIFI_PEERS_MAC** or **ohos.permission.GET_WIFI_INFO**, **ohos.permission.LOCATION**, and **ohos.permission.APPROXIMATELY_LOCATION**.| +| wifiManager | method | function getScanResultsSync(): Array<WifiScanInfo>; | The permission is changed to **ohos.permission.GET_WIFI_INFO** and **ohos.permission.GET_WIFI_PEERS_MAC** or **ohos.permission.GET_WIFI_INFO**, **ohos.permission.LOCATION**, and **ohos.permission.APPROXIMATELY_LOCATION**.| +| wifiManager | method | function getCandidateConfigs(): Array<WifiDeviceConfig>; | The permission is changed to **ohos.permission.GET_WIFI_INFO**, **ohos.permission.LOCATION**, and **ohos.permission.APPROXIMATELY_LOCATION**.| +| wifiManager | method | function getDeviceConfigs(): Array<WifiDeviceConfig>; | The permission is changed to **ohos.permission.GET_WIFI_INFO**, **ohos.permission.LOCATION**, **ohos.permission.APPROXIMATELY_LOCATION**, and **ohos.permission.GET_WIFI_CONFIG**.| +| wifiManager | method | function getStations(): Array<StationInfo>; | The permission is changed to **ohos.permission.GET_WIFI_INFO**, **ohos.permission.LOCATION**, **ohos.permission.APPROXIMATELY_LOCATION**, and **ohos.permission.MANAGE_WIFI_HOTSPOT**.| +| wifiManager | method | function getCurrentGroup(): Promise<WifiP2pGroupInfo>; | The permission is changed to **ohos.permission.GET_WIFI_INFO**, **ohos.permission.LOCATION**, and **ohos.permission.APPROXIMATELY_LOCATION**.| +| wifiManager | method | function getCurrentGroup(callback: AsyncCallback<WifiP2pGroupInfo>): void; | The permission is changed to **ohos.permission.GET_WIFI_INFO**, **ohos.permission.LOCATION**, and **ohos.permission.APPROXIMATELY_LOCATION**.| +| wifiManager | method | function getP2pPeerDevices(): Promise<WifiP2pDevice[]>; | The permission is changed to **ohos.permission.GET_WIFI_INFO**, **ohos.permission.LOCATION**, and **ohos.permission.APPROXIMATELY_LOCATION**.| +| wifiManager | method | function getP2pPeerDevices(callback: AsyncCallback<WifiP2pDevice[]>): void; | The permission is changed to **ohos.permission.GET_WIFI_INFO**, **ohos.permission.LOCATION**, and **ohos.permission.APPROXIMATELY_LOCATION**.| +| wifiManager | method | function p2pConnect(config: WifiP2PConfig): void; | The permission is changed to **ohos.permission.GET_WIFI_INFO**, **ohos.permission.LOCATION**, and **ohos.permission.APPROXIMATELY_LOCATION**.| +| wifiManager | method | function startDiscoverDevices(): void; | The permission is changed to **ohos.permission.GET_WIFI_INFO**, **ohos.permission.LOCATION**, and **ohos.permission.APPROXIMATELY_LOCATION**.| +| wifiManager | method | function getP2pGroups(): Promise<Array<WifiP2pGroupInfo>>; | The permission is changed to **ohos.permission.GET_WIFI_INFO**, **ohos.permission.LOCATION**, and **ohos.permission.APPROXIMATELY_LOCATION**.| +| wifiManager | method | function getP2pGroups(callback: AsyncCallback<Array<WifiP2pGroupInfo>>): void; | The permission is changed to **ohos.permission.GET_WIFI_INFO**, **ohos.permission.LOCATION**, and **ohos.permission.APPROXIMATELY_LOCATION**.| +| wifiManager | method | function on(type: "p2pDeviceChange", callback: Callback<WifiP2pDevice>): void; | The permission is changed to **ohos.permission.GET_WIFI_INFO**, **ohos.permission.LOCATION**, and **ohos.permission.APPROXIMATELY_LOCATION**.| +| wifiManager | method | function off(type: "p2pDeviceChange", callback?: Callback<WifiP2pDevice>): void; | The permission is changed to **ohos.permission.LOCATION** and **ohos.permission.APPROXIMATELY_LOCATION**.| +| wifiManager | method | function on(type: "p2pPeerDeviceChange", callback: Callback<WifiP2pDevice[]>): void; | The permission is changed to **ohos.permission.GET_WIFI_INFO**, **ohos.permission.LOCATION**, and **ohos.permission.APPROXIMATELY_LOCATION**.| +| wifiManager | method | function off(type: "p2pPeerDeviceChange", callback?: Callback<WifiP2pDevice[]>): void; | The permission is changed to **ohos.permission.LOCATION** and **ohos.permission.APPROXIMATELY_LOCATION**.| diff --git a/en/release-notes/changelogs/OpenHarmony_4.0.2.1/changelog-web.md b/en/release-notes/changelogs/OpenHarmony_4.0.2.1/changelog-web.md new file mode 100644 index 0000000000000000000000000000000000000000..254050b5104e769b4b4e44d6bbee8d13876d37db --- /dev/null +++ b/en/release-notes/changelogs/OpenHarmony_4.0.2.1/changelog-web.md @@ -0,0 +1,65 @@ +# Web Subsystem ChangeLog + +Compared with earlier versions, OpenHarmony 4.0.2.1 has the following API changes in its Web subsystem: + +## cl.web.1 Parameter Type Change of postMessageEvent + +The **postMessageEvent** API supported only the string type. In OpenHarmony 4.0.2.1 and later versions, it also supports the ArrayBuffer type. + +**Change Impacts** + +The API change is forward compatible. Applications developed based on earlier versions can still use the API, and the original functions are not affected. + +**Key API/Component Changes** + +- Involved APIs + + postMessageEvent(message: string): void + +- Before change + + ```ts + postMessageEvent(message: string): void + ``` + +- After change + + ```ts + type WebMessage = ArrayBuffer | string + postMessageEvent(message: WebMessage): void + ``` + +**Adaptation Guide** + +The API change is forward compatible. Applications developed based on earlier versions can still use the API, and the original functions are not affected. + +## cl.web.2 Parameter Type Change of onMessageEvent + +The **onMessageEvent** API supported only the string type. In OpenHarmony 4.0.2.1 and later versions, it also supports the ArrayBuffer type. + +**Change Impacts** + +The API change is forward compatible. Applications developed based on earlier versions can still use the API. With the corresponding logic handling added, the original functions are not affected. + +**Key API/Component Changes** + +- Involved APIs + + onMessageEvent(callback: (result: string) => void): void + +- Before change + + ```ts + onMessageEvent(callback: (result: string) => void): void + ``` + +- After change + + ```ts + type WebMessage = ArrayBuffer | string + onMessageEvent(callback: (result: WebMessage) => void): void + ``` + +**Adaptation Guide** + +The API change is forward compatible. Applications developed based on earlier versions can still use the API. With the corresponding logic handling added, the original functions are not affected. diff --git a/en/release-notes/changelogs/OpenHarmony_4.0.2.1/changelogs-ability.md b/en/release-notes/changelogs/OpenHarmony_4.0.2.1/changelogs-ability.md new file mode 100644 index 0000000000000000000000000000000000000000..773d4439728d3c25369d47e384120d7beb543618 --- /dev/null +++ b/en/release-notes/changelogs/OpenHarmony_4.0.2.1/changelogs-ability.md @@ -0,0 +1,140 @@ +# Ability Subsystem ChangeLog + +## cl.ability.1 System API Usage Rule Change + +System application verification is not performed for system APIs provided by the ability when they are called. The APIs can be used by a third-party application using the full SDK, which brings security risks. Therefore, application identity verification is added to OpenHarmony 4.0.2.1 and later versions. + +**Change Impacts** + +System APIs are available to only system applications. When a third-party application tries to use a system API, the **202** error will be returned via either an exception or asynchronous callback. + +**Key API/Component Changes** + +Below are the system APIs. + +| Module | API | Error Code Return Mode| +| -------------------------------------- | ------------------------------------------------------------ | -------------- | +| @ohos.app.ability.abilityManager.d.ts | updateConfiguration(config: Configuration, callback: AsyncCallback): void | Asynchronous callback | +| @ohos.app.ability.abilityManager.d.ts | updateConfiguration(config: Configuration): Promise | Asynchronous callback | +| @ohos.app.ability.abilityManager.d.ts | getAbilityRunningInfos(): Promise> | Asynchronous callback | +| @ohos.app.ability.abilityManager.d.ts | getAbilityRunningInfos(callback: AsyncCallback>): void | Asynchronous callback | +| @ohos.app.ability.abilityManager.d.ts | getExtensionRunningInfos(upperLimit: number): Promise> | Asynchronous callback | +| @ohos.app.ability.abilityManager.d.ts | getExtensionRunningInfos(upperLimit: number, callback: AsyncCallback>): void | Asynchronous callback | +| @ohos.app.ability.abilityManager.d.ts | getTopAbility(): Promise | Exception | +| @ohos.app.ability.abilityManager.d.ts | getTopAbility(callback: AsyncCallback): void | Exception | +| @ohos.app.ability.appManager.d.ts | on(type: "applicationState", observer: ApplicationStateObserver): number | Asynchronous callback | +| @ohos.app.ability.appManager.d.ts | on(type: "applicationState", observer: ApplicationStateObserver, bundleNameList: Array): number | Asynchronous callback | +| @ohos.app.ability.appManager.d.ts | off(type: "applicationState", observerId: number, callback: AsyncCallback): void | Asynchronous callback | +| @ohos.app.ability.appManager.d.ts | off(type: "applicationState", observerId: number): Promise | Asynchronous callback | +| @ohos.app.ability.appManager.d.ts | getForegroundApplications(callback: AsyncCallback>): void | Asynchronous callback | +| @ohos.app.ability.appManager.d.ts | getForegroundApplications(): Promise> | Asynchronous callback | +| @ohos.app.ability.appManager.d.ts | killProcessWithAccount(bundleName: string, accountId: number): Promise | Asynchronous callback | +| @ohos.app.ability.appManager.d.ts | killProcessWithAccount(bundleName: string, accountId: number, callback: AsyncCallback): void | Asynchronous callback | +| @ohos.app.ability.appManager.d.ts | killProcessesByBundleName(bundleName: string): Promise | Asynchronous callback | +| @ohos.app.ability.appManager.d.ts | killProcessesByBundleName(bundleName: string, callback: AsyncCallback) | Asynchronous callback | +| @ohos.app.ability.appManager.d.ts | clearUpApplicationData(bundleName: string): Promise | Asynchronous callback | +| @ohos.app.ability.appManager.d.ts | clearUpApplicationData(bundleName: string, callback: AsyncCallback) | Asynchronous callback | +| @ohos.app.ability.missionManager.d.ts | on(type: "mission", listener: MissionListener): number | Asynchronous callback | +| @ohos.app.ability.missionManager.d.ts | off(type: "mission", listenerId: number, callback: AsyncCallback): void | Asynchronous callback | +| @ohos.app.ability.missionManager.d.ts | off(type: "mission", listenerId: number): Promise | Asynchronous callback | +| @ohos.app.ability.missionManager.d.ts | getMissionInfo(deviceId: string, missionId: number, callback: AsyncCallback): void | Asynchronous callback | +| @ohos.app.ability.missionManager.d.ts | getMissionInfo(deviceId: string, missionId: number): Promise | Asynchronous callback | +| @ohos.app.ability.missionManager.d.ts | getMissionInfos(deviceId: string, numMax: number, callback: AsyncCallback>): void | Asynchronous callback | +| @ohos.app.ability.missionManager.d.ts | getMissionInfos(deviceId: string, numMax: number): Promise> | Asynchronous callback | +| @ohos.app.ability.missionManager.d.ts | getMissionSnapShot(deviceId: string, missionId: number, callback: AsyncCallback): void | Asynchronous callback | +| @ohos.app.ability.missionManager.d.ts | getMissionSnapShot(deviceId: string, missionId: number): Promise | Asynchronous callback | +| @ohos.app.ability.missionManager.d.ts | getLowResolutionMissionSnapShot(deviceId: string, missionId: number, callback: AsyncCallback): void | Asynchronous callback | +| @ohos.app.ability.missionManager.d.ts | getLowResolutionMissionSnapShot(deviceId: string, missionId: number): Promise | Asynchronous callback | +| @ohos.app.ability.missionManager.d.ts | lockMission(missionId: number, callback: AsyncCallback): void | Asynchronous callback | +| @ohos.app.ability.missionManager.d.ts | lockMission(missionId: number): Promise | Asynchronous callback | +| @ohos.app.ability.missionManager.d.ts | unlockMission(missionId: number, callback: AsyncCallback): void | Asynchronous callback | +| @ohos.app.ability.missionManager.d.ts | unlockMission(missionId: number): Promise | Asynchronous callback | +| @ohos.app.ability.missionManager.d.ts | clearMission(missionId: number, callback: AsyncCallback): void | Asynchronous callback | +| @ohos.app.ability.missionManager.d.ts | clearMission(missionId: number): Promise | Asynchronous callback | +| @ohos.app.ability.missionManager.d.ts | clearAllMissions(callback: AsyncCallback): void | Asynchronous callback | +| @ohos.app.ability.missionManager.d.ts | clearAllMissions(): Promise | Asynchronous callback | +| @ohos.app.ability.missionManager.d.ts | moveMissionToFront(missionId: number, callback: AsyncCallback): void | Asynchronous callback | +| @ohos.app.ability.missionManager.d.ts | moveMissionToFront(missionId: number, options: StartOptions, callback: AsyncCallback): void | Asynchronous callback | +| @ohos.app.ability.missionManager.d.ts | moveMissionToFront(missionId: number, options?: StartOptions): Promise | Asynchronous callback | +| @ohos.app.ability.quickFixManager.d.ts | applyQuickFix(hapModuleQuickFixFiles: Array, callback: AsyncCallback): void | Asynchronous callback | +| @ohos.app.ability.quickFixManager.d.ts | applyQuickFix(hapModuleQuickFixFiles: Array): Promise | Asynchronous callback | +| @ohos.app.ability.quickFixManager.d.ts | getApplicationQuickFixInfo(bundleName: string, callback: AsyncCallback): void | Asynchronous callback | +| @ohos.app.ability.quickFixManager.d.ts | getApplicationQuickFixInfo(bundleName: string): Promise | Asynchronous callback | +| @ohos.app.ability.wantAgent.d.ts | getWant(agent: WantAgent, callback: AsyncCallback): void | Asynchronous callback | +| @ohos.app.ability.wantAgent.d.ts | getWant(agent: WantAgent): Promise | Asynchronous callback | +| @ohos.app.form.formHost.d.ts | deleteForm(formId: string, callback: AsyncCallback): void | Asynchronous callback | +| @ohos.app.form.formHost.d.ts | deleteForm(formId: string): Promise | Asynchronous callback | +| @ohos.app.form.formHost.d.ts | releaseForm(formId: string, callback: AsyncCallback): void | Asynchronous callback | +| @ohos.app.form.formHost.d.ts | releaseForm(formId: string, isReleaseCache: boolean, callback: AsyncCallback): void | Asynchronous callback | +| @ohos.app.form.formHost.d.ts | releaseForm(formId: string, isReleaseCache?: boolean): Promise | Asynchronous callback | +| @ohos.app.form.formHost.d.ts | requestForm(formId: string, callback: AsyncCallback): void | Asynchronous callback | +| @ohos.app.form.formHost.d.ts | requestForm(formId: string): Promise | Asynchronous callback | +| @ohos.app.form.formHost.d.ts | castToNormalForm(formId: string, callback: AsyncCallback): void | Asynchronous callback | +| @ohos.app.form.formHost.d.ts | castToNormalForm(formId: string): Promise | Asynchronous callback | +| @ohos.app.form.formHost.d.ts | notifyVisibleForms(formIds: Array, callback: AsyncCallback): void | Asynchronous callback | +| @ohos.app.form.formHost.d.ts | notifyVisibleForms(formIds: Array): Promise | Asynchronous callback | +| @ohos.app.form.formHost.d.ts | notifyInvisibleForms(formIds: Array, callback: AsyncCallback): void | Asynchronous callback | +| @ohos.app.form.formHost.d.ts | notifyInvisibleForms(formIds: Array): Promise | Asynchronous callback | +| @ohos.app.form.formHost.d.ts | enableFormsUpdate(formIds: Array, callback: AsyncCallback): void | Asynchronous callback | +| @ohos.app.form.formHost.d.ts | enableFormsUpdate(formIds: Array): Promise | Asynchronous callback | +| @ohos.app.form.formHost.d.ts | disableFormsUpdate(formIds: Array, callback: AsyncCallback): void | Asynchronous callback | +| @ohos.app.form.formHost.d.ts | disableFormsUpdate(formIds: Array): Promise | Asynchronous callback | +| @ohos.app.form.formHost.d.ts | isSystemReady(callback: AsyncCallback): void | Exception | +| @ohos.app.form.formHost.d.ts | isSystemReady(): Promise | Exception | +| @ohos.app.form.formHost.d.ts | getAllFormsInfo(callback: AsyncCallback>): void | Asynchronous callback | +| @ohos.app.form.formHost.d.ts | getAllFormsInfo(): Promise> | Asynchronous callback | +| @ohos.app.form.formHost.d.ts | getFormsInfo(bundleName: string, callback: AsyncCallback>): void | Asynchronous callback | +| @ohos.app.form.formHost.d.ts | getFormsInfo(bundleName: string, moduleName: string, callback: AsyncCallback>): void | Asynchronous callback | +| @ohos.app.form.formHost.d.ts | getFormsInfo(bundleName: string, moduleName?: string): Promise> | Asynchronous callback | +| @ohos.app.form.formHost.d.ts | deleteInvalidForms(formIds: Array, callback: AsyncCallback): void | Asynchronous callback | +| @ohos.app.form.formHost.d.ts | deleteInvalidForms(formIds: Array): Promise | Asynchronous callback | +| @ohos.app.form.formHost.d.ts | acquireFormState(want: Want, callback: AsyncCallback): void | Asynchronous callback | +| @ohos.app.form.formHost.d.ts | acquireFormState(want: Want): Promise | Asynchronous callback | +| @ohos.app.form.formHost.d.ts | on(type: "formUninstall", callback: Callback): void | Exception | +| @ohos.app.form.formHost.d.ts | off(type: "formUninstall", callback?: Callback): void | Exception | +| @ohos.app.form.formHost.d.ts | notifyFormsVisible(formIds: Array, isVisible: boolean, callback: AsyncCallback): void | Asynchronous callback | +| @ohos.app.form.formHost.d.ts | notifyFormsVisible(formIds: Array, isVisible: boolean): Promise | Asynchronous callback | +| @ohos.app.form.formHost.d.ts | notifyFormsEnableUpdate(formIds: Array, isEnableUpdate: boolean, callback: AsyncCallback): void | Asynchronous callback | +| @ohos.app.form.formHost.d.ts | notifyFormsEnableUpdate(formIds: Array, isEnableUpdate: boolean): Promise | Asynchronous callback | +| @ohos.app.form.formHost.d.ts | shareForm(formId: string, deviceId: string, callback: AsyncCallback): void | Asynchronous callback | +| @ohos.app.form.formHost.d.ts | shareForm(formId: string, deviceId: string): Promise | Asynchronous callback | +| @ohos.app.form.formHost.d.ts | notifyFormsPrivacyProtected(formIds: Array, isProtected: boolean, callback: AsyncCallback): void | Asynchronous callback | +| @ohos.app.form.formHost.d.ts | notifyFormsPrivacyProtected(formIds: Array, isProtected: boolean): Promise | Asynchronous callback | +| @ohos.app.form.formProvider.d.ts | requestPublishForm(want: Want, formBindingData: formBindingData.FormBindingData, callback: AsyncCallback): void | Asynchronous callback | +| @ohos.app.form.formProvider.d.ts | requestPublishForm(want: Want, callback: AsyncCallback): void | Asynchronous callback | +| @ohos.app.form.formProvider.d.ts | requestPublishForm(want: Want, formBindingData?: formBindingData.FormBindingData): Promise | Asynchronous callback | +| @ohos.app.form.formProvider.d.ts | isRequestPublishFormSupported(callback: AsyncCallback): void | Exception | +| @ohos.app.form.formProvider.d.ts | isRequestPublishFormSupported(): Promise | Exception | +| UIAbilityContext.d.ts | startAbilityWithAccount(want: Want, accountId: number, callback: AsyncCallback): void | Asynchronous callback | +| UIAbilityContext.d.ts | startAbilityWithAccount(want: Want, accountId: number, options: StartOptions, callback: AsyncCallback): void | Asynchronous callback | +| UIAbilityContext.d.ts | startAbilityWithAccount(want: Want, accountId: number, options?: StartOptions): Promise | Asynchronous callback | +| UIAbilityContext.d.ts | startAbilityForResultWithAccount(want: Want, accountId: number, callback: AsyncCallback): void | Exception | +| UIAbilityContext.d.ts | startAbilityForResultWithAccount(want: Want, accountId: number, options: StartOptions, callback: AsyncCallback): void | Exception | +| UIAbilityContext.d.ts | startAbilityForResultWithAccount(want: Want, accountId: number, options?: StartOptions): Promise | Exception | +| UIAbilityContext.d.ts | startServiceExtensionAbility(want: Want, callback: AsyncCallback): void | Asynchronous callback | +| UIAbilityContext.d.ts | startServiceExtensionAbility(want: Want): Promise | Asynchronous callback | +| UIAbilityContext.d.ts | startServiceExtensionAbilityWithAccount(want: Want, accountId: number, callback: AsyncCallback): void | Asynchronous callback | +| UIAbilityContext.d.ts | startServiceExtensionAbilityWithAccount(want: Want, accountId: number): Promise | Asynchronous callback | +| UIAbilityContext.d.ts | stopServiceExtensionAbility(want: Want, callback: AsyncCallback): void | Asynchronous callback | +| UIAbilityContext.d.ts | stopServiceExtensionAbility(want: Want): Promise | Asynchronous callback | +| UIAbilityContext.d.ts | stopServiceExtensionAbilityWithAccount(want: Want, accountId: number, callback: AsyncCallback): void | Asynchronous callback | +| UIAbilityContext.d.ts | stopServiceExtensionAbilityWithAccount(want: Want, accountId: number): Promise | Asynchronous callback | +| UIAbilityContext.d.ts | connectServiceExtensionAbilityWithAccount(want: Want, accountId: number, options: ConnectOptions): number | Asynchronous callback | +| UIAbilityContext.d.ts | setMissionIcon(icon: image.PixelMap, callback: AsyncCallback): void | Asynchronous callback | +| UIAbilityContext.d.ts | setMissionIcon(icon: image.PixelMap): Promise | Asynchronous callback | +| ServiceExtensionContext.d.ts | startAbilityWithAccount(want: Want, accountId: number, callback: AsyncCallback): void | Asynchronous callback | +| ServiceExtensionContext.d.ts | startAbilityWithAccount(want: Want, accountId: number, options: StartOptions, callback: AsyncCallback): void | Asynchronous callback | +| ServiceExtensionContext.d.ts | startAbilityWithAccount(want: Want, accountId: number, options?: StartOptions): Promise | Asynchronous callback | +| ServiceExtensionContext.d.ts | startServiceExtensionAbility(want: Want, callback: AsyncCallback): void | Asynchronous callback | +| ServiceExtensionContext.d.ts | startServiceExtensionAbility(want: Want): Promise | Asynchronous callback | +| ServiceExtensionContext.d.ts | startServiceExtensionAbilityWithAccount(want: Want, accountId: number, callback: AsyncCallback): void | Asynchronous callback | +| ServiceExtensionContext.d.ts | startServiceExtensionAbilityWithAccount(want: Want, accountId: number): Promise | Asynchronous callback | +| ServiceExtensionContext.d.ts | stopServiceExtensionAbility(want: Want, callback: AsyncCallback): void | Asynchronous callback | +| ServiceExtensionContext.d.ts | stopServiceExtensionAbility(want: Want): Promise | Asynchronous callback | +| ServiceExtensionContext.d.ts | stopServiceExtensionAbilityWithAccount(want: Want, accountId: number, callback: AsyncCallback): void | Asynchronous callback | +| ServiceExtensionContext.d.ts | stopServiceExtensionAbilityWithAccount(want: Want, accountId: number): Promise | Asynchronous callback | +| ServiceExtensionContext.d.ts | connectServiceExtensionAbilityWithAccount(want: Want, accountId: number, options: ConnectOptions): number | Asynchronous callback | +| Context.d.ts | createBundleContext(bundleName: string): Context | Exception | +| Context.d.ts | createModuleContext(bundleName: string, moduleName: string): Context | Exception | +| FormExtensionContext.d.ts | startAbility(want: Want, callback: AsyncCallback): void | Asynchronous callback | +| FormExtensionContext.d.ts | startAbility(want: Want): Promise | Asynchronous callback | diff --git a/en/release-notes/changelogs/OpenHarmony_4.0.2.1/changelogs-bluetooth.md b/en/release-notes/changelogs/OpenHarmony_4.0.2.1/changelogs-bluetooth.md new file mode 100644 index 0000000000000000000000000000000000000000..46cabda38dd35234da3b29b6e3a891fcee63dd56 --- /dev/null +++ b/en/release-notes/changelogs/OpenHarmony_4.0.2.1/changelogs-bluetooth.md @@ -0,0 +1,173 @@ +# Bluetooth Subsystem ChangeLog + +## cl.bluetooth.1 API Migration to @ohos.bluetoothManager.d.ts + +**@ohos.bluetooth.d.ts** does not allow for throwing error codes, which is required by API version 9 and system APIs. Therefore, all APIs of **@ohos.bluetooth.d.ts** are migrated to the newly added **@ohos.bluetoothManager.d.ts**, and error code description is also added. + +To use Bluetooth APIs, import **@ohos.bluetoothManager**. + + ```ts + import bluetoothManager from '@ohos.bluetoothManager'; + ``` + + +**Change Impacts** + +System APIs and APIs in API version 9 are affected. Import **@ohos.bluetoothManager** to use APIs that can throw error codes. + + ```ts + import bluetoothManager from '@ohos.bluetoothManager'; + ``` + +**Key API/Component Changes** + +| Class | Original API | New API | Change Type | +| ---------------------------- | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | +| bluetooth | function getState(): BluetoothState | function getState(): BluetoothState | Migrated this API in API version 9 to **@ohos.bluetoothManager.d.ts**. | +| bluetooth | method | function getBtConnectionState(): ProfileConnectionState; | Migrated this API in API version 9 to **@ohos.bluetoothManager.d.ts**. | +| bluetooth | function pairDevice(deviceId: string): boolean | function pairDevice(deviceId: string): void | Migrated this API in API version 9 to **@ohos.bluetoothManager.d.ts** and changed the return value to **void**.| +| bluetooth | function cancelPairedDevice(deviceId: string): boolean | function cancelPairedDevice(deviceId: string): void | Migrated this API in API version 9 to **@ohos.bluetoothManager.d.ts** and changed the return value to **void**.| +| bluetooth | function getRemoteDeviceName(deviceId: string): string | function getRemoteDeviceName(deviceId: string): string | Migrated this API in API version 9 to **@ohos.bluetoothManager.d.ts**. | +| bluetooth | function getRemoteDeviceClass(deviceId: string): DeviceClass | function getRemoteDeviceClass(deviceId: string): DeviceClass | Migrated this API in API version 9 to **@ohos.bluetoothManager.d.ts**. | +| bluetooth | function enableBluetooth(): boolean | function enableBluetooth(): void | Migrated this API in API version 9 to **@ohos.bluetoothManager.d.ts** and changed the return value to **void**.| +| bluetooth | function disableBluetooth(): boolean | function disableBluetooth(): void | Migrated this API in API version 9 to **@ohos.bluetoothManager.d.ts** and changed the return value to **void**.| +| bluetooth | function getLocalName(): string | function getLocalName(): string | Migrated this API in API version 9 to **@ohos.bluetoothManager.d.ts**. | +| bluetooth | function getPairedDevices(): Array<string>; | function getPairedDevices(): Array<string>; | Migrated this API in API version 9 to **@ohos.bluetoothManager.d.ts**. | +| bluetooth | function getProfileConnState(profileId: ProfileId): ProfileConnectionState | function getProfileConnectionState(profileId: ProfileId): ProfileConnectionState | Migrated this API in API version 9 to **@ohos.bluetoothManager.d.ts** and changed the API name to **getProfileConnectionState**.| +| bluetooth | function setDevicePairingConfirmation(device: string, accept: boolean): boolean | function setDevicePairingConfirmation(device: string, accept: boolean): void | Migrated this API in API version 9 to **@ohos.bluetoothManager.d.ts** and changed the return value to **void**.| +| bluetooth | function setLocalName(name: string): boolean; | function setLocalName(name: string): void; | Migrated this API in API version 9 to **@ohos.bluetoothManager.d.ts** and changed the return value to **void**.| +| bluetooth | function setBluetoothScanMode(mode: ScanMode, duration: number): boolean | function setBluetoothScanMode(mode: ScanMode, duration: number): void | Migrated this API in API version 9 to **@ohos.bluetoothManager.d.ts** and changed the return value to **void**.| +| bluetooth | function getBluetoothScanMode(): ScanMod | function getBluetoothScanMode(): ScanMode | Migrated this API in API version 9 to **@ohos.bluetoothManager.d.ts**. | +| bluetooth | function startBluetoothDiscovery(): boolean | function startBluetoothDiscovery(): void | Migrated this API in API version 9 to **@ohos.bluetoothManager.d.ts**, added the **ohos.permission.APPROXIMATELY_LOCATION** permission, and changed the return value to **void**.| +| bluetooth | function stopBluetoothDiscovery(): boolean; | function stopBluetoothDiscovery(): void; | Migrated this API in API version 9 to **@ohos.bluetoothManager.d.ts** and changed the return value to **void**.| +| bluetooth | function on(type: "bluetoothDeviceFind", callback: Callback<Array<string>>): void; | function on(type: "bluetoothDeviceFind", callback: Callback<Array<string>>): void; | Migrated this API in API version 9 to **@ohos.bluetoothManager.d.ts**. | +| bluetooth | function off(type: "bluetoothDeviceFind", callback?: Callback<Array<string>>): void; | function off(type: "bluetoothDeviceFind", callback?: Callback<Array<string>>): void; | Migrated this API in API version 9 to **@ohos.bluetoothManager.d.ts**. | +| bluetooth | function on(type: "bondStateChange", callback: Callback<BondStateParam>): void; | function on(type: "bondStateChange", callback: Callbackk<BondStateParam>): void; | Migrated this API in API version 9 to **@ohos.bluetoothManager.d.ts**. | +| bluetooth | function off(type: "bondStateChange", callback?: Callback<BondStateParam>): void; | function off(type: "bondStateChange", callback?: Callback<BondStateParam>): void; | Migrated this API in API version 9 to **@ohos.bluetoothManager.d.ts**. | +| bluetooth | function on(type: "pinRequired", callback: Callback<PinRequiredParam>): void; | function on(type: "pinRequired", callback: Callback<PinRequiredParam>): void; | Migrated this API in API version 9 to **@ohos.bluetoothManager.d.ts**. | +| bluetooth | function off(type: "pinRequired", callback?: Callback<PinRequiredParam>): void; | function off(type: "pinRequired", callback?: Callback<PinRequiredParam>): void; | Migrated this API in API version 9 to **@ohos.bluetoothManager.d.ts**. | +| bluetooth | function on(type: "stateChange", callback: Callback<BluetoothState>): void; | function on(type: "stateChange", callback: Callback<BluetoothState>): void; | Migrated this API in API version 9 to **@ohos.bluetoothManager.d.ts**. | +| bluetooth | function off(type: "stateChange", callback?: Callback<BluetoothState>): void; | function off(type: "stateChange", callback?: Callback<BluetoothState>): void; | Migrated this API in API version 9 to **@ohos.bluetoothManager.d.ts**. | +| bluetooth | function sppListen(name: string, option: SppOption, callback: AsyncCallback<number>): void; | function sppListen(name: string, option: SppOption, callback: AsyncCallback<number>): void; | Migrated this API in API version 9 to **@ohos.bluetoothManager.d.ts**. | +| bluetooth | function sppAccept(serverSocket: number, callback: AsyncCallback<number>): void; | function sppAccept(serverSocket: number, callback: AsyncCallback<number>): void; | Migrated this API in API version 9 to **@ohos.bluetoothManager.d.ts**. | +| bluetooth | function sppConnect(device: string, option: SppOption, callback: AsyncCallback<number>): void; | function sppConnect(device: string, option: SppOption, callback: AsyncCallback<number>): void; | Migrated this API in API version 9 to **@ohos.bluetoothManager.d.ts**. | +| bluetooth | function sppCloseServerSocket(socket: number): void; | function sppCloseServerSocket(socket: number): void; | Migrated this API in API version 9 to **@ohos.bluetoothManager.d.ts**. | +| bluetooth | function sppCloseClientSocket(socket: number): void; | function sppCloseClientSocket(socket: number): void; | Migrated this API in API version 9 to **@ohos.bluetoothManager.d.ts**. | +| bluetooth | function sppWrite(clientSocket: number, data: ArrayBuffer): boolean; | function sppWrite(clientSocket: number, data: ArrayBuffer): void; | Migrated this API in API version 9 to **@ohos.bluetoothManager.d.ts** and changed the return value to **void**.| +| bluetooth | function on(type: "sppRead", clientSocket: number, callback: Callback<ArrayBuffer>): void; | function on(type: "sppRead", clientSocket: number, callback: Callback<ArrayBuffer>): void; | Migrated this API in API version 9 to **@ohos.bluetoothManager.d.ts**. | +| bluetooth | function off(type: "sppRead", clientSocket: number, callback?: Callback<ArrayBuffer>): void; | function off(type: "sppRead", clientSocket: number, callback?: Callback<ArrayBuffer>): void; | Migrated this API in API version 9 to **@ohos.bluetoothManager.d.ts**. | +| bluetooth | function getProfile(profileId: ProfileId): A2dpSourceProfile | HandsFreeAudioGatewayProfile; | function getProfileInstance(profileId: ProfileId): A2dpSourceProfile | +| bluetooth | function getProfileInst(profileId: ProfileId): A2dpSourceProfile | HandsFreeAudioGatewayProfile | HidHostProfile | +| BaseProfile | getConnectionDevices(): Array<string>; | getConnectionDevices(): Array<string>; | Migrated this API in API version 9 to **@ohos.bluetoothManager.d.ts**. | +| BaseProfile | getDeviceState(device: string): ProfileConnectionState; | getDeviceState(device: string): ProfileConnectionState; | Migrated this API in API version 9 to **@ohos.bluetoothManager.d.ts**. | +| A2dpSourceProfile | connect(device: string): boolean; | connect(device: string): void; | Migrated this API in API version 9 to **@ohos.bluetoothManager.d.ts** and changed the return value to **void**.| +| A2dpSourceProfile | disconnect(device: string): boolean; | disconnect(device: string): void; | Migrated this API in API version 9 to **@ohos.bluetoothManager.d.ts** and changed the return value to **void**.| +| A2dpSourceProfile | on(type: "connectionStateChange", callback: Callback<StateChangeParam>): void; | on(type: "connectionStateChange", callback: Callback<StateChangeParam>): void; | Migrated this API in API version 9 to **@ohos.bluetoothManager.d.ts**. | +| A2dpSourceProfile | off(type: "connectionStateChange", callback?: Callback<StateChangeParam>): void; | off(type: "connectionStateChange", callback?: Callback<StateChangeParam>): void; | Migrated this API in API version 9 to **@ohos.bluetoothManager.d.ts**. | +| A2dpSourceProfile | getPlayingState(device: string): PlayingState; | getPlayingState(device: string): PlayingState; | Migrated this API in API version 9 to **@ohos.bluetoothManager.d.ts**. | +| HandsFreeAudioGatewayProfile | connect(device: string): boolean; | connect(device: string): void; | Migrated this API in API version 9 to **@ohos.bluetoothManager.d.ts** and changed the return value to **void**.| +| HandsFreeAudioGatewayProfile | disconnect(device: string): boolean; | disconnect(device: string): void; | Migrated this API in API version 9 to **@ohos.bluetoothManager.d.ts** and changed the return value to **void**.| +| HandsFreeAudioGatewayProfile | on(type: "connectionStateChange", callback: Callback<StateChangeParam>): void; | on(type: "connectionStateChange", callback: Callback<StateChangeParam>): void; | Migrated this API in API version 9 to **@ohos.bluetoothManager.d.ts**. | +| HandsFreeAudioGatewayProfile | off(type: "connectionStateChange", callback?: Callback<StateChangeParam>): void; | off(type: "connectionStateChange", callback?: Callback<StateChangeParam>): void; | Migrated this API in API version 9 to **@ohos.bluetoothManager.d.ts**. | +| HidHostProfile | connect(device: string): boolean; | connect(device: string): void; | Migrated this API in API version 9 to **@ohos.bluetoothManager.d.ts** and changed the return value to **void**.| +| HidHostProfile | disconnect(device: string): boolean; | disconnect(device: string): void; | Migrated this API in API version 9 to **@ohos.bluetoothManager.d.ts** and changed the return value to **void**.| +| HidHostProfile | on(type: "connectionStateChange", callback: Callback<StateChangeParam>): void; | on(type: "connectionStateChange", callback: Callback<StateChangeParam>): void; | Migrated this API in API version 9 to **@ohos.bluetoothManager.d.ts**. | +| HidHostProfile | off(type: "connectionStateChange", callback?: Callback<StateChangeParam>): void; | off(type: "connectionStateChange", callback?: Callback<StateChangeParam>): void; | Migrated this API in API version 9 to **@ohos.bluetoothManager.d.ts**. | +| PanProfile | disconnect(device: string): boolean; | disconnect(device: string): void; | Migrated this API in API version 9 to **@ohos.bluetoothManager.d.ts** and changed the return value to **void**.| +| PanProfile | on(type: "connectionStateChange", callback: Callback<StateChangeParam>): void; | on(type: "connectionStateChange", callback: Callback<StateChangeParam>): void; | Migrated this API in API version 9 to **@ohos.bluetoothManager.d.ts**. | +| PanProfile | off(type: "connectionStateChange", callback?: Callback<StateChangeParam>): void; | off(type: "connectionStateChange", callback?: Callback<StateChangeParam>): void; | Migrated this API in API version 9 to **@ohos.bluetoothManager.d.ts**. | +| PanProfile | setTethering(enable: boolean): void; | setTethering(enable: boolean): void; | Migrated this API in API version 9 to **@ohos.bluetoothManager.d.ts**. | +| PanProfile | isTetheringOn(): boolean; | isTetheringOn(): boolean; | Migrated this API in API version 9 to **@ohos.bluetoothManager.d.ts**. | +| BLE | function createGattServer(): GattServer; | function createGattServer(): GattServer; | Migrated this API in API version 9 to **@ohos.bluetoothManager.d.ts**. | +| BLE | function createGattClientDevice(deviceId: string): GattClientDevice; | function createGattClientDevice(deviceId: string): GattClientDevice; | Migrated this API in API version 9 to **@ohos.bluetoothManager.d.ts**. | +| BLE | function getConnectedBLEDevices(): Array<string>; | function getConnectedBLEDevices(): Array<string>; | Migrated this API in API version 9 to **@ohos.bluetoothManager.d.ts**. | +| BLE | function startBLEScan(filters: Array<ScanFilter>, options?: ScanOptions): void; | function startBLEScan(filters: Array<ScanFilter>, options?: ScanOptions): void; | Migrated this API in API version 9 to **@ohos.bluetoothManager.d.ts** and added the **ohos.permission.APPROXIMATELY_LOCATION** permission.| +| BLE | function stopBLEScan(): void; | function stopBLEScan(): void; | Migrated this API in API version 9 to **@ohos.bluetoothManager.d.ts**. | +| BLE | mefunction on(type: "BLEDeviceFind", callback: Callback<Array<ScanResult>>): void;thod | function on(type: "BLEDeviceFind", callback: Callback<Array<ScanResult>>): void; | Migrated this API in API version 9 to **@ohos.bluetoothManager.d.ts**. | +| BLE | function off(type: "BLEDeviceFind", callback?: Callback<Array<ScanResult>>): void; | function off(type: "BLEDeviceFind", callback?: Callback<Array<ScanResult>>): void; | Migrated this API in API version 9 to **@ohos.bluetoothManager.d.ts**. | +| GattServer | startAdvertising(setting: AdvertiseSetting, advData: AdvertiseData, advResponse?: AdvertiseData): void; | startAdvertising(setting: AdvertiseSetting, advData: AdvertiseData, advResponse?: AdvertiseData): void; | Migrated this API in API version 9 to **@ohos.bluetoothManager.d.ts**. | +| GattServer | stopAdvertising(): void; | stopAdvertising(): void; | Migrated this API in API version 9 to **@ohos.bluetoothManager.d.ts**. | +| GattServer | addService(service: GattService): boolean; | addService(service: GattService): void; | Migrated this API in API version 9 to **@ohos.bluetoothManager.d.ts** and changed the return value to **void**.| +| GattServer | removeService(serviceUuid: string): boolean; | removeService(serviceUuid: string): void; | Migrated this API in API version 9 to **@ohos.bluetoothManager.d.ts** and changed the return value to **void**.| +| GattServer | close(): void; | close(): void; | Migrated this API in API version 9 to **@ohos.bluetoothManager.d.ts**. +| GattServer | notifyCharacteristicChanged(deviceId: string, notifyCharacteristic: NotifyCharacteristic): boolean; | notifyCharacteristicChanged(deviceId: string, notifyCharacteristic: NotifyCharacteristic): void; | Migrated this API in API version 9 to **@ohos.bluetoothManager.d.ts** and changed the return value to **void**. | +| GattServer | sendResponse(serverResponse: ServerResponse): boolean; | sendResponse(serverResponse: ServerResponse): void; | Migrated this API in API version 9 to **@ohos.bluetoothManager.d.ts** and changed the return value to **void**. | +| GattServer | on(type: "characteristicRead", callback: Callback<CharacteristicReadReq>): void; | on(type: "characteristicRead", callback: Callback<CharacteristicReadRequest>): void; | Migrated this API in API version 9 to **@ohos.bluetoothManager.d.ts**. | +| GattServer | off(type: "characteristicRead", callback?: Callback<CharacteristicReadReq>): void; | off(type: "characteristicRead", callback?: Callback<CharacteristicReadRequest>): void; | Migrated this API in API version 9 to **@ohos.bluetoothManager.d.ts**. | +| GattServer | on(type: "characteristicWrite", callback: Callback<CharacteristicWriteReq>): void; | on(type: "characteristicWrite", callback: Callback<CharacteristicWriteRequest>): void; | Migrated this API in API version 9 to **@ohos.bluetoothManager.d.ts**. | +| GattServer | off(type: "characteristicWrite", callback?: Callback<CharacteristicWriteReq>): void; | off(type: "characteristicWrite", callback?: Callback<CharacteristicWriteRequest>): void; | Migrated this API in API version 9 to **@ohos.bluetoothManager.d.ts**. | +| GattServer | on(type: "descriptorRead", callback: Callback<DescriptorReadReq>): void; | on(type: "descriptorRead", callback: Callback<DescriptorReadRequest>): void; | Migrated this API in API version 9 to **@ohos.bluetoothManager.d.ts**. | +| GattServer | off(type: "descriptorRead", callback?: Callback<DescriptorReadReq>): void; | off(type: "descriptorRead", callback?: Callback<DescriptorReadRequest>): void; | Migrated this API in API version 9 to **@ohos.bluetoothManager.d.ts**. | +| GattServer | on(type: "descriptorWrite", callback: Callback<DescriptorWriteReq>): void; | on(type: "descriptorWrite", callback: Callback<DescriptorWriteRequest>): void;| Migrated this API in API version 9 to **@ohos.bluetoothManager.d.ts**. | +| GattServer | off(type: "descriptorWrite", callback?: Callback<DescriptorWriteReq>): void; | off(type: "descriptorWrite", callback?: Callback<DescriptorWriteRequest>): void; | Migrated this API in API version 9 to **@ohos.bluetoothManager.d.ts**. | +| GattServer | on(type: "connectStateChange", callback: Callback<BLEConnectChangedState>): void; | on(type: "connectStateChange", callback: Callback<BLEConnectChangedState>): void;| Migrated this API in API version 9 to **@ohos.bluetoothManager.d.ts**. | +| GattServer | off(type: "connectStateChange", callback?: Callback<BLEConnectChangedState>): void; | off(type: "connectStateChange", callback?: Callback<BLEConnectChangedState>): void; | Migrated this API in API version 9 to **@ohos.bluetoothManager.d.ts**. | +| GattClientDevice | connect(): boolean; | connect(): void; | Migrated this API in API version 9 to **@ohos.bluetoothManager.d.ts** and changed the return value to **void**. | +| GattClientDevice | disconnect(): boolean; | disconnect(): void; | Migrated this API in API version 9 to **@ohos.bluetoothManager.d.ts** and changed the return value to **void**. | +| GattClientDevice | close(): boolean; | close(): void; | Migrated this API in API version 9 to **@ohos.bluetoothManager.d.ts** and changed the return value to **void**. | +| GattClientDevice | getDeviceName(callback: AsyncCallback<string>): void; | getDeviceName(callback: AsyncCallback<string>): void; | Migrated this API in API version 9 to **@ohos.bluetoothManager.d.ts**. | +| GattClientDevice | getDeviceName(): Promise<string>; | getDeviceName(): Promise<string>; | Migrated this API in API version 9 to **@ohos.bluetoothManager.d.ts**. | +| GattClientDevice | getServices(callback: AsyncCallback<Array<GattService>>): void; | getServices(callback: AsyncCallback<Array<GattService>>): void; | Migrated this API in API version 9 to **@ohos.bluetoothManager.d.ts**. | +| GattClientDevice | getServices(): Promise<Array<GattService>>; | getServices(): Promise<Array<GattService>>; | Migrated this API in API version 9 to **@ohos.bluetoothManager.d.ts**. | +| GattClientDevice | readCharacteristicValue(characteristic: BLECharacteristic, callback: AsyncCallback<BLECharacteristic>): void; | readCharacteristicValue(characteristic: BLECharacteristic, callback: AsyncCallback<BLECharacteristic>): void; | Migrated this API in API version 9 to **@ohos.bluetoothManager.d.ts**. | +| GattClientDevice | readCharacteristicValue(characteristic: BLECharacteristic): Promise<BLECharacteristic>; | readCharacteristicValue(characteristic: BLECharacteristic): Promise<BLECharacteristic>; | Migrated this API in API version 9 to **@ohos.bluetoothManager.d.ts**. | +| GattClientDevice | readDescriptorValue(descriptor: BLEDescriptor, callback: AsyncCallback<BLEDescriptor>): void; | readDescriptorValue(descriptor: BLEDescriptor, callback: AsyncCallback<BLEDescriptor>): void; | Migrated this API in API version 9 to **@ohos.bluetoothManager.d.ts**. | +| GattClientDevice | readDescriptorValue(descriptor: BLEDescriptor): Promise<BLEDescriptor>; | readDescriptorValue(descriptor: BLEDescriptor): Promise<BLEDescriptor>; | Migrated this API in API version 9 to **@ohos.bluetoothManager.d.ts**. | +| GattClientDevice | writeCharacteristicValue(characteristic: BLECharacteristic): boolean; | writeCharacteristicValue(characteristic: BLECharacteristic): void; | Migrated this API in API version 9 to **@ohos.bluetoothManager.d.ts** and changed the return value to **void**. | +| GattClientDevice | writeDescriptorValue(descriptor: BLEDescriptor): boolean; | writeDescriptorValue(descriptor: BLEDescriptor): void; | Migrated this API in API version 9 to **@ohos.bluetoothManager.d.ts** and changed the return value to **void**. | +| GattClientDevice | getRssiValue(callback: AsyncCallback<number>): void; | getRssiValue(callback: AsyncCallback<number>): void; | Migrated this API in API version 9 to **@ohos.bluetoothManager.d.ts**. | +| GattClientDevice | getRssiValue(): Promise<number>; | getRssiValue(): Promise<number>; | Migrated this API in API version 9 to **@ohos.bluetoothManager.d.ts**. | +| GattClientDevice | setBLEMtuSize(mtu: number): boolean; | setBLEMtuSize(mtu: number): void; | Migrated this API in API version 9 to **@ohos.bluetoothManager.d.ts** and changed the return value to **void**. | +| GattClientDevice | setNotifyCharacteristicChanged(characteristic: BLECharacteristic, enable: boolean): boolean; | setNotifyCharacteristicChanged(characteristic: BLECharacteristic, enable: boolean): void; | Migrated this API in API version 9 to **@ohos.bluetoothManager.d.ts** and changed the return value to **void**. | +| GattClientDevice | on(type: "BLECharacteristicChange", callback: Callback<BLECharacteristic>): void; | on(type: "BLECharacteristicChange", callback: Callback<BLECharacteristic>): void; | Migrated this API in API version 9 to **@ohos.bluetoothManager.d.ts**. | +| GattClientDevice | off(type: "BLECharacteristicChange", callback?: Callback<BLECharacteristic>): void; | off(type: "BLECharacteristicChange", callback?: Callback<BLECharacteristic>): void; | Migrated this API in API version 9 to **@ohos.bluetoothManager.d.ts**. | +| GattClientDevice | on(type: "BLEConnectionStateChange", callback: Callback<BLEConnectChangedState>): void; | on(type: "BLEConnectionStateChange", callback: Callback<BLEConnectChangedState>): void; | Migrated this API in API version 9 to **@ohos.bluetoothManager.d.ts**. | +| GattClientDevice | off(type: "BLEConnectionStateChange", callback?: Callback<BLEConnectChangedState>): void; | off(type: "BLEConnectionStateChange", callback?: Callback<BLEConnectChangedState>): void; | Migrated this API in API version 9 to **@ohos.bluetoothManager.d.ts**. | +| bluetooth | GattService | GattService | Migrated this API in API version 9 to **@ohos.bluetoothManager.d.ts**. | +| bluetooth | BLECharacteristic | BLECharacteristic | Migrated this API in API version 9 to **@ohos.bluetoothManager.d.ts**. | +| bluetooth | BLEDescriptor | BLEDescriptor | Migrated this API in API version 9 to **@ohos.bluetoothManager.d.ts**. | +| bluetooth | NotifyCharacteristic | NotifyCharacteristic | Migrated this API in API version 9 to **@ohos.bluetoothManager.d.ts**. | +| bluetooth | CharacteristicReadReq | CharacteristicReadRequest | Migrated this API in API version 9 to **@ohos.bluetoothManager.d.ts**. | +| bluetooth | CharacteristicWriteReq | CharacteristicWriteRequest | Migrated this API in API version 9 to **@ohos.bluetoothManager.d.ts**. | +| bluetooth | DescriptorReadRe | DescriptorReadRequest | Migrated this API in API version 9 to **@ohos.bluetoothManager.d.ts**. | +| bluetooth | DescriptorWriteReq | DescriptorWriteRequest | Migrated this API in API version 9 to **@ohos.bluetoothManager.d.ts**. | +| bluetooth | ServerResponse | ServerResponse | Migrated this API in API version 9 to **@ohos.bluetoothManager.d.ts**. | +| bluetooth | BLEConnectChangedState | BLEConnectChangedState | Migrated this API in API version 9 to **@ohos.bluetoothManager.d.ts**. | +| bluetooth | ScanResult | ScanResult | Migrated this API in API version 9 to **@ohos.bluetoothManager.d.ts**. | +| bluetooth | AdvertiseSetting | AdvertiseSetting | Migrated this API in API version 9 to **@ohos.bluetoothManager.d.ts**. | +| bluetooth | AdvertiseData | AdvertiseData | Migrated this API in API version 9 to **@ohos.bluetoothManager.d.ts**. | +| bluetooth | ManufactureData | ManufactureData | Migrated this API in API version 9 to **@ohos.bluetoothManager.d.ts**. | +| bluetooth | ServiceData | ServiceData | Migrated this API in API version 9 to **@ohos.bluetoothManager.d.ts**. | +| bluetooth | ScanFilter | ScanFilter | Migrated this API in API version 9 to **@ohos.bluetoothManager.d.ts**. | +| bluetooth | ScanOptions | ScanOptions | Migrated this API in API version 9 to **@ohos.bluetoothManager.d.ts**. | +| bluetooth | SppOption | SppOption | Migrated this API in API version 9 to **@ohos.bluetoothManager.d.ts**. | +| bluetooth | PinRequiredParam | PinRequiredParam | Migrated this API in API version 9 to **@ohos.bluetoothManager.d.ts**. | +| bluetooth | DeviceClass | DeviceClass | Migrated this API in API version 9 to **@ohos.bluetoothManager.d.ts**. | +| bluetooth | BondStateParam | BondStateParam | Migrated this API in API version 9 to **@ohos.bluetoothManager.d.ts**. | +| bluetooth | StateChangeParam | StateChangeParam | Migrated this API in API version 9 to **@ohos.bluetoothManager.d.ts**. | +| bluetooth | ScanDuty | ScanDuty | Migrated this API in API version 9 to **@ohos.bluetoothManager.d.ts**. | +| bluetooth | MatchMode | MatchMode | Migrated this API in API version 9 to **@ohos.bluetoothManager.d.ts**. | +| bluetooth | ProfileConnectionState | ProfileConnectionState | Migrated this API in API version 9 to **@ohos.bluetoothManager.d.ts**. | +| bluetooth | BluetoothState | BluetoothState | Migrated this API in API version 9 to **@ohos.bluetoothManager.d.ts**. | +| bluetooth | SppType | SppType | Migrated this API in API version 9 to **@ohos.bluetoothManager.d.ts**. | +| bluetooth | ScanMode | ScanMode | Migrated this API in API version 9 to **@ohos.bluetoothManager.d.ts**. | +| bluetooth | BondState | BondState | Migrated this API in API version 9 to **@ohos.bluetoothManager.d.ts**. | +| bluetooth | MajorClass | MajorClass | Migrated this API in API version 9 to **@ohos.bluetoothManager.d.ts**. | +| bluetooth | MajorMinorClass | MajorMinorClass | Migrated this API in API version 9 to **@ohos.bluetoothManager.d.ts**. | +| bluetooth | PlayingState | PlayingState | Migrated this API in API version 9 to **@ohos.bluetoothManager.d.ts**. | +| bluetooth | ProfileId | ProfileId | Migrated this API in API version 9 to **@ohos.bluetoothManager.d.ts**. | + + + +**(Optional) Adaptation Guide** + +The following uses **enableLocation** as an example to show how it is called in the new version: + + ```ts + import bluetoothManager from '@ohos.bluetoothManager'; + try { + var state = bluetoothManager.getState(); + } catch (err) { + console.error("errCode:" + err.code + ",errMessage:" + err.message); + } + ``` diff --git a/en/release-notes/changelogs/OpenHarmony_4.0.2.1/changelogs-filemanagement.md b/en/release-notes/changelogs/OpenHarmony_4.0.2.1/changelogs-filemanagement.md new file mode 100644 index 0000000000000000000000000000000000000000..2e4e9981788e07f1f41bef6c579898fe649c7368 --- /dev/null +++ b/en/release-notes/changelogs/OpenHarmony_4.0.2.1/changelogs-filemanagement.md @@ -0,0 +1,145 @@ +# File Management Subsystem ChangeLog + +## cl.filemanagement.1 Changed environment + +The file management subsystem **d.ts** file has been archived and moved to the **file** directory. The **environment** module supports error code processing. + +**Change Impacts** + +If your application is developed based on earlier versions, note that the **d.ts** file storage location and the name of the module to be imported are changed. The **environment** module supports error code processing. See [adaptation instructions](../OpenHarmony_3.2.8.1/changelogs-filemanagement.md) for more details. + +**Key API/Component Changes** + +Before the change, **environment** was imported using **@ohos.environment**: + +```js +import environment from '@ohos.environment'; +``` + +But now, **environment** is imported using **@ohos.file.environment**: + +```js +import environment from '@ohos.file.environment'; +``` + +## cl.filemanagement.2 Changed securityLabel + +The file management subsystem **d.ts** file has been archived and moved to the **file** directory. The **securityLabel** module supports error code processing. + +**Change Impacts** + +If your application is developed based on earlier versions, note that the **d.ts** file storage location and the name of the module to be imported are changed. The **securityLabel** module supports error code processing. See [adaptation instructions](../OpenHarmony_3.2.8.1/changelogs-filemanagement.md) for more details. + +**Key API/Component Changes** + +Before the change, **securityLabel** was imported using **@ohos.securityLabel**: + +```js +import securityLabel from '@ohos.securityLabel'; +``` + +But now, **securityLabel** is imported using **@ohos.file.securityLabel**: + +```js +import securityLabel from '@ohos.file.securityLabel'; +``` + +## cl.filemanagement.3 Changed fs + +The **ino** attribute type of the **Stat** API under the **fs** module is changed. + +**Change Impacts** + +The **ino** attribute type is changed from number to BigInt, to adapt the inode range of all types of files in the file system. + +**Key API/Component Changes** + +The type of the **ino** attribute of the **Stat** API is changed from number to BigInt. + +## cl.filemanagement.4 Changed fileAccess + +The file management subsystem **d.ts** file has been archived and moved to the **file** directory. The **fileAccess** module supports error code processing. + +**Change Impacts** + +If your application is developed based on earlier versions, note that the **d.ts** file storage location and the name of the module to be imported are changed. The **fileAccess** module supports error code processing. See [adaptation instructions](../OpenHarmony_3.2.8.1/changelogs-filemanagement.md) for more details. + +**Key API/Component Changes** + +Before the change, **fileAccess** was imported using **@ohos.data.fileAccess**: + +```js +import fileAccess from '@ohos.data.fileAccess'; +``` + +But now, **fileAccess** is imported using **@ohos.file.fileAccess**: + +```js +import fileAccess from '@ohos.file.fileAccess'; +``` + +## cl.filemanagement.5 Changed fileExtensionInfo + +The file management subsystem **d.ts** file has been archived and moved to the **file** directory. The **fileExtensionInfo** module supports error code processing. + +**Change Impacts** + +If your application is developed based on earlier versions, note that the **d.ts** file storage location and the name of the module to be imported are changed. The **fileExtensionInfo** module supports error code processing. See [adaptation instructions](../OpenHarmony_3.2.8.1/changelogs-filemanagement.md) for more details. + +**Key API/Component Changes** + +Before the change, **fileExtensionInfo** was imported using **@ohos.fileExtensionInfo**: + +```js +import fileExtensionInfo from '@ohos.fileExtensionInfo'; +``` + +But now, **fileExtensionInfo** is imported using **@ohos.file.fileExtensionInfo**: + +```js +import fileExtensionInfo from '@ohos.file.fileExtensionInfo'; +``` + +## cl.filemanagement.6 Changed storageStatistics + +The file management subsystem **d.ts** file has been archived and moved to the **file** directory. The **fileExtensionInfo** module supports error code processing. + +**Change Impacts** + +If your application is developed based on earlier versions, note that the **d.ts** file storage location and the name of the module to be imported are changed. The **storageStatistics** module supports error code processing. See [adaptation instructions](../OpenHarmony_3.2.8.1/changelogs-filemanagement.md) for more details. + +**Key API/Component Changes** + +Before the change, **storageStatistics** was imported using **@ohos.storageStatistics**: + +```js +import storageStatistics from '@ohos.storageStatistics'; +``` + +But now, **storageStatistics** is imported using **@ohos.file.storageStatistics**: + +```js +import storageStatistics from '@ohos.file.storageStatistics'; +``` + +## cl.filemanagement.7 Changed volumeManager + +The file management subsystem **d.ts** file has been archived moved to the **file** directory. The **volumeManager** module supports error code processing. + +**Change Impacts** + +If your application is developed based on earlier versions, note that the **d.ts** file storage location and the name of the module to be imported are changed. The **volumeManager** module supports error code processing. See [adaptation instructions](../OpenHarmony_3.2.8.1/changelogs-filemanagement.md) for more details. + +**Key API/Component Changes** + +Before the change, **volumeManager** was imported using **@ohos.volumeManager**: + +```js +import volumeManager from '@ohos.volumeManager'; +``` + +But now, **volumeManager** is imported using **@ohos.file.volumeManager**: + +```js +import volumeManager from '@ohos.file.volumeManager'; +``` diff --git a/en/release-notes/changelogs/OpenHarmony_4.0.2.1/changelogs-global.md b/en/release-notes/changelogs/OpenHarmony_4.0.2.1/changelogs-global.md new file mode 100644 index 0000000000000000000000000000000000000000..7192f94cba5682b78cd477953ed521bc42434609 --- /dev/null +++ b/en/release-notes/changelogs/OpenHarmony_4.0.2.1/changelogs-global.md @@ -0,0 +1,41 @@ +# Globalization Subsystem ChangeLog + +## cl.global.1 Runtime Authentication Added for System APIs + +The internationalization component of the globalization subsystem adds runtime authentication for system APIs in certain scenarios. The following changes are made in API version 9 and later: + - Setting the system language, country or region, and area + - Setting the 24-hour format of the system + - Adding and removing the preferred language + - Setting localized numbers + +You need to adapt your application based on the following information. + +**Change Impacts** + +APIs involved in the preceding scenarios can be properly called only by system applications that have the **UPDATE_CONFIGURATION** permission. + +**Key API/Component Changes** + + - Involved APIs: + - setSystemLanguage(language: string): void; + - setSystemRegion(region: string): void; + - setSystemLocale(locale: string): void; + - set24HourClock(option: boolean): void; + - addPreferredLanguage(language: string, index?: number): void; + - removePreferredLanguage(index: number): void; + - setUsingLocalDigit(flag: boolean): void; + +**Adaptation Guide** + +Make sure the application trying to call any of the above APIs is a system application. Non-system applications are not allowed to call the APIs. +An exception will be thrown upon lack of a necessary permission or a call request from a non-system application. The exception can be captured via **try-catch**. + +```js +import I18n from '@ohos.i18n' + +try { + I18n.System.setSystemLanguage('zh'); +} catch(error) { + console.error(`call System.setSystemLanguage failed, error code: ${error.code}, message: ${error.message}.`) +} +``` diff --git a/en/release-notes/changelogs/OpenHarmony_4.0.2.1/changelogs-media.md b/en/release-notes/changelogs/OpenHarmony_4.0.2.1/changelogs-media.md new file mode 100644 index 0000000000000000000000000000000000000000..01455e8774555943174a21a80f343b607a4a0069 --- /dev/null +++ b/en/release-notes/changelogs/OpenHarmony_4.0.2.1/changelogs-media.md @@ -0,0 +1,314 @@ +# Media Subsystem ChangeLog + +## cl.media.1 API Change of the Playback Function + +Added the [AVPlayer](../../../application-dev/reference/apis/js-apis-media.md#avplayer9)9+ API for audio and video playback, with the updated state machine and error codes, which is recommended. The following APIs for audio playback and video playback are no longer maintained: [AudioPlayer](../../../application-dev/reference/apis/js-apis-media.md#audioplayer)6+ and [VideoPlayer](../../../application-dev/reference/apis/js-apis-media.md#videoplayer)8+. + +**Change Impacts** + +The original APIs can still be used but are no longer maintained. You are advised to use the new API instead. + +**Key API/Component Changes** + +Added APIs + +| Class | Declaration | +| -------------- | ------------------------------------------------------------ | +| media | createAVPlayer(callback: AsyncCallback\): void | +| media | createAVPlayer() : Promise\ | +| media.AVPlayer | interface AVPlayer | +| media.AVPlayer | videoScaleType ?: VideoScaleType | +| media.AVPlayer | url ?: string | +| media.AVPlayer | surfaceId ?: string | +| media.AVPlayer | stop(callback: AsyncCallback\): void | +| media.AVPlayer | stop(): Promise\ | +| media.AVPlayer | setVolume(volume: number): void | +| media.AVPlayer | setSpeed(speed: PlaybackSpeed): void | +| media.AVPlayer | setBitrate(bitrate: number): void | +| media.AVPlayer | seek(timeMs: number, mode?:SeekMode): void | +| media.AVPlayer | reset(callback: AsyncCallback\): void | +| media.AVPlayer | reset(): Promise\ | +| media.AVPlayer | release(callback: AsyncCallback\): void | +| media.AVPlayer | release(): Promise\ | +| media.AVPlayer | readonly width: number | +| media.AVPlayer | readonly state: AVPlayerState | +| media.AVPlayer | readonly height: number | +| media.AVPlayer | readonly duration: number | +| media.AVPlayer | readonly currentTime: number | +| media.AVPlayer | prepare(callback: AsyncCallback\): void | +| media.AVPlayer | prepare(): Promise\ | +| media.AVPlayer | play(callback: AsyncCallback\): void | +| media.AVPlayer | play(): Promise\ | +| media.AVPlayer | pause(callback: AsyncCallback\): void | +| media.AVPlayer | pause(): Promise\ | +| media.AVPlayer | on(type: 'volumeChange', callback: Callback\): void | +| media.AVPlayer | on(type: 'videoSizeChange', callback: (width: number, height: number) => void): void | +| media.AVPlayer | on(type: 'timeUpdate', callback: Callback\): void | +| media.AVPlayer | on(type: 'stateChange', callback: (state: AVPlayerState, reason: StateChangeReason) => void): void | +| media.AVPlayer | on(type: 'startRenderFrame', callback: Callback\): void | +| media.AVPlayer | on(type: 'speedDone', callback: Callback\): void | +| media.AVPlayer | on(type: 'seekDone', callback: Callback\): void | +| media.AVPlayer | on(type: 'error', callback: ErrorCallback): void | +| media.AVPlayer | on(type: 'endOfStream', callback: Callback\): void | +| media.AVPlayer | on(type: 'durationUpdate', callback: Callback\): void | +| media.AVPlayer | on(type: 'bufferingUpdate', callback: (infoType: BufferingInfoType, value: number) => void): void | +| media.AVPlayer | on(type: 'bitrateDone', callback: Callback\): void | +| media.AVPlayer | on(type: 'availableBitrates', callback: (bitrates: Array\) => void): void | +| media.AVPlayer | on(type: 'audioInterrupt', callback: (info: audio.InterruptEvent) => void): void | +| media.AVPlayer | off(type: 'volumeChange'): void | +| media.AVPlayer | off(type: 'videoSizeChange'): void | +| media.AVPlayer | off(type: 'timeUpdate'): void | +| media.AVPlayer | off(type: 'stateChange'): void | +| media.AVPlayer | off(type: 'startRenderFrame'): void | +| media.AVPlayer | off(type: 'speedDone'): void | +| media.AVPlayer | off(type: 'seekDone'): void | +| media.AVPlayer | off(type: 'error'): void | +| media.AVPlayer | off(type: 'endOfStream'): void | +| media.AVPlayer | off(type: 'durationUpdate'): void | +| media.AVPlayer | off(type: 'bufferingUpdate'): void | +| media.AVPlayer | off(type: 'bitrateDone'): void | +| media.AVPlayer | off(type: 'availableBitrates'): void | +| media.AVPlayer | off(type: 'audioInterrupt'): void | +| media.AVPlayer | loop: boolean | +| media.AVPlayer | getTrackDescription(callback: AsyncCallback\>): void | +| media.AVPlayer | getTrackDescription() : Promise\> | +| media.AVPlayer | fdSrc ?: AVFileDescriptor | +| media.AVPlayer | audioInterruptMode ?: audio.InterruptMode | +| unnamed | type AVPlayerState = 'idle' \| 'initialized' \| 'prepared' \| 'playing' \| 'paused' \| 'completed' \| 'stopped' \| 'released' \| 'error' | + +APIs no longer maintained + +| Class | Declaration | +| ----------------- | ------------------------------------------------------------ | +| media | createVideoPlayer(callback: AsyncCallback\): void | +| media | createVideoPlayer() : Promise\ | +| media | createAudioPlayer(): AudioPlayer | +| media.AudioPlayer | interface AudioPlayer | +| media.AudioPlayer | play(): void | +| media.AudioPlayer | release(): void | +| media.AudioPlayer | audioInterruptMode ?: audio.InterruptMode | +| media.AudioPlayer | fdSrc: AVFileDescriptor | +| media.AudioPlayer | seek(timeMs: number): void | +| media.AudioPlayer | readonly duration: number | +| media.AudioPlayer | loop: boolean | +| media.AudioPlayer | readonly state: AudioState | +| media.AudioPlayer | getTrackDescription(callback: AsyncCallback\>): void | +| media.AudioPlayer | getTrackDescription() : Promise\> | +| media.AudioPlayer | on(type: 'bufferingUpdate', callback: (infoType: BufferingInfoType, value: number) => void): void | +| media.AudioPlayer | on(type: 'play' \| 'pause' \| 'stop' \| 'reset' \| 'dataLoad' \| 'finish' \| 'volumeChange', callback: () => void): void | +| media.AudioPlayer | on(type: 'timeUpdate', callback: Callback\): void | +| media.AudioPlayer | on(type: 'audioInterrupt', callback: (info: audio.InterruptEvent) => void): void | +| media.AudioPlayer | on(type: 'error', callback: ErrorCallback): void | +| media.AudioPlayer | setVolume(vol: number): void | +| media.AudioPlayer | pause(): void | +| media.AudioPlayer | readonly currentTime: number | +| media.AudioPlayer | stop(): void | +| media.AudioPlayer | reset(): void | +| media.AudioPlayer | src: string | +| media.VideoPlayer | interface VideoPlayer | +| media.VideoPlayer | play(callback: AsyncCallback\): void | +| media.VideoPlayer | play(): Promise\ | +| media.VideoPlayer | prepare(callback: AsyncCallback\): void | +| media.VideoPlayer | prepare(): Promise\ | +| media.VideoPlayer | release(callback: AsyncCallback\): void | +| media.VideoPlayer | release(): Promise\ | +| media.VideoPlayer | audioInterruptMode ?: audio.InterruptMode | +| media.VideoPlayer | fdSrc: AVFileDescriptor | +| media.VideoPlayer | seek(timeMs: number, callback: AsyncCallback\): void | +| media.VideoPlayer | seek(timeMs: number, mode:SeekMode, callback: AsyncCallback\): void | +| media.VideoPlayer | seek(timeMs: number, mode?:SeekMode): Promise\ | +| media.VideoPlayer | readonly duration: number | +| media.VideoPlayer | loop: boolean | +| media.VideoPlayer | videoScaleType ?: VideoScaleType | +| media.VideoPlayer | readonly state: VideoPlayState | +| media.VideoPlayer | getTrackDescription(callback: AsyncCallback\>): void | +| media.VideoPlayer | getTrackDescription() : Promise\> | +| media.VideoPlayer | readonly height: number | +| media.VideoPlayer | on(type: 'playbackCompleted', callback: Callback\): void | +| media.VideoPlayer | on(type: 'bufferingUpdate', callback: (infoType: BufferingInfoType, value: number) => void): void | +| media.VideoPlayer | on(type: 'startRenderFrame', callback: Callback\): void | +| media.VideoPlayer | on(type: 'videoSizeChanged', callback: (width: number, height: number) => void): void | +| media.VideoPlayer | on(type: 'audioInterrupt', callback: (info: audio.InterruptEvent) => void): void | +| media.VideoPlayer | on(type: 'error', callback: ErrorCallback): void | +| media.VideoPlayer | setDisplaySurface(surfaceId: string, callback: AsyncCallback\): void | +| media.VideoPlayer | setDisplaySurface(surfaceId: string): Promise\ | +| media.VideoPlayer | setVolume(vol: number, callback: AsyncCallback\): void | +| media.VideoPlayer | setVolume(vol: number): Promise\ | +| media.VideoPlayer | url: string | +| media.VideoPlayer | pause(callback: AsyncCallback\): void | +| media.VideoPlayer | pause(): Promise\ | +| media.VideoPlayer | readonly currentTime: number | +| media.VideoPlayer | setSpeed(speed:number, callback: AsyncCallback\): void | +| media.VideoPlayer | setSpeed(speed:number): Promise\ | +| media.VideoPlayer | stop(callback: AsyncCallback\): void | +| media.VideoPlayer | stop(): Promise\ | +| media.VideoPlayer | readonly width: number | +| media.VideoPlayer | reset(callback: AsyncCallback\): void | +| media.VideoPlayer | reset(): Promise\ | +| unnamed | type AudioState = 'idle' \| 'playing' \| 'paused' \| 'stopped' \| 'error' | +| unnamed | type VideoPlayState = 'idle' \| 'prepared' \| 'playing' \| 'paused' \| 'stopped' \| 'error' | + +**Adaptation Guide** + +For details, see the [reference](../../../application-dev/reference/apis/js-apis-media.md) for each API. + +## cl.media.2 API Change of the Recording Function + +Added the [AVRecorder](../../../application-dev/reference/apis/js-apis-media.md#avrecorder9)9+ API for audio and video recording, with the updated state machine and error codes, which is recommended. The following APIs for audio recording and video recording are no longer maintained: [AudioRecorder](../../../application-dev/reference/apis/js-apis-media.md#audiorecorder)6+ and [VideoRecorder](../../../application-dev/reference/apis/js-apis-media.md#videorecorder9)9+. + +The [AudioSourceType](../../../application-dev/reference/apis/js-apis-media.md#audiosourcetype9) and [VideoSourceType](../../../application-dev/reference/apis/js-apis-media.md#videosourcetype9) APIs shared by the old and new recording APIs are changed to non-system APIs. + +**Change Impacts** + +The [AudioRecorder](../../../application-dev/reference/apis/js-apis-media.md#audiorecorder)6+ and [VideoRecorder](../../../application-dev/reference/apis/js-apis-media.md#videorecorder9)9+ APIs can still be used but are no longer maintained. You are advised to use the [AVRecorder](../../../application-dev/reference/apis/js-apis-media.md#avrecorder9)9+ API instead. + +**Key API/Component Changes** + +Added APIs + +| Class | Declaration | +| ----------------------- | ------------------------------------------------------------ | +| media | createAVRecorder(callback: AsyncCallback\): void | +| media | createAVRecorder() : Promise\ | +| media.AVRecorder | interface AVRecorder | +| media.AVRecorder | prepare(config: AVRecorderConfig, callback: AsyncCallback\): void | +| media.AVRecorder | prepare(config: AVRecorderConfig): Promise\ | +| media.AVRecorder | release(callback: AsyncCallback\): void | +| media.AVRecorder | release(): Promise\ | +| media.AVRecorder | readonly state: AVRecorderState | +| media.AVRecorder | on(type: 'stateChange', callback: (state: AVRecorderState, reason: StateChangeReason) => void): void | +| media.AVRecorder | on(type: 'error', callback: ErrorCallback): void | +| media.AVRecorder | resume(callback: AsyncCallback\): void | +| media.AVRecorder | resume(): Promise\ | +| media.AVRecorder | start(callback: AsyncCallback\): void | +| media.AVRecorder | start(): Promise\ | +| media.AVRecorder | off(type: 'stateChange'): void | +| media.AVRecorder | off(type: 'error'): void | +| media.AVRecorder | pause(callback: AsyncCallback\): void | +| media.AVRecorder | pause(): Promise\ | +| media.AVRecorder | stop(callback: AsyncCallback\): void | +| media.AVRecorder | stop(): Promise\ | +| media.AVRecorder | reset(callback: AsyncCallback\): void | +| media.AVRecorder | reset(): Promise\ | +| media.AVRecorder | getInputSurface(callback: AsyncCallback\): void | +| media.AVRecorder | getInputSurface(): Promise\ | +| media.AVRecorderConfig | videoSourceType?: VideoSourceType | +| media.AVRecorderConfig | audioSourceType?: AudioSourceType | +| media.AVRecorderConfig | profile: AVRecorderProfile | +| media.AVRecorderConfig | rotation?: number | +| media.AVRecorderConfig | url: string | +| media.AVRecorderConfig | location?: Location | +| media.AVRecorderConfig | interface AVRecorderConfig | +| media.AVRecorderProfile | videoBitrate?: number | +| media.AVRecorderProfile | videoCodec?: CodecMimeType | +| media.AVRecorderProfile | audioCodec?: CodecMimeType | +| media.AVRecorderProfile | videoFrameRate?: number | +| media.AVRecorderProfile | videoFrameHeight?: number | +| media.AVRecorderProfile | audioSampleRate?: number | +| media.AVRecorderProfile | audioBitrate?: number | +| media.AVRecorderProfile | videoFrameWidth?: number | +| media.AVRecorderProfile | audioChannels?: number | +| media.AVRecorderProfile | fileFormat: ContainerFormatType | +| media.AVRecorderProfile | interface AVRecorderProfile | +| unnamed | type AVRecorderState = 'idle' \| 'prepared' \| 'started' \| 'paused' \| 'stopped' \| 'released' \| 'error' | + +APIs no longer maintained + +| Class | Declaration | +| -------------------------- | ------------------------------------------------------------ | +| media | createVideoRecorder(callback: AsyncCallback\): void | +| media | createVideoRecorder(): Promise\ | +| media | createAudioRecorder(): AudioRecorder | +| media.AudioRecorder | interface AudioRecorder | +| media.AudioRecorder | prepare(config: AudioRecorderConfig): void | +| media.AudioRecorder | release(): void | +| media.AudioRecorder | on(type: 'prepare' \| 'start' \| 'pause' \| 'resume' \| 'stop' \| 'release' \| 'reset', callback: () => void): void | +| media.AudioRecorder | on(type: 'error', callback: ErrorCallback): void | +| media.AudioRecorder | resume(): void | +| media.AudioRecorder | start(): void | +| media.AudioRecorder | pause(): void | +| media.AudioRecorder | stop(): void | +| media.AudioRecorder | reset(): void | +| media.AudioRecorderConfig | audioSampleRate?: number | +| media.AudioRecorderConfig | location?: Location | +| media.AudioRecorderConfig | fileFormat?: ContainerFormatType | +| media.AudioRecorderConfig | interface AudioRecorderConfig | +| media.AudioRecorderConfig | audioEncoder?: AudioEncoder | +| media.AudioRecorderConfig | audioEncodeBitRate?: number | +| media.AudioRecorderConfig | numberOfChannels?: number | +| media.AudioRecorderConfig | format?: AudioOutputFormat | +| media.AudioRecorderConfig | uri: string | +| media.AudioRecorderConfig | audioEncoderMime?: CodecMimeType | +| media.VideoRecorder | interface VideoRecorder | +| media.VideoRecorder | prepare(config: VideoRecorderConfig, callback: AsyncCallback\): void | +| media.VideoRecorder | prepare(config: VideoRecorderConfig): Promise\ | +| media.VideoRecorder | release(callback: AsyncCallback\): void | +| media.VideoRecorder | release(): Promise\ | +| media.VideoRecorder | readonly state: VideoRecordState | +| media.VideoRecorder | on(type: 'error', callback: ErrorCallback): void | +| media.VideoRecorder | resume(callback: AsyncCallback\): void | +| media.VideoRecorder | resume(): Promise\ | +| media.VideoRecorder | start(callback: AsyncCallback\): void | +| media.VideoRecorder | start(): Promise\ | +| media.VideoRecorder | pause(callback: AsyncCallback\): void | +| media.VideoRecorder | pause(): Promise\ | +| media.VideoRecorder | stop(callback: AsyncCallback\): void | +| media.VideoRecorder | stop(): Promise\ | +| media.VideoRecorder | reset(callback: AsyncCallback\): void | +| media.VideoRecorder | reset(): Promise\ | +| media.VideoRecorder | getInputSurface(callback: AsyncCallback\): void | +| media.VideoRecorder | getInputSurface(): Promise\ | +| media.VideoRecorderConfig | videoSourceType: VideoSourceType | +| media.VideoRecorderConfig | audioSourceType?: AudioSourceType | +| media.VideoRecorderConfig | profile: VideoRecorderProfile | +| media.VideoRecorderConfig | rotation?: number | +| media.VideoRecorderConfig | url: string | +| media.VideoRecorderConfig | location?: Location | +| media.VideoRecorderConfig | interface VideoRecorderConfig | +| media.VideoRecorderProfile | readonly videoBitrate: number | +| media.VideoRecorderProfile | readonly videoCodec: CodecMimeType | +| media.VideoRecorderProfile | readonly audioCodec: CodecMimeType | +| media.VideoRecorderProfile | readonly videoFrameRate: number | +| media.VideoRecorderProfile | readonly videoFrameHeight: number | +| media.VideoRecorderProfile | readonly audioSampleRate: number | +| media.VideoRecorderProfile | readonly audioBitrate: number | +| media.VideoRecorderProfile | readonly videoFrameWidth: number | +| media.VideoRecorderProfile | readonly audioChannels: number | +| media.VideoRecorderProfile | readonly fileFormat: ContainerFormatType | +| media.VideoRecorderProfile | interface VideoRecorderProfile | +| unnamed | type VideoRecordState = 'idle' \| 'prepared' \| 'playing' \| 'paused' \| 'stopped' \| 'error' | + +Changed APIs + +| Class | Declaration | Capability Before Change | Capability After Change | Whether a System API Before Change| Whether a System API After Change| +| --------------------- | ------------------------------------------------------------ | ----------------------------------------------- | -------------------------------------------- | -------------------- | -------------------- | +| media.AudioSourceType | enum AudioSourceType { /** * default audio source type. * @since 9 * @syscap SystemCapability.Multimedia.Media.AVRecorder */ AUDIO_SOURCE_TYPE_DEFAULT = 0, /** * source type mic. * @since 9 * @syscap SystemCapability.Multimedia.Media.AVRecorder */ AUDIO_SOURCE_TYPE_MIC = 1, } | SystemCapability.Multimedia.Media.VideoRecorder | SystemCapability.Multimedia.Media.AVRecorder | Yes | No | +| media.VideoSourceType | enum VideoSourceType { /** * surface raw data. * @since 9 * @syscap SystemCapability.Multimedia.Media.AVRecorder */ VIDEO_SOURCE_TYPE_SURFACE_YUV = 0, /** * surface ES data. * @since 9 * @syscap SystemCapability.Multimedia.Media.AVRecorder */ VIDEO_SOURCE_TYPE_SURFACE_ES = 1, } | SystemCapability.Multimedia.Media.VideoRecorder | SystemCapability.Multimedia.Media.AVRecorder | Yes | No | + +**Adaptation Guide** + +For details, see the [reference](../../../application-dev/reference/apis/js-apis-media.md) for each API. + +## cl.media.3 Error Code Change + +Added the standard error code enumeration type [AVErrorCode9](../../../application-dev/reference/apis/js-apis-media.md#averrorcode)9+ that replaces the original error code enumeration type [MediaErrorCode](../../../application-dev/reference/apis/js-apis-media.md#mediaerrorcode)8+. + +**Change Impacts** + +The error code enumeration type [MediaErrorCode](../../../application-dev/reference/apis/js-apis-media.md#mediaerrorcode)8+ is still used for original APIs. [AVErrorCode9](../../../application-dev/reference/apis/js-apis-media.md#averrorcode)9+ is used for newly added APIs. + +**Key API/Component Changes** + +Added API + +| Class | Declaration | +| ----------------- | ------------------------------------------------------------ | +| media.AVErrorCode | enum AVErrorCode { /** * operation success. * @since 9 * @syscap SystemCapability.Multimedia.Media.Core */ AVERR_OK = 0, /** * permission denied. * @since 9 * @syscap SystemCapability.Multimedia.Media.Core */ AVERR_NO_PERMISSION = 201, /** * invalid parameter. * @since 9 * @syscap SystemCapability.Multimedia.Media.Core */ AVERR_INVALID_PARAMETER = 401, /** * the api is not supported in the current version * @since 9 * @syscap SystemCapability.Multimedia.Media.Core */ AVERR_UNSUPPORT_CAPABILITY = 801, /** * the system memory is insufficient or the number of services reaches the upper limit * @since 9 * @syscap SystemCapability.Multimedia.Media.Core */ AVERR_NO_MEMORY = 5400101, /** * current status does not allow or do not have permission to perform this operation * @since 9 * @syscap SystemCapability.Multimedia.Media.Core */ AVERR_OPERATE_NOT_PERMIT = 5400102, /** * data flow exception information * @since 9 * @syscap SystemCapability.Multimedia.Media.Core */ AVERR_IO = 5400103, /** * system or network response timeout. * @since 9 * @syscap SystemCapability.Multimedia.Media.Core */ AVERR_TIMEOUT = 5400104, /** * service process died. * @since 9 * @syscap SystemCapability.Multimedia.Media.Core */ AVERR_SERVICE_DIED = 5400105, /** * unsupported media format * @since 9 * @syscap SystemCapability.Multimedia.Media.Core */ AVERR_UNSUPPORT_FORMAT = 5400106, } | + +API no longer maintained + +| Class | Declaration | +| -------------------- | ------------------------------------------------------------ | +| media.MediaErrorCode | enum MediaErrorCode { /** * operation success. * @since 8 * @syscap SystemCapability.Multimedia.Media.Core */ MSERR_OK = 0, /** * malloc or new memory failed. maybe system have no memory. * @since 8 * @syscap SystemCapability.Multimedia.Media.Core */ MSERR_NO_MEMORY = 1, /** * no permission for the operation. * @since 8 * @syscap SystemCapability.Multimedia.Media.Core */ MSERR_OPERATION_NOT_PERMIT = 2, /** * invalid argument. * @since 8 * @syscap SystemCapability.Multimedia.Media.Core */ MSERR_INVALID_VAL = 3, /** * an I/O error occurred. * @since 8 * @syscap SystemCapability.Multimedia.Media.Core */ MSERR_IO = 4, /** * operation time out. * @since 8 * @syscap SystemCapability.Multimedia.Media.Core */ MSERR_TIMEOUT = 5, /** * unknown error. * @since 8 * @syscap SystemCapability.Multimedia.Media.Core */ MSERR_UNKNOWN = 6, /** * media service died. * @since 8 * @syscap SystemCapability.Multimedia.Media.Core */ MSERR_SERVICE_DIED = 7, /** * operation is not permit in current state. * @since 8 * @syscap SystemCapability.Multimedia.Media.Core */ MSERR_INVALID_STATE = 8, /** * operation is not supported in current version. * @since 8 * @syscap SystemCapability.Multimedia.Media.Core */ MSERR_UNSUPPORTED = 9, } | + + \ No newline at end of file diff --git a/en/release-notes/changelogs/OpenHarmony_4.0.2.1/changelogs-testfwk_arkxtest.md b/en/release-notes/changelogs/OpenHarmony_4.0.2.1/changelogs-testfwk_arkxtest.md new file mode 100644 index 0000000000000000000000000000000000000000..1206d659402df80e9892ca3e7b4eba1e729c9357 --- /dev/null +++ b/en/release-notes/changelogs/OpenHarmony_4.0.2.1/changelogs-testfwk_arkxtest.md @@ -0,0 +1,42 @@ +# Test Subsystem ChangeLog + +## cl.testfwk_arkxtest.1 API Name Change of Rect + +The definition of **Rect**, an enumeration type that indicates the component bound information, is changed since version 4.0.2.1. + +## Change Impacts + +This change affects the **Rect** API provided by **@ohos.uitest**. If you have used the **Rect** API of **@ohos.uitest-api9** during test case development, adaptation is required so that the compilation can be successful in the SDK environment of the new version. + +## Key API/Component Changes + +### Rect9+ + +Before change + +| Name | Value | Description | +| ------- | ---- | ------------------------- | +| leftX | 1 | X-coordinate of the upper left corner of the component bounds.| +| topY | 2 | Y-coordinate of the upper left corner of the component bounds.| +| rightX | 3 | X-coordinate of the lower right corner of the component bounds.| +| bottomY | 4 | Y-coordinate of the lower right corner of the component bounds.| + +After change + +| Name | Value | Description | +| ------ | ---- | ------------------------- | +| left | 1 | X-coordinate of the upper left corner of the component bounds.| +| top | 2 | Y-coordinate of the upper left corner of the component bounds.| +| right | 3 | X-coordinate of the lower right corner of the component bounds.| +| bottom | 4 | Y-coordinate of the lower right corner of the component bounds.| + +## Adaptation Guide + +### Adaptation to the API Name Change + +You can replace the class name according to the following rules: + +- `leftX-->left` +- `topY-->top` +- `rightX-->right` +- `bottomY-->bottom` diff --git a/en/release-notes/changelogs/OpenHarmony_4.0.2.1/changelogs-usb.md b/en/release-notes/changelogs/OpenHarmony_4.0.2.1/changelogs-usb.md new file mode 100644 index 0000000000000000000000000000000000000000..9a5e30e4a4c8d24266d966f9ac6dc249748cfa60 --- /dev/null +++ b/en/release-notes/changelogs/OpenHarmony_4.0.2.1/changelogs-usb.md @@ -0,0 +1,18 @@ +USB Manager ChangeLog + +## cl.usb_manager.1 System API Change + +Runtime authentication is performed for system APIs of the USB manager. An asynchronous API throws an error code via **Promise.reject**. + +If your application is developed based on earlier versions, modify the return values of functions. Otherwise, the original service logic will be affected. + +**Key API/Component Changes** + +| Bundle Name | Original API | New API | +| --------------- | ------------------------------------------------------------ | ------------------------------------------------------------ | +| ohos.usbV9.d.ts | function setCurrentFunctions(funcs: FunctionType): Promise; | function setCurrentFunctions(funcs: FunctionType): Promise; | +| ohos.usbV9.d.ts | function setPortRoles(portId: number, powerRole: PowerRoleType, dataRole: DataRoleType): Promise; | function setPortRoles(portId: number, powerRole: PowerRoleType, dataRole: DataRoleType): Promise; | + +**Adaptation Guide** + +For details, see the [reference](../../../application-dev/reference/errorcodes/errorcode-universal.md) for each API. diff --git a/en/release-notes/changelogs/v3.1-Release/changelogs-account_os_account.md b/en/release-notes/changelogs/v3.1-Release/changelogs-account_os_account.md new file mode 100644 index 0000000000000000000000000000000000000000..1eb84215498004fe05d46715ac02236ee28d5e58 --- /dev/null +++ b/en/release-notes/changelogs/v3.1-Release/changelogs-account_os_account.md @@ -0,0 +1,57 @@ +# Account Subsystem ChangeLog + +## cl.account_os_account.1 OsAccountInfo.type Value Type Change + +Changed the value type of **OsAccountInfo.type** from **Object** to **OsAccountType** enumeration. + +**Change Impacts** + +The mode for reading the **OsAccountInfo.type** value needs to be changed for the application developed based on earlier versions. Otherwise, the original service logic will be affected. + +**Key API/Component Changes** + +The following APIs are involved: +- AccountManager + - queryAllCreatedOsAccounts(callback: AsyncCallback<Array<OsAccountInfo>>): void; + - queryAllCreatedOsAccounts(): Promise<Array<OsAccountInfo>>; + - createOsAccount(localName: string, type: OsAccountType, callback: AsyncCallback<OsAccountInfo>): void; + - createOsAccount(localName: string, type: OsAccountType): Promise<OsAccountInfo>; + - createOsAccountForDomain(type: OsAccountType, domainInfo: DomainAccountInfo, callback: AsyncCallback<OsAccountInfo>): void; + - createOsAccountForDomain(type: OsAccountType, domainInfo: DomainAccountInfo): Promise<OsAccountInfo>; + - queryCurrentOsAccount(callback: AsyncCallback<OsAccountInfo>): void; + - queryCurrentOsAccount(): Promise<OsAccountInfo>; + - getCurrentOsAccount(callback: AsyncCallback<OsAccountInfo>): void; + - getCurrentOsAccount(): Promise<OsAccountInfo>; + - queryOsAccountById(localId: number, callback: AsyncCallback<OsAccountInfo>): void; + - queryOsAccountById(localId: number): Promise<OsAccountInfo>; + + - getOsAccountTypeFromProcess(callback: AsyncCallback<OsAccountType>): void; + - getOsAccountTypeFromProcess(): Promise<OsAccountType>; + - getOsAccountType(callback: AsyncCallback<OsAccountType>): void; + - getOsAccountType(): Promise<OsAccountType>; + +**Adaptation Guide** +```ts +import account_osAccount from "@ohos.account.osAccount" +import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium' + +let accountMgr = account_osAccount.getAccountManager(); +accountMgr.createOsAccount('account_test', account_osAccount.OsAccountType.GUEST).then((accountInfo) => { + expect(accountInfo.type).assertEqual(account_osAccount.OsAccountType.GUEST); + accountMgr.activateOsAccount(accountInfo.localId).then(() => { + console.log('activateOsAccount successfully'); + accountMgr.getOsAccountTypeFromProcess().then((accountType) => { + expect(accountType).assertEqual(account_osAccount.OsAccountType.GUEST); + }).catch((err) => { + console.log('activateOsAccount err: ' + JSON.stringify(err)); + expect().assertFail(); + }); + }).catch((err) => { + console.log('activateOsAccount err: ' + JSON.stringify(err)); + expect().assertFail(); + }); +}).catch((err) => { + console.log('createOsAccount err: ' + JSON.stringify(err)); + expect().assertFail(); +}); +``` diff --git a/zh-cn/application-dev/ability-deprecated/fa-brief.md b/zh-cn/application-dev/ability-deprecated/fa-brief.md index 304cbc0be9f90d6ac83699c5b3da83aef02fb623..0e076ebc937aa8e0726361f865285fb181068c10 100644 --- a/zh-cn/application-dev/ability-deprecated/fa-brief.md +++ b/zh-cn/application-dev/ability-deprecated/fa-brief.md @@ -52,9 +52,9 @@ FA模型的应用包的工程目录结构,请参考[OpenHarmony工程介绍](h - [`DistributeGraffiti`:分布式涂鸦(ArkTS)(API8)(Full SDK)](https://gitee.com/openharmony/applications_app_samples/tree/master/ability/DistributedGraffiti) - [分布式调度启动远程FA(JS)(API8)](https://gitee.com/openharmony/codelabs/tree/master/Distributed/RemoteStartFA) - [分布式新闻客户端(JS)(API8)](https://gitee.com/openharmony/codelabs/tree/master/Distributed/NewsDemo) -- [分布式手写板(ArkTS)(API8)](https://gitee.com/openharmony/codelabs/tree/master/Distributed/DistributeDatabaseDrawEts) +- [分布式手写板(ArkTS)(Full SDK)(API8)](https://gitee.com/openharmony/codelabs/tree/master/Distributed/DistributeDatabaseDrawEts) - [分布式鉴权(JS)(API8)](https://gitee.com/openharmony/codelabs/tree/master/Distributed/GameAuthOpenH) -- [分布式游戏手柄(ArkTS)(API8)](https://gitee.com/openharmony/codelabs/tree/master/Distributed/HandleGameApplication) -- [分布式邮件(ArkTS)(API8)](https://gitee.com/openharmony/codelabs/tree/master/Distributed/OHMailETS) -- [分布式亲子早教系统(ArkTS)(API8)](https://gitee.com/openharmony/codelabs/tree/master/Distributed/OpenHarmonyPictureGame) -- [分布式遥控器(ArkTS)(API8)](https://gitee.com/openharmony/codelabs/tree/master/Distributed/RemoteControllerETS) \ No newline at end of file +- [分布式游戏手柄(ArkTS)(Full SDK)(API8)](https://gitee.com/openharmony/codelabs/tree/master/Distributed/HandleGameApplication) +- [分布式邮件(ArkTS)(Full SDK)(API8)](https://gitee.com/openharmony/codelabs/tree/master/Distributed/OHMailETS) +- [分布式亲子早教系统(ArkTS)(Full SDK)(API8)](https://gitee.com/openharmony/codelabs/tree/master/Distributed/OpenHarmonyPictureGame) +- [分布式遥控器(ArkTS)(Full SDK)(API8)](https://gitee.com/openharmony/codelabs/tree/master/Distributed/RemoteControllerETS) \ No newline at end of file diff --git a/zh-cn/application-dev/ability-deprecated/stage-ability.md b/zh-cn/application-dev/ability-deprecated/stage-ability.md index 9d46fe84685e67a9426e1f90f3fa2ae906765fe7..6c01bfd65ab80f3928f36dca6d9462d373528872 100644 --- a/zh-cn/application-dev/ability-deprecated/stage-ability.md +++ b/zh-cn/application-dev/ability-deprecated/stage-ability.md @@ -302,3 +302,12 @@ struct Index { } } ``` +## 相关实例 + +基于Stage模型下的Ability开发,有以下相关实例可供参考: + +- [Ability内和Ability间页面的跳转(ArkTS)(API9)](https://gitee.com/openharmony/codelabs/tree/master/Ability/StageAbility) + +- [Stage模型下Ability的创建和使用(ArkTS)(API9)](https://gitee.com/openharmony/codelabs/tree/master/Ability/StageAbilityDemo) + +- [Ability内页面间的跳转(ArkTS)(API9)](https://gitee.com/openharmony/codelabs/tree/master/Ability/PagesRouter) \ No newline at end of file diff --git a/zh-cn/application-dev/ability-deprecated/stage-serviceextension.md b/zh-cn/application-dev/ability-deprecated/stage-serviceextension.md index fd8691f841abfa4d3ce4407b9f849875eb2bda0d..b04c8a609efea09cdfef39d54a811756aabc180f 100644 --- a/zh-cn/application-dev/ability-deprecated/stage-serviceextension.md +++ b/zh-cn/application-dev/ability-deprecated/stage-serviceextension.md @@ -75,4 +75,6 @@ OpenHarmony当前不支持三方应用创建ServiceExtensionAbility。 ## 相关实例 针对ServiceExtensionAbility开发,有以下相关实例可供参考: + +- [`AbilityConnectServiceExtension`:Ability与ServiceExtensionAbility通信(ArkTS)(API9)(Full SDK)](https://gitee.com/openharmony/applications_app_samples/tree/master/ability/AbilityConnectServiceExtension) - [`ServiceExtAbility`:StageExtAbility的创建与使用(ArkTS)(API9)(Full SDK)](https://gitee.com/openharmony/applications_app_samples/tree/master/ability/ServiceExtAbility) diff --git a/zh-cn/application-dev/application-models/Readme-CN.md b/zh-cn/application-dev/application-models/Readme-CN.md index 84810a7ad13e9b1c6926946b1bd3c4777d026cf9..c2832d868702c9a10eef9ad2fb46377028bf34bb 100644 --- a/zh-cn/application-dev/application-models/Readme-CN.md +++ b/zh-cn/application-dev/application-models/Readme-CN.md @@ -19,6 +19,8 @@ - [ServiceExtensionAbility](serviceextensionability.md) - [DataShareExtensionAbility(仅对系统应用开放)](datashareextensionability.md) - [FormExtensionAbility(服务卡片)](widget-development-stage.md) + - [StaticSubscriberExtensionAbility](static-subscriber-extension-ability.md) + - [WindowExtensionAbility](windowextensionability.md) - [AbilityStage组件容器](abilitystage.md) - [应用上下文Context](application-context-stage.md) - 信息传递载体Want diff --git a/zh-cn/application-dev/application-models/accessibilityextensionability.md b/zh-cn/application-dev/application-models/accessibilityextensionability.md new file mode 100644 index 0000000000000000000000000000000000000000..2066ba3f3b7868180745f7a37a6e1e4483b6a33b --- /dev/null +++ b/zh-cn/application-dev/application-models/accessibilityextensionability.md @@ -0,0 +1,124 @@ +# AccessibilityExtensionAbility开发指南 + +AccessibilityExtensionAbility基于ExtensionAbility框架,提供无障碍扩展服务,开发者可以基于AccessibilityExtensionAbility模板开发自己的辅助功能应用,协助用户完成一些快捷的交互过程。 + +> **环境要求** +> +> IDE: DevEco Studio 3.0 Beta3 (3.0.0.900)及以后版本 +> +> SDK: API Version 9 及以后版本 +> +> Model: Stage + +本文档将从以下场景来介绍AccessibilityExtensionAbility的基本开发: + +- [如何创建一个无障碍扩展服务](#如何创建一个无障碍扩展服务) +- [如何处理一个无障碍事件](#如何处理一个无障碍事件) +- [如何声明无障碍扩展服务具备的能力](#如何声明无障碍扩展服务具备的能力) +- [如何开启自定义的无障碍扩展服务](#如何开启自定义的无障碍扩展服务) +- [相关示例](#相关示例) + +## 如何创建一个无障碍扩展服务 + +开发者在创建一个无障碍扩展服务时,如工程满足环境要求,开发者可自主选择是否跳过创建工程步骤,在已有工程中新增无障碍扩展服务。 + +### 创建工程 + +如需新增独立的无障碍扩展服务应用,可按以下步骤进行。在DevEco Studio中新建一个工程,具体步骤如下: +1. 在DevEco Studio的左上角标签栏,选择`File -> New -> Create Project`新建一个工程; +2. 根据工程创建向导,选择`OpenHarmony`标签页,选择`Empty Ability`模板,点击Next,进入项目详细配置页; +3. 选择项目类型为Application,Compile API(高版本为Compile SDK)为9,Model为`Stage`,然后点击Finish完成工程创建。 + +### 新建AccessibilityExtAbility文件 + +在已创建工程的ets文件夹下创建AccessibilityExtAbility文件夹,在该文件夹下创建AccessibilityExtAbility.ts文件,在新增的文件中加入以下代码: + +```typescript +import AccessibilityExtensionAbility from '@ohos.application.AccessibilityExtensionAbility'; + +class AccessibilityExtAbility extends AccessibilityExtensionAbility { + onConnect() { + console.log('AccessibilityExtAbility onConnect'); + } + + onDisconnect() { + console.log('AccessibilityExtAbility onDisconnect'); + } + + onAccessibilityEvent(accessibilityEvent) { + console.log('AccessibilityExtAbility onAccessibilityEvent: ' + JSON.stringify(accessibilityEvent)); + } +} + +export default AccessibilityExtAbility; +``` + +其中,主要定义了以下接口: + +| 接口 | 描述 | +| ---- | ---- | +| onConnect(): void | 当扩展服务连接时回调 | +| onDisconnect(): void | 当扩展服务断开时回调 | +| onAccessibilityEvent(event: AccessibilityEvent): void | 当无障碍事件发生时回调 | + +## 如何处理一个无障碍事件 + +相关无障碍事件可以在`onAccessibilityEvent()`方法中进行业务逻辑处理,具体事件可参考[AccessibilityEvent](../reference/apis/js-apis-application-accessibilityExtensionAbility.md#accessibilityevent)。此处以事件`pageStateUpdate`为例: + +```typescript +onAccessibilityEvent(accessibilityEvent) { + console.log('AccessibilityExtAbility onAccessibilityEvent: ' + JSON.stringify(accessibilityEvent)); + if (accessibilityEvent.eventType === 'pageStateUpdate') { + console.log('AccessibilityExtAbility onAccessibilityEvent: pageStateUpdate'); + // TODO: 自定义相关逻辑开发 + } +} +``` +此外,也可在相应的无障碍事件中,使用[辅助功能扩展上下文(AccessibilityExtensionContext)](../reference/apis/js-apis-inner-application-accessibilityExtensionContext.md)提供的接口进行扩展开发,包括允许配置辅助应用关注信息类型、查询节点信息、手势注入等。 + +## 如何声明无障碍扩展服务具备的能力 + +在完成自定义无障碍扩展服务的逻辑开发后,还需要在工程中Module对应的module.json5文件中加入新增扩展服务的配置信息,其中`srcEntrance`标签为`extensionAbility`对应的路径。需要注意的一点是配置信息中的type标签要按照与无障碍子系统的约定进行配置,固定为`accessibility`,否则将无法正常连接。 + +```json +"extensionAbilities": [ + { + "name": "AccessibilityExtAbility", + "srcEntrance": "./ets/AccessibilityExtAbility/AccessibilityExtAbility.ts", + "label": "$string:MainAbility_label", + "description": "$string:MainAbility_desc", + "type": "accessibility", + "metadata": [ + { + "name": "ohos.accessibleability", + "resource": "$profile:accessibility_config" + } + ] + } +] +``` +另外,配置信息中的`accessibility_config`为无障碍扩展服务的具体配置,需要在`resources/profile/`下新建`accessibility_config.json`文件,在该文件中声明此无障碍扩展服务具备的[能力类型](../reference/apis/js-apis-accessibility.md#capability): +```json +{ + "accessibilityCapabilities": [ + "retrieve", + "gesture" + ] +} +``` +## 如何开启自定义的无障碍扩展服务 + +目前设置中尚未开放无障碍扩展服务开启关闭功能,需要使用命令行进行开启关闭。 +- 开启命令:`accessibility enable -a AccessibilityExtAbility -b com.example.demo -c rg` +- 关闭命令:`accessibility disable -a AccessibilityExtAbility -b com.example.demo` + +其中,`AccessibilityExtAbility`为自定义的无障碍扩展服务名,`com.example.demo`为bundleName,`rg`为无障碍扩展服务具体的类型(其中,r为`retrieve`的首字母,其余同理)。 + +若开启或关闭成功,则会打印`enable ability successfully`或`disable ability successfully`。 + +## 相关示例 + +针对AccessibilityExtensionAbility开发,有以下相关示例可供参考: + +[AccessibilityExtAbility的创建和使用(ArkTS)(API 9)(Full SDK)](https://gitee.com/openharmony/applications_app_samples/tree/master/ability/AccessibilityExtAbility) + diff --git a/zh-cn/application-dev/application-models/actions-entities.md b/zh-cn/application-dev/application-models/actions-entities.md index a03921827b795c847d66cd8d4637b2639cb3b9a0..03dac0817a7f92076f49e4a77eb9da1cd0e69655 100644 --- a/zh-cn/application-dev/application-models/actions-entities.md +++ b/zh-cn/application-dev/application-models/actions-entities.md @@ -1,6 +1,6 @@ # 常见action与entities -**[action](../reference/apis/js-apis-ability-wantConstant.md#wantconstantaction)**:表示调用方要执行的通用操作(如查看、分享、应用详情)。在隐式Want中,您可定义该字段,配合uri或parameters来表示对数据要执行的操作。如打开,查看该uri数据。例如,当uri为一段网址,action为ohos.want.action.viewData则表示匹配可查看该网址的Ability。在Want内声明action字段表示希望被调用方应用支持声明的操作。在被调用方应用配置文件skills字段内声明actions表示该应用支持声明操作。 +**[action](../reference/apis/js-apis-app-ability-wantConstant.md#wantconstantaction)**:表示调用方要执行的通用操作(如查看、分享、应用详情)。在隐式Want中,您可定义该字段,配合uri或parameters来表示对数据要执行的操作。如打开,查看该uri数据。例如,当uri为一段网址,action为ohos.want.action.viewData则表示匹配可查看该网址的Ability。在Want内声明action字段表示希望被调用方应用支持声明的操作。在被调用方应用配置文件skills字段内声明actions表示该应用支持声明操作。 **常见action** @@ -14,7 +14,7 @@ - ACTION_VIEW_MULTIPLE_DATA:发送多个数据记录的操作。 -**[entities](../reference/apis/js-apis-ability-wantConstant.md#wantconstantentity)**:表示目标Ability的类别信息(如浏览器、视频播放器),在隐式Want中是对action的补充。在隐式Want中,开发者可定义该字段,来过滤匹配应用的类别,例如必须是浏览器。在Want内声明entities字段表示希望被调用方应用属于声明的类别。在被调用方应用配置文件skills字段内声明entites表示该应用支持的类别。 +**[entities](../reference/apis/js-apis-app-ability-wantConstant.md#wantconstantentity)**:表示目标Ability的类别信息(如浏览器、视频播放器),在隐式Want中是对action的补充。在隐式Want中,开发者可定义该字段,来过滤匹配应用的类别,例如必须是浏览器。在Want内声明entities字段表示希望被调用方应用属于声明的类别。在被调用方应用配置文件skills字段内声明entites表示该应用支持的类别。 **常用entities** diff --git a/zh-cn/application-dev/application-models/application-component-configuration-stage.md b/zh-cn/application-dev/application-models/application-component-configuration-stage.md index f3003c33be784da4dea8208233bb06634593f0a4..e0d9bdcbff9413cc463ee502f2c4b81c99afa1b8 100644 --- a/zh-cn/application-dev/application-models/application-component-configuration-stage.md +++ b/zh-cn/application-dev/application-models/application-component-configuration-stage.md @@ -15,11 +15,11 @@ - **应用图标和标签配置** - 应用图标需要在工程的AppScope目录下的[app.json5配置文件](../quick-start/app-configuration-file.md)中配置icon标签。应用图标需配置为图片的资源索引,配置完成后,该图片即为应用的图标。应用图标通常用于显示在应用列表中,例如设置中的应用列表。 + Stage模型的应用需要配置应用图标和应用标签。应用图标和标签是在设置应用中使用,例如设置应用中的应用列表,会显示出对应的图标和标签。 - 应用标签需要在工程的AppScope模块下的[app.json5配置文件](../quick-start/app-configuration-file.md)中配置label标签。标识应用对用户显示的名称,需要配置为字符串资源的索引。 + 应用图标需要在工程的AppScope目录下的[app.json5配置文件](../quick-start/app-configuration-file.md)中配置icon标签。应用图标需配置为图片的资源索引,配置完成后,该图片即为应用的图标。 - Stage模型的应用支持单独配置应用图标和标签,在[app.json5配置文件](../quick-start/app-configuration-file.md)中配置。应用图标和标签是在设置应用中使用,例如设置应用中的应用列表,会显示出对应的图标和标签。在app字段下面分别有icon和label字段,根据对应的规则进行配置。 + 应用标签需要在工程的AppScope模块下的[app.json5配置文件](../quick-start/app-configuration-file.md)中配置label标签。标识应用对用户显示的名称,需要配置为字符串资源的索引。 ```json { @@ -33,7 +33,11 @@ - **入口图标和标签配置** - 入口图标和标签需要在[module.json5配置文件](../quick-start/module-configuration-file.md)中配置,在abilities标签下面分别有icon和label标签。例如希望在桌面上显示该UIAbility的图标和标签,则需要在skills标签下面的entities中添加"entity.system.home"、actions中添加"action.system.home"。同一个应用有多个UIAbility配置上述字段时,桌面上会显示出多个图标和标签,分别对应各自的UIAbility。 + Stage模型支持对组件配置入口图标和入口标签。入口图标和入口标签会显示在桌面上。 + + 入口图标需要在[module.json5配置文件](../quick-start/module-configuration-file.md)中配置,在abilities标签下面有icon标签。例如希望在桌面上显示该UIAbility的图标,则需要在skills标签下面的entities中添加"entity.system.home"、actions中添加"action.system.home"。同一个应用有多个UIAbility配置上述字段时,桌面上会显示出多个图标,分别对应各自的UIAbility。 + + 入口标签需要在[module.json5配置文件](../quick-start/module-configuration-file.md)中配置,在abilities标签下面有label标签。例如希望在桌面上显示该UIAbility的图标,则需要在skills标签下面的entities中添加"entity.system.home"、actions中添加"action.system.home"。同一个应用有多个UIAbility配置上述字段时,桌面上会显示出多个标签,分别对应各自的UIAbility。 ```json { diff --git a/zh-cn/application-dev/application-models/application-model-description.md b/zh-cn/application-dev/application-models/application-model-description.md index 0623ea2b00b526e9e45596c5fdb365ce3c401a9f..45fb17804cd9a95d9ec45df33a9973404d392ed3 100644 --- a/zh-cn/application-dev/application-models/application-model-description.md +++ b/zh-cn/application-dev/application-models/application-model-description.md @@ -9,7 +9,7 @@ - Stage模型:OpenHarmony API 9开始新增的模型,是目前主推且会长期演进的模型。在该模型中,由于提供了AbilityStage、WindowStage等类作为应用组件和Window窗口的“舞台”,因此称这种应用模型为Stage模型。 -Stage模型之所以成为主推模型,源于其设计思想。Stage模型的设计基于如下4个出发点。 +Stage模型之所以成为主推模型,源于其设计思想。Stage模型的设计基于如下出发点。 1. **为复杂应用而设计** - 多个应用组件共享同一个ArkTS引擎(运行ArkTS语言的虚拟机)实例,应用组件之间可以方便的共享对象和状态,同时减少复杂应用运行对内存的占用。 diff --git a/zh-cn/application-dev/application-models/dataability-overview.md b/zh-cn/application-dev/application-models/dataability-overview.md index 40a2b556a376ace6c5f4eb9dcc77d052ae175c22..f764dd7148be1bf493f89e79c4c1160e8fd2cd74 100644 --- a/zh-cn/application-dev/application-models/dataability-overview.md +++ b/zh-cn/application-dev/application-models/dataability-overview.md @@ -8,3 +8,9 @@ DataAbility,即"使用Data模板的Ability",主要用于对外部提供统 数据的存放形式多样,可以是数据库,也可以是磁盘上的文件。DataAbility对外提供对数据的增、删、改、查,以及打开文件等接口,这些接口的具体实现由开发者提供。 + +## 相关实例 + +基于DataAbility组件的开发,以下相关实例可供参考: + +- [`DataAbility`:DataAbility的创建与访问(ArkTS)(API8)](https://gitee.com/openharmony/applications_app_samples/tree/master/ability/DataAbility) diff --git a/zh-cn/application-dev/application-models/enterprise-extensionAbility.md b/zh-cn/application-dev/application-models/enterprise-extensionAbility.md new file mode 100644 index 0000000000000000000000000000000000000000..b418036d0faacb55d22a3ae4ed96d5db25a60c1a --- /dev/null +++ b/zh-cn/application-dev/application-models/enterprise-extensionAbility.md @@ -0,0 +1,118 @@ +# EnterpriseAdminExtensionAbility开发指南 + +## EnterpriseAdminExtensionAbility简介 + +企业设备管理扩展能力,是MDM应用必备组件。当开发者为企业开发MDM(Mobilie Device Management)应用时,需继承EnterpriseAdminExtensionAbility,在EnterpriseAdminExtensionAbility实例中实现MDM业务逻辑,EnterpriseAdminExtensionAbility实现了系统管理状态变化通知功能,并定义了管理应用激活、去激活、应用安装、卸载事件等回调接口。 + +## 约束与限制 + +- **_功能限制_** + + 仅支持设备管理员应用使用。 + + +## 场景:监听设备管理器激活、去激活、应用安装、卸载事件 + +## 概述 + +onAdminEnabled:由企业管理员或者员工部署MDM应用,激活设备管理器,系统通知MDM应用已激活DeviceAdmin权限。MDM应用可在onAdminEnabled回调函数中进行初始化策略设置。 + +onAdminDisabled:由系统或者员工去激活设备管理器,通知去激活DeviceAdmin权限,应用可以通知企业管理员设备已脱管。 + +onBundleAdded: 企业应用管理场景下,企业管理员订阅应用安装卸载事件,端侧应用安装和卸载事件通知MDM应用,MDM应用可以在回调函数中进行事件上报,通知企业管理员。 + +onBundleRemoved: 企业应用管理场景下,企业管理员取消订阅应用安装卸载事件。 + +## 接口说明 + +| 类名 | 接口名称 | 描述 | +| :------------------------------ | ----------------------------------------- | ---------------------------- | +| EnterpriseAdminExtensionAbility | onAdminDisabled(): void | 设备管理器应用去激活回调方法 | +| EnterpriseAdminExtensionAbility | onBundleAdded(bundleName: string): void | 应用安装回调方法 | +| EnterpriseAdminExtensionAbility | onAdminEnabled(): void | 设备管理器应用激活回调方法 | +| EnterpriseAdminExtensionAbility | onBundleRemoved(bundleName: string): void | 应用卸载回调方法 | + +## 开发步骤 + +开发者在实现EnterpriseAdminExtensionAbility的时候,需先激活设备管理员应用,并在设备管理员应用的代码目录下载新建ExtensionAbility,具体步骤如下。 + +1. 在工程Module对应的ets目录下,右键选择“New > Directory”,新建一个目录并命名为EnterpriseExtAbility。 +2. 在EnterpriseExtAbility目录,右键选择“New > TypeScript File”,新建一个TypeScript文件并命名为EnterpriseExtAbility.ts。 +3. 打开EnterpriseExtAbility.ts文件,导入EnterpriseAdminExtensionAbility模块,自定义类继承EnterpriseAdminExtensionAbility并加上需要的应用通知回调方法,如onAdminEnabled()、onAdminDisabled()等回调方法。当设备管理员应用被激活或则去激活时,则可以在对应回调方法中接受系统发送通知。 + +```ts +import EnterpriseAdminExtensionAbility from '@ohos.enterprise.EnterpriseAdminExtensionAbility'; + +export default class EnterpriseAdminAbility extends EnterpriseAdminExtensionAbility { + + onAdminEnabled() { + console.info("onAdminEnabled"); + } + + onAdminDisabled() { + console.info("onAdminDisabled"); + } + + onBundleAdded(bundleName: string) { + console.info("EnterpriseAdminAbility onBundleAdded bundleName:" + bundleName) + } + + onBundleRemoved(bundleName: string) { + console.info("EnterpriseAdminAbility onBundleRemoved bundleName" + bundleName) + } +}; +``` + +​ 4.在工程Module对应的[module.json5](../quick-start/module-configuration-file.md)配置文件中注册ServiceExtensionAbility,type标签需要设置为“enterpriseAdmin”,srcEntrance标签表示当前ExtensionAbility组件所对应的代码路径。 + +```ts +"extensionAbilities": [ + { + "name": "ohos.samples.enterprise_admin_ext_ability", + "type": "enterpriseAdmin", + "visible": true, + "srcEntrance": "./ets/enterpriseextability/EnterpriseAdminAbility.ts" + } + ] +``` + +## 使用示例 + +通过@ohos.enterprise.adminManager模块中的subscribeManagedEvent接口和unsubscribeManagedEvent接口进行企业设备管理事件的订阅,订阅应用安装、卸载事件。当订阅成功后,端侧应用安装和卸载事件通知MDM应用,MDM应用可以在回调函数中进行事件上报,通知企业管理员。 + +```ts + @State managedEvents: Array = [0,1] + @State subscribeManagedEventMsg: string = "" + @State unsubscribeManagedEventMsg: string = "" + + async subscribeManagedEventCallback() { + await adminManager.subscribeManagedEvent(this.admin, + [adminManager.ManagedEvent.MANAGED_EVENT_BUNDLE_ADDED, + adminManager.ManagedEvent.MANAGED_EVENT_BUNDLE_REMOVED], (error) => { + if (error) { + this.subscribeManagedEventMsg = 'subscribeManagedEvent Callback::errorCode: ' + error.code + ' errorMessage: ' + error.message + } else { + this.subscribeManagedEventMsg = 'subscribeManagedEvent Callback::success' + } + }) + } + + async unsubscribeManagedEventPromise() { + await adminManager.unsubscribeManagedEvent(this.admin, + [adminManager.ManagedEvent.MANAGED_EVENT_BUNDLE_ADDED, + adminManager.ManagedEvent.MANAGED_EVENT_BUNDLE_REMOVED]).then(() => { + this.unsubscribeManagedEventMsg = 'unsubscribeManagedEvent Promise::success' + }).catch((error) => { + this.unsubscribeManagedEventMsg = 'unsubscribeManagedEvent Promise::errorCode: ' + error.code + ' errorMessage: ' + error.message + }) + } +``` + + + +## 相关实例 + +针对EnterpriseAdminExtensionAbility开发,有以下相关示例可供参考: + +[EnterpriseAdminExtensionAbility:EnterpriseAdminExtensionAbility的创建与使用(ArkTS) (API9)](https://gitee.com/openharmony/applications_app_samples/tree/master/customization/EnterpriseAdminExtensionAbility) + diff --git a/zh-cn/application-dev/application-models/explicit-implicit-want-mappings.md b/zh-cn/application-dev/application-models/explicit-implicit-want-mappings.md index 7708ceff9d8511cce98c3451c28b84e12cd0b807..4d79a19ba55ae1559fb651a669dbb1d7ef459873 100644 --- a/zh-cn/application-dev/application-models/explicit-implicit-want-mappings.md +++ b/zh-cn/application-dev/application-models/explicit-implicit-want-mappings.md @@ -50,7 +50,7 @@ ### want参数的action匹配规则 -将调用方传入的want参数的[action](../reference/apis/js-apis-ability-wantConstant.md#wantconstantaction)与待匹配Ability的skills配置中的actions进行匹配。 +将调用方传入的want参数的[action](../reference/apis/js-apis-app-ability-wantConstant.md#wantconstantaction)与待匹配Ability的skills配置中的actions进行匹配。 - 调用方传入的want参数的action不为空,待匹配Ability的skills配置中的actions为空,则action匹配失败。 @@ -66,7 +66,7 @@ ### want参数的entities匹配规则 -将调用方传入的want参数的[entities](../reference/apis/js-apis-ability-wantConstant.md#wantconstantentity)与待匹配Ability的skills配置中的entities进行匹配。 +将调用方传入的want参数的[entities](../reference/apis/js-apis-app-ability-wantConstant.md#wantconstantentity)与待匹配Ability的skills配置中的entities进行匹配。 - 调用方传入的want参数的entities为空,待匹配Ability的skills配置中的entities不为空,则entities匹配成功。 diff --git a/zh-cn/application-dev/application-models/hop-multi-device-collaboration.md b/zh-cn/application-dev/application-models/hop-multi-device-collaboration.md index 8ef80658209941597a75fc1b8b15b2e326999c75..411f454354fd2c430eff1badf41b759485d9aab0 100644 --- a/zh-cn/application-dev/application-models/hop-multi-device-collaboration.md +++ b/zh-cn/application-dev/application-models/hop-multi-device-collaboration.md @@ -93,7 +93,7 @@ } ``` -4. 设置目标组件参数,调用startAbility()接口,启动UIAbility或ServiceExtensionAbility。 +4. 设置目标组件参数,调用[startAbility()](../reference/apis/js-apis-inner-application-uiAbilityContext.md#uiabilitycontextstartability)接口,启动UIAbility或ServiceExtensionAbility。 ```ts let want = { diff --git a/zh-cn/application-dev/application-models/inputmethodextentionability.md b/zh-cn/application-dev/application-models/inputmethodextentionability.md new file mode 100644 index 0000000000000000000000000000000000000000..0f2f84f321ebf304b3fe8110bd10493e04b47be1 --- /dev/null +++ b/zh-cn/application-dev/application-models/inputmethodextentionability.md @@ -0,0 +1,367 @@ +# InputMethodExtensionAbility开发指南 + +[InputMethodExtensionAbility](../reference/apis/js-apis-inputmethod-extension-ability.md)是inputMethod类型的ExtensionAbility组件,提供输入法框架服务相关扩展能力。 + +[InputMethodExtensionAbility](../reference/apis/js-apis-inputmethod-extension-ability.md)可以被其他组件启动或连接,并根据调用者的请求信息在后台处理相关事务。 + + +InputMethodExtensionAbility通过[InputMethodExtensionContext](../reference/apis/js-apis-inputmethod-extension-context.md)提供相关能力。 + + +## 实现一个输入法应用 + +[InputMethodExtensionAbility](../reference/apis/js-apis-inputmethod-extension-ability.md)提供了onCreate()和onDestory()生命周期回调,根据需要重写对应的回调方法。InputMethodExtensionAbility的生命周期如下: + +- **onCreate** + 服务被首次创建时触发该回调,开发者可以在此进行一些初始化的操作,例如注册公共事件监听等。 + + > **说明:** + > 如果服务已创建,再次启动该InputMethodExtensionAbility不会触发onCreate()回调。 + +- **onDestroy** + 当不再使用服务且准备将其销毁该实例时,触发该回调。开发者可以在该回调中清理资源,如注销监听等。 + + +## 开发步骤 + +开发者在实现一个输入法应用时,需要在DevEco Studio工程中新建一个InputMethodExtensionAbility,具体步骤如下: + +在工程Module对应的ets目录下,右键选择“New > Extention Ability > InputMethod”,即可创建出InputMethodExtensionAbility的最小化模板。 + +最小化模板为一个最基本的输入法应用,包含软键盘拉起以及输入删除功能。后续开发者可在此基础上添加功能,如隐藏键盘等,实现自己的输入法应用。 + +最小化模板主要包含四个文件,分别为KeyboardController.ts、InputMethodService.ts、Index.ets以及KeyboardKeyData.ts。目录如下: + +``` +/src/main/ +├── ets/InputMethodExtAbility +│ └──model/KeyboardController.ts # 显示键盘 +│ └──InputMethodService.ts # 自定义类继承InputMethodExtensionAbility并加上需要的生命周期回调 +│ └──pages +│ └──InputMethodExtAbility +│ └── Index.ets # 绘制键盘,添加输入删除功能 +│ └── KeyboardKeyData.ts # 键盘属性定义 +├── resources/base/profile/main_pages.json +``` + +## 文件介绍 + +1. InputMethodService.ts文件。 + + 在InputMethodService.ts文件中,增加导入InputMethodExtensionAbility的依赖包,自定义类继承InputMethodExtensionAbility并加上需要的生命周期回调。 + + ```ts + import InputMethodExtensionAbility from '@ohos.InputMethodExtensionAbility'; + import { KeyboardController } from './model/KeyboardController' + + export default class InputDemoService extends InputMethodExtensionAbility { + private keyboardController: KeyboardController; + + onCreate(want) { + this.keyboardController = new KeyboardController(this.context); + this.keyboardController.onCreate(); // 初始化窗口并注册对输入法框架的事件监听 + } + + onDestroy() { + console.log("onDestroy."); + this.context.destroy() + } + } + ``` + +2. KeyboardController.ts文件。 + + ```ts + import inputMethodEngine from '@ohos.inputMethodEngine' + import display from '@ohos.display' + import windowManager from '@ohos.window' + + // 调用输入法框架的getInputMethodAbility方法获取实例,并由此实例调用输入法框架功能接口 + globalThis.inputAbility = inputMethodEngine.getInputMethodAbility(); + + export class KeyboardController { + mContext // 保存InputMethodExtensionAbility中的context属性 + WINDOW_TYPE_INPUT_METHOD_FLOAT = 2105 // 定义窗口类型,2105代表输入法窗口类型,用于创建输入法应用窗口 + windowName = 'inputApp'; + private windowHeight: number = 0; + private windowWidth: number = 0; + private nonBarPosition: number = 0; + private isWindowShowing: boolean = false; + + constructor(context) { + this.mContext = context; + } + + public onCreate(): void + { + this.initWindow(); // 初始化窗口 + this.registerListener(); // 注册对输入法框架的事件监听 + } + + public onDestroy(): void // 应用生命周期销毁 + { + this.unRegisterListener(); // 注销事件监听 + var win = windowManager.findWindow(this.windowName) + win.destroyWindow() // 销毁窗口 + this.mContext.terminateSelf(); // 销毁InputMethodExtensionAbility服务 + } + + private initWindow(): void // 初始化窗口 + { + display.getDefaultDisplay().then(dis => { + var dWidth = dis.width; + var dHeight = dis.height; + var keyHeightRate = 0.47; + var keyHeight = dHeight * keyHeightRate; + this.windowWidth = dWidth; + this.windowHeight = keyHeight; + this.nonBarPosition = dHeight - keyHeight + + var config = { + name: this.windowName, + windowType: this.WINDOW_TYPE_INPUT_METHOD_FLOAT, + ctx: this.mContext + } + windowManager.createWindow(config).then((win) => { // 根据窗口类型创建窗口 + win.resize(dWidth, keyHeight).then(() => { + win.moveWindowTo(0, this.nonBarPosition).then(() => { + win.setUIContent('pages/InputMethodExtAbility/Index').then(() => { + }); + }); + }); + }); + }); + } + + private registerListener(): void + { + this.registerInputListener(); // 注册对输入法框架服务的监听 + globalThis.inputAbility.on('keyboardShow', () => { // 注册显示键盘事件监听 + if (this.isWindowShowing) { + return; + } + this.isWindowShowing = true; + this.showHighWindow(); // 显示窗口 + }); + ... + // 注册隐藏键盘事件监听等 + } + + private registerInputListener() { // 注册对输入法框架服务的开启及停止事件监听 + globalThis.inputAbility.on('inputStart', (kbController, textInputClient) => { + globalThis.textInputClient = textInputClient; // 此为输入法客户端实例,由此调用输入法框架提供给输入法应用的功能接口 + globalThis.keyboardController = kbController; + }) + globalThis.inputAbility.on('inputStop', (imeId) => { + if (imeId == "com.example.kikainput/InputDemoService") { + this.onDestroy(); + } + }); + } + + private unRegisterListener(): void + { + globalThis.inputAbility.off('inputStart'); + globalThis.inputAbility.off('inputStop'); + globalThis.inputAbility.off('keyboardShow'); + } + + private showHighWindow() { + var win = windowManager.findWindow(this.windowName) + win.resize(this.windowWidth, this.windowHeight).then(() => { + win.moveWindowTo(0, this.nonBarPosition).then(() => { + win.showWindow().then(() => { + this.isWindowShowing = false; + }) + }) + }) + } + } + ``` + +3. KeyboardKeyData.ts文件。 + + 定义软键盘的按键显示内容。 + + ```ts + export interface sourceListType { + content: string, + } + + export let numberSourceListData: sourceListType[] = [ + { + content: '1' + }, + { + content: '2' + }, + { + content: '3' + }, + { + content: '4' + }, + { + content: '5' + }, + { + content: '6' + }, + { + content: '7' + }, + { + content: '8' + }, + { + content: '9' + }, + { + content: '0' + } + ] + ``` + +4. Index.ets文件。 + + 主要描绘了具体按键功能。如按下数字键,就会将数字内容在输入框中打印出来,按下删除键,就会将内容删除。 + + 同时在resources/base/profile/main_pages.json文件的src字段中添加此文件路径。 + + ```ets + import { numberSourceListData, sourceListType } from './keyboardKeyData' + + @Component + struct keyItem { + private keyValue: sourceListType + @State keyBgc: string = "#fff" + @State keyFontColor: string = "#000" + + build() { + Column() { + Flex({ direction: FlexDirection.Column, + alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Text(this.keyValue.content).fontSize(20).fontColor(this.keyFontColor) + } + } + .backgroundColor(this.keyBgc) + .borderRadius(6) + .width("8%") + .height("65%") + .onTouch((event: TouchEvent) => { + if (event.type === TouchType.Down) { + globalThis.textInputClient.insertText(this.keyValue.content); + } + }) + } + } + + // 删除组件 + @Component + export struct deleteItem { + @State keyBgc: string = "#fff" + @State keyFontColor: string = "#000" + + build() { + Column() { + Flex({ direction: FlexDirection.Column, + alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Text("删除").fontSize(20).fontColor(this.keyFontColor) + } + } + .backgroundColor(this.keyBgc) + .width("13%") + .borderRadius(6) + .onTouch((event: TouchEvent) => { + if (event.type === TouchType.Down) { + globalThis.textInputClient.deleteForward(1); + } + }) + } + } + + // 数字键盘 + @Component + struct numberMenu { + private numberList: sourceListType[] + + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.SpaceEvenly }) { + Flex({ justifyContent: FlexAlign.SpaceBetween }) { + ForEach(this.numberList, (item: sourceListType) => { // 数字键盘第一行 + keyItem({ keyValue: item }) + }, (item: sourceListType) => item.content); + } + .padding({ top: "2%" }) + .width("96%") + .height("25%") + + Flex({ justifyContent: FlexAlign.SpaceBetween }) { + deleteItem() + } + .width("96%") + .height("25%") + } + } + } + + @Entry + @Component + struct Index { + private numberList: sourceListType[] = numberSourceListData + + build() { + Stack() { + Flex({ + direction: FlexDirection.Column, + alignItems: ItemAlign.Center, + justifyContent: FlexAlign.End + }) { + Flex({ + direction: FlexDirection.Column, + alignItems: ItemAlign.Center, + justifyContent: FlexAlign.SpaceBetween + }) { + numberMenu({ + numberList: this.numberList + }) + } + .align(Alignment.End) + .width("100%") + .height("75%") + } + .height("100%").align(Alignment.End).backgroundColor("#cdd0d7") + } + .position({ x: 0, y: 0 }).zIndex(99999) + } + } + ``` + +5. 在工程Module对应的[module.json5配置文件](../quick-start/module-configuration-file.md)中注册InputMethodExtensionAbility,type标签需要设置为“inputMethod”,srcEntrance标签表示当前InputMethodExtensionAbility组件所对应的代码路径。 + + ```ts + { + "module": { + // ... + "extensionAbilities": [ + { + "description": "输入法Demo", + "icon": "$media:icon", + "name": "InputDemoService", + "srcEntrance": "./ets/InputMethodExtAbility/InputMethodService.ts", + "type": "inputMethod", + "visible": true, + } + ] + } + } + ``` + + + + +## 相关示例 + +针对InputMethodExtensionAbility开发,有以下相关示例可供参考: + +[Kika输入法](https://gitee.com/openharmony/applications_app_samples/tree/master/CompleteApps/KikaInput) \ No newline at end of file diff --git a/zh-cn/application-dev/application-models/mission-management-launch-type.md b/zh-cn/application-dev/application-models/mission-management-launch-type.md index 713e62c3dfccc25ca1d9df56ab986c74ba30590d..2ed765ca1a03b809165808c9d42e604c75baa659 100644 --- a/zh-cn/application-dev/application-models/mission-management-launch-type.md +++ b/zh-cn/application-dev/application-models/mission-management-launch-type.md @@ -10,7 +10,7 @@ **图1** 任务与singleton模式 ![mission-and-singleton](figures/mission-and-singleton.png) -- standard:多实例模式,每次调用startAbility()方法,都会在应用进程中创建一个该Ability的实例。 +- standard:多实例模式,每次调用[startAbility()](../reference/apis/js-apis-inner-application-uiAbilityContext.md#uiabilitycontextstartability)方法,都会在应用进程中创建一个该Ability的实例。 **图2** 任务与standard模式 ![mission-and-standard](figures/mission-and-standard.png) diff --git a/zh-cn/application-dev/application-models/mission-management-overview.md b/zh-cn/application-dev/application-models/mission-management-overview.md index df1022b3739b5b85a8606d1dbe005f004d927606..527a00d8dcca4221251bf2bbb9ec4e6ecc7baa75 100644 --- a/zh-cn/application-dev/application-models/mission-management-overview.md +++ b/zh-cn/application-dev/application-models/mission-management-overview.md @@ -28,7 +28,7 @@ - 将一个指定的任务切换到前台。 -一个UIAbility实例对应一个单独的任务,因此应用调用startAbility()方法启动一个UIAbility时,就是创建了一个任务。 +一个UIAbility实例对应一个单独的任务,因此应用调用[startAbility()](../reference/apis/js-apis-inner-application-uiAbilityContext.md#uiabilitycontextstartability)方法启动一个UIAbility时,就是创建了一个任务。 桌面应用调用[missionManager](../reference/apis/js-apis-application-missionManager.md)的接口管理任务,需要申请`ohos.permission.MANAGE_MISSIONS`权限,配置方式请参见[访问控制授权申请](../security/accesstoken-guidelines.md#配置文件权限声明)。 diff --git a/zh-cn/application-dev/application-models/serviceextensionability.md b/zh-cn/application-dev/application-models/serviceextensionability.md index 1d16582fb62e56f7d1edebabbcd4791f230665ad..3804801e9f6863ae3a98786d3ea8d2fe1d071d47 100644 --- a/zh-cn/application-dev/application-models/serviceextensionability.md +++ b/zh-cn/application-dev/application-models/serviceextensionability.md @@ -287,4 +287,5 @@ ServiceExtensionAbility服务组件在[onConnect()](../reference/apis/js-apis-ap 针对ServiceExtensionAbility开发,有以下相关示例可供参考: -[ServiceExtAbility:StageExtAbility的创建与使用(ArkTS)(API9)(Full SDK)](https://gitee.com/openharmony/applications_app_samples/tree/master/ability/ServiceExtAbility) +- [`AbilityConnectServiceExtension`:Ability与ServiceExtensionAbility通信(ArkTS)(API9)(Full SDK)](https://gitee.com/openharmony/applications_app_samples/tree/master/ability/AbilityConnectServiceExtension) +- [`ServiceExtAbility`:StageExtAbility的创建与使用(ArkTS)(API9)(Full SDK)](https://gitee.com/openharmony/applications_app_samples/tree/master/ability/ServiceExtAbility) diff --git a/zh-cn/application-dev/application-models/start-serviceability.md b/zh-cn/application-dev/application-models/start-serviceability.md index 58140a70a3293745350b174b5fa550a341574746..c097ebdee1074f71d8147155d0d8167b11c170bb 100644 --- a/zh-cn/application-dev/application-models/start-serviceability.md +++ b/zh-cn/application-dev/application-models/start-serviceability.md @@ -27,7 +27,7 @@ async function startServiceAbility() { ``` -执行上述代码后,Ability将通过startAbility() 方法来启动ServiceAbility。 +执行上述代码后,Ability将通过[startAbility()](../reference/apis/js-apis-inner-application-uiAbilityContext.md#uiabilitycontextstartability)方法来启动ServiceAbility。 - 如果ServiceAbility尚未运行,则系统会先调用onStart()来初始化ServiceAbility,再回调Service的onCommand()方法来启动ServiceAbility。 diff --git a/zh-cn/application-dev/application-models/static-subscriber-extension-ability.md b/zh-cn/application-dev/application-models/static-subscriber-extension-ability.md new file mode 100644 index 0000000000000000000000000000000000000000..c3710ea14ed77077049e4a7c5289160b5498063d --- /dev/null +++ b/zh-cn/application-dev/application-models/static-subscriber-extension-ability.md @@ -0,0 +1,108 @@ +# StaticSubscriberExtensionAbility开发指导 + +## 场景介绍 + +​公共事件服务提供了动态订阅和静态订阅两种订阅方式。动态订阅即订阅方在运行期调用公共事件订阅的API实现对公共事件的订阅,详见[公共事件订阅](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/application-models/common-event-subscription.md)。与动态订阅相对应的是静态订阅方式,这种方式不需要主动调用公共事件的API,而是通过配置文件声明和实现继承自StaticSubscriberExtensionAbility的类实现对公共事件的订阅。静态订阅者在未接收订阅的目标事件时,处于未拉起状态,当系统或应用发布了指定的公共事件后,静态订阅者将被拉起,并执行onReceiveEvent回调,开发者可通过在onReceiveEvent回调中执行业务逻辑,实现当应用接收到特定公共事件(例如开机事件)时执行业务逻辑的目的。**需要注意的是,静态订阅能力严格受限,相关接口为系统API,仅限于经过系统层面功耗评审的特定系统应用使用**。 + + + +## 开发步骤 + +1. 前置条件 + + 请确保您的应用具备以下特征: + + 1)系统应用 + + 2)使用full-sdk开发 + + 3)经过性能功耗团队评审符合功耗要求,如果您希望在调试阶段尝试使用该功能,可修改系统配置文件/etc/static_subscriber_config.json,将待调试应用的包名添加至json文件中即可。 + + + +2. 静态订阅者声明 + + 声明一个静态订阅者,首先需要在工程中新建一个ExtensionAbility, 该ExtensionAbility从StaticSubscriberExtensionAbility派生,其代码实现如下: + + ```ts + import StaticSubscriberExtensionAbility from '@ohos.application.StaticSubscriberExtensionAbility' + + export default class StaticSubscriber extends StaticSubscriberExtensionAbility { + onReceiveEvent(event) { + console.log('onReceiveEvent, event:' + event.event); + } + } + ``` + + 开发者可以在onReceiveEvent中实现业务逻辑。 + + + +3. 静态订阅者工程配置 + + 在完成静态订阅者的代码实现后,需要将该订阅者配置到系统的module.json5中,配置形式如下: + + ```ts + { + "module": { + ...... + "extensionAbilities": [ + { + "name": "StaticSubscriber", + "srcEntrance": "./ets/StaticSubscriber/StaticSubscriber.ts", + "description": "$string:StaticSubscriber_desc", + "icon": "$media:icon", + "label": "$string:StaticSubscriber_label", + "type": "staticSubscriber", + "visible": true, + "metadata": [ + { + "name": "ohos.extension.staticSubscriber", + "resource": "$profile:subscribe" + } + ] + } + ] + ...... + } + } + ``` + + 上述json文件主要关注以下字段: + + **srcEntrance**: 表示extension的入口文件路径,即步骤2中声明的静态订阅者所在的文件路径 + + **type**: 表示extension的类型,对于静态订阅者需要声明为“staticSubscriber” + + **metadata**: 表示extension的二级配置文件信息。由于不同的extension类型其配置信息不尽相同,因此需要使用不同的config文件表示其具体配置信息。metadata字段共包含两个关键字name和resource。其中name字段表示extension的类型名称,对于静态订阅类型,name必须声明为“ohos.extension.staticSubscriber”,否则无法识别为静态订阅者;resource字段表示extension的配置信息路径,由开发者自行定义,在本例中表示路径为“resources/base/profile/subscribe.json"。 + + metadata指向的二级配置文件的通常形式如下: + + ```ts + { + "commonEvents": [ + { + "name": "xxx", + "permission": "xxx", + "events":[ + "xxx" + ] + } + ] + } + ``` + + 需要注意二级配置文件必须按照此形式进行声明,否则会无法正确识别。下面对字段进行介绍: + + **name**: 静态订阅extension的名称,需要和module.json5中声明的extensionAbility的name一致 + + **permission**:订阅者要求的发布者需要具备的权限,对于发布了目标事件但不具备permission中声明的权限的发布者将被视为非法事件不予发布 + + **events**: 订阅的目标事件列表 + + + +## 相关示例 + +针对StaticSubscriberExtensionAbility开发,可参考如下实例:[StaticSubscriber:静态订阅(ArkTS)(API9)(Full SDK)](https://gitee.com/openharmony/applications_app_samples/tree/master/ability/StaticSubscriber) + diff --git a/zh-cn/application-dev/application-models/uiability-data-sync-with-ui.md b/zh-cn/application-dev/application-models/uiability-data-sync-with-ui.md index 1ab965ef42c2d3d6df911954a0342511bebbcbbf..f1209e81196a1f362e64cd7656426b322b35fcad 100644 --- a/zh-cn/application-dev/application-models/uiability-data-sync-with-ui.md +++ b/zh-cn/application-dev/application-models/uiability-data-sync-with-ui.md @@ -106,10 +106,10 @@ globalThis是ArkTS引擎实例内部的一个全局对象,引擎内部的UIAbi globalThis为[ArkTS引擎实例](thread-model-stage.md)下的全局对象,可以通过globalThis绑定属性/方法来进行UIAbility组件与UI的数据同步。例如在UIAbility组件中绑定want参数,即可在UIAbility对应的UI界面上使用want参数信息。 -1. 调用startAbility()方法启动一个UIAbility实例时,被启动的UIAbility创建完成后会进入onCreate()生命周期回调,且在onCreate()生命周期回调中能够接受到传递过来的want参数,可以将want参数绑定到globalThis上。 +1. 调用[startAbility()](../reference/apis/js-apis-inner-application-uiAbilityContext.md#uiabilitycontextstartability)方法启动一个UIAbility实例时,被启动的UIAbility创建完成后会进入onCreate()生命周期回调,且在onCreate()生命周期回调中能够接受到传递过来的want参数,可以将want参数绑定到globalThis上。 ```ts - import UIAbility from '@ohos.app.ability.UIAbility' + import UIAbility from '@ohos.app.ability.UIAbility'; export default class EntryAbility extends UIAbility { onCreate(want, launch) { diff --git a/zh-cn/application-dev/application-models/uiability-intra-device-interaction.md b/zh-cn/application-dev/application-models/uiability-intra-device-interaction.md index a65a9f3fd0447df4dfd70f2776958cc8f5061883..7c52870b517f6ed8bc8e4028b17d3b770659f0c5 100644 --- a/zh-cn/application-dev/application-models/uiability-intra-device-interaction.md +++ b/zh-cn/application-dev/application-models/uiability-intra-device-interaction.md @@ -26,7 +26,7 @@ UIAbility是系统调度的最小单元。在设备内的功能模块之间跳 假设应用中有两个UIAbility:EntryAbility和FuncAbility(可以在应用的一个Module中,也可以在的不同Module中),需要从EntryAbility的页面中启动FuncAbility。 -1. 在EntryAbility中,通过调用startAbility()方法启动UIAbility,[want](../reference/apis/js-apis-app-ability-want.md)为UIAbility实例启动的入口参数,其中bundleName为待启动应用的Bundle名称,abilityName为待启动的Ability名称,moduleName在待启动的UIAbility属于不同的Module时添加,parameters为自定义信息参数。示例中的context的获取方式参见[获取UIAbility的Context属性](uiability-usage.md#获取uiability的上下文信息)。 +1. 在EntryAbility中,通过调用[startAbility()](../reference/apis/js-apis-inner-application-uiAbilityContext.md#uiabilitycontextstartability)方法启动UIAbility,[want](../reference/apis/js-apis-app-ability-want.md)为UIAbility实例启动的入口参数,其中bundleName为待启动应用的Bundle名称,abilityName为待启动的Ability名称,moduleName在待启动的UIAbility属于不同的Module时添加,parameters为自定义信息参数。示例中的context的获取方式参见[获取UIAbility的Context属性](uiability-usage.md#获取uiability的上下文信息)。 ```ts let wantInfo = { @@ -62,7 +62,7 @@ UIAbility是系统调度的最小单元。在设备内的功能模块之间跳 } ``` -3. 在FuncAbility业务完成之后,如需要停止当前UIAbility实例,在FuncAbility中通过调用terminateSelf()方法实现。 +3. 在FuncAbility业务完成之后,如需要停止当前UIAbility实例,在FuncAbility中通过调用[terminateSelf()](../reference/apis/js-apis-inner-application-uiAbilityContext.md#uiabilitycontextterminateself)方法实现。 ```ts // context为需要停止的UIAbility实例的AbilityContext @@ -70,13 +70,17 @@ UIAbility是系统调度的最小单元。在设备内的功能模块之间跳 // ... }); ``` + + > **说明:** + > + > 调用[terminateSelf()](../reference/apis/js-apis-inner-application-uiAbilityContext.md#uiabilitycontextterminateself)方法停止当前UIAbility实例时,默认会保留该实例的快照(Snapshot),即在最近任务列表中仍然能查看到该实例对应的任务。如不需要保留该实例的快照,可以在其对应UIAbility的[module.json5配置文件](../quick-start/module-configuration-file.md)中,将[abilities标签](../quick-start/module-configuration-file.md#abilities标签)的removeMissionAfterTerminate字段配置为true。 ## 启动应用内的UIAbility并获取返回结果 在一个EntryAbility启动另外一个FuncAbility时,希望在被启动的FuncAbility完成相关业务后,能将结果返回给调用方。例如在应用中将入口功能和帐号登录功能分别设计为两个独立的UIAbility,在帐号登录UIAbility中完成登录操作后,需要将登录的结果返回给入口UIAbility。 -1. 在EntryAbility中,调用startAbilityForResult()接口启动FuncAbility,异步回调中的data用于接收FuncAbility停止自身后返回给EntryAbility的信息。示例中的context的获取方式参见[获取UIAbility的Context属性](uiability-usage.md#获取uiability的上下文信息)。 +1. 在EntryAbility中,调用[startAbilityForResult()](../reference/apis/js-apis-inner-application-uiAbilityContext.md#uiabilitycontextterminateselfwithresult)接口启动FuncAbility,异步回调中的data用于接收FuncAbility停止自身后返回给EntryAbility的信息。示例中的context的获取方式参见[获取UIAbility的Context属性](uiability-usage.md#获取uiability的上下文信息)。 ```ts let wantInfo = { @@ -117,7 +121,7 @@ UIAbility是系统调度的最小单元。在设备内的功能模块之间跳 }); ``` -3. FuncAbility停止自身后,EntryAbility通过startAbilityForResult()方法回调接收被FuncAbility返回的信息,RESULT_CODE需要与前面的数值保持一致。 +3. FuncAbility停止自身后,EntryAbility通过[startAbilityForResult()](../reference/apis/js-apis-inner-application-uiAbilityContext.md#uiabilitycontextterminateselfwithresult)方法回调接收被FuncAbility返回的信息,RESULT_CODE需要与前面的数值保持一致。 ```ts const RESULT_CODE: number = 1001; @@ -145,11 +149,11 @@ UIAbility是系统调度的最小单元。在设备内的功能模块之间跳 - 显式Want启动:启动一个确定应用的UIAbility,在want参数中需要设置该应用bundleName和abilityName,当需要拉起某个明确的UIAbility时,通常使用显式Want启动方式。 -- 隐式Want启动:根据匹配条件由用户选择启动哪一个UIAbility,即不明确指出要启动哪一个UIAbility(abilityName参数未设置),在调用startAbility()方法时,其入参want中指定了一系列的[entities](../reference/apis/js-apis-ability-wantConstant.md#wantconstantentity)字段(表示目标UIAbility额外的类别信息,如浏览器、视频播放器)和[actions](../reference/apis/js-apis-ability-wantConstant.md#wantconstantaction)字段(表示要执行的通用操作,如查看、分享、应用详情等)等参数信息,然后由系统去分析want,并帮助找到合适的UIAbility来启动。当需要拉起其他应用的UIAbility时,开发者通常不知道用户设备中应用的安装情况,也无法确定目标应用的bundleName和abilityName,通常使用隐式Want启动方式。 +- 隐式Want启动:根据匹配条件由用户选择启动哪一个UIAbility,即不明确指出要启动哪一个UIAbility(abilityName参数未设置),在调用[startAbility()](../reference/apis/js-apis-inner-application-uiAbilityContext.md#uiabilitycontextstartability)方法时,其入参want中指定了一系列的[entities](../reference/apis/js-apis-app-ability-wantConstant.md#wantconstantentity)字段(表示目标UIAbility额外的类别信息,如浏览器、视频播放器)和[actions](../reference/apis/js-apis-app-ability-wantConstant.md#wantconstantaction)字段(表示要执行的通用操作,如查看、分享、应用详情等)等参数信息,然后由系统去分析want,并帮助找到合适的UIAbility来启动。当需要拉起其他应用的UIAbility时,开发者通常不知道用户设备中应用的安装情况,也无法确定目标应用的bundleName和abilityName,通常使用隐式Want启动方式。 本章节主要讲解如何通过隐式Want启动其他应用的UIAbility。 -1. 将多个待匹配的文档应用安装到设备,在其对应UIAbility的module.json5配置文件中,配置skills的[entities](../reference/apis/js-apis-ability-wantConstant.md#wantconstantentity)字段和[actions](../reference/apis/js-apis-ability-wantConstant.md#wantconstantaction)字段。 +1. 将多个待匹配的文档应用安装到设备,在其对应UIAbility的[module.json5配置文件](../quick-start/module-configuration-file.md)中,配置skills的[entities](../reference/apis/js-apis-app-ability-wantConstant.md#wantconstantentity)字段和[actions](../reference/apis/js-apis-app-ability-wantConstant.md#wantconstantaction)字段。 ```json { @@ -198,7 +202,7 @@ UIAbility是系统调度的最小单元。在设备内的功能模块之间跳 效果示意如下图所示,点击“打开PDF文档”时,会弹出选择框供用户选择。 uiability-intra-device-interaction -3. 在文档应用使用完成之后,如需要停止当前UIAbility实例,通过调用terminateSelf()方法实现。 +3. 在文档应用使用完成之后,如需要停止当前UIAbility实例,通过调用[terminateSelf()](../reference/apis/js-apis-inner-application-uiAbilityContext.md#uiabilitycontextterminateself)方法实现。 ```ts // context为需要停止的UIAbility实例的AbilityContext @@ -210,9 +214,9 @@ UIAbility是系统调度的最小单元。在设备内的功能模块之间跳 ## 启动其他应用的UIAbility并获取返回结果 -当使用隐式Want启动其他应用的UIAbility并希望获取返回结果时,调用方需要使用startAbilityForResult()方法启动目标UIAbility。例如主应用中需要启动三方支付并获取支付结果。 +当使用隐式Want启动其他应用的UIAbility并希望获取返回结果时,调用方需要使用[startAbilityForResult()](../reference/apis/js-apis-inner-application-uiAbilityContext.md#uiabilitycontextterminateselfwithresult)方法启动目标UIAbility。例如主应用中需要启动三方支付并获取支付结果。 -1. 在支付应用对应UIAbility的module.json5配置文件中,配置skills的[entities](../reference/apis/js-apis-ability-wantConstant.md#wantconstantentity)字段和[actions](../reference/apis/js-apis-ability-wantConstant.md#wantconstantaction)字段。 +1. 在支付应用对应UIAbility的module.json5配置文件中,配置skills的[entities](../reference/apis/js-apis-app-ability-wantConstant.md#wantconstantentity)字段和[actions](../reference/apis/js-apis-app-ability-wantConstant.md#wantconstantaction)字段。 ```json { @@ -238,7 +242,7 @@ UIAbility是系统调度的最小单元。在设备内的功能模块之间跳 } ``` -2. 调用方使用startAbilityForResult()方法启动支付应用的UIAbility,在调用方want参数中的entities和action需要被包含在待匹配UIAbility的skills配置的entities和actions中。异步回调中的data用于后续接收支付UIAbility停止自身后返回给调用方的信息。系统匹配到符合entities和actions参数条件的UIAbility后,会弹出选择框展示匹配到的UIAbility实例列表供用户选择使用。 +2. 调用方使用[startAbilityForResult()](../reference/apis/js-apis-inner-application-uiAbilityContext.md#uiabilitycontextterminateselfwithresult)方法启动支付应用的UIAbility,在调用方want参数中的entities和action需要被包含在待匹配UIAbility的skills配置的entities和actions中。异步回调中的data用于后续接收支付UIAbility停止自身后返回给调用方的信息。系统匹配到符合entities和actions参数条件的UIAbility后,会弹出选择框展示匹配到的UIAbility实例列表供用户选择使用。 ```ts let wantInfo = { @@ -279,7 +283,7 @@ UIAbility是系统调度的最小单元。在设备内的功能模块之间跳 }); ``` -4. 在调用方startAbilityForResult()方法回调中接收支付应用返回的信息,RESULT_CODE需要与前面terminateSelfWithResult()返回的数值保持一致。 +4. 在调用方[startAbilityForResult()](../reference/apis/js-apis-inner-application-uiAbilityContext.md#uiabilitycontextterminateselfwithresult)方法回调中接收支付应用返回的信息,RESULT_CODE需要与前面terminateSelfWithResult()返回的数值保持一致。 ```ts const RESULT_CODE: number = 1001; diff --git a/zh-cn/application-dev/application-models/want-overview.md b/zh-cn/application-dev/application-models/want-overview.md index 2f4e72601056a6bbdf2beb24898f441bee11dd23..a4b2d99348769a9fbed5979c911c542f547b9516 100644 --- a/zh-cn/application-dev/application-models/want-overview.md +++ b/zh-cn/application-dev/application-models/want-overview.md @@ -3,7 +3,7 @@ ## Want的定义与用途 -[Want](../reference/apis/js-apis-app-ability-want.md)是对象间信息传递的载体,可以用于应用组件间的信息传递。其使用场景之一是作为startAbility()的参数,包含了指定的启动目标以及启动时需携带的相关数据,如bundleName和abilityName字段分别指明目标Ability所在应用的Bundle名称以及对应包内的Ability名称。当UIAbilityA启动UIAbilityB并需要传入一些数据给UIAbilityB时,Want可以作为一个载体将数据传给UIAbilityB。 +[Want](../reference/apis/js-apis-app-ability-want.md)是对象间信息传递的载体,可以用于应用组件间的信息传递。其使用场景之一是作为[startAbility()](../reference/apis/js-apis-inner-application-uiAbilityContext.md#uiabilitycontextstartability)的参数,包含了指定的启动目标以及启动时需携带的相关数据,如bundleName和abilityName字段分别指明目标Ability所在应用的Bundle名称以及对应包内的Ability名称。当UIAbilityA启动UIAbilityB并需要传入一些数据给UIAbilityB时,Want可以作为一个载体将数据传给UIAbilityB。 **图1** Want用法示意 usage-of-want diff --git a/zh-cn/application-dev/application-models/widget-development-stage.md b/zh-cn/application-dev/application-models/widget-development-stage.md index 2064bf7b7175cf87f7777103686f41f46395ad58..92ec84dd96bcf6847a3c4f65d1659eabcc1e4b05 100644 --- a/zh-cn/application-dev/application-models/widget-development-stage.md +++ b/zh-cn/application-dev/application-models/widget-development-stage.md @@ -594,6 +594,17 @@ onUpdateForm(formId) { }; ``` +## 限制 + +为了降低FormExtensionAbility能力被三方应用滥用的风险,在FormExtensionAbility中限制以下接口的调用 + +- @ohos.ability.particleAbility.d.ts +- @ohos.backgroundTaskManager.d.ts +- @ohos.resourceschedule.backgroundTaskManager.d.ts +- @ohos.multimedia.camera.d.ts +- @ohos.multimedia.audio.d.ts +- @ohos.multimedia.media.d.ts + ## 相关实例 针对Stage模型卡片提供方的开发,有以下相关实例可供参考: diff --git a/zh-cn/application-dev/application-models/windowextensionability.md b/zh-cn/application-dev/application-models/windowextensionability.md new file mode 100644 index 0000000000000000000000000000000000000000..97123053757adc7f27bc8d61593c7d321b3699ff --- /dev/null +++ b/zh-cn/application-dev/application-models/windowextensionability.md @@ -0,0 +1,120 @@ +# WindowExtensionAbility + + +[WindowExtensionAbility](../reference/apis/js-apis-application-windowExtensionAbility.md)是一种ExtensionAbility组件,用于提供界面组合扩展能力,允许系统应用进行跨应用的界面拉起和嵌入。 + + +WindowExtensionAbility必须和[AbilityComponent](../reference/arkui-ts/ts-container-ability-component.md)一起配合使用,并根据需求处理被拉起应用的业务。WindowExtensionAbility支持以连接形式运行,系统应用必须添加AbilityComponent组件启动WindowExtensionAbility服务。 + + +每个ExtensionAbility都有自己的Context,WindowExtensionAbility通过 +[WindowExtensionContext](../reference/apis/js-apis-inner-application-windowExtensionContext.md)提供相关能力。本文描述中称被启动的WindowExtensionAbility为提供方,称启动WindowExtensionAbility的AbilityComponent组件为使用方。 + +> **说明:** +> +> 本接口为系统接口,如果三方开发者想要实现应用进行跨应用的界面拉起和嵌入,请参考[full-SDK替换指南](../../application-dev/quick-start/full-sdk-switch-guide.md)将SDK替换为full-SDK。 +> + + +## 设置一个嵌入式Ability(仅对系统应用开放) + +WindowExtensionAbility提供了onConnect()、onDisconnect()和onWindowReady()生命周期回调,根据需要重写对应的回调方法。 + +- **onWindowReady**:当该Ability的应用窗口创建成功时触发该回调。 + +- **onConnect**:当窗口扩展组件AbilityComponent连接该Ability时回调。 + +- **onDisconnect**:当窗口扩展组件AbilityComponent断开与该Ability的连接时回调。 + + +**开发步骤** + +开发者在实现一个嵌入式应用时,需要在DevEco Studio工程中手动新建一个WindowExtensionAbility,具体步骤如下。 + +1. 在工程Module对应的ets目录下,右键选择“New > Directory”,新建一个目录并命名为WindowExtAbility。 + +2. 在WindowExtAbility目录,右键选择“New > ts File”,新建一个.ts文件并命名为WindowExtAbility.ts。 + +3. 打开WindowExtAbility.ts文件,导入WindowExtensionAbility的依赖包,自定义类继承WindowExtensionAbility并实现onWindowReady()、onConnect()和onDisconnect()生命周期回调。 + + ```ts + import Extension from '@ohos.application.WindowExtensionAbility' + + export default class WindowExtAbility extends Extension { + onWindowReady(window) { + window.loadContent('WindowExtAbility/pages/index1').then(() => { + window.getProperties().then((pro) => { + console.log("WindowExtension " + JSON.stringify(pro)); + }) + window.show(); + }) + } + + onConnect(want) { + console.info('JSWindowExtension onConnect ' + want.abilityName); + } + + onDisconnect(want) { + console.info('JSWindowExtension onDisconnect ' + want.abilityName); + } + } + ``` + +4. 在工程Module对应的[module.json5配置文件](../quick-start/module-configuration-file.md)中注册WindowExtensionAbility,type标签需要设置为“window”,srcEntrance标签表示当前ExtensionAbility组件所对应的代码路径。 + + ```json + { + "module": { + "extensionAbilities": [ + { + "name": "WindowExtAbility", + "srcEntrance": "./ets/WindowExtAbility/WindowExtAbility.ts", + "icon": "$media:icon", + "description": "WindowExtension", + "type": "window", + "visible": true, + } + ], + } + } + ``` + + +## 拉起一个嵌入式Ability(仅对系统应用开放) + +系统应用可以通过AbilityComponent容器加载创建好的WindowExtensionAbility。 + +**开发步骤** + +1. 开发者在连接一个嵌入式应用时,需要在DevEco Studio工程中相应的pages界面中加入AbilityComponent控件。 + +2. 在AbilityComponent控件中写入正确的bundleName和abilityName。 + +3. 设置好宽高。示例代码如下: + +```ts +@Entry +@Component +struct Index { + @State message: string = 'Hello World' + + build() { + Row() { + Column() { + AbilityComponent({ abilityName: "WindowExtAbility", bundleName: "com.example.WindowExtAbility"}) + .width(500) + .height(500) + } + .width('100%') + } + .height('100%') + .backgroundColor(0x64BB5c) + } +} +``` + +## 相关示例 + +针对WindowExtensionAbility开发,有以下相关示例可供参考: + +- [`WindowExtAbility`:WindowExtAbility的创建与使用(ArkTS)(API9)(Full SDK)](https://gitee.com/openharmony/applications_app_samples/tree/master/ability/WindowExtAbility) diff --git a/zh-cn/application-dev/application-test/arkxtest-guidelines.md b/zh-cn/application-dev/application-test/arkxtest-guidelines.md index 8d31275f5d196b82a936c82c11baa53a17eefa9d..f79e8b5cce3c66e0c16b140c64c16326d76aade3 100644 --- a/zh-cn/application-dev/application-test/arkxtest-guidelines.md +++ b/zh-cn/application-dev/application-test/arkxtest-guidelines.md @@ -58,7 +58,7 @@ DevEco Studio可参考其官网介绍进行[下载](https://developer.harmonyos. ## 新建测试脚本 1. 在DevEco Studio中新建应用开发工程,其中ohos目录即为测试脚本所在的目录。 -2. 在工程目录下打开待测试模块下的ets文件,将光标置于代码中任意位置,单击**右键 > Show Context Actions** **> Create Ohos Test**或快捷键**Alt+enter** **> Create Ohos Test**创建测试类,更多指导请参考DevEco Studio中[指导](https://developer.harmonyos.com/cn/docs/documentation/doc-guides/ohos-openharmony-test-framework-0000001267284568)。 +2. 在工程目录下打开待测试模块下的ets文件,将光标置于代码中任意位置,单击**右键 > Show Context Actions** **> Create Ohos Test**或快捷键**Alt+enter** **> Create Ohos Test**创建测试类,更多指导请参考DevEco Studio中[指导](https://developer.harmonyos.com/cn/docs/documentation/doc-guides/ohos-openharmony-test-framework-0000001263160453)。 ## 编写单元测试脚本 @@ -197,7 +197,8 @@ export default function abilityTest() { | breakOnError | 遇错即停模式,当执行用例断言失败或者发生错误时,退出测试执行流程 | true/false(默认值) | -s breakOnError true | | testType | 指定要执行用例的用例类型 | function,performance,power,reliability, security,global,compatibility,user,standard,safety,resilience' | -s testType function | | level | 指定要执行用例的用例级别 | 0,1,2,3,4 | -s level 0 | -| size | 指定要执行用例的用例规模 | small,medium,large | -s size small | +| size | 指定要执行用例的用例规模 | small,medium,large | -s size small +| stress | 指定要执行用例的执行次数 | 正整数 | -s stress 1000 | **通过在cmd窗口直接执行命令。** @@ -266,6 +267,12 @@ export default function abilityTest() { hdc shell aa test -b xxx -p xxx -s unittest OpenHarmonyTestRunner -s size small ``` +**示例代码11**:执行测试用例指定次数。 + +```shell + hdc shell aa test -b xxx -p xxx -s unittest OpenHarmonyTestRunner -s stress 1000 +``` + **查看测试结果** - cmd模式执行过程,会打印如下相关日志信息。 @@ -412,11 +419,11 @@ UI测试用例执行失败,查看hilog日志发现日志中有“uitest-api do 2.避免多进程执行UI测试用例。 -**3、失败日志有“dose not exist on current UI! Check if the UI has changed after you got the widget object”错误信息** +**3、失败日志有“does not exist on current UI! Check if the UI has changed after you got the widget object”错误信息** **问题描述** -UI测试用例执行失败,查看hilog日志发现日志中有“dose not exist on current UI! Check if the UI has changed after you got the widget object”错误信息。 +UI测试用例执行失败,查看hilog日志发现日志中有“does not exist on current UI! Check if the UI has changed after you got the widget object”错误信息。 **可能原因** diff --git a/zh-cn/application-dev/application-test/figures/Execute.PNG b/zh-cn/application-dev/application-test/figures/Execute.PNG index 49155c9b3406ea477e08273818e52fe026a62737..7c9d9be0d39c8b07c32f351622423085a4086584 100644 Binary files a/zh-cn/application-dev/application-test/figures/Execute.PNG and b/zh-cn/application-dev/application-test/figures/Execute.PNG differ diff --git a/zh-cn/application-dev/application-test/figures/TestResult.PNG b/zh-cn/application-dev/application-test/figures/TestResult.PNG index 300266842efab6da7a4f7469ab8c9e890f238b89..c2938e7f8fbd4ec112506db5b9b9ac03a7b42397 100644 Binary files a/zh-cn/application-dev/application-test/figures/TestResult.PNG and b/zh-cn/application-dev/application-test/figures/TestResult.PNG differ diff --git a/zh-cn/application-dev/connectivity/Readme-CN.md b/zh-cn/application-dev/connectivity/Readme-CN.md index 1a28dc8b9883f6579bdf232b594d48125e3faf12..b9d8b96bc47d12631c05765e6017c84a11d7f9c0 100755 --- a/zh-cn/application-dev/connectivity/Readme-CN.md +++ b/zh-cn/application-dev/connectivity/Readme-CN.md @@ -5,6 +5,10 @@ - [HTTP数据请求](http-request.md) - [WebSocket连接](websocket-connection.md) - [Socket连接](socket-connection.md) + - [策略管理](net-policy-management.md) + - [网络共享](net-sharing.md) + - [以太网连接](net-ethernet.md) + - [网络连接管理](net-connection-manager.md) - IPC与RPC通信 - [IPC与RPC通信概述](ipc-rpc-overview.md) - [IPC与RPC通信开发指导](ipc-rpc-development-guideline.md) diff --git a/zh-cn/application-dev/connectivity/net-connection-manager.md b/zh-cn/application-dev/connectivity/net-connection-manager.md new file mode 100644 index 0000000000000000000000000000000000000000..d609a62b7e728a134b8b670f0914e199da838d38 --- /dev/null +++ b/zh-cn/application-dev/connectivity/net-connection-manager.md @@ -0,0 +1,246 @@ +# 网络连接管理 + +## 简介 +网络连接管理提供管理网络一些基础能力,包括WiFi/蜂窝/Ethernet等多网络连接优先级管理、网络质量评估、订阅默认/指定网络连接状态变化、查询网络连接信息、DNS解析等功能。 + +> **说明:** +> 为了保证应用的运行效率,大部分API调用都是异步的,对于异步调用的API均提供了callback和Promise两种方式,以下示例均采用callback函数,更多方式可以查阅[API参考](../reference/apis/js-apis-net-connection.md)。 + +## 基本概念 +- 网络生产者:数据网络的提供方,比如WiFi、蜂窝、Ethernet等。 +- 网络消费者:数据网络的使用方,比如应用或系统服务。 +- 网络探测:检测网络有效性,避免将网络从可用网络切换到不可用网络。内容包括绑定网络探测、DNS探测、HTTP探测及HTTPS探测。 +- 网络优选:处理多网络共存时选择最优网络。在网络状态、网络信息及评分发生变化时被触发。 + +## 约束 +- 开发语言:C++ JS +- 系统:linux内核 +- 本模块首批接口从API version 8开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 + +## 场景介绍 +网络连接管理的典型场景有: +- 接收指定网络的状态变化通知 +- 获取所有注册的网络 +- 根据数据网络查询网络的连接信息 +- 使用对应网络解析域名,获取所有IP + +以下分别介绍具体开发方式。 +## 接口说明 +完整的JS API说明以及实例代码请参考:[网络连接管理](../reference/apis/js-apis-net-connection.md)。 + +| 类型 | 接口 | 功能说明 | +| ---- | ---- | ---- | +| ohos.net.connection | function getDefaultNet(callback: AsyncCallback\): void; |获取一个含有默认网络的netId的NetHandle对象,使用callback回调 | +| ohos.net.connection | function getGlobalHttpProxy10+(callback: AsyncCallback\): void;| 获取网络的全局代理设置,使用callback回调 | +| ohos.net.connection | function setGlobalHttpProxy10+(httpProxy: HttpProxy, callback: AsyncCallback): void;| 设置网络全局Http代理配置信息,使用callback回调 | +| ohos.net.connection | function getAppNet9+(callback: AsyncCallback\): void;| 获取一个App绑定的包含了网络netId的NetHandle对象,使用callback回调 | +| ohos.net.connection | function setAppNet9+(netHandle: NetHandle, callback: AsyncCallback\): void;| 绑定App到指定网络,绑定后的App只能通过指定网络访问外网。使用callback回调 | +| ohos.net.connection | function getDefaultNetSync9+(): NetHandle; |使用同步方法获取默认激活的数据网络。可以使用getNetCapabilities去获取网络的类型、拥有的能力等信息。| +| ohos.net.connection | function hasDefaultNet(callback: AsyncCallback\): void; |查询是否有默认网络,使用callback回调 | +| ohos.net.connection | function getAllNets(callback: AsyncCallback\>): void;| 获取所处于连接状态的网络的MetHandle对象列表,使用callback回调 | +| ohos.net.connection | function getConnectionProperties(netHandle: NetHandle, callback: AsyncCallback\): void; |查询默认网络的链路信息,使用callback回调 | +| ohos.net.connection | function getNetCapabilities(netHandle: NetHandle, callback: AsyncCallback\): void; |查询默认网络的能力集信息,使用callback回调 | +| ohos.net.connection | function isDefaultNetMetered9+(callback: AsyncCallback): void; |检查当前网络上的数据流量使用是否被计量,使用callback方式作为异步方法 | +| ohos.net.connection | function reportNetConnected(netHandle: NetHandle, callback: AsyncCallback\): void;| 向网络管理报告网络处于可用状态,调用此接口说明应用程序认为网络的可用性(ohos.net.connection.NetCap.NET_CAPABILITY_VAILDATED)与网络管理不一致。使用callback回调 | +| ohos.net.connection | function reportNetDisconnected(netHandle: NetHandle, callback: AsyncCallback\): void;| 向网络管理报告网络处于不可用状态,调用此接口说明应用程序认为网络的可用性(ohos.net.connection.NetCap.NET_CAPABILITY_VAILDATED)与网络管理不一致。使用callback回调 | +| ohos.net.connection | function getAddressesByName(host: string, callback: AsyncCallback\>): void; |使用对应网络解析域名,获取所有IP,使用callback回调 | +| ohos.net.connection | function enableAirplaneMode(callback: AsyncCallback\): void; | 设置网络为飞行模式,使用callback回调 | +| ohos.net.connection | function disableAirplaneMode(callback: AsyncCallback\): void;| 关闭网络飞行模式,使用callback回调 | +| ohos.net.connection | function createNetConnection(netSpecifier?: NetSpecifier, timeout?: number): NetConnection; | 返回一个NetConnection对象,netSpecifier指定关注的网络的各项特征,timeout是超时时间(单位是毫秒),netSpecifier是timeout的必要条件,两者都没有则表示关注默认网络 | +| ohos.net.connection.NetHandle | bindSocket(socketParam: TCPSocket \| UDPSocket, callback: AsyncCallback\): void; | 将TCPSocket或UDPSockett绑定到当前网络,使用callback回调 | +| ohos.net.connection.NetHandle | getAddressesByName(host: string, callback: AsyncCallback\>): void; |使用默认网络解析域名,获取所有IP,使用callback回调 | +| ohos.net.connection.NetHandle | getAddressByName(host: string, callback: AsyncCallback\): void; |使用对应网络解析域名,获取一个IP,调用callbac | +| ohos.net.connection.NetConnection | on(type: 'netAvailable', callback: Callback\): void; |监听收到网络可用的事件 | +| ohos.net.connection.NetConnection | on(type: 'netCapabilitiesChange', callback: Callback\<{ netHandle: NetHandle, netCap: NetCapabilities }>): void; |监听网络能力变化的事件 | +| ohos.net.connection.NetConnection | on(type: 'netConnectionPropertiesChange', callback: Callback\<{ netHandle: NetHandle, connectionProperties: ConnectionProperties }>): void; |监听网络连接信息变化的事件 | +| ohos.net.connection.NetConnection | on(type: 'netBlockStatusChange', callback: Callback<{ netHandle: NetHandle, blocked: boolean }>): void; |订阅网络阻塞状态事件,使用callback方式作为异步方法 | +| ohos.net.connection.NetConnection | on(type: 'netLost', callback: Callback\): void; |监听网络丢失的事件 | +| ohos.net.connection.NetConnection | on(type: 'netUnavailable', callback: Callback\): void; |监听网络不可用的事件 | +| ohos.net.connection.NetConnection | register(callback: AsyncCallback\): void; |注册默认网络或者createNetConnection中指定的网络的监听 | +| ohos.net.connection.NetConnection | unregister(callback: AsyncCallback\): void; |注销默认网络或者createNetConnection中指定的网络的监听 | + +## 接收指定网络的状态变化通知 + +1. 从@ohos.net.connection.d.ts中导入connection命名空间。 + +2. 调用createNetConnection方法,指定网络能力、网络类型和超时时间(可选,如不传入代表默认网络;创建不同于默认网络时可通过指定这些参数完成),创建一个NetConnection对象。 + +3. 调用该对象的on()方法,传入type和callback,订阅关心的事件。 + +4. 调用该对象的register()方法,订阅指定网络状态变化的通知。 + +5. 当网络可用时,会收到netAvailable事件的回调;当网络不可用时,会收到netUnavailable事件的回调。 + +6. 当不使用该网络时,可以调用该对象的unregister()方法,取消订阅。 + +```js + // 引入包名 + import connection from '@ohos.net.connection' + + let netCap = { + // 假设当前默认网络是WiFi,需要创建蜂窝网络连接,可指定网络类型为蜂窝网 + bearerTypes: [connection.NetBearType.BEARER_CELLULAR], + // 指定网络能力为Internet + networkCap: [connection.NetCap.NET_CAPABILITY_INTERNET], + }; + let netSpec = { + netCapabilities: netCap, + }; + + // 指定超时时间为10s(默认值为0) + let timeout = 10 * 1000; + + // 创建NetConnection对象 + let conn = connection.createNetConnection(netSpec, timeout); + + // 订阅事件,如果当前指定网络可用,通过on_netAvailable通知用户 + conn.on('netAvailable', (data=> { + console.log("net is available, netId is " + data.netId); + })); + + // 订阅事件,如果当前指定网络不可用,通过on_netUnavailable通知用户 + conn.on('netUnavailable', (data=> { + console.log("net is unavailable, netId is " + data.netId); + })); + + // 订阅指定网络状态变化的通知 + conn.register((err, data) => {}); + + // 当不使用该网络时,可以调用该对象的unregister()方法,取消订阅 + conn.unregister((err, data) => {}); +``` + +## 获取所有注册的网络 + +### 开发步骤 + +1. 从@ohos.net.connection.d.ts中导入connection命名空间。 + +2. 调用getAllNets方法,获取所有处于连接状态的网络列表。 + +```js + // 引入包名 + import connection from '@ohos.net.connection' + + // 获取所有处于连接状态的网络列表 + connection.getAllNets((err, data) => { + console.log(JSON.stringify(err)); + console.log(JSON.stringify(data)); + if (data) { + this.netList = data; + } + }) +``` + +## 根据数据网络查询网络的能力信息及连接信息 + +### 开发步骤 + +1. 从@ohos.net.connection.d.ts中导入connection命名空间。 + +2. 通过调用getDefaultNet方法,获取默认的数据网络(NetHandle);或者通过调用getAllNets方法,获取所有处于连接状态的网络列表(Array\)。 + +3. 调用getNetCapabilities方法,获取NetHandle对应网络的能力信息。能力信息包含了网络类型(蜂窝网络、Wi-Fi网络、以太网网络等)、网络具体能力等网络信息。 + +4. 调用getConnectionProperties方法,获取NetHandle对应网络的连接信息。 + +```js + // 引入包名 + import connection from '@ohos.net.connection' + + // 调用getDefaultNet方法,获取默认的数据网络(NetHandle) + connection.getDefaultNet((err, data) => { + console.log(JSON.stringify(err)); + console.log(JSON.stringify(data)); + if (data) { + this.netHandle = data; + } + }) + + // 获取netHandle对应网络的能力信息。能力信息包含了网络类型、网络具体能力等网络信息 + connection.getNetCapabilities(this.netHandle, (err, data) => { + console.log(JSON.stringify(err)); + + // 获取网络类型(bearerTypes) + for (let item of data.bearerTypes) { + if (item == 0) { + // 蜂窝网 + console.log(JSON.stringify("BEARER_CELLULAR")); + } else if (item == 1) { + // Wi-Fi网络 + console.log(JSON.stringify("BEARER_WIFI")); + } else if (item == 3) { + // 以太网网络 + console.log(JSON.stringify("BEARER_ETHERNET")); + } + } + + // 获取网络具体能力(networkCap) + for (let item of data.networkCap) { + if (item == 0) { + // 表示网络可以访问运营商的MMSC(Multimedia Message Service,多媒体短信服务)发送和接收彩信 + console.log(JSON.stringify("NET_CAPABILITY_MMS")); + } else if (item == 11) { + // 表示网络流量未被计费 + console.log(JSON.stringify("NET_CAPABILITY_NOT_METERED")); + } else if (item == 12) { + // 表示该网络应具有访问Internet的能力,该能力由网络提供者设置 + console.log(JSON.stringify("NET_CAPABILITY_INTERNET")); + } else if (item == 15) { + // 表示网络不使用VPN(Virtual Private Network,虚拟专用网络) + console.log(JSON.stringify("NET_CAPABILITY_NOT_VPN")); + } else if (item == 16) { + // 表示该网络访问Internet的能力被网络管理成功验证,该能力由网络管理模块设置 + console.log(JSON.stringify("NET_CAPABILITY_VALIDATED")); + } + } + }) + + // 获取netHandle对应网络的连接信息。连接信息包含了链路信息、路由信息等 + connection.getConnectionProperties(this.netHandle, (err, data) => { + console.log(JSON.stringify(err)); + console.log(JSON.stringify(data)); + }) + + // 调用getAllNets,获取所有处于连接状态的网络列表(Array) + connection.getAllNets((err, data) => { + console.log(JSON.stringify(err)); + console.log(JSON.stringify(data)); + if (data) { + this.netList = data; + } + }) + + for (let item of this.netList) { + // 循环获取网络列表每个netHandle对应网络的能力信息 + connection.getNetCapabilities(item, (err, data) => { + console.log(JSON.stringify(err)); + console.log(JSON.stringify(data)); + }) + + // 循环获取网络列表每个netHandle对应的网络的连接信息 + connection.getConnectionProperties(item, (err, data) => { + console.log(JSON.stringify(err)); + console.log(JSON.stringify(data)); + }) + } +``` + +## 使用对应网络解析域名,获取所有IP + +### 开发步骤 + +1. 从@ohos.net.connection.d.ts中导入connection命名空间。 + +2. 调用getAddressesByName方法,使用默认网络解析主机名以获取所有IP地址。 + +```js + // 引入包名 + import connection from '@ohos.net.connection' + + // 使用默认网络解析主机名以获取所有IP地址 + connection.getAddressesByName(this.host, (err, data) => { + console.log(JSON.stringify(err)); + console.log(JSON.stringify(data)); + }) +``` diff --git a/zh-cn/application-dev/connectivity/net-ethernet.md b/zh-cn/application-dev/connectivity/net-ethernet.md new file mode 100644 index 0000000000000000000000000000000000000000..5a324646920897e2f5b552618d1f33e213c25fbd --- /dev/null +++ b/zh-cn/application-dev/connectivity/net-ethernet.md @@ -0,0 +1,140 @@ +# 以太网连接 + +## 简介 +以太网连接的功能是提供支持设备通过硬件接口,以插入网线的形式访问互联网的能力。 +设备接入网线后,可以获取动态分配的IP地址,子网掩码,Gateway,DNS等一系列网络属性;通过静态模式,手动配置与获取设备的网络属性。 + +> **说明:** +> 为了保证应用的运行效率,大部分API调用都是异步的,对于异步调用的API均提供了callback和Promise两种方式,以下示例均采用callback函数,更多方式可以查阅[API参考](../reference/apis/js-apis-net-ethernet.md)。 + +## 约束 +- 开发语言:C++ JS +- 系统:linux内核 +- 本模块首批接口从API version 9开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 + +## 场景介绍 +以太网连接的典型场景有: +- DHCP模式,通过动态分配IP地址,子网掩码,Gateway,DNS等一系列网络属性,使能访问网络。 +- 静态模式,通过静态配置IP地址,子网掩码,Gateway,DNS等一系列网络属性,使能访问网络。 + +以下分别介绍具体开发方式。 + +## 接口说明 +完整的JS API说明以及实例代码请参考:[以太网连接](../reference/apis/js-apis-net-ethernet.md)。 + +| 类型 | 接口 | 功能说明 | +| ---- | ---- | ---- | +| ohos.net.ethernet | function setIfaceConfig(iface: string, ic: InterfaceConfiguration, callback: AsyncCallback\): void | 配置指定以太网的网络属性,iface为网口名称,ic为配置信息,调用callback | +| ohos.net.ethernet | function getIfaceConfig(iface: string, callback: AsyncCallback\): void | 获取指定以太网的网络属性,iface为网口名称,调用callback | +| ohos.net.ethernet | function isIfaceActive(iface: string, callback: AsyncCallback\): void | 判断指定网口是否已激活,iface为网卡名称(无参为是否有激活网口),调用callback | +| ohos.net.ethernet | function getAllActiveIfaces(callback: AsyncCallback\>): void; | 获取所有活动的网络接口,调用callback | + +## 以太网连接-DHCP模式 + +1. 设备通过硬件接口,插入网线。 +2. 从@ohos.net.ethernet中导入ethernet命名空间。 +3. 调用getAllActiveIfaces方法,获取所有激活的有线网卡名称,如:“eth0”,“eth1”。 +4. 用户态通过isIfaceActive方法,来判断网口“eth0”是否已激活。 +5. 用户态通过getIfaceConfig方法,来获取指定网口“eth0”的网络属性,未设置过的以太网络默认为DHCP模式,获取自动分配的网络属性。 + +```js + // 从@ohos.net.ethernet中导入ethernet命名空间 + import ethernet from '@ohos.net.ethernet' + + // getAllActiveIfaces获取所有活动的网络设备名称 + ethernet.getAllActiveIfaces((error, data) => { + if (error) { + console.log("getAllActiveIfaces callback error = " + error); + } else { + console.log("getAllActiveIfaces callback data.length = " + data.length); + for (let i = 0; i < data.length; i++) { + console.log("getAllActiveIfaces callback = " + data[i]); + } + } + }); + + // isIfaceActive判断指定网口是否已激活 + ethernet.isIfaceActive("eth0", (error, data) => { + if (error) { + console.log("isIfaceActive callback error = " + error); + } else { + console.log("isIfaceActive callback = " + data); + } + }); + + // getIfaceConfig获取指定以太网的网络属性 + ethernet.getIfaceConfig("eth0", (error, data) => { + if (error) { + console.log("getIfaceConfig callback error = " + error); + } else { + console.log("getIfaceConfig callback mode = " + data.mode); + console.log("getIfaceConfig callback ipAddr = " + data.ipAddr); + console.log("getIfaceConfig callback routeAddr = " + data.routeAddr); + console.log("getIfaceConfig callback gateAddr = " + data.gateAddr); + console.log("getIfaceConfig callback maskAddr = " + data.maskAddr); + console.log("getIfaceConfig callback dns0Addr = " + data.dns0Addr); + console.log("getIfaceConfig callback dns1Addr = " + data.dns1Addr); + } + }); +``` +## 以太网连接-静态模式 + +### 开发步骤 + +1. 设备通过硬件接口,插入网线。 +2. 从@ohos.net.ethernet中导入ethernet命名空间。 +3. 用户态通过getAllActiveIfaces方法,来获取所有活动的网络设备名称,如:“eth0”,“eth1”。 +4. 用户态通过isIfaceActive方法,来判断网口“eth0”是否已激活。 +5. 用户态调用setIfaceConfig方法,来设置指定网口"eth0"为静态模式,手动IP地址,子网掩码,Gateway,DNS等网络属性。 +6. 用户态通过getIfaceConfig方法,来获取指定网口“eth0”的静态网络属性。 + +```js + // 从@ohos.net.ethernet中导入ethernet命名空间 + import ethernet from '@ohos.net.ethernet' + + // getAllActiveIfaces获取所有活动的网络设备名称 + ethernet.getAllActiveIfaces((error, data) => { + if (error) { + console.log("getAllActiveIfaces callback error = " + error); + } else { + console.log("getAllActiveIfaces callback data.length = " + data.length); + for (let i = 0; i < data.length; i++) { + console.log("getAllActiveIfaces callback = " + data[i]); + } + } + }); + + // isIfaceActive判断指定网口是否已激活 + ethernet.isIfaceActive("eth0", (error, data) => { + if (error) { + console.log("isIfaceActive callback error = " + error); + } else { + console.log("isIfaceActive callback = " + data); + } + }); + + // setIfaceConfig配置指定以太网的网络属性 + ethernet.setIfaceConfig("eth0", {mode:ethernet.STATIC,ipAddr:"192.168.xx.xx", routeAddr:"192.168.xx.xx", + gateAddr:"192.168.xx.xx", maskAddr:"255.255.xx.xx", dnsAddr0:"1.1.xx.xx", dnsAddr1:"2.2.xx.xx"},(error) => { + if (error) { + console.log("setIfaceConfig callback error = " + error); + } else { + console.log("setIfaceConfig callback ok "); + } + }); + + // getIfaceConfig获取指定以太网的网络属性 + ethernet.getIfaceConfig("eth0", (error, data) => { + if (error) { + console.log("getIfaceConfig callback error = " + error); + } else { + console.log("getIfaceConfig callback mode = " + data.mode); + console.log("getIfaceConfig callback ipAddr = " + data.ipAddr); + console.log("getIfaceConfig callback routeAddr = " + data.routeAddr); + console.log("getIfaceConfig callback gateAddr = " + data.gateAddr); + console.log("getIfaceConfig callback maskAddr = " + data.maskAddr); + console.log("getIfaceConfig callback dns0Addr = " + data.dns0Addr); + console.log("getIfaceConfig callback dns1Addr = " + data.dns1Addr); + } + }); +``` diff --git a/zh-cn/application-dev/connectivity/net-mgmt-overview.md b/zh-cn/application-dev/connectivity/net-mgmt-overview.md index dcb27c69e07d6d4dae5e4d446dab144d02e88c08..30846a21c524a0f5e4ef9c9f0b95c2f39b6b614a 100644 --- a/zh-cn/application-dev/connectivity/net-mgmt-overview.md +++ b/zh-cn/application-dev/connectivity/net-mgmt-overview.md @@ -5,6 +5,10 @@ - [HTTP数据请求](http-request.md):通过HTTP发起一个数据请求。 - [WebSocket连接](websocket-connection.md):使用WebSocket建立服务器与客户端的双向连接。 - [Socket连接](socket-connection.md):通过Socket进行数据传输。 +- [网络策略管理](net-policy-management.md):提供一些限制网络的基础能力,包括蜂窝网络策略、休眠/省电模式策略、后台网络策略、重置网络策略等功能。 +- [网络共享](net-sharing.md):分享设备已有网络给其他连接设备,支持Wi-Fi热点共享、蓝牙共享和USB共享,同时提供网络共享状态、共享流量查询功能。 +- [以太网连接](net-ethernet.md):以太网连接主要提供有线网络能力,提供设置有线网络的IP地址,子网掩码,网关,DNS等信息。 +- [网络连接管理](net-connection-manager.md):网络连接管理提供管理网络一些基础能力,包括WiFi/蜂窝/Ethernet等多网络连接优先级管理、网络质量评估、订阅默认/指定网络连接状态变化、查询网络连接信息、DNS解析等功能。 ## 约束与限制 diff --git a/zh-cn/application-dev/connectivity/net-policy-management.md b/zh-cn/application-dev/connectivity/net-policy-management.md new file mode 100644 index 0000000000000000000000000000000000000000..01b2305c44eeba0452611a127dda3a7752845054 --- /dev/null +++ b/zh-cn/application-dev/connectivity/net-policy-management.md @@ -0,0 +1,402 @@ +# 网络策略管理部件 + +## 简介 + +网络策略管理提供一些限制网络的基础能力,包括蜂窝网络策略、休眠/省电模式策略、后台网络策略、重置网络策略等功能。 + +> **说明:** +> 为了保证应用的运行效率,大部分API调用都是异步的,对于异步调用的API均提供了callback和Promise两种方式,以下示例均采用callback函数,更多方式可以查阅[API参考](../reference/apis/js-apis-net-policy.md)。 + +## 基本概念 + +- 休眠模式:设备在不需要工作的时候把一些部件、外设关掉(进入低功耗模式),并限制部分应用对网络的访问。 +- 省电模式:省电模式是系统里的一个开关,开启后会降低设备的性能,并限制部分应用对网络的访问。 +- 省流量模式:即后台网络策略,对处于后台的使用计量网络的应用进行限制。 +- 蜂窝网络:移动通信网络。 +- 计量网络:设置了流量配额的电话卡网络、Wlan网络以及以太网。 + +## 约束 + +- 开发语言:C++ JS +- 系统:linux内核 +- 本模块首批接口从API version 9开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 + +## 场景介绍 + +网络策略管理的典型场景有: + +- 设置计量网络配额/获取已经设置的计量网络策略 +- 后台网络限制开关/获取后台网络限制状态/获取指定uid在后台状态下能否访问网络 +- 设定指定uid访问计量网络的策略/获取指定uid访问计量网络的策略/获取设置了对应策略的uids +- 重置网络策略 +- 判断uid能否访问计量/非计量网络 +- 将对应uid从休眠白名单里添加、移除/获取休眠模式的白名单列表 +- 将对应uid从省电白名单里添加、移除/获取省电模式的白名单列表 +- 更新网络提醒策略 + +以下分别介绍具体开发方式。 + +## 接口说明 + +完整的JS API说明以及实例代码请参考:[网络策略管理](../reference/apis/js-apis-net-policy.md)。 + +| 类型 | 接口 | 功能说明 | +| ---- | ---- | ---- | +| ohos.net.policy | function setBackgroundPolicy(isAllowed: boolean, callback: AsyncCallback\): void |设置后台网络策略,使用callback方式作为异步方法 | +| ohos.net.policy | function isBackgroundAllowed(callback: AsyncCallback\): void; |获取后台网络策略,使用callback方式作为异步方法 | +| ohos.net.policy | function setPolicyByUid(uid: number, policy: NetUidPolicy, callback: AsyncCallback\): void; |设置对应uid应用的访问计量网络的策略,使用callback方式作为异步方法 | +| ohos.net.policy | function getPolicyByUid(uid: number, callback: AsyncCallback\): void;| 通过应用uid获取策略,使用callback方式作为异步方法 | +| ohos.net.policy | function getUidsByPolicy(policy: NetUidPolicy, callback: AsyncCallback\>): void; | 通过策略获取设置这一策略的应用uid数组,使用callback方式作为异步方法 | +| ohos.net.policy | function getNetQuotaPolicies(callback: AsyncCallback\>): void; |获取计量网络策略,使用callback方式作为异步方法 | +| ohos.net.policy | function setNetQuotaPolicies(quotaPolicies: Array\, callback: AsyncCallback\): void; |设置计量网络策略,使用callback方式作为异步方法 | +| ohos.net.policy | function restoreAllPolicies(iccid: string, callback: AsyncCallback\): void; | 重置对应sim卡id的蜂窝网络、后台网络策略、防火墙策略、应用对应的策略,使用callback方式作为异步方法 | +| ohos.net.policy | function isUidNetAllowed(uid: number, isMetered: boolean, callback: AsyncCallback\): void; | 获取对应uid能否访问计量或非计量网络,使用callback方式作为异步方法 | +| ohos.net.policy | function isUidNetAllowed(uid: number, iface: string, callback: AsyncCallback\): void; | 获取对应uid能否访问指定的iface的网络,使用callback方式作为异步方法 | +| ohos.net.policy | function setDeviceIdleAllowList(uid: number, isAllowed: boolean, callback: AsyncCallback\): void; | 设置指定uid应用是否在休眠防火墙的白名单,使用callback方式作为异步方法 | +| ohos.net.policy | function getDeviceIdleAllowList(callback: AsyncCallback\>): void; | 获取休眠模式白名单所包含的uid数组,使用callback方式作为异步方法 | +| ohos.net.policy | function getBackgroundPolicyByUid(uid: number, callback: AsyncCallback\): void; | 获取指定uid能否访问后台网络,使用callback方式作为异步方法 | +| ohos.net.policy | function resetPolicies(iccid: string, callback: AsyncCallback\): void; | 重置对应sim卡id的蜂窝网络、后台网络策略、防火墙策略、应用对应的策略,使用callback方式作为异步方法 | +| ohos.net.policy | function updateRemindPolicy(netType: NetBearType, iccid: string, remindType: RemindType, callback: AsyncCallback\): void; | 更新提醒策略,使用callback方式作为异步方法 | +| ohos.net.policy | function setPowerSaveAllowList(uid: number, isAllowed: boolean, callback: AsyncCallback\): void; | 设置指定uid应用是否在省电防火墙的白名单,使用callback方式作为异步方法 | +| ohos.net.policy | function getPowerSaveAllowList(callback: AsyncCallback\>): void; | 获取省电模式白名单所包含的uid数组,使用callback方式作为异步方法 | +| ohos.net.policy | function on(type: "netUidPolicyChange", callback: Callback\<{ uid: number, policy: NetUidPolicy }>): void; | 订阅policy发生改变时的回调,使用callback方式作为异步方法 | +| ohos.net.policy | function off(type: "netUidPolicyChange", callback: Callback\<{ uid: number, policy: NetUidPolicy }>): void; | 取消订阅policy发生改变时的回调,使用callback方式作为异步方法 | +| ohos.net.policy | function on(type: "netUidRuleChange", callback: Callback\<{ uid: number, rule: NetUidRule }>): void; | 订阅rule发生改变时的回调,使用callback方式作为异步方法 | +| ohos.net.policy | function off(type: "netUidRuleChange", callback: Callback\<{ uid: number, rule: NetUidRule }>): void; | 取消订阅rule发生改变时的回调,使用callback方式作为异步方法 | +| ohos.net.policy | function on(type: "netMeteredIfacesChange", callback: Callback\>): void; | 订阅计量iface发生改变时的回调,使用callback方式作为异步方法 | +| ohos.net.policy | function off(type: "netMeteredIfacesChange", callback: Callback\>): void; | 取消订阅计量iface发生改变时的回调,使用callback方式作为异步方法 | +| ohos.net.policy | function on(type: "netQuotaPolicyChange", callback: Callback\>): void; | 订阅计量网络策略发生改变时的回调,使用callback方式作为异步方法 | +| ohos.net.policy | function off(type: "netQuotaPolicyChange", callback: Callback\>): void; | 取消订阅计量网络策略发生改变时的回调,使用callback方式作为异步方法 | +| ohos.net.policy | function on(type: "netBackgroundPolicyChange", callback: Callback\): void; | 订阅后台网络策略发生改变时的回调,使用callback方式作为异步方法 | +| ohos.net.policy | function off(type: "netBackgroundPolicyChange", callback: Callback\): void; | 取消订阅后台网络策略发生改变时的回调,使用callback方式作为异步方法 | + +## 设置计量网络配额/获取已经设置的计量网络策略 + +1. 从@ohos.net.policy.d.ts中导入policy命名空间。 + +2. 调用setNetQuotaPolicies方法,设置计量网络策略。 + +3. 调用getNetQuotaPolicies方法,获取计量网络策略。 + +```js + // 引入包名 + import policy from '@ohos.net.policy'; + + addNetQuotaPolicy(){ + let param = { + // netType值详见 [NetBearType](../reference/apis/js-apis-net-connection.md#netbeartype) + netType:Number.parseInt(this.netType), + + // 计量蜂窝网络的SIM卡的标识值。以太网,wifi网络不会用到 + iccid:this.iccid, + + // 计量蜂窝网络中配合iccid联合使用。以太网,wifi网络单独使用。用于标记类型 + ident:this.ident, + + // 计量开始时间。例如M1、D1、Y1等 + periodDuration:this.periodDuration, + + // 发出警告的流量阈值 大于0的整数即可 + warningBytes:Number.parseInt(this.warningBytes), + + // 流量设置的配额 大于0的整数即可 + limitBytes:Number.parseInt(this.limitBytes), + + // 是否为计量网络 true为计量网络 false为非计量网络 + metered:Boolean(Number.parseInt(this.metered)),https://gitee.com/openharmony/docs/pulls/14404 + // 到达流量限制后的动作 详见[LimitAction](../reference/apis/js-apis-net-policy.md#limitaction) + limitAction:Number.parseInt(this.limitAction) + }; + this.netQuotaPolicyList.push(param); + }, + + // 订阅计量网络iface发生改变时的回调 + policy.on('netMeteredIfacesChange', (data) => { + this.log('on netMeteredIfacesChange:' + JSON.stringify(data)); + }); + + // 订阅计量网络策略发生改变时的回调 + policy.on('netQuotaPolicyChange', (data) => { + this.log('on netQuotaPolicyChange:' + JSON.stringify(data)); + }); + + // 调用setNetQuotaPolicies方法,设置计量网络策略 + setNetQuotaPolicies(){ + this.dialogType = DialogType.HIDE; + policy.setNetQuotaPolicies(this.netQuotaPolicyList, (err, data) => { + console.log(JSON.stringify(err)); + console.log(JSON.stringify(data)); + }); + }, + + // 调用getNetQuotaPolicies方法,获取计量网络策略 + getNetQuotaPolicies(){ + policy.getNetQuotaPolicies((err, data) => { + this.callBack(err, data); + if(data){ + this.netQuotaPolicyList = data; + } + }); + }, + + // 取消订阅计量网络iface发生改变时的回调 + policy.off('netMeteredIfacesChange', (data) => { + this.log('off netMeteredIfacesChange:' + JSON.stringify(data)); + }); + + // 取消订阅计量网络策略发生改变时的回调 + policy.off('netQuotaPolicyChange', (data) => { + this.log('off netQuotaPolicyChange:' + JSON.stringify(data)); + }); +``` + +## 后台网络限制开关/获取后台网络限制状态/获取指定uid在后台状态下能否访问网络 + +### 开发步骤 + +1. 从@ohos.net.policy.d.ts中导入policy命名空间。 + +2. 调用setBackgroundAllowed方法,设置开启后台省流量或关闭后台省流量。 + +3. 调用isBackgroundAllowed方法,获取后台网络限制状态(省流量)是开启还是关闭。 + +4. 调用getBackgroundPolicyByUid方法,获取指定uid在后台状态下能否访问网络。 + +```js + // 引入包名 + import policy from '@ohos.net.policy' + + // 订阅后台网络策略发生改变时的回调 + policy.on('netBackgroundPolicyChange', (data) => { + this.log('on netBackgroundPolicyChange:' + JSON.stringify(data)); + }); + + // 调用setBackgroundAllowed方法,设置开启后台省流量或关闭后台省流量 + setBackgroundAllowed() { + policy.setBackgroundAllowed(Boolean(Number.parseInt(this.isBoolean)), (err, data) => { + console.log(JSON.stringify(err)); + console.log(JSON.stringify(data)) + }); + }, + + // 调用isBackgroundAllowed方法,获取后台网络限制状态(省流量)是开启还是关闭。 + isBackgroundAllowed() { + policy.isBackgroundAllowed((err, data) => { + console.log(JSON.stringify(err)); + console.log(JSON.stringify(data)) + }); + }, + + // 调用getBackgroundPolicyByUid方法,获取指定uid在后台状态下能否访问网络。 + getBackgroundPolicyByUid() { + policy.getBackgroundPolicyByUid(Number.parseInt(this.firstParam), (err, data) => { + console.log(JSON.stringify(err)); + console.log(JSON.stringify(data)) + }); + }, + + // 取消订阅后台网络策略发生改变时的回调 + policy.off('netBackgroundPolicyChange', (data) => { + this.log('off netBackgroundPolicyChange:' + JSON.stringify(data)); + }); +``` + +## 设定指定uid访问计量网络的策略/获取指定uid访问计量网络的策略/获取设置了对应策略的uids + +### 开发步骤 + +1. 从@ohos.net.policy.d.ts中导入policy命名空间。 + +2. 调用setPolicyByUid方法,设置指定uid是否可以访问后台网络。 + +3. 调用getPolicyByUid方法,获取指定uid的策略。 + +4. 调用getUidsByPolicy方法,获取使用指定策略的uids。 + +```js + // 引入包名 + import policy from '@ohos.net.policy' + + // 订阅uid的policy发生改变时的回调 + policy.on('netUidPolicyChange', (data) => { + this.log('on netUidPolicyChange:' + JSON.stringify(data)); + }); + + // 订阅uid的rule发生改变时的回调 + policy.on('netUidRuleChange', (data) => { + this.log('on netUidRuleChange:' + JSON.stringify(data)); + }); + + // 调用setPolicyByUid方法,设置指定uid是否可以访问后台网络 + setPolicyByUid() { + let param = { + uid: Number.parseInt(this.firstParam), policy: Number.parseInt(this.currentNetUidPolicy) + } + policy.setPolicyByUid(Number.parseInt(this.firstParam), Number.parseInt(this.currentNetUidPolicy), (err, data) => { + console.log(JSON.stringify(err)); + console.log(JSON.stringify(data)) + }); + }, + + // 调用getPolicyByUid方法,获取指定uid的策略 + getPolicyByUid() { + policy.getPolicyByUid(Number.parseInt(this.firstParam), (err, data) => { + console.log(JSON.stringify(err)); + console.log(JSON.stringify(data)) + }); + }, + + // 调用getUidsByPolicy方法,获取使用指定策略的uids + getUidsByPolicy(){ + policy.getUidsByPolicy(Number.parseInt(this.currentNetUidPolicy), (err, data) => { + console.log(JSON.stringify(err)); + console.log(JSON.stringify(data)) + }); + }, + + // 取消订阅uid的policy发生改变时的回调 + policy.off('netUidPolicyChange', (data) => { + this.log('off netUidPolicyChange:' + JSON.stringify(data)); + }); + + // 取消订阅uid的rule发生改变时的回调 + policy.off('netUidRuleChange', (data) => { + this.log('off netUidRuleChange:' + JSON.stringify(data)); + }); + +``` + +## 重置网络策略 + +### 开发步骤 + +1. 从@ohos.net.policy.d.ts中导入policy命名空间。 + +2. 调用restoreAllPolicies方法,重置网络策略。 + +```js + // 引入包名 + import policy from '@ohos.net.policy' + + // 调用restoreAllPolicies方法,重置网络策略 + restoreAllPolicies(){ + policy.restoreAllPolicies(this.firstParam, (err, data) => { + console.log(JSON.stringify(err)); + console.log(JSON.stringify(data)) + }); + }, +``` + +## 判断uid能否访问计量/非计量网络 + +### 开发步骤 + +1. 从@ohos.net.policy.d.ts中导入policy命名空间。 + +2. 调用isUidNetAllowed方法,获取uid能否访问计量/非计量网络。 + +```js + // 引入包名 + import policy from '@ohos.net.policy' + + // 调用isUidNetAllowed方法,获取uid能否访问计量/非计量网络 + isUidNetAllowedIsMetered(){ + let param = { + uid: Number.parseInt(this.firstParam), isMetered: Boolean(Number.parseInt(this.isBoolean)) + } + policy.isUidNetAllowed(Number.parseInt(this.firstParam), Boolean(Number.parseInt(this.isBoolean)), (err, data) => { + console.log(JSON.stringify(err)); + console.log(JSON.stringify(data)) + }); + }, +``` + +## 将对应uid从休眠白名单里添加、移除/获取休眠模式的白名单列表 + +### 开发步骤 + +1. 从@ohos.net.policy.d.ts中导入policy命名空间。 + +2. 调用setDeviceIdleAllowList方法,设置uid是否添加到休眠模式白名单。 + +3. 调用getDeviceIdleAllowList方法,获取添加在休眠模式白名单的uids。 + +```js + // 引入包名 + import policy from '@ohos.net.policy' + + // 调用setDeviceIdleAllowList方法,设置uid是否添加到休眠模式白名单 + setDeviceIdleAllowList(){ + let param = { + uid: Number.parseInt(this.firstParam), isAllowed: Boolean(Number.parseInt(this.isBoolean)) + } + policy.setDeviceIdleAllowList(Number.parseInt(this.firstParam), Boolean(Number.parseInt(this.isBoolean)), (err, data) => { + console.log(JSON.stringify(err)); + console.log(JSON.stringify(data)) + }); + }, + + // 调用getDeviceIdleAllowList方法,获取添加在休眠模式白名单的uids + getDeviceIdleAllowList(){ + policy.getDeviceIdleAllowList((err, data) => { + console.log(JSON.stringify(err)); + console.log(JSON.stringify(data)) + }); + }, +``` + +## 将对应uid从省电白名单里添加、移除/获取省电模式的白名单列表 + +### 开发步骤 + +1. 从@ohos.net.policy.d.ts中导入policy命名空间。 +2. 调用setPowerSaveAllowList方法,设置uid是否添加到省电模式白名单。 +3. 调用getPowerSaveAllowList方法,获取添加在省电模式白名单的uids。 + +```js + // 引入包名 + import policy from '@ohos.net.policy' + + // 调用setPowerSaveAllowList方法,设置uid是否添加到省电模式白名单 + setPowerSaveAllowList(){ + let param = { + uid: Number.parseInt(this.firstParam), isAllowed: Boolean(Number.parseInt(this.isBoolean)) + } + policy.setPowerSaveAllowList(Number.parseInt(this.firstParam), Boolean(Number.parseInt(this.isBoolean)), (err, data) => { + console.log(JSON.stringify(err)); + console.log(JSON.stringify(data)) + }); + }, + + // 调用getPowerSaveAllowList方法,获取添加在省电模式白名单的uids + getPowerSaveAllowList(){ + policy.getPowerSaveAllowList((err, data) => { + console.log(JSON.stringify(err)); + console.log(JSON.stringify(data)) + }); + }, +``` + +## 更新网络提醒策略 + +### 开发步骤 + +1. 从@ohos.net.policy.d.ts中导入policy命名空间。 + +2. 调用updateRemindPolicy,更新网络提醒策略。 + +```js + // 引入包名 + import policy from '@ohos.net.policy' + + // 调用updateRemindPolicy,更新网络提醒策略 + updateRemindPolicy() { + let param = { + netType: Number.parseInt(this.netType), iccid: this.firstParam, remindType: this.currentRemindType + } + policy.updateRemindPolicy(Number.parseInt(this.netType), this.firstParam, Number.parseInt(this.currentRemindType), (err, data) => { + console.log(JSON.stringify(err)); + console.log(JSON.stringify(data)) + }); + }, +``` \ No newline at end of file diff --git a/zh-cn/application-dev/connectivity/net-sharing.md b/zh-cn/application-dev/connectivity/net-sharing.md new file mode 100644 index 0000000000000000000000000000000000000000..337939b95247169c84a6bbae1e3fb313b27afd82 --- /dev/null +++ b/zh-cn/application-dev/connectivity/net-sharing.md @@ -0,0 +1,130 @@ +# 网络共享 + +## 简介 +网络共享管理分享设备已有网络给其他连接设备,支持Wi-Fi热点共享、蓝牙共享和USB共享,同时提供网络共享状态、共享流量查询功能。 + +> **说明:** +> 为了保证应用的运行效率,大部分API调用都是异步的,对于异步调用的API均提供了callback和Promise两种方式,以下示例均采用callback函数,更多方式可以查阅[API参考](../reference/apis/js-apis-net-sharing.md)。 + +## 基本概念 +- WIFI共享:通过WIFI热点共享网络。 +- 蓝牙共享:通过蓝牙共享网络。 +- USB共享:通过USB共享网络。 + +## 约束 +- 开发语言:C++ JS +- 系统:linux内核 +- 本模块首批接口从API version 9开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 + +## 场景介绍 +网络共享的典型场景有: +- 开启网络共享 +- 停止网络共享 +- 获取共享网络的数据流量 + +以下分别介绍具体开发方式。 +## 接口说明 +完整的JS API说明以及实例代码请参考:[网络共享](../reference/apis/js-apis-net-sharing.md)。 + +| 类型 | 接口 | 功能说明 | +| ---- | ---- | ---- | +| ohos.net.sharing | function isSharingSupported(callback: AsyncCallback\): void; | 获取当前系统是否支持网络共享,使用callback方式作为异步方法 | +| ohos.net.sharing | function isSharing(callback: AsyncCallback\): void; | 获取当前共享状态,使用callback方式作为异步方法 | +| ohos.net.sharing | function startSharing(type: SharingIfaceType, callback: AsyncCallback\): void; | 开启共享,type为共享类型,目前支持Wifi热点、蓝牙、USB,使用callback方式作为异步方法 | +| ohos.net.sharing | function stopSharing(type: SharingIfaceType, callback: AsyncCallback\): void; | 停止指定类型共享,type为共享类型,包括Wifi热点、蓝牙、USB,使用callback方式作为异步方法 | +| ohos.net.sharing | function getStatsRxBytes(callback: AsyncCallback\): void; | 获取共享接收数据量,单位KB,使用callback方式作为异步方法 | +| ohos.net.sharing | function getStatsTxBytes(callback: AsyncCallback\): void; | 获取共享发送数据量,单位KB,使用callback方式作为异步方法 | +| ohos.net.sharing | function getStatsTotalBytes(callback: AsyncCallback\): void; | 获取共享总数据流量,单位KB,使用callback方式作为异步方法 | +| ohos.net.sharing | function getSharingIfaces(state: SharingIfaceState, callback: AsyncCallback\>): void; | 获取指定状态的网卡名称,state为状态,包括正在共享、可共享、共享错误,使用callback方式作为异步方法 | +| ohos.net.sharing | function getSharingState(type: SharingIfaceType, callback: AsyncCallback\): void; | 获取指定类型共享状态,type为类型,目前支持Wifi热点、蓝牙、USB,使用callback方式作为异步方法 | +| ohos.net.sharing | function getSharableRegexes(type: SharingIfaceType, callback: AsyncCallback\>): void; | 获取与指定类型匹配的网卡正则表达式列表,type为类型,目前支持Wifi热点、蓝牙、USB,使用callback方式作为异步方法 | +| ohos.net.sharing | function on(type: 'sharingStateChange', callback: Callback\): void; | 注册共享状态改变监听,返回网络共享的状态。 | +| ohos.net.sharing | function off(type: 'sharingStateChange', callback?: Callback\): void; | 注销共享状态改变监听,返回网络共享的状态。 | +| ohos.net.sharing | unction on(type: 'interfaceSharingStateChange', callback: Callback\<{ type: SharingIfaceType, iface: string, state: SharingIfaceState }>): void; | 注册指定网卡共享状态改变监听 | +| ohos.net.sharing | function off(type: 'interfaceSharingStateChange', callback?: Callback\<{ type: SharingIfaceType, iface: string, state: SharingIfaceState }>): void; | 注销指定网卡共享状态改变监听 | +| ohos.net.sharing | function on(type: 'sharingUpstreamChange', callback: Callback\): void; | 注册上行网卡改变监听 | +| ohos.net.sharing | function off(type: 'sharingUpstreamChange', callback?: Callback\): void; | 注销上行网卡改变监听 | + +## 开启网络共享 + +1. 从@ohos.net.sharing中导入sharing命名空间。 +2. 注册监听共享状态的改变。 +3. 调用startSharing方法,来开启指定类型共享。 +4. 接收到共享状态开启的回调,开启共享成功。 + +```js + // 从@ohos.net.sharing中导入sharing命名空间 + import sharing from '@ohos.net.sharing' + + // 注册监听共享状态的改变 + sharing.on('sharingStateChange', (error, data) => { + console.log(JSON.stringify(error)); + console.log(JSON.stringify(data)); + }); + + // 调用startSharing方法,来开启指定类型共享 + sharing.startSharing(SharingIfaceType.SHARING_WIFI, (error) => { + console.log(JSON.stringify(error)); + }); +``` + +## 停止网络共享 + +### 开发步骤 + +1. 从@ohos.net.sharing中导入sharing命名空间。 +2. 注册监听共享状态的改变。 +3. 调用stopSharing方法,来停止指定类型共享。 +4. 接收到共享状态关闭的回调,停止共享成功。 + +```js + // 从@ohos.net.sharing中导入sharing命名空间 + import sharing from '@ohos.net.sharing' + + // 注册监听共享状态的改变 + sharing.on('sharingStateChange', (error, data) => { + console.log(JSON.stringify(error)); + console.log(JSON.stringify(data)); + }); + + // 调用stopSharing方法,来停止指定类型共享 + sharing.stopSharing(SharingIfaceType.SHARING_WIFI, (error) => { + console.log(JSON.stringify(error)); + }); +``` + +## 获取共享网络的数据流量 + +### 开发步骤 + +1. 从@ohos.net.sharing中导入sharing命名空间。 +2. 调用startSharing方法,来开启指定类型共享。 +3. 调用getStatsTotalBytes方法,来获取共享网络数据量。 +4. 调用stopSharing方法,来停止指定类型共享,共享网络数据量清零。 + +```js + // 从@ohos.net.sharing中导入sharing命名空间 + import sharing from '@ohos.net.sharing' + + // 调用startSharing方法,来开启指定类型共享 + sharing.startSharing(SharingIfaceType.SHARING_WIFI, (error) => { + console.log(JSON.stringify(error)); + }); + + // 调用getStatsTotalBytes方法,来获取共享网络数据量 + sharing.getStatsTotalBytes((error, data) => { + console.log(JSON.stringify(error)); + console.log(JSON.stringify(data)); + }); + + // 调用stopSharing方法,来停止指定类型共享,共享网络数据量清零 + sharing.stopSharing(SharingIfaceType.SHARING_WIFI, (error) => { + console.log(JSON.stringify(error)); + }); + + // 再次调用getStatsTotalBytes方法,共享网络数据量已清零 + sharing.getStatsTotalBytes((error, data) => { + console.log(JSON.stringify(error)); + console.log(JSON.stringify(data)); + }); +``` diff --git a/zh-cn/application-dev/connectivity/socket-connection.md b/zh-cn/application-dev/connectivity/socket-connection.md index 2c04d2270a2f2b9c0e9a4551fe06bd1d91483620..ab896fdfe7ac0b9c5669b2df7e12614b30867c9d 100644 --- a/zh-cn/application-dev/connectivity/socket-connection.md +++ b/zh-cn/application-dev/connectivity/socket-connection.md @@ -1,13 +1,27 @@ # Socket连接 +## 简介 + +Socket连接主要是通过Socket进行数据传输,支持TCP/UDP/TLS协议。 + +## 基本概念 + +- Socket:套接字,就是对网络中不同主机上的应用进程之间进行双向通信的端点的抽象。 +- TCP:传输控制协议(Transmission Control Protocol)。是一种面向连接的、可靠的、基于字节流的传输层通信协议。 +- UDP:用户数据报协议协议(User Datagram Protocol)。是一个简单的面向消息的传输层,不需要连接。 +- TLS:安全传输层协议(Transport Layer Security)。用于在两个通信应用程序之间提供保密性和数据完整性。 ## 场景介绍 -应用通过Socket进行数据传输,支持TCP和UDP两种协议。 +应用通过Socket进行数据传输,支持TCP/UDP/TLS协议。主要场景有: +- 应用通过TCP/UDP Socket进行数据传输 +- 应用通过TLS Socket进行加密数据传输 ## 接口说明 +完整的JS API说明以及实例代码请参考:[Socket连接](../reference/apis/js-apis-socket.md)。 + Socket连接主要由socket模块提供。具体接口说明如下表。 | 接口名 | 功能描述 | @@ -31,8 +45,30 @@ Socket连接主要由socket模块提供。具体接口说明如下表。 | on(type: 'connect') | 订阅TCPSocket的连接事件(仅TCP支持)。 | | off(type: 'connect') | 取消订阅TCPSocket的连接事件(仅TCP支持)。 | +TLS Socket连接主要由tls_socket模块提供。具体接口说明如下表。 -## 开发步骤 +| 接口名 | 功能描述 | +| -------- | -------- | +| bind() | 绑定IP地址和端口号。 | +| close(type: 'error') | 关闭连接。 | +| connect() | 连接到指定的IP地址和端口。 | +| getCertificate() | 返回表示本地证书的对象。 | +| getCipherSuite() | 返回包含协商的密码套件信息的列表。 | +| getProtocol() | 返回包含当前连接协商的SSL/TLS协议版本的字符串。 | +| getRemoteAddress() | 获取TLSSocket连接的对端地址。 | +| getRemoteCertificate() | 返回表示对等证书的对象。 | +| getSignatureAlgorithms() | 在服务器和客户端之间共享的签名算法列表,按优先级降序排列。 | +| getState() | 获取TLSSocket连接的状态。 | +| off(type: 'close') | 取消订阅TLSSocket连接的关闭事件。 | +| off(type: 'error') | 取消订阅TLSSocket连接的Error事件。 | +| off(type: 'message') | 取消订阅TLSSocket连接的接收消息事件。 | +| on(type: 'close') | 订阅TLSSocket连接的关闭事件。 | +| on(type: 'error') | 订阅TLSSocket连接的Error事件。 | +| on(type: 'message') | 订阅TLSSocket连接的接收消息事件。 | +| send() | 发送数据。 | +| setExtraOptions() | 设置TLSSocket连接的其他属性。 | + +## 应用TCP/UDP协议进行通信 UDP与TCP流程大体类似,下面以TCP为例: @@ -49,13 +85,13 @@ UDP与TCP流程大体类似,下面以TCP为例: 6. 发送数据。 7. Socket连接使用完毕后,主动关闭。 - + ```js import socket from '@ohos.net.socket' - + // 创建一个TCPSocket连接,返回一个TCPSocket对象。 let tcp = socket.constructTCPSocketInstance(); - + // 订阅TCPSocket相关的订阅事件 tcp.on('message', value => { console.log("on message") @@ -73,7 +109,7 @@ UDP与TCP流程大体类似,下面以TCP为例: tcp.on('close', () => { console.log("on close") }); - + // 绑定本地IP地址和端口。 let bindAddress = { address: '192.168.xx.xx', @@ -86,6 +122,7 @@ UDP与TCP流程大体类似,下面以TCP为例: return; } console.log('bind success'); + // 连接到指定的IP地址和端口。 let connectAddress = { address: '192.168.xx.xx', @@ -100,6 +137,7 @@ UDP与TCP流程大体类似,下面以TCP为例: return; } console.log('connect success'); + // 发送数据 tcp.send({ data: 'Hello, server!' @@ -112,6 +150,7 @@ UDP与TCP流程大体类似,下面以TCP为例: }) }); }); + // 连接使用完毕后,主动关闭。取消相关事件的订阅。 setTimeout(() => { tcp.close((err) => { @@ -123,8 +162,166 @@ UDP与TCP流程大体类似,下面以TCP为例: }, 30 * 1000); ``` +## 应用通过TLS Socket进行加密数据传输 + +### 开发步骤 + +客户端TLS Socket流程: + +1. import需要的socket模块。 + +2. 绑定服务器IP和端口号。 + +3. 双向认证上传客户端CA证书及数字证书;单向认证上传客户端CA证书。 + +4. 创建一个TLSSocket连接,返回一个TLSSocket对象。 + +5. (可选)订阅TLSSocket相关的订阅事件。 + +6. 发送数据。 + +7. TLSSocket连接使用完毕后,主动关闭。 + +```js + import socket from '@ohos.net.socket' + + // 创建一个(双向认证)TLS Socket连接,返回一个TLS Socket对象。 + let tlsTwoWay = socket.constructTLSSocketInstance(); + + // 订阅TLS Socket相关的订阅事件 + tcp.on('message', value => { + console.log("on message") + let buffer = value.message + let dataView = new DataView(buffer) + let str = "" + for (let i = 0; i < dataView.byteLength; ++i) { + str += String.fromCharCode(dataView.getUint8(i)) + } + console.log("on connect received:" + str) + }); + tcp.on('connect', () => { + console.log("on connect") + }); + tcp.on('close', () => { + console.log("on close") + }); + + // 绑定本地IP地址和端口。 + tlsTwoWay.bind({address: '192.168.xxx.xxx', port: xxxx, family: 1}, err => { + if (err) { + console.log('bind fail'); + return; + } + console.log('bind success'); + }); + + // 设置通信过程中使用参数 + let options = { + ALPNProtocols: ["spdy/1", "http/1.1"], + + // 连接到指定的IP地址和端口。 + address: { + address: "192.168.xx.xxx", + port: xxxx, // 端口 + family: 1, + }, + + // 设置用于通信过程中完成校验的参数。 + secureOptions: { + key: "xxxx", // 密钥 + cert: "xxxx", // 数字证书 + ca: ["xxxx"], // CA证书 + passwd: "xxxx", // 生成密钥时的密码 + protocols: [socket.Protocol.TLSv12], // 通信协议 + useRemoteCipherPrefer: true, // 是否优先使用对端密码套件 + signatureAlgorithms: "rsa_pss_rsae_sha256:ECDSA+SHA256", // 签名算法 + cipherSuite: "AES256-SHA256", // 密码套件 + }, + }; + + // 建立连接 + tlsTwoWay.connect(options, (err, data) => { + console.error(err); + console.log(data); + }); + + // 连接使用完毕后,主动关闭。取消相关事件的订阅。 + tls.close((err) => { + if (err) { + console.log("close callback error = " + err); + } else { + console.log("close success"); + } + tls.off('message'); + tls.off('connect'); + tls.off('close'); + }); + + // 创建一个(单向认证)TLS Socket连接,返回一个TLS Socket对象。 + let tlsOneWay = socket.constructTLSSocketInstance(); // One way authentication + + // 订阅TLS Socket相关的订阅事件 + tcp.on('message', value => { + console.log("on message") + let buffer = value.message + let dataView = new DataView(buffer) + let str = "" + for (let i = 0;i < dataView.byteLength; ++i) { + str += String.fromCharCode(dataView.getUint8(i)) + } + console.log("on connect received:" + str) + }); + tcp.on('connect', () => { + console.log("on connect") + }); + tcp.on('close', () => { + console.log("on close") + }); + + // 绑定本地IP地址和端口。 + tlsOneWay.bind({address: '192.168.xxx.xxx', port: xxxx, family: 1}, err => { + if (err) { + console.log('bind fail'); + return; + } + console.log('bind success'); + }); + + // 设置通信过程中使用参数 + let oneWayOptions = { + address: { + address: "192.168.xxx.xxx", + port: xxxx, + family: 1, + }, + secureOptions: { + ca: ["xxxx","xxxx"], // CA证书 + cipherSuite: "AES256-SHA256", // 密码套件 + }, + }; + + // 建立连接 + tlsOneWay.connect(oneWayOptions, (err, data) => { + console.error(err); + console.log(data); + }); + + // 连接使用完毕后,主动关闭。取消相关事件的订阅。 + tls.close((err) => { + if (err) { + console.log("close callback error = " + err); + } else { + console.log("close success"); + } + tls.off('message'); + tls.off('connect'); + tls.off('close'); + }); +``` + ## 相关实例 + 针对Socket连接开发,有以下相关实例可供参考: -- [`Socket`:Socket 连接(ArkTS)(API8)](https://gitee.com/openharmony/applications_app_samples/tree/master/Network/Socket) +- [`Socket`:Socket 连接(ArkTS)(API9)](https://gitee.com/openharmony/applications_app_samples/tree/master/Network/Socket) - [使用UDP实现与服务端通信(ArkTS)(API9)](https://gitee.com/openharmony/codelabs/tree/master/NetworkManagement/UdpDemoOH) -- [使用TCP实现与服务端通信(ArkTS)(API9)](https://gitee.com/openharmony/codelabs/tree/master/NetworkManagement/TcpSocketDemo) \ No newline at end of file +- [使用TCP实现与服务端通信(ArkTS)(API9)](https://gitee.com/openharmony/codelabs/tree/master/NetworkManagement/TcpSocketDemo) diff --git a/zh-cn/application-dev/database/database-datashare-guidelines.md b/zh-cn/application-dev/database/database-datashare-guidelines.md index dc6e953450bbd89c18fb9883c8209acae17dc7bf..51faf62e6f5cb56bdae5b7e6469f564829d6eae6 100644 --- a/zh-cn/application-dev/database/database-datashare-guidelines.md +++ b/zh-cn/application-dev/database/database-datashare-guidelines.md @@ -85,7 +85,7 @@ DataShare即数据共享模块,提供了向其他应用共享以及管理其 ```ts import Extension from '@ohos.application.DataShareExtensionAbility'; - import rdb from '@ohos.data.rdb'; + import rdb from '@ohos.data.relationalStore'; import fileIo from '@ohos.fileio'; import dataSharePredicates from '@ohos.data.dataSharePredicates'; ``` @@ -109,16 +109,19 @@ DataShare即数据共享模块,提供了向其他应用共享以及管理其 // 重写onCreate接口 onCreate(want, callback) { - result = this.context.cacheDir + '/datashare.txt' + result = this.context.cacheDir + '/datashare.txt'; // 业务实现使用RDB - rdb.getRdbStore(this.context, { - name: DB_NAME - }, 1, function (err, data) { - rdbStore = data; - rdbStore.executeSql(DDL_TBL_CREATE, [], function (err) { - console.log('DataShareExtAbility onCreate, executeSql done err:' + JSON.stringify(err)); + rdb.getRdbStore(this.context, { + name: DB_NAME, + securityLevel: rdb.SecurityLevel.S1 + }, function (err, data) { + rdbStore = data; + rdbStore.executeSql(DDL_TBL_CREATE, [], function (err) { + console.log('DataShareExtAbility onCreate, executeSql done err:' + JSON.stringify(err)); }); - callback(); + if (callbakc) { + callback(); + } }); } @@ -210,7 +213,7 @@ DataShare即数据共享模块,提供了向其他应用共享以及管理其 let valuesBucket = { "name": "ZhangSan", "age": 21, "isStudent": false, "Binary": new Uint8Array([1, 2, 3]) }; let updateBucket = { "name": "LiSi", "age": 18, "isStudent": true, "Binary": new Uint8Array([1, 2, 3]) }; let predicates = new dataSharePredicates.DataSharePredicates(); - let valArray = new Array("*"); + let valArray = ['*']; // 插入一条数据 dsHelper.insert(dseUri, valuesBucket, (err, data) => { console.log("dsHelper insert result: " + data); diff --git a/zh-cn/application-dev/database/database-preference-guidelines.md b/zh-cn/application-dev/database/database-preference-guidelines.md index 95d59ac6e21e7c54136e72da7e091bfcff1df1df..2c7a5bfbc24291f6471b879daaa17327858b1633 100644 --- a/zh-cn/application-dev/database/database-preference-guidelines.md +++ b/zh-cn/application-dev/database/database-preference-guidelines.md @@ -208,4 +208,6 @@ 针对首选项开发,有以下相关实例可供参考: -- [`Preferences`:首选项(ArkTS)(API9)](https://gitee.com/openharmony/applications_app_samples/tree/master/data/Preferences) \ No newline at end of file +- [`Preferences`:首选项(ArkTS)(API9)](https://gitee.com/openharmony/applications_app_samples/tree/master/data/Preferences) + +- [首选项(ArkTS)(API9)](https://gitee.com/openharmony/codelabs/tree/master/Data/Preferences) \ No newline at end of file diff --git a/zh-cn/application-dev/database/database-relational-guidelines.md b/zh-cn/application-dev/database/database-relational-guidelines.md index a4fdb811b66e7f370208c7f5c169b25256bbcc13..0eb66f5cd42022b1cf8ef6475cbcd280e9c2e63f 100644 --- a/zh-cn/application-dev/database/database-relational-guidelines.md +++ b/zh-cn/application-dev/database/database-relational-guidelines.md @@ -201,40 +201,83 @@ FA模型示例: ```js - import data_rdb from '@ohos.data.relationalStore' - // 获取context + import relationalStore from '@ohos.data.relationalStore' import featureAbility from '@ohos.ability.featureAbility' - let context = featureAbility.getContext() - const CREATE_TABLE_TEST = "CREATE TABLE IF NOT EXISTS test (" + "id INTEGER PRIMARY KEY AUTOINCREMENT, " + "name TEXT NOT NULL, " + "age INTEGER, " + "salary REAL, " + "blobType BLOB)"; + var store; - const STORE_CONFIG = { name: "RdbTest.db", - securityLevel: data_rdb.SecurityLevel.S1} - data_rdb.getRdbStore(context, STORE_CONFIG, function (err, rdbStore) { - rdbStore.executeSql(CREATE_TABLE_TEST) - console.info('create table done.') + // 获取context + let context = featureAbility.getContext(); + + const STORE_CONFIG = { + name: "RdbTest.db", + securityLevel: relationalStore.SecurityLevel.S1 + }; + + // 假设当前数据库版本为3 + relationalStore.getRdbStore(context, STORE_CONFIG, function (err, rdbStore) { + store = rdbStore; + // 当数据库创建时,数据库默认版本为0 + if (store.version == 0) { + store.executeSql("CREATE TABLE IF NOT EXISTS student (id INTEGER PRIMARY KEY AUTOINCREMENT, score REAL);", null); + // 设置数据库的版本,入参为大于0的整数 + store.version = 3; + } + + // 当数据库存在并假定版本为1时,例应用从某一版本升级到当前版本,数据库需要从1版本升级到2版本 + if (store.version != 3 && store.version == 1) { + // version = 1:表结构:student (id, age) => version = 2:表结构:student (id, age, score) + store.executeSql("ALTER TABLE student ADD COLUMN score REAL", null); + store.version = 2; + } + + // 当数据库存在并假定版本为2时,例应用从某一版本升级到当前版本,数据库需要从2版本升级到3版本 + if (store.version != 3 && store.version == 2) { + // version = 2:表结构:student (id, age, score) => version = 3:表结构:student (id, score) + store.executeSql("ALTER TABLE student DROP COLUMN age INTEGER", null); + store.version = 3; + } }) ``` Stage模型示例: ```ts - import data_rdb from '@ohos.data.relationalStore' - // 获取context - import UIAbility from '@ohos.app.ability.UIAbility'; - let context = null + import relationalStore from '@ohos.data.relationalStore' + import UIAbility from '@ohos.app.ability.UIAbility' + class EntryAbility extends UIAbility { onWindowStageCreate(windowStage) { - context = this.context + var store; + const STORE_CONFIG = { + name: "RdbTest.db", + securityLevel: relationalStore.SecurityLevel.S1 + }; + + // 假设当前数据库版本为3 + relationalStore.getRdbStore(this.context, STORE_CONFIG, function (err, rdbStore) { + store = rdbStore; + // 当数据库创建时,数据库默认版本为0 + if (store.version == 0) { + store.executeSql("CREATE TABLE IF NOT EXISTS student (id INTEGER PRIMARY KEY AUTOINCREMENT, score REAL);", null); + // 设置数据库的版本,入参为大于0的整数 + store.version = 3; + } + + // 当数据库存在并假定版本为1时,例应用从某一版本升级到当前版本,数据库需要从1版本升级到2版本 + if (store.version != 3 && store.version == 1) { + // version = 1:表结构:student (id, age) => version = 2:表结构:student (id, age, score) + store.executeSql("ALTER TABLE student ADD COLUMN score REAL", null); + store.version = 2; + } + + // 当数据库存在并假定版本为2时,例应用从某一版本升级到当前版本,数据库需要从2版本升级到3版本 + if (store.version != 3 && store.version == 2) { + // version = 2:表结构:student (id, age, score) => version = 3:表结构:student (id, score) + store.executeSql("ALTER TABLE student DROP COLUMN age INTEGER", null); + store.version = 3; + } + }) } } - - const CREATE_TABLE_TEST = "CREATE TABLE IF NOT EXISTS test (" + "id INTEGER PRIMARY KEY AUTOINCREMENT, " + "name TEXT NOT NULL, " + "age INTEGER, " + "salary REAL, " + "blobType BLOB)"; - - const STORE_CONFIG = { name: "rdbstore.db", - securityLevel: data_rdb.SecurityLevel.S1} - data_rdb.getRdbStore(context, STORE_CONFIG, function (err, rdbStore) { - rdbStore.executeSql(CREATE_TABLE_TEST) - console.info('create table done.') - }) ``` 2. 插入数据。 @@ -246,23 +289,24 @@ 示例代码如下: ```js - let u8 = new Uint8Array([1, 2, 3]) - const valueBucket = { "name": "Tom", "age": 18, "salary": 100.5, "blobType": u8 } - let insertPromise = rdbStore.insert("test", valueBucket) + let u8 = new Uint8Array([1, 2, 3]); + const valueBucket = { "name": "Tom", "age": 18, "salary": 100.5, "blobType": u8 }; + let insertPromise = store.insert("test", valueBucket); ``` ```js //使用事务插入数据 - beginTransaction() try { - let u8 = new Uint8Array([1, 2, 3]) - const valueBucket1 = { "name": "Tom", "age": 18, "salary": 100.5, "blobType": u8 } - const valueBucket2 = { "name": "Jam", "age": 19, "salary": 200.5, "blobType": u8 } - let insertPromise1 = rdbStore.insert("test", valueBucket1) - let insertPromise2 = rdbStore.insert("test", valueBucket2) - commit() - } catch (e) { - rollBack() + store.beginTransaction(); + let u8 = new Uint8Array([1, 2, 3]); + const valueBucket = { "name": "Tom", "age": 18, "salary": 100.5, "blobType": u8 }; + let promise = store.insert("test", valueBucket); + promise.then(() => { + store.commit(); + }) + } catch (err) { + console.error(`Transaction failed, err: ${err}`); + store.rollBack(); } ``` @@ -277,17 +321,17 @@ 示例代码如下: ```js - let predicates = new data_rdb.RdbPredicates("test"); - predicates.equalTo("name", "Tom") - let promisequery = rdbStore.query(predicates) + let predicates = new relationalStore.RdbPredicates("test"); + predicates.equalTo("name", "Tom"); + let promisequery = store.query(predicates); promisequery.then((resultSet) => { - resultSet.goToFirstRow() - const id = resultSet.getLong(resultSet.getColumnIndex("id")) - const name = resultSet.getString(resultSet.getColumnIndex("name")) - const age = resultSet.getLong(resultSet.getColumnIndex("age")) - const salary = resultSet.getDouble(resultSet.getColumnIndex("salary")) - const blobType = resultSet.getBlob(resultSet.getColumnIndex("blobType")) - resultSet.close() + resultSet.goToFirstRow(); + const id = resultSet.getLong(resultSet.getColumnIndex("id")); + const name = resultSet.getString(resultSet.getColumnIndex("name")); + const age = resultSet.getLong(resultSet.getColumnIndex("age")); + const salary = resultSet.getDouble(resultSet.getColumnIndex("salary")); + const blobType = resultSet.getBlob(resultSet.getColumnIndex("blobType")); + resultSet.close(); }) ``` @@ -297,9 +341,9 @@ ```json "requestPermissions": - { - "name": "ohos.permission.DISTRIBUTED_DATASYNC" - } + { + "name": "ohos.permission.DISTRIBUTED_DATASYNC" + } ``` (2) 获取应用权限。 @@ -313,13 +357,13 @@ ```js let context = featureAbility.getContext(); context.requestPermissionsFromUser(['ohos.permission.DISTRIBUTED_DATASYNC'], 666, function (result) { - console.info(`result.requestCode=${result.requestCode}`) + console.info(`result.requestCode=${result.requestCode}`); }) - let promise = rdbStore.setDistributedTables(["test"]) + let promise = store.setDistributedTables(["test"]); promise.then(() => { - console.info("setDistributedTables success.") + console.info(`setDistributedTables success.`); }).catch((err) => { - console.info("setDistributedTables failed.") + console.error(`setDistributedTables failed, ${err}`); }) ``` @@ -334,16 +378,16 @@ 示例代码如下: ```js - let predicate = new data_rdb.RdbPredicates('test') - predicate.inDevices(['12345678abcde']) - let promise = rdbStore.sync(data_rdb.SyncMode.SYNC_MODE_PUSH, predicate) + let predicate = new relationalStore.RdbPredicates('test'); + predicate.inDevices(['12345678abcde']); + let promise = store.sync(relationalStore.SyncMode.SYNC_MODE_PUSH, predicate); promise.then((result) => { - console.log('sync done.') - for (let i = 0; i < result.length; i++) { - console.log('device=' + result[i][0] + 'status=' + result[i][1]) - } + console.info(`sync done.`); + for (let i = 0; i < result.length; i++) { + console.info(`device=${result[i][0]}, status=${result[i][1]}`); + } }).catch((err) => { - console.log('sync failed') + console.error(`sync failed, err: ${err}`); }) ``` @@ -357,15 +401,15 @@ ```js function storeObserver(devices) { - for (let i = 0; i < devices.length; i++) { - console.log('device=' + device[i] + 'data changed') - } + for (let i = 0; i < devices.length; i++) { + console.info(`device= ${device[i]} data changed`); + } } try { - rdbStore.on('dataChange', data_rdb.SubscribeType.SUBSCRIBE_TYPE_REMOTE, storeObserver) + store.on('dataChange', relationalStore.SubscribeType.SUBSCRIBE_TYPE_REMOTE, storeObserver); } catch (err) { - console.log('register observer failed') + console.error(`register observer failed, err: ${err}`); } ``` @@ -378,64 +422,84 @@ 示例代码如下: ```js - let tableName = rdbStore.obtainDistributedTableName(deviceId, "test"); - let resultSet = rdbStore.querySql("SELECT * FROM " + tableName) + import deviceManager from '@ohos.distributedHardware.deviceManager' + + let deviceIds = []; + deviceManager.createDeviceManager('bundleName', (err, value) => { + if (!err) { + let devManager = value; + if (devManager != null) { + // 获取deviceIds + let devices = devManager.getTrustedDeviceListSync(); + for (let i = 0; i < devices.length; i++) { + deviceIds[i] = devices[i].deviceId; + } + } + } + }) + + let tableName = store.obtainDistributedTableName(deviceIds[0], "test"); + let resultSet = store.querySql("SELECT * FROM " + tableName); ``` 8. 远程查询。 - (1) 构造用于查询分布式表的谓词对象,指定组网内的远程分布式表名和设备。 (2) 调用结果集接口,返回查询结果。 示例代码如下: - - ```js - let rdbPredicate = new data_rdb.RdbPredicates('employee') - predicates.greaterThan("id", 0) - let promiseQuery = rdbStore.remoteQuery('12345678abcde', 'employee', rdbPredicate) + + ```js + let rdbPredicate = new relationalStore.RdbPredicates('employee'); + predicates.greaterThan("id", 0) ; + let promiseQuery = store.remoteQuery('12345678abcde', 'employee', rdbPredicate); promiseQuery.then((resultSet) => { - while (resultSet.goToNextRow()) { - let idx = resultSet.getLong(0); - let name = resultSet.getString(1); - let age = resultSet.getLong(2); - console.info(idx + " " + name + " " + age); - } - resultSet.close(); + while (resultSet.goToNextRow()) { + let idx = resultSet.getLong(0); + let name = resultSet.getString(1); + let age = resultSet.getLong(2); + console.info(`indx: ${idx}, name: ${name}, age: ${age}`); + } + resultSet.close(); }).catch((err) => { - console.info("failed to remoteQuery, err: " + err) + console.error(`failed to remoteQuery, err: ${err}`); }) - ``` - + ``` + 9. 数据库的备份和恢复。 (1) 调用数据库的备份接口,备份当前数据库文件。 - 示例代码如下: + 示例代码如下: - ```js - let promiseBackup = rdbStore.backup("dbBackup.db") + ```js + let promiseBackup = store.backup("dbBackup.db"); promiseBackup.then(() => { - console.info('Backup success.') + console.info(`Backup success.`); }).catch((err) => { - console.info('Backup failed, err: ' + err) + console.error(`Backup failed, err: ${err}`); }) - ``` - (2) 调用数据库的恢复接口,从数据库的备份文件恢复数据库文件。 + ``` - 示例代码如下: + (2) 调用数据库的恢复接口,从数据库的备份文件恢复数据库文件。 - ```js - let promiseRestore = rdbStore.restore("dbBackup.db") + 示例代码如下: + + ```js + let promiseRestore = store.restore("dbBackup.db"); promiseRestore.then(() => { - console.info('Restore success.') + console.info(`Restore success.`); }).catch((err) => { - console.info('Restore failed, err: ' + err) + console.error(`Restore failed, err: ${err}`); }) - ``` + ``` ## 相关实例 针对关系型数据库开发,有以下相关实例可供参考: + - [`DistributedRdb`:分布式关系型数据库(ArkTS)(API8)(Full SDK)](https://gitee.com/openharmony/applications_app_samples/tree/master/data/DistributedRdb) -- [关系型数据库(JS)(API8)](https://gitee.com/openharmony/codelabs/tree/master/Data/JSRelationshipData) \ No newline at end of file + +- [关系型数据库(JS)(API8)](https://gitee.com/openharmony/codelabs/tree/master/Data/JSRelationshipData) + +- [关系型数据库(ArkS)(API9)](https://gitee.com/openharmony/codelabs/tree/master/Data/Rdb) \ No newline at end of file diff --git a/zh-cn/application-dev/device-usage-statistics/device-usage-statistics-overview.md b/zh-cn/application-dev/device-usage-statistics/device-usage-statistics-overview.md index 4957e7a992b873fc1063325ea5e8e9a61df00e5a..ae2026a593a8d6fe32793e008890babbd6434519 100644 --- a/zh-cn/application-dev/device-usage-statistics/device-usage-statistics-overview.md +++ b/zh-cn/application-dev/device-usage-statistics/device-usage-statistics-overview.md @@ -36,5 +36,5 @@ 解除注册应用分组变化回调监听。 ## 设备使用信息统计使用权限 -- 设备使用信息统计的queryBundleActiveStates、queryBundleStateInfos、queryBundleStateInfoByInterval、queryBundleActiveEventStates、queryAppNotificationNumber、queryAppUsagePriorityGroup(bundleName?)、setBundleGroup、registerGroupCallBack、unRegisterGroupCallBack接口为系统api,调用前需要申请ohos.permission.BUNDLE_ACTIVE_INFO权限。 -- 设备使用信息统计的queryCurrentBundleActiveStates、queryAppUsagePriorityGroup()、isIdleState(三方应用只能查询自身的空闲状态)接口为三方api,调用时不需要申请权限。 \ No newline at end of file +- 设备使用信息统计的isIdleState、queryBundleEvents、queryBundleStatsInfos、queryBundleStatsInfoByInterval、queryDeviceEventStats、queryNotificationEventStats、queryAppGroup(bundleName)、setAppGroup、registerAppGroupCallBack、unregisterAppGroupCallBack、queryModuleUsageRecords和queryModuleUsageRecords(maxnum)接口为系统api,调用前需要申请ohos.permission.BUNDLE_ACTIVE_INFO权限。 +- 设备使用信息统计的queryCurrentBundleEvents、queryAppGroup()接口为三方api,调用时不需要申请权限。 \ No newline at end of file diff --git a/zh-cn/application-dev/device-usage-statistics/device-usage-statistics-use-guide.md b/zh-cn/application-dev/device-usage-statistics/device-usage-statistics-use-guide.md index 86d25a09c14a0e3759e9fa52fd0befa7a2f4e34a..117ca956e802ceaa635f352d650333095f3cccdc 100644 --- a/zh-cn/application-dev/device-usage-statistics/device-usage-statistics-use-guide.md +++ b/zh-cn/application-dev/device-usage-statistics/device-usage-statistics-use-guide.md @@ -227,7 +227,7 @@ import usageStatistics from '@ohos.resourceschedule.usageStatistics'; } ``` -7. 判断指定Bundle Name的应用当前是否是空闲状态,不需要配置权限,三方应用只能查询自身的空闲状态。 +7. 判断指定Bundle Name的应用当前是否是空闲状态,需要配置ohos.permission.BUNDLE_ACTIVE_INFO权限。 ```js import usageStatistics from '@ohos.resourceschedule.usageStatistics' diff --git a/zh-cn/application-dev/device/Readme-CN.md b/zh-cn/application-dev/device/Readme-CN.md index 3639b281c4a9421c0f62f9b26d912842eaf6b553..a544ccb901e4848a3c15156ee69566e5b53947eb 100644 --- a/zh-cn/application-dev/device/Readme-CN.md +++ b/zh-cn/application-dev/device/Readme-CN.md @@ -4,9 +4,7 @@ - [USB服务开发概述](usb-overview.md) - [USB服务开发指导](usb-guidelines.md) - 位置 - - [位置开发概述](device-location-overview.md) - - [获取设备的位置信息](device-location-info.md) - - [(逆)地理编码转化](device-location-geocoding.md) + - [位置服务开发指南](location-guidelines.md) - 传感器 - [传感器开发概述](sensor-overview.md) - [传感器开发指导](sensor-guidelines.md) @@ -19,3 +17,5 @@ - 升级服务 - [示例服务器开发概述](sample-server-overview.md) - [示例服务器开发指导](sample-server-guidelines.md) +- 设备状态 + - [设备状态开发指导](stationary-guidelines.md) diff --git a/zh-cn/application-dev/device/pointerstyle-guidelines.md b/zh-cn/application-dev/device/pointerstyle-guidelines.md index cc5f3fd52ed14efacfad961345635e7588f9f8ac..997f375bd75be6272929213058fe51a38a23a468 100644 --- a/zh-cn/application-dev/device/pointerstyle-guidelines.md +++ b/zh-cn/application-dev/device/pointerstyle-guidelines.md @@ -17,8 +17,8 @@ import pointer from '@ohos.multimodalInput.pointer'; | 实例名 | 接口名 | 说明 | | ------- | ------------------------------------------------------------ | ------------------------------------------------------------ | | pointer | function isPointerVisible(callback: AsyncCallback\): void; | 获取鼠标指针显示或隐藏状态。 | -| pointer | function setPointerVisible(visible: boolean, callback: AsyncCallback\): void; | 设置鼠标指针显示或隐藏状态,改接口会影响全局鼠标光标的显示状态。 | -| pointer | function setPointerStyle(windowId: number, pointerStyle: PointerStyle, callback: AsyncCallback\): void; | 设置鼠标光标样式,改接口会影响指定窗口鼠标光标样式。 | +| pointer | function setPointerVisible(visible: boolean, callback: AsyncCallback\): void; | 设置鼠标指针显示或隐藏状态,该接口会影响全局鼠标光标的显示状态。 | +| pointer | function setPointerStyle(windowId: number, pointerStyle: PointerStyle, callback: AsyncCallback\): void; | 设置鼠标光标样式,该接口会影响指定窗口鼠标光标样式。 | | pointer | function getPointerStyle(windowId: number, callback: AsyncCallback\): void; | 查询鼠标光标样式。 | ## 设置鼠标光标隐藏 diff --git a/zh-cn/application-dev/device/stationary-guidelines.md b/zh-cn/application-dev/device/stationary-guidelines.md new file mode 100644 index 0000000000000000000000000000000000000000..2cce3c90983779331f1e4ae27ac7a5bdb64b3dfa --- /dev/null +++ b/zh-cn/application-dev/device/stationary-guidelines.md @@ -0,0 +1,84 @@ +# Stationary开发指导 + + +## 场景介绍 + +当应用需要获取当前设备状态时,可以调用Stationary模块,例如:需要判断当前设备处于绝对静止状态或者相对静止状态。 + +详细的接口介绍请参考[Stationary接口](../reference/apis/js-apis-stationary.md)。 + +## 设备状态类型参数说明 + +| 名称 | 描述 | +| -------- | -------- | +| still | 绝对静止。 | +| relativeStill | 相对静止。 | + +## 订阅设备状态事件参数说明 + +| 变量 | 值 | 说明 | +| ------------------------------ | ---- | ---------------------------------------- | +| ENTER | 1 | 订阅进入事件。 | +| EXIT | 2 | 订阅退出事件。 | +| ENTER_EXIT | 3 | 订阅进入和退出事件。 | + +## 返回设备状态参数说明 + +| 变量 | 值 | 说明 | +| ------------------------------ | ---- | ---------------------------------------- | +| ENTER | 1 | 返回进入状态。 | +| EXIT | 2 | 返回退出状态。 | + +## 接口说明 + +| 模块 | 接口名 | 描述 | +| ------------- | ------------------------------------------------------------ | ------------------------------------------------------------ | +| ohos.stationary | on(activity: ActivityType, event: ActivityEvent, reportLatencyNs: number, callback: Callback<ActivityResponse>): void | 订阅设备状态,结果通过callback返回。 | +| ohos.stationary | once(activity: ActivityType, callback: Callback<ActivityResponse>): void | 查询设备状态,结果通过callback返回。 | +| ohos.stationary | off(activity: ActivityType, event: ActivityEvent, callback?: Callback<ActivityResponse>): void | 取消订阅设备状态。 | + +## 约束与限制 + +设备需要支持加速度传感器。 + +## 开发步骤 + +1. 订阅绝对静止的进入事件,1秒上报一次。 + + ```js + import stationary from '@ohos.stationary'; + var reportLatencyNs = 1000000000; + try { + stationary.on('still', stationary.ActivityEvent.ENTER, reportLatencyNs, (data) => { + console.log('data='+ JSON.stringify(data)); + }) + } catch (err) { + console.error('errCode: ' + err.code + ' ,msg: ' + err.message); + } + ``` + +2. 查询绝对静止状态的进入事件。 + + ```js + import stationary from '@ohos.stationary'; + try { + stationary.once('still', (data) => { + console.log('data='+ JSON.stringify(data)); + }) + } catch (err) { + console.error('errCode: ' + err.code + ' ,msg: ' + err.message); + } + ``` + +3. 取消订阅绝对静止状态的进入事件。 + + ```js + import stationary from '@ohos.stationary'; + try { + stationary.off('still', stationary.ActivityEvent.ENTER, (data) => { + console.log('data='+ JSON.stringify(data)); + }) + } catch (err) { + console.error('errCode: ' + err.code + ' ,msg: ' + err.message); + } + ``` diff --git a/zh-cn/application-dev/device/usb-guidelines.md b/zh-cn/application-dev/device/usb-guidelines.md index 9c1a47cbf63cd51cbd0fae4c6909a2eeefac5b0b..156f3cb4a39a5acc7de88c4692de03b7086a090e 100644 --- a/zh-cn/application-dev/device/usb-guidelines.md +++ b/zh-cn/application-dev/device/usb-guidelines.md @@ -11,7 +11,7 @@ Host模式下,可以获取到已经连接的USB设备列表,并根据需要 USB服务主要提供的功能有:查询USB设备列表、批量数据传输、控制命令传输、权限控制等。 -USB类开放能力如下,具体请查阅[API参考文档](../reference/apis/js-apis-usb.md)。 +USB类开放能力如下,具体请查阅[API参考文档](../reference/apis/js-apis-usbManager.md)。 **表1** USB类的开放能力接口 @@ -22,7 +22,7 @@ USB类开放能力如下,具体请查阅[API参考文档](../reference/apis/js | removeRight(deviceName: string): boolean | 移除软件包对设备的访问权限。| | connectDevice(device: USBDevice): Readonly<USBDevicePipe> | 根据`getDevices()`返回的设备信息打开USB设备。 | | getDevices(): Array<Readonly<USBDevice>> | 获取接入主设备的USB设备列表。如果没有设备接入,那么将会返回一个空的列表。 | -| setConfiguration(pipe: USBDevicePipe, config: USBConfig): number | 设置设备的配置。 | +| setConfiguration(pipe: USBDevicePipe, config: USBConfiguration): number | 设置设备的配置。 | | setInterface(pipe: USBDevicePipe, iface: USBInterface): number | 设置设备的接口。 | | claimInterface(pipe: USBDevicePipe, iface: USBInterface, force ?: boolean): number | 注册通信接口。 | | bulkTransfer(pipe: USBDevicePipe, endpoint: USBEndpoint, buffer: Uint8Array, timeout ?: number): Promise<number> | 批量传输。 | @@ -42,7 +42,7 @@ USB设备可作为Host设备连接Device设备进行数据传输。开发示例 ```js // 导入USB接口api包。 - import usb from '@ohos.usbV9'; + import usb from '@ohos.usbManager'; // 获取设备列表。 let deviceList = usb.getDevices(); /* diff --git a/zh-cn/application-dev/dfx/apprecovery-guidelines.md b/zh-cn/application-dev/dfx/apprecovery-guidelines.md index 028b2d6cfcb17e6ff8079389db49abc3be7edf1d..c2293d0eced73f280e532fca427d7e812eb62209 100644 --- a/zh-cn/application-dev/dfx/apprecovery-guidelines.md +++ b/zh-cn/application-dev/dfx/apprecovery-guidelines.md @@ -29,7 +29,7 @@ **restartApp:** 调用后框架会杀死当前应用进程,并重新拉起处于前台的Ability,其中启动原因为APP_RECOVERY。 -### 框架故障管理理流程示意 +### 框架故障管理流程示意 故障管理是应用提升用户体验的重要手段。应用程序框架为开发者提供了故障监听、故障恢复、以及故障查询三种方式来管理应用的故障。 @@ -39,7 +39,7 @@ - 故障查询指的是[faultLogger](../reference/apis/js-apis-faultLogger.md)通过其查询接口获取当前的故障信息。 -下图中并没有标记[faultLogger](../reference/apis/js-apis-faultLogger.md)的调用时机,开发者可以根据应用启动时传入的[LastExitReason](../reference/apis/js-apis-application-abilityConstant.md#abilityconstantlastexitreason)来决定是否调用[faultLogger](../reference/apis/js-apis-faultLogger.md)查询上次的故障信息。 +下图中并没有标记[faultLogger](../reference/apis/js-apis-faultLogger.md)的调用时机,开发者可以根据应用启动时传入的[LastExitReason](../reference/apis/js-apis-app-ability-abilityConstant.md#abilityconstantlastexitreason)来决定是否调用[faultLogger](../reference/apis/js-apis-faultLogger.md)查询上次的故障信息。 ![故障处理流程示意](./figures/20221106203527.png) 这里建议应用开发者使用[errorManager](../reference/apis/js-apis-application-errorManager.md)对应用的异常进行处理,处理完成后开发者可以选择调用状态保存接口并主动重启应用。 如果开发者没有注册[ErrorObserver](../reference/apis/js-apis-application-errorManager.md#errorobserver)也没有使能自动恢复,则按照系统的默认逻辑执行进程退出。用户可以选择从启动器再次打开应用。 @@ -133,7 +133,7 @@ callback触发appRecovery.saveAppState()调用后,会触发EntryAbility的onSa - 数据恢复 -callback触发后appRecovery.restartApp()调用后,应用会重启,重启后会走到EntryAbility的onSaveState(state, wantParams)函数,保存的数据会在want参数的parameters里。 +callback触发后appRecovery.restartApp()调用后,应用会重启,重启后会走到EntryAbility的onCreate(want, launchParam)函数,保存的数据会在want参数的parameters里。 ```ts storage: LocalStorage diff --git a/zh-cn/application-dev/dfx/errormanager-guidelines.md b/zh-cn/application-dev/dfx/errormanager-guidelines.md index 8a588efc18d0798d1b10a24ee43d730960309abb..003b0c2107a00c3e2a4c52108dccddc04791fb50 100644 --- a/zh-cn/application-dev/dfx/errormanager-guidelines.md +++ b/zh-cn/application-dev/dfx/errormanager-guidelines.md @@ -39,8 +39,8 @@ import UIAbility from '@ohos.app.ability.UIAbility'; import errorManager from '@ohos.app.ability.errorManager'; -var registerId = -1; -var callback = { +let registerId = -1; +let callback = { onUnhandledException: function (errMsg) { console.log(errMsg); } @@ -49,13 +49,13 @@ var callback = { export default class EntryAbility extends UIAbility { onCreate(want, launchParam) { console.log("[Demo] EntryAbility onCreate") - registerId = errorManager.registerErrorObserver(callback); + registerId = errorManager.on("error", callback); globalThis.abilityWant = want; } onDestroy() { console.log("[Demo] EntryAbility onDestroy") - errorManager.unregisterErrorObserver(registerId, (result) => { + errorManager.off("error", registerId, (result) => { console.log("[Demo] result " + result.code + ";" + result.message) }); } diff --git a/zh-cn/application-dev/dfx/hilog-guidelines.md b/zh-cn/application-dev/dfx/hilog-guidelines.md index 4e3f47f6da746a70e740d6654ed060c1474389e7..60e60a5fd3958952bca4859e70bcca440f174a55 100644 --- a/zh-cn/application-dev/dfx/hilog-guidelines.md +++ b/zh-cn/application-dev/dfx/hilog-guidelines.md @@ -7,31 +7,54 @@ HiLog是OpenHarmony日志系统,提供给系统框架、服务、以及应用 ## 接口说明 | 方法/宏 | 接口描述 | | -------- | -------- | -| int OH_LOG_Print(LogType type, LogLevel level, unsigned int domain, const char *tag, const char *fmt, ...) | 输出指定日志类型、日志级别、业务领域、Tag的hilog日志,并且按照printf格式类型和隐私指示确定需要输出的变参。| +| int OH_LOG_Print(LogType type, LogLevel level, unsigned int domain, const char *tag, const char *fmt, ...) | 输出指定日志类型、日志级别、业务领域、Tag的hilog日志,并且按照printf格式类型和隐私指示确定需要输出的变参。
输入参数:见参数解析。
输出参数: 无
返回值:打印成功则返回日志总字节数;失败则返回-1。| | #define OH_LOG_DEBUG(type, ...) ((void)OH_LOG_Print((type), LOG_DEBUG, LOG_DOMAIN, LOG_TAG, \__VA_ARGS__))| DEBUG级别写日志,宏封装接口 | | #define OH_LOG_INFO(type, ...) ((void)OH_LOG_Print((type), LOG_INFO, LOG_DOMAIN, LOG_TAG, \__VA_ARGS__)) | INFO级别写日志,宏封装接口 | | #define OH_LOG_WARN(type, ...) ((void)OH_LOG_Print((type), LOG_WARN, LOG_DOMAIN, LOG_TAG, \__VA_ARGS__)) | WARN级别写日志,宏封装接口 | | #define OH_LOG_ERROR(type, ...) ((void)OH_LOG_Print((type), LOG_ERROR, LOG_DOMAIN, LOG_TAG, \__VA_ARGS__)) | ERROR级别写日志,宏封装接口 | | #define OH_LOG_FATAL(type, ...) ((void)OH_LOG_Print((type), LOG_FATAL, LOG_DOMAIN, LOG_TAG, \__VA_ARGS__)) | FATAL级别写日志,宏封装接口 | -| bool OH_LOG_IsLoggable(unsigned int domain, const char *tag, LogLevel level) | 功能:检查指定业务领域、TAG、级别的日志是否可以打印。
输入参数:
- domain:指定日志业务领域。
- tag: 指定日志TAG。
- level: 指定日志level。
输出参数:无
返回值:如果指定domain、tag、level日志可以打印则返回true;否则返回false。 | +| bool OH_LOG_IsLoggable(unsigned int domain, const char *tag, LogLevel level) | 功能:检查指定业务领域、TAG、级别的日志是否可以打印。
输入参数:见参数解析。
输出参数:无
返回值:如果指定domain、tag、level日志可以打印则返回true;否则返回false。 | +## 参数解析 +| 参数名 | 类型 | 必填 | 说明 | +| ------ | ------ | ---- | ------------------------------------------------------------ | +| type | enum | 是 | 日志打印类型枚举,应用日志默认为LOG_APP。 | +| level | enum | 是 | 日志打印等级枚举,见LogLevel。 | +| domain | number | 是 | 日志对应的领域标识,范围是0x0~0xFFFF。
建议开发者在应用内根据需要自定义划分。 | +| tag | string | 是 | 指定日志标识,可以为任意字符串,建议用于标识调用所在的类或者业务行为。 | +| fmt | string | 是 | 格式字符串,用于日志的格式化输出。格式字符串中可以设置多个参数,参数需要包含参数类型、隐私标识。
隐私标识分为{public}和{private},缺省为{private}。标识{public}的内容明文输出,标识{private}的内容以\过滤回显。 | +| args | any[] | 是 | 与格式字符串format对应的可变长度参数列表。参数数目、参数类型必须与格式字符串中的标识一一对应。 | +## LogLevel +日志级别。 + +| 名称 | 值 | 说明 | +| ----- | ------ | ------------------------------------------------------------ | +| DEBUG | 3 | 详细的流程记录,通过该级别的日志可以更详细地分析业务流程和定位分析问题。 | +| INFO | 4 | 用于记录业务关键流程节点,可以还原业务的主要运行过程;
用于记录可预料的非正常情况信息,如无网络信号、登录失败等。
这些日志都应该由该业务内处于支配地位的模块来记录,避免在多个被调用的模块或低级函数中重复记录。 | +| WARN | 5 | 用于记录较为严重的非预期情况,但是对用户影响不大,应用可以自动恢复或通过简单的操作就可以恢复的问题。 | +| ERROR | 6 | 应用发生了错误,该错误会影响功能的正常运行或用户的正常使用,可以恢复但恢复代价较高,如重置数据等。 | +| FATAL | 7 | 重大致命异常,表明应用即将崩溃,故障无法恢复。 ## 开发示例 -1.在源文件中包含hilog头文件: +1.在CMakeLists.txt中新增libhilog_ndk.z.so链接: +``` +target_link_libraries(entry PUBLIC libhilog_ndk.z.so) +``` +2.在源文件中包含hilog头文件, 并定义domain、tag宏: ```c++ #include "hilog/log.h" ``` -2.定义domain、tag宏: + ```c++ #undef LOG_DOMAIN #undef LOG_TAG -#define LOG_DOMAIN 0x3200 // 标识业务领域,范围0xD0000~0xDFFFF -#define LOG_TAG "MY_TAG" +#define LOG_DOMAIN 0x3200 // 全局domain宏,标识业务领域 +#define LOG_TAG "MY_TAG" // 全局tag宏,标识模块日志tag ``` -3.打印日志,以打印INFO级别的日志为例: +3.打印日志,以打印ERROR级别的日志为例: ```c++ -OH_LOG_INFO(LOG_APP, "Failed to visit %{private}s, reason:%{public}d.", url, errno); +OH_LOG_ERROR(LOG_APP, "Failed to visit %{private}s, reason:%{public}d.", url, errno); ``` 4.输出结果: ``` -12-11 12:21:47.579 2695 2695 I A03200/MY_TAG: Failed to visit , reason:11. +12-11 12:21:47.579 2695 2695 E A03200/MY_TAG: Failed to visit , reason:11. ``` \ No newline at end of file diff --git a/zh-cn/application-dev/file-management/filepicker-guidelines.md b/zh-cn/application-dev/file-management/filepicker-guidelines.md index 09f4666bb813706c4cf06e2407c032b6fff6e73e..3192f19c73b19449cfeb0d44c84f350ae637e8de 100644 --- a/zh-cn/application-dev/file-management/filepicker-guidelines.md +++ b/zh-cn/application-dev/file-management/filepicker-guidelines.md @@ -32,7 +32,7 @@ ArkTS语言示例代码如下: globalThis.context.startAbilityForResult( { bundleName: "com.ohos.filepicker", - abilityName: "EntryAbility", + abilityName: "MainAbility", parameters: { 'startMode': 'choose', //choose or save } @@ -44,7 +44,7 @@ globalThis.context.startAbilityForResult( globalThis.context.startAbilityForResult( { bundleName: "com.ohos.filepicker", - abilityName: "EntryAbility", + abilityName: "MainAbility", parameters: { 'startMode': 'save', //choose or save 'saveFile': 'test.jpg', diff --git a/zh-cn/application-dev/file-management/medialibrary-album-guidelines.md b/zh-cn/application-dev/file-management/medialibrary-album-guidelines.md index b150c7aed2273e763dce9b837e9fedacfc83963e..60043767345181ea2a247fd8b30ac155b7993d0c 100644 --- a/zh-cn/application-dev/file-management/medialibrary-album-guidelines.md +++ b/zh-cn/application-dev/file-management/medialibrary-album-guidelines.md @@ -46,10 +46,10 @@ async function example() { const path = await media.getPublicDirectory(DIR_IMAGE); //myAlbum为新建文件保存路径,也是新建相册的名称 media.createAsset(mediaType, 'test.jpg', path + 'myAlbum/', (err, fileAsset) => { - if (fileAsset != undefined) { - console.info('createAlbum successfully, message = ' + fileAsset); + if (fileAsset === undefined) { + console.error('createAlbum failed, message = ' + err); } else { - console.info('createAlbum failed, message = ' + err); + console.info('createAlbum successfully, message = ' + JSON.stringify(fileAsset)); } }); } @@ -85,10 +85,10 @@ async function example() { let album = albumList[0]; album.albumName = 'newAlbum'; //回调返回空 - album.commitModify().then(function() { + album.commitModify().then(() => { console.info("albumRename successfully"); - }).catch(function(err){ - console.info("albumRename failed with error: " + err); + }).catch((err) => { + console.error("albumRename failed with error: " + err); }); } ``` diff --git a/zh-cn/application-dev/file-management/medialibrary-filepath-guidelines.md b/zh-cn/application-dev/file-management/medialibrary-filepath-guidelines.md index 259774688fc5cc8031d31dd1909cb94e8a13f8c5..b42db693e0fe55e97061356d5040e4ff0b2cab0a 100644 --- a/zh-cn/application-dev/file-management/medialibrary-filepath-guidelines.md +++ b/zh-cn/application-dev/file-management/medialibrary-filepath-guidelines.md @@ -30,7 +30,7 @@ Openharmony上用户数据统一由媒体库进行管理,用户数据用户数 **前提条件** - 获取媒体库mediaLibrary实例。 -- 申请媒体库读权限“ohos.permission.READ_MEDIA。 +- 申请媒体库读权限"ohos.permission.READ_MEDIA"。 下面以获取Camera文件保存的公共目录为例。 @@ -43,7 +43,7 @@ async function example(){ if (dicResult == 'Camera/') { console.info('mediaLibraryTest : getPublicDirectory passed'); } else { - console.info('mediaLibraryTest : getPublicDirectory failed'); + console.error('mediaLibraryTest : getPublicDirectory failed'); } } ``` @@ -58,47 +58,52 @@ OpenHarmony提供应用沙箱机制,增加目录可见性数据访问防线, 通过接口[mediaLibrary.FileAsset.open](../reference/apis/js-apis-medialibrary.md#open8-1)可以打开公共路径文件。 -通过接口[fileio.open](../reference/apis/js-apis-fileio.md#fileioopen7)可以打开沙箱路径文件,沙箱路径必须通过应用上下文context进行访问。 +通过接口[fs.open](../reference/apis/js-apis-file-fs.md#fsopen)可以打开沙箱路径文件,沙箱路径必须通过应用上下文context进行访问。 **前提条件** - 获取媒体库mediaLibrary实例。 -- 申请媒体库读写权限“ohos.permission.WRITE_MEDIA。 -- 除了@ohos.multimedia.mediaLibrary外,还需要导入模块[@ohos.fileio](../reference/apis/js-apis-fileio.md)。 +- 申请媒体库读写权限"ohos.permission.READ_MEDIA, ohos.permission.WRITE_MEDIA"。 +- 除了@ohos.multimedia.mediaLibrary外,还需要导入模块[@ohos.file.fs](../reference/apis/js-apis-file-fs.md)。 +- 测试文件 "testFile.txt" 已创建且有文件内容。 **开发步骤** -1. 调用[context.filesDir](../reference/apis/js-apis-inner-app-context.md#contextgetfilesdir)获取应用沙箱路径。 +1. 调用[context.filesDir](../reference/apis/js-apis-file-fs.md)获取应用沙箱路径。 2. 调用MediaLibrary.getFileAssets和FetchFileResult.getFirstObject获取公共目录中的FileAsset实例。 -3. 调用fileio.open打开沙箱路径文件。 +3. 调用fs.open打开沙箱路径文件。 4. 调用fileAsset.open打开公共路径文件。 -5. 调用fileio.copyfile复制文件。 -6. 调用fileAsset.close和fileio.close关闭文件。 +5. 调用[fs.copyfile](../reference/apis/js-apis-file-fs.md#fscopyfile)复制文件。 +6. 调用fileAsset.close和[fs.close](../reference/apis/js-apis-file-fs.md#fsclose)关闭文件。 **示例1 将公共路径文件复制到沙箱路径下** ```ts async function copyPublic2Sandbox() { - const context = getContext(this); - let media = mediaLibrary.getMediaLibrary(context); - let sandboxDirPath = globalThis.context.filesDir; - let fileKeyObj = mediaLibrary.FileKey; - let fileAssetFetchOp = { - selections: fileKeyObj.DISPLAY_NAME + '= ?', - selectionArgs: ['testFile.txt'], - }; - let fetchResult = await media.getFileAssets(fileAssetFetchOp); - let fileAsset = await fetchResult.getFirstObject(); + try { + const context = getContext(this); + let media = mediaLibrary.getMediaLibrary(context); + let sandboxDirPath = context.filesDir; + let fileKeyObj = mediaLibrary.FileKey; + let fileAssetFetchOp = { + selections: fileKeyObj.DISPLAY_NAME + '= ?', + selectionArgs: ['testFile.txt'], + }; + let fetchResult = await media.getFileAssets(fileAssetFetchOp); + let fileAsset = await fetchResult.getFirstObject(); - let fdPub = await fileAsset.open('rw'); - let fdSand = await fileio.open(sandboxDirPath + '/testFile.txt', 0o2 | 0o100, 0o666); - await fileio.copyFile(fdPub, fdSand); + let fdPub = await fileAsset.open('rw'); + let fdSand = await fs.open(sandboxDirPath + '/testFile.txt', fs.OpenMode.READ_WRITE | fs.OpenMode.CREATE); + await fs.copyFile(fdPub, fdSand.fd); - await fileAsset.close(fdPub); - await fileio.close(fdSand); + await fileAsset.close(fdPub); + await fs.close(fdSand.fd); - let content_sand = await fileio.readText(sandboxDirPath + '/testFile.txt'); - console.log('content read from sandbox file: ', content_sand) + let content_sand = await fs.readText(sandboxDirPath + '/testFile.txt'); + console.info('content read from sandbox file: ', content_sand) + } catch (err) { + console.info('[demo] copyPublic2Sandbox fail, err: ', err); + } } ``` @@ -108,7 +113,7 @@ async function copyPublic2Sandbox() { async function copySandbox2Public() { const context = getContext(this); let media = mediaLibrary.getMediaLibrary(context); - let sandboxDirPath = globalThis.context.filesDir; + let sandboxDirPath = context.filesDir; let DIR_DOCUMENTS = mediaLibrary.DirectoryType.DIR_DOCUMENTS; const publicDirPath = await media.getPublicDirectory(DIR_DOCUMENTS); @@ -116,7 +121,7 @@ async function copySandbox2Public() { let fileAsset = await media.createAsset(mediaLibrary.MediaType.FILE, 'testFile02.txt', publicDirPath); console.info('createFile successfully, message = ' + fileAsset); } catch (err) { - console.info('createFile failed, message = ' + err); + console.error('createFile failed, message = ' + err); } try { let fileKeyObj = mediaLibrary.FileKey; @@ -127,35 +132,35 @@ async function copySandbox2Public() { let fetchResult = await media.getFileAssets(fileAssetFetchOp); var fileAsset = await fetchResult.getFirstObject(); } catch (err) { - console.info('file asset get failed, message = ' + err); + console.error('file asset get failed, message = ' + err); } let fdPub = await fileAsset.open('rw'); - let fdSand = await fileio.open(sandboxDirPath + 'testFile.txt', 0o2); - await fileio.copyFile(fdSand, fdPub); - await fileio.close(fdPub); - await fileio.close(fdSand); + let fdSand = await fs.open(sandboxDirPath + 'testFile.txt', OpenMode.READ_WRITE); + await fs.copyFile(fdSand.fd, fdPub); + await fileAsset.close(fdPub); + await fs.close(fdSand.fd); let fdPubRead = await fileAsset.open('rw'); try { let arrayBuffer = new ArrayBuffer(4096); - await fileio.read(fdPubRead, arrayBuffer); + await fs.read(fdPubRead, arrayBuffer); var content_pub = String.fromCharCode(...new Uint8Array(arrayBuffer)); fileAsset.close(fdPubRead); } catch (err) { - console.log('read text failed, message = ', err); + console.error('read text failed, message = ', err); } - console.log('content read from public file: ', content_pub); + console.info('content read from public file: ', content_pub); } ``` ### 读写文件内容 -通过[mediaLibrary](../reference/apis/js-apis-medialibrary.md)的接口FileAsset.open和FileAsset.close可以打开和关闭文件。通过[fileio](../reference/apis/js-apis-fileio.md)的接口fileio.read和fileio.write可以读写文件。 +通过[mediaLibrary](../reference/apis/js-apis-medialibrary.md)的接口FileAsset.open和FileAsset.close可以打开和关闭文件。通过[file.fs](../reference/apis/js-apis-file-fs.md)中的接口fs.read和fs.write可以读写文件。 **前提条件** - 获取媒体库mediaLibrary实例。 -- 申请媒体库读写权限“ohos.permission.WRITE_MEDIA。 -- 除了@ohos.multimedia.mediaLibrary外,还需要导入模块[@ohos.fileio](../reference/apis/js-apis-fileio.md)。 +- 申请媒体库读写权限"ohos.permission.READ_MEDIA, ohos.permission.WRITE_MEDIA"。 +- 除了@ohos.multimedia.mediaLibrary外,还需要导入模块[@ohos.file.fs](../reference/apis/js-apis-file-fs.md)。 **开发步骤** @@ -168,19 +173,19 @@ async function copySandbox2Public() { const context = getContext(this); let media = mediaLibrary.getMediaLibrary(context); const path = await media.getPublicDirectory(DIR_DOCUMENTS); - media.createAsset(mediaType, "testFile.text", path).then (function (asset) { + media.createAsset(mediaType, "testFile.text", path).then((asset) => { console.info("createAsset successfully:" + JSON.stringify(asset)); - }).catch(function(err){ - console.info("createAsset failed with error: " + err); + }).catch((err) => { + console.error("createAsset failed with error: " + err); }); } ``` 2. 使用open打开文件。 -3. 使用fileio.write写入文件,以string形式传入写入数据。 +3. 使用[fs.write](../reference/apis/js-apis-file-fs.md#fswrite)写入文件,以string形式传入写入数据。 -4. 使用fileio.read读取文件,以 ArrayBuffer 形式保存读取结果。 +4. 使用[fs.read](../reference/apis/js-apis-file-fs.md#fsread)读取文件,以 ArrayBuffer 形式保存读取结果。 5. 将ArrayBuffer转化为string,以string形式得到文件内容。 @@ -204,10 +209,10 @@ async function writeOnlyPromise() { try { let fd = await fileAsset.open('w'); console.info('file descriptor: ', fd); - await fileio.write(fd, "Write file test content."); + await fs.write(fd, "Write file test content."); await fileAsset.close(fd); } catch (err) { - console.info('write file failed, message = ', err); + console.error('write file failed, message = ', err); } } ``` @@ -230,14 +235,14 @@ async function readOnlyPromise() { try { let fd = await fileAsset.open('r'); let arrayBuffer = new ArrayBuffer(4096); - await fileio.read(fd, arrayBuffer); + await fs.read(fd, arrayBuffer); let fileContent = String.fromCharCode(...new Uint8Array(arrayBuffer)); globalThis.fileContent = fileContent; globalThis.fileName = fileAsset.displayName; console.info('file content: ', fileContent); await fileAsset.close(fd); } catch (err) { - console.info('read file failed, message = ', err); + console.error('read file failed, message = ', err); } } ``` diff --git a/zh-cn/application-dev/file-management/medialibrary-overview.md b/zh-cn/application-dev/file-management/medialibrary-overview.md index ca8a6c4516853d181a9f27dc0f10ced9853e7e13..fd8b9fb3eceddf04b6c87948703e5879702ba5bd 100644 --- a/zh-cn/application-dev/file-management/medialibrary-overview.md +++ b/zh-cn/application-dev/file-management/medialibrary-overview.md @@ -109,19 +109,19 @@ let media = mediaLibrary.getMediaLibrary(context); import abilityAccessCtrl, {Permissions} from '@ohos.abilityAccessCtrl'; export default class EntryAbility extends UIAbility { - onWindowStageCreate(windowStage) { - let list : Array = ['ohos.permission.READ_MEDIA', 'ohos.permission.WRITE_MEDIA']; - let permissionRequestResult; - let atManager = abilityAccessCtrl.createAtManager(); - atManager.requestPermissionsFromUser(this.context, list, (err, result) => { - if (err) { - console.log('requestPermissionsFromUserError: ' + JSON.stringify(err)); - } else { - permissionRequestResult=result; - console.log('permissionRequestResult: ' + JSON.stringify(permissionRequestResult)); - } - }); - } - } + onWindowStageCreate(windowStage) { + let list : Array = ['ohos.permission.READ_MEDIA', 'ohos.permission.WRITE_MEDIA']; + let permissionRequestResult; + let atManager = abilityAccessCtrl.createAtManager(); + atManager.requestPermissionsFromUser(this.context, list, (err, result) => { + if (err) { + console.error('requestPermissionsFromUserError: ' + JSON.stringify(err)); + } else { + permissionRequestResult=result; + console.info('permissionRequestResult: ' + JSON.stringify(permissionRequestResult)); + } + }); + } + } ``` diff --git a/zh-cn/application-dev/file-management/medialibrary-resource-guidelines.md b/zh-cn/application-dev/file-management/medialibrary-resource-guidelines.md index c64f25916fd0f07110d3d33079c9f71c9b268a2a..9277bfdf74bbd442f475e409b47325ba785f4a79 100644 --- a/zh-cn/application-dev/file-management/medialibrary-resource-guidelines.md +++ b/zh-cn/application-dev/file-management/medialibrary-resource-guidelines.md @@ -42,21 +42,24 @@ async function example() { const context = getContext(this); let media = mediaLibrary.getMediaLibrary(context); const fetchFileResult = await media.getFileAssets(option); - for (let i = 0; i < fetchFileResult.getCount(); i++) { - fetchFileResult.getNextObject((err, fileAsset) => { - if (err) { - console.error('Failed '); - return; + fetchFileResult.getFirstObject().then((fileAsset) => { + console.log('getFirstObject.displayName : ' + fileAsset.displayName); + for (let i = 1; i < fetchFileResult.getCount(); i++) { + fetchFileResult.getNextObject().then((fileAsset) => { + console.info('fileAsset.displayName ' + i + ': ' + fileAsset.displayName); + }).catch((err) => { + console.error('Failed to get next object: ' + err); + }); } - console.log('fileAsset.displayName ' + i + ': ' + fileAsset.displayName); - }) - } + }).catch((err) => { + console.error('Failed to get first object: ' + err); + }); } ``` ### 指定日期 -下面以查询指定添加日期的媒体资源为例。实际开发中可以设置添加日期、修改日期、拍摄日期。 +下面以查询指定添加日期至今的所有媒体资源为例。实际开发中可以设置添加日期、修改日期、拍摄日期。 selections: FileKey.DATE_ADDED,根据文件添加日期检索。 @@ -66,21 +69,24 @@ selectionArgs:2022-8-5,具体添加时间的字符串。 async function example() { let fileKeyObj = mediaLibrary.FileKey; let option = { - selections: fileKeyObj.DATE_ADDED + '= ?', - selectionArgs: ['2022-8-5'], + selections: fileKeyObj.DATE_ADDED + '> ?', + selectionArgs: ['2022-8-5'], }; const context = getContext(this); let media = mediaLibrary.getMediaLibrary(context); const fetchFileResult = await media.getFileAssets(option); - for (let i = 0; i < fetchFileResult.getCount(); i++) { - fetchFileResult.getNextObject((err, fileAsset) => { - if (err) { - console.error('Failed '); - return; + fetchFileResult.getFirstObject().then((fileAsset) => { + console.info('getFirstObject.displayName : ' + fileAsset.displayName); + for (let i = 1; i < fetchFileResult.getCount(); i++) { + fetchFileResult.getNextObject().then((fileAsset) => { + console.info('fileAsset.displayName ' + i + ': ' + fileAsset.displayName); + }).catch((err) => { + console.error('Failed to get next object: ' + err); + }); } - console.log('fileAsset.displayName ' + i + ': ' + fileAsset.displayName); - }) - } + }).catch((err) => { + console.error('Failed to get first object: ' + err); + }); } ``` @@ -102,15 +108,18 @@ async function example() { const context = getContext(this); let media = mediaLibrary.getMediaLibrary(context); const fetchFileResult = await media.getFileAssets(option); - for (let i = 0; i < fetchFileResult.getCount(); i++) { - fetchFileResult.getNextObject((err, fileAsset) => { - if (err) { - console.error('Failed '); - return; + fetchFileResult.getFirstObject().then((fileAsset) => { + console.info('getFirstObject.displayName : ' + fileAsset.displayName); + for (let i = 1; i < fetchFileResult.getCount(); i++) { + fetchFileResult.getNextObject().then((fileAsset) => { + console.info('fileAsset.displayName ' + i + ': ' + fileAsset.displayName); + }).catch((err) => { + console.error('Failed to get next object: ' + err); + }); } - console.log('fileAsset.displayName ' + i + ': ' + fileAsset.displayName); - }) - } + }).catch((err) => { + console.error('Failed to get first object: ' + err); + }); } ``` @@ -133,15 +142,15 @@ async function example() { const context = getContext(this); let media = mediaLibrary.getMediaLibrary(context); const fetchFileResult = await media.getFileAssets(option); - for (let i = 0; i < fetchFileResult.getCount(); i++) { - fetchFileResult.getNextObject((err, fileAsset) => { - if (err) { - console.error('Failed '); - return; - } - console.log('fileAsset.displayName ' + i + ': ' + fileAsset.displayName); - }) - } + if (albumList.length > 0) { + fetchFileResult.getFirstObject().then((album) => { + console.info('getFirstObject.displayName : ' + album.albumName); + }).catch((err) => { + console.error('Failed to get first object: ' + err); + }); + } else { + console.info('getAlbum list is: 0'); + } } ``` @@ -172,10 +181,10 @@ async function example() { ```ts let fileKeyObj = mediaLibrary.FileKey; - let imageType = mediaLibrary.MediaType.VIDEO; - let imagesFetchOp = { + let videoType = mediaLibrary.MediaType.VIDEO; + let videoFetchOp = { selections: fileKeyObj.MEDIA_TYPE + '= ?', - selectionArgs: [imageType.toString()], + selectionArgs: [videoType.toString()], } ``` @@ -188,10 +197,10 @@ async function getCameraImagePromise() { const context = getContext(this); let media = mediaLibrary.getMediaLibrary(context); let fileKeyObj = mediaLibrary.FileKey; - let imageType = mediaLibrary.MediaType.IMAGE; - let imagesFetchOp = { + let videoType = mediaLibrary.MediaType.VIDEO; + let videoFetchOp = { selections: fileKeyObj.MEDIA_TYPE + '= ?', - selectionArgs: [imageType.toString()], + selectionArgs: [videoType.toString()], } let AlbumNoArgsFetchOp = { selections: fileKeyObj.ALBUM_NAME + '= ?', @@ -201,9 +210,9 @@ async function getCameraImagePromise() { let albumList = await media.getAlbums(AlbumNoArgsFetchOp); if (albumList.length > 0) { const album = albumList[0]; - let fetchFileResult = await album.getFileAssets(imagesFetchOp); + let fetchFileResult = await album.getFileAssets(videoFetchOp); let count = fetchFileResult.getCount(); - console.info("get mediaLibrary IMAGE number", count); + console.info("get mediaLibrary VIDEO number", count); } else { console.info('getAlbum list is: 0'); } @@ -245,19 +254,20 @@ async function getFirstThumbnailPromise() { let size = { width: 720, height: 720 }; const fetchFileResult = await media.getFileAssets(imagesFetchOp); - if (fetchFileResult != undefined) { + if (fetchFileResult === undefined) { + console.error("get image failed with error"); + return; + } else { const asset = await fetchFileResult.getFirstObject(); asset.getThumbnail(size).then((pixelMap) => { - pixelMap.getImageInfo().then((info) => { + pixelMap.getImageInfo().then((info) => { console.info('get Thumbnail info: ' + "width: " + info.size.width + " height: " + info.size.height); - }).catch((err) => { - console.info("getImageInfo failed with error:" + err); - }); + }).catch((err) => { + console.error("getImageInfo failed with error: " + err); + }); }).catch((err) => { - console.info("getImageInfo failed with error:" + err); + console.error("getImageInfo failed with error: " + err); }); - } else { - console.info("get image failed with error"); } } ``` @@ -281,10 +291,10 @@ async function example() { const context = getContext(this); let media = mediaLibrary.getMediaLibrary(context); const path = await media.getPublicDirectory(DIR_DOCUMENTS); - media.createAsset(mediaType, "testFile.text", path).then ((asset) => { + media.createAsset(mediaType, "testFile.text", path).then((asset) => { console.info("createAsset successfully:"+ JSON.stringify(asset)); }).catch((err) => { - console.info("createAsset failed with error:"+ err); + console.error("createAsset failed with error: " + err); }); } ``` @@ -321,15 +331,15 @@ async function example() { let media = mediaLibrary.getMediaLibrary(context); const fetchFileResult = await media.getFileAssets(option); let asset = await fetchFileResult.getFirstObject(); - if (asset == undefined) { - console.error('asset not exist'); - return; + if (asset === undefined) { + console.error('asset not exist'); + return; } //回调为空 asset.trash(true).then(() => { console.info("trash successfully"); }).catch((err) => { - console.info("trash failed with error: " + err); + console.error("trash failed with error: " + err); }); } ``` @@ -347,7 +357,7 @@ async function example() { - 获取媒体库mediaLibrary实例。 - 申请媒体库读写权限“ohos.permission.WRITE_MEDIA”。 -下面以将文件检索结果中第一个文件重命名为“newtitle.text”为例。 +下面以将文件检索结果中第一个文件重命名为“newImage.jpg”为例。 **开发步骤** @@ -360,7 +370,7 @@ async function example() { ```ts async function example() { let fileKeyObj = mediaLibrary.FileKey; - let fileType = mediaLibrary.MediaType.FILE; + let fileType = mediaLibrary.MediaType.IMAGE; let option = { selections: fileKeyObj.MEDIA_TYPE + '= ?', selectionArgs: [fileType.toString()], @@ -369,18 +379,18 @@ async function example() { let media = mediaLibrary.getMediaLibrary(context); const fetchFileResult = await media.getFileAssets(option); let asset = await fetchFileResult.getFirstObject(); - if (asset == undefined) { - console.error('asset not exist'); - return; + if (asset === undefined) { + console.error('asset not exist'); + return; } asset.displayName = 'newImage.jpg'; //回调为空 asset.commitModify((err) => { - if (err) { - console.error('fileRename Failed '); - return; - } - console.log('fileRename successful.'); + if (err) { + console.error('fileRename Failed '); + return; + } + console.info('fileRename successful.'); }); } ``` diff --git a/zh-cn/application-dev/media/image.md b/zh-cn/application-dev/media/image.md index e4050515a516db43743a58b56a72705a1fb3c44b..7a3ba2c76e9da06f5500e6a8b64366942dff0e6f 100644 --- a/zh-cn/application-dev/media/image.md +++ b/zh-cn/application-dev/media/image.md @@ -286,5 +286,6 @@ public async init(surfaceId: any) { 针对图片开发,有以下相关实例可供参考: -- [`Image`:图片处理(ArkTS)(API8)](https://gitee.com/openharmony/applications_app_samples/tree/master/media/Image) +- [`Image`:图片处理(ArkTS)(API9)](https://gitee.com/openharmony/applications_app_samples/tree/master/media/Image) + - [`GamePuzzle`:拼图(ArkTS)(API9)](https://gitee.com/openharmony/applications_app_samples/tree/master/media/GamePuzzle) \ No newline at end of file diff --git a/zh-cn/application-dev/media/remote-camera.md b/zh-cn/application-dev/media/remote-camera.md index bc1f3e830494e16cfb30cf02f22bea055159553f..91bfd4a6912e972b32b3bf6427b7654c9fca020e 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对象中的ConnectionType是否等于CAMERA_CONNECTION_REMOTE,若等于则使用此对象创建camerainput,之后调用与本地相机使用一样。参考:[相机开发指导](./camera.md) +在计算器中连接分布式设备,在获取相机列表getSupportedCameras(),遍历返回的列表,判断对应Camera对象中的ConnectionType是否等于CAMERA_CONNECTION_REMOTE,若等于则使用此对象创建cameraInput,之后调用与本地相机使用一样。参考:[相机开发指导](./camera.md) 详细API含义请参考:[相机管理API文档](../reference/apis/js-apis-camera.md) @@ -24,15 +24,11 @@ import media from '@ohos.multimedia.media' import featureAbility from '@ohos.ability.featureAbility' // 创建CameraManager对象 -let cameraManager -await camera.getCameraManager(globalThis.Context, (err, manager) => { - if (err) { - console.error('Failed to get the CameraManager instance ${err.message}'); - return; - } - console.log('Callback returned with the CameraManager instance'); - cameraManager = manager -}) +let cameraManager = camera.getCameraManager(globalThis.Context) +if (!cameraManager) { + console.error("camera.getCameraManager error") + return; +} // 注册回调函数监听相机状态变化,获取状态变化的相机信息 cameraManager.on('cameraStatus', (cameraStatusInfo) => { @@ -41,16 +37,12 @@ cameraManager.on('cameraStatus', (cameraStatusInfo) => { }) // 获取相机列表 -let cameraArray let remoteCamera -await cameraManager.getCameras((err, cameras) => { - if (err) { - console.error('Failed to get the cameras. ${err.message}'); - return; - } - console.log('Callback returned with an array of supported cameras: ' + cameras.length); - cameraArray = cameras -}) +let cameraArray = cameraManager.getSupportedCameras(); +if (cameraArray.length <= 0) { + console.error("cameraManager.getSupportedCameras error") + return; +} for(let cameraIndex = 0; cameraIndex < cameraArray.length; cameraIndex++) { console.log('cameraId : ' + cameraArray[cameraIndex].cameraId) // 获取相机ID @@ -58,15 +50,16 @@ for(let cameraIndex = 0; cameraIndex < cameraArray.length; cameraIndex++) { console.log('cameraType : ' + cameraArray[cameraIndex].cameraType) // 获取相机类型 console.log('connectionType : ' + cameraArray[cameraIndex].connectionType) // 获取相机连接类型 if (cameraArray[cameraIndex].connectionType == CAMERA_CONNECTION_REMOTE) { - remoteCamera = cameraArray[cameraIndex].cameraId + remoteCamera = cameraArray[cameraIndex] } } // 创建相机输入流 let cameraInput -await cameraManager.createCameraInput(remoteCamera).then((input) => { - console.log('Promise returned with the CameraInput instance'); - cameraInput = input -}) +try { + cameraInput = cameraManager.createCameraInput(remoteCamera); +} catch () { + console.error('Failed to createCameraInput errorCode = ' + error.code); +} ``` 剩余步骤参照[相机开发指导](./camera.md) \ No newline at end of file diff --git a/zh-cn/application-dev/media/video-playback.md b/zh-cn/application-dev/media/video-playback.md index ea6044a54b0774ebd6954839a29b931874e0558a..7f8586dede5e4700319f05928c4e3666663f1351 100644 --- a/zh-cn/application-dev/media/video-playback.md +++ b/zh-cn/application-dev/media/video-playback.md @@ -452,4 +452,4 @@ export class VideoPlayerDemo { 针对视频播放开发,有以下相关实例可供参考: - [`VideoPlayer:`视频播放(ArkTS)(API9)(Full SDK)](https://gitee.com/openharmony/applications_app_samples/tree/master/media/VideoPlayer) -- [视频播放器(ArkTS)(API 9)](https://gitee.com/openharmony/codelabs/tree/master/Media/VideoPlayerStage) \ No newline at end of file +- [视频播放器(ArkTS)(Full SDK)(API9)](https://gitee.com/openharmony/codelabs/tree/master/Media/VideoPlayerStage) \ No newline at end of file diff --git a/zh-cn/application-dev/notification/notification-enable.md b/zh-cn/application-dev/notification/notification-enable.md index 9546e460debbb166224d8c2994e785e90f26c6e4..8979f708736def28a8fbf84dbcffbe513af146f8 100644 --- a/zh-cn/application-dev/notification/notification-enable.md +++ b/zh-cn/application-dev/notification/notification-enable.md @@ -43,7 +43,7 @@ notificationManager.requestEnableNotification().then(() => { console.info(`[ANS] requestEnableNotification success`); }).catch((err) => { - console.error(`[ANS] requestEnableNotification failed, errCode[${err}]`); + console.error(`[ANS] requestEnableNotification failed, code is ${err.code}, message is ${err.message}`); }); ``` diff --git a/zh-cn/application-dev/notification/notification-overview.md b/zh-cn/application-dev/notification/notification-overview.md index 52b4b5881588c37c7d449a235d2446b8d739b955..50525376aabb0a39bae6b303bd3fb29c7a84c3bf 100644 --- a/zh-cn/application-dev/notification/notification-overview.md +++ b/zh-cn/application-dev/notification/notification-overview.md @@ -25,3 +25,11 @@ OpenHarmony通过ANS(Advanced Notification Service,通知系统服务)对 系统应用还支持通知相关配置,如使能开关、配置参数由系统配置发起请求,发送到通知子系统存储到内存和数据库。 ![zh-cn_image_0000001466582017](figures/zh-cn_image_0000001466582017.png) + +## 相关实例 + +基于通知的开发,有以下相关实例可供参考: + +- [`CustomNotification`:自定义通知(ArkTS)(API9)](https://gitee.com/openharmony/applications_app_samples/tree/master/Notification/CustomNotification) + +- [`Notification`:订阅、发送通知(ArkTS)(API9)(Full SDK)](https://gitee.com/openharmony/applications_app_samples/tree/master/Notification/Notification) \ No newline at end of file diff --git a/zh-cn/application-dev/notification/notification-subscription.md b/zh-cn/application-dev/notification/notification-subscription.md index e8200f3e3f42163ca3bbe6c0268a461818977d42..04b69d9fbaf76f42e1f0228909046ddd663cdfd7 100644 --- a/zh-cn/application-dev/notification/notification-subscription.md +++ b/zh-cn/application-dev/notification/notification-subscription.md @@ -74,7 +74,7 @@ ```ts notificationSubscribe.subscribe(subscriber, (err, data) => { // callback形式调用异步接口 if (err) { - console.error(`[ANS] failed to subscribe, error[${err}]`); + console.error(`[ANS] subscribe failed, code is ${err.code}, message is ${err.message}`); return; } console.info(`[ANS] subscribeTest success : + ${data}`); diff --git a/zh-cn/application-dev/notification/notification-with-wantagent.md b/zh-cn/application-dev/notification/notification-with-wantagent.md index c86c7b60e85dd9b3df6ccb85eba16ec9cd502fef..11be42034421621dae098efd8c05da189df955ed 100644 --- a/zh-cn/application-dev/notification/notification-with-wantagent.md +++ b/zh-cn/application-dev/notification/notification-with-wantagent.md @@ -112,7 +112,7 @@ notificationManager.publish(notificationRequest, (err) => { if (err) { - console.error(`[ANS] failed to publish, error[${err}]`); + console.error(`[ANS] publish failed, code is ${err.code}, message is ${err.message}`); return; } console.info(`[ANS] publish success`); diff --git a/zh-cn/application-dev/notification/progress-bar-notification.md b/zh-cn/application-dev/notification/progress-bar-notification.md index 01eedfb58f824baa69782d3f04767b44221a7c8b..233948f2e8622a1279e08550fbf5b5cc0d22facb 100644 --- a/zh-cn/application-dev/notification/progress-bar-notification.md +++ b/zh-cn/application-dev/notification/progress-bar-notification.md @@ -10,7 +10,7 @@ ## 接口说明 -[isSupportTemplate()](../reference/apis/js-apis-notificationManager.md#notificationissupporttemplate)是查询模板是否支持接口,目前仅支持进度条模板。 +[isSupportTemplate()](../reference/apis/js-apis-notificationManager.md#notificationmanagerissupporttemplate)是查询模板是否支持接口,目前仅支持进度条模板。 | **接口名** | **描述** | | -------- | -------- | @@ -35,7 +35,7 @@ let isSupportTpl: boolean = data; // isSupportTpl的值为true表示支持支持downloadTemplate模板类通知,false表示不支持 // ... }).catch((err) => { - console.error(`[ANS] isSupportTemplate failed, error[${err}]`); + console.error(`[ANS] isSupportTemplate failed, code is ${err.code}, message is ${err.message}`); }); ``` @@ -65,7 +65,7 @@ // 发布通知 notificationManager.publish(notificationRequest, (err) => { if (err) { - console.error(`[ANS] failed to publish, error[${err}]`); + console.error(`[ANS] publish failed, code is ${err.code}, message is ${err.message}`); return; } console.info(`[ANS] publish success `); diff --git a/zh-cn/application-dev/notification/text-notification.md b/zh-cn/application-dev/notification/text-notification.md index be0bf2f4ecad5043119fd6a8ab79f860eae5499d..8e88ecf2015a71e381cbffefce943d7fa99fe0ac 100644 --- a/zh-cn/application-dev/notification/text-notification.md +++ b/zh-cn/application-dev/notification/text-notification.md @@ -59,10 +59,10 @@ notificationManager.publish(notificationRequest, (err) => { if (err) { - console.error(`[ANS] failed to publish, error[${err}]`); + console.error(`[ANS] publish failed, code is ${err.code}, message is ${err.message}`); return; } - console.info(`[ANS] publish success`); + console.info(`[ANS] publish success.`); }); ``` @@ -89,10 +89,10 @@ // 发布通知 notificationManager.publish(notificationRequest, (err) => { if (err) { - console.error(`[ANS] failed to publish, error[${err}]`); + console.error(`[ANS] publish failed, code is ${err.code}, message is ${err.message}`); return; } - console.info(`[ANS] publish success`); + console.info(`[ANS] publish success.`); }); ``` @@ -118,7 +118,7 @@ // 发布通知 notificationManager.publish(notificationRequest, (err) => { if (err) { - console.error(`[ANS] failed to publish, error[${err}]`); + console.error(`[ANS] publish failed, code is ${err.code}, message is ${err.message}`); return; } console.info(`[ANS] publish success`); @@ -149,10 +149,10 @@ // 发布通知 notificationManager.publish(notificationRequest, (err) => { if (err) { - console.error(`[ANS] failed to publish, error[${err}]`); + console.error(`[ANS] publish failed, code is ${err.code}, message is ${err.message}`); return; } - console.info(`[ANS] publish success `); + console.info(`[ANS] publish success.`); }); ``` diff --git a/zh-cn/application-dev/quick-start/app-configuration-file.md b/zh-cn/application-dev/quick-start/app-configuration-file.md index 1f8d24a694a3117e71810ba1a0b7c3b5c947c5fa..9dc556324cf819e9c8ff7d3865af8a8e430aa21a 100644 --- a/zh-cn/application-dev/quick-start/app-configuration-file.md +++ b/zh-cn/application-dev/quick-start/app-configuration-file.md @@ -43,8 +43,8 @@ app.json5配置文件包含以下标签。 | versionCode | 标识应用的版本号,该标签值为32位非负整数。此数字仅用于确定某个版本是否比另一个版本更新,数值越大表示版本越高。开发者可以将该值设置为任何正整数,但是必须确保应用的新版本都使用比旧版本更大的值。该标签不可缺省,versionCode值应小于2^31次方。 | 数值 | 该标签不可缺省。 | | versionName | 标识应用版本号的文字描述,用于向用户展示。
该标签仅由数字和点构成,推荐采用“A.B.C.D”四段式的形式。四段式推荐的含义如下所示。
第一段:主版本号/Major,范围0-99,重大修改的版本,如实现新的大功能或重大变化。
第二段:次版本号/Minor,范围0-99,表示实现较突出的特点,如新功能添加或大问题修复。
第三段:特性版本号/Feature,范围0-99,标识规划的新版本特性。
第四段:修订版本号/Patch,范围0-999,表示维护版本,修复bug。
标签最大字节长度为127。 | 字符串 | 该标签不可缺省。 | | minCompatibleVersionCode | 标识应用能够兼容的最低历史版本号,用于跨设备兼容性判断。 | 数值 | 该标签可缺省,缺省值等于versionCode标签值。 | -| minAPIVersion | 标识应用运行需要的SDK的API最小版本。 | 数值 | 由bundle-profile.json5中的compatibleSdkVersion生成。 | -| targetAPIVersion | 标识应用运行需要的API目标版本。 | 数值 | 由bundle-profile.json5中的compileSdkVersion生成。 | +| minAPIVersion | 标识应用运行需要的SDK的API最小版本。 | 数值 | 由build-profile.json5中的compatibleSdkVersion生成。 | +| targetAPIVersion | 标识应用运行需要的API目标版本。 | 数值 | 由build-profile.json5中的compileSdkVersion生成。 | | apiReleaseType | 标识应用运行需要的API目标版本的类型,采用字符串类型表示。取值为“CanaryN”、“BetaN”或者“Release”,其中,N代表大于零的整数。
- Canary:受限发布的版本。
- Beta:公开发布的Beta版本。
- Release:公开发布的正式版本。
该字段由DevEco Studio读取当前使用的SDK的Stage来生成。 | 字符串 | 该标签可缺省,由IDE生成并覆盖。 | | distributedNotificationEnabled | 标识应用是否开启分布式通知,当开启分布式通知时,同一分布式组网下的两个设备(A和B),当设备A收到一条消息时,设备B会收到一天分布式消息用于设备B的使用者去查看设备A的消息。
- true:开启。
- false:不开启。 | 布尔值 | 该标签可缺省,缺省值为false。 | | entityType | 标识应用的类别,分别有:
- game:游戏类。
- media:影音类。
- communication:社交通信类。
- news:新闻类。
- travel:出行类。
- utility:工具类。
- shopping:购物类。
- education:教育类。
- kids:少儿类。
- business:商务类。
- photography:拍摄类。
- unspecified:不属于上述的任何一类。 | 字符串 | 该标签可以缺省,缺省为unspecified。 | diff --git a/zh-cn/application-dev/quick-start/module-configuration-file.md b/zh-cn/application-dev/quick-start/module-configuration-file.md index 589b09c9a522c192528963712d4c439634b2f51d..2ae449cfe1733abc349b7a57f8ec7c43418c1860 100644 --- a/zh-cn/application-dev/quick-start/module-configuration-file.md +++ b/zh-cn/application-dev/quick-start/module-configuration-file.md @@ -41,7 +41,7 @@ "entity.system.home" ], "actions": [ - "action.system.home" + "ohos.want.action.home" ] } ] @@ -81,8 +81,8 @@ module.json5配置文件包含以下标签。 | deliveryWithInstall | 标识当前Module是否在用户主动安装的时候安装,表示该Module对应的HAP是否跟随应用一起安装。
- true:主动安装时安装。
- false:主动安装时不安装。 | 布尔值 | 该标签不可缺省。 | | installationFree | 标识当前Module是否支持免安装特性。
- true:表示支持免安装特性,且符合免安装约束。
- false:表示不支持免安装特性。
**说明:**
- 当应用的entry类型Module的该字段配置为true时,该应用的feature类型的该字段也需要配置为true。
- 当应用的entry类型Module的该字段配置为false时,该应用的feature类型的该字段根据业务需求配置true或false。 | 布尔值 | 该标签不可缺省。 | | virtualMachine | 标识当前Module运行的目标虚拟机类型,供云端分发使用,如应用市场和分发中心。
该标签值为字符串。如果目标虚拟机类型为ArkTS引擎,则其值为“ark+版本号”。 | 字符串 | 该标签由IDE构建HAP的时候自动插入。 | -| uiSyntax(deprecated) | 标识当前Module syntax定义该JS Component的语法类型。
- hml:标识该JS Component使用hml/css/js进行开发。
- ets:标识该JS Component使用ArkTS声明式语法进行开发。 | 字符串 | 该标签可缺省,默认值为hml,该标签从API9开始废弃。 | -| [pages](#pages标签) | 标识当前Module的profile资源,用于列举JS Component中每个页面信息。该标签最大长度为255个字节。 | 字符串 | 在有UIAbility的场景下,该标签不可缺省。 | +| uiSyntax(deprecated) | 标识当前Module syntax定义该组件的语法类型。
- hml:标识该组件使用hml/css/js进行开发。
- ets:标识该组件使用ArkTS声明式语法进行开发。 | 字符串 | 该标签可缺省,默认值为hml,该标签从API9开始废弃。 | +| [pages](#pages标签) | 标识当前Module的profile资源,用于列举每个页面信息。该标签最大长度为255个字节。 | 字符串 | 在有UIAbility的场景下,该标签不可缺省。 | | [metadata](#metadata标签) | 标识当前Module的自定义元信息,标签值为数组类型,只对当前Module、UIAbility、ExtensionAbility生效。 | 对象数组 | 该标签可缺省,缺省值为空。 | | [abilities](#abilities标签) | 标识当前Module中UIAbility的配置信息,标签值为数组类型,只对当前UIAbility生效。 | 对象 | 该标签可缺省,缺省值为空。 | | [extensionAbilities](#extensionabilities标签) | 标识当前Module中ExtensionAbility的配置信息,标签值为数组类型,只对当前ExtensionAbility生效。 | 对象 | 该标签可缺省,缺省值为空。 | @@ -217,7 +217,7 @@ ablities标签描述UIAbility组件的配置信息,标签值为数组类型, | [metadata](#metadata标签) | 标识当前UIAbility组件的元信息。 | 对象数组 | 该标签可缺省,缺省值为空。 | | visible | 标识当前UIAbility组件是否可以被其他应用调用。
- true:表示可以被其他应用调用。
- false:表示不可以被其他应用调用。 | 布尔值 | 该标签可缺省,缺省值为false。 | | continuable | 标识当前UIAbility组件是否可以[迁移](../application-models/hop-cross-device-migration.md)。
- true:表示可以被迁移。
- false:表示不可以被迁移。 | 布尔值 | 该标签可缺省,缺省值为false。 | -| [skills](#skills标签) | 标识当前UIAbility组件或ExtensionAbility组件能够接收的[Want](../application-models/want-overview.md)的特征集,为数组格式。
配置规则:
- 对于Entry类型的HAP,OpenHarmony应用可以配置多个具有入口能力的skills标签(即配置了action.system.home和entity.system.home)。
- 对于Feature类型的HAP,只有OpenHarmony应用可以配置具有入口能力的skills标签,OpenHarmony服务不允许配置。 | 对象数组 | 该标签可缺省,缺省值为空。 | +| [skills](#skills标签) | 标识当前UIAbility组件或ExtensionAbility组件能够接收的[Want](../application-models/want-overview.md)的特征集,为数组格式。
配置规则:
- 对于Entry类型的HAP,OpenHarmony应用可以配置多个具有入口能力的skills标签(即配置了ohos.want.action.home和entity.system.home)。
- 对于Feature类型的HAP,只有OpenHarmony应用可以配置具有入口能力的skills标签,OpenHarmony服务不允许配置。 | 对象数组 | 该标签可缺省,缺省值为空。 | | backgroundModes | 标识当前UIAbility组件的长时任务集合。指定用于满足特定类型的长时任务。
长时任务类型有如下:
- dataTransfer:通过网络/对端设备进行数据下载、备份、分享、传输等业务。
- audioPlayback:音频输出业务。
- audioRecording:音频输入业务。
- location:定位、导航业务。
- bluetoothInteraction:蓝牙扫描、连接、传输业务(穿戴)。
- multiDeviceConnection:多设备互联业务。
- wifiInteraction:Wi-Fi扫描、连接、传输业务(克隆多屏)。
- voip:音视频电话,VoIP业务。
- taskKeeping:计算业务。 | 字符串数组 | 该标签可缺省,缺省值为空。 | | startWindowIcon | 标识当前UIAbility组件启动页面图标资源文件的索引。取值示例:$media:icon。
该标签最大字节长度为255。 | 字符串 | 不可缺省。 | | startWindowBackground | 标识当前UIAbility组件启动页面背景颜色资源文件的索引。取值示例:$color:red。
改标签最大字节长度为255。 | 字符串 | 不可缺省。 | @@ -250,7 +250,7 @@ abilities示例: "visible": true, "continuable": true, "skills": [{ - "actions": ["action.system.home"], + "actions": ["ohos.want.action.home"], "entities": ["entity.system.home"], "uris": [] }], @@ -302,7 +302,7 @@ abilities示例: | host | 标识URI的主机地址部分,该字段要在schema存在时才有意义。常见的方式:
- 域名方式,如example.com。
- IP地址方式,如10.10.10.1。 | 字符串 | 可缺省,缺省值为空。 | | port | 标识URI的端口部分。如http默认端口为80,https默认端口是443,ftp默认端口是21。该字段要在schema和host都存在时才有意义。 | 字符串 | 可缺省,缺省值为空。 | | path \| pathStartWith \| pathRegex | 标识URI的路径部分,path、pathStartWith和pathRegex配置时三选一。path标识URI与want中的路径部分全匹配,pathStartWith标识URI与want中的路径部分允许前缀匹配,pathRegex标识URI与want中的路径部分允许正则匹配。该字段要在schema和host都存在时才有意义。 | 字符串 | 可缺省,缺省值为空。 | -| type | 标识与Want相匹配的数据类型,使用[MIME](https://www.iana.org/assignments/media-types/media-types.xhtml?utm_source=ld246.com%E3%80%82)(Multipurpose Internet Mail Extensions)类型规范。可与schema同时配置,也可以单独配置。 | 字符串 | 可缺省,缺省值为空。 | +| type | 标识与Want相匹配的数据类型,使用MIME(Multipurpose Internet Mail Extensions)类型规范。可与schema同时配置,也可以单独配置。 | 字符串 | 可缺省,缺省值为空。 | skills示例: @@ -314,7 +314,7 @@ skills示例: "skills": [ { "actions": [ - "action.system.home" + "ohos.want.action.home" ], "entities": [ "entity.system.home" @@ -352,7 +352,7 @@ skills示例: | type | 标识当前ExtensionAbility组件的类型,取值为:
- form:卡片的ExtensionAbility。
- workScheduler:延时任务的ExtensionAbility。
- inputMethod:输入法的ExtensionAbility。
- service:后台运行的service组件。
- accessibility:辅助能力的ExtensionAbility。
- dataShare:数据共享的ExtensionAbility。
- fileShare:文件共享的ExtensionAbility。
- staticSubscriber:静态广播的ExtensionAbility。
- wallpaper:壁纸的ExtensionAbility。
- backup:数据备份的ExtensionAbility。
- window:该ExtensionAbility会在启动过程中创建一个window,为开发者提供界面开发。开发者开发出来的界面将通过abilityComponent控件组合到其他应用的窗口中。
- thumbnail:获取文件缩略图的ExtensionAbility,开发者可以对自定义文件类型的文件提供缩略。
- preview:该ExtensionAbility会将文件解析后在一个窗口中显示,开发者可以通过将此窗口组合到其他应用窗口中。
**说明:**
- 其中service和dataShare类型,仅支持系统应用配置,三方应用配置不生效。 | 字符串 | 该标签不可缺省。 | | permissions | 标识当前ExtensionAbility组件自定义的权限信息。当其他应用访问该ExtensionAbility时,需要申请相应的权限信息。
一个数组元素为一个权限名称。通常采用反向域名格式(最大255字节),可以是系统预定义的权限,也可以是该应用自定义的权限。如果是后者,需与defPermissions标签中定义的某个权限的name标签值一致。 | 字符串数组 | 该标签可缺省,缺省值为空。 | | uri | 标识当前ExtensionAbility组件提供的数据URI,为字符数组类型(最大长度255),用反向域名的格式表示。
**说明:**
- 该标签在type为dataShare类型的ExtensionAbility时,不可缺省。 | 字符串 | 该标签可缺省,缺省值为空。 | -|skills | 标识当前ExtensionAbility组件能够接收的[Want](../application-models/want-overview.md)的特征集,为数组格式。
配置规则:entry包可以配置多个具有入口能力的skills标签(配置了action.system.home和entity.system.home)的ExtensionAbility,其中第一个配置了skills标签的ExtensionAbility中的label和icon作为OpenHarmony服务或应用的label和icon。
**说明:**
- OpenHarmony服务的Feature包不能配置具有入口能力的skills标签。
- OpenHarmony应用的Feature包可以配置具有入口能力的skills标签。 | 数组 | 该标签可缺省,缺省值为空。 | +|skills | 标识当前ExtensionAbility组件能够接收的[Want](../application-models/want-overview.md)的特征集,为数组格式。
配置规则:entry包可以配置多个具有入口能力的skills标签(配置了ohos.want.action.home和entity.system.home)的ExtensionAbility,其中第一个配置了skills标签的ExtensionAbility中的label和icon作为OpenHarmony服务或应用的label和icon。
**说明:**
- OpenHarmony服务的Feature包不能配置具有入口能力的skills标签。
- OpenHarmony应用的Feature包可以配置具有入口能力的skills标签。 | 数组 | 该标签可缺省,缺省值为空。 | | [metadata](#metadata标签) | 标识当前ExtensionAbility组件的元信息。 | 对象 | 该标签可缺省,缺省值为空。 | | visible | 标识当前ExtensionAbility组件是否可以被其他应用调用,为布尔类型。
- true:表示可以被其他应用调用。
- false:表示不可以被其他应用调用。 | 布尔值 | 该标签可缺省,缺省值为false。 | @@ -481,7 +481,7 @@ metadata中指定shortcut信息,其中: "entity.system.home" ], "actions": [ - "action.system.home" + "ohos.want.action.home" ] } ], @@ -510,7 +510,7 @@ metadata中指定shortcut信息,其中: | screenShape | 标识屏幕形状的支持策略。 | 对象数组 | 该标签可缺省,缺省值为空。 | | screenWindow | 标识应用运行时窗口的分辨率支持策略。该字段仅支持对轻量级智能穿戴设备进行配置。 | 对象数组 | 该标签可缺省,缺省值为空。 | | screenDensity | 标识屏幕的像素密度(dpi:Dot Per Inch)。该字段可选,如果配置了该字段,取值必须合法。该标签为字符串数组,字符串范围如下。
- sdpi:表示小规模的屏幕密度(Small-scale Dots per Inch),适用于dpi取值为(0,120]的设备。
- mdpi:表示中规模的屏幕密度(Medium-scale Dots Per Inch),适用于dpi取值为(120,160]的设备。
- ldpi:表示大规模的屏幕密度(Large-scale Dots Per Inch),适用于dpi取值为(160,240]的设备。
- xldpi:表示大规模的屏幕密度(Extra Large-scale Dots Per Inch),适用于dpi取值为(240,320]的设备。
- xxldpi:表示大规模的屏幕密度(Extra Extra Large-scale Dots Per Inch),适用于dpi取值为(320,480]的设备。
- xxxldpi:表示大规模的屏幕密度(Extra Extra Extra Large-scale Dots Per Inch),适用于dpi取值为(480, 640]的设备。 | 对象数组 | 该标签可缺省,缺省值为空。 | -| countryCode | 表示应用需要分发的国家地区码,具体值以[ISO-3166-1](https://developer.harmonyos.com/cn/docs/documentation/doc-guides/basic-resource-file-categories-0000001052066099)标准为准。支持多个国家和地区枚举定义。 | 对象数组 | 该标签可缺省,缺省值为空。 | +| countryCode | 表示应用需要分发的国家地区码,具体值以ISO-3166-1标准为准。支持多个国家和地区枚举定义。 | 对象数组 | 该标签可缺省,缺省值为空。 | **表10** **apiVersion标签说明** diff --git a/zh-cn/application-dev/reference/apis/Readme-CN.md b/zh-cn/application-dev/reference/apis/Readme-CN.md index 338b123f1cbea437d2947b9a196f1c3c588fdbf0..4c5f786f6875f4c5f88669806d6a0baa1adfb275 100755 --- a/zh-cn/application-dev/reference/apis/Readme-CN.md +++ b/zh-cn/application-dev/reference/apis/Readme-CN.md @@ -20,15 +20,9 @@ - [@ohos.application.StaticSubscriberExtensionAbility (StaticSubscriberExtensionAbility)](js-apis-application-staticSubscriberExtensionAbility.md) - Stage模型能力的接口(待停用) - [@ohos.application.Ability (Ability)](js-apis-application-ability.md) - - [@ohos.application.AbilityConstant (AbilityConstant)](js-apis-application-abilityConstant.md) - [@ohos.application.AbilityLifecycleCallback (AbilityLifecycleCallback)](js-apis-application-abilityLifecycleCallback.md) - - [@ohos.application.AbilityStage (AbilityStage)](js-apis-application-abilityStage.md) - - [@ohos.application.context (Context)](js-apis-application-context.md) - [@ohos.application.EnvironmentCallback (EnvironmentCallback)](js-apis-application-environmentCallback.md) - - [@ohos.application.ExtensionAbility (ExtensionAbility)](js-apis-application-extensionAbility.md) - [@ohos.application.FormExtension (FormExtension)](js-apis-application-formExtension.md) - - [@ohos.application.ServiceExtensionAbility (ServiceExtensionAbility)](js-apis-application-serviceExtensionAbility.md) - - [@ohos.application.StartOptions (StartOptions)](js-apis-application-startOptions.md) - FA模型能力的接口 - [@ohos.ability.ability (Ability)](js-apis-ability-ability.md) - [@ohos.ability.featureAbility (FeatureAbility模块)](js-apis-ability-featureAbility.md) @@ -284,11 +278,11 @@ - [@ohos.hiTraceChain (分布式跟踪)](js-apis-hitracechain.md) - [@ohos.hiTraceMeter (性能打点)](js-apis-hitracemeter.md) - [@ohos.hiviewdfx.hiAppEvent (应用事件打点)](js-apis-hiviewdfx-hiappevent.md) - - [@ohos.inputmethod (输入法框架)](js-apis-inputmethod.md) - - [@ohos.inputmethodengine (输入法服务)](js-apis-inputmethodengine.md) - - [@ohos.inputmethodextensionability (InputMethodExtensionAbility)](js-apis-inputmethod-extension-ability.md) - - [@ohos.inputmethodextensioncontext (InputMethodExtensionContext)](js-apis-inputmethod-extension-context.md) - - [@ohos.inputmethodsubtype (输入法子类型)](js-apis-inputmethod-subtype.md) + - [@ohos.inputMethod (输入法框架)](js-apis-inputmethod.md) + - [@ohos.inputMethodEngine (输入法服务)](js-apis-inputmethodengine.md) + - [@ohos.InputMethodExtensionAbility (InputMethodExtensionAbility)](js-apis-inputmethod-extension-ability.md) + - [@ohos.InputMethodExtensionContext (InputMethodExtensionContext)](js-apis-inputmethod-extension-context.md) + - [@ohos.InputMethodSubtype (输入法子类型)](js-apis-inputmethod-subtype.md) - [@ohos.pasteboard (剪贴板)](js-apis-pasteboard.md) - [@ohos.screenLock (锁屏管理)](js-apis-screen-lock.md) - [@ohos.systemTime (系统时间、时区)](js-apis-system-time.md) @@ -327,7 +321,7 @@ - [@ohos.systemParameterV9 (系统属性)](js-apis-system-parameterV9.md) - [@ohos.thermal (热管理)](js-apis-thermal.md) - [@ohos.update (升级)](js-apis-update.md) - - [@ohos.usbV9 (USB管理)](js-apis-usb.md) + - [@ohos.usbManager (USB管理)](js-apis-usbManager.md) - [@ohos.vibrator (振动)](js-apis-vibrator.md) - 帐号管理 @@ -341,6 +335,7 @@ - [@ohos.enterprise.EnterpriseAdminExtensionAbility (EnterpriseAdminExtensionAbility)](js-apis-EnterpriseAdminExtensionAbility.md) - [@ohos.enterprise.adminManager (企业设备管理)](js-apis-enterprise-adminManager.md) - [@ohos.enterprise.dateTimeManager (系统时间管理)](js-apis-enterprise-dateTimeManager.md) + - [@ohos.enterprise.deviceControl (设备控制管理)](js-apis-enterprise-deviceControl.md) - 语言基础类库 - [@ohos.buffer (Buffer)](js-apis-buffer.md) @@ -390,6 +385,7 @@ - [@ohos.statfs (statfs)](js-apis-statfs.md) - [@ohos.systemParameter (系统属性)](js-apis-system-parameter.md) - [@ohos.usb (USB管理)](js-apis-usb-deprecated.md) + - [@ohos.usbV9 (USB管理)](js-apis-usb.md) - [@system.app (应用上下文)](js-apis-system-app.md) - [@system.battery (电量信息)](js-apis-system-battery.md) - [@system.bluetooth (蓝牙)](js-apis-system-bluetooth.md) diff --git a/zh-cn/application-dev/reference/apis/js-apis-Bundle.md b/zh-cn/application-dev/reference/apis/js-apis-Bundle.md index 4b9d2ab5077ce660f7240f245c8512ba2d11e24f..9fbf316d05afb22bf7870b8b9dcb2e073e0fc59f 100755 --- a/zh-cn/application-dev/reference/apis/js-apis-Bundle.md +++ b/zh-cn/application-dev/reference/apis/js-apis-Bundle.md @@ -1603,7 +1603,7 @@ bundle.getNameForUid(uid, (err, data) => { ## bundle.getAbilityIcon8+ deprecated -> 从API version 9开始不再维护,建议使用[bundleManager.getAbilityIcon](js-apis-bundleManager.md#bundlemanagergetabilityicon)替代。 +> 从API version 9开始不再维护,建议使用[resourceManager.getMediaContent](js-apis-resource-manager.md#getmediacontent9)替代。 getAbilityIcon(bundleName: string, abilityName: string): Promise\; @@ -1646,7 +1646,7 @@ bundle.getAbilityIcon(bundleName, abilityName) ## bundle.getAbilityIcon8+ deprecated -> 从API version 9开始不再维护,建议使用[bundleManager.getAbilityIcon](js-apis-bundleManager.md#bundlemanagergetabilityicon)替代。 +> 从API version 9开始不再维护,建议使用[resourceManager.getMediaContent](js-apis-resource-manager.md#getmediacontent9)替代。 getAbilityIcon(bundleName: string, abilityName: string, callback: AsyncCallback\): void; diff --git a/zh-cn/application-dev/reference/apis/js-apis-ability-context.md b/zh-cn/application-dev/reference/apis/js-apis-ability-context.md index ac466f330f74b1a43c047e7cb92fe8fc713704fa..b8008bef08ef4d25e8e35b4bc77982f8a06aea69 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-ability-context.md +++ b/zh-cn/application-dev/reference/apis/js-apis-ability-context.md @@ -65,7 +65,7 @@ startAbility(want: Want, callback: AsyncCallback<void>): void; **示例:** ```ts - var want = { + let want = { bundleName: "com.example.myapplication", abilityName: "MyAbility" }; @@ -107,7 +107,7 @@ startAbility(want: Want, options: StartOptions, callback: AsyncCallback<void& | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | | want | [Want](js-apis-application-want.md) | 是 | 启动Ability的want信息。 | -| options | [StartOptions](js-apis-application-startOptions.md) | 是 | 启动Ability所携带的参数。 | +| options | [StartOptions](js-apis-app-ability-startOptions.md) | 是 | 启动Ability所携带的参数。 | | callback | AsyncCallback<void> | 是 | callback形式返回启动结果。 | **错误码:** @@ -121,12 +121,12 @@ startAbility(want: Want, options: StartOptions, callback: AsyncCallback<void& **示例:** ```ts - var want = { + let want = { deviceId: "", bundleName: "com.example.myapplication", abilityName: "EntryAbility" }; - var options = { + let options = { windowMode: 0 }; @@ -166,7 +166,7 @@ startAbility(want: Want, options?: StartOptions): Promise<void>; | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | | want | [Want](js-apis-application-want.md) | 是 | 启动Ability的want信息。 | -| options | [StartOptions](js-apis-application-startOptions.md) | 否 | 启动Ability所携带的参数。 | +| options | [StartOptions](js-apis-app-ability-startOptions.md) | 否 | 启动Ability所携带的参数。 | **返回值:** @@ -185,11 +185,11 @@ startAbility(want: Want, options?: StartOptions): Promise<void>; **示例:** ```ts - var want = { + let want = { bundleName: "com.example.myapplication", abilityName: "MyAbility" }; - var options = { + let options = { windowMode: 0, }; @@ -216,7 +216,10 @@ startAbility(want: Want, options?: StartOptions): Promise<void>; startAbilityForResult(want: Want, callback: AsyncCallback<AbilityResult>): void; -启动一个Ability。Ability被启动后,正常情况下可通过调用[terminateSelfWithResult](#abilitycontextterminateselfwithresult)接口使之终止并且返回结果给调用者。异常情况下比如杀死Ability会返回异常信息给调用者(callback形式)。 +启动一个Ability。Ability被启动后,有如下情况(callback形式): + - 正常情况下可通过调用[terminateSelfWithResult](#abilitycontextterminateselfwithresult)接口使之终止并且返回结果给调用方。 + - 异常情况下比如杀死Ability会返回异常信息给调用方, 异常信息中resultCode为-1。 + - 如果被启动的Ability模式是单实例模式, 不同应用多次调用该接口启动这个Ability,当这个Ability调用[terminateSelfWithResult](#abilitycontextterminateselfwithresult)接口使之终止时,只将正常结果返回给最后一个调用方, 其它调用方返回异常信息, 异常信息中resultCode为-1。 使用规则: - 调用方应用位于后台时,使用该接口启动Ability需申请`ohos.permission.START_ABILITIES_FROM_BACKGROUND`权限 @@ -243,7 +246,7 @@ startAbilityForResult(want: Want, callback: AsyncCallback<AbilityResult>): **示例:** ```ts - var want = { + let want = { deviceId: "", bundleName: "com.example.myapplication", abilityName: "EntryAbility" @@ -272,7 +275,10 @@ startAbilityForResult(want: Want, callback: AsyncCallback<AbilityResult>): startAbilityForResult(want: Want, options: StartOptions, callback: AsyncCallback<AbilityResult>): void; -启动一个Ability。Ability被启动后,正常情况下可通过调用[terminateSelfWithResult](#abilitycontextterminateselfwithresult)接口使之终止并且返回结果给调用者。异常情况下比如杀死Ability会返回异常信息给调用者(callback形式)。 +启动一个Ability。Ability被启动后,有如下情况(callback形式): + - 正常情况下可通过调用[terminateSelfWithResult](#abilitycontextterminateselfwithresult)接口使之终止并且返回结果给调用方。 + - 异常情况下比如杀死Ability会返回异常信息给调用方, 异常信息中resultCode为-1。 + - 如果被启动的Ability模式是单实例模式, 不同应用多次调用该接口启动这个Ability,当这个Ability调用[terminateSelfWithResult](#abilitycontextterminateselfwithresult)接口使之终止时,只将正常结果返回给最后一个调用方, 其它调用方返回异常信息, 异常信息中resultCode为-1。 使用规则: - 调用方应用位于后台时,使用该接口启动Ability需申请`ohos.permission.START_ABILITIES_FROM_BACKGROUND`权限 @@ -286,7 +292,7 @@ startAbilityForResult(want: Want, options: StartOptions, callback: AsyncCallback | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | | want |[Want](js-apis-application-want.md) | 是 | 启动Ability的want信息。 | -| options | [StartOptions](js-apis-application-startOptions.md) | 是 | 启动Ability所携带的参数。 | +| options | [StartOptions](js-apis-app-ability-startOptions.md) | 是 | 启动Ability所携带的参数。 | | callback | AsyncCallback<[AbilityResult](js-apis-inner-ability-abilityResult.md)> | 是 | 执行结果回调函数。 | **错误码:** @@ -300,12 +306,12 @@ startAbilityForResult(want: Want, options: StartOptions, callback: AsyncCallback **示例:** ```ts - var want = { + let want = { deviceId: "", bundleName: "com.example.myapplication", abilityName: "EntryAbility" }; - var options = { + let options = { windowMode: 0, }; @@ -333,7 +339,10 @@ startAbilityForResult(want: Want, options: StartOptions, callback: AsyncCallback startAbilityForResult(want: Want, options?: StartOptions): Promise<AbilityResult>; -启动一个Ability。Ability被启动后,正常情况下可通过调用[terminateSelfWithResult](#abilitycontextterminateselfwithresult)接口使之终止并且返回结果给调用者。异常情况下比如杀死Ability会返回异常信息给调用者(promise形式)。 +启动一个Ability。Ability被启动后,有如下情况(promise形式): + - 正常情况下可通过调用[terminateSelfWithResult](#abilitycontextterminateselfwithresult)接口使之终止并且返回结果给调用方。 + - 异常情况下比如杀死Ability会返回异常信息给调用方, 异常信息中resultCode为-1。 + - 如果被启动的Ability模式是单实例模式, 不同应用多次调用该接口启动这个Ability,当这个Ability调用[terminateSelfWithResult](#abilitycontextterminateselfwithresult)接口使之终止时,只将正常结果返回给最后一个调用方, 其它调用方返回异常信息, 异常信息中resultCode为-1。 使用规则: - 调用方应用位于后台时,使用该接口启动Ability需申请`ohos.permission.START_ABILITIES_FROM_BACKGROUND`权限 @@ -347,7 +356,7 @@ startAbilityForResult(want: Want, options?: StartOptions): Promise<AbilityRes | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | | want | [Want](js-apis-application-want.md) | 是 | 启动Ability的want信息。 | -| options | [StartOptions](js-apis-application-startOptions.md) | 否 | 启动Ability所携带的参数。 | +| options | [StartOptions](js-apis-app-ability-startOptions.md) | 否 | 启动Ability所携带的参数。 | **返回值:** @@ -367,11 +376,11 @@ startAbilityForResult(want: Want, options?: StartOptions): Promise<AbilityRes **示例:** ```ts - var want = { + let want = { bundleName: "com.example.myapplication", abilityName: "MyAbility" }; - var options = { + let options = { windowMode: 0, }; @@ -429,12 +438,12 @@ startAbilityForResultWithAccount(want: Want, accountId: number, callback: AsyncC **示例:** ```ts - var want = { + let want = { deviceId: "", bundleName: "com.example.myapplication", abilityName: "EntryAbility" }; - var accountId = 100; + let accountId = 100; try { this.context.startAbilityForResultWithAccount(want, accountId, (error, result) => { @@ -479,7 +488,7 @@ startAbilityForResultWithAccount(want: Want, accountId: number, options: StartOp | -------- | -------- | -------- | -------- | | want | [Want](js-apis-application-want.md) | 是 | 启动Ability的want信息。 | | accountId | number | 是 | 系统帐号的帐号ID,详情参考[getCreatedOsAccountsCount](js-apis-osAccount.md#getosaccountlocalidfromprocess)。 | -| options | [StartOptions](js-apis-application-startOptions.md) | 是 | 启动Ability所携带的参数。 | +| options | [StartOptions](js-apis-app-ability-startOptions.md) | 是 | 启动Ability所携带的参数。 | | callback | AsyncCallback\ | 是 | 启动Ability的回调函数。 | **错误码:** @@ -493,13 +502,13 @@ startAbilityForResultWithAccount(want: Want, accountId: number, options: StartOp **示例:** ```ts - var want = { + let want = { deviceId: "", bundleName: "com.example.myapplication", abilityName: "EntryAbility" }; - var accountId = 100; - var options = { + let accountId = 100; + let options = { windowMode: 0 }; @@ -546,7 +555,7 @@ startAbilityForResultWithAccount(want: Want, accountId: number, options?: StartO | -------- | -------- | -------- | -------- | | want | [Want](js-apis-application-want.md) | 是 | 启动Ability的want信息。 | | accountId | number | 是 | 系统帐号的帐号ID,详情参考[getCreatedOsAccountsCount](js-apis-osAccount.md#getosaccountlocalidfromprocess)。 | -| options | [StartOptions](js-apis-application-startOptions.md) | 否 | 启动Ability所携带的参数。 | +| options | [StartOptions](js-apis-app-ability-startOptions.md) | 否 | 启动Ability所携带的参数。 | **返回值:** @@ -565,13 +574,13 @@ startAbilityForResultWithAccount(want: Want, accountId: number, options?: StartO **示例:** ```ts - var want = { + let want = { deviceId: "", bundleName: "com.example.myapplication", abilityName: "EntryAbility" }; - var accountId = 100; - var options = { + let accountId = 100; + let options = { windowMode: 0 }; @@ -621,7 +630,7 @@ startServiceExtensionAbility(want: Want, callback: AsyncCallback\): void; **示例:** ```ts - var want = { + let want = { deviceId: "", bundleName: "com.example.myapplication", abilityName: "EntryAbility" @@ -672,7 +681,7 @@ startServiceExtensionAbility(want: Want): Promise\; **示例:** ```ts - var want = { + let want = { deviceId: "", bundleName: "com.example.myapplication", abilityName: "EntryAbility" @@ -727,12 +736,12 @@ startServiceExtensionAbilityWithAccount(want: Want, accountId: number, callback: **示例:** ```ts - var want = { + let want = { deviceId: "", bundleName: "com.example.myapplication", abilityName: "EntryAbility" }; - var accountId = 100; + let accountId = 100; try { this.context.startServiceExtensionAbilityWithAccount(want, accountId, (error) => { @@ -782,12 +791,12 @@ startServiceExtensionAbilityWithAccount(want: Want, accountId: number): Promise\ **示例:** ```ts - var want = { + let want = { deviceId: "", bundleName: "com.example.myapplication", abilityName: "EntryAbility" }; - var accountId = 100; + let accountId = 100; try { this.context.startServiceExtensionAbilityWithAccount(want, accountId) @@ -834,7 +843,7 @@ stopServiceExtensionAbility(want: Want, callback: AsyncCallback\): void; **示例:** ```ts - var want = { + let want = { deviceId: "", bundleName: "com.example.myapplication", abilityName: "EntryAbility" @@ -891,7 +900,7 @@ stopServiceExtensionAbility(want: Want): Promise\; **示例:** ```ts - var want = { + let want = { deviceId: "", bundleName: "com.example.myapplication", abilityName: "EntryAbility" @@ -952,12 +961,12 @@ stopServiceExtensionAbilityWithAccount(want: Want, accountId: number, callback: **示例:** ```ts - var want = { + let want = { deviceId: "", bundleName: "com.example.myapplication", abilityName: "EntryAbility" }; - var accountId = 100; + let accountId = 100; try { this.context.startAbilityWithAccount(want, accountId, (error) => { @@ -1013,12 +1022,12 @@ stopServiceExtensionAbilityWithAccount(want: Want, accountId: number): Promise\< **示例:** ```ts - var want = { + let want = { deviceId: "", bundleName: "com.example.myapplication", abilityName: "EntryAbility" }; - var accountId = 100; + let accountId = 100; try { this.context.startAbilityWithAccount(want, accountId, (error) => { @@ -1144,13 +1153,13 @@ terminateSelfWithResult(parameter: AbilityResult, callback: AsyncCallback<voi **示例:** ```ts - var want = { + let want = { bundleName: "com.extreme.myapplication", abilityName: "SecondAbility" } - var resultCode = 100; + let resultCode = 100; // 返回给接口调用方AbilityResult信息 - var abilityResult = { + let abilityResult = { want, resultCode } @@ -1207,13 +1216,13 @@ terminateSelfWithResult(parameter: AbilityResult): Promise<void>; **示例:** ```ts - var want = { + let want = { bundleName: "com.extreme.myapplication", abilityName: "SecondAbility" } - var resultCode = 100; + let resultCode = 100; // 返回给接口调用方AbilityResult信息 - var abilityResult = { + let abilityResult = { want, resultCode } @@ -1270,18 +1279,18 @@ connectServiceExtensionAbility(want: Want, options: ConnectOptions): number; **示例:** ```ts - var want = { + let want = { deviceId: "", bundleName: "com.example.myapplication", abilityName: "EntryAbility" }; - var options = { + let options = { onConnect(elementName, remote) { console.log('----------- onConnect -----------') }, onDisconnect(elementName) { console.log('----------- onDisconnect -----------') }, onFailed(code) { console.log('----------- onFailed -----------') } } - var connection = null; + let connection = null; try { connection = this.context.connectServiceExtensionAbility(want, options); } catch (paramError) { @@ -1329,19 +1338,19 @@ connectServiceExtensionAbilityWithAccount(want: Want, accountId: number, options **示例:** ```ts - var want = { + let want = { deviceId: "", bundleName: "com.example.myapplication", abilityName: "EntryAbility" }; - var accountId = 100; - var options = { + let accountId = 100; + let options = { onConnect(elementName, remote) { console.log('----------- onConnect -----------') }, onDisconnect(elementName) { console.log('----------- onDisconnect -----------') }, onFailed(code) { console.log('----------- onFailed -----------') } } - var connection = null; + let connection = null; try { connection = this.context.connectServiceExtensionAbilityWithAccount(want, accountId, options); } catch (paramError) { @@ -1383,7 +1392,7 @@ disconnectServiceExtensionAbility(connection: number): Promise\; ```ts // connection为connectServiceExtensionAbility中的返回值 - var connection = 1; + let connection = 1; try { this.context.disconnectServiceExtensionAbility(connection) @@ -1430,7 +1439,7 @@ disconnectServiceExtensionAbility(connection: number, callback:AsyncCallback\ { @@ -1482,10 +1491,10 @@ startAbilityByCall(want: Want): Promise<Caller>; 后台启动: ```ts - var caller = undefined; + let caller = undefined; // 后台启动Ability,不配置parameters - var wantBackground = { + let wantBackground = { bundleName: "com.example.myservice", moduleName: "entry", abilityName: "EntryAbility", @@ -1513,10 +1522,10 @@ startAbilityByCall(want: Want): Promise<Caller>; 前台启动: ```ts - var caller = undefined; + let caller = undefined; // 前台启动Ability,将parameters中的"ohos.aafwk.param.callAbilityToForeground"配置为true - var wantForeground = { + let wantForeground = { bundleName: "com.example.myservice", moduleName: "entry", abilityName: "EntryAbility", @@ -1580,12 +1589,12 @@ startAbilityWithAccount(want: Want, accountId: number, callback: AsyncCallback\< **示例:** ```ts - var want = { + let want = { deviceId: "", bundleName: "com.example.myapplication", abilityName: "EntryAbility" }; - var accountId = 100; + let accountId = 100; try { this.context.startAbilityWithAccount(want, accountId, (error) => { @@ -1629,7 +1638,7 @@ startAbilityWithAccount(want: Want, accountId: number, options: StartOptions, ca | -------- | -------- | -------- | -------- | | want | [Want](js-apis-application-want.md) | 是 | 启动Ability的want信息。 | | accountId | number | 是 | 系统帐号的帐号ID,详情参考[getCreatedOsAccountsCount](js-apis-osAccount.md#getosaccountlocalidfromprocess)。| -| options | [StartOptions](js-apis-application-startOptions.md) | 是 | 启动Ability所携带的参数。 | +| options | [StartOptions](js-apis-app-ability-startOptions.md) | 是 | 启动Ability所携带的参数。 | | callback | AsyncCallback\ | 是 | 启动Ability的回调函数。 | **错误码:** @@ -1643,13 +1652,13 @@ startAbilityWithAccount(want: Want, accountId: number, options: StartOptions, ca **示例:** ```ts - var want = { + let want = { deviceId: "", bundleName: "com.example.myapplication", abilityName: "EntryAbility" }; - var accountId = 100; - var options = { + let accountId = 100; + let options = { windowMode: 0 }; @@ -1695,7 +1704,7 @@ startAbilityWithAccount(want: Want, accountId: number, options?: StartOptions): | -------- | -------- | -------- | -------- | | want | [Want](js-apis-application-want.md) | 是 | 启动Ability的want信息。 | | accountId | number | 是 | 系统帐号的帐号ID,详情参考[getCreatedOsAccountsCount](js-apis-osAccount.md#getosaccountlocalidfromprocess)。 | -| options | [StartOptions](js-apis-application-startOptions.md) | 否 | 启动Ability所携带的参数。 | +| options | [StartOptions](js-apis-app-ability-startOptions.md) | 否 | 启动Ability所携带的参数。 | **错误码:** @@ -1708,13 +1717,13 @@ startAbilityWithAccount(want: Want, accountId: number, options?: StartOptions): **示例:** ```ts - var want = { + let want = { deviceId: "", bundleName: "com.example.myapplication", abilityName: "EntryAbility" }; - var accountId = 100; - var options = { + let accountId = 100; + let options = { windowMode: 0 }; @@ -1810,9 +1819,9 @@ setMissionIcon(icon: image.PixelMap, callback:AsyncCallback\): void; ```ts import image from '@ohos.multimedia.image'; - var imagePixelMap; - var color = new ArrayBuffer(0); - var initializationOptions = { + let imagePixelMap; + let color = new ArrayBuffer(0); + let initializationOptions = { size: { height: 100, width: 100 @@ -1857,9 +1866,9 @@ setMissionIcon(icon: image.PixelMap): Promise\; ```ts import image from '@ohos.multimedia.image'; - var imagePixelMap; - var color = new ArrayBuffer(0); - var initializationOptions = { + let imagePixelMap; + let color = new ArrayBuffer(0); + let initializationOptions = { size: { height: 100, width: 100 @@ -1897,7 +1906,7 @@ restoreWindowStage(localStorage: LocalStorage) : void; **示例:** ```ts - var storage = new LocalStorage(); + let storage = new LocalStorage(); this.context.restoreWindowStage(storage); ``` @@ -1918,6 +1927,6 @@ isTerminating(): boolean; **示例:** ```ts - var isTerminating = this.context.isTerminating(); + let isTerminating = this.context.isTerminating(); console.log('ability state :' + isTerminating); ``` \ No newline at end of file diff --git a/zh-cn/application-dev/reference/apis/js-apis-ability-featureAbility.md b/zh-cn/application-dev/reference/apis/js-apis-ability-featureAbility.md index d0c7c379d5272b779d71ec7cff74d09cefbd5140..c2eeaf878020e583b60a3f33713c8b21be58c52f 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-ability-featureAbility.md +++ b/zh-cn/application-dev/reference/apis/js-apis-ability-featureAbility.md @@ -41,7 +41,7 @@ startAbility(parameter: StartAbilityParameter, callback: AsyncCallback\) ```ts import featureAbility from '@ohos.ability.featureAbility'; -import wantConstant from '@ohos.ability.wantConstant'; +import wantConstant from '@ohos.app.ability.wantConstant'; featureAbility.startAbility( { want: @@ -94,7 +94,7 @@ startAbility(parameter: StartAbilityParameter): Promise\ ```ts import featureAbility from '@ohos.ability.featureAbility'; -import wantConstant from '@ohos.ability.wantConstant'; +import wantConstant from '@ohos.app.ability.wantConstant'; featureAbility.startAbility( { want: @@ -145,7 +145,7 @@ acquireDataAbilityHelper(uri: string): DataAbilityHelper ```ts import featureAbility from '@ohos.ability.featureAbility'; -var dataAbilityHelper = featureAbility.acquireDataAbilityHelper( +let dataAbilityHelper = featureAbility.acquireDataAbilityHelper( "dataability:///com.example.DataAbility" ); ``` @@ -154,7 +154,10 @@ var dataAbilityHelper = featureAbility.acquireDataAbilityHelper( startAbilityForResult(parameter: StartAbilityParameter, callback: AsyncCallback\): void -启动一个Ability。Ability被启动后,正常情况下可通过调用[terminateSelfWithResult](#featureabilityterminateselfwithresult7)接口使之终止并且返回结果给调用者。异常情况下比如杀死Ability会返回异常信息给调用者(callback形式)。 +启动一个Ability。Ability被启动后,有如下情况(callback形式): + - 正常情况下可通过调用[terminateSelfWithResult](#featureabilityterminateselfwithresult7)接口使之终止并且返回结果给调用方。 + - 异常情况下比如杀死Ability会返回异常信息给调用方, 异常信息中resultCode为-1。 + - 如果被启动的Ability模式是单实例模式, 不同应用多次调用该接口启动这个Ability,当这个Ability调用[terminateSelfWithResult](#featureabilityterminateselfwithresult7)接口使之终止时,只将正常结果返回给最后一个调用方, 其它调用方返回异常信息, 异常信息中resultCode为-1。 使用规则: - 调用方应用位于后台时,使用该接口启动Ability需申请`ohos.permission.START_ABILITIES_FROM_BACKGROUND`权限 @@ -174,7 +177,7 @@ startAbilityForResult(parameter: StartAbilityParameter, callback: AsyncCallback\ ```ts import featureAbility from '@ohos.ability.featureAbility'; -import wantConstant from '@ohos.ability.wantConstant'; +import wantConstant from '@ohos.app.ability.wantConstant'; featureAbility.startAbilityForResult( { want: @@ -200,7 +203,10 @@ featureAbility.startAbilityForResult( startAbilityForResult(parameter: StartAbilityParameter): Promise\ -启动一个Ability。Ability被启动后,正常情况下可通过调用[terminateSelfWithResult](#featureabilityterminateselfwithresult7)接口使之终止并且返回结果给调用者。异常情况下比如杀死Ability会返回异常信息给调用者(Promise形式)。 +启动一个Ability。Ability被启动后,有如下情况(Promise形式): + - 正常情况下可通过调用[terminateSelfWithResult](#featureabilityterminateselfwithresult7)接口使之终止并且返回结果给调用方。 + - 异常情况下比如杀死Ability会返回异常信息给调用方, 异常信息中resultCode为-1。 + - 如果被启动的Ability模式是单实例模式, 不同应用多次调用该接口启动这个Ability,当这个Ability调用[terminateSelfWithResult](#featureabilityterminateselfwithresult7)接口使之终止时,只将正常结果返回给最后一个调用方, 其它调用方返回异常信息, 异常信息中resultCode为-1。 使用规则: - 调用方应用位于后台时,使用该接口启动Ability需申请`ohos.permission.START_ABILITIES_FROM_BACKGROUND`权限 @@ -225,7 +231,7 @@ startAbilityForResult(parameter: StartAbilityParameter): Promise\ ```ts import featureAbility from '@ohos.ability.featureAbility'; -import wantConstant from '@ohos.ability.wantConstant'; +import wantConstant from '@ohos.app.ability.wantConstant'; featureAbility.startAbilityForResult( { want: @@ -276,7 +282,7 @@ terminateSelfWithResult(parameter: AbilityResult, callback: AsyncCallback\ ```ts import featureAbility from '@ohos.ability.featureAbility'; -import wantConstant from '@ohos.ability.wantConstant'; +import wantConstant from '@ohos.app.ability.wantConstant'; featureAbility.terminateSelfWithResult( { resultCode: 1, @@ -333,7 +339,7 @@ terminateSelfWithResult(parameter: AbilityResult): Promise\ ```ts import featureAbility from '@ohos.ability.featureAbility'; -import wantConstant from '@ohos.ability.wantConstant'; +import wantConstant from '@ohos.app.ability.wantConstant'; featureAbility.terminateSelfWithResult( { resultCode: 1, @@ -475,7 +481,7 @@ getContext(): Context ```ts import featureAbility from '@ohos.ability.featureAbility'; -var context = featureAbility.getContext() +let context = featureAbility.getContext() context.getBundleName((err, data) => { console.info("getBundleName err: " + JSON.stringify(err) + "data: " + JSON.stringify(data)); }); @@ -570,7 +576,7 @@ function onDisconnectCallback(element){ function onFailedCallback(code){ console.log('featureAbilityTest ConnectAbility onFailed errCode : ' + code) } -var connectId = featureAbility.connectAbility( +let connectId = featureAbility.connectAbility( { deviceId: "", bundleName: "com.ix.ServiceAbility", @@ -613,7 +619,7 @@ function onDisconnectCallback(element){ function onFailedCallback(code){ console.log('featureAbilityTest ConnectAbility onFailed errCode : ' + code) } -var connectId = featureAbility.connectAbility( +let connectId = featureAbility.connectAbility( { bundleName: "com.ix.ServiceAbility", abilityName: "com.ix.ServiceAbility.ServiceAbilityA", @@ -624,11 +630,11 @@ var connectId = featureAbility.connectAbility( onFailed: onFailedCallback, }, ); -var result = featureAbility.disconnectAbility(connectId, - (error) => { - console.log('featureAbilityTest DisConnectJsSameBundleName result errCode : ' + error.code) - }, -); + +featureAbility.disconnectAbility(connectId, (err) => { + console.log("featureAbilityTest disconnectAbility err====>" + + ("json err=") + JSON.stringify(err)); +}); ``` ## featureAbility.disconnectAbility7+ @@ -665,7 +671,7 @@ function onDisconnectCallback(element){ function onFailedCallback(code){ console.log('featureAbilityTest ConnectAbility onFailed errCode : ' + code) } -var connectId = featureAbility.connectAbility( +let connectId = featureAbility.connectAbility( { bundleName: "com.ix.ServiceAbility", abilityName: "com.ix.ServiceAbility.ServiceAbilityA", @@ -745,8 +751,8 @@ featureAbility.AbilityWindowConfiguration.WINDOW_MODE_UNDEFINED | ---------------------------------------- | ---- | ---------------------------------------- | | WINDOW_MODE_UNDEFINED7+ | 0 | 未定义。 | | WINDOW_MODE_FULLSCREEN7+ | 1 | 全屏。 | -| WINDOW_MODE_SPLIT_PRIMARY7+ | 100 | 分屏主屏。 | -| WINDOW_MODE_SPLIT_SECONDARY7+ | 101 | 分屏次屏。 | +| WINDOW_MODE_SPLIT_PRIMARY7+ | 100 | 屏幕如果是水平方向表示左分屏,屏幕如果是竖直方向表示上分屏。 | +| WINDOW_MODE_SPLIT_SECONDARY7+ | 101 | 屏幕如果是水平方向表示右分屏,屏幕如果是竖直方向表示下分屏。 | | WINDOW_MODE_FLOATING7+ | 102 | 悬浮窗。 | diff --git a/zh-cn/application-dev/reference/apis/js-apis-ability-particleAbility.md b/zh-cn/application-dev/reference/apis/js-apis-ability-particleAbility.md index f85e7013ce3fc0840dcbb23c5e176495b5d91ed4..32f3fa7da00c1f8d4fb7ec543e9b486777462595 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-ability-particleAbility.md +++ b/zh-cn/application-dev/reference/apis/js-apis-ability-particleAbility.md @@ -196,7 +196,7 @@ acquireDataAbilityHelper(uri: string): DataAbilityHelper ```ts import particleAbility from '@ohos.ability.particleAbility' -var uri = ""; +let uri = ""; particleAbility.acquireDataAbilityHelper(uri) ``` @@ -428,7 +428,7 @@ function onFailedCallback(code) { console.log('particleAbilityTest ConnectAbility onFailed errCode : ' + code) } -var connId = particleAbility.connectAbility( +let connId = particleAbility.connectAbility( { bundleName: "com.ix.ServiceAbility", abilityName: "ServiceAbilityA", @@ -445,7 +445,6 @@ particleAbility.disconnectAbility(connId).then((data) => { }).catch((error) => { console.log('particleAbilityTest result errCode : ' + error.code) }); - ``` ## particleAbility.disconnectAbility @@ -480,7 +479,7 @@ function onFailedCallback(code) { console.log('particleAbilityTest ConnectAbility onFailed errCode : ' + code) } -var connId = particleAbility.connectAbility( +let connId = particleAbility.connectAbility( { bundleName: "com.ix.ServiceAbility", abilityName: "ServiceAbilityA", @@ -491,10 +490,10 @@ var connId = particleAbility.connectAbility( onFailed: onFailedCallback, }, ); -var result = particleAbility.disconnectAbility(connId).then((data) => { - console.log(" data: " + data); -}).catch((error) => { - console.log('particleAbilityTest result errCode : ' + error.code) + +particleAbility.disconnectAbility(connId, (err) => { + console.log("particleAbilityTest disconnectAbility err====>" + + ("json err=") + JSON.stringify(err)); }); ``` @@ -531,7 +530,7 @@ function onFailedCallback(code) { console.log('particleAbilityTest ConnectAbility onFailed errCode : ' + code) } -var connId = particleAbility.connectAbility( +let connId = particleAbility.connectAbility( { bundleName: "com.ix.ServiceAbility", abilityName: "ServiceAbilityA", @@ -560,12 +559,3 @@ particleAbility.disconnectAbility(connId).then((data) => { | 名称 | 值 | 说明 | | ----------------------------- | ---- | ------------------------------------------------------------ | | INVALID_PARAMETER | -1 | 无效的参数。 | - - - - - - - - - diff --git a/zh-cn/application-dev/reference/apis/js-apis-app-ability-abilityConstant.md b/zh-cn/application-dev/reference/apis/js-apis-app-ability-abilityConstant.md index b42b6ac2f0a5b7303dc9143c1f4741b0310a33a0..8617e4935653ad6d8d91a8e1864eb0acd4f38113 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-app-ability-abilityConstant.md +++ b/zh-cn/application-dev/reference/apis/js-apis-app-ability-abilityConstant.md @@ -114,8 +114,8 @@ class MyAbility extends UIAbility { | --- | --- | --- | | WINDOW_MODE_UNDEFINED | 0 | 未定义窗口模式。 | | WINDOW_MODE_FULLSCREEN | 1 | 全屏模式。 | -| WINDOW_MODE_SPLIT_PRIMARY | 100 | 分屏多窗口主要模式。 | -| WINDOW_MODE_SPLIT_SECONDARY | 101 | 分屏多窗口次要模式。 | +| WINDOW_MODE_SPLIT_PRIMARY | 100 | 屏幕如果是水平方向表示左分屏,屏幕如果是竖直方向表示上分屏。 | +| WINDOW_MODE_SPLIT_SECONDARY | 101 | 屏幕如果是水平方向表示右分屏,屏幕如果是竖直方向表示下分屏。 | | WINDOW_MODE_FLOATING | 102 | 自由悬浮形式窗口模式。 | **示例:** diff --git a/zh-cn/application-dev/reference/apis/js-apis-app-ability-appRecovery.md b/zh-cn/application-dev/reference/apis/js-apis-app-ability-appRecovery.md index 72c8116699a3130bdb0fe7bd1045e2f14ef50955..05fe717a32ded54bca8bf95c74a405c0109ded48 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-app-ability-appRecovery.md +++ b/zh-cn/application-dev/reference/apis/js-apis-app-ability-appRecovery.md @@ -18,13 +18,12 @@ import appRecovery from '@ohos.app.ability.appRecovery'; **系统能力**:以下各项对应的系统能力均为SystemCapability.Ability.AbilityRuntime.Core -| 名称 | 值 | 说明 | -| ----------------------------- | ---- | ------------------------------------------------------------ | -| ALWAYS_RESTART | 0 | 总是重启应用。 | -| CPP_CRASH_NO_RESTART | 0x0001 | 发生CPP_CRASH时不重启应用。 | -| JS_CRASH_NO_RESTART | 0x0002 | 发生JS_CRASH时不重启应用。 | -| APP_FREEZE_NO_RESTART | 0x0004 | 发生APP_FREEZE时不重启应用。 | -| NO_RESTART | 0xFFFF | 总是不重启应用。 | +| 名称 | 值 | 说明 | +| ---------- | ---- | ---------- | +| ALWAYS_RESTART | 0 | 总是重启应用。 | +| RESTART_WHEN_JS_CRASH | 0x0001 | 发生JS_CRASH时重启应用。 | +| RESTART_WHEN_APP_FREEZE | 0x0002 | 发生APP_FREEZE时重启应用。 | +| NO_RESTART | 0xFFFF | 总是不重启应用。 | ## appRecovery.SaveOccasionFlag @@ -69,9 +68,8 @@ enableAppRecovery(restart?: [RestartFlag](#apprecoveryrestartflag), saveOccasion ```ts import appRecovery from '@ohos.app.ability.appRecovery'; import AbilityStage from '@ohos.app.ability.AbilityStage'; -import UIAbility from '@ohos.app.ability.UIAbility'; -export default class MyAbility extends UIAbility { +export default class MyAbilityStage extends AbilityStage { onCreate() { appRecovery.enableAppRecovery( appRecovery.RestartFlag::ALWAYS_RESTART, diff --git a/zh-cn/application-dev/reference/apis/js-apis-app-ability-common.md b/zh-cn/application-dev/reference/apis/js-apis-app-ability-common.md index a4f459ec1c423e310c375f900f8f26e1620c3cdf..44505896b362644cbb641cfe6eda6c02216d854a 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-app-ability-common.md +++ b/zh-cn/application-dev/reference/apis/js-apis-app-ability-common.md @@ -24,9 +24,8 @@ import common from '@ohos.app.ability.common' | Context | [Context](js-apis-inner-application-context.md) | Context二级模块。 | | ExtensionContext | [ExtensionContext](js-apis-inner-application-extensionContext.md) | ExtensionContext二级模块。 | | FormExtensionContext | [FormExtensionContext](js-apis-inner-application-formExtensionContext.md) | FormExtensionContext二级模块。 | -| AreaMode | [AreaMode](#areamode) | AreaMode枚举值。 | +| ServiceExtensionContext | [ServiceExtensionContext](js-apis-inner-application-serviceExtensionContext.md) | ServiceExtensionContext二级模块。 | | EventHub | [EventHub](js-apis-inner-application-eventHub.md) | EventHub二级模块。 | -| PermissionRequestResult | [PermissionRequestResult](js-apis-inner-application-permissionRequestResult.md) | PermissionRequestResult二级模块。 | | PacMap | [PacMap](js-apis-inner-ability-dataAbilityHelper.md#PacMap) | PacMap二级模块。 | | AbilityResult | [AbilityResult](js-apis-inner-ability-abilityResult.md) | AbilityResult二级模块。 | | ConnectOptions | [ConnectOptions](js-apis-inner-ability-connectOptions.md) | ConnectOptions二级模块。 | @@ -42,21 +41,8 @@ let baseContext: common.BaseContext; let context: common.Context; let extensionContext: common.ExtensionContext; let formExtensionContext: common.FormExtensionContext; -let areaMode: common.AreaMode; let eventHub: common.EventHub; -let permissionRequestResult: common.PermissionRequestResult; let pacMap: common.PacMap; let abilityResult: common.AbilityResult; let connectOptions: common.ConnectOptions; ``` - -## AreaMode - -数据加密等级的枚举。 - -**系统能力**:以下各项对应的系统能力均为SystemCapability.Ability.AbilityRuntime.Core - -| 名称 | 值 | 说明 | -| --------------- | ---- | --------------- | -| EL1 | 0 | 设备级加密区,设备开机后可访问的数据区。 | -| EL2 | 1 | 用户级加密区,设备开机,首次输入密码后才能够访问的数据区。 | \ No newline at end of file diff --git a/zh-cn/application-dev/reference/apis/js-apis-app-ability-configuration.md b/zh-cn/application-dev/reference/apis/js-apis-app-ability-configuration.md index 0a958c87ae5f3de3874043ec71a0b488cf9fdebc..683437d8aa022a04328e93b79574a5c94a76d028 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-app-ability-configuration.md +++ b/zh-cn/application-dev/reference/apis/js-apis-app-ability-configuration.md @@ -1,25 +1,19 @@ # @ohos.app.ability.Configuration (Configuration) -定义环境变化信息。 +定义环境变化信息。Configuration是接口定义,仅做字段声明。 > **说明:** > > 本模块首批接口从API version 9开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 -## 导入模块 - -```ts -import Configuration from '@ohos.app.ability.Configuration'; -``` - **系统能力**:以下各项对应的系统能力均为SystemCapability.Ability.AbilityBase | 名称 | 类型 | 可读 | 可写 | 说明 | | -------- | -------- | -------- | -------- | -------- | | language | string | 是 | 是 | 表示应用程序的当前语言。例如:zh。 | -| colorMode | [ColorMode](js-apis-app-ability-configurationConstant.md#configurationconstantcolormode) | 是 | 是 | 表示深浅色模式,取值范围:浅色模式(COLOR_MODE_LIGHT),深色模式(COLOR_MODE_DARK)。默认为浅色。 | -| direction | [Direction](js-apis-app-ability-configurationConstant.md#configurationconstantdirection) | 是 | 否 | 表示屏幕方向,取值范围:水平方向(DIRECTION_HORIZONTAL),垂直方向(DIRECTION_VERTICAL)。 | -| screenDensity | [ScreenDensity](js-apis-app-ability-configurationConstant.md#configurationconstantscreendensity) | 是 | 否 | 表示屏幕分辨率,取值范围:SCREEN_DENSITY_SDPI(120)、SCREEN_DENSITY_MDPI(160)、SCREEN_DENSITY_LDPI(240)、SCREEN_DENSITY_XLDPI(320)、SCREEN_DENSITY_XXLDPI(480)、SCREEN_DENSITY_XXXLDPI(640)。 | +| colorMode | [ColorMode](js-apis-app-ability-configurationConstant.md#configurationconstantcolormode) | 是 | 是 | 表示深浅色模式,取值范围:未设置(COLOR_MODE_NOT_SET),浅色模式(COLOR_MODE_LIGHT),深色模式(COLOR_MODE_DARK)。默认为浅色。 | +| direction | [Direction](js-apis-app-ability-configurationConstant.md#configurationconstantdirection) | 是 | 否 | 表示屏幕方向,取值范围:未设置(DIRECTION_NOT_SET),水平方向(DIRECTION_HORIZONTAL),垂直方向(DIRECTION_VERTICAL)。 | +| screenDensity | [ScreenDensity](js-apis-app-ability-configurationConstant.md#configurationconstantscreendensity) | 是 | 否 | 表示屏幕分辨率,取值范围:未设置(SCREEN_DENSITY_NOT_SET),SCREEN_DENSITY_SDPI(120)、SCREEN_DENSITY_MDPI(160)、SCREEN_DENSITY_LDPI(240)、SCREEN_DENSITY_XLDPI(320)、SCREEN_DENSITY_XXLDPI(480)、SCREEN_DENSITY_XXXLDPI(640)。 | | displayId | number | 是 | 否 | 表示应用所在的物理屏幕Id。 | | hasPointerDevice | boolean | 是 | 否 | 指示指针类型设备是否已连接,如键鼠、触控板等。 | diff --git a/zh-cn/application-dev/reference/apis/js-apis-app-ability-dataUriUtils.md b/zh-cn/application-dev/reference/apis/js-apis-app-ability-dataUriUtils.md index c15f167775b6004cd8439f5942e5dbb49f23f9c1..cfc4bb44e4f08fd0cbba4d98efa0ceca2f29a323 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-app-ability-dataUriUtils.md +++ b/zh-cn/application-dev/reference/apis/js-apis-app-ability-dataUriUtils.md @@ -36,7 +36,7 @@ getId(uri: string): number ```ts try { - var id = dataUriUtils.getId("com.example.dataUriUtils/1221") + let id = dataUriUtils.getId("com.example.dataUriUtils/1221") console.info('get id: ' + id) } catch(err) { console.error('get id err ,check the uri' + err) @@ -69,9 +69,9 @@ attachId(uri: string, id: number): string **示例:** ```ts -var id = 1122; +let id = 1122; try { - var uri = dataUriUtils.attachId( + let uri = dataUriUtils.attachId( "com.example.dataUriUtils", id, ) @@ -108,7 +108,7 @@ deleteId(uri: string): string ```ts try { - var uri = dataUriUtils.deleteId("com.example.dataUriUtils/1221") + let uri = dataUriUtils.deleteId("com.example.dataUriUtils/1221") console.info('delete id with the uri is: ' + uri) } catch(err) { console.error('delete uri err, check the input uri' + err) @@ -144,8 +144,8 @@ updateId(uri: string, id: number): string ```ts try { - var id = 1122; - var uri = dataUriUtils.updateId( + let id = 1122; + let uri = dataUriUtils.updateId( "com.example.dataUriUtils/1221", id ) diff --git a/zh-cn/application-dev/reference/apis/js-apis-app-ability-dialogRequest.md b/zh-cn/application-dev/reference/apis/js-apis-app-ability-dialogRequest.md new file mode 100644 index 0000000000000000000000000000000000000000..557a9b69837c19c6aaa3b95888cc40a8c7db570e --- /dev/null +++ b/zh-cn/application-dev/reference/apis/js-apis-app-ability-dialogRequest.md @@ -0,0 +1,262 @@ +# @ohos.app.ability.dialogRequest (dialogRequest模块) + +dialogRequest模块用于处理模态弹框的能力,包括获取RequestInfo(用于绑定模态弹框)、获取RequestCallback(用于设置结果)。 +模态弹框是指一个系统弹出框,其特点在于:该弹出框会拦截弹框之下的页面的鼠标、键盘、触屏等事件,销毁该弹框,才能操作下面的页面。 + +> **说明:** +> +> - 本模块首批接口从API version 9开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 +> - 本模块接口在ServiceExtensionAbility下使用,如果ServiceExtensionAbility实现了模态弹框,则可以使用本模块的接口获取请求方的RequestInfo、RequestCallback并返回请求结果。 + +## 导入模块 + +```js +import dialogRequest from '@ohos.app.ability.dialogRequest'; +``` + +## dialogRequest.getRequestInfo + +getRequestInfo(want: Want): RequestInfo + +从Want中获取请求方的RequestInfo。 + +**系统能力**:SystemCapability.Ability.AbilityRuntime.Core + +**参数:** + +| 名称 | 类型 | 必填 | 描述 | +| ---- | ------ | ---- | --------------------------- | +| want | [Want](js-apis-application-want.md) | 是 | 表示发起方请求弹框时传入的want信息。 | + +**返回值:** + +| 类型 | 说明 | +| ------ | ------------------------ | +| [RequestInfo](#requestinfo) | 请求方RequestInfo,用于绑定模态窗口。 | + +**示例:** + +```ts + import ServiceExtensionAbility from '@ohos.app.ability.ServiceExtensionAbility'; + import rpc from '@ohos.rpc'; + import dialogRequest from '@ohos.app.ability.dialogRequest'; + + export default class ServiceExtAbility extends ServiceExtensionAbility { + onCreate(want) { + console.info(TAG, `onCreate, want: ${want.abilityName}`); + } + + onRequest(want, startId) { + console.info(TAG, `onRequest, want: ${want.abilityName}`); + try { + var requestInfo = dialogRequest.getRequestInfo(want) + } catch(err) { + console.error('getRequestInfo err= ' + JSON.stringify(err)) + } + } + + onConnect(want) { + console.info(TAG, `onConnect, want: ${want.abilityName}`); + } + + onDisconnect(want) { + console.info(TAG, `onDisconnect, want: ${want.abilityName}`); + } + + onDestroy() { + console.info(TAG, `onDestroy`); + } + } + ``` + +## dialogRequest.getRequestCallback + +getRequestCallback(want: Want): RequestCallback + +从Want中获取请求方的RequestCallback。 + +**系统能力**:SystemCapability.Ability.AbilityRuntime.Core + +**参数:** + +| 名称 | 类型 | 必填 | 描述 | +| ---- | ------ | ---- | --------------------------- | +| want | [Want](js-apis-application-want.md) | 是 | 表示发起方请求弹框时传入的want信息。 | + +**返回值:** + +| 类型 | 说明 | +| ------ | ------------------------ | +| [RequestCallback](#requestcallback) | 请求方RequestCallback,用于设置返回结果。 | + +**示例:** + +```ts + import ServiceExtensionAbility from '@ohos.app.ability.ServiceExtensionAbility'; + import rpc from '@ohos.rpc'; + import dialogRequest from '@ohos.app.ability.dialogRequest'; + + export default class ServiceExtAbility extends ServiceExtensionAbility { + onCreate(want) { + console.info(TAG, `onCreate, want: ${want.abilityName}`); + } + + onRequest(want, startId) { + console.info(TAG, `onRequest, want: ${want.abilityName}`); + try { + var requestCallback = dialogRequest.getRequestCallback(want) + } catch(err) { + console.error('getRequestInfo err= ' + JSON.stringify(err)) + } + } + + onConnect(want) { + console.info(TAG, `onConnect, want: ${want.abilityName}`); + } + + onDisconnect(want) { + console.info(TAG, `onDisconnect, want: ${want.abilityName}`); + } + + onDestroy() { + console.info(TAG, `onDestroy`); + } + } + ``` + +## RequestInfo + +表示发起方请求信息,作为窗口绑定模态弹框的入参。 +**系统能力**:SystemCapability.Ability.AbilityRuntime.AbilityCore + +**示例:** + +```ts + import ServiceExtensionAbility from '@ohos.app.ability.ServiceExtensionAbility'; + import rpc from '@ohos.rpc'; + import dialogRequest from '@ohos.app.ability.dialogRequest'; + import window from '@ohos.window'; + + export default class ServiceExtAbility extends ServiceExtensionAbility { + onCreate(want) { + console.info(TAG, `onCreate, want: ${want.abilityName}`); + } + + onRequest(want, startId) { + console.info(TAG, `onRequest, want: ${want.abilityName}`); + try { + var requestInfo = dialogRequest.getRequestInfo(want) + window.bindDialogTarget(requestInfo, () => { + console.info('Dialog Window Need Destroy.'); + }, (err) => { + if (err.code) { + console.error('Failed to bind dialog target. Cause:' + JSON.stringify(err)); + return; + } + console.info('Succeeded in binding dialog target.'); + }); + } catch(err) { + console.error('getRequestInfo err= ' + JSON.stringify(err)) + } + } + + onConnect(want) { + console.info(TAG, `onConnect, want: ${want.abilityName}`); + } + + onDisconnect(want) { + console.info(TAG, `onDisconnect, want: ${want.abilityName}`); + } + + onDestroy() { + console.info(TAG, `onDestroy`); + } + } + ``` + +## ResultCode + +模态弹框请求结果码。 + +**系统能力**:SystemCapability.Ability.AbilityRuntime.AbilityCore。 + +| 名称 | 值 | 说明 | +| ------------ | ------------------ | ---------------------- | +| RESULT_OK | 0 | 表示成功。 | +| RESULT_CANCEL | 1 | 表示失败。 | + +## RequestResult +模态弹框请求结果,当前只包含结果码,即RequestResult只当前只有ResultCode这一个成员。 + +## 属性 + +**系统能力**:SystemCapability.Ability.AbilityRuntime.AbilityCore + +| 名称 | 类型 | 可读 | 可写 | 说明 | +| -------- | -------- | -------- | -------- | -------- | +| result | [ResultCode](#resultcode) | 是 | 是 | 表示结果码。 | + +## RequestCallback + +用于设置模态弹框请求结果的callback接口。 + +### RequestCallback.setRequestResult + +setRequestResult(result: RequestResult): void; + +设置请求结果 + +**系统能力**:SystemCapability.Ability.AbilityRuntime.AbilityCore + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| -------- | -------- | -------- | -------- | +| result | [RequestResult](#requestresult) | 是 | 模态弹框请求结果信息。 | + +**错误码:** + +| 错误码ID | 错误信息 | +| ------- | -------------------------------- | +| 401 | If the input parameter is not valid parameter. | + +以上错误码详细介绍请参考[errcode-ability](../errorcodes/errorcode-ability.md)。 + +**示例:** + +```ts + import ServiceExtensionAbility from '@ohos.app.ability.ServiceExtensionAbility'; + import rpc from '@ohos.rpc'; + import dialogRequest from '@ohos.app.ability.dialogRequest'; + + export default class ServiceExtAbility extends ServiceExtensionAbility { + onCreate(want) { + console.info(TAG, `onCreate, want: ${want.abilityName}`); + } + + onRequest(want, startId) { + console.info(TAG, `onRequest, want: ${want.abilityName}`); + try { + var requestCallback = dialogRequest.getRequestCallback(want); + let myResult = { + result : dialogRequest.ResultCode.RESULT_CANCEL, + }; + requestCallback.setRequestResult(myResult); + } catch(err) { + console.error('getRequestInfo err= ' + JSON.stringify(err)) + } + } + + onConnect(want) { + console.info(TAG, `onConnect, want: ${want.abilityName}`); + } + + onDisconnect(want) { + console.info(TAG, `onDisconnect, want: ${want.abilityName}`); + } + + onDestroy() { + console.info(TAG, `onDestroy`); + } + } + ``` \ No newline at end of file diff --git a/zh-cn/application-dev/reference/apis/js-apis-app-ability-environmentCallback.md b/zh-cn/application-dev/reference/apis/js-apis-app-ability-environmentCallback.md index 30e002a04ab439ab1ad727842dfe58274aa0bc1a..00027f98bf6f70a607b9b1d090a3627807701479 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-app-ability-environmentCallback.md +++ b/zh-cn/application-dev/reference/apis/js-apis-app-ability-environmentCallback.md @@ -35,7 +35,7 @@ onConfigurationUpdated(config: Configuration): void; ```ts import UIAbility from "@ohos.app.ability.Ability"; -var callbackId; +let callbackId; export default class MyAbility extends UIAbility { onCreate() { diff --git a/zh-cn/application-dev/reference/apis/js-apis-app-ability-errorManager.md b/zh-cn/application-dev/reference/apis/js-apis-app-ability-errorManager.md index ab177fe4d31398b203fdfb4c39e399d1a9ddd0f8..d55eec06406661ffe5af8e51e8601f27991d0899 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-app-ability-errorManager.md +++ b/zh-cn/application-dev/reference/apis/js-apis-app-ability-errorManager.md @@ -35,12 +35,12 @@ on(type: "error", observer: ErrorObserver): number; **示例:** ```ts -var observer = { +let observer = { onUnhandledException(errorMsg) { console.log('onUnhandledException, errorMsg: ', errorMsg) } } -var observerId = -1; +let observerId = -1; try { observerId = errorManager.on("error", observer); } catch (paramError) { @@ -67,7 +67,7 @@ off(type: "error", observerId: number, callback: AsyncCallback\): void; **示例:** ```ts -var observerId = 100; +let observerId = 100; function unregisterErrorObserverCallback(err) { if (err) { @@ -105,7 +105,7 @@ off(type: "error", observerId: number): Promise\; **示例:** ```ts -var observerId = 100; +let observerId = 100; try { errorManager.off("error", observerId) .then((data) => { diff --git a/zh-cn/application-dev/reference/apis/js-apis-app-ability-missionManager.md b/zh-cn/application-dev/reference/apis/js-apis-app-ability-missionManager.md index 8eb3864949618b18eca6178966ebe0e91862fcce..b4d0064e147bb480d54ea5cca53727784265dfb9 100755 --- a/zh-cn/application-dev/reference/apis/js-apis-app-ability-missionManager.md +++ b/zh-cn/application-dev/reference/apis/js-apis-app-ability-missionManager.md @@ -46,7 +46,7 @@ on(type:"mission", listener: MissionListener): number; import missionManager from '@ohos.app.ability.missionManager'; import UIAbility from '@ohos.app.ability.UIAbility'; -var listener = { +let listener = { onMissionCreated: function (mission) {console.log("--------onMissionCreated-------")}, onMissionDestroyed: function (mission) {console.log("--------onMissionDestroyed-------")}, onMissionSnapshotChanged: function (mission) {console.log("--------onMissionSnapshotChanged-------")}, @@ -56,7 +56,7 @@ var listener = { onMissionLabelUpdated: function (mission) {console.log("--------onMissionLabelUpdated-------")} }; -var listenerId = -1; +let listenerId = -1; export default class EntryAbility extends UIAbility { onCreate(want, launchParam) { @@ -128,7 +128,7 @@ off(type: "mission", listenerId: number, callback: AsyncCallback<void>): v import missionManager from '@ohos.app.ability.missionManager'; import UIAbility from '@ohos.app.ability.UIAbility'; -var listener = { +let listener = { onMissionCreated: function (mission) {console.log("--------onMissionCreated-------")}, onMissionDestroyed: function (mission) {console.log("--------onMissionDestroyed-------")}, onMissionSnapshotChanged: function (mission) {console.log("--------onMissionSnapshotChanged-------")}, @@ -138,7 +138,7 @@ var listener = { onMissionLabelUpdated: function (mission) {console.log("--------onMissionLabelUpdated-------")} }; -var listenerId = -1; +let listenerId = -1; export default class EntryAbility extends UIAbility { onCreate(want, launchParam) { @@ -215,7 +215,7 @@ off(type: "mission", listenerId: number): Promise<void>; import missionManager from '@ohos.app.ability.missionManager'; import UIAbility from '@ohos.app.ability.UIAbility'; -var listener = { +let listener = { onMissionCreated: function (mission) {console.log("--------onMissionCreated-------")}, onMissionDestroyed: function (mission) {console.log("--------onMissionDestroyed-------")}, onMissionSnapshotChanged: function (mission) {console.log("--------onMissionSnapshotChanged-------")}, @@ -225,7 +225,7 @@ var listener = { onMissionLabelUpdated: function (mission) {console.log("--------onMissionLabelUpdated-------")} }; -var listenerId = -1; +let listenerId = -1; export default class EntryAbility extends UIAbility { onCreate(want, launchParam) { @@ -299,7 +299,7 @@ getMissionInfo(deviceId: string, missionId: number, callback: AsyncCallback<M let testMissionId = 1; try { - var allMissions=await missionManager.getMissionInfos("",10).catch(function(err){console.log(err);}); + let allMissions=await missionManager.getMissionInfos("",10).catch(function(err){console.log(err);}); if (allMissions && allMissions.length > 0) { testMissionId = allMissions[0].missionId; } diff --git a/zh-cn/application-dev/reference/apis/js-apis-app-ability-serviceExtensionAbility.md b/zh-cn/application-dev/reference/apis/js-apis-app-ability-serviceExtensionAbility.md index 9df1b173df66e5bb8e3a446e1a1305fd093275f6..a58d8d2c9e611d89a710460086710c2a47a7613b 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-app-ability-serviceExtensionAbility.md +++ b/zh-cn/application-dev/reference/apis/js-apis-app-ability-serviceExtensionAbility.md @@ -80,7 +80,7 @@ Extension生命周期回调,在销毁时回调,执行资源清理等操作 onRequest(want: Want, startId: number): void; -Extension生命周期回调,如果是startAbility拉起的服务,会在onCreate之后回调。每次拉起服务都会回调,startId会递增。 +Extension生命周期回调,如果是startAbility或者startServiceExtensionAbility拉起的服务,会在onCreate之后回调。每次拉起服务都会回调,startId会递增。 **系统能力**:SystemCapability.Ability.AbilityRuntime.Core diff --git a/zh-cn/application-dev/reference/apis/js-apis-app-ability-startOptions.md b/zh-cn/application-dev/reference/apis/js-apis-app-ability-startOptions.md index e55285d3458402ac2c821466cdea5dcfb1bee0b2..f1bb4be5f7e464cbd2cda2e033ec791a9a4a4a44 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-app-ability-startOptions.md +++ b/zh-cn/application-dev/reference/apis/js-apis-app-ability-startOptions.md @@ -20,5 +20,34 @@ import StartOptions from '@ohos.app.ability.StartOptions'; | 名称 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | -| [windowMode](js-apis-application-abilityConstant.md#abilityconstantwindowmode) | number | 否 | 窗口模式。 | +| [windowMode](js-apis-app-ability-abilityConstant.md#abilityconstantwindowmode) | number | 否 | 窗口模式。 | | displayId | number | 否 | 屏幕ID。默认是0,表示当前屏幕。 | + +**示例:** + + ```ts + import missionManager from '@ohos.app.ability.missionManager'; + + try { + missionManager.getMissionInfos("", 10, (error, missions) => { + if (error.code) { + console.log("getMissionInfos failed, error.code:" + JSON.stringify(error.code) + + "error.message:" + JSON.stringify(error.message)); + return; + } + console.log("size = " + missions.length); + console.log("missions = " + JSON.stringify(missions)); + let id = missions[0].missionId; + + let startOptions = { + windowMode : 101, + displayId: 0 + }; + missionManager.moveMissionToFront(id, startOptions).then(() => { + console.log("moveMissionToFront is called "); + }); + }); + } catch (paramError) { + console.log("error: " + paramError.code + ", " + paramError.message); + } + ``` diff --git a/zh-cn/application-dev/reference/apis/js-apis-app-ability-uiAbility.md b/zh-cn/application-dev/reference/apis/js-apis-app-ability-uiAbility.md index 35c5597515c132ed5662aad69b159288ce542c25..c7e4da9d4bb8e69d824b9789e6a4d8a63401519e 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-app-ability-uiAbility.md +++ b/zh-cn/application-dev/reference/apis/js-apis-app-ability-uiAbility.md @@ -359,11 +359,11 @@ call(method: string, data: rpc.Sequenceable): Promise<void>; return true; } }; - var method = 'call_Function'; // 约定的通知消息字符串 - var caller; + let method = 'call_Function'; // 约定的通知消息字符串 + let caller; export default class MainUIAbility extends UIAbility { onWindowStageCreate(windowStage) { - this.context.startUIAbilityByCall({ + this.context.startAbilityByCall({ bundleName: "com.example.myservice", abilityName: "MainUIAbility", deviceId: "" @@ -440,11 +440,11 @@ callWithResult(method: string, data: rpc.Sequenceable): Promise<rpc.MessagePa return true; } }; - var method = 'call_Function'; - var caller; + let method = 'call_Function'; + let caller; export default class MainUIAbility extends UIAbility { onWindowStageCreate(windowStage) { - this.context.startUIAbilityByCall({ + this.context.startAbilityByCall({ bundleName: "com.example.myservice", abilityName: "MainUIAbility", deviceId: "" @@ -490,10 +490,10 @@ release(): void; **示例:** ```ts - var caller; + let caller; export default class MainUIAbility extends UIAbility { onWindowStageCreate(windowStage) { - this.context.startUIAbilityByCall({ + this.context.startAbilityByCall({ bundleName: "com.example.myservice", abilityName: "MainUIAbility", deviceId: "" @@ -530,10 +530,10 @@ release(): void; **示例:** ```ts - var caller; + let caller; export default class MainUIAbility extends UIAbility { onWindowStageCreate(windowStage) { - this.context.startUIAbilityByCall({ + this.context.startAbilityByCall({ bundleName: "com.example.myservice", abilityName: "MainUIAbility", deviceId: "" @@ -544,7 +544,7 @@ release(): void; console.log(' Caller OnRelease CallBack is called ' + str); }); } catch (error) { - console.log('Caller.on catch error, error.code: ' + JSON.stringify(error.code) + + console.log('Caller.onRelease catch error, error.code: ' + JSON.stringify(error.code) + ' error.message: ' + JSON.stringify(error.message)); } }).catch((err) => { @@ -581,10 +581,10 @@ release(): void; **示例:** ```ts - var caller; + let caller; export default class MainUIAbility extends UIAbility { onWindowStageCreate(windowStage) { - this.context.startUIAbilityByCall({ + this.context.startAbilityByCall({ bundleName: "com.example.myservice", abilityName: "MainUIAbility", deviceId: "" @@ -606,6 +606,108 @@ release(): void; } ``` +## Caller.off + +off(type: "release", callback: OnReleaseCallback): void; + +取消注册通用组件服务端Stub(桩)断开监听通知。预留能力,当前暂未支持。 + +**系统能力**:SystemCapability.Ability.AbilityRuntime.AbilityCore + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| -------- | -------- | -------- | -------- | +| type | string | 是 | 监听releaseCall事件,固定为'release'。 | +| callback | [OnReleaseCallBack](#onreleasecallback) | 是 | 返回off回调结果。 | + +**错误码:** + +| 错误码ID | 错误信息 | +| ------- | -------------------------------- | +| 401 | If the input parameter is not valid parameter. | +其他ID见[元能力子系统错误码](../errorcodes/errorcode-ability.md) + +**示例:** + + ```ts + let caller; + export default class MainUIAbility extends UIAbility { + onWindowStageCreate(windowStage) { + this.context.startAbilityByCall({ + bundleName: "com.example.myservice", + abilityName: "MainUIAbility", + deviceId: "" + }).then((obj) => { + caller = obj; + try { + let onReleaseCallBack = (str) => { + console.log(' Caller OnRelease CallBack is called ' + str); + }; + caller.on("release", onReleaseCallBack); + caller.off("release", onReleaseCallBack); + } catch (error) { + console.log('Caller.on or Caller.off catch error, error.code: ' + JSON.stringify(error.code) + + ' error.message: ' + JSON.stringify(error.message)); + } + }).catch((err) => { + console.log('Caller GetCaller error, error.code: ' + JSON.stringify(err.code) + + ' error.message: ' + JSON.stringify(err.message)); + }); + } + } + ``` + +## Caller.off + +off(type: "release"): void; + +取消注册通用组件服务端Stub(桩)断开监听通知。预留能力,当前暂未支持。 + +**系统能力**:SystemCapability.Ability.AbilityRuntime.AbilityCore + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| -------- | -------- | -------- | -------- | +| type | string | 是 | 监听releaseCall事件,固定为'release'。 | + +**错误码:** + +| 错误码ID | 错误信息 | +| ------- | -------------------------------- | +| 401 | If the input parameter is not valid parameter. | +其他ID见[元能力子系统错误码](../errorcodes/errorcode-ability.md) + +**示例:** + + ```ts + let caller; + export default class MainUIAbility extends UIAbility { + onWindowStageCreate(windowStage) { + this.context.startAbilityByCall({ + bundleName: "com.example.myservice", + abilityName: "MainUIAbility", + deviceId: "" + }).then((obj) => { + caller = obj; + try { + let onReleaseCallBack = (str) => { + console.log(' Caller OnRelease CallBack is called ' + str); + }; + caller.on("release", onReleaseCallBack); + caller.off("release"); + } catch (error) { + console.error('Caller.on or Caller.off catch error, error.code: ' + JSON.stringify(error.code) + + ' error.message: ' + JSON.stringify(error.message)); + } + }).catch((err) => { + console.error('Caller GetCaller error, error.code: ' + JSON.stringify(err.code) + + ' error.message: ' + JSON.stringify(err.message)); + }); + } + } + ``` ## Callee @@ -658,7 +760,7 @@ on(method: string, callback: CalleeCallback): void; return true; } }; - var method = 'call_Function'; + let method = 'call_Function'; function funcCallBack(pdata) { console.log('Callee funcCallBack is called ' + pdata); let msg = new MyMessageAble("test", ""); @@ -704,7 +806,7 @@ off(method: string): void; **示例:** ```ts - var method = 'call_Function'; + let method = 'call_Function'; export default class MainUIAbility extends UIAbility { onCreate(want, launchParam) { console.log('Callee onCreate is called'); diff --git a/zh-cn/application-dev/reference/apis/js-apis-app-ability-want.md b/zh-cn/application-dev/reference/apis/js-apis-app-ability-want.md index f6a99d431dbf0d43482dee2b200d536a009c1845..f28cc3d3b96e3bb499871978735187439686d8c4 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-app-ability-want.md +++ b/zh-cn/application-dev/reference/apis/js-apis-app-ability-want.md @@ -26,7 +26,7 @@ import Want from '@ohos.app.ability.Want'; | [entities](js-apis-app-ability-wantConstant.md#wantConstant.Entity) | Array\ | 否 | 表示目标Ability额外的类别信息(如:浏览器、视频播放器)。在隐式Want中是对action字段的补充。在隐式Want中,您可以定义该字段,来过滤匹配Ability类型。 | | uri | string | 否 | 表示携带的数据,一般配合type使用,指明待处理的数据类型。如果在Want中指定了uri,则Want将匹配指定的Uri信息,包括`scheme`、`schemeSpecificPart`、`authority`和`path`信息。 | | type | string | 否 | 表示MIME type类型描述,打开文件的类型,主要用于文管打开文件。比如:"text/xml" 、 "image/*"等,MIME定义请参见https://www.iana.org/assignments/media-types/media-types.xhtml?utm_source=ld246.com。 | -| parameters | {[key: string]: any} | 否 | 表示WantParams描述,由开发者自行决定传入的键值对。默认会携带以下key值:
- ohos.aafwk.callerPid:表示拉起方的pid。
- ohos.aafwk.param.callerToken:表示拉起方的token。
- ohos.aafwk.param.callerUid:表示[BundleInfo](js-apis-bundleManager-bundleInfo.md#bundleinfo-1)中的uid,应用包里应用程序的uid。 | +| parameters | {[key: string]: any} | 否 | 表示WantParams描述,由开发者自行决定传入的键值对。默认会携带以下key值:
- ohos.aafwk.callerPid:表示拉起方的pid。
- ohos.aafwk.param.callerToken:表示拉起方的token。
- ohos.aafwk.param.callerUid:表示[BundleInfo](js-apis-bundleManager-bundleInfo.md#bundleinfo-1)中的uid,应用包里应用程序的uid。
- component.startup.newRules:表示是否启用新的管控规则。
- moduleName:表示拉起方的模块名,该字段的值即使定义成其他字符串,在传递到另一端时会被修改为正确的值。
- ohos.dlp.params.sandbox:表示dlp文件才会有。 | | [flags](js-apis-ability-wantConstant.md#wantconstantflags) | number | 否 | 表示处理Want的方式。默认传数字。
例如通过wantConstant.Flags.FLAG_ABILITY_CONTINUATION表示是否以设备间迁移方式启动Ability。 | **示例:** @@ -122,7 +122,7 @@ import Want from '@ohos.app.ability.Want'; "abilityName": "FuncAbility", "moduleName": "entry", // moduleName非必选 "parameters": { - "keyFd":{"type":"FD", "value":fd} + "keyFd":{"type":"FD", "value":fd} // {"type":"FD", "value":fd}是固定用法,用于表示该数据是FD } }; this.context.startAbility(want, (error) => { diff --git a/zh-cn/application-dev/reference/apis/js-apis-app-ability-wantAgent.md b/zh-cn/application-dev/reference/apis/js-apis-app-ability-wantAgent.md index cf1636ce99912c031e86fdfb0b9e627f9f069388..4eedf15f0260de523570ff3fe237e36a648cc9c2 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-app-ability-wantAgent.md +++ b/zh-cn/application-dev/reference/apis/js-apis-app-ability-wantAgent.md @@ -92,13 +92,13 @@ function getWantAgentCallback(err, data) { if (err === undefined) { wantAgent = data; } else { - console.info('getWantAgent failed' + JSON.stringify(err)); + console.error('getWantAgent failed, error: ' + JSON.stringify(err)); } } try { WantAgent.getWantAgent(wantAgentInfo, getWantAgentCallback); } catch(err) { - console.info('getWantAgent failed!' + JSON.stringify(err.code) + JSON.stringify(err.message)); + console.error('getWantAgent failed, error: ' + JSON.stringify(err)); } ``` @@ -701,7 +701,7 @@ function getWantAgentCallback(err, data) { } else { console.info('getWantAgent failed' + JSON.stringify(wantAgent)); } - //getUid回调 + //getWant回调 function getWantCallback(err, data) { if(err) { console.info('getWant failed!' + JSON.stringify(err.code) + JSON.stringify(err.message)); @@ -710,7 +710,7 @@ function getWantAgentCallback(err, data) { } } try { - WantAgent.getWant(wantAgent, getBundleNameCallback); + WantAgent.getWant(wantAgent, getWantCallback); } catch(err) { console.info('getWant failed!' + JSON.stringify(err.code) + JSON.stringify(err.message)); } @@ -914,7 +914,7 @@ function getWantAgentCallback(err, data) { } else { console.info('getWantAgent failed' + JSON.stringify(wantAgent)); } - //getUid回调 + //cancel回调 function cancelCallback(err, data) { if(err) { console.info('cancel failed!' + JSON.stringify(err.code) + JSON.stringify(err.message)); @@ -923,7 +923,7 @@ function getWantAgentCallback(err, data) { } } try { - WantAgent.cancel(wantAgent, getBundleNameCallback); + WantAgent.cancel(wantAgent, cancelCallback); } catch(err) { console.info('cancel failed!' + JSON.stringify(err.code) + JSON.stringify(err.message)); } @@ -1128,7 +1128,7 @@ function getWantAgentCallback(err, data) { } else { console.info('getWantAgent failed' + JSON.stringify(wantAgent)); } - //getUid回调 + //trigger回调 function triggerCallback(err, data) { if(err) { console.info('getUid failed!' + JSON.stringify(err.code) + JSON.stringify(err.message)); @@ -1236,7 +1236,7 @@ function getWantAgentCallback(err, data) { } else { console.info('getWantAgent failed' + JSON.stringify(wantAgent)); } - //getUid回调 + //equal回调 function equalCallback(err, data) { if(err) { console.info('equal failed!' + JSON.stringify(err.code) + JSON.stringify(err.message)); @@ -1448,7 +1448,7 @@ function getWantAgentCallback(err, data) { } else { console.info('getWantAgent failed' + JSON.stringify(wantAgent)); } - //getUid回调 + //getOperationTypeCallback回调 function getOperationTypeCallback(err, data) { if(err) { console.info('getOperationType failed!' + JSON.stringify(err.code) + JSON.stringify(err.message)); @@ -1457,7 +1457,7 @@ function getWantAgentCallback(err, data) { } } try { - WantAgent.getOperationTypeCallback(wantAgent, getBundleNameCallback); + WantAgent.getOperationTypeCallback(wantAgent, getOperationTypeCallback); } catch(err) { console.info('getOperationTypeCallback failed!' + JSON.stringify(err.code) + JSON.stringify(err.message)); } @@ -1615,6 +1615,6 @@ try { | info | WantAgent | 是 | 触发的wantAgent。 | | want | Want | 是 | 存在的被触发的want。 | | finalCode | number | 是 | 触发wantAgent的请求代码。| -| finalData | string | 否 | 公共事件收集的最终数据。 | +| finalData | string | 是 | 公共事件收集的最终数据。 | | extraInfo | {[key: string]: any} | 否 | 额外数据。 | diff --git a/zh-cn/application-dev/reference/apis/js-apis-app-ability-wantConstant.md b/zh-cn/application-dev/reference/apis/js-apis-app-ability-wantConstant.md index de78f53fb4a00138ca88cf8ff0ae5e95a05e3810..5568419351962441f45374f0e4a83f5b3842642c 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-app-ability-wantConstant.md +++ b/zh-cn/application-dev/reference/apis/js-apis-app-ability-wantConstant.md @@ -12,61 +12,21 @@ wantConstant模块提供want中操作want常数和解释Flags说明的能力。 import wantConstant from '@ohos.app.ability.wantConstant'; ``` -## wantConstant.Action -want操作的常数。用于表示要执行的通用操作。 -**系统能力**:以下各项对应的系统能力均为SystemCapability.Ability.AbilityBase +## wantConstant.Params -| 名称 | 值 | 说明 | -| ------------ | ------------------ | ---------------------- | -| ACTION_HOME | ohos.want.action.home | 指示返回原点的操作。 | -| ACTION_DIAL | ohos.want.action.dial | 指示启动显示小键盘的页面功能的操作 | -| ACTION_SEARCH | ohos.want.action.search | 指示启动页面搜索功能的操作。 | -| ACTION_WIRELESS_SETTINGS | ohos.settings.wireless | 指示启动提供无线网络设置的页面功能的操作,例如,Wi-Fi选项。 | -| ACTION_MANAGE_APPLICATIONS_SETTINGS | ohos.settings.manage.applications | 指示启动管理已安装应用程序的页面功能的操作。 | -| ACTION_APPLICATION_DETAILS_SETTINGS | ohos.settings.application.details | 指示启动显示指定应用程序详细信息的页面功能的操作。 | -| ACTION_SET_ALARM | ohos.want.action.setAlarm | 指示启动页面功能以设置闹钟的操作。 | -| ACTION_SHOW_ALARMS | ohos.want.action.showAlarms | 指示启动显示所有警报的页面功能的操作时钟。 | -| ACTION_SNOOZE_ALARM | ohos.want.action.snoozeAlarm | 指示启动用于使闹钟睡眠的页面功能的操作。 | -| ACTION_DISMISS_ALARM | ohos.want.action.dismissAlarm | 指示启动删除闹钟的页面功能的操作。 | -| ACTION_DISMISS_TIMER | ohos.want.action.dismissTimer | 指示启动页面功能以关闭计时器的操作。 | -| ACTION_SEND_SMS | ohos.want.action.sendSms | 指示启动发送sms的页面功能的操作。 | -| ACTION_CHOOSE | ohos.want.action.choose | 指示启动页面功能以打开联系人或图片的操作。 | -| ACTION_IMAGE_CAPTURE | ohos.want.action.imageCapture | 指示启动页面拍照功能的操作。 | -| ACTION_VIDEO_CAPTURE | ohos.want.action.videoCapture | 指示启动页面功能以拍摄视频的操作。 | -| ACTION_SELECT | ohos.want.action.select | 指示显示应用程序选择对话框的操作。 | -| ACTION_SEND_DATA | ohos.want.action.sendData | 指示发送单个数据记录的操作。 | -| ACTION_SEND_MULTIPLE_DATA | ohos.want.action.sendMultipleData | 指示发送多个数据记录的操作。 | -| ACTION_SCAN_MEDIA_FILE | ohos.want.action.scanMediaFile | 指示请求媒体扫描仪扫描文件并将文件添加到媒体库的操作。 | -| ACTION_VIEW_DATA | ohos.want.action.viewData | 指示查看数据的操作。 | -| ACTION_EDIT_DATA | ohos.want.action.editData | 指示编辑数据的操作。 | -| INTENT_PARAMS_INTENT | ability.want.params.INTENT | 指示用行为选择器来展示选择的操作。 | -| INTENT_PARAMS_TITLE | ability.want.params.TITLE | 指示与行为选择器一起使用时的字符序列对话框标题。 | -| ACTION_FILE_SELECT | ohos.action.fileSelect | 指示选择文件的操作。 | -| PARAMS_STREAM | ability.params.stream | 指示发送数据时与目标关联的数据流的URI | -| ACTION_APP_ACCOUNT_AUTH | account.appAccount.action.auth | 指示提供auth服务的操作。 | -| ACTION_MARKET_DOWNLOAD | ohos.want.action.marketDownload | 表示从应用程序市场下载应用程序的的操作。
**系统API**:该接口为系统接口,三方应用不支持调用。 | -| ACTION_MARKET_CROWDTEST | ohos.want.action.marketCrowdTest | 指示从应用程序市场众测应用程序的操作。
**系统API**:该接口为系统接口,三方应用不支持调用。 | -| DLP_PARAMS_SANDBOX |ohos.dlp.params.sandbox | 指示沙盒标志的参数的操作。
**系统API**:该接口为系统接口,三方应用不支持调用。 | -| DLP_PARAMS_BUNDLE_NAME |ohos.dlp.params.bundleName |指示DLP Bundle名称的参数的操作。
**系统API**:该接口为系统接口,三方应用不支持调用。 | -| DLP_PARAMS_MODULE_NAME |ohos.dlp.params.moduleName |指示DLP模块名称的参数的操作。
**系统API**:该接口为系统接口,三方应用不支持调用。 | -| DLP_PARAMS_ABILITY_NAME |ohos.dlp.params.abilityName |指示DLP能力名称的参数的操作。
**系统API**:该接口为系统接口,三方应用不支持调用。 | -| DLP_PARAMS_INDEX |ohos.dlp.params.index |指示DLP索引参数的操作。
**系统API**:该接口为系统接口,三方应用不支持调用。 | - -## wantConstant.Entity - -want实体的常数。用于表示目标Ability额外的类别信息。 +want的Params操作的常量。 + +| 名称 | 值 | 说明 | +| ----------------------- | --------------------------- | ------------------------------------------------------------ | +| DLP_PARAMS_SANDBOX | ohos.dlp.params.sandbox | 指示沙盒标志的参数的操作。
**系统API**:该接口为系统接口,三方应用不支持调用。 | +| DLP_PARAMS_BUNDLE_NAME | ohos.dlp.params.bundleName | 指示DLP Bundle名称的参数的操作。
**系统API**:该接口为系统接口,三方应用不支持调用。 | +| DLP_PARAMS_MODULE_NAME | ohos.dlp.params.moduleName | 指示DLP模块名称的参数的操作。
**系统API**:该接口为系统接口,三方应用不支持调用。 | +| DLP_PARAMS_ABILITY_NAME | ohos.dlp.params.abilityName | 指示DLP能力名称的参数的操作。
**系统API**:该接口为系统接口,三方应用不支持调用。 | +| DLP_PARAMS_INDEX | ohos.dlp.params.index | 指示DLP索引参数的操作。
**系统API**:该接口为系统接口,三方应用不支持调用。 | -**系统能力**:以下各项对应的系统能力均为SystemCapability.Ability.AbilityBase -| 名称 | 值 | 说明 | -| ------------ | ------------------ | ---------------------- | -| ENTITY_DEFAULT | entity.system.default | 指示默认实体,如果未指定该实体,则使用该实体。 | -| ENTITY_HOME | entity.system.home | 指示主屏幕实体。 | -| ENTITY_VOICE | entity.system.voice | 表示语音交互实体。 | -| ENTITY_BROWSABLE | entity.system.browsable | 指示浏览器类别。 | -| ENTITY_VIDEO | entity.system.video | 指示视频类别。 | ## wantConstant.Flags diff --git a/zh-cn/application-dev/reference/apis/js-apis-app-form-formBindingData.md b/zh-cn/application-dev/reference/apis/js-apis-app-form-formBindingData.md index 61c0e1007ae44cc7dda18a55f8355643b99f6a05..766965c889caca098946b9f039cad9a0f9eb484c 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-app-form-formBindingData.md +++ b/zh-cn/application-dev/reference/apis/js-apis-app-form-formBindingData.md @@ -48,8 +48,8 @@ createFormBindingData(obj?: Object | string): FormBindingData **示例:** ```ts -import fs from '@ohos.file.fs'; import formBindingData from '@ohos.app.form.formBindingData'; +import fs from '@ohos.file.fs'; try { let fd = fs.openSync('/path/to/form.png') diff --git a/zh-cn/application-dev/reference/apis/js-apis-app-form-formInfo.md b/zh-cn/application-dev/reference/apis/js-apis-app-form-formInfo.md index 5d6a41a9d89bbc1416b8b8dab8a68de2797a6438..1740b1694057fb926d6634026f980d20a2c702f6 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-app-form-formInfo.md +++ b/zh-cn/application-dev/reference/apis/js-apis-app-form-formInfo.md @@ -31,7 +31,6 @@ import formInfo from '@ohos.app.form.formInfo'; | isDefault | boolean | 是 | 否 | 卡片是否是默认卡片。 | | updateEnabled | boolean | 是 | 否 | 卡片是否使能更新。 | | formVisibleNotify | boolean | 是 | 否 | 卡片是否使能可见通知。 | -| relatedBundleName | string | 是 | 否 | 卡片所属的相关联Bundle名称。 | | scheduledUpdateTime | string | 是 | 否 | 卡片更新时间。 | | formConfigAbility | string | 是 | 否 | 卡片配置ability。指定长按卡片弹出的选择框内,编辑选项所对应的ability。 | | updateDuration | number | 是 | 否 | 卡片更新周期。 | diff --git a/zh-cn/application-dev/reference/apis/js-apis-appAccount.md b/zh-cn/application-dev/reference/apis/js-apis-appAccount.md index 1402054068f5548345dc872d6764d1c26b6bb06a..8a9ac34f060b4aeba64078f63d1995dbfe8ec9a7 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-appAccount.md +++ b/zh-cn/application-dev/reference/apis/js-apis-appAccount.md @@ -64,7 +64,6 @@ createAccount(name: string, callback: AsyncCallback<void>): void; **示例:** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); try { appAccountManager.createAccount("WangWu", (err) => { console.log("createAccount err: " + JSON.stringify(err)); @@ -102,7 +101,6 @@ createAccount(name: string, options: CreateAccountOptions, callback: AsyncCallba **示例:** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); let options = { customData: { "age": "10" @@ -155,7 +153,6 @@ createAccount(name: string, options?: CreateAccountOptions): Promise<void> **示例:** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); let options = { customData: { "age": "10" @@ -215,7 +212,6 @@ createAccountImplicitly(owner: string, callback: AuthCallback): void }); } - let appAccountManager = account_appAccount.createAppAccountManager(); try { appAccountManager.createAccountImplicitly("com.example.accountjsdemo", { onResult: onResultCallback, @@ -270,7 +266,6 @@ createAccountImplicitly(owner: string, options: CreateAccountImplicitlyOptions, }); } - let appAccountManager = account_appAccount.createAppAccountManager(); let options = { authType: "getSocialData", requiredLabels: [ "student" ] @@ -311,7 +306,6 @@ removeAccount(name: string, callback: AsyncCallback<void>): void **示例:** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); try { appAccountManager.removeAccount("ZhaoLiu", (err) => { if (err) { @@ -356,7 +350,6 @@ removeAccount(name: string): Promise<void> **示例:** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); try { appAccountManager.removeAccount("Lisi").then(() => { console.log("removeAccount successfully"); @@ -397,7 +390,6 @@ setAppAccess(name: string, bundleName: string, isAccessible: boolean, callback: **示例:** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); try { appAccountManager.setAppAccess("ZhangSan", "com.example.accountjsdemo", true, (err) => { if (err) { @@ -445,7 +437,6 @@ setAppAccess(name: string, bundleName: string, isAccessible: boolean): Promise&l **示例:** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); try { appAccountManager.setAppAccess("ZhangSan", "com.example.accountjsdemo", true).then(() => { console.log("setAppAccess successfully"); @@ -485,7 +476,6 @@ checkAppAccess(name: string, bundleName: string, callback: AsyncCallback<bool **示例:** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); try { appAccountManager.checkAppAccess("ZhangSan", "com.example.accountjsdemo", (err, isAccessible) => { if (err) { @@ -532,7 +522,6 @@ checkAppAccess(name: string, bundleName: string): Promise<boolean> **示例:** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); try { appAccountManager.checkAppAccess("ZhangSan", "com.example.accountjsdemo").then((isAccessible) => { console.log("checkAppAccess successfully, isAccessible: " + isAccessible); @@ -573,7 +562,6 @@ setDataSyncEnabled(name: string, isEnabled: boolean, callback: AsyncCallback< **示例:** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); try { appAccountManager.setDataSyncEnabled("ZhangSan", true, (err) => { console.log("setDataSyncEnabled err: " + JSON.stringify(err)); @@ -617,7 +605,6 @@ setDataSyncEnabled(name: string, isEnabled: boolean): Promise<void> **示例:** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); try { appAccountManager .setDataSyncEnabled("ZhangSan", true).then(() => { console.log('setDataSyncEnabled Success'); @@ -657,7 +644,6 @@ checkDataSyncEnabled(name: string, callback: AsyncCallback<boolean>): void **示例:** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); try { appAccountManager.checkDataSyncEnabled("ZhangSan", (err, isEnabled) => { if (err) { @@ -704,7 +690,6 @@ checkDataSyncEnabled(name: string): Promise<boolean> **示例:** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); try { appAccountManager.checkDataSyncEnabled("ZhangSan").then((isEnabled) => { console.log("checkDataSyncEnabled successfully, isEnabled: " + isEnabled); @@ -744,7 +729,6 @@ setCredential(name: string, credentialType: string, credential: string,callback: **示例:** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); try { appAccountManager.setCredential("ZhangSan", "PIN_SIX", "xxxxxx", (err) => { if (err) { @@ -791,7 +775,6 @@ setCredential(name: string, credentialType: string, credential: string): Promise **示例:** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); try { appAccountManager.setCredential("ZhangSan", "PIN_SIX", "xxxxxx").then(() => { console.log("setCredential successfully"); @@ -831,7 +814,6 @@ getCredential(name: string, credentialType: string, callback: AsyncCallback<s **示例:** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); try { appAccountManager.getCredential("ZhangSan", "PIN_SIX", (err, result) => { if (err) { @@ -878,7 +860,6 @@ getCredential(name: string, credentialType: string): Promise<string> **示例:** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); try { appAccountManager.getCredential("ZhangSan", "PIN_SIX").then((credential) => { console.log("getCredential successfully, credential: " + credential); @@ -919,7 +900,6 @@ setCustomData(name: string, key: string, value: string, callback: AsyncCallback& **示例:** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); try { appAccountManager.setCustomData("ZhangSan", "age", "12", (err) => { if (err) { @@ -967,7 +947,6 @@ setCustomData(name: string, key: string, value: string): Promise<void> **示例:** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); try { appAccountManager.setCustomData("ZhangSan", "age", "12").then(() => { console.log("setCustomData successfully"); @@ -1007,7 +986,6 @@ getCustomData(name: string, key: string, callback: AsyncCallback<string>): **示例:** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); try { appAccountManager.getCustomData("ZhangSan", "age", (err, data) => { if (err) { @@ -1054,7 +1032,6 @@ getCustomData(name: string, key: string): Promise<string> **示例:** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); try { appAccountManager.getCustomData("ZhangSan", "age").then((data) => { console.log("getCustomData successfully, data: " + data); @@ -1099,7 +1076,6 @@ getCustomDataSync(name: string, key: string): string; **示例:** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); try { let value = appAccountManager.getCustomDataSync("ZhangSan", "age"); console.info("getCustomDataSync successfully, vaue:" + value); @@ -1114,8 +1090,6 @@ getAllAccounts(callback: AsyncCallback<Array<AppAccountInfo>>): void 获取所有可访问的应用帐号信息。使用callback异步回调。 -**需要权限:** ohos.permission.GET_ALL_APP_ACCOUNTS。 - **系统能力:** SystemCapability.Account.AppAccount **参数:** @@ -1133,7 +1107,6 @@ getAllAccounts(callback: AsyncCallback<Array<AppAccountInfo>>): void **示例:** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); try { appAccountManager.getAllAccounts((err, data) => { if (err) { @@ -1153,8 +1126,6 @@ getAllAccounts(): Promise<Array<AppAccountInfo>> 获取所有可访问的应用帐号信息。使用Promise异步回调。 -**需要权限:** ohos.permission.GET_ALL_APP_ACCOUNTS。 - **系统能力:** SystemCapability.Account.AppAccount **返回值:** @@ -1172,7 +1143,6 @@ getAllAccounts(): Promise<Array<AppAccountInfo>> **示例:** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); try { appAccountManager.getAllAccounts().then((data) => { console.debug("getAllAccounts successfully"); @@ -1190,8 +1160,6 @@ getAccountsByOwner(owner: string, callback: AsyncCallback<Array<AppAccount 根据应用帐号所有者获取调用方可访问的应用帐号列表。使用callback异步回调。 -**需要权限:** ohos.permission.GET_ALL_APP_ACCOUNTS。 - **系统能力:** SystemCapability.Account.AppAccount **参数:** @@ -1212,7 +1180,6 @@ getAccountsByOwner(owner: string, callback: AsyncCallback<Array<AppAccount **示例:** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); try { appAccountManager.getAccountsByOwner("com.example.accountjsdemo2", (err, data) => { if (err) { @@ -1232,8 +1199,6 @@ getAccountsByOwner(owner: string): Promise<Array<AppAccountInfo>> 根据应用帐号所有者获取调用方可访问的应用帐号列表。使用Promise异步回调。 -**需要权限:** ohos.permission.GET_ALL_APP_ACCOUNTS。 - **系统能力:** SystemCapability.Account.AppAccount **参数:** @@ -1259,7 +1224,6 @@ getAccountsByOwner(owner: string): Promise<Array<AppAccountInfo>> **示例:** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); try { appAccountManager.getAccountsByOwner("com.example.accountjsdemo2").then((data) => { console.debug("getAccountsByOwner successfully, data:" + JSON.stringify(data)); @@ -1299,7 +1263,6 @@ on(type: 'accountChange', owners: Array<string>, callback: Callback<Arr **示例:** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); function changeOnCallback(data){ console.log("receive change data:" + JSON.stringify(data)); } @@ -1312,7 +1275,7 @@ on(type: 'accountChange', owners: Array<string>, callback: Callback<Arr ### off('accountChange')9+ -off(type: 'accountChange', callback?: Callback>): void +off(type: 'accountChange', callback?: Callback<Array<AppAccountInfo>>): void 取消订阅帐号信息变更事件。 @@ -1323,7 +1286,7 @@ off(type: 'accountChange', callback?: Callback>): void | 参数名 | 类型 | 必填 | 说明 | | -------- | -------------------------------- | ---- | ------------ | | type | 'accountChange' | 是 | 事件回调类型,支持的事件为'accountChange',当帐号所有者更新帐号信息时,触发该事件。 | -| callback | Callback> | 否 | 回调函数,返回信息发生变更的应用帐号列表。 | +| callback | Callback<Array<[AppAccountInfo](#appaccountinfo)>> | 否 | 回调函数,返回信息发生变更的应用帐号列表。 | **错误码:** @@ -1336,8 +1299,7 @@ off(type: 'accountChange', callback?: Callback>): void **示例:** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); - function changeOnCallback(data){ + function changeOnCallback(data) { console.log("receive change data:" + JSON.stringify(data)); } try{ @@ -1398,7 +1360,6 @@ auth(name: string, owner: string, authType: string, callback: AuthCallback): voi }); } - let appAccountManager = account_appAccount.createAppAccountManager(); try { appAccountManager.auth("LiSi", "com.example.accountjsdemo", "getSocialData", { onResult: onResultCallback, @@ -1458,7 +1419,6 @@ auth(name: string, owner: string, authType: string, options: {[key: string]: Obj let options = { "password": "xxxx", }; - let appAccountManager = account_appAccount.createAppAccountManager(); try { appAccountManager.auth("LiSi", "com.example.accountjsdemo", "getSocialData", options, { onResult: onResultCallback, @@ -1498,7 +1458,6 @@ getAuthToken(name: string, owner: string, authType: string, callback: AsyncCallb **示例:** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); try { appAccountManager.getAuthToken("LiSi", "com.example.accountjsdemo", "getSocialData", (err, token) => { if (err) { @@ -1546,7 +1505,6 @@ getAuthToken(name: string, owner: string, authType: string): Promise<string&g **示例:** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); try { appAccountManager.getAuthToken("LiSi", "com.example.accountjsdemo", "getSocialData").then((token) => { console.log("getAuthToken successfully, token: " + token); @@ -1587,7 +1545,6 @@ setAuthToken(name: string, authType: string, token: string, callback: AsyncCallb **示例:** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); try { appAccountManager.setAuthToken("LiSi", "getSocialData", "xxxx", (err) => { if (err) { @@ -1635,7 +1592,6 @@ setAuthToken(name: string, authType: string, token: string): Promise<void> **示例:** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); try { appAccountManager.setAuthToken("LiSi", "getSocialData", "xxxx").then(() => { console.log("setAuthToken successfully"); @@ -1677,7 +1633,6 @@ deleteAuthToken(name: string, owner: string, authType: string, token: string, ca **示例:** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); try { appAccountManager.deleteAuthToken("LiSi", "com.example.accountjsdemo", "getSocialData", "xxxxx", (err) => { if (err) { @@ -1726,7 +1681,6 @@ deleteAuthToken(name: string, owner: string, authType: string, token: string): P **示例:** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); try { appAccountManager.deleteAuthToken("LiSi", "com.example.accountjsdemo", "getSocialData", "xxxxx").then(() => { console.log("deleteAuthToken successfully"); @@ -1770,7 +1724,6 @@ setAuthTokenVisibility(name: string, authType: string, bundleName: string, isVis **示例:** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); try { appAccountManager.setAuthTokenVisibility("LiSi", "getSocialData", "com.example.accountjsdemo", true, (err) => { if (err) { @@ -1821,7 +1774,6 @@ setAuthTokenVisibility(name: string, authType: string, bundleName: string, isVis **示例:** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); try { appAccountManager.setAuthTokenVisibility("LiSi", "getSocialData", "com.example.accountjsdemo", true).then(() => { console.log("setAuthTokenVisibility successfully"); @@ -1863,7 +1815,6 @@ checkAuthTokenVisibility(name: string, authType: string, bundleName: string, cal **示例:** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); try { appAccountManager.checkAuthTokenVisibility("LiSi", "getSocialData", "com.example.accountjsdemo", (err, isVisible) => { if (err) { @@ -1912,7 +1863,6 @@ checkAuthTokenVisibility(name: string, authType: string, bundleName: string): Pr **示例:** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); try { appAccountManager.checkAuthTokenVisibility("LiSi", "getSocialData", "com.example.accountjsdemo").then((isVisible) => { console.log("checkAuthTokenVisibility successfully, isVisible: " + isVisible); @@ -1951,7 +1901,6 @@ getAllAuthTokens(name: string, owner: string, callback: AsyncCallback<Array&l **示例:** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); try { appAccountManager.getAllAuthTokens("LiSi", "com.example.accountjsdemo", (err, tokenArr) => { if (err) { @@ -1997,7 +1946,6 @@ getAllAuthTokens(name: string, owner: string): Promise<Array<AuthTokenInfo **示例:** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); try { appAccountManager.getAllAuthTokens("LiSi", "com.example.accountjsdemo").then((tokenArr) => { console.log('getAllAuthTokens successfully, tokenArr: ' + JSON.stringify(tokenArr)); @@ -2037,7 +1985,6 @@ getAuthList(name: string, authType: string, callback: AsyncCallback<Array< **示例:** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); try { appAccountManager.getAuthList("com.example.accountjsdemo", "getSocialData", (err, authList) => { if (err) { @@ -2084,7 +2031,6 @@ getAuthList(name: string, authType: string): Promise<Array<string>> **示例:** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); try { appAccountManager.getAuthList("com.example.accountjsdemo", "getSocialData").then((authList) => { console.log("getAuthList successfully, authList: " + authList); @@ -2123,7 +2069,6 @@ getAuthCallback(sessionId: string, callback: AsyncCallback<AuthCallback>): ```js import featureAbility from '@ohos.ability.featureAbility'; - let appAccountManager = account_appAccount.createAppAccountManager(); featureAbility.getWant((err, want) => { var sessionId = want.parameters[account_appAccount.Constants.KEY_SESSION_ID]; try { @@ -2183,7 +2128,6 @@ getAuthCallback(sessionId: string): Promise<AuthCallback> ```js import featureAbility from '@ohos.ability.featureAbility'; - let appAccountManager = account_appAccount.createAppAccountManager(); featureAbility.getWant().then((want) => { var sessionId = want.parameters[account_appAccount.Constants.KEY_SESSION_ID]; try { @@ -2236,7 +2180,6 @@ queryAuthenticatorInfo(owner: string, callback: AsyncCallback<AuthenticatorIn **示例:** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); try { appAccountManager.queryAuthenticatorInfo("com.example.accountjsdemo", (err, info) => { if (err) { @@ -2281,7 +2224,6 @@ queryAuthenticatorInfo(owner: string): Promise<AuthenticatorInfo> **示例:** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); try { appAccountManager.queryAuthenticatorInfo("com.example.accountjsdemo").then((info) => { console.log("queryAuthenticatorInfo successfully, info: " + JSON.stringify(info)); @@ -2324,7 +2266,6 @@ checkAccountLabels(name: string, owner: string, labels: Array<string>, cal **示例:** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); let labels = ["student"]; try { appAccountManager.checkAccountLabels("zhangsan", "com.example.accountjsdemo", labels, (err, hasAllLabels) => { @@ -2375,7 +2316,6 @@ checkAccountLabels(name: string, owner: string, labels: Array<string>): Pr **示例:** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); let labels = ["student"]; try { appAccountManager.checkAccountLabels("zhangsan", "com.example.accountjsdemo", labels).then((hasAllLabels) => { @@ -2416,7 +2356,6 @@ deleteCredential(name: string, credentialType: string, callback: AsyncCallback&l **示例:** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); try { appAccountManager.deleteCredential("zhangsan", "PIN_SIX", (err) => { if (err) { @@ -2463,7 +2402,6 @@ deleteCredential(name: string, credentialType: string): Promise<void> **示例:** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); try { appAccountManager.deleteCredential("zhangsan", "PIN_SIX").then(() => { console.log("deleteCredential successfully"); @@ -2502,7 +2440,6 @@ selectAccountsByOptions(options: SelectAccountsOptions, callback: AsyncCallback& **示例:** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); let options = { allowedOwners: [ "com.example.accountjsdemo" ], requiredLabels: [ "student" ] @@ -2552,7 +2489,6 @@ selectAccountsByOptions(options: SelectAccountsOptions): Promise<Array<App **示例:** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); let options = { allowedOwners: ["com.example.accountjsdemo"] }; @@ -2597,7 +2533,6 @@ verifyCredential(name: string, owner: string, callback: AuthCallback): void; **示例:** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); try { appAccountManager.verifyCredential("zhangsan", "com.example.accountjsdemo", { onResult: (resultCode, result) => { @@ -2644,7 +2579,6 @@ verifyCredential(name: string, owner: string, options: VerifyCredentialOptions, **示例:** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); let options = { credentialType: "pin", credential: "123456" @@ -2692,7 +2626,6 @@ setAuthenticatorProperties(owner: string, callback: AuthCallback): void; **示例:** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); try { appAccountManager.setAuthenticatorProperties("com.example.accountjsdemo", { onResult: (resultCode, result) => { @@ -2737,7 +2670,6 @@ setAuthenticatorProperties(owner: string, options: SetPropertiesOptions, callbac **示例:** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); let options = { properties: {"prop1": "value1"} }; @@ -2780,7 +2712,6 @@ addAccount(name: string, callback: AsyncCallback<void>): void **示例:** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); appAccountManager.addAccount("WangWu", (err) => { console.log("addAccount err: " + JSON.stringify(err)); }); @@ -2808,7 +2739,6 @@ addAccount(name: string, extraInfo: string, callback: AsyncCallback<void>) **示例:** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); appAccountManager.addAccount("LiSi", "token101", (err) => { console.log("addAccount err: " + JSON.stringify(err)); }); @@ -2841,7 +2771,6 @@ addAccount(name: string, extraInfo?: string): Promise<void> **示例:** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); appAccountManager.addAccount("LiSi", "token101").then(()=> { console.log('addAccount Success'); }).catch((err) => { @@ -2887,7 +2816,6 @@ addAccountImplicitly(owner: string, authType: string, options: {[key: string]: a }); } - let appAccountManager = account_appAccount.createAppAccountManager(); appAccountManager.addAccountImplicitly("com.example.accountjsdemo", "getSocialData", {}, { onResult: onResultCallback, onRequestRedirected: onRequestRedirectedCallback @@ -2916,7 +2844,6 @@ deleteAccount(name: string, callback: AsyncCallback<void>): void **示例:** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); appAccountManager.deleteAccount("ZhaoLiu", (err) => { console.log("deleteAccount err: " + JSON.stringify(err)); }); @@ -2949,7 +2876,6 @@ deleteAccount(name: string): Promise<void> **示例:** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); appAccountManager.deleteAccount("ZhaoLiu").then(() => { console.log('deleteAccount Success'); }).catch((err) => { @@ -2979,7 +2905,6 @@ disableAppAccess(name: string, bundleName: string, callback: AsyncCallback<vo **示例:** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); appAccountManager.disableAppAccess("ZhangSan", "com.example.accountjsdemo", (err) => { console.log("disableAppAccess err: " + JSON.stringify(err)); }); @@ -3013,7 +2938,6 @@ disableAppAccess(name: string, bundleName: string): Promise<void> **示例:** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); appAccountManager.disableAppAccess("ZhangSan", "com.example.accountjsdemo").then(() => { console.log('disableAppAccess Success'); }).catch((err) => { @@ -3044,7 +2968,6 @@ enableAppAccess(name: string, bundleName: string, callback: AsyncCallback<voi **示例:** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); appAccountManager.enableAppAccess("ZhangSan", "com.example.accountjsdemo", (err) => { console.log("enableAppAccess: " + JSON.stringify(err)); }); @@ -3078,7 +3001,6 @@ enableAppAccess(name: string, bundleName: string): Promise<void> **示例:** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); appAccountManager.enableAppAccess("ZhangSan", "com.example.accountjsdemo").then(() => { console.log('enableAppAccess Success'); }).catch((err) => { @@ -3110,7 +3032,6 @@ checkAppAccountSyncEnable(name: string, callback: AsyncCallback<boolean>): **示例:** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); appAccountManager.checkAppAccountSyncEnable("ZhangSan", (err, result) => { console.log("checkAppAccountSyncEnable err: " + JSON.stringify(err)); console.log('checkAppAccountSyncEnable result: ' + result); @@ -3146,7 +3067,6 @@ checkAppAccountSyncEnable(name: string): Promise<boolean> **示例:** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); appAccountManager.checkAppAccountSyncEnable("ZhangSan").then((data) => { console.log('checkAppAccountSyncEnable, result: ' + data); }).catch((err) => { @@ -3178,7 +3098,6 @@ setAccountCredential(name: string, credentialType: string, credential: string,ca **示例:** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); appAccountManager.setAccountCredential("ZhangSan", "credentialType001", "credential001", (err) => { console.log("setAccountCredential err: " + JSON.stringify(err)); }); @@ -3213,7 +3132,6 @@ setAccountCredential(name: string, credentialType: string, credential: string): **示例:** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); appAccountManager.setAccountCredential("ZhangSan", "credentialType001", "credential001").then(() => { console.log('setAccountCredential Success'); }).catch((err) => { @@ -3245,7 +3163,6 @@ setAccountExtraInfo(name: string, extraInfo: string, callback: AsyncCallback< **示例:** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); appAccountManager.setAccountExtraInfo("ZhangSan", "Tk002", (err) => { console.log("setAccountExtraInfo err: " + JSON.stringify(err)); }); @@ -3280,7 +3197,6 @@ setAccountExtraInfo(name: string, extraInfo: string): Promise<void> **示例:** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); appAccountManager.setAccountExtraInfo("ZhangSan", "Tk002").then(() => { console.log('setAccountExtraInfo Success'); }).catch((err) => { @@ -3313,7 +3229,6 @@ setAppAccountSyncEnable(name: string, isEnable: boolean, callback: AsyncCallback **示例:** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); appAccountManager.setAppAccountSyncEnable("ZhangSan", true, (err) => { console.log("setAppAccountSyncEnable err: " + JSON.stringify(err)); }); @@ -3349,7 +3264,6 @@ setAppAccountSyncEnable(name: string, isEnable: boolean): Promise<void> **示例:** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); appAccountManager .setAppAccountSyncEnable("ZhangSan", true).then(() => { console.log('setAppAccountSyncEnable Success'); }).catch((err) => { @@ -3382,7 +3296,6 @@ setAssociatedData(name: string, key: string, value: string, callback: AsyncCallb **示例:** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); appAccountManager.setAssociatedData("ZhangSan", "k001", "v001", (err) => { console.log("setAssociatedData err: " + JSON.stringify(err)); }); @@ -3418,7 +3331,6 @@ setAssociatedData(name: string, key: string, value: string): Promise<void> **示例:** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); appAccountManager.setAssociatedData("ZhangSan", "k001", "v001").then(() => { console.log('setAssociatedData Success'); }).catch((err) => { @@ -3449,7 +3361,6 @@ getAllAccessibleAccounts(callback: AsyncCallback<Array<AppAccountInfo>& **示例:** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); appAccountManager.getAllAccessibleAccounts((err, data)=>{ console.debug("getAllAccessibleAccounts err:" + JSON.stringify(err)); console.debug("getAllAccessibleAccounts data:" + JSON.stringify(data)); @@ -3479,7 +3390,6 @@ getAllAccessibleAccounts(): Promise<Array<AppAccountInfo>> **示例:** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); appAccountManager.getAllAccessibleAccounts().then((data) => { console.log('getAllAccessibleAccounts: ' + data); }).catch((err) => { @@ -3511,7 +3421,6 @@ getAllAccounts(owner: string, callback: AsyncCallback<Array<AppAccountInfo **示例:** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); const selfBundle = "com.example.actsgetallaaccounts"; appAccountManager.getAllAccounts(selfBundle, (err, data)=>{ console.debug("getAllAccounts err:" + JSON.stringify(err)); @@ -3548,7 +3457,6 @@ getAllAccounts(owner: string): Promise<Array<AppAccountInfo>> **示例:** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); const selfBundle = "com.example.actsgetallaaccounts"; appAccountManager.getAllAccounts(selfBundle).then((data) => { console.log('getAllAccounts: ' + data); @@ -3580,7 +3488,6 @@ getAccountCredential(name: string, credentialType: string, callback: AsyncCallba **示例:** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); appAccountManager.getAccountCredential("ZhangSan", "credentialType001", (err, result) => { console.log("getAccountCredential err: " + JSON.stringify(err)); console.log('getAccountCredential result: ' + result); @@ -3615,7 +3522,6 @@ getAccountCredential(name: string, credentialType: string): Promise<string> **示例:** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); appAccountManager.getAccountCredential("ZhangSan", "credentialType001").then((data) => { console.log('getAccountCredential, result: ' + data); }).catch((err) => { @@ -3645,7 +3551,6 @@ getAccountExtraInfo(name: string, callback: AsyncCallback<string>): void **示例:** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); appAccountManager.getAccountExtraInfo("ZhangSan", (err, result) => { console.log("getAccountExtraInfo err: " + JSON.stringify(err)); console.log('getAccountExtraInfo result: ' + result); @@ -3679,7 +3584,6 @@ getAccountExtraInfo(name: string): Promise<string> **示例:** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); appAccountManager.getAccountExtraInfo("ZhangSan").then((data) => { console.log('getAccountExtraInfo, result: ' + data); }).catch((err) => { @@ -3710,7 +3614,6 @@ getAssociatedData(name: string, key: string, callback: AsyncCallback<string&g **示例:** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); appAccountManager.getAssociatedData("ZhangSan", "k001", (err, result) => { console.log("getAssociatedData err: " + JSON.stringify(err)); console.log('getAssociatedData result: ' + result); @@ -3745,7 +3648,6 @@ getAssociatedData(name: string, key: string): Promise<string> **示例:** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); appAccountManager.getAssociatedData("ZhangSan", "k001").then((data) => { console.log('getAssociatedData: ' + data); }).catch((err) => { @@ -3776,7 +3678,6 @@ on(type: 'change', owners: Array<string>, callback: Callback<Array<A **示例:** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); function changeOnCallback(data){ console.debug("receive change data:" + JSON.stringify(data)); } @@ -3790,7 +3691,7 @@ on(type: 'change', owners: Array<string>, callback: Callback<Array<A ### off('change')(deprecated) -off(type: 'change', callback?: Callback>): void +off(type: 'change', callback?: Callback<Array<AppAccountInfo>>): void 取消订阅帐号信息变更事件。 @@ -3805,12 +3706,11 @@ off(type: 'change', callback?: Callback>): void | 参数名 | 类型 | 必填 | 说明 | | -------- | -------------------------------- | ---- | ------------ | | type | 'change' | 是 | 事件回调类型,支持的事件为'change',当帐号所有者更新帐号信息时,触发该事件。 | -| callback | Callback> | 否 | 回调函数,返回信息发生变更的应用帐号列表。 | +| callback | Callback<Array<[AppAccountInfo](#appaccountinfo)>> | 否 | 回调函数,返回信息发生变更的应用帐号列表。 | **示例:** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); function changeOnCallback(data){ console.debug("receive change data:" + JSON.stringify(data)); appAccountManager.off('change', function(){ @@ -3864,7 +3764,6 @@ authenticate(name: string, owner: string, authType: string, options: {[key: stri }); } - let appAccountManager = account_appAccount.createAppAccountManager(); appAccountManager.authenticate("LiSi", "com.example.accountjsdemo", "getSocialData", {}, { onResult: onResultCallback, onRequestRedirected: onRequestRedirectedCallback @@ -3895,7 +3794,6 @@ getOAuthToken(name: string, owner: string, authType: string, callback: AsyncCall **示例:** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); appAccountManager.getOAuthToken("LiSi", "com.example.accountjsdemo", "getSocialData", (err, data) => { console.log('getOAuthToken err: ' + JSON.stringify(err)); console.log('getOAuthToken token: ' + data); @@ -3931,7 +3829,6 @@ getOAuthToken(name: string, owner: string, authType: string): Promise<string& **示例:** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); appAccountManager.getOAuthToken("LiSi", "com.example.accountjsdemo", "getSocialData").then((data) => { console.log('getOAuthToken token: ' + data); }).catch((err) => { @@ -3963,7 +3860,6 @@ setOAuthToken(name: string, authType: string, token: string, callback: AsyncCall **示例:** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); appAccountManager.setOAuthToken("LiSi", "getSocialData", "xxxx", (err) => { console.log('setOAuthToken err: ' + JSON.stringify(err)); }); @@ -3998,7 +3894,6 @@ setOAuthToken(name: string, authType: string, token: string): Promise<void> **示例:** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); appAccountManager.setOAuthToken("LiSi", "getSocialData", "xxxx").then(() => { console.log('setOAuthToken successfully'); }).catch((err) => { @@ -4031,7 +3926,6 @@ deleteOAuthToken(name: string, owner: string, authType: string, token: string, c **示例:** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); appAccountManager.deleteOAuthToken("LiSi", "com.example.accountjsdemo", "getSocialData", "xxxxx", (err) => { console.log('deleteOAuthToken err: ' + JSON.stringify(err)); }); @@ -4067,7 +3961,6 @@ deleteOAuthToken(name: string, owner: string, authType: string, token: string): **示例:** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); appAccountManager.deleteOAuthToken("LiSi", "com.example.accountjsdemo", "getSocialData", "xxxxx").then(() => { console.log('deleteOAuthToken successfully'); }).catch((err) => { @@ -4100,7 +3993,6 @@ setOAuthTokenVisibility(name: string, authType: string, bundleName: string, isVi **示例:** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); appAccountManager.setOAuthTokenVisibility("LiSi", "getSocialData", "com.example.accountjsdemo", true, (err) => { console.log('setOAuthTokenVisibility err: ' + JSON.stringify(err)); }); @@ -4136,7 +4028,6 @@ setOAuthTokenVisibility(name: string, authType: string, bundleName: string, isVi **示例:** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); appAccountManager.setOAuthTokenVisibility("LiSi", "getSocialData", "com.example.accountjsdemo", true).then(() => { console.log('setOAuthTokenVisibility successfully'); }).catch((err) => { @@ -4168,7 +4059,6 @@ checkOAuthTokenVisibility(name: string, authType: string, bundleName: string, ca **示例:** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); appAccountManager.checkOAuthTokenVisibility("LiSi", "getSocialData", "com.example.accountjsdemo", (err, data) => { console.log('checkOAuthTokenVisibility err: ' + JSON.stringify(err)); console.log('checkOAuthTokenVisibility isVisible: ' + data); @@ -4204,7 +4094,6 @@ checkOAuthTokenVisibility(name: string, authType: string, bundleName: string): P **示例:** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); appAccountManager.checkOAuthTokenVisibility("LiSi", "getSocialData", "com.example.accountjsdemo").then((data) => { console.log('checkOAuthTokenVisibility isVisible: ' + data); }).catch((err) => { @@ -4235,7 +4124,6 @@ getAllOAuthTokens(name: string, owner: string, callback: AsyncCallback<Array& **示例:** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); appAccountManager.getAllOAuthTokens("LiSi", "com.example.accountjsdemo", (err, data) => { console.log("getAllOAuthTokens err: " + JSON.stringify(err)); console.log('getAllOAuthTokens data: ' + JSON.stringify(data)); @@ -4270,7 +4158,6 @@ getAllOAuthTokens(name: string, owner: string): Promise<Array<OAuthTokenIn **示例:** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); appAccountManager.getAllOAuthTokens("LiSi", "com.example.accountjsdemo").then((data) => { console.log('getAllOAuthTokens data: ' + JSON.stringify(data)); }).catch((err) => { @@ -4301,7 +4188,6 @@ getOAuthList(name: string, authType: string, callback: AsyncCallback<Array< **示例:** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); appAccountManager.getOAuthList("com.example.accountjsdemo", "getSocialData", (err, data) => { console.log('getOAuthList err: ' + JSON.stringify(err)); console.log('getOAuthList data: ' + JSON.stringify(data)); @@ -4336,7 +4222,6 @@ getOAuthList(name: string, authType: string): Promise<Array<string>> **示例:** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); appAccountManager.getOAuthList("com.example.accountjsdemo", "getSocialData").then((data) => { console.log('getOAuthList data: ' + JSON.stringify(data)); }).catch((err) => { @@ -4367,7 +4252,6 @@ getAuthenticatorCallback(sessionId: string, callback: AsyncCallback<Authentic ```js import featureAbility from '@ohos.ability.featureAbility'; - let appAccountManager = account_appAccount.createAppAccountManager(); featureAbility.getWant((err, want) => { var sessionId = want.parameters[account_appAccount.Constants.KEY_SESSION_ID]; appAccountManager.getAuthenticatorCallback(sessionId, (err, callback) => { @@ -4413,7 +4297,6 @@ getAuthenticatorCallback(sessionId: string): Promise<AuthenticatorCallback> ```js import featureAbility from '@ohos.ability.featureAbility'; - let appAccountManager = account_appAccount.createAppAccountManager(); featureAbility.getWant().then((want) => { var sessionId = want.parameters[account_appAccount.Constants.KEY_SESSION_ID]; appAccountManager.getAuthenticatorCallback(sessionId).then((callback) => { @@ -4452,7 +4335,6 @@ getAuthenticatorInfo(owner: string, callback: AsyncCallback<AuthenticatorInfo **示例:** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); appAccountManager.getAuthenticatorInfo("com.example.accountjsdemo", (err, data) => { console.log("getAuthenticatorInfo err: " + JSON.stringify(err)); console.log('getAuthenticatorInfo data: ' + JSON.stringify(data)); @@ -4486,7 +4368,6 @@ getAuthenticatorInfo(owner: string): Promise<AuthenticatorInfo> **示例:** ```js - let appAccountManager = account_appAccount.createAppAccountManager(); appAccountManager.getAuthenticatorInfo("com.example.accountjsdemo").then((data) => { console.log('getAuthenticatorInfo: ' + JSON.stringify(data)); }).catch((err) => { @@ -4639,10 +4520,13 @@ getAuthenticatorInfo(owner: string): Promise<AuthenticatorInfo> | KEY_REQUIRED_LABELS9+ | "requiredLabels" | 表示键名,必需的标签。 | | KEY_BOOLEAN_RESULT9+ | "booleanResult" | 表示键名,布尔返回值。 | -## ResultCode8+ +## ResultCode(deprecated) 表示返回码的枚举。 +> **说明:**
+> 从API version 8开始支持,从API version 9开始废弃。建议查看[错误码文档](../errorcodes/errorcode-app-account.md)替代。 + **系统能力:** 以下各项对应的系统能力均为SystemCapability.Account.AppAccount。 | 名称 | 值 | 说明 | diff --git a/zh-cn/application-dev/reference/apis/js-apis-application-ability.md b/zh-cn/application-dev/reference/apis/js-apis-application-ability.md index 0f422ebb87ae2ff1710133ece24c273741bc3d8c..60aefc098fad8ba143d99203d891fdc8cd4cefe8 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-application-ability.md +++ b/zh-cn/application-dev/reference/apis/js-apis-application-ability.md @@ -306,7 +306,7 @@ onMemoryLevel(level: AbilityConstant.MemoryLevel): void; | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | - | level | [AbilityConstant.MemoryLevel](js-apis-application-abilityConstant.md#abilityconstantmemorylevel) | 是 | 回调返回内存微调级别,显示当前内存使用状态。| + | level | [AbilityConstant.MemoryLevel](js-apis-app-ability-abilityConstant.md#abilityconstantmemorylevel) | 是 | 回调返回内存微调级别,显示当前内存使用状态。| **示例:** @@ -330,7 +330,7 @@ onSaveState(reason: AbilityConstant.StateType, wantParam : {[key: string]: any}) | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | - | reason | [AbilityConstant.StateType](js-apis-application-abilityConstant.md#abilityconstantstatetype) | 是 | 回调保存状态的原因。 | + | reason | [AbilityConstant.StateType](js-apis-app-ability-abilityConstant.md#abilityconstantstatetype) | 是 | 回调保存状态的原因。 | | wantParam | {[key: string]: any} | 是 | want相关参数。 | **返回值:** @@ -414,8 +414,8 @@ call(method: string, data: rpc.Sequenceable): Promise<void>; return true; } }; - var method = 'call_Function'; // 约定的通知消息字符串 - var caller; + let method = 'call_Function'; // 约定的通知消息字符串 + let caller; export default class EntryAbility extends UIAbility { onWindowStageCreate(windowStage) { this.context.startAbilityByCall({ @@ -499,8 +499,8 @@ callWithResult(method: string, data: rpc.Sequenceable): Promise<rpc.MessagePa return true; } }; - var method = 'call_Function'; - var caller; + let method = 'call_Function'; + let caller; export default class EntryAbility extends UIAbility { onWindowStageCreate(windowStage) { this.context.startAbilityByCall({ @@ -551,7 +551,7 @@ release(): void; ```ts import UIAbility from '@ohos.app.ability.UIAbility'; - var caller; + let caller; export default class EntryAbility extends UIAbility { onWindowStageCreate(windowStage) { @@ -594,7 +594,7 @@ release(): void; ```ts import UIAbility from '@ohos.app.ability.UIAbility'; - var caller; + let caller; export default class EntryAbility extends UIAbility { onWindowStageCreate(windowStage) { @@ -673,7 +673,7 @@ on(method: string, callback: CalleeCallBack): void; return true; } }; - var method = 'call_Function'; + let method = 'call_Function'; function funcCallBack(pdata) { console.log('Callee funcCallBack is called ' + pdata); let msg = new MyMessageAble("test", ""); @@ -720,7 +720,7 @@ off(method: string): void; ```ts import UIAbility from '@ohos.app.ability.UIAbility'; - var method = 'call_Function'; + let method = 'call_Function'; export default class EntryAbility extends UIAbility { onCreate(want, launchParam) { diff --git a/zh-cn/application-dev/reference/apis/js-apis-application-abilityConstant.md b/zh-cn/application-dev/reference/apis/js-apis-application-abilityConstant.md deleted file mode 100644 index a06734ef9ea765877b0f50e6ee64b2fbef03547f..0000000000000000000000000000000000000000 --- a/zh-cn/application-dev/reference/apis/js-apis-application-abilityConstant.md +++ /dev/null @@ -1,115 +0,0 @@ -# @ohos.application.AbilityConstant (AbilityConstant) - -AbilityConstant提供Ability相关的枚举,包括设置初次启动原因、上次退出原因、迁移结果、窗口类型等。 - -> **说明:** -> -> 本模块首批接口从API version 9开始支持,从API version 9后续版本废弃,替换模块为[@ohos.app.ability.AbilityConstant](js-apis-app-ability-abilityConstant.md)。后续版本的新增接口,采用上角标单独标记接口的起始版本。 -> 本模块接口仅可在Stage模型下使用。 - -## 导入模块 - -```ts -import AbilityConstant from '@ohos.application.AbilityConstant'; -``` - -## 属性 - -**系统能力**:以下各项对应的系统能力均为SystemCapability.Ability.AbilityRuntime.Core - -| 名称 | 类型 | 可读 | 可写 | 说明 | -| -------- | -------- | -------- | -------- | -------- | -| launchReason | [LaunchReason](#abilityconstantlaunchreason)| 是 | 是 | 指示启动原因。 | -| lastExitReason | [LastExitReason](#abilityconstantlastexitreason) | 是 | 是 | 表示最后退出原因。 | - -## AbilityConstant.LaunchReason - -初次启动原因。 - -**系统能力**:以下各项对应的系统能力均为SystemCapability.Ability.AbilityRuntime.Core - -| 名称 | 值 | 说明 | -| ----------------------------- | ---- | ------------------------------------------------------------ | -| UNKNOWN | 0 | 未知的状态。 | -| START_ABILITY | 1 | 启动能力。 | -| CALL | 2 | 呼叫。 | -| CONTINUATION | 3 | 继续。 | -| APP_RECOVERY | 4 | 状态恢复。 | - - -## AbilityConstant.LastExitReason - -上次退出原因。 - -**系统能力**:以下各项对应的系统能力均为SystemCapability.Ability.AbilityRuntime.Core - -| 名称 | 值 | 说明 | -| ----------------------------- | ---- | ------------------------------------------------------------ | -| UNKNOWN | 0 | 未知的状态。 | -| ABILITY_NOT_RESPONDING | 1 | 能力没有反应 | -| NORMAL | 2 | 正常的状态。 | - - -## AbilityConstant.OnContinueResult - -迁移结果。 - -**系统能力**:以下各项对应的系统能力均为SystemCapability.Ability.AbilityRuntime.Core - -| 名称 | 值 | 说明 | -| ----------------------------- | ---- | ------------------------------------------------------------ | -| AGREE | 0 | 同意。 | -| REJECT | 1 | 拒绝。 | -| MISMATCH | 2 | 不匹配。| - -## AbilityConstant.WindowMode - -启动Ability时的窗口模式。 - -**系统能力**:以下各项对应的系统能力均为SystemCapability.Ability.AbilityRuntime.Core - -| 名称 | 值 | 说明 | -| --- | --- | --- | -| WINDOW_MODE_UNDEFINED | 0 | 未定义窗口模式。 | -| WINDOW_MODE_FULLSCREEN | 1 | 全屏模式。 | -| WINDOW_MODE_SPLIT_PRIMARY | 100 | 分屏多窗口主要模式。 | -| WINDOW_MODE_SPLIT_SECONDARY | 101 | 分屏多窗口次要模式。 | -| WINDOW_MODE_FLOATING | 102 | 自由悬浮形式窗口模式。 | - -## AbilityConstant.MemoryLevel - -内存级别的类型。 - -**系统能力**:以下各项对应的系统能力均为SystemCapability.Ability.AbilityRuntime.Core - -| 名称 | 值 | 说明 | -| --- | --- | --- | -| MEMORY_LEVEL_MODERATE | 0 | 内存占用适中。 | -| MEMORY_LEVEL_LOW | 1 | 内存占用低。 | -| MEMORY_LEVEL_CRITICAL | 2 | 内存占用高。 | - -## AbilityConstant.OnSaveResult - -保存应用数据的结果。 - -**系统能力**:以下各项对应的系统能力均为SystemCapability.Ability.AbilityRuntime.Core - -| 名称 | 值 | 说明 | -| ----------------------------- | ---- | ------------------------------------------------------------ | -| ALL_AGREE | 0 | 同意保存状态。 | -| CONTINUATION_REJECT | 1 | 拒绝迁移保存状态。 | -| CONTINUATION_MISMATCH | 2 | 迁移不匹配。| -| RECOVERY_AGREE | 3 | 同意恢复保存状态。 | -| RECOVERY_REJECT | 4 | 拒绝恢复保存状态。| -| ALL_REJECT | 5 | 拒绝保存状态。| - -## AbilityConstant.StateType - -保存应用数据场景原因。 - -**系统能力**:以下各项对应的系统能力均为SystemCapability.Ability.AbilityRuntime.Core - -| 名称 | 值 | 说明 | -| ----------------------------- | ---- | ------------------------------------------------------------ | -| CONTINUATION | 0 | 迁移保存状态。 | -| APP_RECOVERY | 1 | 应用恢复保存状态。 | diff --git a/zh-cn/application-dev/reference/apis/js-apis-application-abilityDelegatorRegistry.md b/zh-cn/application-dev/reference/apis/js-apis-application-abilityDelegatorRegistry.md index 4d5b2ba0d9be7c4f01f700de31c1895fc9b5f70b..db018c3171cb5f795305b196e334634c701d353c 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-application-abilityDelegatorRegistry.md +++ b/zh-cn/application-dev/reference/apis/js-apis-application-abilityDelegatorRegistry.md @@ -1,6 +1,6 @@ # @ohos.application.abilityDelegatorRegistry (AbilityDelegatorRegistry) -AbilityDelegatorRegistry模块提供用于存储已注册的AbilityDelegator和AbilityDelegatorArgs对象的全局寄存器的能力,包括获取应用程序的AbilityDelegator对象、获取单元测试参数AbilityDelegatorArgs对象。 +AbilityDelegatorRegistry模块提供用于存储已注册的AbilityDelegator和AbilityDelegatorArgs对象的全局寄存器的能力,包括获取应用程序的AbilityDelegator对象、获取单元测试参数AbilityDelegatorArgs对象。该模块中的接口只能用于测试框架中。 > **说明:** > @@ -43,7 +43,7 @@ getAbilityDelegator(): AbilityDelegator **示例:** ```ts -var abilityDelegator; +let abilityDelegator; abilityDelegator = AbilityDelegatorRegistry.getAbilityDelegator(); ``` @@ -65,7 +65,7 @@ getArguments(): AbilityDelegatorArgs **示例:** ```ts -var args = AbilityDelegatorRegistry.getArguments(); +let args = AbilityDelegatorRegistry.getArguments(); console.info("getArguments bundleName:" + args.bundleName); console.info("getArguments testCaseNames:" + args.testCaseNames); console.info("getArguments testRunnerClassName:" + args.testRunnerClassName); diff --git a/zh-cn/application-dev/reference/apis/js-apis-application-abilityLifecycleCallback.md b/zh-cn/application-dev/reference/apis/js-apis-application-abilityLifecycleCallback.md index cd2faf8c5843b1eea4af6bf3129b9cbd974f38a9..5937d5c23e0d9ec5a86d0ad7fc1d4594cbcea81c 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-application-abilityLifecycleCallback.md +++ b/zh-cn/application-dev/reference/apis/js-apis-application-abilityLifecycleCallback.md @@ -1,6 +1,6 @@ # @ohos.application.AbilityLifecycleCallback (AbilityLifecycleCallback) -AbilityLifecycleCallback模块提供应用上下文ApplicationContext的生命周期监听方法的回调类的能力,包括onAbilityCreate、onWindowStageCreate、onWindowStageDestroy等方法,可以作为[registerAbilityLifecycleCallback](js-apis-inner-application-applicationContext.md#applicationcontextregisterabilitylifecyclecallback)的入参。 +AbilityLifecycleCallback模块提供应用上下文ApplicationContext的生命周期监听方法的回调类的能力,包括onAbilityCreate、onWindowStageCreate、onWindowStageDestroy等方法,可以作为[on(type: "abilityLifecycle", callback: AbilityLifecycleCallback)](js-apis-inner-application-applicationContext.md#applicationcontextontype-abilitylifecycle-callback-abilitylifecyclecallback)的入参。 > **说明:** > @@ -158,7 +158,7 @@ onAbilityContinue(ability: Ability): void; ```ts import AbilityStage from "@ohos.app.ability.AbilityStage"; -var lifecycleId; +let lifecycleId; export default class MyAbilityStage extends AbilityStage { onCreate() { @@ -210,4 +210,5 @@ export default class MyAbilityStage extends AbilityStage { }); } } -``` \ No newline at end of file +``` + \ No newline at end of file diff --git a/zh-cn/application-dev/reference/apis/js-apis-application-abilityManager.md b/zh-cn/application-dev/reference/apis/js-apis-application-abilityManager.md index f10bf6565e5fded4a7f9a447c23de17bf7d7cec4..437b02ddf75a8404c12e7dc8b945aa54b4ac8679 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-application-abilityManager.md +++ b/zh-cn/application-dev/reference/apis/js-apis-application-abilityManager.md @@ -49,7 +49,7 @@ updateConfiguration(config: Configuration, callback: AsyncCallback\): void **示例**: ```ts -var config = { +let config = { language: 'chinese' } @@ -83,7 +83,7 @@ updateConfiguration(config: Configuration): Promise\ **示例**: ```ts -var config = { +let config = { language: 'chinese' } @@ -142,111 +142,4 @@ abilityManager.getAbilityRunningInfos().then((data) => { }).catch((err) => { console.log("getAbilityRunningInfos err: " + err) }); -``` - -## getExtensionRunningInfos9+ - -getExtensionRunningInfos(upperLimit: number, callback: AsyncCallback\>): void - -获取关于运行扩展能力的信息(callback形式)。 - -**需要权限**: ohos.permission.GET_RUNNING_INFO - -**系统能力**:以下各项对应的系统能力均为SystemCapability.Ability.AbilityRuntime.Core - -**参数**: - -| 参数名 | 类型 | 必填 | 说明 | -| --------- | ---------------------------------------- | ---- | -------------- | -| upperLimit | number | 是 | 获取消息数量的最大限制。 | -| callback | AsyncCallback\> | 是 | 被指定的回调方法。 | - -**示例**: - -```ts -var upperLimit = 0; - -abilityManager.getExtensionRunningInfos(upperLimit, (err,data) => { - console.log("getExtensionRunningInfos err: " + err + " data: " + JSON.stringify(data)); -}); -``` - -## getExtensionRunningInfos9+ - -getExtensionRunningInfos(upperLimit: number): Promise\> - -获取关于运行扩展能力的信息(Promise形式)。 - -**需要权限**: ohos.permission.GET_RUNNING_INFO - -**系统能力**:以下各项对应的系统能力均为SystemCapability.Ability.AbilityRuntime.Core - -**参数**: - -| 参数名 | 类型 | 必填 | 说明 | -| --------- | ---------------------------------------- | ---- | -------------- | -| upperLimit | number | 是 | 获取消息数量的最大限制。 | - -**返回值:** - -| 类型 | 说明 | -| ---------------------------------------- | ------- | -| Promise\> | 返回执行结果。 | - -**示例**: - -```ts -var upperLimit = 0; - -abilityManager.getExtensionRunningInfos(upperLimit).then((data) => { - console.log("getAbilityRunningInfos data: " + JSON.stringify(data)); -}).catch((err) => { - console.log("getAbilityRunningInfos err: " + err); -}) -``` - -## getTopAbility9+ - -getTopAbility(callback: AsyncCallback\): void; - -获取窗口焦点的ability接口(callback形式)。 - -**系统能力**:以下各项对应的系统能力均为SystemCapability.Ability.AbilityRuntime.Core - -**参数**: - -| 参数名 | 类型 | 必填 | 说明 | -| --------- | ---------------------------------------- | ---- | -------------- | -| callback | AsyncCallback\<[ElementName](js-apis-bundleManager-elementName.md)> | 是 | 被指定的回调方法。 | - -**示例**: - -```ts -abilityManager.getTopAbility((err,data) => { - console.log("getTopAbility err: " + err + " data: " + JSON.stringify(data)); -}); -``` - -## getTopAbility9+ - -getTopAbility(): Promise\; - -获取窗口焦点的ability接口(Promise形式)。 - -**系统能力**:以下各项对应的系统能力均为SystemCapability.Ability.AbilityRuntime.Core - -**返回值:** - -| 类型 | 说明 | -| ---------------------------------------- | ------- | -| Promise\<[ElementName](js-apis-bundleManager-elementName.md)>| 返回执行结果。 | - -**示例**: - -```ts -abilityManager.getTopAbility().then((data) => { - console.log("getTopAbility data: " + JSON.stringify(data)); -}).catch((err) => { - console.log("getTopAbility err: " + err); -}) ``` \ No newline at end of file diff --git a/zh-cn/application-dev/reference/apis/js-apis-application-abilityStage.md b/zh-cn/application-dev/reference/apis/js-apis-application-abilityStage.md deleted file mode 100644 index 4717cc9388c56c7d4eeede9bbf0cdb2fdcf4fc7c..0000000000000000000000000000000000000000 --- a/zh-cn/application-dev/reference/apis/js-apis-application-abilityStage.md +++ /dev/null @@ -1,127 +0,0 @@ -# @ohos.application.AbilityStage (AbilityStage) - -AbilityStage是HAP的运行时类。 - -AbilityStage模块提供在HAP加载的时候,通知开发者,可以在此进行该HAP的初始化(如资源预加载,线程创建等)能力。 - -> **说明:** -> -> 本模块首批接口从API version 9 开始支持, 从API version 9废弃,替换模块为[@ohos.app.ability.AbilityStage](js-apis-app-ability-abilityStage.md)。后续版本的新增接口,采用上角标单独标记接口的起始版本。 -> 本模块接口仅可在Stage模型下使用。 - -## 导入模块 - -```ts -import AbilityStage from '@ohos.application.AbilityStage'; -``` - -## AbilityStage.onCreate - -onCreate(): void - -当应用创建时调用。 - -**系统能力**:SystemCapability.Ability.AbilityRuntime.Core - -**示例:** - - ```ts - class MyAbilityStage extends AbilityStage { - onCreate() { - console.log("MyAbilityStage.onCreate is called") - } - } - ``` - - -## AbilityStage.onAcceptWant - -onAcceptWant(want: Want): string; - -启动一个specified ability时触发的事件。 - -**系统能力**:SystemCapability.Ability.AbilityRuntime.Core - -**参数:** - -| 参数名 | 类型 | 必填 | 说明 | -| -------- | -------- | -------- | -------- | -| want | [Want](js-apis-application-want.md) | 是 | Want类型参数,传入需要启动的UIAbility的信息,如Ability名称,Bundle名称等。 | - -**返回值:** - -| 类型 | 说明 | -| -------- | -------- | -| string | 用户返回一个UIAbility标识,如果之前启动过标识的UIAbility实例,不创建新的实例并拉回栈顶,否则创建新的实例并启动。 | - -**示例:** - - ```ts - class MyAbilityStage extends AbilityStage { - onAcceptWant(want) { - console.log("MyAbilityStage.onAcceptWant called"); - return "com.example.test"; - } - } - ``` - - -## AbilityStage.onConfigurationUpdated - -onConfigurationUpdated(config: Configuration): void; - -环境变化通知接口,发生全局配置变更时回调。 - -**系统能力**:SystemCapability.Ability.AbilityRuntime.Core - -**参数:** - -| 参数名 | 类型 | 必填 | 说明 | -| -------- | -------- | -------- | -------- | -| config | [Configuration](js-apis-application-configuration.md) | 是 | 发生全局配置变更时触发回调,当前全局配置包括系统语言、深浅色模式。 | - -**示例:** - - ```ts - class MyAbilityStage extends AbilityStage { - onConfigurationUpdated(config) { - console.log('onConfigurationUpdated, language:' + config.language); - } - } - ``` - -## AbilityStage.onMemoryLevel - -onMemoryLevel(level: AbilityConstant.MemoryLevel): void; - -当系统已决定调整内存时调用。例如,当该功能在后台运行时,没有足够的内存来运行尽可能多的后台进程时可以使用。 - -**系统能力**:SystemCapability.Ability.AbilityRuntime.AbilityCore - -**参数:** - -| 参数名 | 类型 | 必填 | 说明 | -| -------- | -------- | -------- | -------- | -| level | [AbilityConstant.MemoryLevel](js-apis-application-abilityConstant.md#abilityconstantmemorylevel) | 是 | 回调返回内存微调级别,显示当前内存使用状态。| - -**示例:** - - ```ts - class MyAbilityStage extends AbilityStage { - onMemoryLevel(level) { - console.log('onMemoryLevel, level:' + JSON.stringify(level)); - } - } - ``` - -## AbilityStage.context - -context: AbilityStageContext; - -AbilityStage的上下文对象。 - -**系统能力**:SystemCapability.Ability.AbilityRuntime.Core - -| 属性名 | 类型 | 说明 | -| ------- | ------------------------------------------------------------ | -------------------------- | -| context | [AbilityStageContext](js-apis-inner-application-abilityStageContext.md) | AbilityStage的上下文对象。 | diff --git a/zh-cn/application-dev/reference/apis/js-apis-application-appManager.md b/zh-cn/application-dev/reference/apis/js-apis-application-appManager.md index a39b42400e04f0db7f070bcdc9a5208ef4701211..a25e60f928746f38fd5213260d49b029c5a2e9c8 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-application-appManager.md +++ b/zh-cn/application-dev/reference/apis/js-apis-application-appManager.md @@ -30,7 +30,7 @@ static isRunningInStabilityTest(callback: AsyncCallback<boolean>): void ```ts appManager.isRunningInStabilityTest((err, flag) => { - console.log('error:' + JSON.stringfy(err)); + console.log('error:' + JSON.stringify(err)); console.log('The result of isRunningInStabilityTest is:' + JSON.stringify(flag)); }) ``` @@ -120,7 +120,7 @@ getAppMemorySize(): Promise\; | 类型 | 说明 | | -------- | -------- | - | Promise<number> | 应用程序内存大小。 | + | Promise<number> | 应用程序内存大小, 单位为M。 | **示例:** @@ -144,7 +144,7 @@ getAppMemorySize(callback: AsyncCallback\): void; | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | - | callback | AsyncCallback<number> | 是 | 应用程序内存大小。 | + | callback | AsyncCallback<number> | 是 | 应用程序内存大小, 单位为M。 | **示例:** @@ -160,7 +160,7 @@ getProcessRunningInfos(): Promise\>; 获取有关运行进程的信息。 -> 从 API Version 9 开始废弃,建议使用[appManager.getProcessRunningInformation9+](#appmanagergetprocessrunninginformation9)替代。 +> 从 API Version 9 开始废弃,建议使用[appManager.getProcessRunningInformation9+](js-apis-app-ability-appManager.md#appmanagergetprocessrunninginformation9)替代。 **需要权限**:ohos.permission.GET_RUNNING_INFO @@ -188,7 +188,7 @@ getProcessRunningInfos(callback: AsyncCallback\>): vo 获取有关运行进程的信息。 -> 从 API Version 9 开始废弃,建议使用[appManager.getProcessRunningInformation9+](#appmanagergetprocessrunninginformation9-1)替代。 +> 从 API Version 9 开始废弃,建议使用[appManager.getProcessRunningInformation9+](js-apis-app-ability-appManager.md#appmanagergetprocessrunninginformation9-1)替代。 **需要权限**:ohos.permission.GET_RUNNING_INFO @@ -209,142 +209,6 @@ getProcessRunningInfos(callback: AsyncCallback\>): vo }) ``` -## appManager.getProcessRunningInformation9+ - -getProcessRunningInformation(): Promise\>; - -获取有关运行进程的信息。 - -**需要权限**:ohos.permission.GET_RUNNING_INFO - -**系统能力**:SystemCapability.Ability.AbilityRuntime.Core - -**返回值:** - -| 类型 | 说明 | -| -------- | -------- | -| Promise\> | 获取有关运行进程的信息。 | - -**示例:** - - ```ts - appManager.getProcessRunningInformation().then((data) => { - console.log('The process running info is:' + JSON.stringify(data)); - }).catch((error) => { - console.log('error:' + JSON.stringify(error)); - }); - ``` - -## appManager.getProcessRunningInformation9+ - -getProcessRunningInformation(callback: AsyncCallback\>): void; - -获取有关运行进程的信息。 - -**需要权限**:ohos.permission.GET_RUNNING_INFO - -**系统能力**:SystemCapability.Ability.AbilityRuntime.Core - -**参数:** - -| 参数名 | 类型 | 必填 | 说明 | -| -------- | -------- | -------- | -------- | -| callback | AsyncCallback\> | 是 | 获取有关运行进程的信息。 | - -**示例:** - - ```ts - appManager.getProcessRunningInformation((err, data) => { - console.log('error:' + JSON.stringify(err)); - console.log('The process running info is:' + JSON.stringify(data)); - }) - ``` - -## appManager.registerApplicationStateObserver8+ - -registerApplicationStateObserver(observer: ApplicationStateObserver): number; - -注册全部应用程序状态观测器。 - -**需要权限**:ohos.permission.RUNNING_STATE_OBSERVER - -**系统能力**:SystemCapability.Ability.AbilityRuntime.Core - -**系统API**:该接口为系统接口,三方应用不支持调用。 - -**参数:** - -| 参数名 | 类型 | 必填 | 说明 | -| -------- | -------- | -------- | -------- | -| observer | [ApplicationStateObserver](js-apis-inner-application-applicationStateObserver.md) | 是 | 返回观察者的数字代码。 | - -**示例:** - - ```ts - var applicationStateObserver = { - onForegroundApplicationChanged(appStateData) { - console.log('------------ onForegroundApplicationChanged -----------', appStateData); - }, - onAbilityStateChanged(abilityStateData) { - console.log('------------ onAbilityStateChanged -----------', abilityStateData); - }, - onProcessCreated(processData) { - console.log('------------ onProcessCreated -----------', processData); - }, - onProcessDied(processData) { - console.log('------------ onProcessDied -----------', processData); - }, - onProcessStateChanged(processData) { - console.log('------------ onProcessStateChanged -----------', processData); - } - } - const observerCode = appManager.registerApplicationStateObserver(applicationStateObserver); - console.log('-------- observerCode: ---------', observerCode); - ``` - -## appManager.registerApplicationStateObserver9+ - -registerApplicationStateObserver(observer: ApplicationStateObserver, bundleNameList: Array\): number; - -注册指定应用程序状态观测器。 - -**需要权限**:ohos.permission.RUNNING_STATE_OBSERVER - -**系统能力**:SystemCapability.Ability.AbilityRuntime.Core - -**系统API**:该接口为系统接口,三方应用不支持调用。 - -**参数:** - -| 参数名 | 类型 | 必填 | 说明 | -| -------- | -------- | -------- | -------- | -| observer | [ApplicationStateObserver](js-apis-inner-application-applicationStateObserver.md) | 是 | 返回观察者的数字代码。 | -| bundleNameList | Array | 是 | 表示需要注册监听的bundleName数组。最大值128。 | - -**示例:** - - ```ts - var applicationStateObserver = { - onForegroundApplicationChanged(appStateData) { - console.log('------------ onForegroundApplicationChanged -----------', appStateData); - }, - onAbilityStateChanged(abilityStateData) { - console.log('------------ onAbilityStateChanged -----------', abilityStateData); - }, - onProcessCreated(processData) { - console.log('------------ onProcessCreated -----------', processData); - }, - onProcessDied(processData) { - console.log('------------ onProcessDied -----------', processData); - }, - onProcessStateChanged(processData) { - console.log('------------ onProcessStateChanged -----------', processData); - } - } - var bundleNameList = ['bundleName1', 'bundleName2']; - const observerCode = appManager.registerApplicationStateObserver(applicationStateObserver, bundleNameList); - console.log('-------- observerCode: ---------', observerCode); - ``` ## appManager.unregisterApplicationStateObserver8+ unregisterApplicationStateObserver(observerId: number, callback: AsyncCallback\): void; @@ -367,7 +231,7 @@ unregisterApplicationStateObserver(observerId: number, callback: AsyncCallback\ **示例:** ```ts - var observerId = 100; + let observerId = 100; function unregisterApplicationStateObserverCallback(err) { if (err) { @@ -404,7 +268,7 @@ unregisterApplicationStateObserver(observerId: number): Promise\; **示例:** ```ts - var observerId = 100; + let observerId = 100; appManager.unregisterApplicationStateObserver(observerId) .then((data) => { @@ -498,8 +362,8 @@ killProcessWithAccount(bundleName: string, accountId: number): Promise\ **示例:** ```ts -var bundleName = 'bundleName'; -var accountId = 0; +let bundleName = 'bundleName'; +let accountId = 0; appManager.killProcessWithAccount(bundleName, accountId) .then((data) => { console.log('------------ killProcessWithAccount success ------------', data); @@ -533,8 +397,8 @@ killProcessWithAccount(bundleName: string, accountId: number, callback: AsyncCal **示例:** ```ts -var bundleName = 'bundleName'; -var accountId = 0; +let bundleName = 'bundleName'; +let accountId = 0; function killProcessWithAccountCallback(err, data) { if (err) { console.log('------------- killProcessWithAccountCallback fail, err: --------------', err); @@ -567,7 +431,7 @@ killProcessesByBundleName(bundleName: string, callback: AsyncCallback\); **示例:** ```ts - var bundleName = 'bundleName'; + let bundleName = 'bundleName'; function killProcessesByBundleNameCallback(err, data) { if (err) { console.log('------------- killProcessesByBundleNameCallback fail, err: --------------', err); @@ -605,7 +469,7 @@ killProcessesByBundleName(bundleName: string): Promise\; **示例:** ```ts - var bundleName = 'com.example.myapplication'; + let bundleName = 'com.example.myapplication'; appManager.killProcessesByBundleName(bundleName) .then((data) => { console.log('------------ killProcessesByBundleName success ------------', data); @@ -637,7 +501,7 @@ clearUpApplicationData(bundleName: string, callback: AsyncCallback\); **示例:** ```ts - var bundleName = 'bundleName'; + let bundleName = 'bundleName'; function clearUpApplicationDataCallback(err, data) { if (err) { console.log('------------- clearUpApplicationDataCallback fail, err: --------------', err); @@ -675,7 +539,7 @@ clearUpApplicationData(bundleName: string): Promise\; **示例:** ```ts - var bundleName = 'bundleName'; + let bundleName = 'bundleName'; appManager.clearUpApplicationData(bundleName) .then((data) => { console.log('------------ clearUpApplicationData success ------------', data); @@ -683,32 +547,4 @@ clearUpApplicationData(bundleName: string): Promise\; .catch((err) => { console.log('------------ clearUpApplicationData fail ------------', err); }) - ``` - -## ApplicationState9+ - -**系统能力**:SystemCapability.Ability.AbilityRuntime.Core - -**系统API**: 此接口为系统接口,三方应用不支持调用。 - -| 名称 | 值 | 说明 | -| -------------------- | --- | --------------------------------- | -| STATE_CREATE | 1 | 当应用在创建中的时候处于的状态。 | -| STATE_FOREGROUND | 2 | 当应用切换到前台的时候处于的状态。 | -| STATE_ACTIVE | 3 | 当应用在获焦的时候处于的状态。 | -| STATE_BACKGROUND | 4 | 当应用处于后台不可见时处于的状态。 | -| STATE_DESTROY | 5 | 当应用在销毁的时候处于的状态。 | - -## ProcessState9+ - -**系统能力**:SystemCapability.Ability.AbilityRuntime.Core - -**系统API**: 此接口为系统接口,三方应用不支持调用。 - -| 名称 | 值 | 说明 | -| -------------------- | --- | --------------------------------- | -| STATE_CREATE | 1 | 当进程在创建中的时候处于的状态。 | -| STATE_FOREGROUND | 2 | 当进程切换到前台的时候处于的状态。 | -| STATE_ACTIVE | 3 | 当进程在获焦的时候处于的状态。 | -| STATE_BACKGROUND | 4 | 当进程处于后台不可见时处于的状态。 | -| STATE_DESTROY | 5 | 当进程在销毁的时候处于的状态。 | \ No newline at end of file + ``` \ No newline at end of file diff --git a/zh-cn/application-dev/reference/apis/js-apis-application-configuration.md b/zh-cn/application-dev/reference/apis/js-apis-application-configuration.md index 3c845b46dec3e12eff340ca44185e2faf116bb58..bb877521aa7fa69441f96bc126607986bd4772bc 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-application-configuration.md +++ b/zh-cn/application-dev/reference/apis/js-apis-application-configuration.md @@ -1,27 +1,17 @@ # @ohos.application.Configuration (Configuration) -定义环境变化信息。 +定义环境变化信息。Configuration是接口定义,仅做字段声明。 > **说明:** > 本模块首批接口从API version 8开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 > 本模块从API version 9废弃,替换模块为[@ohos.app.ability.Configuration (Configuration)](js-apis-app-ability-configuration.md) -## 导入模块 - -```ts -import Configuration from '@ohos.application.Configuration' -``` - **系统能力**:以下各项对应的系统能力均为SystemCapability.Ability.AbilityBase | 名称 | 类型 | 可读 | 可写 | 说明 | | -------- | -------- | -------- | -------- | -------- | | language8+ | string | 是 | 是 | 表示应用程序的当前语言。例如:zh。 | | colorMode8+ | [ColorMode](js-apis-application-configurationConstant.md#configurationconstantcolormode) | 是 | 是 | 表示深浅色模式,取值范围:浅色模式(COLOR_MODE_LIGHT),深色模式(COLOR_MODE_DARK)。默认为浅色。 | -| direction9+ | [Direction](js-apis-application-configurationConstant.md#configurationconstantdirection9) | 是 | 否 | 表示屏幕方向,取值范围:水平方向(DIRECTION_HORIZONTAL),垂直方向(DIRECTION_VERTICAL)。 | -| screenDensity9+ | [ScreenDensity](js-apis-application-configurationConstant.md#configurationconstantscreendensity9) | 是 | 否 | 表示屏幕分辨率,取值范围:SCREEN_DENSITY_SDPI(120)、SCREEN_DENSITY_MDPI(160)、SCREEN_DENSITY_LDPI(240)、SCREEN_DENSITY_XLDPI(320)、SCREEN_DENSITY_XXLDPI(480)、SCREEN_DENSITY_XXXLDPI(640)。 | -| displayId9+ | number | 是 | 否 | 表示应用所在的物理屏幕Id。 | -| hasPointerDevice9+ | boolean | 是 | 否 | 指示指针类型设备是否已连接,如键鼠、触控板等。 | 具体字段描述参考ohos.application.Configuration.d.ts文件 @@ -44,10 +34,6 @@ export default class EntryAbility extends UIAbility { console.info(`envCallback onConfigurationUpdated success: ${JSON.stringify(config)}`) let language = config.language; let colorMode = config.colorMode; - let direction = config.direction; - let screenDensity = config.screenDensity; - let displayId = config.displayId; - let hasPointerDevice = config.hasPointerDevice; } }; diff --git a/zh-cn/application-dev/reference/apis/js-apis-application-configurationConstant.md b/zh-cn/application-dev/reference/apis/js-apis-application-configurationConstant.md index f7908e521cbbe805352a7c305f00340ce8e9be20..43c5dd975a8ccf19622bfae531774001f2199f0e 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-application-configurationConstant.md +++ b/zh-cn/application-dev/reference/apis/js-apis-application-configurationConstant.md @@ -24,32 +24,3 @@ import ConfigurationConstant from '@ohos.application.ConfigurationConstant'; | COLOR_MODE_DARK | 0 | 深色模式。 | | COLOR_MODE_LIGHT | 1 | 浅色模式。 | - -## ConfigurationConstant.Direction9+ - -使用时通过ConfigurationConstant.Direction获取。 - -**系统能力**:以下各项对应的系统能力均为SystemCapability.Ability.AbilityBase - -| 名称 | 值 | 说明 | -| -------- | -------- | -------- | -| DIRECTION_NOT_SET | -1 | 未设置方向。 | -| DIRECTION_VERTICAL | 0 | 垂直方向。 | -| DIRECTION_HORIZONTAL | 1 | 水平方向。 | - - -## ConfigurationConstant.ScreenDensity9+ - -使用时通过ConfigurationConstant.ScreenDensity获取。 - -**系统能力**:以下各项对应的系统能力均为SystemCapability.Ability.AbilityBase - -| 名称 | 值 | 说明 | -| -------- | -------- | -------- | -| SCREEN_DENSITY_NOT_SET | 0 | 未设置屏幕分辨率。 | -| SCREEN_DENSITY_SDPI | 120 | 屏幕分辨率为"sdpi"。 | -| SCREEN_DENSITY_MDPI | 160 | 屏幕分辨率为"mdpi"。 | -| SCREEN_DENSITY_LDPI | 240 | 屏幕分辨率为"ldpi"。 | -| SCREEN_DENSITY_XLDPI | 320 | 屏幕分辨率为"xldpi"。 | -| SCREEN_DENSITY_XXLDPI | 480 | 屏幕分辨率为"xxldpi"。 | -| SCREEN_DENSITY_XXXLDPI | 640 | 屏幕分辨率为"xxxldpi"。 | diff --git a/zh-cn/application-dev/reference/apis/js-apis-application-context.md b/zh-cn/application-dev/reference/apis/js-apis-application-context.md deleted file mode 100644 index c5253ad01b9b50bff483ae8f0ab7e7234f43dfd0..0000000000000000000000000000000000000000 --- a/zh-cn/application-dev/reference/apis/js-apis-application-context.md +++ /dev/null @@ -1,41 +0,0 @@ -# @ohos.application.context (Context) - -Context模块将二级模块API组织在一起方便开发者进行导出。 - -> **说明:** -> -> 本模块首批接口从API version 9开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 -> 本模块接口仅可在Stage模型下使用 - -## 导入模块 - -```ts -import context from '@ohos.application.context' -``` - -**系统能力**:以下各项对应的系统能力均为SystemCapability.Ability.AbilityBase - -| 名称 | 读写属性 | 类型 | 必填 | 描述 | -| ----------- | -------- | -------------------- | ---- | ------------------------------------------------------------ | -| AbilityContext | 只读 | [AbilityContext](js-apis-ability-context.md) | 否 | AbilityContext二级模块。 | -| AbilityStageContext | 只读 | [AbilityStageContext](js-apis-inner-application-abilityStageContext.md) | 否 | AbilityStageContext二级模块。 | -| ApplicationContext | 只读 | [ApplicationContext](js-apis-inner-application-applicationContext.md) | 否 | ApplicationContext二级模块。 | -| BaseContext | 只读 | [BaseContext](js-apis-inner-application-baseContext.md) | 否 | BaseContext二级模块。 | -| Context | 只读 | [Context](js-apis-inner-application-context.md) | 否 | Context二级模块。 | -| ExtensionContext | 只读 | [ExtensionContext](js-apis-inner-application-extensionContext.md) | 否 | ExtensionContext二级模块。 | -| FormExtensionContext | 只读 | [FormExtensionContext](js-apis-inner-application-formExtensionContext.md) | 否 | FormExtensionContext二级模块。 | -| EventHub | 只读 | [EventHub](js-apis-inner-application-eventHub.md) | 否 | EventHub二级模块。 | -| PermissionRequestResult | 只读 | [PermissionRequestResult](js-apis-inner-application-permissionRequestResult.md) | 否 | PermissionRequestResult二级模块。 | - -**示例:** -```ts -let abilityContext: context.AbilityContext; -let abilityStageContext: context.AbilityStageContext; -let applicationContext: context.ApplicationContext; -let baseContext: context.BaseContext; -let context: context.Context; -let extensionContext: context.ExtensionContext; -let formExtensionContext: context.FormExtensionContext; -let eventHub: context.EventHub; -let permissionRequestResult: context.PermissionRequestResult; -``` \ No newline at end of file diff --git a/zh-cn/application-dev/reference/apis/js-apis-application-environmentCallback.md b/zh-cn/application-dev/reference/apis/js-apis-application-environmentCallback.md index d64165b09cd34581f2caed1e833b5aba949e99e5..c9880f1d89270accc880e4d6289c657867530e77 100755 --- a/zh-cn/application-dev/reference/apis/js-apis-application-environmentCallback.md +++ b/zh-cn/application-dev/reference/apis/js-apis-application-environmentCallback.md @@ -41,14 +41,14 @@ onMemoryLevel(level: number): void; | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | - | level | [MemoryLevel](js-apis-application-abilityConstant.md#abilityconstantmemorylevel) | 是 | 表示当前内存的基线水平。 | + | level | [MemoryLevel](js-apis-app-ability-abilityConstant.md#abilityconstantmemorylevel) | 是 | 表示当前内存的基线水平。 | **示例:** ```ts import UIAbility from '@ohos.app.ability.UIAbility'; -var callbackId; +let callbackId; export default class EntryAbility extends UIAbility { onCreate() { diff --git a/zh-cn/application-dev/reference/apis/js-apis-application-errorManager.md b/zh-cn/application-dev/reference/apis/js-apis-application-errorManager.md index b3f85620f65ef55dc1da14fe22c6042239ef1566..c769608e6b208cfb117d783e451c2c6523bac08c 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-application-errorManager.md +++ b/zh-cn/application-dev/reference/apis/js-apis-application-errorManager.md @@ -28,7 +28,7 @@ registerErrorObserver(observer: ErrorObserver): number; **示例:** ```ts -var observer = { +let observer = { onUnhandledException(errorMsg) { console.log('onUnhandledException, errorMsg: ', errorMsg) } @@ -54,7 +54,7 @@ unregisterErrorObserver(observerId: number, callback: AsyncCallback\): vo **示例:** ```ts -var observerId = 100; +let observerId = 100; function unregisterErrorObserverCallback(err) { if (err) { @@ -88,7 +88,7 @@ unregisterErrorObserver(observerId: number): Promise\; **示例:** ```ts -var observerId = 100; +let observerId = 100; errorManager.unregisterErrorObserver(observerId) .then((data) => { console.log('----------- unregisterErrorObserver success ----------', data); diff --git a/zh-cn/application-dev/reference/apis/js-apis-application-extensionAbility.md b/zh-cn/application-dev/reference/apis/js-apis-application-extensionAbility.md deleted file mode 100644 index 807159d2145c83f533e8ea242820088d352f75ef..0000000000000000000000000000000000000000 --- a/zh-cn/application-dev/reference/apis/js-apis-application-extensionAbility.md +++ /dev/null @@ -1,62 +0,0 @@ -# @ohos.application.ExtensionAbility (ExtensionAbility) - -ExtensionAbility模块提供对ExtensionAbility生命周期、上下文环境等调用管理的能力,包括ExtensionAbility创建、销毁、转储客户端信息等。 - -> **说明:** -> -> 本模块首批接口从API version 9 开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 -> 本模块接口仅可在Stage模型下使用。 - -## 导入模块 - -```ts -import ExtensionAbility from '@ohos.application.ExtensionAbility'; -``` - -## ExtensionAbility.onConfigurationUpdated - -onConfigurationUpdated(newConfig: Configuration): void; - -当系统配置更新时调用。 - -**系统能力**:SystemCapability.Ability.AbilityRuntime.Core - -**参数:** - - | 参数名 | 类型 | 必填 | 说明 | - | -------- | -------- | -------- | -------- | - | newConfig | [Configuration](js-apis-application-configuration.md) | 是 | 表示需要更新的配置信息。 | - -**示例:** - - ```ts - class MyExtensionAbility extends ExtensionAbility { - onConfigurationUpdated(config) { - console.log('onConfigurationUpdated, config:' + JSON.stringify(config)); - } - } - ``` - -## ExtensionAbility.onMemoryLevel - -onMemoryLevel(level: AbilityConstant.MemoryLevel): void; - -当系统已决定调整内存时调用。例如,当该功能在后台运行时,没有足够的内存来运行尽可能多的后台进程时可以使用。 - -**系统能力**:SystemCapability.Ability.AbilityRuntime.AbilityCore - -**参数:** - - | 参数名 | 类型 | 必填 | 说明 | - | -------- | -------- | -------- | -------- | - | level | [AbilityConstant.MemoryLevel](js-apis-application-abilityConstant.md#abilityconstantmemorylevel) | 是 | 回调返回内存微调级别,显示当前内存使用状态。| - -**示例:** - - ```ts - class MyExtensionAbility extends ExtensionAbility { - onMemoryLevel(level) { - console.log('onMemoryLevel, level:' + JSON.stringify(level)); - } - } - ``` \ No newline at end of file diff --git a/zh-cn/application-dev/reference/apis/js-apis-application-formBindingData.md b/zh-cn/application-dev/reference/apis/js-apis-application-formBindingData.md index 78f507d1bc172f864f28c6ea597d3e99ca6939f8..efe8b66391532656d4eb094b8c56cb7cafa14f4d 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-application-formBindingData.md +++ b/zh-cn/application-dev/reference/apis/js-apis-application-formBindingData.md @@ -58,7 +58,7 @@ try { "formImages": { "image": fd } }; formBindingData.createFormBindingData(obj); -} catch (error.code) { +} catch (error) { console.log('catch error, error:' + JSON.stringify(error)); } ``` diff --git a/zh-cn/application-dev/reference/apis/js-apis-application-formExtension.md b/zh-cn/application-dev/reference/apis/js-apis-application-formExtension.md deleted file mode 100644 index 741a99c544f9beaab9111eb5de9813e70645370d..0000000000000000000000000000000000000000 --- a/zh-cn/application-dev/reference/apis/js-apis-application-formExtension.md +++ /dev/null @@ -1,284 +0,0 @@ -# @ohos.application.FormExtension (FormExtension) - -FormExtension模块提供了FormExtension卡片扩展相关接口。 - -> **说明:** -> -> 本模块首批接口从API version 9开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 -> 从API version 9 开始不再维护,建议使用[FormExtensionAbility](js-apis-app-form-formExtensionAbility.md)替代。 -> 本模块接口仅可在Stage模型下使用。 - -## 导入模块 - -```ts -import FormExtension from '@ohos.application.FormExtension'; -``` - -## 属性 - -**系统能力**:SystemCapability.Ability.Form - -| 名称 | 类型 | 可读 | 可写 | 说明 | -| ------- | ------------------------------------------------------- | ---- | ---- | --------------------------------------------------- | -| context | [FormExtensionContext](js-apis-inner-application-formExtensionContext.md) | 是 | 否 | FormExtension的上下文环境,继承自ExtensionContext。 | - -## onCreate - -onCreate(want: Want): formBindingData.FormBindingData - -卡片提供方接收创建卡片的通知接口。 - -**系统能力**:SystemCapability.Ability.Form - -**参数:** - -| 参数名 | 类型 | 必填 | 说明 | -| ------ | -------------------------------------- | ---- | ------------------------------------------------------------ | -| want | [Want](js-apis-application-want.md) | 是 | 当前Extension相关的Want类型信息,包括卡片ID、卡片名称、卡片样式等。这些卡片信息必须作为持久数据进行管理,以便后续更新和删除卡片。 | - -**返回值:** - -| 类型 | 说明 | -| ------------------------------------------------------------ | ----------------------------------------------------------- | -| [formBindingData.FormBindingData](js-apis-application-formBindingData.md#formbindingdata) | formBindingData.FormBindingData对象,卡片要显示的数据。 | - -**示例:** - -```ts -import formBindingData from '@ohos.application.formBindingData' -export default class MyFormExtension extends FormExtension { - onCreate(want) { - console.log('FormExtension onCreate, want:' + want.abilityName); - let dataObj1 = { - temperature:"11c", - "time":"11:00" - }; - let obj1 = formBindingData.createFormBindingData(dataObj1); - return obj1; - } -} -``` - -## FormExtension.onCastToNormal - -onCastToNormal(formId: string): void - -卡片提供方接收临时卡片转常态卡片的通知接口。 - -**系统能力**:SystemCapability.Ability.Form - -**参数:** - -| 参数名 | 类型 | 必填 | 说明 | -| ------ | ------ | ---- | ------------------------ | -| formId | string | 是 | 请求转换为常态的卡片标识。 | - -**示例:** - -```ts -export default class MyFormExtension extends FormExtension { - onCastToNormal(formId) { - console.log('FormExtension onCastToNormal, formId:' + formId); - } -} -``` - -## FormExtension.onUpdate - -onUpdate(formId: string): void - -卡片提供方接收更新卡片的通知接口。获取最新数据后调用[FormExtensionContext](js-apis-inner-application-formExtensionContext.md)的updateForm接口刷新卡片数据。 - -**系统能力**:SystemCapability.Ability.Form - -**参数:** - -| 参数名 | 类型 | 必填 | 说明 | -| ------ | ------ | ---- | ------------------ | -| formId | string | 是 | 请求更新的卡片ID。 | - -**示例:** - -```ts -import formBindingData from '@ohos.application.formBindingData' -export default class MyFormExtension extends FormExtension { - onUpdate(formId) { - console.log('FormExtension onUpdate, formId:' + formId); - let obj2 = formBindingData.createFormBindingData({temperature:"22c", time:"22:00"}); - this.context.updateForm(formId, obj2).then((data)=>{ - console.log('FormExtension context updateForm, data:' + data); - }).catch((error) => { - console.error('Operation updateForm failed. Cause: ' + error);}); - } -} -``` - -## FormExtension.onVisibilityChange - -onVisibilityChange(newStatus: { [key: string]: number }): void - -卡片提供方接收修改可见性的通知接口。 - -**系统能力**:SystemCapability.Ability.Form - -**参数:** - -| 参数名 | 类型 | 必填 | 说明 | -| --------- | ------------------------- | ---- | ---------------------------- | -| newStatus | { [key: string]: number } | 是 | 请求修改的卡片ID和可见状态。 | - -**示例:** - -```ts -import formBindingData from '@ohos.application.formBindingData' -export default class MyFormExtension extends FormExtension { - onVisibilityChange(newStatus) { - console.log('FormExtension onVisibilityChange, newStatus:' + newStatus); - let obj2 = formBindingData.createFormBindingData({temperature:"22c", time:"22:00"}); - - for (let key in newStatus) { - console.log('FormExtension onVisibilityChange, key:' + key + ", value=" + newStatus[key]); - this.context.updateForm(key, obj2).then((data)=>{ - console.log('FormExtension context updateForm, data:' + data); - }).catch((error) => { - console.error('Operation updateForm failed. Cause: ' + error);}); - } - } -} -``` - -## FormExtension.onEvent - -onEvent(formId: string, message: string): void - -卡片提供方接收处理卡片事件的通知接口。 - -**系统能力**:SystemCapability.Ability.Form - -**参数:** - -| 参数名 | 类型 | 必填 | 说明 | -| ------- | ------ | ---- | ---------------------- | -| formId | string | 是 | 请求触发事件的卡片标识。 | -| message | string | 是 | 事件消息。 | - -**示例:** - -```ts -export default class MyFormExtension extends FormExtension { - onEvent(formId, message) { - console.log('FormExtension onEvent, formId:' + formId + ", message:" + message); - } -} -``` - -## FormExtension.onDestroy - -onDestroy(formId: string): void - -卡片提供方接收销毁卡片的通知接口。 - -**系统能力**:SystemCapability.Ability.Form - -**参数:** - -| 参数名 | 类型 | 必填 | 说明 | -| ------ | ------ | ---- | ------------------ | -| formId | string | 是 | 请求销毁的卡片标识。 | - -**示例:** - -```ts -export default class MyFormExtension extends FormExtension { - onDestroy(formId) { - console.log('FormExtension onDestroy, formId:' + formId); - } -} -``` - -## FormExtension.onConfigurationUpdated - -onConfigurationUpdated(config: Configuration): void; - -当系统配置更新时调用。 - -**系统能力**:SystemCapability.Ability.Form - -**参数:** - -| 参数名 | 类型 | 必填 | 说明 | -| -------- | -------- | -------- | -------- | -| config | [Configuration](js-apis-application-configuration.md) | 是 | 表示需要更新的配置信息。 | - -**示例:** - -```ts -class MyFormExtension extends FormExtension { - onConfigurationUpdated(config) { - console.log('onConfigurationUpdated, config:' + JSON.stringify(config)); - } -} -``` - -## FormExtension.onAcquireFormState - -onAcquireFormState?(want: Want): formInfo.FormState; - -卡片提供方接收查询卡片状态通知接口。默认返回卡片初始状态。 - -**系统能力**:SystemCapability.Ability.Form - -**参数:** - -| 参数名 | 类型 | 必填 | 说明 | -| -------- | -------- | -------- | -------- | -| want | [Want](js-apis-application-want.md) | 是 | want表示获取卡片状态的描述。描述包括Bundle名称、能力名称、模块名称、卡片名和卡片维度。 | - -**示例:** - -```ts -import formInfo from '@ohos.application.formInfo' -class MyFormExtension extends FormExtension { - onAcquireFormState(want) { - console.log('FormExtension onAcquireFormState, want:' + want); - return formInfo.FormState.UNKNOWN; - } -} -``` - -## FormExtension.onShare - -onShare?(formId: string): {[key: string]: any}; - -卡片提供方接收卡片分享的通知接口。 - -**系统接口**: 此接口为系统接口。 - -**系统能力**:SystemCapability.Ability.Form - -**参数:** - -| 参数名 | 类型 | 必填 | 说明 | -| -------- | -------- | -------- | -------- | -| formId | string | 是 | 卡片标识。 | - -**返回值:** - -| 类型 | 说明 | -| ------------------------------------------------------------ | ----------------------------------------------------------- | -| {[key: string]: any} | 卡片要分享的数据,由开发者自行决定传入的键值对。 | - -**示例:** - -```ts -class MyFormExtension extends FormExtension { - onShare(formId) { - console.log('FormExtension onShare, formId:' + formId); - let wantParams = { - "temperature":"20", - "time":"2022-8-8 09:59", - }; - return wantParams; - } -} -``` \ No newline at end of file diff --git a/zh-cn/application-dev/reference/apis/js-apis-application-formHost.md b/zh-cn/application-dev/reference/apis/js-apis-application-formHost.md index 46506dd17acce9b94600f0f24fb34fa827d5a826..83cbfb25fb8f02c191c10c5c6d973467b7488773 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-application-formHost.md +++ b/zh-cn/application-dev/reference/apis/js-apis-application-formHost.md @@ -1117,138 +1117,3 @@ formHost.notifyFormsEnableUpdate(formIds, true).then(() => { console.error('formHost notifyFormsEnableUpdate, error:' + JSON.stringify(error)); }); ``` -## shareForm9+ - -shareForm(formId: string, deviceId: string, callback: AsyncCallback<void>): void - -指定formId和远程设备Id进行卡片分享。使用callback异步回调。 - -**需要权限**:ohos.permission.REQUIRE_FORM 和 ohos.permission.DISTRIBUTED_DATASYNC - -**系统能力**:SystemCapability.Ability.Form - -**参数:** - -| 参数名 | 类型 | 必填 | 说明 | -| ------ | ------ | ---- | ------- | -| formId | string | 是 | 卡片标识。 | -| deviceId | string | 是 | 远程设备标识。 | -| callback | AsyncCallback<void> | 是 | 回调函数。当指定formId和远程设备Id进行卡片分享成功,error为undefined,否则为错误对象。 | - -**示例:** - -```ts -import formHost from '@ohos.application.formHost'; - -let formId = "12400633174999288"; -let deviceId = "EFC11C0C53628D8CC2F8CB5052477E130D075917034613B9884C55CD22B3DEF2"; -formHost.shareForm(formId, deviceId, (error, data) => { - if (error.code) { - console.error('formHost shareForm, error:' + JSON.stringify(error)); - } -}); -``` - -## shareForm9+ - -shareForm(formId: string, deviceId: string): Promise<void> - -指定formId和远程设备Id进行卡片分享。使用Promise异步回调。 - -**需要权限**:ohos.permission.REQUIRE_FORM - -**系统能力**:SystemCapability.Ability.Form - -**参数:** - -| 参数名 | 类型 | 必填 | 说明 | -| ------ | ------ | ---- | ------- | -| formId | string | 是 | 卡片标识。 | -| deviceId | string | 是 | 远程设备标识。 | - -**返回值:** - -| 类型 | 说明 | -| -------- | -------- | -| Promise<void> | 无返回结果的Promise对象。 | - -**参数:** - -```ts -import formHost from '@ohos.application.formHost'; - -let formId = "12400633174999288"; -let deviceId = "EFC11C0C53628D8CC2F8CB5052477E130D075917034613B9884C55CD22B3DEF2"; -formHost.shareForm(formId, deviceId).then(() => { - console.log('formHost shareForm success'); -}).catch((error) => { - console.error('formHost shareForm, error:' + JSON.stringify(error)); -}); -``` - -## notifyFormsPrivacyProtected9+ - -notifyFormsPrivacyProtected(formIds: Array<string>, isProtected: boolean, callback: AsyncCallback<void>): void - -通知指定卡片隐私保护状态改变。使用callback异步回调。 - -**需要权限**:ohos.permission.REQUIRE_FORM - -**系统能力**:SystemCapability.Ability.Form - -**参数:** - -| 参数名 | 类型 | 必填 | 说明 | -| ------ | ------ | ---- | ------- | -| formId | string | 是 | 卡片标识。 | -| deviceId | string | 是 | 远程设备标识。 | - -```ts -import formHost from '@ohos.application.formHost'; - -let formIds = new Array("12400633174999288", "12400633174999289"); -formHost.notifyFormsPrivacyProtected(formIds, true).then(() => { - console.log('formHost shareForm success'); -}).catch((error) => { - console.error('formHost shareForm, error:' + JSON.stringify(error)); -}); -``` - -## notifyFormsPrivacyProtected - -function notifyFormsPrivacyProtected(formIds: Array<string>, isProtected: boolean): Promise<void>; - -通知指定卡片隐私保护状态改变。使用Promise异步回调。 - -**需要权限**:ohos.permission.REQUIRE_FORM - -**系统能力**:SystemCapability.Ability.Form - -**参数:** - -| 参数名 | 类型 | 必填 | 说明 | -| ----------- | --------------- | ---- | -------------------------------- | -| formIds | Array<string> | 是 | 需要修改隐私保护的卡片标识列表。 | -| isProtected | boolean | 是 | 是否进行隐私保护。 | - -**返回值:** - -| 类型 | 说明 | -| ------------------- | ------------------------- | -| Promise<void> | 无返回结果的Promise对象。 | - - -```ts -import formHost from '@ohos.application.formHost'; - -let formIds = new Array("12400633174999288", "12400633174999289"); -try { - formHost.notifyFormsPrivacyProtected(formIds, true).then(() => { - console.log('formHost notifyFormsPrivacyProtected success'); - }).catch((error) => { - console.log('formHost notifyFormsPrivacyProtected, error:' + JSON.stringify(error)); - }); -} catch(error) { - console.log('formHost notifyFormsPrivacyProtected, error:' + JSON.stringify(error)); -} -``` diff --git a/zh-cn/application-dev/reference/apis/js-apis-application-formInfo.md b/zh-cn/application-dev/reference/apis/js-apis-application-formInfo.md index 37b32fbecf14df7d0734b44f31064a47f80c0dd3..5ef129c5b662757befb2de692c8ea5cb053e442a 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-application-formInfo.md +++ b/zh-cn/application-dev/reference/apis/js-apis-application-formInfo.md @@ -49,7 +49,6 @@ import formInfo from '@ohos.application.formInfo'; | 名称 | 值 | 说明 | | ----------- | ---- | ------------ | | JS | 1 | 卡片类型为JS。 | -| eTS9+ | 2 | 卡片类型为eTS。 | ## ColorMode @@ -94,48 +93,11 @@ import formInfo from '@ohos.application.formInfo'; | 名称 | 值 | 说明 | | ----------- | ---- | ------------ | -| IDENTITY_KEY9+ | "ohos.extra.param.key.form_identity" | 卡片标识。
**系统接口**: 此接口为系统接口。 | +| IDENTITY_KEY | "ohos.extra.param.key.form_identity" | 卡片标识。
**系统接口**: 此接口为系统接口。 | | DIMENSION_KEY | "ohos.extra.param.key.form_dimension" | 卡片规格样式。 | | NAME_KEY | "ohos.extra.param.key.form_name" | 卡片名称。 | | MODULE_NAME_KEY | "ohos.extra.param.key.module_name" | 卡片所属模块名称。 | | WIDTH_KEY | "ohos.extra.param.key.form_width" | 卡片宽度。 | | HEIGHT_KEY | "ohos.extra.param.key.form_height" | 卡片高度。 | | TEMPORARY_KEY | "ohos.extra.param.key.form_temporary" | 临时卡片。 | -| ABILITY_NAME_KEY9+ | "ohos.extra.param.key.ability_name" | ability名称。 | -| DEVICE_ID_KEY9+ | "ohos.extra.param.key.device_id" | 设备标识。 | -| BUNDLE_NAME_KEY9+ | "ohos.extra.param.key.bundle_name" | 指示指定要获取的捆绑包名称的键。| -## FormDimension9+ - -定义卡片尺寸枚举。 - -**系统能力**:SystemCapability.Ability.Form - -| 名称 | 值 | 说明 | -| ----------- | ---- | ------------ | -| Dimension_1_2 9+ | 1 | 1 x 2 form。 | -| Dimension_2_2 9+ | 2 | 2 x 2 form。 | -| Dimension_2_4 9+ | 3 | 2 x 4 form。 | -| Dimension_4_4 9+ | 4 | 4 x 4 form。 | -| Dimension_2_1 9+ | 5 | 2 x 1 form。 | - -## FormInfoFilter9+ - -卡片信息过滤器,仅将符合过滤器内要求的卡片信息返回。 - -**系统能力**:SystemCapability.Ability.Form - -| 名称 | 说明 | -| ----------- | ------------ | -| moduleName9+ | 选填。仅保留moduleName与提供值相符的卡片信息。
未填写时则不通过moduleName进行过滤。 | - -## VisibilityType9+ - -卡片当前可见类型枚举。 - -**系统能力**:SystemCapability.Ability.Form - -| 名称 | 值 | 说明 | -| ----------- | ---- | ------------ | -| FORM_VISIBLE9+ | 1 | 表示卡片为可见。 | -| FORM_INVISIBLE9+ | 2 | 表示卡片为不可见。 | \ No newline at end of file diff --git a/zh-cn/application-dev/reference/apis/js-apis-application-formProvider.md b/zh-cn/application-dev/reference/apis/js-apis-application-formProvider.md index 6f78d8cb6fb2b2c16f62c648e1dc5533ae77c2c3..7bb591aef8fcf1a80725ca779c6aa0f976e9e572 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-application-formProvider.md +++ b/zh-cn/application-dev/reference/apis/js-apis-application-formProvider.md @@ -142,307 +142,4 @@ updateForm(formId: string, formBindingData: formBindingData.FormBindingData): Pr }); ``` -## getFormsInfo9+ -getFormsInfo(callback: AsyncCallback<Array<formInfo.FormInfo>>): void - -获取设备上当前应用程序的卡片信息,使用callback异步回调。 - -**系统能力:** SystemCapability.Ability.Form - -**参数:** - -| 参数名 | 类型 | 必填 | 说明 | -| ------ | ------ | ---- | ------- | -| callback | AsyncCallback<Array<[formInfo.FormInfo](./js-apis-application-formInfo.md#forminfo-1)>> | 是 | 回调函数。返回查询到的卡片信息。 | - -**示例:** - -```ts -import formProvider from '@ohos.app.form.formProvider'; - -formProvider.getFormsInfo((error, data) => { - if (error.code) { - console.log('formProvider getFormsInfo, error:' + JSON.stringify(error)); - } else { - console.log('formProvider getFormsInfo, data:' + JSON.stringify(data)); - } -}); -``` -## getFormsInfo9+ - -getFormsInfo(filter: formInfo.FormInfoFilter, callback: AsyncCallback<Array<formInfo.FormInfo>>): void - -获取设备上当前应用程序的卡片信息,并筛选符合条件的信息,使用callback异步回调。 - -**系统能力:** SystemCapability.Ability.Form - -**参数:** - -| 参数名 | 类型 | 必填 | 说明 | -| ------ | ------ | ---- | ------- | -| filter | [formInfo.FormInfoFilter](./js-apis-application-formInfo.md#forminfofilter) | 是 | 卡片信息过滤器。 | -| callback | AsyncCallback<Array<[formInfo.FormInfo](./js-apis-application-formInfo.md#forminfo-1)>> | 是 | 回调函数。返回查询到符合条件的卡片信息。 | - -**示例:** - -```ts -import formInfo from '@ohos.application.formInfo'; -import formProvider from '@ohos.app.form.formProvider'; - -const filter : formInfo.FormInfoFilter = { - // get info of forms belong to module entry. - moduleName : "entry" -}; -formProvider.getFormsInfo(filter, (error, data) => { - if (error.code) { - console.log('formProvider getFormsInfo, error:' + JSON.stringify(error)); - } else { - console.log('formProvider getFormsInfo, data:' + JSON.stringify(data)); - } -}); -``` - -## getFormsInfo9+ - -getFormsInfo(filter?: formInfo.FormInfoFilter): Promise<Array<formInfo.FormInfo>> - -获取设备上当前应用程序的卡片信息,使用Promise异步回调。 - -**系统能力:** SystemCapability.Ability.Form - -**参数:** - -| 参数名 | 类型 | 必填 | 说明 | -| ------ | ------ | ---- | ------- | -| filter | [formInfo.FormInfoFilter](./js-apis-application-formInfo.md) | 否 | 卡片信息过滤器。 | - -**返回值:** - -| 类型 | 说明 | -| :------------ | :---------------------------------- | -| Promise<Array<[formInfo.FormInfo](./js-apis-application-formInfo.md#forminfo-1)>> | Promise对象。返回查询到符合条件的卡片信息。 | - -**示例:** - -```ts -import formInfo from '@ohos.application.formInfo'; -import formProvider from '@ohos.app.form.formProvider'; - -const filter : formInfo.FormInfoFilter = { - // get info of forms belong to module entry. - moduleName : "entry" -}; -formProvider.getFormsInfo(filter).then((data) => { - console.log('formProvider getFormsInfo, data:' + JSON.stringify(data)); -}).catch((error) => { - console.log('formProvider getFormsInfo, error:' + JSON.stringify(error)); -}); -``` - -## requestPublishForm9+ - -requestPublishForm(want: Want, formBindingData: formBindingData.FormBindingData, callback: AsyncCallback\): void - -请求发布一张卡片到使用方。使用方通常为桌面。 - -**系统能力:** SystemCapability.Ability.Form - -**系统接口**: 此接口为系统接口。 - -**参数:** - -| 参数名 | 类型 | 必填 | 说明 | -| ------ | ---------------------------------------------------------------------- | ---- | ---------------- | -| want | [Want](js-apis-application-want.md) | 是 | 发布请求。需包含以下字段。
abilityName: 目标卡片ability
parameters:
"ohos.extra.param.key.form_dimension"
"ohos.extra.param.key.form_name"
"ohos.extra.param.key.module_name" | -| formBindingData | [formBindingData.FormBindingData](js-apis-application-formBindingData.md#formbindingdata) | 是 | 创建卡片的数据。 | -| callback | AsyncCallback<string> | 是 | 回调函数。返回卡片标识。 | - -**示例:** - - ```ts - import formBindingData from '@ohos.application.formBindingData'; - import formProvider from '@ohos.app.form.formProvider'; - let want = { - abilityName: "FormAbility", - parameters: { - "ohos.extra.param.key.form_dimension": 2, - "ohos.extra.param.key.form_name": "widget", - "ohos.extra.param.key.module_name": "entry" - } - }; - let obj = formBindingData.createFormBindingData({temperature:"22c", time:"22:00"}); - formProvider.requestPublishForm(want, obj, (error, data) => { - if (error.code) { - console.log('formProvider requestPublishForm, error: ' + JSON.stringify(error)); - } else { - console.log('formProvider requestPublishForm, form ID is: ' + JSON.stringify(data)); - } - }); - ``` - -## requestPublishForm9+ - -requestPublishForm(want: Want, callback: AsyncCallback<string>): void - -请求发布一张卡片到使用方。使用方通常为桌面。 - -**系统能力:** SystemCapability.Ability.Form - -**系统接口**: 此接口为系统接口。 - -**参数:** - -| 参数名 | 类型 | 必填 | 说明 | -| -------- | ----------------------------------- | ---- | ------------------------------------------------------------ | -| want | [Want](js-apis-application-want.md) | 是 | 发布请求。需包含以下字段。
abilityName: 目标卡片ability
parameters:
"ohos.extra.param.key.form_dimension"
"ohos.extra.param.key.form_name"
"ohos.extra.param.key.module_name" | -| callback | AsyncCallback<string> | 是 | 回调函数。返回卡片标识。 | - -**示例:** - - ```ts - import formProvider from '@ohos.app.form.formProvider'; - - let want = { - abilityName: "FormAbility", - parameters: { - "ohos.extra.param.key.form_dimension": 2, - "ohos.extra.param.key.form_name": "widget", - "ohos.extra.param.key.module_name": "entry" - } - }; - formProvider.requestPublishForm(want, (error, data) => { - if (error.code) { - console.log('formProvider requestPublishForm, error: ' + JSON.stringify(error)); - } else { - console.log('formProvider requestPublishForm, form ID is: ' + JSON.stringify(data)); - } - }); - ``` - -## requestPublishForm9+ - -requestPublishForm(want: Want, formBindingData?: formBindingData.FormBindingData): Promise<string> - -请求发布一张卡片到使用方。使用方通常为桌面。 - -**系统能力:** SystemCapability.Ability.Form - -**系统接口**: 此接口为系统接口。 - -**参数:** - -| 参数名 | 类型 | 必填 | 说明 | -| --------------- | ------------------------------------------------------------ | ---- | ------------------------------------------------------------ | -| want | [Want](js-apis-application-want.md) | 是 | 发布请求。需包含以下字段。
abilityName: 目标卡片ability
parameters:
"ohos.extra.param.key.form_dimension"
"ohos.extra.param.key.form_name"
"ohos.extra.param.key.module_name" | -| formBindingData | [formBindingData.FormBindingData](js-apis-application-formBindingData.md#formbindingdata) | 是 | 创建卡片的数据。 | - -**返回值:** - -| 类型 | 说明 | -| :------------ | :---------------------------------- | -| Promise<string> | Promise对象。返回卡片标识。 | - -**示例:** - - ```ts - import formProvider from '@ohos.app.form.formProvider'; - - let want = { - abilityName: "FormAbility", - parameters: { - "ohos.extra.param.key.form_dimension": 2, - "ohos.extra.param.key.form_name": "widget", - "ohos.extra.param.key.module_name": "entry" - } - }; - formProvider.requestPublishForm(want).then((data) => { - console.log('formProvider requestPublishForm success, form ID is :' + JSON.stringify(data)); - }).catch((error) => { - console.log('formProvider requestPublishForm, error: ' + JSON.stringify(error)); - }); - ``` - -## isRequestPublishFormSupported9+ - -isRequestPublishFormSupported(callback: AsyncCallback<boolean>): void - -查询是否支持发布一张卡片到使用方。 - -**系统接口**: 此接口为系统接口。 - -**系统能力:** SystemCapability.Ability.Form - -**参数:** - -| 参数名 | 类型 | 必填 | 说明 | -| ------ | ------ | ---- | ------- | -| callback | AsyncCallback<boolean> | 是 | 回调函数。返回是否支持发布一张卡片到使用方。| - -**示例:** - -```ts -formProvider.isRequestPublishFormSupported((error, isSupported) => { - if (error.code) { - console.log('formProvider isRequestPublishFormSupported, error:' + JSON.stringify(error)); - } else { - if (isSupported) { - let want = { - abilityName: "FormAbility", - parameters: { - "ohos.extra.param.key.form_dimension": 2, - "ohos.extra.param.key.form_name": "widget", - "ohos.extra.param.key.module_name": "entry" - } - }; - formProvider.requestPublishForm(want, (error, data) => { - if (error.code) { - console.log('formProvider requestPublishForm, error: ' + JSON.stringify(error)); - } else { - console.log('formProvider requestPublishForm, form ID is: ' + JSON.stringify(data)); - } - }); - } - } -}); -``` - -## isRequestPublishFormSupported9+ - -isRequestPublishFormSupported(): Promise<boolean> - -查询是否支持发布一张卡片到使用方。 - -**系统接口**: 此接口为系统接口。 - -**系统能力:** SystemCapability.Ability.Form - -**返回值:** - -| 类型 | 说明 | -| :------------ | :---------------------------------- | -| Promise<boolean> | Promise对象。返回是否支持发布一张卡片到使用方。 | - -**示例:** - -```ts -formProvider.isRequestPublishFormSupported().then((isSupported) => { - if (isSupported) { - let want = { - abilityName: "FormAbility", - parameters: { - "ohos.extra.param.key.form_dimension": 2, - "ohos.extra.param.key.form_name": "widget", - "ohos.extra.param.key.module_name": "entry" - } - }; - formProvider.requestPublishForm(want).then((data) => { - console.log('formProvider requestPublishForm success, form ID is :' + JSON.stringify(data)); - }).catch((error) => { - console.log('formProvider requestPublishForm, error: ' + JSON.stringify(error)); - }); - } -}).catch((error) => { - console.log('formProvider isRequestPublishFormSupported, error:' + JSON.stringify(error)); -}); -``` \ No newline at end of file diff --git a/zh-cn/application-dev/reference/apis/js-apis-application-missionManager.md b/zh-cn/application-dev/reference/apis/js-apis-application-missionManager.md index deb071195ff0101ee49e8d7f15c73bc6373677f4..90d99a04cd382418e46f8ce05332fb527fbc7d8d 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-application-missionManager.md +++ b/zh-cn/application-dev/reference/apis/js-apis-application-missionManager.md @@ -43,7 +43,7 @@ registerMissionListener(listener: MissionListener): number; **示例:** ```ts -var listener = { +let listener = { onMissionCreated: function (mission) {console.log("--------onMissionCreated-------")}, onMissionDestroyed: function (mission) {console.log("--------onMissionDestroyed-------")}, onMissionSnapshotChanged: function (mission) {console.log("--------onMissionSnapshotChanged-------")}, @@ -53,7 +53,7 @@ var listener = { onMissionLabelUpdated: function (mission) {console.log("--------onMissionLabelUpdated-------")} }; console.log("registerMissionListener") -var listenerid = missionManager.registerMissionListener(listener); +let listenerid = missionManager.registerMissionListener(listener); ``` @@ -79,7 +79,7 @@ unregisterMissionListener(listenerId: number, callback: AsyncCallback<void> **示例:** ```ts - var listener = { + let listener = { onMissionCreated: function (mission) {console.log("--------onMissionCreated-------")}, onMissionDestroyed: function (mission) {console.log("--------onMissionDestroyed-------")}, onMissionSnapshotChanged: function (mission) {console.log("--------onMissionSnapshotChanged-------")}, @@ -89,7 +89,7 @@ unregisterMissionListener(listenerId: number, callback: AsyncCallback<void> onMissionLabelUpdated: function (mission) {console.log("--------onMissionLabelUpdated-------")} }; console.log("registerMissionListener") - var listenerid = missionManager.registerMissionListener(listener); + let listenerid = missionManager.registerMissionListener(listener); missionManager.unregisterMissionListener(listenerid, (error) => { console.log("unregisterMissionListener"); @@ -124,7 +124,7 @@ unregisterMissionListener(listenerId: number): Promise<void>; **示例:** ```ts - var listener = { + let listener = { onMissionCreated: function (mission) {console.log("--------onMissionCreated-------")}, onMissionDestroyed: function (mission) {console.log("--------onMissionDestroyed-------")}, onMissionSnapshotChanged: function (mission) {console.log("--------onMissionSnapshotChanged-------")}, @@ -134,7 +134,7 @@ unregisterMissionListener(listenerId: number): Promise<void>; onMissionLabelUpdated: function (mission) {console.log("--------onMissionLabelUpdated-------")} }; console.log("registerMissionListener") - var listenerid = missionManager.registerMissionListener(listener); + let listenerid = missionManager.registerMissionListener(listener); missionManager.unregisterMissionListener(listenerid).catch(function (err) { console.log(err); @@ -167,7 +167,7 @@ getMissionInfo(deviceId: string, missionId: number, callback: AsyncCallback<M ```ts import missionManager from '@ohos.application.missionManager' - var allMissions=missionManager.getMissionInfos("",10).catch(function(err){console.log(err);}); + let allMissions=missionManager.getMissionInfos("",10).catch(function(err){console.log(err);}); missionManager.getMissionInfo("", allMissions[0].missionId, (error, mission) => { if (error.code) { console.log("getMissionInfo failed, error.code:" + JSON.stringify(error.code) + @@ -215,7 +215,7 @@ getMissionInfo(deviceId: string, missionId: number): Promise<MissionInfo>; ```ts import missionManager from '@ohos.application.missionManager' - var mission = missionManager.getMissionInfo("", 10).catch(function (err){ + let mission = missionManager.getMissionInfo("", 10).catch(function (err){ console.log(err); }); ``` @@ -288,7 +288,7 @@ getMissionInfos(deviceId: string, numMax: number): Promise<Array<MissionIn ```ts import missionManager from '@ohos.application.missionManager' - var allMissions = missionManager.getMissionInfos("", 10).catch(function (err){ + let allMissions = missionManager.getMissionInfos("", 10).catch(function (err){ console.log(err); }); ``` @@ -327,7 +327,7 @@ getMissionSnapShot(deviceId: string, missionId: number, callback: AsyncCallback& } console.log("size = " + missions.length); console.log("missions = " + JSON.stringify(missions)); - var id = missions[0].missionId; + let id = missions[0].missionId; missionManager.getMissionSnapShot("", id, (error, snapshot) => { if (error.code) { @@ -371,15 +371,15 @@ getMissionSnapShot(deviceId: string, missionId: number): Promise<MissionSnaps ```ts import missionManager from '@ohos.application.missionManager' - var allMissions; + let allMissions; missionManager.getMissionInfos("",10).then(function(res){ allMissions=res; }).catch(function(err){console.log(err);}); console.log("size = " + allMissions.length); console.log("missions = " + JSON.stringify(allMissions)); - var id = allMissions[0].missionId; + let id = allMissions[0].missionId; - var snapshot = missionManager.getMissionSnapShot("", id).catch(function (err){ + let snapshot = missionManager.getMissionSnapShot("", id).catch(function (err){ console.log(err); }); ``` @@ -417,7 +417,7 @@ getLowResolutionMissionSnapShot(deviceId: string, missionId: number, callback: A } console.log("size = " + missions.length); console.log("missions = " + JSON.stringify(missions)); - var id = missions[0].missionId; + let id = missions[0].missionId; missionManager.getLowResolutionMissionSnapShot("", id, (error, snapshot) => { if (error.code) { @@ -461,15 +461,15 @@ getLowResolutionMissionSnapShot(deviceId: string, missionId: number): Promise\): Array\; - -转储客户端信息时调用。 - -**系统能力**:SystemCapability.Ability.AbilityRuntime.AbilityCore - -**系统API**: 此接口为系统接口,三方应用不支持调用。 - -**参数:** - - | 参数名 | 类型 | 必填 | 说明 | - | -------- | -------- | -------- | -------- | - | params | Array\ | 是 | 表示命令形式的参数。| - -**示例:** - - ```ts - class ServiceExt extends ServiceExtension { - dump(params) { - console.log('dump, params:' + JSON.stringify(params)); - return ["params"] - } - } - ``` - diff --git a/zh-cn/application-dev/reference/apis/js-apis-application-startOptions.md b/zh-cn/application-dev/reference/apis/js-apis-application-startOptions.md deleted file mode 100644 index 9f871ef8e00f2fc0129be0a2e3a468bd446e6d12..0000000000000000000000000000000000000000 --- a/zh-cn/application-dev/reference/apis/js-apis-application-startOptions.md +++ /dev/null @@ -1,23 +0,0 @@ -# @ohos.application.StartOptions (StartOptions) - -StartOptions模块对系统的基本通信组件进行查询和设置的能力。 - -> **说明:** -> -> 本模块首批接口从API version 9 开始支持,从API version 9后续版本废弃,替换模块为[@ohos.app.ability.StartOptions](js-apis-app-ability-startOptions.md)。后续版本的新增接口,采用上角标单独标记接口的起始版本。 -> 本模块接口仅可在Stage模型下使用。 - -## 导入模块 - -```ts -import StartOptions from '@ohos.application.StartOptions'; -``` - -## 属性 - -**系统能力**:以下各项对应的系统能力均为SystemCapability.Ability.AbilityRuntime.Core - -| 名称 | 类型 | 必填 | 说明 | -| -------- | -------- | -------- | -------- | -| [windowMode](js-apis-application-abilityConstant.md#abilityconstantwindowmode) | number | 否 | 窗口模式。 | -| displayId | number | 否 | 显示ID。 | diff --git a/zh-cn/application-dev/reference/apis/js-apis-application-staticSubscriberExtensionAbility.md b/zh-cn/application-dev/reference/apis/js-apis-application-staticSubscriberExtensionAbility.md index e2481c7e2165fa819870b9bfbef9c28a09340f04..d0f20c015b2634014fb58d798197468c02c254bb 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-application-staticSubscriberExtensionAbility.md +++ b/zh-cn/application-dev/reference/apis/js-apis-application-staticSubscriberExtensionAbility.md @@ -31,12 +31,9 @@ onReceiveEvent(event: CommonEventData): void; **示例:** ```ts - var StaticSubscriberExtensionAbility = requireNapi("application.StaticSubscriberExtensionAbility") - { - onReceiveEvent(event){ - console.log('onReceiveEvent,event:' + event.code); - } - } - export default MyStaticSubscriberExtensionAbility - + class MyStaticSubscriberExtensionAbility extends StaticSubscriberExtensionAbility { + onReceiveEvent(event) { + console.log("onReceiveEvent, event: " + JSON.stringify(event)) + } + } ``` \ No newline at end of file diff --git a/zh-cn/application-dev/reference/apis/js-apis-application-want.md b/zh-cn/application-dev/reference/apis/js-apis-application-want.md index 8ad2d331ceba9d768ccb249ce1f44b043e69b72e..fb8721cfc0a0afbffe42e8ef25d350af2c835989 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-application-want.md +++ b/zh-cn/application-dev/reference/apis/js-apis-application-want.md @@ -4,7 +4,7 @@ Want是对象间信息传递的载体, 可以用于应用组件间的信息传 > **说明:** > -> 本模块首批接口从API version 8 开始支持,从API version 9废弃,替换模块为[Want](js-apis-app-ability-want.md)。后续版本的新增接口,采用上角标单独标记接口的起始版本。 +> 本模块首批接口从API version 8 开始支持,从API version 9废弃,替换模块为[@ohos.app.ability.Want](js-apis-app-ability-want.md)。后续版本的新增接口,采用上角标单独标记接口的起始版本。 ## 导入模块 @@ -25,7 +25,7 @@ import Want from '@ohos.application.Want'; | type | string | 否 | 表示MIME type类型描述,打开文件的类型,主要用于文管打开文件。比如:"text/xml" 、 "image/*"等,MIME定义参考:https://www.iana.org/assignments/media-types/media-types.xhtml?utm_source=ld246.com。 | | flags | number | 否 | 表示处理Want的方式。默认传数字,具体参考:[flags说明](js-apis-ability-wantConstant.md#wantConstant.Flags)。 | | action | string | 否 | 表示要执行的通用操作(如:查看、分享、应用详情)。在隐式Want中,您可以定义该字段,配合uri或parameters来表示对数据要执行的操作。具体参考:[action说明](js-apis-app-ability-wantConstant.md#wantConstant.Action)。隐式Want定义及匹配规则参考:[显式Want与隐式Want匹配规则](application-models/explicit-implicit-want-mappings.md)。 | -| parameters | {[key: string]: any} | 否 | 表示WantParams描述,由开发者自行决定传入的键值对。默认会携带以下key值:
ohos.aafwk.callerPid 表示拉起方的pid。
ohos.aafwk.param.callerToken 表示拉起方的token。
ohos.aafwk.param.callerUid 表示[bundleInfo](js-apis-bundle-BundleInfo.md#bundleinfo-1)中的uid,应用包里应用程序的uid。 | +| parameters | {[key: string]: any} | 否 | 表示WantParams描述,由开发者自行决定传入的键值对。默认会携带以下key值:
ohos.aafwk.callerPid 表示拉起方的pid。
ohos.aafwk.param.callerToken 表示拉起方的token。
ohos.aafwk.param.callerUid 表示[bundleInfo](js-apis-bundle-BundleInfo.md#bundleinfo-1)中的uid,应用包里应用程序的uid。
- component.startup.newRules:表示是否启用新的管控规则。
- moduleName:表示拉起方的模块名,该字段的值即使定义成其他字符串,在传递到另一端时会被修改为正确的值。
- ohos.dlp.params.sandbox:表示dlp文件才会有。 | | entities | Array\ | 否 | 表示目标Ability额外的类别信息(如:浏览器、视频播放器)。在隐式Want中是对action字段的补充。在隐式Want中,您可以定义该字段,来过滤匹配Ability类型。具体参考:[entity说明](js-apis-app-ability-wantConstant.md#wantConstant.Entity)。 | | moduleName9+ | string | 否 | 表示待启动的Ability所属的模块(module)。 | diff --git a/zh-cn/application-dev/reference/apis/js-apis-application-windowExtensionAbility.md b/zh-cn/application-dev/reference/apis/js-apis-application-windowExtensionAbility.md index d8b4663aba14e6cfaff3559ddeb20b1bbf066c19..c72ee14937e8719a9a39ede4f6982ceb4922fd43 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-application-windowExtensionAbility.md +++ b/zh-cn/application-dev/reference/apis/js-apis-application-windowExtensionAbility.md @@ -5,10 +5,10 @@ WindowExtensionAbility基于ExtensionAbility。WindowExtensionAbility中展示 > **说明:** > > 本模块首批接口从API version 9开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 -> +> > 本模块接口为系统接口。 > -> 本模块接口仅可在Stage模型下使用。 +> 本模块接口仅可在Stage模型下使用。 ## 导入模块 @@ -22,7 +22,7 @@ import WindowExtensionAbility from '@ohos.application.WindowExtensionAbility'; | 名称 | 类型 | 可读 | 可写 | 说明 | | --------- | -------- | ---- | ---- | ------------------------- | -| context | [ExtensionContext](js-apis-inner-application-extensionContext.md) | 是 | 否 | 上下文。 | +| context | [WindowExtensionContext](js-apis-inner-application-windowExtensionContext.md) | 是 | 否 | 上下文。 | ## WindowExtensionAbility.onConnect @@ -38,7 +38,7 @@ onConnect(want: Want): void | -------- | -------- | -------- | -------- | | want | [Want](js-apis-application-want.md) | 是 | 当前ability的Want类型信息,包括ability名称、bundle名称等。 | -**示例:** +**示例:** ```ts export default class MyWindowExtensionAbility extends WindowExtensionAbility { @@ -65,7 +65,7 @@ onDisconnect(want: Want): void | want | [Want](js-apis-application-want.md) | 是 | 当前Ability的Want类型信息,包括ability名称、bundle名称等。 | -**示例:** +**示例:** ```ts export default class MyWindowExtensionAbility extends WindowExtensionAbility { @@ -92,7 +92,7 @@ onWindowReady(window: window.Window): void | window | [window.Window](js-apis-window.md#window) | 是 | 当前窗口实例。 | -**示例:** +**示例:** ```ts export default class MyWindowExtensionAbility extends WindowExtensionAbility { diff --git a/zh-cn/application-dev/reference/apis/js-apis-audio.md b/zh-cn/application-dev/reference/apis/js-apis-audio.md index 335c49c04b461fe4bcb15f4fd6d179a492d12d6d..0d034f8b016852665793c4d614f15cdb9a971029 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-audio.md +++ b/zh-cn/application-dev/reference/apis/js-apis-audio.md @@ -348,7 +348,10 @@ async function createTonePlayerBefore(){ | VOICE_CALL8+ | 0 | 语音电话。 | | RINGTONE | 2 | 铃声。 | | MEDIA | 3 | 媒体。 | +| ALARM10+ | 4 | 闹钟。 | +| ACCESSIBILITY10+ | 5 | 无障碍。 | | VOICE_ASSISTANT8+ | 9 | 语音助手。 | +| ULTRASONIC10+ | 10 | 超声波。
此接口为系统接口。| | ALL9+ | 100 | 所有公共音频流。
此接口为系统接口。| ## InterruptRequestResultType9+ @@ -530,7 +533,7 @@ async function createTonePlayerBefore(){ | CONTENT_TYPE_MOVIE | 3 | 电影。 | | CONTENT_TYPE_SONIFICATION | 4 | 通知音。 | | CONTENT_TYPE_RINGTONE8+ | 5 | 铃声。 | - +| CONTENT_TYPE_ULTRASONIC10+| 9 | 超声波。
此接口为系统接口。| ## StreamUsage 枚举,音频流使用类型。 @@ -541,9 +544,12 @@ async function createTonePlayerBefore(){ | ------------------------------------------| ------ | ---------- | | STREAM_USAGE_UNKNOWN | 0 | 未知类型。 | | STREAM_USAGE_MEDIA | 1 | 音频。 | -| STREAM_USAGE_VOICE_COMMUNICATION | 2 | 语音通信。 | +| STREAM_USAGE_VOICE_COMMUNICATION | 2 | 语音通信。 | | STREAM_USAGE_VOICE_ASSISTANT9+ | 3 | 语音播报。 | +| STREAM_USAGE_ALARM10+ | 4 | 闹钟。 | | STREAM_USAGE_NOTIFICATION_RINGTONE | 6 | 通知铃声。 | +| STREAM_USAGE_ACCESSIBILITY10+ | 8 | 无障碍。 | +| STREAM_USAGE_SYSTEM10+ | 9 | 系统音(如屏幕锁定或按键音)。
此接口为系统接口。 | ## InterruptRequestType9+ diff --git a/zh-cn/application-dev/reference/apis/js-apis-battery-info.md b/zh-cn/application-dev/reference/apis/js-apis-battery-info.md index e1d8fcba7fcfec4f65a7071443352345e95d0850..6013eb8cd4cf6ec626fd097fdedba537febb53d3 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-battery-info.md +++ b/zh-cn/application-dev/reference/apis/js-apis-battery-info.md @@ -84,12 +84,13 @@ import batteryInfo from '@ohos.batteryInfo'; | 名称 | 值 | 说明 | | -------------- | ------ | ---------------------------- | -| LEVEL_NONE | 0 | 表示电池电量等级未知。 | | LEVEL_FULL | 1 | 表示电池电量等级为满电量。 | | LEVEL_HIGH | 2 | 表示电池电量等级为高电量。 | | LEVEL_NORMAL | 3 | 表示电池电量等级为正常电量。 | | LEVEL_LOW | 4 | 表示电池电量等级为低电量。 | -| LEVEL_CRITICAL | 5 | 表示电池电量等级为极低电量。 | +| LEVEL_WARNING | 5 | 表示电池电量等级为告警电量。 | +| LEVEL_CRITICAL | 6 | 表示电池电量等级为极低电量。 | +| LEVEL_SHUTDOWN | 7 | 表示电池电量等级为关机电量。 | ## CommonEventBatteryChangedCode9+ @@ -110,3 +111,4 @@ import batteryInfo from '@ohos.batteryInfo'; | EXTRA_CHARGE_COUNTER | 8 | 表示当前设备电池充电次数的查询键。 | | EXTRA_PRESENT | 9 | 表示当前设备是否支持电池或者电池是否在位的查询键。 | | EXTRA_TECHNOLOGY | 10 | 表示当前设备电池技术型号的查询键。 | +| EXTRA_CAPACITY_LEVEL | 11 | 表示当前设备电池电量等级的查询键。 | diff --git a/zh-cn/application-dev/reference/apis/js-apis-bundleManager.md b/zh-cn/application-dev/reference/apis/js-apis-bundleManager.md index 92336371ae71a319603867eaf017e29aa4bd0997..475a0e61ecff2c862fcb6e83ff8a9bed01550d17 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-bundleManager.md +++ b/zh-cn/application-dev/reference/apis/js-apis-bundleManager.md @@ -2654,118 +2654,6 @@ try { } ``` -### bundleManager.getAbilityIcon - -getAbilityIcon(bundleName: string, moduleName: string, abilityName: string, callback: AsyncCallback<[image.PixelMap](js-apis-image.md#pixelmap7)>): void; - -以异步的方法获取指定bundleName、moduleName和abilityName的icon,使用callback形式返回结果。 - -**系统接口:** 此接口为系统接口。 - -**需要权限:** ohos.permission.GET_BUNDLE_INFO_PRIVILEGED or ohos.permission.GET_BUNDLE_INFO - -**系统能力:** SystemCapability.BundleManager.BundleFramework.Resource - -**参数:** - -| 参数名 | 类型 | 必填 | 说明 | -| ----------- | ----------------------------------------------------------- | ---- | ------------------------------------------------------------ | -| bundleName | string | 是 | 表示应用程序的bundleName。 | -| moduleName | string | 是 | 表示应用程序的moduleName。 | -| abilityName | string | 是 | 表示应用程序的abilityName。 | -| callback | AsyncCallback<[image.PixelMap](js-apis-image.md#pixelmap7)> | 是 | 回调函数,当获取成功时,err为null,data为指定组件icon的PixelMap对象;否则为错误对象。 | - -**错误码:** - -以下错误码的详细介绍请参见[ohos.bundle错误码](../errorcodes/errorcode-bundle.md)。 - -| 错误码ID | 错误信息 | -| -------- | -------------------------------------- | -| 17700001 | The specified bundleName is not found. | -| 17700002 | The specified moduleName is not found. | -| 17700003 | The specified abilityName is not found. | -| 17700026 | The specified bundle is disabled. | -| 17700029 | The specified ability is disabled. | - -**示例:** - -```ts -import bundleManager from '@ohos.bundle.bundleManager'; -import hilog from '@ohos.hilog'; -let bundleName = 'com.example.myapplication'; -let moduleName = 'entry'; -let abilityName = 'EntryAbility'; - -try { - bundleManager.getAbilityIcon(bundleName, moduleName, abilityName, (err, data) => { - if (err) { - hilog.error(0x0000, 'testTag', 'getAbilityIcon failed: %{public}s', err.message); - } else { - hilog.info(0x0000, 'testTag', 'getAbilityIcon successfully: %{public}s', JSON.stringify(data)); - } - }); -} catch (err) { - hilog.error(0x0000, 'testTag', 'getAbilityIcon failed: %{public}s', err.message); -} -``` - -### bundleManager.getAbilityIcon - -getAbilityIcon(bundleName: string, moduleName: string, abilityName: string): Promise<[image.PixelMap](js-apis-image.md#pixelmap7)>; - -以异步的方法获取指定bundleName、moduleName和abilityName的icon,使用Promise形式返回结果。 - -**系统接口:** 此接口为系统接口。 - -**需要权限:** ohos.permission.GET_BUNDLE_INFO_PRIVILEGED or ohos.permission.GET_BUNDLE_INFO - -**系统能力:** SystemCapability.BundleManager.BundleFramework.Resource - -**参数:** - -| 参数名 | 类型 | 必填 | 说明 | -| ----------- | ------ | ---- | ------------------------- | -| bundleName | string | 是 | 表示应用程序的bundleName。 | -| moduleName | string | 是 | 表示应用程序的moduleName。 | -| abilityName | string | 是 | 表示应用程序的abilityName。 | - -**返回值:** - -| 类型 | 说明 | -| ----------------------------------------------------- | ------------------------------------------- | -| Promise<[image.PixelMap](js-apis-image.md#pixelmap7)> | Promise对象,返回指定组件icon的PixelMap对象。 | - -**错误码:** - -以下错误码的详细介绍请参见[ohos.bundle错误码](../errorcodes/errorcode-bundle.md)。 - -| 错误码ID | 错误信息 | -| -------- | -------------------------------------- | -| 17700001 | The specified bundleName is not found. | -| 17700002 | The specified moduleName is not found. | -| 17700003 | The specified abilityName is not found. | -| 17700026 | The specified bundle is disabled. | -| 17700029 | The specified ability is disabled. | - -**示例:** - -```ts -import bundleManager from '@ohos.bundle.bundleManager'; -import hilog from '@ohos.hilog'; -let bundleName = 'com.example.myapplication'; -let moduleName = 'entry'; -let abilityName = 'EntryAbility'; - -try { - bundleManager.getAbilityIcon(bundleName, moduleName, abilityName).then((data) => { - hilog.info(0x0000, 'testTag', 'getAbilityIcon successfully. Data: %{public}s', JSON.stringify(data)); - }).catch(err => { - hilog.error(0x0000, 'testTag', 'getAbilityIcon failed. Cause: %{public}s', err.message); - }); -} catch (err) { - hilog.error(0x0000, 'testTag', 'getAbilityIcon failed. Cause: %{public}s', err.message); -} -``` ### bundleManager.getApplicationInfoSync diff --git a/zh-cn/application-dev/reference/apis/js-apis-call.md b/zh-cn/application-dev/reference/apis/js-apis-call.md index 9d149f4c237e36173ea328f2a58a7e8223376be8..78c21552f22004a4eec28c0c42844ac14faf3a99 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-call.md +++ b/zh-cn/application-dev/reference/apis/js-apis-call.md @@ -4,7 +4,7 @@ 如需订阅通话状态请使用[`observer.on('callStateChange')`](js-apis-observer.md#observeroncallstatechange)。 ->**说明:** +>**说明:** > >本模块首批接口从API version 6开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 @@ -20,7 +20,7 @@ dial\(phoneNumber: string, callback: AsyncCallback\): void 拨打电话。使用callback异步回调。 -**需要权限**:ohos.permission.PLACE\_CALL,该权限为系统权限 +**需要权限**:ohos.permission.PLACE_CALL **系统能力**:SystemCapability.Telephony.CallManager @@ -46,7 +46,7 @@ dial\(phoneNumber: string, options: DialOptions, callback: AsyncCallback 拨打电话,可设置通话参数。使用Promise异步回调。 -**需要权限**:ohos.permission.PLACE\_CALL,该权限为系统权限 +**需要权限**:ohos.permission.PLACE_CALL **系统能力**:SystemCapability.Telephony.CallManager @@ -105,6 +105,133 @@ promise.then(data => { }); ``` + +## call.dialCall9+ + +dialCall\(phoneNumber: string, callback: AsyncCallback\): void + +拨打电话。使用callback异步回调。 + +**系统接口:** 此接口为系统接口。 + +**需要权限**:ohos.permission.PLACE_CALL + +**系统能力**:SystemCapability.Telephony.CallManager + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| ----------- | ---------------------------- | ---- | --------------------------------------- | +| phoneNumber | string | 是 | 电话号码。 | +| callback | AsyncCallback<boolean> | 是 | 回调函数,返回true为成功,false为失败。 | + +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + +**示例:** + +```js +call.dialCall("138xxxxxxxx", (err, data) => { + console.log(`callback: err->${JSON.stringify(err)}, data->${JSON.stringify(data)}`); +}); +``` + + +## call.dialCall9+ + +dialCall\(phoneNumber: string, options: DialCallOptions, callback: AsyncCallback\): void + +拨打电话,可设置通话参数。使用callback异步回调。 + +**系统接口:** 此接口为系统接口。 + +**需要权限**:ohos.permission.PLACE_CALL + +**系统能力**:SystemCapability.Telephony.CallManager + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| ----------- | ----------------------------------- | ---- | ------------------------------------ | +| phoneNumber | string | 是 | 电话号码。 | +| options | [DialCallOptions](#dialcalloptions9)| 是 | 通话参数,携带呼叫的其他配置信息。 | +| callback | AsyncCallback<boolean> | 是 | 回调函数,返回true为成功,false为失败。 | + +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + +**示例:** + +```js +call.dialCall("138xxxxxxxx", { + accountId: 0, + videoState: 0, + dialScene: 0, + dialType: 0, +}, (err, data) => { + console.log(`callback: err->${JSON.stringify(err)}, data->${JSON.stringify(data)}`); +}); +``` + + +## call.dialCall9+ + +dialCall\(phoneNumber: string, options?: DialCallOptions\): Promise + +拨打电话,可设置通话参数。使用Promise异步回调。 + +**系统接口:** 此接口为系统接口。 + +**需要权限**:ohos.permission.PLACE_CALL + +**系统能力**:SystemCapability.Telephony.CallManager + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| ----------- | ----------------------------------- | ---- | -------------------------------------- | +| phoneNumber | string | 是 | 电话号码。 | +| options | [DialCallOptions](#dialcalloptions9)| 否 | 通话参数,选择为语音通话还是视频通话。 | + +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + +**示例:** + +```js +try { + call.dialCall('138xxxxxxxx'); + console.log(`dialCall success, promise: data->${JSON.stringify(data)}`); +} catch (error) { + console.log(`dialCall fail, promise: err->${JSON.stringify(error)}`); +} +``` + + ## call.makeCall7+ makeCall(phoneNumber: string, callback: AsyncCallback\): void @@ -120,11 +247,21 @@ makeCall(phoneNumber: string, callback: AsyncCallback\): void | phoneNumber | string | 是 | 电话号码。 | | callback | AsyncCallback<void> | 是 | 以callback形式异步返回跳转拨号界面的结果。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js -call.makeCall("138xxxxxxxx", err => { - console.log(`makeCall callback: err->${JSON.stringify(err)}`); +call.makeCall("138xxxxxxxx", err => { + console.log(`makeCall callback: err->${JSON.stringify(err)}`); }); ``` @@ -149,14 +286,24 @@ makeCall(phoneNumber: string): Promise\ | ------------------- | --------------------------------- | | Promise<void> | 以Promise形式异步返回拨号的结果。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js -let promise = call.makeCall("138xxxxxxxx"); -promise.then(() => { - console.log(`makeCall success`); -}).catch(err => { - console.error(`makeCall fail, promise: err->${JSON.stringify(err)}`); +let promise = call.makeCall("138xxxxxxxx"); +promise.then(() => { + console.log(`makeCall success`); +}).catch(err => { + console.error(`makeCall fail, promise: err->${JSON.stringify(err)}`); }); ``` @@ -291,6 +438,16 @@ isEmergencyPhoneNumber\(phoneNumber: string, callback: AsyncCallback\) | phoneNumber | string | 是 | 电话号码。 | | callback | AsyncCallback<boolean> | 是 | 回调函数。返回true表示是紧急电话号码,返回false表示不是紧急电话号码。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -316,6 +473,16 @@ isEmergencyPhoneNumber\(phoneNumber: string, options: EmergencyNumberOptions, ca | options | [EmergencyNumberOptions](#emergencynumberoptions7) | 是 | 电话号码参数。 | | callback | AsyncCallback<boolean> | 是 | 回调函数。返回true表示是紧急电话号码,返回false表示不是紧急电话号码。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -346,6 +513,16 @@ isEmergencyPhoneNumber\(phoneNumber: string, options?: EmergencyNumberOptions\): | ---------------------- | --------------------------------------------------- | | Promise<boolean> | 以Promise形式异步返回判断是否是紧急电话号码的结果。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -374,6 +551,16 @@ formatPhoneNumber\(phoneNumber: string, callback: AsyncCallback\): void | phoneNumber | string | 是 | 电话号码。 | | callback | AsyncCallback<string> | 是 | 回调函数,返回格式化电话号码的结果。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -400,6 +587,16 @@ formatPhoneNumber\(phoneNumber: string, options: NumberFormatOptions, callback: | options | [NumberFormatOptions](#numberformatoptions7) | 是 | 格式化参数,如国家码。 | | callback | AsyncCallback<string> | 是 | 回调函数,返回格式化电话号码的结果。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -434,6 +631,16 @@ formatPhoneNumber\(phoneNumber: string, options?: NumberFormatOptions\): Promise | --------------------- | ------------------------------------------- | | Promise<string> | 以Promise形式异步返回格式化电话号码的结果。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -465,6 +672,16 @@ formatPhoneNumberToE164\(phoneNumber: string, countryCode: string, callback: Asy | countryCode | string | 是 | 国家码,支持所有国家码,如:中国(CN)。 | | callback | AsyncCallback<string> | 是 | 回调函数,返回将电话号码格式化为E.164表示形式的结果。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -499,6 +716,16 @@ formatPhoneNumberToE164\(phoneNumber: string, countryCode: string\): Promise\): void 如果来电铃声响起,设备将停止铃声。否则,此方法不起作用。使用callback异步回调。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **需要权限**:ohos.permission.SET_TELEPHONY_STATE @@ -528,6 +755,16 @@ muteRinger\(callback: AsyncCallback\): void | ----------- | ------------------------- | ---- | ---------- | | callback | AsyncCallback<void> | 是 | 回调函数。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -543,7 +780,7 @@ muteRinger\(\): Promise 如果来电铃声响起,设备将停止铃声。否则,此方法不起作用。使用Promise异步回调。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **需要权限**:ohos.permission.SET_TELEPHONY_STATE @@ -555,6 +792,17 @@ muteRinger\(\): Promise | ------------------- | --------------------------- | | Promise<void> | 以Promise形式异步返回结果。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -573,7 +821,7 @@ answer\(callId: number, callback: AsyncCallback\): void 接听来电。使用callback异步回调。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **需要权限**:ohos.permission.ANSWER_CALL @@ -586,6 +834,17 @@ answer\(callId: number, callback: AsyncCallback\): void | callId | number | 是 | 呼叫Id。可以通过订阅callDetailsChange事件获得。 | | callback | AsyncCallback<void> | 是 | 回调函数。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -601,7 +860,7 @@ answer(callId?: number\): Promise 接听来电。使用Promise异步回调。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **需要权限**:ohos.permission.ANSWER_CALL @@ -619,6 +878,17 @@ answer(callId?: number\): Promise | ------------------- | --------------------------- | | Promise<void> | 以Promise形式异步返回结果。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -637,7 +907,7 @@ hangup\(callId: number, callback: AsyncCallback\): void 挂断电话。使用callback异步回调。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **需要权限**:ohos.permission.ANSWER_CALL @@ -650,6 +920,17 @@ hangup\(callId: number, callback: AsyncCallback\): void | callId | number | 是 | 呼叫id。可以通过订阅callDetailsChange事件获得。 | | callback | AsyncCallback<void> | 是 | 回调函数。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -665,7 +946,7 @@ answer\(callback: AsyncCallback\): void 接听来电。使用callback异步回调。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **需要权限**:ohos.permission.ANSWER_CALL @@ -677,6 +958,17 @@ answer\(callback: AsyncCallback\): void | -------- | ------------------------- | ---- | ---------- | | callback | AsyncCallback<void> | 是 | 回调函数。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -692,7 +984,7 @@ hangup\(callId?: number\): Promise 挂断电话。使用Promise异步回调。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **需要权限**:ohos.permission.ANSWER_CALL @@ -710,6 +1002,17 @@ hangup\(callId?: number\): Promise | ------------------- | --------------------------- | | Promise<void> | 以Promise形式异步返回结果。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -728,7 +1031,7 @@ hangup\(callback: AsyncCallback\): void 挂断电话。使用callback异步回调。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **需要权限**:ohos.permission.ANSWER_CALL @@ -740,6 +1043,18 @@ hangup\(callback: AsyncCallback\): void | -------- | ------------------------- | ---- | ---------- | | callback | AsyncCallback<void> | 是 | 回调函数。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + + **示例:** ```js @@ -755,7 +1070,7 @@ reject(callId: number, callback: AsyncCallback\): void 拒绝来电。使用callback异步回调。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **需要权限**:ohos.permission.ANSWER_CALL @@ -768,6 +1083,18 @@ reject(callId: number, callback: AsyncCallback\): void | callId | number | 是 | 呼叫Id。可以通过订阅callDetailsChange事件获得。 | | callback | AsyncCallback<void> | 是 | 回调函数。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + + **示例:** ```js @@ -783,7 +1110,7 @@ reject\(callId: number, options: RejectMessageOptions, callback: AsyncCallback 拒绝来电。使用Promise异步回调。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **需要权限**:ohos.permission.ANSWER_CALL @@ -834,6 +1172,17 @@ reject(callId?: number, options?: RejectMessageOptions\): Promise | ------------------- | --------------------------- | | Promise<void> | 以Promise形式异步返回结果。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -855,7 +1204,7 @@ reject\(callback: AsyncCallback\): void 拒绝来电。使用callback异步回调。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **需要权限**:ohos.permission.ANSWER_CALL @@ -867,6 +1216,17 @@ reject\(callback: AsyncCallback\): void | -------- | ------------------------- | ---- | ---------- | | callback | AsyncCallback<void> | 是 | 回调函数。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -882,7 +1242,7 @@ reject\(options: RejectMessageOptions, callback: AsyncCallback\): void 拒绝来电。使用callback异步回调。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **需要权限**:ohos.permission.ANSWER_CALL @@ -895,6 +1255,17 @@ reject\(options: RejectMessageOptions, callback: AsyncCallback\): void | options | [RejectMessageOptions](#rejectmessageoptions7) | 是 | 拒绝消息选项。 | | callback | AsyncCallback<void> | 是 | 回调函数。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -913,7 +1284,7 @@ holdCall\(callId: number, callback: AsyncCallback\): void 保持通话。使用callback异步回调。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **需要权限**:ohos.permission.ANSWER_CALL @@ -926,6 +1297,17 @@ holdCall\(callId: number, callback: AsyncCallback\): void | callId | number | 是 | 呼叫Id。 | | callback | AsyncCallback<void> | 是 | 回调函数。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -941,7 +1323,7 @@ holdCall\(callId: number\): Promise 保持通话。使用Promise异步回调。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **需要权限**:ohos.permission.ANSWER_CALL @@ -959,6 +1341,17 @@ holdCall\(callId: number\): Promise | ------------------- | --------------------------- | | Promise<void> | 以Promise形式异步返回结果。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -976,7 +1369,7 @@ unHoldCall\(callId: number, callback: AsyncCallback\): void 取消保持通话。使用callback异步回调。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **需要权限**:ohos.permission.ANSWER_CALL @@ -989,6 +1382,17 @@ unHoldCall\(callId: number, callback: AsyncCallback\): void | callId | number | 是 | 呼叫Id。 | | callback | AsyncCallback<void> | 是 | 回调函数。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -1004,7 +1408,7 @@ unHoldCall\(callId: number\): Promise 取消保持通话。使用Promise异步回调。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **需要权限**:ohos.permission.ANSWER_CALL @@ -1022,6 +1426,17 @@ unHoldCall\(callId: number\): Promise | ------------------- | --------------------------- | | Promise<void> | 以Promise形式异步返回结果。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -1039,7 +1454,7 @@ switchCall\(callId: number, callback: AsyncCallback\): void 切换呼叫。使用callback异步回调。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **需要权限**:ohos.permission.ANSWER_CALL @@ -1052,6 +1467,17 @@ switchCall\(callId: number, callback: AsyncCallback\): void | callId | number | 是 | 呼叫Id。 | | callback | AsyncCallback<void> | 是 | 回调函数。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -1067,7 +1493,7 @@ switchCall\(callId: number\): Promise 切换呼叫。使用Promise异步回调。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **需要权限**:ohos.permission.ANSWER_CALL @@ -1085,6 +1511,17 @@ switchCall\(callId: number\): Promise | ------------------- | --------------------------- | | Promise<void> | 以Promise形式异步返回结果。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -1102,7 +1539,7 @@ combineConference\(callId: number, callback: AsyncCallback\): void 合并通话,将两通电话合并成会议电话。使用callback异步回调。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **系统能力**:SystemCapability.Telephony.CallManager @@ -1113,6 +1550,16 @@ combineConference\(callId: number, callback: AsyncCallback\): void | callId | number | 是 | 呼叫Id。 | | callback | AsyncCallback<void> | 是 | 回调函数。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -1128,7 +1575,7 @@ combineConference\(callId: number\): Promise 合并通话,将两通电话合并成会议电话。使用Promise异步回调。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **系统能力**:SystemCapability.Telephony.CallManager @@ -1144,6 +1591,16 @@ combineConference\(callId: number\): Promise | ------------------- | --------------------------- | | Promise<void> | 以Promise形式异步返回结果。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -1161,7 +1618,7 @@ getMainCallId\(callId: number, callback: AsyncCallback\): void 获取主呼叫Id。使用callback异步回调。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **系统能力**:SystemCapability.Telephony.CallManager @@ -1172,6 +1629,17 @@ getMainCallId\(callId: number, callback: AsyncCallback\): void | callId | number | 是 | 呼叫Id。 | | callback | AsyncCallback<number> | 是 | 回调函数。返回主呼叫Id。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + + **示例:** ```js @@ -1187,7 +1655,7 @@ getMainCallId\(callId: number\): Promise 获取主呼叫Id。使用Promise异步回调。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **系统能力**:SystemCapability.Telephony.CallManager @@ -1203,6 +1671,16 @@ getMainCallId\(callId: number\): Promise | ------------------- | ------------------------------- | | Promise<void> | 以Promise形式异步返回主呼叫Id。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -1220,7 +1698,7 @@ getSubCallIdList\(callId: number, callback: AsyncCallback\>\): vo 获取子呼叫Id列表。使用callback异步回调。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **系统能力**:SystemCapability.Telephony.CallManager @@ -1231,6 +1709,16 @@ getSubCallIdList\(callId: number, callback: AsyncCallback\>\): vo | callId | number | 是 | 呼叫Id。 | | callback | AsyncCallback\> | 是 | 回调函数。返回子呼叫Id列表。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -1246,7 +1734,7 @@ getSubCallIdList\(callId: number\): Promise\> 获取子呼叫Id列表。使用Promise异步回调。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **系统能力**:SystemCapability.Telephony.CallManager @@ -1262,6 +1750,16 @@ getSubCallIdList\(callId: number\): Promise\> | ----------------------------- | ----------------------------------- | | Promise<Array> | 以Promise形式异步返回子呼叫Id列表。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -1279,7 +1777,7 @@ getCallIdListForConference\(callId: number, callback: AsyncCallback> | 是 | 回调函数。返回会议的呼叫Id列表。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -1305,7 +1813,7 @@ getCallIdListForConference\(callId: number\): Promise\> 获取会议的呼叫Id列表。使用Promise异步回调。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **系统能力**:SystemCapability.Telephony.CallManager @@ -1321,6 +1829,16 @@ getCallIdListForConference\(callId: number\): Promise\> | ----------------------------- | --------------------------------------- | | Promise<Array> | 以Promise形式异步返回会议的呼叫Id列表。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -1338,7 +1856,7 @@ getCallWaitingStatus\(slotId: number, callback: AsyncCallback- 0:卡槽1
- 1:卡槽2 | | callback | AsyncCallback<[CallWaitingStatus](#callwaitingstatus7)\> | 是 | 回调函数。
返回呼叫等待状态。
- 0:禁用呼叫等待
- 1:启用呼叫等待 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -1366,7 +1895,7 @@ getCallWaitingStatus\(slotId: number\): Promise 获取呼叫等待状态。使用Promise异步回调。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **需要权限**:ohos.permission.GET_TELEPHONY_STATE @@ -1384,6 +1913,17 @@ getCallWaitingStatus\(slotId: number\): Promise | ------------------------------------------------------- | ------------------------------------------------------------ | | Promise<[CallWaitingStatus](#callwaitingstatus7)> | 以Promise形式异步返回呼叫等待状态。
- 0:禁用呼叫等待
- 1:启用呼叫等待 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -1401,7 +1941,7 @@ setCallWaiting\(slotId: number, activate: boolean, callback: AsyncCallback- false:禁用呼叫等待
- true:启用呼叫等待 | | callback | AsyncCallback | 是 | 回调函数。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -1430,7 +1981,7 @@ setCallWaiting\(slotId: number, activate: boolean\): Promise 设置呼叫等待。使用Promise异步回调。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **需要权限**:ohos.permission.SET_TELEPHONY_STATE @@ -1449,6 +2000,17 @@ setCallWaiting\(slotId: number, activate: boolean\): Promise | ------------------- | --------------------------- | | Promise<void> | 以Promise形式异步返回结果。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -1466,7 +2028,7 @@ startDTMF\(callId: number, character: string, callback: AsyncCallback\): 启动双音多频。使用callback异步回调。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **系统能力**:SystemCapability.Telephony.CallManager @@ -1478,6 +2040,16 @@ startDTMF\(callId: number, character: string, callback: AsyncCallback\): | character | string | 是 | DTMF码。 | | callback | AsyncCallback | 是 | 回调函数。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -1493,7 +2065,7 @@ startDTMF\(callId: number, character: string\): Promise 启动双音多频。使用Promise异步回调。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **系统能力**:SystemCapability.Telephony.CallManager @@ -1510,6 +2082,16 @@ startDTMF\(callId: number, character: string\): Promise | ------------------- | ----------------------- | | Promise<void> | 以Promise形式异步返回。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -1527,7 +2109,7 @@ stopDTMF\(callId: number, callback: AsyncCallback\): void 停止双音多频。使用callback异步回调。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **系统能力**:SystemCapability.Telephony.CallManager @@ -1538,6 +2120,16 @@ stopDTMF\(callId: number, callback: AsyncCallback\): void | callId | number | 是 | 呼叫Id。 | | callback | AsyncCallback<void> | 是 | 回调函数。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -1553,7 +2145,7 @@ stopDTMF\(callId: number\): Promise 停止双音多频。使用Promise异步回调。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **系统能力**:SystemCapability.Telephony.CallManager @@ -1569,6 +2161,16 @@ stopDTMF\(callId: number\): Promise | ------------------- | --------------------------- | | Promise<void> | 以Promise形式异步返回结果。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -1586,7 +2188,7 @@ isInEmergencyCall\(callback: AsyncCallback\): void 判断是否正在处于紧急呼叫。使用callback异步回调。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **需要权限**:ohos.permission.SET_TELEPHONY_STATE @@ -1598,6 +2200,17 @@ isInEmergencyCall\(callback: AsyncCallback\): void | -------- | ---------------------------- | ---- | ---------- | | callback | AsyncCallback<boolean> | 是 | 回调函数。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -1613,7 +2226,7 @@ isInEmergencyCall\(\): Promise 判断是否正在处于紧急呼叫。使用Promise异步回调。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **需要权限**:ohos.permission.SET_TELEPHONY_STATE @@ -1625,6 +2238,17 @@ isInEmergencyCall\(\): Promise | ---------------------- | --------------------------- | | Promise<boolean> | 以Promise形式异步返回结果。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -1642,7 +2266,7 @@ on\(type: 'callDetailsChange', callback: Callback\): void 订阅callDetailsChange事件。使用callback异步回调。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **需要权限**:ohos.permission.SET_TELEPHONY_STATE @@ -1655,6 +2279,17 @@ on\(type: 'callDetailsChange', callback: Callback\): void | type | string | 是 | 通话时监听通话详情的变化。 | | callback | Callback<[CallAttributeOptions](#callattributeoptions7)> | 是 | 回调函数。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -1669,7 +2304,7 @@ on\(type: 'callEventChange', callback: Callback\): void 订阅callEventChange事件。使用callback异步回调。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **需要权限**:ohos.permission.SET_TELEPHONY_STATE @@ -1682,6 +2317,17 @@ on\(type: 'callEventChange', callback: Callback\): void | type | string | 是 | 通话时监听通话事件的变化。 | | callback | Callback<[CallEventOptions](#calleventoptions8)> | 是 | 回调函数。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -1696,7 +2342,7 @@ on\(type: 'callDisconnectedCause', callback: Callback): vo 订阅callDisconnectedCause事件。使用callback异步回调。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **需要权限**:ohos.permission.SET_TELEPHONY_STATE @@ -1709,6 +2355,17 @@ on\(type: 'callDisconnectedCause', callback: Callback): vo | type | string | 是 | 通话时监听断开连接的原因。 | | callback | Callback<[DisconnectedDetails](#disconnecteddetails9)> | 是 | 回调函数。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -1723,7 +2380,7 @@ on\(type: 'mmiCodeResult', callback: Callback\): void 订阅mmiCodeResult事件。使用callback异步回调。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **需要权限**:ohos.permission.SET_TELEPHONY_STATE @@ -1736,6 +2393,17 @@ on\(type: 'mmiCodeResult', callback: Callback\): void | type | string | 是 | 通话时监听MMI码结果。 | | callback | Callback<[MmiCodeResults](#mmicoderesults9)> | 是 | 回调函数。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -1750,7 +2418,7 @@ off\(type: 'callDetailsChange', callback?: Callback\): vo 取消订阅callDetailsChange事件。使用callback异步回调。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **需要权限**:ohos.permission.SET_TELEPHONY_STATE @@ -1763,6 +2431,17 @@ off\(type: 'callDetailsChange', callback?: Callback\): vo | type | string | 是 | 通话结束时取消监听通话详情的变化。 | | callback | Callback<[CallAttributeOptions](#callattributeoptions7)> | 否 | 回调函数。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -1777,7 +2456,7 @@ off\(type: 'callEventChange', callback?: Callback\): void 取消订阅callEventChange事件。使用callback异步回调。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **需要权限**:ohos.permission.SET_TELEPHONY_STATE @@ -1790,6 +2469,17 @@ off\(type: 'callEventChange', callback?: Callback\): void | type | string | 是 | 通话结束时取消监听通话事件的变化。 | | callback | Callback<[CallEventOptions](#calleventoptions8)> | 否 | 回调函数。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -1804,7 +2494,7 @@ off\(type: 'callDisconnectedCause', callback?: Callback\): 取消订阅callDisconnectedCause事件。使用callback异步回调。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **需要权限**:ohos.permission.SET_TELEPHONY_STATE @@ -1817,6 +2507,17 @@ off\(type: 'callDisconnectedCause', callback?: Callback\): | type | 'callDisconnectedCause' | 是 | 调用断开连接的原因。 | | callback | Callback**<**[DisconnectedDetails](#disconnecteddetails9)> | 否 | 回调函数。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -1831,7 +2532,7 @@ off\(type: 'mmiCodeResult', callback?: Callback\): void 取消订阅mmiCodeResult事件。使用callback异步回调。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **需要权限**:ohos.permission.SET_TELEPHONY_STATE @@ -1844,6 +2545,17 @@ off\(type: 'mmiCodeResult', callback?: Callback\): void | type | 'mmiCodeResult' | 是 | MMI码结果。 | | callback | Callback<[MmiCodeResults](#mmicoderesults9)> | 否 | 回调函数。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -1858,7 +2570,7 @@ isNewCallAllowed\(callback: AsyncCallback\): void 判断是否允许再拨打一通新电话。使用callback异步回调。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **系统能力**:SystemCapability.Telephony.CallManager @@ -1868,6 +2580,16 @@ isNewCallAllowed\(callback: AsyncCallback\): void | -------- | ---------------------------- | ---- | ---------- | | callback | AsyncCallback<boolean> | 是 | 回调函数。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -1883,7 +2605,7 @@ isNewCallAllowed\(\): Promise 判断是否允许再拨打一通新电话。使用Promise异步回调。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **系统能力**:SystemCapability.Telephony.CallManager @@ -1893,6 +2615,16 @@ isNewCallAllowed\(\): Promise | ---------------------- | --------------------------- | | Promise<boolean> | 以Promise形式异步返回结果。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -1910,7 +2642,7 @@ separateConference\(callId: number, callback: AsyncCallback\): void 分离会议电话。使用callback异步回调。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **系统能力**:SystemCapability.Telephony.CallManager @@ -1921,6 +2653,16 @@ separateConference\(callId: number, callback: AsyncCallback\): void | callId | number | 是 | 呼叫Id。 | | callback | AsyncCallback<void> | 是 | 回调函数。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -1936,7 +2678,7 @@ separateConference\(callId: number\): Promise 分离会议电话。使用Promise异步回调。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **系统能力**:SystemCapability.Telephony.CallManager @@ -1952,6 +2694,16 @@ separateConference\(callId: number\): Promise | ------------------- | --------------------------- | | Promise<void> | 以Promise形式异步返回结果。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -1969,7 +2721,7 @@ getCallRestrictionStatus\(slotId: number, type: CallRestrictionType, callback: A 获取呼叫限制状态。使用callback异步回调。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **需要权限**:ohos.permission.GET_TELEPHONY_STATE @@ -1983,6 +2735,17 @@ getCallRestrictionStatus\(slotId: number, type: CallRestrictionType, callback: A | type | [CallRestrictionType](#callrestrictiontype8) | 是 | 呼叫限制类型。 | | callback | AsyncCallback<[RestrictionStatus](#restrictionstatus8)> | 是 | 回调函数。返回限制状态。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -1998,7 +2761,7 @@ getCallRestrictionStatus\(slotId: number, type: CallRestrictionType\): Promise 设置呼叫限制状态。使用Promise异步回调。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **需要权限**:ohos.permission.SET_TELEPHONY_STATE @@ -2087,6 +2872,17 @@ setCallRestriction\(slotId: number, info: CallRestrictionInfo\): Promise | ------------------- | --------------------------- | | Promise<void> | 以Promise形式异步返回结果。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -2109,7 +2905,7 @@ getCallTransferInfo\(slotId: number, type: CallTransferType, callback: AsyncCall 获取呼叫转移信息。使用callback异步回调。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **需要权限**:ohos.permission.GET_TELEPHONY_STATE @@ -2123,6 +2919,17 @@ getCallTransferInfo\(slotId: number, type: CallTransferType, callback: AsyncCall | type | [CallTransferType](#calltransfertype8) | 是 | 呼叫转移类型。 | | callback | AsyncCallback<[CallTransferResult](#calltransferresult8)> | 是 | 回调函数。返回呼叫转移信息。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -2138,7 +2945,7 @@ getCallTransferInfo\(slotId: number, type: CallTransferType): Promise 设置呼叫转移信息。使用Promise异步回调。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **需要权限**:ohos.permission.SET_TELEPHONY_STATE @@ -2227,6 +3056,17 @@ setCallTransfer\(slotId: number, info: CallTransferInfo): Promise | ------------------- | --------------------------- | | Promise<void> | 以Promise形式异步返回结果。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -2249,7 +3089,7 @@ isRinging\(callback: AsyncCallback\): void 判断是否正在响铃。使用callback异步回调。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **需要权限**:ohos.permission.SET_TELEPHONY_STATE @@ -2261,6 +3101,17 @@ isRinging\(callback: AsyncCallback\): void | -------- | ---------------------------- | ---- | ---------- | | callback | AsyncCallback<boolean> | 是 | 回调函数。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -2276,7 +3127,7 @@ isRinging\(\): Promise 判断是否正在响铃。使用Promise异步回调。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **需要权限**:ohos.permission.SET_TELEPHONY_STATE @@ -2288,6 +3139,17 @@ isRinging\(\): Promise | ---------------------- | --------------------------- | | Promise<boolean> | 以Promise形式异步返回结果。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -2305,7 +3167,7 @@ setMuted\(callback: AsyncCallback\): void 设置通话中的静音。使用callback异步回调。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **系统能力**:SystemCapability.Telephony.CallManager @@ -2315,6 +3177,16 @@ setMuted\(callback: AsyncCallback\): void | -------- | ------------------------- | ---- | ---------- | | callback | AsyncCallback<void> | 是 | 回调函数。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -2330,7 +3202,7 @@ setMuted\(\): Promise 设置通话中的静音。使用Promise异步回调。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **系统能力**:SystemCapability.Telephony.CallManager @@ -2340,6 +3212,16 @@ setMuted\(\): Promise | ------------------- | --------------------------- | | Promise<void> | 以Promise形式异步返回结果。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -2357,7 +3239,7 @@ cancelMuted(callback: AsyncCallback): void 取消通话中的静音。使用callback异步回调。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **系统能力**:SystemCapability.Telephony.CallManager @@ -2367,6 +3249,16 @@ cancelMuted(callback: AsyncCallback): void | -------- | ------------------------- | ---- | ---------- | | callback | AsyncCallback<void> | 是 | 回调函数。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -2382,7 +3274,7 @@ cancelMuted(): Promise 取消通话中的静音。使用Promise异步回调。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **系统能力**:SystemCapability.Telephony.CallManager @@ -2392,6 +3284,16 @@ cancelMuted(): Promise | ------------------- | --------------------------- | | Promise<void> | 以Promise形式异步返回结果。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -2409,7 +3311,7 @@ setAudioDevice\(device: AudioDevice, callback: AsyncCallback\): void 设置通话音频设备。使用callback异步回调。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **系统能力**:SystemCapability.Telephony.CallManager @@ -2420,6 +3322,16 @@ setAudioDevice\(device: AudioDevice, callback: AsyncCallback\): void | device | [AudioDevice](#audiodevice8) | 是 | 音频设备。 | | callback | AsyncCallback<void> | 是 | 回调函数。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -2435,7 +3347,7 @@ setAudioDevice\(device: AudioDevice, options: AudioDeviceOptions, callback: Asyn 设置通话音频设备。使用callback异步回调。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **系统能力**:SystemCapability.Telephony.CallManager @@ -2447,6 +3359,16 @@ setAudioDevice\(device: AudioDevice, options: AudioDeviceOptions, callback: Asyn | options | [AudioDeviceOptions](#audiodeviceoptions9) | 是 | 音频设备参数。 | | callback | AsyncCallback<void> | 是 | 回调函数。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -2465,7 +3387,7 @@ setAudioDevice(device: AudioDevice, options?: AudioDeviceOptions): Promise, callback: Asy 加入会议。使用callback异步回调。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **系统能力**:SystemCapability.Telephony.CallManager @@ -2514,6 +3446,16 @@ joinConference(mainCallId: number, callNumberList: Array, callback: Asy | callNumberList | Array | 是 | 呼叫号码列表。 | | callback | AsyncCallback<void> | 是 | 回调函数。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -2531,7 +3473,7 @@ joinConference(mainCallId: number, callNumberList: Array): Promise): Promise 更新Ims呼叫模式。使用Promise异步回调。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **系统能力**:SystemCapability.Telephony.CallManager @@ -2611,6 +3573,16 @@ updateImsCallMode(callId: number, mode: ImsCallMode): Promise | ------------------- | --------------------------- | | Promise<void> | 以Promise形式异步返回结果。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -2628,7 +3600,7 @@ enableImsSwitch(slotId: number, callback: AsyncCallback): void 启用Ims开关。使用callback异步回调。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **需要权限**:ohos.permission.SET_TELEPHONY_STATE @@ -2641,6 +3613,17 @@ enableImsSwitch(slotId: number, callback: AsyncCallback): void | slotId | number | 是 | 卡槽ID。
- 0:卡槽1
- 1:卡槽2 | | callback | AsyncCallback<void> | 是 | 回调函数。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -2655,7 +3638,7 @@ enableImsSwitch(slotId: number): Promise 启用Ims开关。使用Promise异步回调。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **需要权限**:ohos.permission.SET_TELEPHONY_STATE @@ -2673,6 +3656,17 @@ enableImsSwitch(slotId: number): Promise | ------------------- | --------------------------- | | Promise<void> | 以Promise形式异步返回结果。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -2690,7 +3684,7 @@ disableImsSwitch(slotId: number, callback: AsyncCallback): void 禁用Ims开关。使用callback异步回调。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **需要权限**:ohos.permission.SET_TELEPHONY_STATE @@ -2703,6 +3697,17 @@ disableImsSwitch(slotId: number, callback: AsyncCallback): void | slotId | number | 是 | 卡槽ID。
- 0:卡槽1
- 1:卡槽2 | | callback | AsyncCallback<void> | 是 | 回调函数。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -2717,7 +3722,7 @@ disableImsSwitch(slotId: number): Promise 禁用Ims开关。使用Promise异步回调。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **需要权限**:ohos.permission.SET_TELEPHONY_STATE @@ -2735,6 +3740,17 @@ disableImsSwitch(slotId: number): Promise | ------------------- | --------------------------- | | Promise<void> | 以Promise形式异步返回结果。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -2752,7 +3768,7 @@ isImsSwitchEnabled(slotId: number, callback: AsyncCallback): void 判断Ims开关是否启用。使用callback异步回调。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **系统能力**:SystemCapability.Telephony.CallManager @@ -2763,6 +3779,16 @@ isImsSwitchEnabled(slotId: number, callback: AsyncCallback): void | slotId | number | 是 | 卡槽ID。
- 0:卡槽1
- 1:卡槽2 | | callback | AsyncCallback<boolean> | 是 | 回调函数。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -2777,7 +3803,7 @@ isImsSwitchEnabled(slotId: number): Promise 判断Ims开关是否启用。使用Promise异步回调。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **系统能力**:SystemCapability.Telephony.CallManager @@ -2793,6 +3819,16 @@ isImsSwitchEnabled(slotId: number): Promise | ------------------- | --------------------------- | | Promise<void> | 以Promise形式异步返回结果。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -2810,13 +3846,26 @@ promise.then(data => { **系统能力**:以下各项对应的系统能力均为SystemCapability.Telephony.CallManager。 +| 名称 | 类型 | 必填 | 说明 | +| ------------------------ | ---------------------------------- | ---- | ----------------------------------------------------------------------------------------------- | +| extras | boolean | 否 | 根据extras的值判断是否为视频通话,默认为语音通话。
- true:视频通话。
- false:语音通话。 | +| accountId 8+ | number | 否 | 帐户Id。
- 0:卡槽1
- 1:卡槽2
此接口为系统接口。 | +| videoState 8+ | [VideoStateType](#videostatetype7) | 否 | 视频状态类型。此接口为系统接口。 | +| dialScene 8+ | [DialScene](#dialscene8) | 否 | 拨号场景。此接口为系统接口。 | +| dialType 8+ | [DialType](#dialtype8) | 否 | 拨号类型。此接口为系统接口。 | + +## DialCallOptions9+ + +拨打电话的可选参数。 + +**系统能力**:以下各项对应的系统能力均为SystemCapability.Telephony.CallManager。 + | 名称 | 类型 | 必填 | 说明 | | ------------------------ | ---------------------------------- | ---- | ------------------------------------------------------------ | -| extras | boolean | 否 | 根据extras的值判断是否为视频通话,默认为语音通话。
- true:视频通话。
- false:语音通话。 | -| accountId 8+ | number | 否 | 帐户Id。
- 0:卡槽1
- 1:卡槽2
此接口为系统接口。 | -| videoState 8+ | [VideoStateType](#videostatetype7) | 否 | 视频状态类型。此接口为系统接口。 | -| dialScene 8+ | [DialScene](#dialscene8) | 否 | 拨号场景。此接口为系统接口。 | -| dialType 8+ | [DialType](#dialtype8) | 否 | 拨号类型。此接口为系统接口。 | +| accountId 9+ | number | 否 | 帐户Id。
- 0:卡槽1
- 1:卡槽2
此接口为系统接口。| +| videoState 9+ | [VideoStateType](#videostatetype7) | 否 | 视频状态类型。此接口为系统接口。 | +| dialScene 9+ | [DialScene](#dialscene8) | 否 | 拨号场景。此接口为系统接口。 | +| dialType 9+ | [DialType](#dialtype8) | 否 | 拨号类型。此接口为系统接口。 | ## CallState @@ -2855,7 +3904,7 @@ promise.then(data => { IP多媒体系统调用模式。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **系统能力**:以下各项对应的系统能力均为SystemCapability.Telephony.CallManager。 @@ -2871,7 +3920,7 @@ IP多媒体系统调用模式。 音频设备。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **系统能力**:以下各项对应的系统能力均为SystemCapability.Telephony.CallManager。 @@ -2887,7 +3936,7 @@ IP多媒体系统调用模式。 呼叫限制类型。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **系统能力**:以下各项对应的系统能力均为SystemCapability.Telephony.CallManager。 @@ -2906,7 +3955,7 @@ IP多媒体系统调用模式。 呼叫转移信息。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **系统能力**:以下各项对应的系统能力均为SystemCapability.Telephony.CallManager。 @@ -2924,7 +3973,7 @@ IP多媒体系统调用模式。 呼叫转移类型。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **系统能力**:以下各项对应的系统能力均为SystemCapability.Telephony.CallManager。 @@ -2939,7 +3988,7 @@ IP多媒体系统调用模式。 设置呼叫转移类型。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **系统能力**:以下各项对应的系统能力均为SystemCapability.Telephony.CallManager。 @@ -2954,7 +4003,7 @@ IP多媒体系统调用模式。 调用属性选项。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **系统能力**:以下各项对应的系统能力均为SystemCapability.Telephony.CallManager。 @@ -2975,7 +4024,7 @@ IP多媒体系统调用模式。 会议状态。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **系统能力**:以下各项对应的系统能力均为SystemCapability.Telephony.CallManager。 @@ -2990,7 +4039,7 @@ IP多媒体系统调用模式。 通话类型。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **系统能力**:以下各项对应的系统能力均为SystemCapability.Telephony.CallManager。 @@ -3005,7 +4054,7 @@ IP多媒体系统调用模式。 视频状态类型。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **系统能力**:以下各项对应的系统能力均为SystemCapability.Telephony.CallManager。 @@ -3018,7 +4067,7 @@ IP多媒体系统调用模式。 详细的呼叫状态。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **系统能力**:以下各项对应的系统能力均为SystemCapability.Telephony.CallManager。 @@ -3038,7 +4087,7 @@ IP多媒体系统调用模式。 呼叫限制信息。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **系统能力**:以下各项对应的系统能力均为SystemCapability.Telephony.CallManager。 @@ -3052,7 +4101,7 @@ IP多媒体系统调用模式。 呼叫限制模式。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **系统能力**:以下各项对应的系统能力均为SystemCapability.Telephony.CallManager。 @@ -3065,7 +4114,7 @@ IP多媒体系统调用模式。 呼叫事件的可选参数。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **系统能力**:以下各项对应的系统能力均为SystemCapability.Telephony.CallManager。 @@ -3077,7 +4126,7 @@ IP多媒体系统调用模式。 呼叫能力事件Id。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **系统能力**:以下各项对应的系统能力均为SystemCapability.Telephony.CallManager。 @@ -3090,7 +4139,7 @@ IP多媒体系统调用模式。 拨号场景。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **系统能力**:以下各项对应的系统能力均为SystemCapability.Telephony.CallManager。 @@ -3104,7 +4153,7 @@ IP多媒体系统调用模式。 拨号类型。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **系统能力**:以下各项对应的系统能力均为SystemCapability.Telephony.CallManager。 @@ -3118,7 +4167,7 @@ IP多媒体系统调用模式。 拒绝消息可选参数。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **系统能力**:以下各项对应的系统能力均为SystemCapability.Telephony.CallManager。 @@ -3130,7 +4179,7 @@ IP多媒体系统调用模式。 呼叫转移结果。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **系统能力**:以下各项对应的系统能力均为SystemCapability.Telephony.CallManager。 @@ -3147,7 +4196,7 @@ IP多媒体系统调用模式。 呼叫等待状态。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **系统能力**:以下各项对应的系统能力均为SystemCapability.Telephony.CallManager。 @@ -3160,7 +4209,7 @@ IP多媒体系统调用模式。 限制状态。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **系统能力**:以下各项对应的系统能力均为SystemCapability.Telephony.CallManager。 @@ -3173,7 +4222,7 @@ IP多媒体系统调用模式。 转移状态。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **系统能力**:以下各项对应的系统能力均为SystemCapability.Telephony.CallManager。 @@ -3186,7 +4235,7 @@ IP多媒体系统调用模式。 通话结束原因。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **系统能力**:以下各项对应的系统能力均为SystemCapability.Telephony.CallManager。 @@ -3199,7 +4248,7 @@ IP多媒体系统调用模式。 断开连接的详细信息。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **系统能力**:以下各项对应的系统能力均为SystemCapability.Telephony.CallManager。 @@ -3289,7 +4338,7 @@ IP多媒体系统调用模式。 MMI码结果。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **系统能力**:以下各项对应的系统能力均为SystemCapability.Telephony.CallManager。 @@ -3302,7 +4351,7 @@ MMI码结果。 MMI码结果。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **系统能力**:以下各项对应的系统能力均为SystemCapability.Telephony.CallManager。 @@ -3315,7 +4364,7 @@ MMI码结果。 音频设备选项。 -此接口为系统接口。 +**系统接口:** 此接口为系统接口。 **系统能力**:以下各项对应的系统能力均为SystemCapability.Telephony.CallManager。 diff --git a/zh-cn/application-dev/reference/apis/js-apis-camera.md b/zh-cn/application-dev/reference/apis/js-apis-camera.md index fdd13d2a64403baabc55f267dbd17efa72955fa3..a0e1ef64d93c3cef2a5a03b4a4324fd3320fdf39 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-camera.md +++ b/zh-cn/application-dev/reference/apis/js-apis-camera.md @@ -329,7 +329,7 @@ createPreviewOutput(profile: Profile, surfaceId: string): PreviewOutput **示例:** ```js -let profile = cameraoutputcapability.previewProfiles[0]; +let profile = cameraOutputCapability.previewProfiles[0]; let previewOutput; try { previewOutput = cameraManager.createPreviewOutput(profile, surfaceId); @@ -363,7 +363,7 @@ createPhotoOutput(profile: Profile, surfaceId: string): PhotoOutput **示例:** ```js -let profile = cameraoutputcapability.photoProfiles[0]; +let profile = cameraOutputCapability.photoProfiles[0]; let photoOutput; try { photoOutput = cameraManager.createPhotoOutput(profile, surfaceId); @@ -397,7 +397,7 @@ createVideoOutput(profile: VideoProfile, surfaceId: string): VideoOutput **示例:** ```js -let profile = cameraoutputcapability.videoProfiles[0]; +let profile = cameraOutputCapability.videoProfiles[0]; let videoOutput; try { videoOutput = cameraManager.createVideoOutput(profile, surfaceId); @@ -430,7 +430,7 @@ createMetadataOutput(metadataObjectTypes:Array): MetadataOu **示例:** ```js -let metadataObjectTypes = cameraoutputcapability.supportedMetadataObjectTypes; +let metadataObjectTypes = cameraOutputCapability.supportedMetadataObjectTypes; let metadataOutput; try { metadataOutput = cameraManager.createMetadataOutput(metadataObjectTypes); diff --git a/zh-cn/application-dev/reference/apis/js-apis-cert.md b/zh-cn/application-dev/reference/apis/js-apis-cert.md index c629d49bab2e59319c06abec8557a7dc5791904d..8ee8bd2309e88546bc98bdb344d8e2757f86bfac 100755 --- a/zh-cn/application-dev/reference/apis/js-apis-cert.md +++ b/zh-cn/application-dev/reference/apis/js-apis-cert.md @@ -115,7 +115,7 @@ let encodingData = null; let encodingBlob = { data: encodingData, // 根据encodingData的格式进行赋值,支持FORMAT_PEM和FORMAT_DER - encodingFormat: cryptoFramework.EncodingFormat.FORMAT_PEM + encodingFormat: cryptoCert.EncodingFormat.FORMAT_PEM }; cryptoCert.createX509Cert(encodingBlob, function (error, x509Cert) { if (error != null) { @@ -189,7 +189,6 @@ verify(key : cryptoFramework.PubKey, callback : AsyncCallback\) : void ```js import cryptoCert from '@ohos.security.cert'; -import cryptoFramework from "@ohos.security.cryptoFramework" // 证书二进制数据,需业务自行赋值 let encodingData = null; @@ -250,7 +249,7 @@ let encodingBlob = { }; cryptoCert.createX509Cert(encodingBlob).then(x509Cert => { console.log("createX509Cert success"); - // 业务需通过AsyKeyGenerator生成PubKey或通过上级X509Cert证书对象的getPublicKey获取PubKey + // 业务可通过上级X509Cert证书对象的getPublicKey获取PubKey let pubKey = null; x509Cert.verify(pubKey).then(result => { console.log("verify success"); @@ -1217,7 +1216,7 @@ cryptoCert.createX509Crl(encodingBlob).then(x509Crl => { verify(key : cryptoFramework.PubKey, callback : AsyncCallback\) : void -表示对X509证书吊销列表进行验签。 +表示对X509证书吊销列表进行验签。验签支持RSA算法。 **系统能力:** SystemCapability.Security.Cert @@ -1225,7 +1224,7 @@ verify(key : cryptoFramework.PubKey, callback : AsyncCallback\) : void | 参数名 | 类型 | 必填 | 说明 | | -------- | -------------------- | ---- | ------------------------------------------------------------ | -| key | cryptoFramework.PubKey | 是 | 表示用于验签的公钥对象 | +| key | cryptoFramework.PubKey | 是 | 表示用于验签的公钥对象 | | callback | AsyncCallback\ | 是 | 回调函数,使用AsyncCallback的第一个error参数判断是否验签成功,error为null表示成功,error不为null表示失败。 | @@ -1264,7 +1263,7 @@ cryptoCert.createX509Crl(encodingBlob, function (error, x509Crl) { verify(key : cryptoFramework.PubKey) : Promise\ -表示对X509证书吊销列表进行验签。 +表示对X509证书吊销列表进行验签。验签支持RSA算法。 **系统能力:** SystemCapability.Security.Cert @@ -1272,7 +1271,7 @@ verify(key : cryptoFramework.PubKey) : Promise\ | 参数名 | 类型 | 必填 | 说明 | | ------ | ------ | ---- | ---------------------- | -| key | cryptoFramework.PubKey | 是 | 表示用于验签的公钥对象 | +| key | cryptoFramework.PubKey | 是 | 表示用于验签的公钥对象。 | **返回值**: @@ -2061,7 +2060,7 @@ getCertIssuer() : DataBlob **返回值**: | 类型 | 说明 | -| --------------------- | ---------------------- - | +| --------------------- | ----------------------- | | [DataBlob](#datablob) | 表示被吊销证书的颁发者信息 | **示例:** diff --git a/zh-cn/application-dev/reference/apis/js-apis-commonEvent.md b/zh-cn/application-dev/reference/apis/js-apis-commonEvent.md index cbfe4aaf6e513d236492609b04f8344906eba267..6bb571dc95c24ed6e728b5006cd4b3d33281e8a6 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-commonEvent.md +++ b/zh-cn/application-dev/reference/apis/js-apis-commonEvent.md @@ -42,7 +42,7 @@ publish(event: string, callback: AsyncCallback): void //发布公共事件回调 function publishCB(err) { if (err.code) { - console.error("publish failed " + JSON.stringify(err)); + console.error(`publish failed, code is ${err.code}`); } else { console.info("publish"); } @@ -84,7 +84,7 @@ let options = { //发布公共事件回调 function publishCB(err) { if (err.code) { - console.error("publish failed " + JSON.stringify(err)); + console.error(`publish failed, code is ${err.code}`); } else { console.info("publish"); } @@ -117,19 +117,19 @@ publishAsUser(event: string, userId: number, callback: AsyncCallback): voi **示例:** ```ts -//发布公共事件回调 +// 发布公共事件回调 function publishCB(err) { if (err.code) { - console.error("publishAsUser failed " + JSON.stringify(err)); + console.error(`publishAsUser failed, code is ${err.code}`); } else { console.info("publishAsUser"); } } -//指定发送的用户 +// 指定发送的用户 let userId = 100; -//发布公共事件 +// 发布公共事件 CommonEvent.publishAsUser("event", userId, publishCB); ``` @@ -158,25 +158,25 @@ publishAsUser(event: string, userId: number, options: CommonEventPublishData, ca ```ts -//公共事件相关信息 +// 公共事件相关信息 let options = { - code: 0, //公共事件的初始代码 - data: "initial data",//公共事件的初始数据 + code: 0, // 公共事件的初始代码 + data: "initial data",// 公共事件的初始数据 } -//发布公共事件回调 +// 发布公共事件回调 function publishCB(err) { if (err.code) { - console.error("publishAsUser failed " + JSON.stringify(err)); + console.error(`publishAsUser failed, code is ${err.code}`); } else { console.info("publishAsUser"); } } -//指定发送的用户 +// 指定发送的用户 let userId = 100; -//发布公共事件 +// 发布公共事件 CommonEvent.publishAsUser("event", userId, options, publishCB); ``` @@ -201,24 +201,24 @@ createSubscriber(subscribeInfo: CommonEventSubscribeInfo, callback: AsyncCallbac ```ts -let subscriber; //用于保存创建成功的订阅者对象,后续使用其完成订阅及退订的动作 +let subscriber; // 用于保存创建成功的订阅者对象,后续使用其完成订阅及退订的动作 -//订阅者信息 +// 订阅者信息 let subscribeInfo = { events: ["event"] }; -//创建订阅者回调 +// 创建订阅者回调 function createCB(err, commonEventSubscriber) { if (err.code) { - console.error("createSubscriber failed " + JSON.stringify(err)); + console.error(`createSubscriber failed, code is ${err.code}`); } else { console.info("createSubscriber"); subscriber = commonEventSubscriber; } } -//创建订阅者 +// 创建订阅者 CommonEvent.createSubscriber(subscribeInfo, createCB); ``` @@ -246,19 +246,19 @@ createSubscriber(subscribeInfo: CommonEventSubscribeInfo): Promise { console.info("createSubscriber"); subscriber = commonEventSubscriber; }).catch((err) => { - console.error("createSubscriber failed " + JSON.stringify(err)); + console.error(`createSubscriber failed, code is ${err.code}`); }); ``` @@ -282,34 +282,34 @@ subscribe(subscriber: CommonEventSubscriber, callback: AsyncCallback): **示例:** ```ts -let subscriber; //用于保存创建成功的订阅者对象,后续使用其完成订阅及退订的动作 +let subscriber; // 用于保存创建成功的订阅者对象,后续使用其完成订阅及退订的动作 -//订阅者信息 +// 订阅者信息 let subscribeInfo = { events: ["event"] }; -//订阅公共事件回调 +// 订阅公共事件回调 function subscribeCB(err, data) { if (err.code) { - console.info("subscribe failed " + JSON.stringify(err)); + console.error(`subscribe failed, code is ${err.code}`); } else { console.info("subscribe " + JSON.stringify(data)); } } -//创建订阅者回调 +// 创建订阅者回调 function createCB(err, commonEventSubscriber) { if (err.code) { - console.info("createSubscriber failed " + JSON.stringify(err)); + console.error(`createSubscriber failed, code is ${err.code}`); } else { console.info("createSubscriber"); subscriber = commonEventSubscriber; - //订阅公共事件 + // 订阅公共事件 CommonEvent.subscribe(subscriber, subscribeCB); } } -//取消订阅公共事件回调 +// 取消订阅公共事件回调 function unsubscribeCB(err) { if (err.code) { - console.info("unsubscribe failed " + JSON.stringify(err)); + console.error(`unsubscribe failed, code is ${err.code}`); } else { console.info("unsubscribe"); } } -//创建订阅者 +// 创建订阅者 CommonEvent.createSubscriber(subscribeInfo, createCB); -//取消订阅公共事件 +// 取消订阅公共事件 CommonEvent.unsubscribe(subscriber, unsubscribeCB); ``` @@ -398,12 +398,12 @@ getCode(callback: AsyncCallback): void **示例:** ```ts -let subscriber; //创建成功的订阅者对象 +let subscriber; // 创建成功的订阅者对象 -//获取有序公共事件的结果代码回调 +// 获取有序公共事件的结果代码回调 function getCodeCB(err, Code) { if (err.code) { - console.error("getCode failed " + JSON.stringify(err)); + console.error(`getCode failed, code is ${err.code}`); } else { console.info("getCode " + JSON.stringify(Code)); } @@ -430,12 +430,12 @@ getCode(): Promise **示例:** ```ts -let subscriber; //创建成功的订阅者对象 +let subscriber; // 创建成功的订阅者对象 subscriber.getCode().then((code) => { console.info("getCode " + JSON.stringify(code)); }).catch((err) => { - console.error("getCode failed " + JSON.stringify(err)); + console.error(`getCode failed, code is ${err.code}`); }); ``` @@ -459,12 +459,12 @@ setCode(code: number, callback: AsyncCallback): void **示例:** ```ts -let subscriber; //创建成功的订阅者对象 +let subscriber; // 创建成功的订阅者对象 -//设置有序公共事件的结果代码回调 +// 设置有序公共事件的结果代码回调 function setCodeCB(err) { if (err.code) { - console.error("setCode failed " + JSON.stringify(err)); + console.error(`setCode failed, code is ${err.code}`); } else { console.info("setCode"); } @@ -497,12 +497,12 @@ setCode(code: number): Promise **示例:** ```ts -let subscriber; //创建成功的订阅者对象 +let subscriber; // 创建成功的订阅者对象 subscriber.setCode(1).then(() => { console.info("setCode"); }).catch((err) => { - console.error("setCode failed " + JSON.stringify(err)); + console.error(`setCode failed, code is ${err.code}`); }); ``` @@ -525,12 +525,12 @@ getData(callback: AsyncCallback): void **示例:** ```ts -let subscriber; //创建成功的订阅者对象 +let subscriber; // 创建成功的订阅者对象 -//获取有序公共事件的结果数据回调 +// 获取有序公共事件的结果数据回调 function getDataCB(err, data) { if (err.code) { - console.error("getData failed " + JSON.stringify(err)); + console.error(`getData failed, code is ${err.code}`); } else { console.info("getData " + JSON.stringify(data)); } @@ -558,12 +558,12 @@ getData(): Promise **示例:** ```ts -let subscriber; //创建成功的订阅者对象 +let subscriber; // 创建成功的订阅者对象 subscriber.getData().then((data) => { console.info("getData " + JSON.stringify(data)); }).catch((err) => { - console.error("getData failed " + JSON.stringify(err)); + console.error(`getData failed, code is ${err.code}`); }); ``` @@ -587,12 +587,12 @@ setData(data: string, callback: AsyncCallback): void **示例:** ```ts -let subscriber; //创建成功的订阅者对象 +let subscriber; // 创建成功的订阅者对象 -//设置有序公共事件的结果数据回调 +// 设置有序公共事件的结果数据回调 function setDataCB(err) { if (err.code) { - console.error("setData failed " + JSON.stringify(err)); + console.error(`sendData failed, code is ${err.code}`); } else { console.info("setData"); } @@ -625,12 +625,12 @@ setData(data: string): Promise **示例:** ```ts -let subscriber; //创建成功的订阅者对象 +let subscriber; // 创建成功的订阅者对象 subscriber.setData("publish_data_changed").then(() => { console.info("setData"); }).catch((err) => { - console.error("setData failed " + JSON.stringify(err)); + console.error(`setData failed, code is ${err.code}`); }); ``` @@ -655,12 +655,12 @@ setCodeAndData(code: number, data: string, callback:AsyncCallback): void **示例:** ```ts -let subscriber; //创建成功的订阅者对象 +let subscriber; // 创建成功的订阅者对象 -//设置有序公共事件的结果代码和结果数据回调 +// 设置有序公共事件的结果代码和结果数据回调 function setCodeDataCB(err) { if (err.code) { - console.error("setCodeAndData failed " + JSON.stringify(err)); + console.error(`setCodeAndData failed, code is ${err.code}`); } else { console.info("setCodeDataCallback"); } @@ -695,12 +695,12 @@ setCodeAndData(code: number, data: string): Promise **示例:** ```ts -let subscriber; //创建成功的订阅者对象 +let subscriber; // 创建成功的订阅者对象 subscriber.setCodeAndData(1, "publish_data_changed").then(() => { console.info("setCodeAndData"); }).catch((err) => { - console.info("setCodeAndData failed " + JSON.stringify(err)); + console.error(`setCodeAndData failed, code is ${err.code}`); }); ``` @@ -725,12 +725,12 @@ isOrderedCommonEvent(callback: AsyncCallback): void **示例:** ```ts -let subscriber; //创建成功的订阅者对象 +let subscriber; // 创建成功的订阅者对象 -//获取当前公共事件是否为有序事件的回调 +// 获取当前公共事件是否为有序事件的回调 function isOrderedCB(err, isOrdered) { if (err.code) { - console.error("isOrderedCommonEvent failed " + JSON.stringify(err)); + console.error(`isOrderedCommonEvent failed, code is ${err.code}`); } else { console.info("isOrdered " + JSON.stringify(isOrdered)); } @@ -759,12 +759,12 @@ isOrderedCommonEvent(): Promise **示例:** ```ts -let subscriber; //创建成功的订阅者对象 +let subscriber; // 创建成功的订阅者对象 subscriber.isOrderedCommonEvent().then((isOrdered) => { console.info("isOrdered " + JSON.stringify(isOrdered)); }).catch((err) => { - console.error("isOrdered failed " + JSON.stringify(err)); + console.error(`isOrderedCommonEvent failed, code is ${err.code}`); }); ``` @@ -789,12 +789,12 @@ isStickyCommonEvent(callback: AsyncCallback): void **示例:** ```ts -let subscriber; //创建成功的订阅者对象 +let subscriber; // 创建成功的订阅者对象 -//获取当前公共事件是否为粘性事件的回调 +// 获取当前公共事件是否为粘性事件的回调 function isStickyCB(err, isSticky) { if (err.code) { - console.error("isStickyCommonEvent failed " + JSON.stringify(err)); + console.error(`isStickyCommonEvent failed, code is ${err.code}`); } else { console.info("isSticky " + JSON.stringify(isSticky)); } @@ -823,12 +823,12 @@ isStickyCommonEvent(): Promise **示例:** ```ts -let subscriber; //创建成功的订阅者对象 +let subscriber; // 创建成功的订阅者对象 subscriber.isStickyCommonEvent().then((isSticky) => { console.info("isSticky " + JSON.stringify(isSticky)); }).catch((err) => { - console.error("isSticky failed " + JSON.stringify(err)); + console.error(`isSticky failed, code is ${err.code}`); }); ``` @@ -851,12 +851,12 @@ abortCommonEvent(callback: AsyncCallback): void **示例:** ```ts -let subscriber; //创建成功的订阅者对象 +let subscriber; // 创建成功的订阅者对象 -//取消当前有序公共事件的回调 +// 取消当前有序公共事件的回调 function abortCB(err) { if (err.code) { - console.error("abortCommonEvent failed " + JSON.stringify(err)); + console.error(`abortCommonEvent failed, code is ${err.code}`); } else { console.info("abortCommonEvent"); } @@ -884,12 +884,12 @@ abortCommonEvent(): Promise **示例:** ```ts -let subscriber; //创建成功的订阅者对象 +let subscriber; // 创建成功的订阅者对象 subscriber.abortCommonEvent().then(() => { console.info("abortCommonEvent"); }).catch((err) => { - console.error("abortCommonEvent failed " + JSON.stringify(err)); + console.error(`abortCommonEvent failed, code is ${err.code}`); }); ``` @@ -912,12 +912,12 @@ clearAbortCommonEvent(callback: AsyncCallback): void **示例:** ```ts -let subscriber; //创建成功的订阅者对象 +let subscriber; // 创建成功的订阅者对象 -//清除当前公共事件取消状态的回调 +// 清除当前公共事件取消状态的回调 function clearAbortCB(err) { if (err.code) { - console.error("clearAbortCommonEvent failed " + JSON.stringify(err)); + console.error(`clearAbortCommonEvent failed, code is ${err.code}`); } else { console.info("clearAbortCommonEvent"); } @@ -945,12 +945,12 @@ clearAbortCommonEvent(): Promise **示例:** ```ts -let subscriber; //创建成功的订阅者对象 +let subscriber; // 创建成功的订阅者对象 subscriber.clearAbortCommonEvent().then(() => { console.info("clearAbortCommonEvent"); }).catch((err) => { - console.error("clearAbortCommonEvent failed " + JSON.stringify(err)); + console.error(`clearAbortCommonEvent failed, code is ${err.code}`); }); ``` @@ -973,12 +973,12 @@ getAbortCommonEvent(callback: AsyncCallback): void **示例:** ```ts -let subscriber; //创建成功的订阅者对象 +let subscriber; // 创建成功的订阅者对象 -//获取当前有序公共事件是否取消的回调 +// 获取当前有序公共事件是否取消的回调 function getAbortCB(err, abortEvent) { if (err.code) { - console.error("getAbortCommonEvent failed " + JSON.stringify(err)); + console.error(`getAbortCommonEvent failed, code is ${err.code}`); } else { console.info("abortEvent " + abortEvent) } @@ -1006,12 +1006,12 @@ getAbortCommonEvent(): Promise **示例:** ```ts -let subscriber; //创建成功的订阅者对象 +let subscriber; // 创建成功的订阅者对象 subscriber.getAbortCommonEvent().then((abortCommonEvent) => { console.info("abortCommonEvent " + JSON.stringify(abortCommonEvent)); }).catch((err) => { - console.error("getAbortCommonEvent failed " + JSON.stringify(err)); + console.error(`getAbortCommonEvent failed, code is ${err.code}`); }); ``` @@ -1034,12 +1034,12 @@ getSubscribeInfo(callback: AsyncCallback): void **示例:** ```ts -let subscriber; //创建成功的订阅者对象 +let subscriber; // 创建成功的订阅者对象 -//获取订阅者信息回调 +// 获取订阅者信息回调 function getCB(err, subscribeInfo) { if (err.code) { - console.error("getSubscribeInfo failed " + JSON.stringify(err)); + console.error(`getSubscribeInfo failed, code is ${err.code}`); } else { console.info("SubscribeInfo " + JSON.stringify(subscribeInfo)); } @@ -1067,12 +1067,12 @@ getSubscribeInfo(): Promise **示例:** ```ts -let subscriber; //创建成功的订阅者对象 +let subscriber; // 创建成功的订阅者对象 subscriber.getSubscribeInfo().then((subscribeInfo) => { console.info("subscribeInfo " + JSON.stringify(subscribeInfo)); }).catch((err) => { - console.error("getSubscribeInfo failed " + JSON.stringify(err)); + console.error(`getSubscribeInfo failed, code is ${err.code}`); }); ``` @@ -1095,12 +1095,12 @@ finishCommonEvent(callback: AsyncCallback): void **示例:** ```ts -let subscriber; //创建成功的订阅者对象 +let subscriber; // 创建成功的订阅者对象 -//结束当前有序公共事件的回调 +// 结束当前有序公共事件的回调 function finishCB(err) { if (err.code) { - console.error("finishCommonEvent failed " + JSON.stringify(err)); + console.error(`finishCommonEvent failed, code is ${err.code}`); } else { console.info("FinishCommonEvent"); } @@ -1128,12 +1128,12 @@ finishCommonEvent(): Promise **示例:** ```ts -let subscriber; //创建成功的订阅者对象 +let subscriber; // 创建成功的订阅者对象 subscriber.finishCommonEvent().then(() => { console.info("FinishCommonEvent"); }).catch((err) => { - console.error("finishCommonEvent failed " + JSON.stringify(err)); + console.error(`finishCommonEvent failed, code is ${err.code}`); }); ``` diff --git a/zh-cn/application-dev/reference/apis/js-apis-commonEventManager.md b/zh-cn/application-dev/reference/apis/js-apis-commonEventManager.md index bf651bfeb5d01b7c1be243df43ce305d60f27bff..8873bc0e67a8cd392da2d1c7813c9cf66fafbd26 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-commonEventManager.md +++ b/zh-cn/application-dev/reference/apis/js-apis-commonEventManager.md @@ -45,7 +45,7 @@ publish(event: string, callback: AsyncCallback): void //发布公共事件回调 function publishCB(err) { if (err) { - console.error("publish failed " + JSON.stringify(err)); + console.error(`publish failed, code is ${err.code}, message is ${err.message}`); } else { console.info("publish"); } @@ -55,7 +55,7 @@ function publishCB(err) { try { CommonEventManager.publish("event", publishCB); } catch(err) { - console.error('publish failed, catch error' + JSON.stringify(err)); + console.error(`publish failed, code is ${err.code}, message is ${err.message}`); } ``` @@ -94,7 +94,7 @@ let options = { //发布公共事件回调 function publishCB(err) { if (err) { - console.error("publish failed " + JSON.stringify(err)); + console.error(`publish failed, code is ${err.code}, message is ${err.message}`); } else { console.info("publish"); } @@ -104,7 +104,7 @@ function publishCB(err) { try { CommonEventManager.publish("event", options, publishCB); } catch (err) { - console.error('publish failed, catch error' + JSON.stringify(err)); + console.error(`publish failed, code is ${err.code}, message is ${err.message}`); } ``` @@ -138,7 +138,7 @@ publishAsUser(event: string, userId: number, callback: AsyncCallback): voi //发布公共事件回调 function publishCB(err) { if (err) { - console.error("publishAsUser failed " + JSON.stringify(err)); + console.error(`publishAsUser failed, code is ${err.code}, message is ${err.message}`); } else { console.info("publishAsUser"); } @@ -151,7 +151,7 @@ let userId = 100; try { CommonEventManager.publishAsUser("event", userId, publishCB); } catch (err) { - console.error('publishAsUser failed, catch error' + JSON.stringify(err)); + console.error(`publishAsUser failed, code is ${err.code}, message is ${err.message}`); } ``` @@ -193,7 +193,7 @@ let options = { //发布公共事件回调 function publishCB(err) { if (err) { - console.error("publishAsUser failed " + JSON.stringify(err)); + console.error(`publishAsUser failed, code is ${err.code}, message is ${err.message}`); } else { console.info("publishAsUser"); } @@ -206,7 +206,7 @@ let userId = 100; try { CommonEventManager.publishAsUser("event", userId, options, publishCB); } catch (err) { - console.error('publishAsUser failed, catch error' + JSON.stringify(err)); + console.error(`publishAsUser failed, code is ${err.code}, message is ${err.message}`); } ``` @@ -244,7 +244,7 @@ function createCB(err, commonEventSubscriber) { console.info("createSubscriber"); subscriber = commonEventSubscriber; } else { - console.error("createSubscriber failed " + JSON.stringify(err)); + console.error(`createSubscriber failed, code is ${err.code}, message is ${err.message}`); } } @@ -252,7 +252,7 @@ function createCB(err, commonEventSubscriber) { try { CommonEventManager.createSubscriber(subscribeInfo, createCB); } catch (err) { - console.error('createSubscriber failed, catch error' + JSON.stringify(err)); + console.error(`createSubscriber failed, code is ${err.code}, message is ${err.message}`); } ``` @@ -292,7 +292,7 @@ CommonEventManager.createSubscriber(subscribeInfo).then((commonEventSubscriber) console.info("createSubscriber"); subscriber = commonEventSubscriber; }).catch((err) => { - console.error("createSubscriber failed " + JSON.stringify(err)); + console.error(`createSubscriber failed, code is ${err.code}, message is ${err.message}`); }); ``` @@ -328,7 +328,7 @@ let subscribeInfo = { //订阅公共事件回调 function SubscribeCB(err, data) { if (err.code) { - console.error("subscribe failed " + JSON.stringify(err)); + console.error(`subscribe failed, code is ${err.code}, message is ${err.message}`); } else { console.info("subscribe "); } @@ -342,10 +342,10 @@ function createCB(err, subscriber) { try { CommonEventManager.subscribe(subscriber, SubscribeCB); } catch (err) { - console.error("createSubscriber failed " + JSON.stringify(err)); + console.error(`subscribe failed, code is ${err.code}, message is ${err.message}`); } } else { - console.error("createSubscriber failed " + JSON.stringify(err)); + console.error(`createSubscriber failed, code is ${err.code}, message is ${err.message}`); } } @@ -353,7 +353,7 @@ function createCB(err, subscriber) { try { CommonEventManager.createSubscriber(subscribeInfo, createCB); } catch (err) { - console.error('createSubscriber failed, catch error' + JSON.stringify(err)); + console.error(`createSubscriber failed, code is ${err.code}, message is ${err.message}`); } ``` @@ -385,7 +385,7 @@ let subscribeInfo = { //订阅公共事件回调 function subscribeCB(err, data) { if (err) { - console.info("subscribe failed " + JSON.stringify(err)); + console.error(`subscribe failed, code is ${err.code}, message is ${err.message}`); } else { console.info("subscribe"); } @@ -393,21 +393,21 @@ function subscribeCB(err, data) { //创建订阅者回调 function createCB(err, subscriber) { if (err) { - console.info("createSubscriber failed " + JSON.stringify(err)); + console.error(`createSubscriber failed, code is ${err.code}, message is ${err.message}`); } else { console.info("createSubscriber"); //订阅公共事件 try { CommonEventManager.subscribe(subscriber, subscribeCB); } catch(err) { - console.info("subscribe failed " + JSON.stringify(err)); + console.error(`subscribe failed, code is ${err.code}, message is ${err.message}`); } } } //取消订阅公共事件回调 function unsubscribeCB(err) { if (err) { - console.info("unsubscribe failed " + JSON.stringify(err)); + console.error(`unsubscribe failed, code is ${err.code}, message is ${err.message}`); } else { console.info("unsubscribe"); } @@ -416,14 +416,14 @@ function unsubscribeCB(err) { try { CommonEventManager.createSubscriber(subscribeInfo, createCB); } catch (err) { - console.info("createSubscriber failed " + JSON.stringify(err)); + console.error(`createSubscriber failed, code is ${err.code}, message is ${err.message}`); } //取消订阅公共事件 try { CommonEventManager.unsubscribe(subscriber, unsubscribeCB); } catch (err) { - console.info("unsubscribe failed " + JSON.stringify(err)); + console.error(`unsubscribe failed, code is ${err.code}, message is ${err.message}`); } ``` @@ -453,7 +453,7 @@ let subscriber; //创建成功的订阅者对象 //获取有序公共事件代码回调 function getCodeCB(err, code) { if (err.code) { - console.error("getCode failed " + JSON.stringify(err)); + console.error(`getCode failed, code is ${err.code}, message is ${err.message}`); } else { console.info("getCode " + JSON.stringify(code)); } @@ -485,7 +485,7 @@ let subscriber; //创建成功的订阅者对象 subscriber.getCode().then((code) => { console.info("getCode " + JSON.stringify(code)); }).catch((err) => { - console.error("getCode failed " + JSON.stringify(err)); + console.error(`getCode failed, code is ${err.code}, message is ${err.message}`); }); ``` @@ -514,7 +514,7 @@ let subscriber; //创建成功的订阅者对象 //设置有序公共事件的代码回调 function setCodeCB(err) { if (err.code) { - console.error("setCode failed " + JSON.stringify(err)); + console.error(`setCode failed, code is ${err.code}, message is ${err.message}`); } else { console.info("setCode"); } @@ -552,7 +552,7 @@ let subscriber; //创建成功的订阅者对象 subscriber.setCode(1).then(() => { console.info("setCode"); }).catch((err) => { - console.error("setCode failed " + JSON.stringify(err)); + console.error(`setCode failed, code is ${err.code}, message is ${err.message}`); }); ``` @@ -580,7 +580,7 @@ let subscriber; //创建成功的订阅者对象 //获取有序公共事件代码数据回调 function getDataCB(err, data) { if (err.code) { - console.error("getData failed " + JSON.stringify(err)); + console.error(`getData failed, code is ${err.code}, message is ${err.message}`); } else { console.info("getData " + JSON.stringify(data)); } @@ -612,7 +612,7 @@ let subscriber; //创建成功的订阅者对象 subscriber.getData().then((data) => { console.info("getData " + JSON.stringify(data)); }).catch((err) => { - console.error("getData failed " + JSON.stringify(err)); + console.error(`getData failed, code is ${err.code}, message is ${err.message}`); }); ``` @@ -639,7 +639,7 @@ let subscriber; //创建成功的订阅者对象 //设置有序公共事件的结果数据回调 function setDataCB(err) { if (err.code) { - console.error("setData failed " + JSON.stringify(err)); + console.error(`setCode failed, code is ${err.code}, message is ${err.message}`); } else { console.info("setData"); } @@ -677,7 +677,7 @@ let subscriber; //创建成功的订阅者对象 subscriber.setData("publish_data_changed").then(() => { console.info("setData"); }).catch((err) => { - console.error("setData failed " + JSON.stringify(err)); + console.error(`setCode failed, code is ${err.code}, message is ${err.message}`); }); ``` @@ -707,7 +707,7 @@ let subscriber; //创建成功的订阅者对象 //设置有序公共事件的代码和数据回调 function setCodeDataCB(err) { if (err.code) { - console.error("setCodeAndData failed " + JSON.stringify(err)); + console.error(`setCodeAndData failed, code is ${err.code}, message is ${err.message}`); } else { console.info("setCodeDataCallback"); } @@ -746,7 +746,7 @@ let subscriber; //创建成功的订阅者对象 subscriber.setCodeAndData(1, "publish_data_changed").then(() => { console.info("setCodeAndData"); }).catch((err) => { - console.info("setCodeAndData failed " + JSON.stringify(err)); + console.error(`setCodeAndData failed, code is ${err.code}, message is ${err.message}`); }); ``` @@ -776,7 +776,7 @@ let subscriber; //创建成功的订阅者对象 //获取当前公共事件是否为有序事件的回调 function isOrderedCB(err, isOrdered) { if (err.code) { - console.error("isOrderedCommonEvent failed " + JSON.stringify(err)); + console.error(`isOrderedCommonEvent failed, code is ${err.code}, message is ${err.message}`); } else { console.info("isOrdered " + JSON.stringify(isOrdered)); } @@ -810,7 +810,7 @@ let subscriber; //创建成功的订阅者对象 subscriber.isOrderedCommonEvent().then((isOrdered) => { console.info("isOrdered " + JSON.stringify(isOrdered)); }).catch((err) => { - console.error("isOrdered failed " + JSON.stringify(err)); + console.error(`isOrdered failed, code is ${err.code}, message is ${err.message}`); }); ``` @@ -840,7 +840,7 @@ let subscriber; //创建成功的订阅者对象 //获取当前公共事件是否为粘性事件的回调 function isStickyCB(err, isSticky) { if (err.code) { - console.error("isStickyCommonEvent failed " + JSON.stringify(err)); + console.error(`isStickyCommonEvent failed, code is ${err.code}, message is ${err.message}`); } else { console.info("isSticky " + JSON.stringify(isSticky)); } @@ -874,7 +874,7 @@ let subscriber; //创建成功的订阅者对象 subscriber.isStickyCommonEvent().then((isSticky) => { console.info("isSticky " + JSON.stringify(isSticky)); }).catch((err) => { - console.error("isSticky failed " + JSON.stringify(err)); + console.error(`isSticky failed, code is ${err.code}, message is ${err.message}`); }); ``` @@ -902,7 +902,7 @@ let subscriber; //创建成功的订阅者对象 //取消当前有序公共事件的回调 function abortCB(err) { if (err.code) { - console.error("abortCommonEvent failed " + JSON.stringify(err)); + console.error(`abortCommonEvent failed, code is ${err.code}, message is ${err.message}`); } else { console.info("abortCommonEvent"); } @@ -934,7 +934,7 @@ let subscriber; //创建成功的订阅者对象 subscriber.abortCommonEvent().then(() => { console.info("abortCommonEvent"); }).catch((err) => { - console.error("abortCommonEvent failed " + JSON.stringify(err)); + console.error(`abortCommonEvent failed, code is ${err.code}, message is ${err.message}`); }); ``` @@ -962,7 +962,7 @@ let subscriber; //创建成功的订阅者对象 //清除当前公共事件取消状态的回调 function clearAbortCB(err) { if (err.code) { - console.error("clearAbortCommonEvent failed " + JSON.stringify(err)); + console.error(`clearAbortCommonEvent failed, code is ${err.code}, message is ${err.message}`); } else { console.info("clearAbortCommonEvent"); } @@ -994,7 +994,7 @@ let subscriber; //创建成功的订阅者对象 subscriber.clearAbortCommonEvent().then(() => { console.info("clearAbortCommonEvent"); }).catch((err) => { - console.error("clearAbortCommonEvent failed " + JSON.stringify(err)); + console.error(`clearAbortCommonEvent failed, code is ${err.code}, message is ${err.message}`); }); ``` @@ -1022,7 +1022,7 @@ let subscriber; //创建成功的订阅者对象 //获取当前有序公共事件是否取消的回调 function getAbortCB(err, abortEvent) { if (err.code) { - console.error("getAbortCommonEvent failed " + JSON.stringify(err)); + console.error(`getAbortCommonEvent failed, code is ${err.code}, message is ${err.message}`); } else { console.info("abortCommonEvent " + abortEvent) } @@ -1054,7 +1054,7 @@ let subscriber; //创建成功的订阅者对象 subscriber.getAbortCommonEvent().then((abortEvent) => { console.info("abortCommonEvent " + JSON.stringify(abortEvent)); }).catch((err) => { - console.error("getAbortCommonEvent failed " + JSON.stringify(err)); + console.error(`getAbortCommonEvent failed, code is ${err.code}, message is ${err.message}`); }); ``` @@ -1082,7 +1082,7 @@ let subscriber; //创建成功的订阅者对象 //获取订阅者信息回调 function getCB(err, subscribeInfo) { if (err.code) { - console.error("getSubscribeInfo failed " + JSON.stringify(err)); + console.error(`getSubscribeInfo failed, code is ${err.code}, message is ${err.message}`); } else { console.info("subscribeInfo " + JSON.stringify(subscribeInfo)); } @@ -1114,7 +1114,7 @@ let subscriber; //创建成功的订阅者对象 subscriber.getSubscribeInfo().then((subscribeInfo) => { console.info("subscribeInfo " + JSON.stringify(subscribeInfo)); }).catch((err) => { - console.error("getSubscribeInfo failed " + JSON.stringify(err)); + console.error(`getSubscribeInfo failed, code is ${err.code}, message is ${err.message}`); }); ``` @@ -1142,11 +1142,11 @@ let subscriber; //创建成功的订阅者对象 //结束当前有序公共事件的回调 function finishCB(err) { if (err.code) { - console.error("finishCommonEvent failed " + JSON.stringify(err)); + console.error(`finishCommonEvent failed, code is ${err.code}, message is ${err.message}`); } else { console.info("FinishCommonEvent"); } -} + subscriber.finishCommonEvent(finishCB); ``` @@ -1174,7 +1174,7 @@ let subscriber; //创建成功的订阅者对象 subscriber.finishCommonEvent().then(() => { console.info("FinishCommonEvent"); }).catch((err) => { - console.error("finishCommonEvent failed " + JSON.stringify(err)); + console.error(`finishCommonEvent failed, code is ${err.code}, message is ${err.message}`); }); ``` diff --git a/zh-cn/application-dev/reference/apis/js-apis-cryptoFramework.md b/zh-cn/application-dev/reference/apis/js-apis-cryptoFramework.md index 93ee99fb63e688a37a14f4a58b23dcd6034fe540..64c706d77b7de28ef13e9a4da2580cd076ea0607 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-cryptoFramework.md +++ b/zh-cn/application-dev/reference/apis/js-apis-cryptoFramework.md @@ -91,7 +91,7 @@ Mac类,调用Mac方法可以进行MAC(Message Authentication Code)加密 ### init -init(key : SymKey, callback : AsyncCallback\) : void; +init(key : SymKey, callback : AsyncCallback\) : void; 使用对称密钥初始化Mac计算 @@ -324,7 +324,7 @@ var mac; try { mac = cryptoFramework.createMac("SHA256"); } catch (error) { - console.error("[Callback]: error code: " + error.code + ", message is: " + error.message); + console.error("[Callback]: error code: " + error.code + ", message is: " + error.message); } var symKeyGenerator = cryptoFramework.createSymKeyGenerator("AES128"); symKeyGenerator.convertKey(KeyBlob, (err, symKey) => { @@ -382,7 +382,7 @@ var mac; try { mac = cryptoFramework.createMac("SHA256"); } catch (error) { - console.error("[Promise]: error code: " + error.code + ", message is: " + error.message); + console.error("[Promise]: error code: " + error.code + ", message is: " + error.message); } console.error("Mac algName is: " + mac.algName); @@ -769,7 +769,7 @@ import cryptoFramework from "@ohos.security.cryptoFramework" try { var rand = cryptoFramework.createRandom(); } catch (error) { - console.error("[Callback]: error code: " + error.code + ", message is: " + error.message); + console.error("[Callback]: error code: " + error.code + ", message is: " + error.message); } ``` @@ -808,7 +808,7 @@ var rand; try { rand = cryptoFramework.createRandom(); } catch (error) { - console.error("[Callback]: error code: " + error.code + ", message is: " + error.message); + console.error("[Callback]: error code: " + error.code + ", message is: " + error.message); } rand.generateRandom(12, (err, randData) => { if (err) { @@ -918,10 +918,10 @@ rand.generateRandom(12, (err, randData) => { | 名称 | 类型 | 可读 | 可写 | 说明 | | -------- | ------ | ---- | ---- | ----------------------- | -| algoName | string | 是 | 是 | 指明对称加解密参数的算法模式。可选值如下:
- "IvParamsSpec": 适用于CBC\|CTR\|OFB\|CFB模式
- "GcmParamsSpec": 适用于GCM模式
- "CcmParamsSpec": 适用于CCM模式 | +| algName | string | 是 | 是 | 指明对称加解密参数的算法模式。可选值如下:
- "IvParamsSpec": 适用于CBC\|CTR\|OFB\|CFB模式
- "GcmParamsSpec": 适用于GCM模式
- "CcmParamsSpec": 适用于CCM模式 | -> **说明:** -> 由于[init()](#init-2)的params参数是ParamsSpec类型(父类),而实际需要传入具体的子类对象(如IvParamsSpec),因此在构造子类对象时应设置其父类ParamsSpec的algoName参数,使算法库在init()时知道传入的是哪种子类对象。 +> **说明:** +> 由于[init()](#init-2)的params参数是ParamsSpec类型(父类),而实际需要传入具体的子类对象(如IvParamsSpec),因此在构造子类对象时应设置其父类ParamsSpec的algName参数,使算法库在init()时知道传入的是哪种子类对象。 ## IvParamsSpec @@ -933,8 +933,8 @@ rand.generateRandom(12, (err, randData) => { | ---- | --------------------- | ---- | ---- | ------------------------------------------------------------ | | iv | [DataBlob](#datablob) | 是 | 是 | 指明加解密参数iv。常见取值如下:
- AES的CBC\|CTR\|OFB\|CFB模式:iv长度为16字节
- 3DES的CBC\|OFB\|CFB模式:iv长度为8字节 | -> **说明:** -> 传入[init()](#init-2)方法前需要指定其algoName属性(来源于父类[ParamsSpec](#paramsspec))。 +> **说明:** +> 传入[init()](#init-2)方法前需要指定其algName属性(来源于父类[ParamsSpec](#paramsspec))。 ## GcmParamsSpec @@ -948,8 +948,8 @@ rand.generateRandom(12, (err, randData) => { | aad | [DataBlob](#datablob) | 是 | 是 | 指明加解密参数aad,长度为8字节 | | authTag | [DataBlob](#datablob) | 是 | 是 | 指明加解密参数authTag,长度为16字节。
采用GCM模式加密时,需要获取[doFinal()](#dofinal-2)输出的[DataBlob](#datablob),取出其末尾16字节作为解密时[init()](#init-2)方法的入参[GcmParamsSpec](#gcmparamsspec)中的的authTag | -> **说明:** -> 传入[init()](#init-2)方法前需要指定其algoName属性(来源于父类[ParamsSpec](#paramsspec))。 +> **说明:** +> 传入[init()](#init-2)方法前需要指定其algName属性(来源于父类[ParamsSpec](#paramsspec))。 ## CcmParamsSpec @@ -963,8 +963,8 @@ rand.generateRandom(12, (err, randData) => { | aad | [DataBlob](#datablob) | 是 | 是 | 指明加解密参数aad,长度为8字节 | | authTag | [DataBlob](#datablob) | 是 | 是 | 指明加解密参数authTag,长度为12字节。
采用CCM模式加密时,需要获取[doFinal()](#dofinal-2)输出的[DataBlob](#datablob),取出其末尾12字节作为解密时[init()](#init-2)方法的入参[CcmParamsSpec](#ccmparamsspec)中的authTag | -> **说明:** -> 传入[init()](#init-2)方法前需要指定其algoName属性(来源于父类[ParamsSpec](#paramsspec))。 +> **说明:** +> 传入[init()](#init-2)方法前需要指定其algName属性(来源于父类[ParamsSpec](#paramsspec))。 ## CryptoMode @@ -983,7 +983,7 @@ rand.generateRandom(12, (err, randData) => { ### 属性 -**系统能力:** SystemCapability.Security.CryptoFramework +**系统能力:** SystemCapability.Security.CryptoFramework | 名称 | 类型 | 可读 | 可写 | 说明 | | ------- | ------ | ---- | ---- | ---------------------------- | @@ -1055,7 +1055,7 @@ console.info("key hex:" + uint8ArrayToShowStr(encodedKey.data)); // 输出全 ### 属性 -**系统能力:** SystemCapability.Security.CryptoFramework +**系统能力:** SystemCapability.Security.CryptoFramework | 名称 | 类型 | 可读 | 可写 | 说明 | | ------- | ------ | ---- | ---- | ---------------------------- | @@ -1099,7 +1099,7 @@ console.info("key encoded:" + uint8ArrayToShowStr(encodedKey.data)); ### 属性 -**系统能力:** SystemCapability.Security.CryptoFramework +**系统能力:** SystemCapability.Security.CryptoFramework | 名称 | 类型 | 可读 | 可写 | 说明 | | ------- | ------ | ---- | ---- | ---------------------------- | @@ -1228,8 +1228,8 @@ generateSymKey(callback : AsyncCallback\) : void ```js import cryptoFramework from '@ohos.security.cryptoFramework'; -let symAlgoName = '3DES192'; -let symKeyGenerator = cryptoFramework.createSymKeyGenerator(symAlgoName); +let symAlgName = '3DES192'; +let symKeyGenerator = cryptoFramework.createSymKeyGenerator(symAlgName); symKeyGenerator.generateSymKey((err, symKey) => { if (err) { console.error(`Generate symKey failed, ${err.code}, ${err.message}`); @@ -1263,8 +1263,8 @@ generateSymKey() : Promise\ ```js import cryptoFramework from '@ohos.security.cryptoFramework'; -let symAlgoName = 'AES128'; -let symKeyGenerator = cryptoFramework.createSymKeyGenerator(symAlgoName); +let symAlgName = 'AES128'; +let symKeyGenerator = cryptoFramework.createSymKeyGenerator(symAlgName); symKeyGenerator.generateSymKey() .then(symKey => { console.info(`Generate symKey success, algName: ${symKey.algName}`); @@ -1308,8 +1308,8 @@ function genKeyMaterialBlob() { return {data : keyMaterial}; } -let symAlgoName = '3DES192'; -let symKeyGenerator = cryptoFramework.createSymKeyGenerator(symAlgoName); +let symAlgName = '3DES192'; +let symKeyGenerator = cryptoFramework.createSymKeyGenerator(symAlgName); let keyMaterialBlob = genKeyMaterialBlob(); symKeyGenerator.convertKey(keyMaterialBlob, (err, symKey) => { if (err) { @@ -1360,8 +1360,8 @@ function genKeyMaterialBlob() { return {data : keyMaterial}; } -let symAlgoName = '3DES192'; -let symKeyGenerator = cryptoFramework.createSymKeyGenerator(symAlgoName); +let symAlgName = '3DES192'; +let symKeyGenerator = cryptoFramework.createSymKeyGenerator(symAlgName); let keyMaterialBlob = genKeyMaterialBlob(); symKeyGenerator.convertKey(keyMaterialBlob) .then(symKey => { @@ -1582,7 +1582,7 @@ createCipher(transformation : string) : Cipher | -------------- | ------ | ---- | ------------------------------------------------------------ | | transformation | string | 是 | 待生成Cipher的算法名称(含密钥长度)、加密模式以及填充方法的组合。
具体取值详见框架概述“[加解密规格](../../security/cryptoFramework-overview.md#加解密规格)”一节中的“字符串参数”。 | -> **说明:** +> **说明:** > 1. 目前对称加解密中,PKCS5和PKCS7的实现相同,其padding长度和分组长度保持一致(即PKCS5和PKCS7在3DES中均按照8字节填充,在AES中均按照16字节填充),另有NoPadding表示不填充。
开发者需要自行了解密码学不同分组模式的差异,以便选择合适的参数规格。例如选择ECB和CBC模式时,建议启用填充,否则必须确保明文长度是分组大小的整数倍;选择其他模式时,可以不启用填充,此时密文长度和明文长度一致(即可能不是分组大小的整数倍)。 > 2. 使用RSA进行非对称加解密时,必须创建两个Cipher对象分别进行加密和解密操作,而不能对同一个Cipher对象进行加解密。对称加解密没有此要求(即只要算法规格一样,可以对同一个Cipher对象进行加解密操作)。 @@ -1597,10 +1597,10 @@ createCipher(transformation : string) : Cipher ```javascript import cryptoFramework from "@ohos.security.cryptoFramework" -let cipherAlgoName = '3DES192|ECB|PKCS7'; +let cipherAlgName = '3DES192|ECB|PKCS7'; var cipher; try { - cipher = cryptoFramework.createCipher(cipherAlgoName); + cipher = cryptoFramework.createCipher(cipherAlgName); console.info(`cipher algName: ${cipher.algName}`); } catch (error) { console.error(`createCipher failed, ${error.code}, ${error.message}`); @@ -1718,7 +1718,7 @@ update(data : DataBlob, callback : AsyncCallback\) : void 分段更新加密或者解密数据操作,通过注册回调函数获取加/解密数据。
必须在对[Cipher](#cipher)实例使用[init()](init-2)初始化后,才能使用本函数。 -> **说明:** +> **说明:** > 1. 在进行对称加解密操作的时候,如果开发者对各个分组模式不够熟悉,建议对每次update和doFinal的结果都判断是否为null,并在结果不为null时取出其中的数据进行拼接,形成完整的密文/明文。这是因为选择的分组模式等各项规格都可能对update和[doFinal](#dofinal-2)结果产生影响。
(例如对于ECB和CBC模式,不论update传入的数据是否为分组长度的整数倍,都会以分组作为基本单位进行加/解密,并输出本次update新产生的加/解密分组结果。
可以理解为,update只要凑满一个新的分组就会有输出,如果没有凑满则此次update输出为null,把当前还没被加/解密的数据留着,等下一次update/doFinal传入数据的时候,拼接起来继续凑分组。
最后doFinal的时候,会把剩下的还没加/解密的数据,根据[createCipher](#cryptoframeworkcreatecipher)时设置的padding模式进行填充,补齐到分组的整数倍长度,再输出剩余加解密结果。
而对于可以将分组密码转化为流模式实现的模式,还可能出现密文长度和明文长度相同的情况等。) > 2. 根据数据量,可以不调用update(即[init](#init-2)完成后直接调用[doFinal](#dofinal-2))或多次调用update。
算法库目前没有对update(单次或累计)的数据量设置大小限制,建议对于大数据量的对称加解密,采用多次update的方式传入数据。 > 3. RSA非对称加解密不支持update操作。 @@ -1775,7 +1775,7 @@ update(data : DataBlob) : Promise\ 分段更新加密或者解密数据操作,通过通过Promise获取加/解密数据。
必须在对[Cipher](#cipher)实例使用[init()](init-2)初始化后,才能使用本函数。 -> **说明:** +> **说明:** > 1. 在进行对称加解密操作的时候,如果开发者对各个分组模式不够熟悉,建议对每次update和doFinal的结果都判断是否为null,并在结果不为null时取出其中的数据进行拼接,形成完整的密文/明文。这是因为选择的分组模式等各项规格都可能对update和[doFinal](#dofinal-2)结果产生影响。
(例如对于ECB和CBC模式,不论update传入的数据是否为分组长度的整数倍,都会以分组作为基本单位进行加/解密,并输出本次update新产生的加/解密分组结果。
可以理解为,update只要凑满一个新的分组就会有输出,如果没有凑满则此次update输出为null,把当前还没被加/解密的数据留着,等下一次update/doFinal传入数据的时候,拼接起来继续凑分组。
最后doFinal的时候,会把剩下的还没加/解密的数据,根据[createCipher](#cryptoframeworkcreatecipher)时设置的padding模式进行填充,补齐到分组的整数倍长度,再输出剩余加解密结果。
而对于可以将分组密码转化为流模式实现的模式,还可能出现密文长度和明文长度相同的情况等。) > 2. 根据数据量,可以不调用update(即[init](#init-2)完成后直接调用[doFinal](#dofinal-2))或多次调用update。
算法库目前没有对update(单次或累计)的数据量设置大小限制,建议对于大数据量的对称加解密,可以采用多次update的方式传入数据。 > 3. RSA非对称加解密不支持update操作。 @@ -1841,7 +1841,7 @@ doFinal(data : DataBlob, callback : AsyncCallback\) : void (2)在RSA非对称加解密中,doFinal加/解密本次传入的数据,通过注册回调函数获取加密或者解密数据。如果数据量较大,可以多次调用doFinal,拼接结果得到完整的明文/密文。 -> **说明:** +> **说明:** > 1. 对称加解密中,调用doFinal标志着一次加解密流程已经完成,即[Cipher](#cipher)实例的状态被清除,因此当后续开启新一轮加解密流程时,需要重新调用[init()](init-2)并传入完整的参数列表进行初始化
(比如即使是对同一个Cipher实例,采用同样的对称密钥,进行加密然后解密,则解密中调用init的时候仍需填写params参数,而不能直接省略为null)。 > 2. 如果遇到解密失败,需检查加解密数据和[init](#init-2)时的参数是否匹配,包括GCM模式下加密得到的authTag是否填入解密时的GcmParamsSpec等。 @@ -1893,7 +1893,7 @@ doFinal(data : DataBlob) : Promise\ (2)在RSA非对称加解密中,doFinal加/解密本次传入的数据,通过Promise获取加密或者解密数据。如果数据量较大,可以多次调用doFinal,拼接结果得到完整的明文/密文。 -> **说明:** +> **说明:** > 1. 对称加解密中,调用doFinal标志着一次加解密流程已经完成,即[Cipher](#cipher)实例的状态被清除,因此当后续开启新一轮加解密流程时,需要重新调用[init()](init-2)并传入完整的参数列表进行初始化
(比如即使是对同一个Cipher实例,采用同样的对称密钥,进行加密然后解密,则解密中调用init的时候仍需填写params参数,而不能直接省略为null)。 > 2. 如果遇到解密失败,需检查加解密数据和[init](#init-2)时的参数是否匹配,包括GCM模式下加密得到的authTag是否填入解密时的GcmParamsSpec等。 @@ -1993,7 +1993,7 @@ keyGenPromise.then(rsaKeyPair => { }); ``` -> **说明:** +> **说明:** > 更多加解密流程的完整示例可参考开发指导中的“[使用加解密操作](../../security/cryptoFramework-guidelines.md#使用加解密操作)”一节。 ## cryptoFramework.createSign diff --git a/zh-cn/application-dev/reference/apis/js-apis-data-relationalStore.md b/zh-cn/application-dev/reference/apis/js-apis-data-relationalStore.md index 9ad338c83c86b9ec5b04bf972fc4531e495077a8..c94780f46579a103230146e7abe796914e6b353a 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-data-relationalStore.md +++ b/zh-cn/application-dev/reference/apis/js-apis-data-relationalStore.md @@ -15,10 +15,10 @@ ## 导入模块 ```js -import data_rdb from '@ohos.data.relationalStore'; +import relationalStore from '@ohos.data.relationalStore' ``` -## data_rdb.getRdbStore +## relationalStore.getRdbStore getRdbStore(context: Context, config: StoreConfig, callback: AsyncCallback<RdbStore>): void @@ -48,67 +48,55 @@ getRdbStore(context: Context, config: StoreConfig, callback: AsyncCallback<Rd FA模型示例: ```js -// 获取context + import featureAbility from '@ohos.ability.featureAbility' -let context = featureAbility.getContext() -// 获取context后调用getRdbStore +var store; + +// 获取context +let context = featureAbility.getContext(); + const STORE_CONFIG = { - name: "RdbTest.db", - securityLevel: data_rdb.SecurityLevel.S1 -} -data_rdb.getRdbStore(context, STORE_CONFIG, function (err, rdbStore) { - if (err) { - console.info("Get RdbStore failed, err: " + err) - return - } - if (rdbStore.openStatus == data_rdb.OpenStatus.ON_CREATE) { - console.log("RdbStore status is ON_CREATE") - } else if (rdbStore.openStatus == data_rdb.OpenStatus.ON_OPEN) { - console.log("RdbStore status is ON_OPEN") - } else { - return - } - console.log("Get RdbStore successfully.") + name: "RdbTest.db", + securityLevel: relationalStore.SecurityLevel.S1 +}; + +relationalStore.getRdbStore(context, STORE_CONFIG, function (err, rdbStore) { + store = rdbStore; + if (err) { + console.error(`Get RdbStore failed, err: ${err}`); + return; + } + console.info(`Get RdbStore successfully.`); }) ``` Stage模型示例: ```ts -// 获取context -import UIAbility from '@ohos.app.ability.UIAbility'; - -let context; +import UIAbility from '@ohos.app.ability.UIAbility' class EntryAbility extends UIAbility { - onWindowStageCreate(windowStage){ - context = this.context - } -} - -// 获取context后调用getRdbStore -const STORE_CONFIG = { - name: "RdbTest.db", - securityLevel: data_rdb.SecurityLevel.S1 + onWindowStageCreate(windowStage) { + var store; + const STORE_CONFIG = { + name: "RdbTest.db", + securityLevel: relationalStore.SecurityLevel.S1 + }; + + relationalStore.getRdbStore(this.context, STORE_CONFIG, function (err, rdbStore) { + store = rdbStore; + if (err) { + console.error(`Get RdbStore failed, err: ${err}`); + return; + } + console.info(`Get RdbStore successfully.`); + }) + } } -data_rdb.getRdbStore(context, STORE_CONFIG, function (err, rdbStore) { - if (err) { - console.info("Get RdbStore failed, err: " + err) - return - } - if (rdbStore.openStatus == data_rdb.OpenStatus.ON_CREATE) { - console.log("RdbStore status is ON_CREATE") - } else if (rdbStore.openStatus == data_rdb.OpenStatus.ON_OPEN) { - console.log("RdbStore status is ON_OPEN") - } else { - return - } - console.log("Get RdbStore successfully.") -}) ``` -## data_rdb.getRdbStore +## relationalStore.getRdbStore getRdbStore(context: Context, config: StoreConfig): Promise<RdbStore> @@ -143,65 +131,52 @@ getRdbStore(context: Context, config: StoreConfig): Promise<RdbStore> FA模型示例: ```js -// 获取context import featureAbility from '@ohos.ability.featureAbility' -let context = featureAbility.getContext() -// 获取context后调用getRdbStore +var store; + +// 获取context +let context = featureAbility.getContext(); + const STORE_CONFIG = { - name: "RdbTest.db", - securityLevel: data_rdb.SecurityLevel.S1 -} -let promise = data_rdb.getRdbStore(context, STORE_CONFIG); + name: "RdbTest.db", + securityLevel: relationalStore.SecurityLevel.S1 +}; + +let promise = relationalStore.getRdbStore(context, STORE_CONFIG); promise.then(async (rdbStore) => { - if (rdbStore.openStatus == data_rdb.OpenStatus.ON_CREATE) { - console.log("RdbStore status is ON_CREATE") - } else if (rdbStore.openStatus == data_rdb.OpenStatus.ON_OPEN) { - console.log("RdbStore status is ON_OPEN") - } else { - return - } - console.log("Get RdbStore successfully.") + store = rdbStore; + console.info(`Get RdbStore successfully.`); }).catch((err) => { - console.log("Get RdbStore failed, err: " + err) + console.error(`Get RdbStore failed, err: ${err}`); }) ``` Stage模型示例: ```ts -// 获取context -import UIAbility from '@ohos.app.ability.UIAbility'; - -let context; +import UIAbility from '@ohos.app.ability.UIAbility' class EntryAbility extends UIAbility { - onWindowStageCreate(windowStage){ - context = this.context - } + onWindowStageCreate(windowStage) { + var store; + const STORE_CONFIG = { + name: "RdbTest.db", + securityLevel: relationalStore.SecurityLevel.S1 + }; + + let promise = relationalStore.getRdbStore(this.context, STORE_CONFIG); + promise.then(async (rdbStore) => { + store = rdbStore; + console.info(`Get RdbStore successfully.`) + }).catch((err) => { + console.error(`Get RdbStore failed, err: ${err}`); + }) + } } - -// 获取context后调用getRdbStore -const STORE_CONFIG = { - name: "RdbTest.db", - securityLevel: data_rdb.SecurityLevel.S1 -} -let promise = data_rdb.getRdbStore(context, STORE_CONFIG); -promise.then(async (rdbStore) => { - if (rdbStore.openStatus == data_rdb.OpenStatus.ON_CREATE) { - console.log("RdbStore status is ON_CREATE") - } else if (rdbStore.openStatus == data_rdb.OpenStatus.ON_OPEN) { - console.log("RdbStore status is ON_OPEN") - } else { - return - } - console.log("Get RdbStore successfully.") -}).catch((err) => { - console.log("Get RdbStore failed, err: " + err) -}) ``` -## data_rdb.deleteRdbStore +## relationalStore.deleteRdbStore deleteRdbStore(context: Context, name: string, callback: AsyncCallback<void>): void @@ -230,45 +205,39 @@ deleteRdbStore(context: Context, name: string, callback: AsyncCallback<void&g FA模型示例: ```js -// 获取context import featureAbility from '@ohos.ability.featureAbility' + +// 获取context let context = featureAbility.getContext() -// 获取context后调用deleteRdbStore -data_rdb.deleteRdbStore(context, "RdbTest.db", function (err) { - if (err) { - console.info("Delete RdbStore failed, err: " + err) - return - } - console.log("Delete RdbStore successfully.") +relationalStore.deleteRdbStore(context, "RdbTest.db", function (err) { + if (err) { + console.error(`Delete RdbStore failed, err: ${err}`); + return; + } + console.info(`Delete RdbStore successfully.`); }) ``` Stage模型示例: ```ts -// 获取context -import UIAbility from '@ohos.app.ability.UIAbility'; - -let context; +import UIAbility from '@ohos.app.ability.UIAbility' class EntryAbility extends UIAbility { - onWindowStageCreate(windowStage){ - context = this.context - } + onWindowStageCreate(windowStage){ + relationalStore.deleteRdbStore(this.context, "RdbTest.db", function (err) { + if (err) { + console.error(`Delete RdbStore failed, err: ${err}`); + return; + } + console.info(`Delete RdbStore successfully.`); + }) + } } - -// 获取context后调用deleteRdbStore -data_rdb.deleteRdbStore(context, "RdbTest.db", function (err) { - if (err) { - console.info("Delete RdbStore failed, err: " + err) - return - } - console.log("Delete RdbStore successfully.") -}) ``` -## data_rdb.deleteRdbStore +## relationalStore.deleteRdbStore deleteRdbStore(context: Context, name: string): Promise<void> @@ -302,40 +271,34 @@ deleteRdbStore(context: Context, name: string): Promise<void> FA模型示例: ```js -// 获取context import featureAbility from '@ohos.ability.featureAbility' -let context = featureAbility.getContext() -// 获取context后调用deleteRdbStore -let promise = data_rdb.deleteRdbStore(context, "RdbTest.db") +// 获取context +let context = featureAbility.getContext(); + +let promise = relationalStore.deleteRdbStore(context, "RdbTest.db"); promise.then(()=>{ - console.log("Delete RdbStore successfully.") + console.info(`Delete RdbStore successfully.`); }).catch((err) => { - console.info("Delete RdbStore failed, err: " + err) + console.error(`Delete RdbStore failed, err: ${err}`); }) ``` Stage模型示例: ```ts -// 获取context -import UIAbility from '@ohos.app.ability.UIAbility'; - -let context; +import UIAbility from '@ohos.app.ability.UIAbility' class EntryAbility extends UIAbility { - onWindowStageCreate(windowStage){ - context = this.context - } + onWindowStageCreate(windowStage){ + let promise = relationalStore.deleteRdbStore(this.context, "RdbTest.db"); + promise.then(()=>{ + console.info(`Delete RdbStore successfully.`); + }).catch((err) => { + console.error(`Delete RdbStore failed, err: ${err}`); + }) + } } - -// 获取context后调用deleteRdbStore -let promise = data_rdb.deleteRdbStore(context, "RdbTest.db") -promise.then(()=>{ - console.log("Delete RdbStore successfully.") -}).catch((err) => { - console.info("Delete RdbStore failed, err: " + err) -}) ``` ## StoreConfig @@ -423,17 +386,6 @@ promise.then(()=>{ | ON_CONFLICT_IGNORE | 4 | 表示当冲突发生时,跳过包含违反约束的行并继续处理 SQL 语句的后续行。 | | ON_CONFLICT_REPLACE | 5 | 表示当冲突发生时,在插入或更新当前行之前删除导致约束违例的预先存在的行,并且命令会继续正常执行。 | -## OpenStatus10+ - -RdbStore的状态枚举。 - -**系统能力:** SystemCapability.DistributedDataManager.RelationalStore.Core - -| 名称 | 值 | 说明 | -| --------- | ---- | --------------------------------------------------- | -| ON_CREATE | 0 | 表示RdbStore首次创建,处于ON_CREATE状态。 | -| ON_OPEN | 1 | 表示RdbStore非首次创建,处于ON_OPEN状态。 | - ## RdbPredicates 表示关系型数据库(RDB)的谓词。该类确定RDB中条件表达式的值是true还是false。 @@ -455,7 +407,7 @@ constructor(name: string) **示例:** ```js -let predicates = new data_rdb.RdbPredicates("EMPLOYEE") +let predicates = new relationalStore.RdbPredicates("EMPLOYEE"); ``` ### inDevices @@ -482,8 +434,8 @@ inDevices(devices: Array<string>): RdbPredicates **示例:** ```js -let predicates = new data_rdb.RdbPredicates("EMPLOYEE") -predicates.inDevices(['12345678abcde']) +let predicates = new relationalStore.RdbPredicates("EMPLOYEE"); +predicates.inDevices(['12345678abcde']); ``` ### inAllDevices @@ -504,8 +456,8 @@ inAllDevices(): RdbPredicates **示例:** ```js -let predicates = new data_rdb.RdbPredicates("EMPLOYEE") -predicates.inAllDevices() +let predicates = new relationalStore.RdbPredicates("EMPLOYEE"); +predicates.inAllDevices(); ``` ### equalTo @@ -533,8 +485,8 @@ equalTo(field: string, value: ValueType): RdbPredicates **示例:** ```js -let predicates = new data_rdb.RdbPredicates("EMPLOYEE") -predicates.equalTo("NAME", "lisi") +let predicates = new relationalStore.RdbPredicates("EMPLOYEE"); +predicates.equalTo("NAME", "lisi"); ``` @@ -563,8 +515,8 @@ notEqualTo(field: string, value: ValueType): RdbPredicates **示例:** ```js -let predicates = new data_rdb.RdbPredicates("EMPLOYEE") -predicates.notEqualTo("NAME", "lisi") +let predicates = new relationalStore.RdbPredicates("EMPLOYEE"); +predicates.notEqualTo("NAME", "lisi"); ``` @@ -586,7 +538,7 @@ beginWrap(): RdbPredicates **示例:** ```js -let predicates = new data_rdb.RdbPredicates("EMPLOYEE") +let predicates = new relationalStore.RdbPredicates("EMPLOYEE"); predicates.equalTo("NAME", "lisi") .beginWrap() .equalTo("AGE", 18) @@ -612,7 +564,7 @@ endWrap(): RdbPredicates **示例:** ```js -let predicates = new data_rdb.RdbPredicates("EMPLOYEE") +let predicates = new relationalStore.RdbPredicates("EMPLOYEE"); predicates.equalTo("NAME", "lisi") .beginWrap() .equalTo("AGE", 18) @@ -638,7 +590,7 @@ or(): RdbPredicates **示例:** ```js -let predicates = new data_rdb.RdbPredicates("EMPLOYEE") +let predicates = new relationalStore.RdbPredicates("EMPLOYEE"); predicates.equalTo("NAME", "Lisa") .or() .equalTo("NAME", "Rose") @@ -661,7 +613,7 @@ and(): RdbPredicates **示例:** ```js -let predicates = new data_rdb.RdbPredicates("EMPLOYEE") +let predicates = new relationalStore.RdbPredicates("EMPLOYEE"); predicates.equalTo("NAME", "Lisa") .and() .equalTo("SALARY", 200.5) @@ -691,8 +643,8 @@ contains(field: string, value: string): RdbPredicates **示例:** ```js -let predicates = new data_rdb.RdbPredicates("EMPLOYEE") -predicates.contains("NAME", "os") +let predicates = new relationalStore.RdbPredicates("EMPLOYEE"); +predicates.contains("NAME", "os"); ``` ### beginsWith @@ -719,8 +671,8 @@ beginsWith(field: string, value: string): RdbPredicates **示例:** ```js -let predicates = new data_rdb.RdbPredicates("EMPLOYEE") -predicates.beginsWith("NAME", "os") +let predicates = new relationalStore.RdbPredicates("EMPLOYEE"); +predicates.beginsWith("NAME", "os"); ``` ### endsWith @@ -747,8 +699,8 @@ endsWith(field: string, value: string): RdbPredicates **示例:** ```js -let predicates = new data_rdb.RdbPredicates("EMPLOYEE") -predicates.endsWith("NAME", "se") +let predicates = new relationalStore.RdbPredicates("EMPLOYEE"); +predicates.endsWith("NAME", "se"); ``` ### isNull @@ -774,8 +726,8 @@ isNull(field: string): RdbPredicates **示例**: ```js -let predicates = new data_rdb.RdbPredicates("EMPLOYEE") -predicates.isNull("NAME") +let predicates = new relationalStore.RdbPredicates("EMPLOYEE"); +predicates.isNull("NAME"); ``` ### isNotNull @@ -801,8 +753,8 @@ isNotNull(field: string): RdbPredicates **示例:** ```js -let predicates = new data_rdb.RdbPredicates("EMPLOYEE") -predicates.isNotNull("NAME") +let predicates = new relationalStore.RdbPredicates("EMPLOYEE"); +predicates.isNotNull("NAME"); ``` ### like @@ -829,8 +781,8 @@ like(field: string, value: string): RdbPredicates **示例:** ```js -let predicates = new data_rdb.RdbPredicates("EMPLOYEE") -predicates.like("NAME", "%os%") +let predicates = new relationalStore.RdbPredicates("EMPLOYEE"); +predicates.like("NAME", "%os%"); ``` ### glob @@ -857,8 +809,8 @@ glob(field: string, value: string): RdbPredicates **示例:** ```js -let predicates = new data_rdb.RdbPredicates("EMPLOYEE") -predicates.glob("NAME", "?h*g") +let predicates = new relationalStore.RdbPredicates("EMPLOYEE"); +predicates.glob("NAME", "?h*g"); ``` ### between @@ -886,8 +838,8 @@ between(field: string, low: ValueType, high: ValueType): RdbPredicates **示例:** ```js -let predicates = new data_rdb.RdbPredicates("EMPLOYEE") -predicates.between("AGE", 10, 50) +let predicates = new relationalStore.RdbPredicates("EMPLOYEE"); +predicates.between("AGE", 10, 50); ``` ### notBetween @@ -915,8 +867,8 @@ notBetween(field: string, low: ValueType, high: ValueType): RdbPredicates **示例:** ```js -let predicates = new data_rdb.RdbPredicates("EMPLOYEE") -predicates.notBetween("AGE", 10, 50) +let predicates = new relationalStore.RdbPredicates("EMPLOYEE"); +predicates.notBetween("AGE", 10, 50); ``` ### greaterThan @@ -943,8 +895,8 @@ greaterThan(field: string, value: ValueType): RdbPredicates **示例:** ```js -let predicates = new data_rdb.RdbPredicates("EMPLOYEE") -predicates.greaterThan("AGE", 18) +let predicates = new relationalStore.RdbPredicates("EMPLOYEE"); +predicates.greaterThan("AGE", 18); ``` ### lessThan @@ -971,8 +923,8 @@ lessThan(field: string, value: ValueType): RdbPredicates **示例:** ```js -let predicates = new data_rdb.RdbPredicates("EMPLOYEE") -predicates.lessThan("AGE", 20) +let predicates = new relationalStore.RdbPredicates("EMPLOYEE"); +predicates.lessThan("AGE", 20); ``` ### greaterThanOrEqualTo @@ -999,8 +951,8 @@ greaterThanOrEqualTo(field: string, value: ValueType): RdbPredicates **示例:** ```js -let predicates = new data_rdb.RdbPredicates("EMPLOYEE") -predicates.greaterThanOrEqualTo("AGE", 18) +let predicates = new relationalStore.RdbPredicates("EMPLOYEE"); +predicates.greaterThanOrEqualTo("AGE", 18); ``` ### lessThanOrEqualTo @@ -1027,8 +979,8 @@ lessThanOrEqualTo(field: string, value: ValueType): RdbPredicates **示例:** ```js -let predicates = new data_rdb.RdbPredicates("EMPLOYEE") -predicates.lessThanOrEqualTo("AGE", 20) +let predicates = new relationalStore.RdbPredicates("EMPLOYEE"); +predicates.lessThanOrEqualTo("AGE", 20); ``` ### orderByAsc @@ -1054,8 +1006,8 @@ orderByAsc(field: string): RdbPredicates **示例:** ```js -let predicates = new data_rdb.RdbPredicates("EMPLOYEE") -predicates.orderByAsc("NAME") +let predicates = new relationalStore.RdbPredicates("EMPLOYEE"); +predicates.orderByAsc("NAME"); ``` ### orderByDesc @@ -1081,8 +1033,8 @@ orderByDesc(field: string): RdbPredicates **示例:** ```js -let predicates = new data_rdb.RdbPredicates("EMPLOYEE") -predicates.orderByDesc("AGE") +let predicates = new relationalStore.RdbPredicates("EMPLOYEE"); +predicates.orderByDesc("AGE"); ``` ### distinct @@ -1102,8 +1054,8 @@ distinct(): RdbPredicates **示例:** ```js -let predicates = new data_rdb.RdbPredicates("EMPLOYEE") -predicates.equalTo("NAME", "Rose").distinct() +let predicates = new relationalStore.RdbPredicates("EMPLOYEE"); +predicates.equalTo("NAME", "Rose").distinct(); ``` ### limitAs @@ -1129,8 +1081,8 @@ limitAs(value: number): RdbPredicates **示例:** ```js -let predicates = new data_rdb.RdbPredicates("EMPLOYEE") -predicates.equalTo("NAME", "Rose").limitAs(3) +let predicates = new relationalStore.RdbPredicates("EMPLOYEE"); +predicates.equalTo("NAME", "Rose").limitAs(3); ``` ### offsetAs @@ -1156,8 +1108,8 @@ offsetAs(rowOffset: number): RdbPredicates **示例:** ```js -let predicates = new data_rdb.RdbPredicates("EMPLOYEE") -predicates.equalTo("NAME", "Rose").offsetAs(3) +let predicates = new relationalStore.RdbPredicates("EMPLOYEE"); +predicates.equalTo("NAME", "Rose").offsetAs(3); ``` ### groupBy @@ -1183,8 +1135,8 @@ groupBy(fields: Array<string>): RdbPredicates **示例:** ```js -let predicates = new data_rdb.RdbPredicates("EMPLOYEE") -predicates.groupBy(["AGE", "NAME"]) +let predicates = new relationalStore.RdbPredicates("EMPLOYEE"); +predicates.groupBy(["AGE", "NAME"]); ``` ### indexedBy @@ -1211,8 +1163,8 @@ indexedBy(field: string): RdbPredicates **示例:** ```js -let predicates = new data_rdb.RdbPredicates("EMPLOYEE") -predicates.indexedBy("SALARY_INDEX") +let predicates = new relationalStore.RdbPredicates("EMPLOYEE"); +predicates.indexedBy("SALARY_INDEX"); ``` ### in @@ -1239,8 +1191,8 @@ in(field: string, value: Array<ValueType>): RdbPredicates **示例:** ```js -let predicates = new data_rdb.RdbPredicates("EMPLOYEE") -predicates.in("AGE", [18, 20]) +let predicates = new relationalStore.RdbPredicates("EMPLOYEE"); +predicates.in("AGE", [18, 20]); ``` ### notIn @@ -1267,8 +1219,8 @@ notIn(field: string, value: Array<ValueType>): RdbPredicates **示例:** ```js -let predicates = new data_rdb.RdbPredicates("EMPLOYEE") -predicates.notIn("NAME", ["Lisa", "Rose"]) +let predicates = new relationalStore.RdbPredicates("EMPLOYEE"); +predicates.notIn("NAME", ["Lisa", "Rose"]); ``` ## RdbStore @@ -1283,7 +1235,16 @@ predicates.notIn("NAME", ["Lisa", "Rose"]) | 名称 | 类型 | 必填 | 说明 | | ------------ | ----------- | ---- | -------------------------------- | -| openStatus10+ | number | 是 | RdbStore的状态。值为0时,表示RdbStore首次创建,处于ON_CREATE状态。值为1时,表示RdbStore非首次创建,处于ON_OPEN状态。 | +| version10+ | number | 是 | 设置和获取数据库版本,值为大于0的正整数。 | + +**示例:** + +```js +// 设置数据库版本 +store.version = 3; +// 获取数据库版本 +console.info(`RdbStore version is ${store.version}`); +``` ### insert @@ -1305,17 +1266,17 @@ insert(table: string, values: ValuesBucket, callback: AsyncCallback<number> ```js const valueBucket = { - "NAME": "Lisa", - "AGE": 18, - "SALARY": 100.5, - "CODES": new Uint8Array([1, 2, 3, 4, 5]), -} -rdbStore.insert("EMPLOYEE", valueBucket, function (status, rowId) { - if (status) { - console.log("Insert is failed"); - return; - } - console.log("Insert is successful, rowId = " + rowId); + "NAME": "Lisa", + "AGE": 18, + "SALARY": 100.5, + "CODES": new Uint8Array([1, 2, 3, 4, 5]), +}; +store.insert("EMPLOYEE", valueBucket, function (err, rowId) { + if (err) { + console.error(`Insert is failed, err: ${err}`); + return; + } + console.info(`Insert is successful, rowId = ${rowId}`); }) ``` @@ -1340,17 +1301,17 @@ insert(table: string, values: ValuesBucket, conflict: ConflictResolution, callb ```js const valueBucket = { - "NAME": "Lisa", - "AGE": 18, - "SALARY": 100.5, - "CODES": new Uint8Array([1, 2, 3, 4, 5]), -} -rdbStore.insert("EMPLOYEE", valueBucket, data_rdb.ConflictResolution.ON_CONFLICT_REPLACE, function (status, rowId) { - if (status) { - console.log("Insert is failed"); - return; - } - console.log("Insert is successful, rowId = " + rowId); + "NAME": "Lisa", + "AGE": 18, + "SALARY": 100.5, + "CODES": new Uint8Array([1, 2, 3, 4, 5]), +}; +store.insert("EMPLOYEE", valueBucket, relationalStore.ConflictResolution.ON_CONFLICT_REPLACE, function (err, rowId) { + if (err) { + console.error(`Insert is failed, err: ${err}`); + return; + } + console.info(`Insert is successful, rowId = ${rowId}`); }) ``` @@ -1379,16 +1340,16 @@ insert(table: string, values: ValuesBucket):Promise<number> ```js const valueBucket = { - "NAME": "Lisa", - "AGE": 18, - "SALARY": 100.5, - "CODES": new Uint8Array([1, 2, 3, 4, 5]), -} -let promise = rdbStore.insert("EMPLOYEE", valueBucket) + "NAME": "Lisa", + "AGE": 18, + "SALARY": 100.5, + "CODES": new Uint8Array([1, 2, 3, 4, 5]), +}; +let promise = store.insert("EMPLOYEE", valueBucket); promise.then((rowId) => { - console.log("Insert is successful, rowId = " + rowId); -}).catch((status) => { - console.log("Insert is failed"); + console.info(`Insert is successful, rowId = ${rowId}`); +}).catch((err) => { + console.error(`Insert is failed, err: ${err}`); }) ``` @@ -1418,16 +1379,16 @@ insert(table: string, values: ValuesBucket, conflict: ConflictResolution):Promi ```js const valueBucket = { - "NAME": "Lisa", - "AGE": 18, - "SALARY": 100.5, - "CODES": new Uint8Array([1, 2, 3, 4, 5]), -} -let promise = rdbStore.insert("EMPLOYEE", valueBucket, data_rdb.ConflictResolution.ON_CONFLICT_REPLACE) + "NAME": "Lisa", + "AGE": 18, + "SALARY": 100.5, + "CODES": new Uint8Array([1, 2, 3, 4, 5]), +}; +let promise = store.insert("EMPLOYEE", valueBucket, relationalStore.ConflictResolution.ON_CONFLICT_REPLACE); promise.then((rowId) => { - console.log("Insert is successful, rowId = " + rowId); -}).catch((status) => { - console.log("Insert is failed"); + console.info(`Insert is successful, rowId = ${rowId}`); +}).catch((err) => { + console.error(`Insert is failed, err: ${err}`); }) ``` @@ -1451,31 +1412,31 @@ batchInsert(table: string, values: Array<ValuesBucket>, callback: AsyncCal ```js const valueBucket1 = { - "NAME": "Lisa", - "AGE": 18, - "SALARY": 100.5, - "CODES": new Uint8Array([1, 2, 3, 4, 5]) -} + "NAME": "Lisa", + "AGE": 18, + "SALARY": 100.5, + "CODES": new Uint8Array([1, 2, 3, 4, 5]) +}; const valueBucket2 = { - "NAME": "Jack", - "AGE": 19, - "SALARY": 101.5, - "CODES": new Uint8Array([6, 7, 8, 9, 10]) -} + "NAME": "Jack", + "AGE": 19, + "SALARY": 101.5, + "CODES": new Uint8Array([6, 7, 8, 9, 10]) +}; const valueBucket3 = { - "NAME": "Tom", - "AGE": 20, - "SALARY": 102.5, - "CODES": new Uint8Array([11, 12, 13, 14, 15]) -} + "NAME": "Tom", + "AGE": 20, + "SALARY": 102.5, + "CODES": new Uint8Array([11, 12, 13, 14, 15]) +}; let valueBuckets = new Array(valueBucket1, valueBucket2, valueBucket3); -rdbStore.batchInsert("EMPLOYEE", valueBuckets, function(status, insertNum) { - if (status) { - console.log("batchInsert is failed, status = " + status); - return; - } - console.log("batchInsert is successful, the number of values that were inserted = " + insertNum); +store.batchInsert("EMPLOYEE", valueBuckets, function(err, insertNum) { + if (err) { + console.error(`batchInsert is failed, err: ${err}`); + return; + } + console.info(`batchInsert is successful, the number of values that were inserted = ${insertNum}`); }) ``` @@ -1504,30 +1465,30 @@ batchInsert(table: string, values: Array<ValuesBucket>):Promise<number& ```js const valueBucket1 = { - "NAME": "Lisa", - "AGE": 18, - "SALARY": 100.5, - "CODES": new Uint8Array([1, 2, 3, 4, 5]) -} + "NAME": "Lisa", + "AGE": 18, + "SALARY": 100.5, + "CODES": new Uint8Array([1, 2, 3, 4, 5]) +}; const valueBucket2 = { - "NAME": "Jack", - "AGE": 19, - "SALARY": 101.5, - "CODES": new Uint8Array([6, 7, 8, 9, 10]) -} + "NAME": "Jack", + "AGE": 19, + "SALARY": 101.5, + "CODES": new Uint8Array([6, 7, 8, 9, 10]) +}; const valueBucket3 = { - "NAME": "Tom", - "AGE": 20, - "SALARY": 102.5, - "CODES": new Uint8Array([11, 12, 13, 14, 15]) -} + "NAME": "Tom", + "AGE": 20, + "SALARY": 102.5, + "CODES": new Uint8Array([11, 12, 13, 14, 15]) +}; let valueBuckets = new Array(valueBucket1, valueBucket2, valueBucket3); -let promise = rdbStore.batchInsert("EMPLOYEE", valueBuckets); +let promise = store.batchInsert("EMPLOYEE", valueBuckets); promise.then((insertNum) => { - console.log("batchInsert is successful, the number of values that were inserted = " + insertNum); -}).catch((status) => { - console.log("batchInsert is failed, status = " + status); + console.info(`batchInsert is successful, the number of values that were inserted = ${insertNum}`); +}).catch((err) => { + console.error(`batchInsert is failed, err: ${err}`); }) ``` @@ -1551,19 +1512,19 @@ update(values: ValuesBucket, predicates: RdbPredicates, callback: AsyncCallback& ```js const valueBucket = { - "NAME": "Rose", - "AGE": 22, - "SALARY": 200.5, - "CODES": new Uint8Array([1, 2, 3, 4, 5]), -} -let predicates = new data_rdb.RdbPredicates("EMPLOYEE") -predicates.equalTo("NAME", "Lisa") -rdbStore.update(valueBucket, predicates, function (err, rows) { - if (err) { - console.info("Updated failed, err: " + err) - return - } - console.log("Updated row count: " + rows) + "NAME": "Rose", + "AGE": 22, + "SALARY": 200.5, + "CODES": new Uint8Array([1, 2, 3, 4, 5]), +}; +let predicates = new relationalStore.RdbPredicates("EMPLOYEE"); +predicates.equalTo("NAME", "Lisa"); +store.update(valueBucket, predicates, function (err, rows) { + if (err) { + console.error(`Updated failed, err: ${err}`); + return; + } + console.info(`Updated row count: ${rows}`); }) ``` @@ -1588,19 +1549,19 @@ update(values: ValuesBucket, predicates: RdbPredicates, conflict: ConflictResolu ```js const valueBucket = { - "NAME": "Rose", - "AGE": 22, - "SALARY": 200.5, - "CODES": new Uint8Array([1, 2, 3, 4, 5]), -} -let predicates = new data_rdb.RdbPredicates("EMPLOYEE") -predicates.equalTo("NAME", "Lisa") -rdbStore.update(valueBucket, predicates, data_rdb.ConflictResolution.ON_CONFLICT_REPLACE, function (err, rows) { - if (err) { - console.info("Updated failed, err: " + err) - return - } - console.log("Updated row count: " + rows) + "NAME": "Rose", + "AGE": 22, + "SALARY": 200.5, + "CODES": new Uint8Array([1, 2, 3, 4, 5]), +}; +let predicates = new relationalStore.RdbPredicates("EMPLOYEE"); +predicates.equalTo("NAME", "Lisa"); +store.update(valueBucket, predicates, relationalStore.ConflictResolution.ON_CONFLICT_REPLACE, function (err, rows) { + if (err) { + console.error(`Updated failed, err: ${err}`); + return; + } + console.info(`Updated row count: ${rows}`); }) ``` @@ -1629,18 +1590,18 @@ update(values: ValuesBucket, predicates: RdbPredicates):Promise<number> ```js const valueBucket = { - "NAME": "Rose", - "AGE": 22, - "SALARY": 200.5, - "CODES": new Uint8Array([1, 2, 3, 4, 5]), -} -let predicates = new data_rdb.RdbPredicates("EMPLOYEE") -predicates.equalTo("NAME", "Lisa") -let promise = rdbStore.update(valueBucket, predicates) + "NAME": "Rose", + "AGE": 22, + "SALARY": 200.5, + "CODES": new Uint8Array([1, 2, 3, 4, 5]), +}; +let predicates = new relationalStore.RdbPredicates("EMPLOYEE"); +predicates.equalTo("NAME", "Lisa"); +let promise = store.update(valueBucket, predicates); promise.then(async (rows) => { - console.log("Updated row count: " + rows) + console.info(`Updated row count: ${rows}`); }).catch((err) => { - console.info("Updated failed, err: " + err) + console.error(`Updated failed, err: ${err}`); }) ``` @@ -1670,18 +1631,18 @@ update(values: ValuesBucket, predicates: RdbPredicates, conflict: ConflictResolu ```js const valueBucket = { - "NAME": "Rose", - "AGE": 22, - "SALARY": 200.5, - "CODES": new Uint8Array([1, 2, 3, 4, 5]), -} -let predicates = new data_rdb.RdbPredicates("EMPLOYEE") -predicates.equalTo("NAME", "Lisa") -let promise = rdbStore.update(valueBucket, predicates, data_rdb.ConflictResolution.ON_CONFLICT_REPLACE) + "NAME": "Rose", + "AGE": 22, + "SALARY": 200.5, + "CODES": new Uint8Array([1, 2, 3, 4, 5]), +}; +let predicates = new relationalStore.RdbPredicates("EMPLOYEE"); +predicates.equalTo("NAME", "Lisa"); +let promise = store.update(valueBucket, predicates, relationalStore.ConflictResolution.ON_CONFLICT_REPLACE); promise.then(async (rows) => { - console.log("Updated row count: " + rows) + console.info(`Updated row count: ${rows}`); }).catch((err) => { - console.info("Updated failed, err: " + err) + console.error(`Updated failed, err: ${err}`); }) ``` @@ -1713,15 +1674,15 @@ const valueBucket = { "AGE": 22, "SALARY": 200.5, "CODES": new Uint8Array([1, 2, 3, 4, 5]), -} -let predicates = new dataSharePredicates.DataSharePredicates() -predicates.equalTo("NAME", "Lisa") -rdbStore.update("EMPLOYEE", valueBucket, predicates, function (err, rows) { - if (err) { - console.info("Updated failed, err: " + err) - return - } - console.log("Updated row count: " + rows) +}; +let predicates = new dataSharePredicates.DataSharePredicates(); +predicates.equalTo("NAME", "Lisa"); +store.update("EMPLOYEE", valueBucket, predicates, function (err, rows) { + if (err) { + console.error(`Updated failed, err: ${err}`); + return; + } + console.info(`Updated row count: ${rows}`); }) ``` @@ -1754,18 +1715,18 @@ update(table: string, values: ValuesBucket, predicates: dataSharePredicates.Data ```js import dataSharePredicates from '@ohos.data.dataSharePredicates' const valueBucket = { - "NAME": "Rose", - "AGE": 22, - "SALARY": 200.5, - "CODES": new Uint8Array([1, 2, 3, 4, 5]), -} -let predicates = new dataSharePredicates.DataSharePredicates() -predicates.equalTo("NAME", "Lisa") -let promise = rdbStore.update("EMPLOYEE", valueBucket, predicates) + "NAME": "Rose", + "AGE": 22, + "SALARY": 200.5, + "CODES": new Uint8Array([1, 2, 3, 4, 5]), +}; +let predicates = new dataSharePredicates.DataSharePredicates(); +predicates.equalTo("NAME", "Lisa"); +let promise = store.update("EMPLOYEE", valueBucket, predicates); promise.then(async (rows) => { - console.log("Updated row count: " + rows) + console.info(`Updated row count: ${rows}`); }).catch((err) => { - console.info("Updated failed, err: " + err) + console.error(`Updated failed, err: ${err}`); }) ``` @@ -1787,14 +1748,14 @@ delete(predicates: RdbPredicates, callback: AsyncCallback<number>):void **示例:** ```js -let predicates = new data_rdb.RdbPredicates("EMPLOYEE") -predicates.equalTo("NAME", "Lisa") -rdbStore.delete(predicates, function (err, rows) { - if (err) { - console.info("Delete failed, err: " + err) - return - } - console.log("Delete rows: " + rows) +let predicates = new relationalStore.RdbPredicates("EMPLOYEE"); +predicates.equalTo("NAME", "Lisa"); +store.delete(predicates, function (err, rows) { + if (err) { + console.error(`Delete failed, err: ${err}`); + return; + } + console.info(`Delete rows: ${rows}`); }) ``` @@ -1821,13 +1782,13 @@ delete(predicates: RdbPredicates):Promise<number> **示例:** ```js -let predicates = new data_rdb.RdbPredicates("EMPLOYEE") -predicates.equalTo("NAME", "Lisa") -let promise = rdbStore.delete(predicates) +let predicates = new relationalStore.RdbPredicates("EMPLOYEE"); +predicates.equalTo("NAME", "Lisa"); +let promise = store.delete(predicates); promise.then((rows) => { - console.log("Delete rows: " + rows) + console.info(`Delete rows: ${rows}`); }).catch((err) => { - console.info("Delete failed, err: " + err) + console.error(`Delete failed, err: ${err}`); }) ``` @@ -1853,14 +1814,14 @@ delete(table: string, predicates: dataSharePredicates.DataSharePredicates, callb ```js import dataSharePredicates from '@ohos.data.dataSharePredicates' -let predicates = new dataSharePredicates.DataSharePredicates() -predicates.equalTo("NAME", "Lisa") -rdbStore.delete("EMPLOYEE", predicates, function (err, rows) { - if (err) { - console.info("Delete failed, err: " + err) - return - } - console.log("Delete rows: " + rows) +let predicates = new dataSharePredicates.DataSharePredicates(); +predicates.equalTo("NAME", "Lisa"); +store.delete("EMPLOYEE", predicates, function (err, rows) { + if (err) { + console.error(`Delete failed, err: ${err}`); + return; + } + console.info(`Delete rows: ${rows}`); }) ``` @@ -1891,13 +1852,13 @@ delete(table: string, predicates: dataSharePredicates.DataSharePredicates):Promi ```js import dataSharePredicates from '@ohos.data.dataSharePredicates' -let predicates = new dataSharePredicates.DataSharePredicates() -predicates.equalTo("NAME", "Lisa") -let promise = rdbStore.delete("EMPLOYEE", predicates) +let predicates = new dataSharePredicates.DataSharePredicates(); +predicates.equalTo("NAME", "Lisa"); +let promise = store.delete("EMPLOYEE", predicates); promise.then((rows) => { - console.log("Delete rows: " + rows) + console.info(`Delete rows: ${rows}`); }).catch((err) => { - console.info("Delete failed, err: " + err) + console.error(`Delete failed, err: ${err}`); }) ``` @@ -1920,15 +1881,15 @@ query(predicates: RdbPredicates, columns: Array<string>, callback: AsyncCa **示例:** ```js -let predicates = new data_rdb.RdbPredicates("EMPLOYEE") -predicates.equalTo("NAME", "Rose") -rdbStore.query(predicates, ["ID", "NAME", "AGE", "SALARY", "CODES"], function (err, resultSet) { - if (err) { - console.info("Query failed, err: " + err) - return - } - console.log("ResultSet column names: " + resultSet.columnNames) - console.log("ResultSet column count: " + resultSet.columnCount) +let predicates = new relationalStore.RdbPredicates("EMPLOYEE"); +predicates.equalTo("NAME", "Rose"); +store.query(predicates, ["ID", "NAME", "AGE", "SALARY", "CODES"], function (err, resultSet) { + if (err) { + console.error(`Query failed, err: ${err}`); + return; + } + console.info(`ResultSet column names: ${resultSet.columnNames}`); + console.info(`ResultSet column count: ${resultSet.columnCount}`); }) ``` @@ -1956,14 +1917,14 @@ query(predicates: RdbPredicates, columns?: Array<string>):Promise<Resul **示例:** ```js -let predicates = new data_rdb.RdbPredicates("EMPLOYEE") -predicates.equalTo("NAME", "Rose") -let promise = rdbStore.query(predicates, ["ID", "NAME", "AGE", "SALARY", "CODES"]) +let predicates = new relationalStore.RdbPredicates("EMPLOYEE"); +predicates.equalTo("NAME", "Rose"); +let promise = store.query(predicates, ["ID", "NAME", "AGE", "SALARY", "CODES"]); promise.then((resultSet) => { - console.log("ResultSet column names: " + resultSet.columnNames) - console.log("ResultSet column count: " + resultSet.columnCount) + console.info(`ResultSet column names: ${resultSet.columnNames}`); + console.info(`ResultSet column count: ${resultSet.columnCount}`); }).catch((err) => { - console.info("Query failed, err: " + err) + console.error(`Query failed, err: ${err}`); }) ``` @@ -1990,15 +1951,15 @@ query(table: string, predicates: dataSharePredicates.DataSharePredicates, column ```js import dataSharePredicates from '@ohos.data.dataSharePredicates' -let predicates = new dataSharePredicates.DataSharePredicates() -predicates.equalTo("NAME", "Rose") -rdbStore.query("EMPLOYEE", predicates, ["ID", "NAME", "AGE", "SALARY", "CODES"], function (err, resultSet) { - if (err) { - console.info("Query failed, err: " + err) - return - } - console.log("ResultSet column names: " + resultSet.columnNames) - console.log("ResultSet column count: " + resultSet.columnCount) +let predicates = new dataSharePredicates.DataSharePredicates(); +predicates.equalTo("NAME", "Rose"); +store.query("EMPLOYEE", predicates, ["ID", "NAME", "AGE", "SALARY", "CODES"], function (err, resultSet) { + if (err) { + console.error(`Query failed, err: ${err}`); + return; + } + console.info(`ResultSet column names: ${resultSet.columnNames}`); + console.info(`ResultSet column count: ${resultSet.columnCount}`); }) ``` @@ -2030,14 +1991,14 @@ query(table: string, predicates: dataSharePredicates.DataSharePredicates, column ```js import dataSharePredicates from '@ohos.data.dataSharePredicates' -let predicates = new dataSharePredicates.DataSharePredicates() -predicates.equalTo("NAME", "Rose") -let promise = rdbStore.query("EMPLOYEE", predicates, ["ID", "NAME", "AGE", "SALARY", "CODES"]) +let predicates = new dataSharePredicates.DataSharePredicates(); +predicates.equalTo("NAME", "Rose"); +let promise = store.query("EMPLOYEE", predicates, ["ID", "NAME", "AGE", "SALARY", "CODES"]); promise.then((resultSet) => { - console.log("ResultSet column names: " + resultSet.columnNames) - console.log("ResultSet column count: " + resultSet.columnCount) + console.info(`ResultSet column names: ${resultSet.columnNames}`); + console.info(`ResultSet column count: ${resultSet.columnCount}`); }).catch((err) => { - console.info("Query failed, err: " + err) + console.error(`Query failed, err: ${err}`); }) ``` @@ -2062,17 +2023,18 @@ remoteQuery(device: string, table: string, predicates: RdbPredicates, columns: A **示例:** ```js -let predicates = new data_rdb.RdbPredicates('EMPLOYEE') -predicates.greaterThan("id", 0) -rdbStore.remoteQuery("deviceId", "EMPLOYEE", predicates, ["ID", "NAME", "AGE", "SALARY", "CODES"], - function(err, resultSet){ +let predicates = new relationalStore.RdbPredicates('EMPLOYEE'); +predicates.greaterThan("id", 0); +store.remoteQuery("deviceId", "EMPLOYEE", predicates, ["ID", "NAME", "AGE", "SALARY", "CODES"], + function(err, resultSet) { if (err) { - console.info("Failed to remoteQuery, err: " + err) - return + console.error(`Failed to remoteQuery, err: ${err}`); + return; } - console.info("ResultSet column names: " + resultSet.columnNames) - console.info("ResultSet column count: " + resultSet.columnCount) -}) + console.info(`ResultSet column names: ${resultSet.columnNames}`); + console.info(`ResultSet column count: ${resultSet.columnCount}`); + } +) ``` ### remoteQuery @@ -2101,14 +2063,14 @@ remoteQuery(device: string, table: string, predicates: RdbPredicates, columns: A **示例:** ```js -let predicates = new data_rdb.RdbPredicates('EMPLOYEE') -predicates.greaterThan("id", 0) -let promise = rdbStore.remoteQuery("deviceId", "EMPLOYEE", predicates, ["ID", "NAME", "AGE", "SALARY", "CODES"]) +let predicates = new relationalStore.RdbPredicates('EMPLOYEE'); +predicates.greaterThan("id", 0); +let promise = store.remoteQuery("deviceId", "EMPLOYEE", predicates, ["ID", "NAME", "AGE", "SALARY", "CODES"]); promise.then((resultSet) => { - console.info("ResultSet column names: " + resultSet.columnNames) - console.info("ResultSet column count: " + resultSet.columnCount) + console.info(`ResultSet column names: ${resultSet.columnNames}`); + console.info(`ResultSet column count: ${resultSet.columnCount}`); }).catch((err) => { - console.info("Failed to remoteQuery , err: " + err) + console.error(`Failed to remoteQuery, err: ${err}`); }) ``` @@ -2131,13 +2093,13 @@ querySql(sql: string, bindArgs: Array<ValueType>, callback: AsyncCallback& **示例:** ```js -rdbStore.querySql("SELECT * FROM EMPLOYEE CROSS JOIN BOOK WHERE BOOK.NAME = ?", ['sanguo'], function (err, resultSet) { - if (err) { - console.info("Query failed, err: " + err) - return - } - console.log("ResultSet column names: " + resultSet.columnNames) - console.log("ResultSet column count: " + resultSet.columnCount) +store.querySql("SELECT * FROM EMPLOYEE CROSS JOIN BOOK WHERE BOOK.NAME = ?", ['sanguo'], function (err, resultSet) { + if (err) { + console.error(`Query failed, err: ${err}`); + return; + } + console.info(`ResultSet column names: ${resultSet.columnNames}`); + console.info(`ResultSet column count: ${resultSet.columnCount}`); }) ``` @@ -2165,12 +2127,12 @@ querySql(sql: string, bindArgs?: Array<ValueType>):Promise<ResultSet> **示例:** ```js -let promise = rdbStore.querySql("SELECT * FROM EMPLOYEE CROSS JOIN BOOK WHERE BOOK.NAME = ?", ['sanguo']) +let promise = store.querySql("SELECT * FROM EMPLOYEE CROSS JOIN BOOK WHERE BOOK.NAME = ?", ['sanguo']); promise.then((resultSet) => { - console.log("ResultSet column names: " + resultSet.columnNames) - console.log("ResultSet column count: " + resultSet.columnCount) + console.info(`ResultSet column names: ${resultSet.columnNames}`); + console.info(`ResultSet column count: ${resultSet.columnCount}`); }).catch((err) => { - console.info("Query failed, err: " + err) + console.error(`Query failed, err: ${err}`); }) ``` @@ -2194,12 +2156,12 @@ executeSql(sql: string, bindArgs: Array<ValueType>, callback: AsyncCallbac ```js const SQL_CREATE_TABLE = "CREATE TABLE IF NOT EXISTS EMPLOYEE (ID INTEGER PRIMARY KEY AUTOINCREMENT, NAME TEXT NOT NULL, AGE INTEGER, SALARY REAL, CODES BLOB)" -rdbStore.executeSql(SQL_CREATE_TABLE, null, function(err) { - if (err) { - console.info("ExecuteSql failed, err: " + err) - return - } - console.info('Create table done.') +store.executeSql(SQL_CREATE_TABLE, null, function(err) { + if (err) { + console.error(`ExecuteSql failed, err: ${err}`); + return; + } + console.info(`Create table done.`); }) ``` @@ -2228,11 +2190,11 @@ executeSql(sql: string, bindArgs?: Array<ValueType>):Promise<void> ```js const SQL_CREATE_TABLE = "CREATE TABLE IF NOT EXISTS EMPLOYEE (ID INTEGER PRIMARY KEY AUTOINCREMENT, NAME TEXT NOT NULL, AGE INTEGER, SALARY REAL, CODES BLOB)" -let promise = rdbStore.executeSql(SQL_CREATE_TABLE) +let promise = store.executeSql(SQL_CREATE_TABLE); promise.then(() => { - console.info('Create table done.') + console.info(`Create table done.`); }).catch((err) => { - console.info("ExecuteSql failed, err: " + err) + console.error(`ExecuteSql failed, err: ${err}`); }) ``` @@ -2248,19 +2210,25 @@ beginTransaction():void ```js import featureAbility from '@ohos.ability.featureAbility' -let context = featureAbility.getContext() -const STORE_CONFIG = { name: "RdbTest.db", - securityLevel: data_rdb.SecurityLevel.S1} -data_rdb.getRdbStore(context, STORE_CONFIG, async function (err, rdbStore) { - rdbStore.beginTransaction() - const valueBucket = { - "name": "lisi", - "age": 18, - "salary": 100.5, - "blobType": new Uint8Array([1, 2, 3]), - } - await rdbStore.insert("test", valueBucket) - rdbStore.commit() +let context = featureAbility.getContext(); +const STORE_CONFIG = { + name: "RdbTest.db", + securityLevel: relationalStore.SecurityLevel.S1 +}; +relationalStore.getRdbStore(context, STORE_CONFIG, async function (err, store) { + if (err) { + console.error(`GetRdbStore failed, err: ${err}`); + return; + } + store.beginTransaction(); + const valueBucket = { + "name": "lisi", + "age": 18, + "salary": 100.5, + "blobType": new Uint8Array([1, 2, 3]), + }; + await store.insert("test", valueBucket); + store.commit(); }) ``` @@ -2276,19 +2244,25 @@ commit():void ```js import featureAbility from '@ohos.ability.featureAbility' -let context = featureAbility.getContext() -const STORE_CONFIG = { name: "RdbTest.db", - securityLevel: data_rdb.SecurityLevel.S1} -data_rdb.getRdbStore(context, STORE_CONFIG, async function (err, rdbStore) { - rdbStore.beginTransaction() - const valueBucket = { - "name": "lisi", - "age": 18, - "salary": 100.5, - "blobType": new Uint8Array([1, 2, 3]), - } - await rdbStore.insert("test", valueBucket) - rdbStore.commit() +let context = featureAbility.getContext(); +const STORE_CONFIG = { + name: "RdbTest.db", + securityLevel: relationalStore.SecurityLevel.S1 +}; +relationalStore.getRdbStore(context, STORE_CONFIG, async function (err, store) { + if (err) { + console.error(`GetRdbStore failed, err: ${err}`); + return; + } + store.beginTransaction(); + const valueBucket = { + "name": "lisi", + "age": 18, + "salary": 100.5, + "blobType": new Uint8Array([1, 2, 3]), + }; + await store.insert("test", valueBucket); + store.commit(); }) ``` @@ -2304,24 +2278,31 @@ rollBack():void ```js import featureAbility from '@ohos.ability.featureAbility' -let context = featureAbility.getContext() -const STORE_CONFIG = { name: "RdbTest.db", - securityLevel: data_rdb.SecurityLevel.S1} -data_rdb.getRdbStore(context, STORE_CONFIG, async function (err, rdbStore) { - try { - rdbStore.beginTransaction() - const valueBucket = { - "id": 1, - "name": "lisi", - "age": 18, - "salary": 100.5, - "blobType": new Uint8Array([1, 2, 3]), - } - await rdbStore.insert("test", valueBucket) - rdbStore.commit() - } catch (e) { - rdbStore.rollBack() - } +let context = featureAbility.getContext(); +const STORE_CONFIG = { + name: "RdbTest.db", + securityLevel: relationalStore.SecurityLevel.S1 +}; +relationalStore.getRdbStore(context, STORE_CONFIG, async function (err, store) { + if (err) { + console.error(`GetRdbStore failed, err: ${err}`); + return; + } + try { + store.beginTransaction() + const valueBucket = { + "id": 1, + "name": "lisi", + "age": 18, + "salary": 100.5, + "blobType": new Uint8Array([1, 2, 3]), + }; + await store.insert("test", valueBucket); + store.commit(); + } catch (err) { + console.error(`Transaction failed, err: ${err}`); + store.rollBack(); + } }) ``` @@ -2343,12 +2324,12 @@ backup(destName:string, callback: AsyncCallback<void>):void **示例:** ```js -rdbStore.backup("dbBackup.db", function(err) { - if (err) { - console.info('Backup failed, err: ' + err) - return - } - console.info('Backup success.') +store.backup("dbBackup.db", function(err) { + if (err) { + console.error(`Backup failed, err: ${err}`); + return; + } + console.info(`Backup success.`); }) ``` @@ -2375,11 +2356,11 @@ backup(destName:string): Promise<void> **示例:** ```js -let promiseBackup = rdbStore.backup("dbBackup.db") +let promiseBackup = store.backup("dbBackup.db"); promiseBackup.then(()=>{ - console.info('Backup success.') + console.info(`Backup success.`); }).catch((err)=>{ - console.info('Backup failed, err: ' + err) + console.error(`Backup failed, err: ${err}`); }) ``` @@ -2401,12 +2382,12 @@ restore(srcName:string, callback: AsyncCallback<void>):void **示例:** ```js -rdbStore.restore("dbBackup.db", function(err) { - if (err) { - console.info('Restore failed, err: ' + err) - return - } - console.info('Restore success.') +store.restore("dbBackup.db", function(err) { + if (err) { + console.error(`Restore failed, err: ${err}`); + return; + } + console.info(`Restore success.`); }) ``` @@ -2433,11 +2414,11 @@ restore(srcName:string): Promise<void> **示例:** ```js -let promiseRestore = rdbStore.restore("dbBackup.db") +let promiseRestore = store.restore("dbBackup.db"); promiseRestore.then(()=>{ - console.info('Restore success.') + console.info(`Restore success.`); }).catch((err)=>{ - console.info('Restore failed, err: ' + err) + console.error(`Restore failed, err: ${err}`); }) ``` @@ -2461,12 +2442,12 @@ setDistributedTables(tables: Array<string>, callback: AsyncCallback<voi **示例:** ```js -rdbStore.setDistributedTables(["EMPLOYEE"], function (err) { - if (err) { - console.info('SetDistributedTables failed, err: ' + err) - return - } - console.info('SetDistributedTables successfully.') +store.setDistributedTables(["EMPLOYEE"], function (err) { + if (err) { + console.error(`SetDistributedTables failed, err: ${err}`); + return; + } + console.info(`SetDistributedTables successfully.`); }) ``` @@ -2495,11 +2476,11 @@ rdbStore.setDistributedTables(["EMPLOYEE"], function (err) { **示例:** ```js -let promise = rdbStore.setDistributedTables(["EMPLOYEE"]) +let promise = store.setDistributedTables(["EMPLOYEE"]); promise.then(() => { - console.info("SetDistributedTables successfully.") + console.info(`SetDistributedTables successfully.`); }).catch((err) => { - console.info("SetDistributedTables failed, err: " + err) + console.error(`SetDistributedTables failed, err: ${err}`); }) ``` @@ -2524,12 +2505,12 @@ obtainDistributedTableName(device: string, table: string, callback: AsyncCallbac **示例:** ```js -rdbStore.obtainDistributedTableName("12345678abcde", "EMPLOYEE", function (err, tableName) { +store.obtainDistributedTableName("12345678abcde", "EMPLOYEE", function (err, tableName) { if (err) { - console.info('ObtainDistributedTableName failed, err: ' + err) - return + console.error(`ObtainDistributedTableName failed, err: ${err}`); + return; } - console.info('ObtainDistributedTableName successfully, tableName=.' + tableName) + console.info(`ObtainDistributedTableName successfully, tableName= ${tableName}`); }) ``` @@ -2559,11 +2540,11 @@ rdbStore.obtainDistributedTableName("12345678abcde", "EMPLOYEE", function (err, **示例:** ```js -let promise = rdbStore.obtainDistributedTableName("12345678abcde", "EMPLOYEE") +let promise = store.obtainDistributedTableName("12345678abcde", "EMPLOYEE"); promise.then((tableName) => { - console.info('ObtainDistributedTableName successfully, tableName= ' + tableName) + console.info(`ObtainDistributedTableName successfully, tableName= ${tableName}`); }).catch((err) => { - console.info('ObtainDistributedTableName failed, err: ' + err) + console.error(`ObtainDistributedTableName failed, err: ${err}`); }) ``` @@ -2588,17 +2569,17 @@ sync(mode: SyncMode, predicates: RdbPredicates, callback: AsyncCallback<Array **示例:** ```js -let predicates = new data_rdb.RdbPredicates('EMPLOYEE') -predicates.inDevices(['12345678abcde']) -rdbStore.sync(data_rdb.SyncMode.SYNC_MODE_PUSH, predicates, function (err, result) { - if (err) { - console.log('Sync failed, err: ' + err) - return - } - console.log('Sync done.') - for (let i = 0; i < result.length; i++) { - console.log('device=' + result[i][0] + ' status=' + result[i][1]) - } +let predicates = new relationalStore.RdbPredicates('EMPLOYEE'); +predicates.inDevices(['12345678abcde']); +store.sync(relationalStore.SyncMode.SYNC_MODE_PUSH, predicates, function (err, result) { + if (err) { + console.error(`Sync failed, err: ${err}`); + return; + } + console.info(`Sync done.`); + for (let i = 0; i < result.length; i++) { + console.info(`device= ${result[i][0]}, status= ${result[i][1]}`); + } }) ``` @@ -2628,16 +2609,16 @@ rdbStore.sync(data_rdb.SyncMode.SYNC_MODE_PUSH, predicates, function (err, resul **示例:** ```js -let predicates = new data_rdb.RdbPredicates('EMPLOYEE') -predicates.inDevices(['12345678abcde']) -let promise = rdbStore.sync(data_rdb.SyncMode.SYNC_MODE_PUSH, predicates) +let predicates = new relationalStore.RdbPredicates('EMPLOYEE'); +predicates.inDevices(['12345678abcde']); +let promise = store.sync(relationalStore.SyncMode.SYNC_MODE_PUSH, predicates); promise.then((resultSet) =>{ - console.log('Sync done.') - for (let i = 0; i < resultSet.length; i++) { - console.log('device=' + resultSet[i][0] + ' status=' + resultSet[i][1]) - } + console.info(`Sync done.`); + for (let i = 0; i < resultSet.length; i++) { + console.info(`device= ${result[i][0]}, status= ${result[i][1]}`); + } }).catch((err) => { - console.log('Sync failed') + console.error(`Sync failed, err: ${err}`); }) ``` @@ -2661,14 +2642,14 @@ on(event: 'dataChange', type: SubscribeType, observer: Callback<Array<stri ```js function storeObserver(devices) { - for (let i = 0; i < devices.length; i++) { - console.log('device=' + devices[i] + ' data changed') - } + for (let i = 0; i < devices.length; i++) { + console.info(`device= ${devices[i]} data changed`); + } } try { - rdbStore.on('dataChange', data_rdb.SubscribeType.SUBSCRIBE_TYPE_REMOTE, storeObserver) + store.on('dataChange', relationalStore.SubscribeType.SUBSCRIBE_TYPE_REMOTE, storeObserver); } catch (err) { - console.log('Register observer failed') + console.error(`Register observer failed, err: ${err}`); } ``` @@ -2692,14 +2673,14 @@ off(event:'dataChange', type: SubscribeType, observer: Callback<Array<stri ```js function storeObserver(devices) { - for (let i = 0; i < devices.length; i++) { - console.log('device=' + devices[i] + ' data changed') - } + for (let i = 0; i < devices.length; i++) { + console.info(`device= ${devices[i]} data changed`); + } } try { - rdbStore.off('dataChange', data_rdb.SubscribeType.SUBSCRIBE_TYPE_REMOTE, storeObserver) + store.off('dataChange', relationalStore.SubscribeType.SUBSCRIBE_TYPE_REMOTE, storeObserver); } catch (err) { - console.log('Unregister observer failed') + console.error(`Unregister observer failed, err: ${err}`); } ``` @@ -2709,16 +2690,15 @@ try { ### 使用说明 -需要通过[RdbStore.query()](#query)获取resultSet对象。 +首先需要获取resultSet对象。 ```js -import dataRdb from '@ohos.data.rdb'; -let predicates = new dataRdb.RdbPredicates("EMPLOYEE"); +let predicates = new relationalStore.RdbPredicates("EMPLOYEE"); predicates.equalTo("AGE", 18); -let promise = rdbStore.query(predicates, ["ID", "NAME", "AGE", "SALARY", "CODES"]); +let promise = store.query(predicates, ["ID", "NAME", "AGE", "SALARY", "CODES"]); promise.then((resultSet) => { - console.log(TAG + "resultSet columnNames:" + resultSet.columnNames); - console.log(TAG + "resultSet columnCount:" + resultSet.columnCount); + console.info(`resultSet columnNames: ${resultSet.columnNames}`); + console.info(`resultSet columnCount: ${resultSet.columnCount}`); }); ``` @@ -2843,13 +2823,13 @@ goTo(offset:number): boolean **示例:** ```js -let predicates = new dataRdb.RdbPredicates("EMPLOYEE"); -let promise= rdbStore.query(predicates, ["ID", "NAME", "AGE", "SALARY", "CODES"]); +let predicates = new relationalStore.RdbPredicates("EMPLOYEE"); +let promise= store.query(predicates, ["ID", "NAME", "AGE", "SALARY", "CODES"]); promise.then((resultSet) => { - resultSet.goTo(1); - resultSet.close(); + resultSet.goTo(1); + resultSet.close(); }).catch((err) => { - console.log('query failed'); + console.error(`query failed, err: ${err}`); }); ``` @@ -2884,13 +2864,13 @@ goToRow(position: number): boolean **示例:** ```js -let predicates = new dataRdb.RdbPredicates("EMPLOYEE"); -let promise = rdbStore.query(predicates, ["ID", "NAME", "AGE", "SALARY", "CODES"]); +let predicates = new relationalStore.RdbPredicates("EMPLOYEE"); +let promise = store.query(predicates, ["ID", "NAME", "AGE", "SALARY", "CODES"]); promise.then((resultSet) => { - resultSet.(5); - resultSet.close(); + resultSet.(5); + resultSet.close(); }).catch((err) => { - console.log('query failed'); + console.error(`query failed, err: ${err}`); }); ``` @@ -2920,13 +2900,13 @@ goToFirstRow(): boolean **示例:** ```js -let predicates = new dataRdb.RdbPredicates("EMPLOYEE"); -let promise = rdbStore.query(predicates, ["ID", "NAME", "AGE", "SALARY", "CODES"]); +let predicates = new relationalStore.RdbPredicates("EMPLOYEE"); +let promise = store.query(predicates, ["ID", "NAME", "AGE", "SALARY", "CODES"]); promise.then((resultSet) => { - resultSet.goToFirstRow(); - resultSet.close(); + resultSet.goToFirstRow(); + resultSet.close(); }).catch((err) => { - console.log('query failed'); + console.error(`query failed, err: ${err}`); }); ``` @@ -2955,13 +2935,13 @@ goToLastRow(): boolean **示例:** ```js -let predicates = new dataRdb.RdbPredicates("EMPLOYEE"); -let promise = rdbStore.query(predicates, ["ID", "NAME", "AGE", "SALARY", "CODES"]); +let predicates = new relationalStore.RdbPredicates("EMPLOYEE"); +let promise = store.query(predicates, ["ID", "NAME", "AGE", "SALARY", "CODES"]); promise.then((resultSet) => { - resultSet.goToLastRow(); - resultSet.close(); + resultSet.goToLastRow(); + resultSet.close(); }).catch((err) => { - console.log('query failed'); + console.error(`query failed, err: ${err}`); }); ``` @@ -2990,13 +2970,13 @@ goToNextRow(): boolean **示例:** ```js -let predicates = new dataRdb.RdbPredicates("EMPLOYEE"); -let promise = rdbStore.query(predicates, ["ID", "NAME", "AGE", "SALARY", "CODES"]); +let predicates = new relationalStore.RdbPredicates("EMPLOYEE"); +let promise = store.query(predicates, ["ID", "NAME", "AGE", "SALARY", "CODES"]); promise.then((resultSet) => { - resultSet.goToNextRow(); - resultSet.close(); + resultSet.goToNextRow(); + resultSet.close(); }).catch((err) => { - console.log('query failed'); + console.error(`query failed, err: ${err}`); }); ``` @@ -3025,13 +3005,13 @@ goToPreviousRow(): boolean **示例:** ```js -let predicates = new dataRdb.RdbPredicates("EMPLOYEE"); -let promise = rdbStore.query(predicates, ["ID", "NAME", "AGE", "SALARY", "CODES"]); +let predicates = new relationalStore.RdbPredicates("EMPLOYEE"); +let promise = store.query(predicates, ["ID", "NAME", "AGE", "SALARY", "CODES"]); promise.then((resultSet) => { - resultSet.goToPreviousRow(); - resultSet.close(); + resultSet.goToPreviousRow(); + resultSet.close(); }).catch((err) => { - console.log('query failed'); + console.error(`query failed, err: ${err}`); }); ``` @@ -3184,12 +3164,12 @@ close(): void **示例:** ```js -let predicatesClose = new dataRdb.RdbPredicates("EMPLOYEE"); -let promiseClose = rdbStore.query(predicatesClose, ["ID", "NAME", "AGE", "SALARY", "CODES"]); +let predicatesClose = new relationalStore.RdbPredicates("EMPLOYEE"); +let promiseClose = store.query(predicatesClose, ["ID", "NAME", "AGE", "SALARY", "CODES"]); promiseClose.then((resultSet) => { - resultSet.close(); + resultSet.close(); }).catch((err) => { - console.log('resultset close failed'); + console.error(`resultset close failed, err: ${err}`); }); ``` diff --git a/zh-cn/application-dev/reference/apis/js-apis-device-info.md b/zh-cn/application-dev/reference/apis/js-apis-device-info.md index 15e04717e5e360bff9dcb9bbf9e97de030ab6a45..c452d6cc62b1a0e4f66c358c177ffc1e58f0d487 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-device-info.md +++ b/zh-cn/application-dev/reference/apis/js-apis-device-info.md @@ -29,7 +29,7 @@ import deviceInfo from '@ohos.deviceInfo' | softwareModel | string | 是 | 否 | 内部软件子型号。 | | hardwareModel | string | 是 | 否 | 硬件版本号。 | | hardwareProfile | string | 是 | 否 | 硬件Profile。 | -| serial | string | 是 | 否 | 设备序列号。
**需要权限**:ohos.permission.sec.ACCESS_UDID,该权限为系统权限 | +| serial | string | 是 | 否 | 设备序列号。
**需要权限**:ohos.permission.sec.ACCESS_UDID | | bootloaderVersion | string | 是 | 否 | Bootloader版本号。 | | abiList | string | 是 | 否 | 应用二进制接口(Abi)列表。 | | securityPatchTag | string | 是 | 否 | 安全补丁级别。 | @@ -49,4 +49,4 @@ import deviceInfo from '@ohos.deviceInfo' | buildHost | string | 是 | 否 | 构建主机。 | | buildTime | string | 是 | 否 | 构建时间。 | | buildRootHash | string | 是 | 否 | 构建版本Hash。 | -| udid7+ | string | 是 | 否 | 设备Udid。
**需要权限**:ohos.permission.sec.ACCESS_UDID,该权限为系统权限| +| udid7+ | string | 是 | 否 | 设备Udid。
**需要权限**:ohos.permission.sec.ACCESS_UDID| diff --git a/zh-cn/application-dev/reference/apis/js-apis-device-manager.md b/zh-cn/application-dev/reference/apis/js-apis-device-manager.md index f1bec7a514881cdee90afb7ab41d224b8ab661d5..befb737bed6c6630c514dd57286252ba8f78c768 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-device-manager.md +++ b/zh-cn/application-dev/reference/apis/js-apis-device-manager.md @@ -78,6 +78,7 @@ createDeviceManager(bundleName: string, callback: AsyncCallback<DeviceManager | deviceType | [DeviceType](#devicetype) | 是 | 设备类型。 | | networkId8+ | string | 是 | 设备网络标识。 | | range9+ | number | 是 | 发现设备的距离。 | +| authForm10+ | [AuthForm](#authform) | 是 | 设备认证类型 | ## DeviceType @@ -95,6 +96,18 @@ createDeviceManager(bundleName: string, callback: AsyncCallback<DeviceManager | CAR | 0x83 | 车 | | UNKNOWN_TYPE | 0 | 未知设备 | +## AuthForm + +表示设备认证类型的枚举类。 + +**系统能力**:以下各项对应的系统能力均为SystemCapability.DistributedHardware.DeviceManager + +| 名称 | 值 | 说明 | +| ------------------- | ---- | --------------- | +| INVALID_TYPE | -1 | 设备没有认证 | +| PEER_TO_PEER | 0 | 无账号设备点对点认证 | +| IDENTICAL_ACCOUNT | 1 | 设备同账号认证 | +| ACROSS_ACCOUNT | 2 | 设备跨账号认证 | ## DeviceStateChangeAction @@ -588,8 +601,9 @@ stopDeviceDiscovery(subscribeId: number): void **示例:** ```js - // 入参需要和startDeviceDiscovery接口传入的subscribeId配对使用 try { + // stopDeviceDiscovery和startDeviceDiscovery需配对使用,入参需要和startDeviceDiscovery接口传入的subscribeId值相等 + var subscribeId = 12345; dmInstance.stopDeviceDiscovery(subscribeId); } catch (err) { console.error("stopDeviceDiscovery errCode:" + err.code + ",errMessage:" + err.message); @@ -630,7 +644,7 @@ publishDeviceDiscovery(publishInfo: PublishInfo): void "publishId": publishId, "mode": 0xAA, // 主动模式 "freq": 2, // 高频率 - "ranging": 1 // 支持发现时测距 + "ranging": true // 支持发现时测距 }; try { dmInstance.publishDeviceDiscovery(publishInfo); // 当有发布结果时,通过回调通知给应用程序 @@ -666,8 +680,9 @@ unPublishDeviceDiscovery(publishId: number): void **示例:** ```js - // 入参需要和publishDeviceDiscovery接口传入的publishId配对使用 try { + // unPublishDeviceDiscovery和publishDeviceDiscovery配对使用,入参需要和publishDeviceDiscovery接口传入的publishId值相等 + var publishId = 12345; dmInstance.unPublishDeviceDiscovery(publishId); } catch (err) { console.error("unPublishDeviceDiscovery errCode:" + err.code + ",errMessage:" + err.message); @@ -708,11 +723,19 @@ authenticateDevice(deviceInfo: DeviceInfo, authParam: AuthParam, callback: Async var deviceInfo ={ "deviceId": "XXXXXXXX", "deviceName": "", - deviceType: 0x0E + "deviceType": 0x0E, + "networkId" : "xxxxxxx", + "range" : 0 }; + let extraInfo = { + 'targetPkgName': 'ohos.samples.xxx', + 'appName': 'xxx', + 'appDescription': 'xxx', + 'business': '0' + } let authParam = { - "authType": 1, // 认证类型: 1 - 无帐号PIN码认证 - "extraInfo": {} + 'authType': 1,// 认证类型: 1 - 无帐号PIN码认证 + 'extraInfo': extraInfo } try { dmInstance.authenticateDevice(deviceInfo, authParam, (err, data) => { @@ -756,6 +779,13 @@ unAuthenticateDevice(deviceInfo: DeviceInfo): void ```js try { + var deviceInfo ={ + "deviceId": "XXXXXXXX", + "deviceName": "", + "deviceType": 0x0E, + "networkId" : "xxxxxxx", + "range" : 0 + }; dmInstance.unAuthenticateDevice(deviceInfo); } catch (err) { console.error("unAuthenticateDevice errCode:" + err.code + ",errMessage:" + err.message); @@ -792,7 +822,7 @@ verifyAuthInfo(authInfo: AuthInfo, callback: AsyncCallback<{deviceId: string, ```js let authInfo = { "authType": 1, - "token": xxxxxx, + "token": 123456, "extraInfo": {} } try { @@ -838,7 +868,7 @@ setUserOperation(operateAction: number, params: string): void; operateAction = 5 - pin码输入框确定操作 */ let operation = 0; - this.dmInstance.setUserOperation(operation, "extra") + dmInstance.setUserOperation(operation, "extra") } catch (err) { console.error("setUserOperation errCode:" + err.code + ",errMessage:" + err.message); } @@ -868,11 +898,8 @@ ui状态变更回调。 dmInstance.on('uiStateChange', (data) => { console.log("uiStateChange executed, dialog closed" + JSON.stringify(data)) var tmpStr = JSON.parse(data.param) - this.isShow = tmpStr.verifyFailed - console.log("uiStateChange executed, dialog closed" + this.isShow) - if (!this.isShow) { - this.destruction() - } + var isShow = tmpStr.verifyFailed + console.log("uiStateChange executed, dialog closed" + isShow) }); } catch (err) { console.error("uiStateChange errCode:" + err.code + ",errMessage:" + err.message); diff --git a/zh-cn/application-dev/reference/apis/js-apis-display.md b/zh-cn/application-dev/reference/apis/js-apis-display.md index 971af855e30f098cc3baa450bf883e1d4bf201bd..8b73f026dcdc1864fcde3cc02707a890f3c39a9e 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-display.md +++ b/zh-cn/application-dev/reference/apis/js-apis-display.md @@ -28,6 +28,19 @@ import display from '@ohos.display'; | STATE_VR | 5 | 表示显示设备为VR模式。| | STATE_ON_SUSPEND | 6 | 表示显示设备为开启状态,CPU为挂起状态。 | +## Orientation10+ + +显示设备当前显示的方向枚举。 + +**系统能力:** SystemCapability.WindowManager.WindowManager.Core + +| 名称 | 值 | 说明 | +| -------- | -------- | -------- | +| PORTRAIT | 0 | 表示设备当前以竖屏方式显示。| +| LANDSCAPE | 1 | 表示设备当前以横屏方式显示。 | +| PORTRAIT_INVERTED | 2 | 表示设备当前以反向竖屏方式显示。| +| LANDSCAPE_INVERTED | 3 | 表示设备当前以反向横屏方式显示。| + ## Rect9+ 矩形区域。 @@ -420,6 +433,7 @@ promise.then((data) => { | width | number | 是 | 否 | 显示设备的宽度,单位为像素。| | height | number | 是 | 否 | 显示设备的高度,单位为像素。| | densityDPI | number | 是 | 否 | 显示设备的屏幕密度,表示每英寸点数。一般取值160,480等。 | +| orientation10+ | [Orientation](#orientation10) | 是 | 否 | 表示屏幕当前显示的方向。 | | densityPixels | number | 是 | 否 | 显示设备的逻辑密度,是像素单位无关的缩放系数。一般取值1,3等。 | | scaledDensity | number | 是 | 否 | 显示设备的显示字体的缩放因子。通常与densityPixels相同。 | | xDPI | number | 是 | 否 | x方向中每英寸屏幕的确切物理像素值。 | diff --git a/zh-cn/application-dev/reference/apis/js-apis-distributedKVStore.md b/zh-cn/application-dev/reference/apis/js-apis-distributedKVStore.md index 9290088c53a09d04c8056fdb817d6ec80a373c99..3b61f968c98f5bd3ac708e912b8f39e7f776a029 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-distributedKVStore.md +++ b/zh-cn/application-dev/reference/apis/js-apis-distributedKVStore.md @@ -2847,7 +2847,7 @@ try { ### get -get(key: string, callback: AsyncCallback): void +get(key: string, callback: AsyncCallback<boolean | string | number | Uint8Array>): void 获取指定键的值,使用callback异步回调。 @@ -2898,7 +2898,7 @@ try { ### get -get(key: string): Promise<boolean | string| number | Uint8Array> +get(key: string): Promise<boolean | string | number | Uint8Array> 获取指定键的值,使用Promise异步回调。 @@ -4849,7 +4849,7 @@ try { ### get -get(key: string, callback: AsyncCallback): void +get(key: string, callback: AsyncCallback<boolean | string | number | Uint8Array>): void 获取本设备指定键的值,使用callback异步回调。 @@ -4900,7 +4900,7 @@ try { ### get -get(key: string): Promise<boolean | string| number | Uint8Array> +get(key: string): Promise<boolean | string | number | Uint8Array> 获取本设备指定键的值,使用Promise异步回调。 @@ -4952,7 +4952,7 @@ try { ### get -get(deviceId: string, key: string, callback: AsyncCallback<boolean|string|number|Uint8Array>): void +get(deviceId: string, key: string, callback: AsyncCallback<boolean | string | number | Uint8Array>): void 获取与指定设备ID和key匹配的string值,使用callback异步回调。 @@ -5004,7 +5004,7 @@ try { ### get -get(deviceId: string, key: string): Promise<boolean|string|number|Uint8Array> +get(deviceId: string, key: string): Promise<boolean | string | number | Uint8Array> 获取与指定设备ID和key匹配的string值,使用Promise异步回调。 diff --git a/zh-cn/application-dev/reference/apis/js-apis-enterprise-deviceControl.md b/zh-cn/application-dev/reference/apis/js-apis-enterprise-deviceControl.md new file mode 100644 index 0000000000000000000000000000000000000000..d497f07be910d4aeba6949dce61f4ac7b94e9cf6 --- /dev/null +++ b/zh-cn/application-dev/reference/apis/js-apis-enterprise-deviceControl.md @@ -0,0 +1,101 @@ +# @ohos.enterprise.deviceControl (设备控制管理) + +本模块提供设备控制能力。仅企业设备管理员应用才能调用。 + +> **说明**: +> +> 本模块首批接口从API version 10 开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 + +## 导入模块 + +```js +import deviceControl from '@ohos.enterprise.deviceControl' +``` + +## deviceControl.resetFactory + +resetFactory(admin: Want, callback: AsyncCallback): void + +恢复出厂设置。使用callback异步回调。 + +**需要权限:** ohos.permission.ENTERPRISE_RESET_DEVICE + +**系统能力:** SystemCapability.Customization.EnterpriseDeviceManager + +**系统API**: 此接口为系统接口。 + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| ----- | ----------------------------------- | ---- | ------- | +| admin | [Want](js-apis-app-ability-want.md) | 是 | 设备管理员应用。 | +| callback | AsyncCallback\ | 是 | 回调函数。当系统时间设置成功err为null,否则为错误对象。 | + +**错误码**: + +以下的错误码的详细介绍请参见[企业设备管理错误码](../errorcodes/errorcode-enterpriseDeviceManager.md)。 + +| 错误码ID | 错误信息 | +| ------- | ---------------------------------------------------------------------------- | +| 9200001 | the application is not an administrator of the device. | +| 9200002 | the administrator application does not have permission to manage the device. | + +**示例:** + +```js +let wantTemp = { + bundleName: "bundleName", + abilityName: "abilityName", +}; +deviceControl.resetFactory(wantTemp, (error) => { + if (error) { + console.log("error code:" + error.code + " error message:" + error.message); + } +}) +``` + +## deviceControl.resetFactory + +resetFactory(admin: Want): Promise + +恢复出厂设置。使用Promise异步回调。 + +**需要权限:** ohos.permission.ENTERPRISE_RESET_DEVICE + +**系统能力:** SystemCapability.Customization.EnterpriseDeviceManager + +**系统API**: 此接口为系统接口。 + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| ----- | ----------------------------------- | ---- | ------- | +| admin | [Want](js-apis-app-ability-want.md) | 是 | 设备管理员应用。 | + +**返回值:** + +| 类型 | 说明 | +| ----- | ----------------------------------- | +| Promise\ | Promise对象。无返回结果的Promise对象。 | + +**错误码**: + +以下的错误码的详细介绍请参见[企业设备管理错误码](../errorcodes/errorcode-enterpriseDeviceManager.md)。 + +| 错误码ID | 错误信息 | +| ------- | ---------------------------------------------------------------------------- | +| 9200001 | the application is not an administrator of the device. | +| 9200002 | the administrator application does not have permission to manage the device. | + +**示例:** + +```js +let wantTemp = { + bundleName: "bundleName", + abilityName: "abilityName", +}; +deviceControl.resetFactory(wantTemp).then(() => { +}).catch((error) => { + console.log("error code:" + error.code + " error message:" + error.message); +}) +``` diff --git a/zh-cn/application-dev/reference/apis/js-apis-file-environment.md b/zh-cn/application-dev/reference/apis/js-apis-file-environment.md index a3d891cf5660e8ece94b572669be80dd6f54a049..f6bb1c415116c14505e2cc211caa15e78c1ccc99 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-file-environment.md +++ b/zh-cn/application-dev/reference/apis/js-apis-file-environment.md @@ -30,9 +30,9 @@ getStorageDataDir():Promise<string> **示例:** ```js - environment.getStorageDataDir().then(function (path) { + environment.getStorageDataDir().then((path) => { console.info("getStorageDataDir successfully, Path: " + path); - }).catch(function (err) { + }).catch((err) => { console.info("getStorageDataDir failed with error message: " + err.message + ", error code: " + err.code); }); ``` @@ -54,7 +54,7 @@ getStorageDataDir(callback:AsyncCallback<string>):void **示例:** ```js - environment.getStorageDataDir(function (error, path) { + environment.getStorageDataDir((err, path) => { if (err) { console.info("getStorageDataDir failed with error message: " + err.message + ", error code: " + err.code); } else { @@ -80,9 +80,9 @@ getUserDataDir():Promise<string> **示例:** ```js - environment.getUserDataDir().then(function (path) { + environment.getUserDataDir().then((path) => { console.info("getUserDataDir successfully, Path: " + path); - }).catch(function (err) { + }).catch((err) => { console.info("getUserDataDir failed with error message: " + err.message + ", error code: " + err.code); }); ``` @@ -104,7 +104,7 @@ getUserDataDir(callback:AsyncCallback<string>): void **示例:** ```js - environment.getUserDataDir(function (err, path) { + environment.getUserDataDir((err, path) => { if (err) { console.info("getUserDataDir failed with error message: " + err.message + ", error code: " + err.code); } else { diff --git a/zh-cn/application-dev/reference/apis/js-apis-file-fs.md b/zh-cn/application-dev/reference/apis/js-apis-file-fs.md index 0d4dce46885203594d419320d5aae0ff09208ad3..681f8f13142d5328a67f8566a0bcc173897d4e21 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-file-fs.md +++ b/zh-cn/application-dev/reference/apis/js-apis-file-fs.md @@ -481,7 +481,7 @@ mkdirSync(path: string): void ## fs.open -open(path: string, flags?: number): Promise<File> +open(path: string, mode?: number): Promise<File> 打开文件,使用Promise异步回调。支持使用URI打开文件。 @@ -492,7 +492,7 @@ open(path: string, flags?: number): Promise<File> | 参数名 | 类型 | 必填 | 说明 | | ------ | ------ | ---- | ------------------------------------------------------------ | | path | string | 是 | 文件的应用沙箱路径或文件URI。 | -| flags | number | 否 | 打开文件的[选项](#openmode),必须指定如下选项中的一个,默认以只读方式打开:
- OpenMode.READ_ONLY(0o0):只读打开。
- OpenMode.WRITE_ONLY(0o1):只写打开。
- OpenMode.READ_WRITE(0o2):读写打开。
给定如下功能选项,以按位或的方式追加,默认不给定任何额外选项:
- OpenMode.CREATE(0o100):若文件不存在,则创建文件。
- OpenMode.TRUNC(0o1000):如果文件存在且以只写或读写的方式打开文件,则将其长度裁剪为零。
- OpenMode.APPEND(0o2000):以追加方式打开,后续写将追加到文件末尾。
- OpenMode.NONBLOCK(0o4000):如果path指向FIFO、块特殊文件或字符特殊文件,则本次打开及后续 IO 进行非阻塞操作。
- OpenMode.DIR(0o200000):如果path不指向目录,则出错。
- OpenMode.NOFOLLOW(0o400000):如果path指向符号链接,则出错。
- OpenMode.SYNC(0o4010000):以同步IO的方式打开文件。 | +| mode | number | 否 | 打开文件的[选项](#openmode),必须指定如下选项中的一个,默认以只读方式打开:
- OpenMode.READ_ONLY(0o0):只读打开。
- OpenMode.WRITE_ONLY(0o1):只写打开。
- OpenMode.READ_WRITE(0o2):读写打开。
给定如下功能选项,以按位或的方式追加,默认不给定任何额外选项:
- OpenMode.CREATE(0o100):若文件不存在,则创建文件。
- OpenMode.TRUNC(0o1000):如果文件存在且以只写或读写的方式打开文件,则将其长度裁剪为零。
- OpenMode.APPEND(0o2000):以追加方式打开,后续写将追加到文件末尾。
- OpenMode.NONBLOCK(0o4000):如果path指向FIFO、块特殊文件或字符特殊文件,则本次打开及后续 IO 进行非阻塞操作。
- OpenMode.DIR(0o200000):如果path不指向目录,则出错。
- OpenMode.NOFOLLOW(0o400000):如果path指向符号链接,则出错。
- OpenMode.SYNC(0o4010000):以同步IO的方式打开文件。 | **返回值:** @@ -514,7 +514,7 @@ open(path: string, flags?: number): Promise<File> ## fs.open -open(path: string, flags?: number, callback: AsyncCallback<File>): void +open(path: string, mode?: number, callback: AsyncCallback<File>): void 打开文件,使用callback异步回调。支持使用URI打开文件。 @@ -525,7 +525,7 @@ open(path: string, flags?: number, callback: AsyncCallback<File>): void | 参数名 | 类型 | 必填 | 说明 | | -------- | ------------------------------- | ---- | ------------------------------------------------------------ | | path | string | 是 | 文件的应用沙箱路径或URI。 | -| flags | number | 否 | 打开文件的[选项](#openmode),必须指定如下选项中的一个,默认以只读方式打开:
- OpenMode.READ_ONLY(0o0):只读打开。
- OpenMode.WRITE_ONLY(0o1):只写打开。
- OpenMode.READ_WRITE(0o2):读写打开。
给定如下功能选项,以按位或的方式追加,默认不给定任何额外选项:
- OpenMode.CREATE(0o100):若文件不存在,则创建文件。
- OpenMode.TRUNC(0o1000):如果文件存在且以只写或读写的方式打开文件,则将其长度裁剪为零。
- OpenMode.APPEND(0o2000):以追加方式打开,后续写将追加到文件末尾。
- OpenMode.NONBLOCK(0o4000):如果path指向FIFO、块特殊文件或字符特殊文件,则本次打开及后续 IO 进行非阻塞操作。
- OpenMode.DIR(0o200000):如果path不指向目录,则出错。
- OpenMode.NOFOLLOW(0o400000):如果path指向符号链接,则出错。
- OpenMode.SYNC(0o4010000):以同步IO的方式打开文件。 | +| mode | number | 否 | 打开文件的[选项](#openmode),必须指定如下选项中的一个,默认以只读方式打开:
- OpenMode.READ_ONLY(0o0):只读打开。
- OpenMode.WRITE_ONLY(0o1):只写打开。
- OpenMode.READ_WRITE(0o2):读写打开。
给定如下功能选项,以按位或的方式追加,默认不给定任何额外选项:
- OpenMode.CREATE(0o100):若文件不存在,则创建文件。
- OpenMode.TRUNC(0o1000):如果文件存在且以只写或读写的方式打开文件,则将其长度裁剪为零。
- OpenMode.APPEND(0o2000):以追加方式打开,后续写将追加到文件末尾。
- OpenMode.NONBLOCK(0o4000):如果path指向FIFO、块特殊文件或字符特殊文件,则本次打开及后续 IO 进行非阻塞操作。
- OpenMode.DIR(0o200000):如果path不指向目录,则出错。
- OpenMode.NOFOLLOW(0o400000):如果path指向符号链接,则出错。
- OpenMode.SYNC(0o4010000):以同步IO的方式打开文件。 | **示例:** @@ -542,7 +542,7 @@ open(path: string, flags?: number, callback: AsyncCallback<File>): void ## fs.openSync -openSync(path: string, flags?: number): File +openSync(path: string, mode?: number): File 以同步方法打开文件。支持使用URI打开文件。 @@ -553,7 +553,7 @@ openSync(path: string, flags?: number): File | 参数名 | 类型 | 必填 | 说明 | | ------ | ------ | ---- | ------------------------------------------------------------ | | path | string | 是 | 打开文件的应用沙箱路径或URI。 | -| flags | number | 否 | 打开文件的[选项](#openmode),必须指定如下选项中的一个,默认以只读方式打开:
- OpenMode.READ_ONLY(0o0):只读打开。
- OpenMode.WRITE_ONLY(0o1):只写打开。
- OpenMode.READ_WRITE(0o2):读写打开。
给定如下功能选项,以按位或的方式追加,默认不给定任何额外选项:
- OpenMode.CREATE(0o100):若文件不存在,则创建文件。
- OpenMode.TRUNC(0o1000):如果文件存在且以只写或读写的方式打开文件,则将其长度裁剪为零。
- OpenMode.APPEND(0o2000):以追加方式打开,后续写将追加到文件末尾。
- OpenMode.NONBLOCK(0o4000):如果path指向FIFO、块特殊文件或字符特殊文件,则本次打开及后续 IO 进行非阻塞操作。
- OpenMode.DIR(0o200000):如果path不指向目录,则出错。
- OpenMode.NOFOLLOW(0o400000):如果path指向符号链接,则出错。
- OpenMode.SYNC(0o4010000):以同步IO的方式打开文件。 | +| mode | number | 否 | 打开文件的[选项](#openmode),必须指定如下选项中的一个,默认以只读方式打开:
- OpenMode.READ_ONLY(0o0):只读打开。
- OpenMode.WRITE_ONLY(0o1):只写打开。
- OpenMode.READ_WRITE(0o2):读写打开。
给定如下功能选项,以按位或的方式追加,默认不给定任何额外选项:
- OpenMode.CREATE(0o100):若文件不存在,则创建文件。
- OpenMode.TRUNC(0o1000):如果文件存在且以只写或读写的方式打开文件,则将其长度裁剪为零。
- OpenMode.APPEND(0o2000):以追加方式打开,后续写将追加到文件末尾。
- OpenMode.NONBLOCK(0o4000):如果path指向FIFO、块特殊文件或字符特殊文件,则本次打开及后续 IO 进行非阻塞操作。
- OpenMode.DIR(0o200000):如果path不指向目录,则出错。
- OpenMode.NOFOLLOW(0o400000):如果path指向符号链接,则出错。
- OpenMode.SYNC(0o4010000):以同步IO的方式打开文件。 | **返回值:** @@ -1559,6 +1559,239 @@ symlinkSync(target: string, srcPath: string): void fs.symlinkSync(srcFile, dstFile); ``` +## fs.listFile +listFile(path: string, options?: { + recursion?: boolean; + listNum?: number; + filter?: Filter; +}): Promise; + +列出文件夹下所有文件名,支持递归列出所有文件名(包含子目录下),支持文件过滤,使用Promise异步回调。 + +**系统能力**:SystemCapability.FileManagement.File.FileIO + +**参数:** + + | 参数名 | 类型 | 必填 | 说明 | + | ------ | ------ | ---- | --------------------------- | + | path | string | 是 | 文件夹的应用沙箱路径。 | + | options | Object | 否 | 文件过滤选项。 | + +**options参数说明:** + + | 参数名 | 类型 | 必填 | 说明 | + | ------ | ------ | ---- | --------------------------- | + | recursion | boolean | 否 | 是否递归子目录下文件名,默认为false。 | + | listNum | number | 否 | 列出文件名数量。当设置0时,列出所有文件,默认为0。 | + | filter | [Filter](#filter) | 否 | 文件过滤选项。当前仅支持后缀名匹配、文件名模糊查询、文件大小过滤、最近修改时间过滤。 | + +**返回值:** + + | 类型 | 说明 | + | --------------------- | ---------- | + | Promise<string[]> | Promise对象。返回文件名数组。 | + +**示例:** + + ```js + let options = { + "recursion": false, + "listNum": 0, + "filter": { + "suffix": [".png", ".jpg", ".jpeg"], + "displayName": ["%abc", "efg%"], + "fileSizeOver": 1024, + "lastModifiedAfter": new Date().getTime(), + } + }; + fs.listFile(pathDir, options).then((filenames) => { + console.info("listFile succeed"); + for (let i = 0; i < filenames.size; i++) { + console.info("fileName: %s", filenames[i]); + } + }).catch((err) => { + console.info("list file failed with error message: " + err.message + ", error code: " + err.code); + }); + ``` + +## fs.listFile +listFile(path: string, options?: { + recursion?: boolean; + listNum?: number; + filter?: Filter; +}, callback: AsyncCallback): void; + +列出文件夹下所有文件名,支持递归列出所有文件名(包含子目录下),支持文件过滤,使用Callback异步回调。 + +**参数:** + + | 参数名 | 类型 | 必填 | 说明 | + | ------ | ------ | ---- | --------------------------- | + | path | string | 是 | 文件夹的应用沙箱路径。 | + | options | Object | 否 | 文件过滤选项。 | + | callback | AsyncCallback<string[]> | 是 | 异步列出文件名数组之后的回调。 | + +**options参数说明:** + + | 参数名 | 类型 | 必填 | 说明 | + | ------ | ------ | ---- | --------------------------- | + | recursion | boolean | 否 | 是否递归子目录下文件名,默认为false。 | + | listNum | number | 否 | 列出文件名数量。当设置0时,列出所有文件,默认为0。 | + | filter | [Filter](#filter) | 否 | 文件过滤选项。当前仅支持后缀名匹配、文件名模糊查询、文件大小过滤、最近修改时间过滤。 | + +**示例:** + + ```js + let options = { + "recursion": false, + "listNum": 0, + "filter": { + "suffix": [".png", ".jpg", ".jpeg"], + "displayName": ["%abc", "efg%"], + "fileSizeOver": 1024, + "lastModifiedAfter": new Date().getTime(), + } + }; + fs.listFile(pathDir, options, (err, filenames) => { + if (err) { + console.info("list file failed with error message: " + err.message + ", error code: " + err.code); + } else { + console.info("listFile succeed"); + for (let i = 0; i < filenames.size; i++) { + console.info("filename: %s", filenames[i]); + } + } + }); + ``` + +## listFileSync + +listFileSync(path: string, options?: { + recursion?: boolean; + listNum?: number; + filter?: Filter; +}): string[]; + +以同步方式列出文件夹下所有文件名,支持递归列出所有文件名(包含子目录下),支持文件过滤。 + +**参数:** + + | 参数名 | 类型 | 必填 | 说明 | + | ------ | ------ | ---- | --------------------------- | + | path | string | 是 | 文件夹的应用沙箱路径。 | + | options | Object | 否 | 文件过滤选项。 | + +**options参数说明:** + + | 参数名 | 类型 | 必填 | 说明 | + | ------ | ------ | ---- | --------------------------- | + | recursion | boolean | 否 | 是否递归子目录下文件名,默认为false。 | + | listNum | number | 否 | 列出文件名数量。当设置0时,列出所有文件,默认为0。 | + | filter | [Filter](#filter) | 否 | 文件过滤选项。当前仅支持后缀名匹配、文件名模糊查询、文件大小过滤、最近修改时间过滤。 | + +**返回值:** + + | 类型 | 说明 | + | --------------------- | ---------- | + | string[] | 返回文件名数组。 | + +**示例:** + + ```js + let options = { + "recursion": false, + "listNum": 0, + "filter": { + "suffix": [".png", ".jpg", ".jpeg"], + "displayName": ["%abc", "efg%"], + "fileSizeOver": 1024, + "lastModifiedAfter": new Date().getTime(), + } + }; + let filenames = fs.listFileSync(pathDir, options); + console.info("listFile succeed"); + for (let i = 0; i < filenames.size; i++) { + console.info("filename: %s", filenames[i]); + } + ``` +## moveFile + +moveFile(src: string, dest: string, mode?: number): Promise; + +移动文件,使用Promise异步回调。 + +**系统能力**:SystemCapability.FileManagement.File.FileIO + +**参数:** + + | 参数名 | 类型 | 必填 | 说明 | + | ------ | ------ | ---- | --------------------------- | + | src | string | 是 | 源文件的应用沙箱路径。 | + | dest | string | 是 | 目的文件的应用沙箱路径。 | + | mode | number | 否 | 移动模式。若mode为0,移动位置存在同名文件时,强制移动覆盖。若mode为1,移动位置存在同名文件时,抛出异常。默认为0。 | + +**示例:** + + ```js + fs.moveFile(srcPath, destPath, 0).then(() => { + console.info("move file succeed"); + }).catch((err) => { + console.info("move file failed with error message: " + err.message + ", error code: " + err.code); + }); + ``` + +## moveFile + +moveFile(src: string, dest: string, mode?: number, callback: AsyncCallback): void; + +移动文件,使用Callback异步回调。 + +**系统能力**:SystemCapability.FileManagement.File.FileIO + +**参数:** + + | 参数名 | 类型 | 必填 | 说明 | + | ------ | ------ | ---- | --------------------------- | + | src | string | 是 | 源文件的应用沙箱路径。 | + | dest | string | 是 | 目的文件的应用沙箱路径。 | + | mode | number | 否 | 移动模式。若mode为0,移动位置存在同名文件时,强制移动覆盖。若mode为1,移动位置存在同名文件时,抛出异常。默认为0。 | + | callback | AsyncCallback<void> | 是 | 异步移动文件之后的回调。 | + +**示例:** + + ```js + fs.moveFile(srcPath, destPath, 0, (err) => { + if (err) { + console.info("move file failed with error message: " + err.message + ", error code: " + err.code); + } else { + console.info("move file succeed"); + } + }); + ``` + +## moveFileSync + +moveFile(src: string, dest: string, mode?: number): void; + +以同步方式移动文件。 + +**系统能力**:SystemCapability.FileManagement.File.FileIO + +**参数:** + + | 参数名 | 类型 | 必填 | 说明 | + | ------ | ------ | ---- | --------------------------- | + | src | string | 是 | 源文件的应用沙箱路径。 | + | dest | string | 是 | 目的文件的应用沙箱路径。 | + | mode | number | 否 | 移动模式。若mode为0,移动位置存在同名文件时,强制移动覆盖。若mode为1,移动位置存在同名文件时,抛出异常。默认为0。 | + +**示例:** + + ```js + fs.moveFileSync(srcPath, destPath, 0); + console.info("move file succeed"); + ``` + ## fs.mkdtemp mkdtemp(prefix: string): Promise<string> @@ -2353,6 +2586,104 @@ readSync(buffer: ArrayBuffer, options?: { offset?: number; length?: number; }): | ---- | ------ | ---- | ---- | ------- | | fd | number | 是 | 否 | 打开的文件描述符。 | +### lock + +lock(exclusive?: boolean): Promise; + +文件阻塞式施加共享锁或独占锁,使用Promise异步回调。 + +**系统能力**:SystemCapability.FileManagement.File.FileIO + +**参数:** + + | 参数名 | 类型 | 必填 | 说明 | + | ------- | ----------- | ---- | ---------------------------------------- | + | exclusive | boolean | 否 | 是否施加独占锁,默认false。 | + +**返回值:** + + | 类型 | 说明 | + | ---------------------------------- | ------ | + | Promise<void> | Promise对象。无返回值。 | + +**示例:** + + ```js + let file = fs.openSync(path, fs.OpenMode.READ_WRITE | fs.OpenMode.CREATE); + file.lock(true).then(() => { + console.log("lock file successful"); + }).catch((err) => { + console.info("lock file failed with error message: " + err.message + ", error code: " + err.code); + }); + ``` + +### lock + +lock(exclusive?: boolean, callback: AsyncCallback): void; + +文件阻塞式施加共享锁或独占锁,使Callback异步回调。 + +**系统能力**:SystemCapability.FileManagement.File.FileIO + +**参数:** + + | 参数名 | 类型 | 必填 | 说明 | + | ------- | ----------- | ---- | ---------------------------------------- | + | exclusive | boolean | 否 | 是否施加独占锁,默认false。 | + | callback | AsyncCallback<void> | 是 | 异步文件上锁之后的回调。 | + +**示例:** + + ```js + let file = fs.openSync(path, fs.OpenMode.READ_WRITE | fs.OpenMode.CREATE); + file.lock(true, (err) => { + if (err) { + console.info("lock file failed with error message: " + err.message + ", error code: " + err.code); + } else { + console.log("lock file successful"); + } + }); + ``` + +### tryLock + +tryLock(exclusive?: boolean): void; + +文件非阻塞式施加共享锁或独占锁。 + +**系统能力**:SystemCapability.FileManagement.File.FileIO + +**参数:** + + | 参数名 | 类型 | 必填 | 说明 | + | ------- | ----------- | ---- | ---------------------------------------- | + | exclusive | boolean | 否 | 是否施加独占锁,默认false。 | + +**示例:** + + ```js + let file = fs.openSync(path, fs.OpenMode.READ_WRITE | fs.OpenMode.CREATE); + file.tryLock(true); + console.log("lock file successful"); + ``` + +### unlock + +unlock(): void; + +以同步方式给文件解锁。 + +**系统能力**:SystemCapability.FileManagement.File.FileIO + +**示例:** + + ```js + let file = fs.openSync(path, fs.OpenMode.READ_WRITE | fs.OpenMode.CREATE); + file.tryLock(true); + file.unlock(); + console.log("unlock file successful"); + ``` + ## OpenMode open接口flags参数常量。文件打开标签。 @@ -2371,3 +2702,18 @@ open接口flags参数常量。文件打开标签。 | DIR | number | 0o200000 | 如果path不指向目录,则出错。 | | NOFOLLOW | number | 0o400000 | 如果path指向符号链接,则出错。 | | SYNC | number | 0o4010000 | 以同步IO的方式打开文件。 | + +## Filter + +**系统能力**:SystemCapability.FileManagement.File.FileIO + +文件过滤配置项类型,支持listFile接口使用。 + +| 名称 | 类型 | 说明 | +| ----------- | --------------- | ------------------ | +| suffix | Array<string> | 文件后缀名完全匹配,各个关键词OR关系。 | +| displayName | Array<string> | 文件名模糊匹配,各个关键词OR关系。 | +| mimeType | Array<string> | mime类型完全匹配,各个关键词OR关系。 | +| fileSizeOver | number | 文件大小匹配,大于等于指定大小的文件。 | +| lastModifiedAfter | number | 文件最近修改时间匹配,在指定时间点及之后的文件。 | +| excludeMedia | boolean | 是否排除Media中已有的文件。 | diff --git a/zh-cn/application-dev/reference/apis/js-apis-file-hash.md b/zh-cn/application-dev/reference/apis/js-apis-file-hash.md index 0405e3943eb4768af1a592889937b37796ba2cdd..911dac45c0fa4c0496587f491cf8f653872ac760 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-file-hash.md +++ b/zh-cn/application-dev/reference/apis/js-apis-file-hash.md @@ -67,9 +67,9 @@ hash(path: string, algorithm: string): Promise<string> ```js let filePath = pathDir + "/test.txt"; - Hash.hash(filePath, "sha256").then(function (str) { + Hash.hash(filePath, "sha256").then((str) => { console.info("calculate file hash succeed:" + str); - }).catch(function (err) { + }).catch((err) => { console.info("calculate file hash failed with error message: " + err.message + ", error code: " + err.code); }); ``` @@ -92,7 +92,8 @@ hash(path: string, algorithm: string, callback: AsyncCallback<string>): vo **示例:** ```js - Hash.hash(filePath, "sha256", function (err, str) { + let filePath = pathDir + "/test.txt"; + Hash.hash(filePath, "sha256", (err, str) => { if (err) { console.info("calculate file hash failed with error message: " + err.message + ", error code: " + err.code); } else { diff --git a/zh-cn/application-dev/reference/apis/js-apis-file-securityLabel.md b/zh-cn/application-dev/reference/apis/js-apis-file-securityLabel.md index 4d725ba3edf970a79ab274bfb9a3d9aac5f3decb..511211522f361c78bac6ceb98779fa216a3d5c6d 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-file-securityLabel.md +++ b/zh-cn/application-dev/reference/apis/js-apis-file-securityLabel.md @@ -66,9 +66,9 @@ setSecurityLabel(path:string, type:dataLevel):Promise<void> **示例:** ```js - securityLabel.setSecurityLabel(path, "s0").then(function () { + securityLabel.setSecurityLabel(path, "s0").then(() => { console.info("setSecurityLabel successfully"); - }).catch(function (err) { + }).catch((err) => { console.info("setSecurityLabel failed with error message: " + err.message + ", error code: " + err.code); }); ``` @@ -92,7 +92,7 @@ setSecurityLabel(path:string, type:dataLevel, callback: AsyncCallback<void> **示例:** ```js - securityLabel.setSecurityLabel(path, "s0", function (err) { + securityLabel.setSecurityLabel(path, "s0", (err) => { if (err) { console.info("setSecurityLabel failed with error message: " + err.message + ", error code: " + err.code); } else { @@ -145,9 +145,9 @@ getSecurityLabel(path:string):Promise<string> **示例:** ```js - securityLabel.getSecurityLabel(path).then(function (type) { + securityLabel.getSecurityLabel(path).then((type) => { console.log("getSecurityLabel successfully, Label: " + type); - }).catch(function (err) { + }).catch((err) => { console.log("getSecurityLabel failed with error message: " + err.message + ", error code: " + err.code); }); ``` @@ -170,7 +170,7 @@ getSecurityLabel(path:string, callback:AsyncCallback<string>): void **示例:** ```js - securityLabel.getSecurityLabel(path, function (err, type) { + securityLabel.getSecurityLabel(path, (err, type) => { if (err) { console.log("getSecurityLabel failed with error message: " + err.message + ", error code: " + err.code); } else { diff --git a/zh-cn/application-dev/reference/apis/js-apis-file-statvfs.md b/zh-cn/application-dev/reference/apis/js-apis-file-statvfs.md index 99b8602eef0638f89cb1f6d239a00b0893113df9..553c844ce0e0ff128b4d740b1e710f3fcad2e3c9 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-file-statvfs.md +++ b/zh-cn/application-dev/reference/apis/js-apis-file-statvfs.md @@ -35,9 +35,9 @@ getFreeSize(path:string):Promise<number> ```js let path = "/dev"; - statfs.getFreeSize(path).then(function (number) { + statvfs.getFreeSize(path).then((number) => { console.info("getFreeSize promise successfully, Size: " + number); - }).catch(function (err) { + }).catch((err) => { console.info("getFreeSize failed with error message: " + err.message + ", error code: " + err.code); }); ``` @@ -61,7 +61,7 @@ getFreeSize(path:string, callback:AsyncCallback<number>): void ```js let path = "/dev"; - statfs.getFreeSize(path, function (err, number) { + statvfs.getFreeSize(path, (err, number) => { if (err) { console.info("getFreeSize failed with error message: " + err.message + ", error code: " + err.code); } else { @@ -94,9 +94,9 @@ getTotalSize(path: string): Promise<number> ```js let path = "/dev"; - statfs.getTotalSize(path).then(function (number) { + statvfs.getTotalSize(path).then((number) => { console.info("getTotalSize promise successfully, Size: " + number); - }).catch(function (err) { + }).catch((err) => { console.info("getTotalSize with error message: " + err.message + ", error code: " + err.code); }); ``` @@ -120,7 +120,7 @@ getTotalSize(path: string, callback: AsyncCallback<number>): void ```js let path = "/dev"; - statfs.getTotalSize(path, function(err, number) { + statvfs.getTotalSize(path, (err, number) => { if (err) { console.info("getTotalSize with error message: " + err.message + ", error code: " + err.code); } else { diff --git a/zh-cn/application-dev/reference/apis/js-apis-fileio.md b/zh-cn/application-dev/reference/apis/js-apis-fileio.md index d91ab75f45afb008773622da895263bfbd783315..204537e9f0ff89cf89040682b07c8448cee57370 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-fileio.md +++ b/zh-cn/application-dev/reference/apis/js-apis-fileio.md @@ -3436,20 +3436,3 @@ isSymbolicLink(): boolean let dir = fileio.opendirSync(pathDir); let isSymbolicLink = dir.readSync().isSymbolicLink(); ``` - -## Filter9+ - -**系统接口**:此接口为系统接口。 - -**系统能力**:SystemCapability.FileManagement.File.FileIO - -文件过滤器配置项。 - -| 名称 | 类型 | 说明 | -| ----------- | --------------- | ------------------ | -| suffix | Array<string> | 文件后缀名,各个关键词OR关系。 | -| displayName | Array<string> | 文件名模糊匹配,各个关键词OR关系。 | -| mimeType | Array<string> | mime类型匹配,各个关键词OR关系。 | -| fileSizeOver | number | 文件大小匹配,大于等于指定大小的文件。 | -| lastModifiedAfter | Date | 修改时间匹配,在指定时间点后的文件。 | -| excludeMedia | Boolean | 是否排除Media中已有的文件。 | diff --git a/zh-cn/application-dev/reference/apis/js-apis-hichecker.md b/zh-cn/application-dev/reference/apis/js-apis-hichecker.md index 93c400c740ac864e64e7c65119e5fbde8e1ea693..b66101c41937973184db2f07fdbb06184173d37e 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-hichecker.md +++ b/zh-cn/application-dev/reference/apis/js-apis-hichecker.md @@ -46,11 +46,11 @@ addCheckRule(rule: bigint): void ```js try { // 添加一条规则 - hichecker.addCheckRule(hichecker.RULE_CAUTION_PRINT_LOG);} + hichecker.addCheckRule(hichecker.RULE_CAUTION_PRINT_LOG); // 添加多条规则 - hichecker.addCheckRule( - hichecker.RULE_CAUTION_PRINT_LOG | hichecker.RULE_CAUTION_TRIGGER_CRASH); -catch (err) { + // hichecker.addCheckRule( + // hichecker.RULE_CAUTION_PRINT_LOG | hichecker.RULE_CAUTION_TRIGGER_CRASH); +} catch (err) { console.error(`code: ${err.code}, message: ${err.message}`); } ``` @@ -76,9 +76,9 @@ try { // 删除一条规则 hichecker.removeCheckRule(hichecker.RULE_CAUTION_PRINT_LOG); // 删除多条规则 - hichecker.removeCheckRule( - hichecker.RULE_CAUTION_PRINT_LOG | hichecker.RULE_CAUTION_TRIGGER_CRASH); -catch (err) { + // hichecker.removeCheckRule( + // hichecker.RULE_CAUTION_PRINT_LOG | hichecker.RULE_CAUTION_TRIGGER_CRASH); +} catch (err) { console.error(`code: ${err.code}, message: ${err.message}`); } ``` @@ -113,7 +113,7 @@ try { // 查询是否包含 hichecker.containsCheckRule(hichecker.RULE_THREAD_CHECK_SLOW_PROCESS); // return true; hichecker.containsCheckRule(hichecker.RULE_CAUTION_PRINT_LOG); // return false; -catch (err) { +} catch (err) { console.error(`code: ${err.code}, message: ${err.message}`); } ``` 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 72e7c8ffa90f0f1aafb8685973b196dbb62e7ab1..66306729dc0da5f124d69eb0f9865c17b4259048 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-hidebug.md +++ b/zh-cn/application-dev/reference/apis/js-apis-hidebug.md @@ -297,7 +297,7 @@ import hidebug from '@ohos.hidebug' try { hidebug.startJsCpuProfiling("cpu_profiling"); - ... + // ... hidebug.stopJsCpuProfiling(); } catch (error) { console.info(error.code) @@ -326,7 +326,7 @@ import hidebug from '@ohos.hidebug' try { hidebug.startJsCpuProfiling("cpu_profiling"); - ... + // ... hidebug.stopJsCpuProfiling(); } catch (error) { console.info(error.code) diff --git a/zh-cn/application-dev/reference/apis/js-apis-http.md b/zh-cn/application-dev/reference/apis/js-apis-http.md index eaa385f4290563062b7512c7eb4115b91a9e932a..4bc6e949c95ee6ef216b4195bc92c64cfca0cf06 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-http.md +++ b/zh-cn/application-dev/reference/apis/js-apis-http.md @@ -103,6 +103,21 @@ request\(url: string, callback: AsyncCallback\\):void | url | string | 是 | 发起网络请求的URL地址。 | | callback | AsyncCallback\<[HttpResponse](#httpresponse)\> | 是 | 回调函数。 | +**错误码:** + +| 错误码ID | 错误信息 | +|---------|-------------------------------------------------------| +| 401 | Parameter error. | +| 2300003 | URL using bad/illegal format or missing URL. | +| 2300007 | Couldn't connect to server. | +| 2300028 | Timeout was reached. | +| 2300052 | Server returned nothing (no headers, no data). | +| 2300999 | Unknown Other Error. | + +>**错误码说明:** +> 以上错误码的详细介绍参见[HTTP错误码](../errorcodes/errorcode-http.md)。 +> HTTP 错误码映射关系:2300000 + curl错误码。更多常用错误码,可参考:[curl错误码](https://curl.se/libcurl/c/libcurl-errors.html) + **示例:** ```js @@ -136,6 +151,45 @@ request\(url: string, options: HttpRequestOptions, callback: AsyncCallback | 是 | 回调函数。 | +**错误码:** + +| 错误码ID | 错误信息 | +|---------|-------------------------------------------------------| +| 401 | Parameter error. | +| 2300001 | Unsupported protocol. | +| 2300003 | URL using bad/illegal format or missing URL. | +| 2300005 | Couldn't resolve proxy name. | +| 2300006 | Couldn't resolve host name. | +| 2300007 | Couldn't connect to server. | +| 2300008 | Weird server reply. | +| 2300009 | Access denied to remote resource. | +| 2300016 | Error in the HTTP2 framing layer. | +| 2300018 | Transferred a partial file. | +| 2300023 | Failed writing received data to disk/application. | +| 2300025 | Upload failed. | +| 2300026 | Failed to open/read local data from file/application. | +| 2300027 | Out of memory. | +| 2300028 | Timeout was reached. | +| 2300047 | Number of redirects hit maximum amount. | +| 2300052 | Server returned nothing (no headers, no data). | +| 2300055 | Failed sending data to the peer. | +| 2300056 | Failure when receiving data from the peer. | +| 2300058 | Problem with the local SSL certificate. | +| 2300059 | Couldn't use specified SSL cipher. | +| 2300060 | SSL peer certificate or SSH remote key was not OK. | +| 2300061 | Unrecognized or bad HTTP Content or Transfer-Encoding.| +| 2300063 | Maximum file size exceeded. | +| 2300070 | Disk full or allocation exceeded. | +| 2300073 | Remote file already exists. | +| 2300077 | Problem with the SSL CA cert (path? access rights?). | +| 2300078 | Remote file not found. | +| 2300094 | An authentication function returned an error. | +| 2300999 | Unknown Other Error. | + +>**错误码说明:** +> 以上错误码的详细介绍参见[HTTP错误码](../errorcodes/errorcode-http.md)。 +> HTTP 错误码映射关系:2300000 + curl错误码。更多常用错误码,可参考:[curl错误码](https://curl.se/libcurl/c/libcurl-errors.html) + **示例:** ```js @@ -184,6 +238,44 @@ request\(url: string, options? : HttpRequestOptions\): Promise | :------------------------------------- | :-------------------------------- | | Promise<[HttpResponse](#httpresponse)> | 以Promise形式返回发起请求的结果。 | +**错误码:** + +| 错误码ID | 错误信息 | +|---------|-------------------------------------------------------| +| 401 | Parameter error. | +| 2300001 | Unsupported protocol. | +| 2300003 | URL using bad/illegal format or missing URL. | +| 2300005 | Couldn't resolve proxy name. | +| 2300006 | Couldn't resolve host name. | +| 2300007 | Couldn't connect to server. | +| 2300008 | Weird server reply. | +| 2300009 | Access denied to remote resource. | +| 2300016 | Error in the HTTP2 framing layer. | +| 2300018 | Transferred a partial file. | +| 2300023 | Failed writing received data to disk/application. | +| 2300025 | Upload failed. | +| 2300026 | Failed to open/read local data from file/application. | +| 2300027 | Out of memory. | +| 2300028 | Timeout was reached. | +| 2300047 | Number of redirects hit maximum amount. | +| 2300052 | Server returned nothing (no headers, no data). | +| 2300055 | Failed sending data to the peer. | +| 2300056 | Failure when receiving data from the peer. | +| 2300058 | Problem with the local SSL certificate. | +| 2300059 | Couldn't use specified SSL cipher. | +| 2300060 | SSL peer certificate or SSH remote key was not OK. | +| 2300061 | Unrecognized or bad HTTP Content or Transfer-Encoding.| +| 2300063 | Maximum file size exceeded. | +| 2300070 | Disk full or allocation exceeded. | +| 2300073 | Remote file already exists. | +| 2300077 | Problem with the SSL CA cert (path? access rights?). | +| 2300078 | Remote file not found. | +| 2300094 | An authentication function returned an error. | +| 2300999 | Unknown Other Error. | + +>**错误码说明:** +> 以上错误码的详细介绍参见[HTTP错误码](../errorcodes/errorcode-http.md)。 +> HTTP 错误码映射关系:2300000 + curl错误码。更多常用错误码,可参考:[curl错误码](https://curl.se/libcurl/c/libcurl-errors.html) **示例:** @@ -438,9 +530,9 @@ request方法回调函数的返回值类型。 | -------------------- | -------------------------------------------- | ---- | ------------------------------------------------------------ | | result | string \| Object \| ArrayBuffer6+ | 是 | HTTP请求根据响应头中Content-type类型返回对应的响应格式内容:
- application/json:返回JSON格式的字符串,如需HTTP响应具体内容,需开发者自行解析
- application/octet-stream:ArrayBuffer
- 其他:string | | resultType9+ | [HttpDataType](#httpdatatype9) | 是 | 返回值类型。 | -| responseCode | [ResponseCode](#responsecode) \| number | 是 | 回调函数执行成功时,此字段为[ResponseCode](#responsecode)。若执行失败,错误码将会从AsyncCallback中的err字段返回。错误码参考[Response错误码](#response常用错误码)。 | +| responseCode | [ResponseCode](#responsecode) \| number | 是 | 回调函数执行成功时,此字段为[ResponseCode](#responsecode)。若执行失败,错误码将会从AsyncCallback中的err字段返回。 | | header | Object | 是 | 发起HTTP请求返回来的响应头。当前返回的是JSON格式字符串,如需具体字段内容,需开发者自行解析。常见字段及解析方式如下:
- Content-Type:header['Content-Type'];
- Status-Line:header['Status-Line'];
- Date:header.Date/header['Date'];
- Server:header.Server/header['Server']; | -| cookies8+ | Array\ | 是 | 服务器返回的 cookies。 | +| cookies8+ | string | 是 | 服务器返回的 cookies。 | ## http.createHttpResponseCache9+ @@ -572,17 +664,6 @@ httpResponseCache.delete().then(() => { }); ``` -## Response常用错误码 - -| 错误码 | 说明 | -| ------ | ------------------------------------------------------------ | -| -1 | 参数错误。检查参数的个数与类型是否正确。 | -| 3 | URL格式错误。检查URL的格式与语法是否正确。 | -| 4 | 构建时无法找到内置的请求功能、协议或选项。一个功能或选项是不启用或明确禁用时,为了得到它的功能,你需要得到一个重建的libcurl。 | -| 5 | 无法解析代理,指定的代理服务器主机无法解析。建议排查:1、url地址是否正确。2、联网是否正常,网络是否可以和外部进行通信。3、是否有网络访问权限。 | -| 6 | 无法解析主机,指定的远程主机无法解析。建议排查:1、url地址是否正确。2、联网是否正常,网络是否可以和外部进行通信。3、是否有网络访问权限。 | -| 7 | 无法连接代理或主机。建议排查:1、端口号是否有问题。 2、查看本地是否开启http的代理影响的。 | - ## HttpDataType9+ http的数据类型。 diff --git a/zh-cn/application-dev/reference/apis/js-apis-huks.md b/zh-cn/application-dev/reference/apis/js-apis-huks.md index 804f51b2f1ea04406fa1e01273c28d398217b3b3..e69ecb237c9c3097bed2036b013531fe27d3d6f6 100755 --- a/zh-cn/application-dev/reference/apis/js-apis-huks.md +++ b/zh-cn/application-dev/reference/apis/js-apis-huks.md @@ -1097,9 +1097,9 @@ let emptyOptions = { try { huks.isKeyItemExist(keyAlias, emptyOptions, function (error, data) { if (error) { - console.info(`callback: isKeyItemExist success, data = ${JSON.stringify(data)}`); - } else { console.error(`callback: isKeyItemExist failed, code: ${error.code}, msg: ${error.message}`); + } else { + console.info(`callback: isKeyItemExist success, data = ${JSON.stringify(data)}`); } }); } catch (error) { @@ -1580,7 +1580,7 @@ async function huksFinish() { async function huksAbort() { console.log('enter huksAbort'); try { - await huks.abortSession(keyAlias, options) + await huks.abortSession(handle, options) .then ((data) => { console.info(`promise: abortSession success`); }) @@ -1602,26 +1602,26 @@ async function huksAbort() { **系统能力**:SystemCapability.Security.Huks -| 名称 | 值 | 说明 | -| ---------------------------------------------- | -------- |--------------------------- | -| HUKS_ERR_CODE_PERMISSION_FAIL | 201 | 权限错误导致失败。 | -| HUKS_ERR_CODE_ILLEGAL_ARGUMENT | 401 | 参数错误导致失败。 | -| HUKS_ERR_CODE_NOT_SUPPORTED_API | 801 | 不支持的API。 | -| HUKS_ERR_CODE_FEATURE_NOT_SUPPORTED | 12000001 | 不支持的功能/特性。 | -| HUKS_ERR_CODE_MISSING_CRYPTO_ALG_ARGUMENT | 12000002 | 缺少密钥算法参数。 | -| HUKS_ERR_CODE_INVALID_CRYPTO_ALG_ARGUMENT | 12000003 | 无效密钥算法参数。 | -| HUKS_ERR_CODE_FILE_OPERATION_FAIL | 12000004 | 文件操作失败。 | -| HUKS_ERR_CODE_COMMUNICATION_FAIL | 12000005 | 通信失败。 | -| HUKS_ERR_CODE_CRYPTO_FAIL | 12000006 | 算法库操作失败。 | -| HUKS_ERR_CODE_KEY_AUTH_PERMANENTLY_INVALIDATED | 12000007 | 密钥访问失败-密钥访问失效。 | -| HUKS_ERR_CODE_KEY_AUTH_VERIFY_FAILED | 12000008 | 密钥访问失败-密钥认证失败。 | -| HUKS_ERR_CODE_KEY_AUTH_TIME_OUT | 12000009 | 密钥访问失败-密钥访问超时。 | -| HUKS_ERR_CODE_SESSION_LIMIT | 12000010 | 密钥操作会话数已达上限。 | -| HUKS_ERR_CODE_ITEM_NOT_EXIST | 12000011 | 目标对象不存在。 | -| HUKS_ERR_CODE_EXTERNAL_ERROR | 12000012 | 外部错误。 | -| HUKS_ERR_CODE_CREDENTIAL_NOT_EXIST | 12000013 | 缺失所需凭据。 | -| HUKS_ERR_CODE_INSUFFICIENT_MEMORY | 12000014 | 内存不足。 | -| HUKS_ERR_CODE_CALL_SERVICE_FAILED | 12000015 | 调用其他系统服务失败。 | +| 名称 | 值 | 说明 | +| ---------------------------------------------- | -------- |--------------------------- | +| HUKS_ERR_CODE_PERMISSION_FAIL | 201 | 权限错误导致失败。 | +| HUKS_ERR_CODE_ILLEGAL_ARGUMENT | 401 | 参数错误导致失败。 | +| HUKS_ERR_CODE_NOT_SUPPORTED_API | 801 | 不支持的API。 | +| HUKS_ERR_CODE_FEATURE_NOT_SUPPORTED | 12000001 | 不支持的功能/特性。 | +| HUKS_ERR_CODE_MISSING_CRYPTO_ALG_ARGUMENT | 12000002 | 缺少密钥算法参数。 | +| HUKS_ERR_CODE_INVALID_CRYPTO_ALG_ARGUMENT | 12000003 | 无效密钥算法参数。 | +| HUKS_ERR_CODE_FILE_OPERATION_FAIL | 12000004 | 文件操作失败。 | +| HUKS_ERR_CODE_COMMUNICATION_FAIL | 12000005 | 通信失败。 | +| HUKS_ERR_CODE_CRYPTO_FAIL | 12000006 | 算法库操作失败。 | +| HUKS_ERR_CODE_KEY_AUTH_PERMANENTLY_INVALIDATED | 12000007 | 密钥访问失败-密钥访问失效。 | +| HUKS_ERR_CODE_KEY_AUTH_VERIFY_FAILED | 12000008 | 密钥访问失败-密钥认证失败。 | +| HUKS_ERR_CODE_KEY_AUTH_TIME_OUT | 12000009 | 密钥访问失败-密钥访问超时。 | +| HUKS_ERR_CODE_SESSION_LIMIT | 12000010 | 密钥操作会话数已达上限。 | +| HUKS_ERR_CODE_ITEM_NOT_EXIST | 12000011 | 目标对象不存在。 | +| HUKS_ERR_CODE_EXTERNAL_ERROR | 12000012 | 外部错误。 | +| HUKS_ERR_CODE_CREDENTIAL_NOT_EXIST | 12000013 | 缺失所需凭据。 | +| HUKS_ERR_CODE_INSUFFICIENT_MEMORY | 12000014 | 内存不足。 | +| HUKS_ERR_CODE_CALL_SERVICE_FAILED | 12000015 | 调用其他系统服务失败。 | ## HuksKeyPurpose diff --git a/zh-cn/application-dev/reference/apis/js-apis-i18n.md b/zh-cn/application-dev/reference/apis/js-apis-i18n.md index f6f833011c223650a13f88eeea5df601b90b7b54..f4aca1f9c8126607ebd78cbec30d26cb40d7bcf2 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-i18n.md +++ b/zh-cn/application-dev/reference/apis/js-apis-i18n.md @@ -100,7 +100,7 @@ static getDisplayLanguage(language: string, locale: string, sentenceCase?: boole static getSystemLanguages(): Array<string> -获取系统支持的语言列表。 +获取系统支持的语言列表。语言的详细说明参见[实例化Locale对象](../../internationalization/intl-guidelines.md#开发步骤)。 **系统能力**:SystemCapability.Global.I18n @@ -131,7 +131,7 @@ static getSystemLanguages(): Array<string> static getSystemCountries(language: string): Array<string> -获取针对输入语言系统支持的国家或地区列表。 +获取针对输入语言系统支持的国家或地区列表。国家或地区的详细说明参见[实例化Locale对象](../../internationalization/intl-guidelines.md#开发步骤)。 **系统能力**:SystemCapability.Global.I18n @@ -206,7 +206,7 @@ static isSuggested(language: string, region?: string): boolean static getSystemLanguage(): string -获取系统语言。 +获取系统语言。语言的详细说明参见[实例化Locale对象](../../internationalization/intl-guidelines.md#开发步骤)。 **系统能力**:SystemCapability.Global.I18n @@ -272,7 +272,7 @@ static setSystemLanguage(language: string): void static getSystemRegion(): string -获取系统地区。 +获取系统地区。地区的详细说明参见[实例化Locale对象](../../internationalization/intl-guidelines.md#开发步骤)。 **系统能力**:SystemCapability.Global.I18n @@ -338,7 +338,7 @@ static setSystemRegion(region: string): void static getSystemLocale(): string -获取系统区域。 +获取系统区域。区域的详细说明参见[实例化Locale对象](../../internationalization/intl-guidelines.md#开发步骤)。 **系统能力**:SystemCapability.Global.I18n diff --git a/zh-cn/application-dev/reference/apis/js-apis-image.md b/zh-cn/application-dev/reference/apis/js-apis-image.md index f2d0516da50f96cd1a77a97253ab7c1871794e85..3cf22878de46d2e5a7b857fe9fe04667ee2f261b 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-image.md +++ b/zh-cn/application-dev/reference/apis/js-apis-image.md @@ -735,9 +735,15 @@ rotate(angle: number, callback: AsyncCallback\): void **示例:** ```js -async function Demo() { - await pixelmap.rotate(90.0); -} +var angle = 90.0; +pixelmap.rotate(angle, (err) => { + if (err) { + console.error("Failed to set rotation."); + return; + } else { + console.log("Succeeded in setting rotation."); + } +}) ``` ### rotate9+ diff --git a/zh-cn/application-dev/reference/apis/js-apis-inner-ability-connectOptions.md b/zh-cn/application-dev/reference/apis/js-apis-inner-ability-connectOptions.md index 8176bf1d9396389d698df23fd6d46d7767c3aca6..fa99cfe2bb037adcca104b0a3332da26c9456c37 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-inner-ability-connectOptions.md +++ b/zh-cn/application-dev/reference/apis/js-apis-inner-ability-connectOptions.md @@ -10,3 +10,25 @@ | onDisconnect7+ | function | 是 | 断开连接时的回调函数。 | | onFailed7+ | function | 是 | 连接失败时的回调函数。 | +**示例:** + + ```ts + let want = { + bundleName: "com.example.myapp", + abilityName: "MyAbility" + }; + + let connectOptions = { + onConnect(elementName, remote) { + console.log('onConnect elementName: ' + elementName); + }, + onDisconnect(elementName) { + console.log('onDisconnect elementName: ' + elementName); + }, + onFailed(code) { + console.error('onFailed code: ' + code); + } + } + + let connection = this.context.connectAbility(want, connectOptions); + ``` \ No newline at end of file diff --git a/zh-cn/application-dev/reference/apis/js-apis-inner-ability-dataAbilityHelper.md b/zh-cn/application-dev/reference/apis/js-apis-inner-ability-dataAbilityHelper.md index 24eb8fc7be651d7ecf925e2ed22e00559769766d..5a632ee11780e5b965e5f8cccea3e6b65b979c44 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-inner-ability-dataAbilityHelper.md +++ b/zh-cn/application-dev/reference/apis/js-apis-inner-ability-dataAbilityHelper.md @@ -35,10 +35,10 @@ openFile(uri: string, mode: string, callback: AsyncCallback\): void ```ts import featureAbility from '@ohos.ability.featureAbility'; -var DAHelper = featureAbility.acquireDataAbilityHelper( +let DAHelper = featureAbility.acquireDataAbilityHelper( "dataability:///com.example.DataAbility" ); -var mode = "rw"; +let mode = "rw"; DAHelper.openFile("dataability:///com.example.DataAbility", mode, (err, data) => { console.info("openFile err: " + JSON.stringify(err) + "data: " + JSON.stringify(data)); }); @@ -69,10 +69,10 @@ openFile(uri: string, mode: string): Promise\ ```ts import featureAbility from '@ohos.ability.featureAbility'; -var DAHelper = featureAbility.acquireDataAbilityHelper( +let DAHelper = featureAbility.acquireDataAbilityHelper( "dataability:///com.example.DataAbility" ); -var mode = "rw"; +let mode = "rw"; DAHelper.openFile("dataability:///com.example.DataAbility", mode).then((data) => { console.info("openFile data: " + JSON.stringify(data)); }); @@ -98,7 +98,7 @@ on(type: 'dataChange', uri: string, callback: AsyncCallback\): void ```ts import featureAbility from '@ohos.ability.featureAbility'; -var DAHelper = featureAbility.acquireDataAbilityHelper( +let DAHelper = featureAbility.acquireDataAbilityHelper( "dataability:///com.example.DataAbility" ); function onChangeNotify() { @@ -131,7 +131,7 @@ off(type: 'dataChange', uri: string, callback?: AsyncCallback\): void ```ts import featureAbility from '@ohos.ability.featureAbility'; -var DAHelper = featureAbility.acquireDataAbilityHelper( +let DAHelper = featureAbility.acquireDataAbilityHelper( "dataability:///com.example.DataAbility" ); function onChangeNotify() { @@ -167,7 +167,7 @@ getType(uri: string, callback: AsyncCallback\): void ```ts import featureAbility from '@ohos.ability.featureAbility'; -var DAHelper = featureAbility.acquireDataAbilityHelper( +let DAHelper = featureAbility.acquireDataAbilityHelper( "dataability:///com.example.DataAbility" ); DAHelper.getType("dataability:///com.example.DataAbility", (err, data) => { @@ -199,7 +199,7 @@ getType(uri: string): Promise\ ```ts import featureAbility from '@ohos.ability.featureAbility'; -var DAHelper = featureAbility.acquireDataAbilityHelper( +let DAHelper = featureAbility.acquireDataAbilityHelper( "dataability:///com.example.DataAbility" ); DAHelper.getType("dataability:///com.example.DataAbility").then((data) => { @@ -227,7 +227,7 @@ getFileTypes(uri: string, mimeTypeFilter: string, callback: AsyncCallback { @@ -260,7 +260,7 @@ getFileTypes(uri: string, mimeTypeFilter: string): Promise\> ```ts import featureAbility from '@ohos.ability.featureAbility'; -var DAHelper = featureAbility.acquireDataAbilityHelper( +let DAHelper = featureAbility.acquireDataAbilityHelper( "dataability:///com.example.DataAbility" ); DAHelper.getFileTypes("dataability:///com.example.DataAbility", "image/*").then((data) => { @@ -287,7 +287,7 @@ normalizeUri(uri: string, callback: AsyncCallback\): void ```ts import featureAbility from '@ohos.ability.featureAbility'; -var DAHelper = featureAbility.acquireDataAbilityHelper( +let DAHelper = featureAbility.acquireDataAbilityHelper( "dataability:///com.example.DataAbility" ); DAHelper.normalizeUri("dataability:///com.example.DataAbility", (err, data) => { @@ -319,7 +319,7 @@ normalizeUri(uri: string): Promise\ ```ts import featureAbility from '@ohos.ability.featureAbility'; -var DAHelper = featureAbility.acquireDataAbilityHelper( +let DAHelper = featureAbility.acquireDataAbilityHelper( "dataability:///com.example.DataAbility" ); DAHelper.normalizeUri("dataability:///com.example.DataAbility",).then((data) => { @@ -346,7 +346,7 @@ denormalizeUri(uri: string, callback: AsyncCallback\): void ```ts import featureAbility from '@ohos.ability.featureAbility'; -var DAHelper = featureAbility.acquireDataAbilityHelper( +let DAHelper = featureAbility.acquireDataAbilityHelper( "dataability:///com.example.DataAbility" ); DAHelper.denormalizeUri("dataability:///com.example.DataAbility", (err, data) => { @@ -378,7 +378,7 @@ denormalizeUri(uri: string): Promise\ ```ts import featureAbility from '@ohos.ability.featureAbility'; -var DAHelper = featureAbility.acquireDataAbilityHelper( +let DAHelper = featureAbility.acquireDataAbilityHelper( "dataability:///com.example.DataAbility" ); DAHelper.denormalizeUri("dataability:///com.example.DataAbility",).then((data) => { @@ -405,7 +405,7 @@ notifyChange(uri: string, callback: AsyncCallback\): void ```ts import featureAbility from '@ohos.ability.featureAbility'; -var DAHelper = featureAbility.acquireDataAbilityHelper( +let DAHelper = featureAbility.acquireDataAbilityHelper( "dataability:///com.example.DataAbility" ); DAHelper.notifyChange("dataability:///com.example.DataAbility", (err) => { @@ -437,7 +437,7 @@ notifyChange(uri: string): Promise\ ```ts import featureAbility from '@ohos.ability.featureAbility'; -var DAHelper = featureAbility.acquireDataAbilityHelper( +let DAHelper = featureAbility.acquireDataAbilityHelper( "dataability:///com.example.DataAbility" ); DAHelper.notifyChange("dataability:///com.example.DataAbility").then(() => { @@ -465,7 +465,7 @@ insert(uri: string, valuesBucket: rdb.ValuesBucket, callback: AsyncCallback\ ```ts import featureAbility from '@ohos.ability.featureAbility'; -var DAHelper = featureAbility.acquireDataAbilityHelper( +let DAHelper = featureAbility.acquireDataAbilityHelper( "dataability:///com.example.DataAbility" ); const valueBucket = { @@ -538,10 +538,10 @@ batchInsert(uri: string, valuesBuckets: Array\, callback: Asyn ```ts import featureAbility from '@ohos.ability.featureAbility'; -var DAHelper = featureAbility.acquireDataAbilityHelper( +let DAHelper = featureAbility.acquireDataAbilityHelper( "dataability:///com.example.DataAbility" ); -var cars = new Array({"name": "roe11", "age": 21, "salary": 20.5, "blobType": "u8",}, +let cars = new Array({"name": "roe11", "age": 21, "salary": 20.5, "blobType": "u8",}, {"name": "roe12", "age": 21, "salary": 20.5, "blobType": "u8",}, {"name": "roe13", "age": 21, "salary": 20.5, "blobType": "u8",}); DAHelper.batchInsert("dataability:///com.example.DataAbility", cars, (err, data) => { @@ -574,10 +574,10 @@ batchInsert(uri: string, valuesBuckets: Array): Promise\ { @@ -606,7 +606,7 @@ delete(uri: string, predicates: dataAbility.DataAbilityPredicates, callback: Asy ```ts import featureAbility from '@ohos.ability.featureAbility'; import ohos_data_ability from '@ohos.data.dataAbility'; -var DAHelper = featureAbility.acquireDataAbilityHelper( +let DAHelper = featureAbility.acquireDataAbilityHelper( "dataability:///com.example.DataAbility" ); let da = new ohos_data_ability.DataAbilityPredicates(); @@ -641,7 +641,7 @@ delete(uri: string, predicates?: dataAbility.DataAbilityPredicates): Promise\, predicates: dataAbility.DataAbilityP ```ts import featureAbility from '@ohos.ability.featureAbility'; import ohos_data_ability from '@ohos.data.dataAbility'; -var DAHelper = featureAbility.acquireDataAbilityHelper( +let DAHelper = featureAbility.acquireDataAbilityHelper( "dataability:///com.example.DataAbility" ); -var cars=new Array("value1", "value2", "value3", "value4"); +let cars=new Array("value1", "value2", "value3", "value4"); let da = new ohos_data_ability.DataAbilityPredicates(); DAHelper.query("dataability:///com.example.DataAbility", cars, da, (err, data) => { console.info("query err: " + JSON.stringify(err) + "data: " + JSON.stringify(data)); @@ -790,10 +790,10 @@ query(uri: string, columns?: Array\, predicates?: dataAbility.DataAbilit ```ts import featureAbility from '@ohos.ability.featureAbility'; import ohos_data_ability from '@ohos.data.dataAbility'; -var DAHelper = featureAbility.acquireDataAbilityHelper( +let DAHelper = featureAbility.acquireDataAbilityHelper( "dataability:///com.example.DataAbility" ); -var cars = new Array("value1", "value2", "value3", "value4"); +let cars = new Array("value1", "value2", "value3", "value4"); let da = new ohos_data_ability.DataAbilityPredicates(); DAHelper.query("dataability:///com.example.DataAbility", cars, da).then((data) => { console.info("query data: " + JSON.stringify(data)); diff --git a/zh-cn/application-dev/reference/apis/js-apis-inner-ability-want.md b/zh-cn/application-dev/reference/apis/js-apis-inner-ability-want.md index 25fe8e84f6dc5cea8341a80a3ed85717d431b101..d15ffdfe503d482a78ee5a123f12bd433efe62da 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-inner-ability-want.md +++ b/zh-cn/application-dev/reference/apis/js-apis-inner-ability-want.md @@ -4,7 +4,7 @@ Want是对象间信息传递的载体, 可以用于应用组件间的信息传 > **说明:** > -> 本模块首批接口从API version 6开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 +> 本模块首批接口从API version 6开始支持,从API version 9废弃,使用[@ohos.app.ability.Want](js-apis-app-ability-want.md)模块替代。后续版本的新增接口,采用上角标单独标记接口的起始版本。 **系统能力**:以下各项对应的系统能力均为SystemCapability.Ability.AbilityBase @@ -17,7 +17,7 @@ Want是对象间信息传递的载体, 可以用于应用组件间的信息传 | type | string | 否 | 表示MIME type类型,打开文件的类型,主要用于文管打开文件。比如:"text/xml" 、 "image/*"等,MIME定义参考:https://www.iana.org/assignments/media-types/media-types.xhtml?utm_source=ld246.com。 | | flags | number | 否 | 表示处理Want的方式。默认传数字,具体参考:[flags说明](js-apis-ability-wantConstant.md#wantConstant.Flags)。 | | action | string | 否 | 表示要执行的通用操作(如:查看、分享、应用详情)。在隐式Want中,您可以定义该字段,配合uri或parameters来表示对数据要执行的操作。具体参考:[action说明](js-apis-app-ability-wantConstant.md#wantConstant.Action)。隐式Want定义及匹配规则参考:[显式Want与隐式Want匹配规则](application-models/explicit-implicit-want-mappings.md)。 | -| parameters | {[key: string]: any} | 否 | 表示WantParams,由开发者自行决定传入的键值对。默认会携带以下key值:
ohos.aafwk.callerPid 表示拉起方的pid。
ohos.aafwk.param.callerToken 表示拉起方的token。
ohos.aafwk.param.callerUid 表示[bundleInfo](js-apis-bundle-BundleInfo.md#bundleinfo-1)中的uid,应用包里应用程序的uid。 | +| parameters | {[key: string]: any} | 否 | 表示WantParams,由开发者自行决定传入的键值对。默认会携带以下key值:
ohos.aafwk.callerPid 表示拉起方的pid。
ohos.aafwk.param.callerToken 表示拉起方的token。
ohos.aafwk.param.callerUid 表示[bundleInfo](js-apis-bundle-BundleInfo.md#bundleinfo-1)中的uid,应用包里应用程序的uid。
- component.startup.newRules:表示是否启用新的管控规则。
- moduleName:表示拉起方的模块名,该字段的值即使定义成其他字符串,在传递到另一端时会被修改为正确的值。
- ohos.dlp.params.sandbox:表示dlp文件才会有。 | | entities | Array\ | 否 | 表示目标Ability额外的类别信息(如:浏览器、视频播放器),在隐式Want中是对action字段的补充。在隐式Want中,您可以定义该字段,来过滤匹配Ability类型。具体参考:[entity说明](js-apis-app-ability-wantConstant.md#wantConstant.Entity)。 | | moduleName9+ | string | 否 | 表示待启动的Ability所属的模块(module)。 | diff --git a/zh-cn/application-dev/reference/apis/js-apis-inner-app-context.md b/zh-cn/application-dev/reference/apis/js-apis-inner-app-context.md index 509d227c4a0ece66eeef92422eb9ecb36ef440c8..7a35c79c2345d91336e17da78a597d0e9031a614 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-inner-app-context.md +++ b/zh-cn/application-dev/reference/apis/js-apis-inner-app-context.md @@ -13,7 +13,7 @@ Context对象是在featureAbility中创建实例,并通过featureAbility的[ge ```ts import featureAbility from '@ohos.ability.featureAbility'; -var context = featureAbility.getContext(); +let context = featureAbility.getContext(); context.getOrCreateLocalDir().then((data) => { console.info("getOrCreateLocalDir data: " + JSON.stringify(data)); }); @@ -39,7 +39,7 @@ getOrCreateLocalDir(callback: AsyncCallback\): void ```ts import featureAbility from '@ohos.ability.featureAbility'; -var context = featureAbility.getContext(); +let context = featureAbility.getContext(); context.getOrCreateLocalDir((err, data)=>{ console.info("getOrCreateLocalDir err: " + JSON.stringify(err) + "data: " + JSON.stringify(data)); }); @@ -67,7 +67,7 @@ getOrCreateLocalDir(): Promise\ ```ts import featureAbility from '@ohos.ability.featureAbility'; -var context = featureAbility.getContext(); +let context = featureAbility.getContext(); context.getOrCreateLocalDir().then((data) => { console.info("getOrCreateLocalDir data: " + JSON.stringify(data)); }); @@ -94,7 +94,7 @@ verifyPermission(permission: string, options: PermissionOptions, callback: Async ```ts import featureAbility from '@ohos.ability.featureAbility'; import bundle from '@ohos.bundle.bundleManager'; -var context = featureAbility.getContext(); +let context = featureAbility.getContext(); bundle.getBundleInfo('com.context.test', 1, (err, datainfo) =>{ context.verifyPermission("com.example.permission", {uid:datainfo.appInfo.uid}, (err, data) =>{ console.info("verifyPermission err: " + JSON.stringify(err) + "data: " + JSON.stringify(data)); @@ -124,7 +124,7 @@ verifyPermission(permission: string, callback: AsyncCallback\): void ```ts import featureAbility from '@ohos.ability.featureAbility'; -var context = featureAbility.getContext(); +let context = featureAbility.getContext(); context.verifyPermission("com.example.permission", (err, data) =>{ console.info("verifyPermission err: " + JSON.stringify(err) + "data: " + JSON.stringify(data)); }); @@ -155,8 +155,8 @@ verifyPermission(permission: string, options?: PermissionOptions): Promise\ { console.info("verifyPermission data: " + JSON.stringify(data)); }); @@ -184,7 +184,7 @@ requestPermissionsFromUser(permissions: Array\, requestCode: number, res ```ts import featureAbility from '@ohos.ability.featureAbility'; -var context = featureAbility.getContext(); +let context = featureAbility.getContext(); context.requestPermissionsFromUser( ["com.example.permission1", "com.example.permission2", @@ -224,7 +224,7 @@ requestPermissionsFromUser(permissions: Array\, requestCode: number): Pr ```ts import featureAbility from '@ohos.ability.featureAbility'; -var context = featureAbility.getContext(); +let context = featureAbility.getContext(); context.requestPermissionsFromUser( ["com.example.permission1", "com.example.permission2", @@ -257,7 +257,7 @@ getApplicationInfo(callback: AsyncCallback\): void ```ts import featureAbility from '@ohos.ability.featureAbility'; -var context = featureAbility.getContext(); +let context = featureAbility.getContext(); context.getApplicationInfo((err, data) => { console.info("getApplicationInfo err: " + JSON.stringify(err) + "data: " + JSON.stringify(data)); }); @@ -283,7 +283,7 @@ getApplicationInfo(): Promise\ ```ts import featureAbility from '@ohos.ability.featureAbility'; -var context = featureAbility.getContext(); +let context = featureAbility.getContext(); context.getApplicationInfo().then((data) => { console.info("getApplicationInfo data: " + JSON.stringify(data)); }); @@ -309,7 +309,7 @@ getBundleName(callback: AsyncCallback\): void ```ts import featureAbility from '@ohos.ability.featureAbility'; -var context = featureAbility.getContext(); +let context = featureAbility.getContext(); context.getBundleName((err, data) => { console.info("getBundleName err: " + JSON.stringify(err) + "data: " + JSON.stringify(data)); }); @@ -335,7 +335,7 @@ getBundleName(): Promise\ ```ts import featureAbility from '@ohos.ability.featureAbility'; -var context = featureAbility.getContext(); +let context = featureAbility.getContext(); context.getBundleName().then((data) => { console.info("getBundleName data: " + JSON.stringify(data)); }); @@ -359,7 +359,7 @@ getDisplayOrientation(callback: AsyncCallback\): void ```ts import featureAbility from '@ohos.ability.featureAbility'; -var context = featureAbility.getContext(); +let context = featureAbility.getContext(); context.getDisplayOrientation((err, data) => { console.info("getDisplayOrientation err: " + JSON.stringify(err) + "data: " + JSON.stringify(data)); }); @@ -383,7 +383,7 @@ getDisplayOrientation(): Promise\; ```ts import featureAbility from '@ohos.ability.featureAbility'; -var context = featureAbility.getContext(); +let context = featureAbility.getContext(); context.getDisplayOrientation().then((data) => { console.info("getDisplayOrientation data: " + JSON.stringify(data)); }); @@ -407,7 +407,7 @@ getExternalCacheDir(callback: AsyncCallback\): void ```ts import featureAbility from '@ohos.ability.featureAbility'; -var context = featureAbility.getContext(); +let context = featureAbility.getContext(); context.getExternalCacheDir((err, data) => { console.info("getExternalCacheDir err: " + JSON.stringify(err) + "data: " + JSON.stringify(data)); }); @@ -431,7 +431,7 @@ getExternalCacheDir(): Promise\; ```ts import featureAbility from '@ohos.ability.featureAbility'; -var context = featureAbility.getContext(); +let context = featureAbility.getContext(); context.getExternalCacheDir().then((data) => { console.info("getExternalCacheDir data: " + JSON.stringify(data)); }); @@ -457,8 +457,8 @@ setDisplayOrientation(orientation: bundle.DisplayOrientation, callback: AsyncCal ```ts import featureAbility from '@ohos.ability.featureAbility'; import bundle from '@ohos.bundle'; -var context = featureAbility.getContext(); -var orientation = bundle.DisplayOrientation.UNSPECIFIED; +let context = featureAbility.getContext(); +let orientation = bundle.DisplayOrientation.UNSPECIFIED; context.setDisplayOrientation(orientation, (err) => { console.info("setDisplayOrientation err: " + JSON.stringify(err)); }); @@ -484,8 +484,8 @@ setDisplayOrientation(orientation: bundle.DisplayOrientation): Promise\; ```ts import featureAbility from '@ohos.ability.featureAbility'; import bundle from '@ohos.bundle'; -var context = featureAbility.getContext(); -var orientation = bundle.DisplayOrientation.UNSPECIFIED; +let context = featureAbility.getContext(); +let orientation = bundle.DisplayOrientation.UNSPECIFIED; context.setDisplayOrientation(orientation).then((data) => { console.info("setDisplayOrientation data: " + JSON.stringify(data)); }); @@ -510,8 +510,8 @@ setShowOnLockScreen(show: boolean, callback: AsyncCallback\): void ```ts import featureAbility from '@ohos.ability.featureAbility'; -var context = featureAbility.getContext(); -var show = true; +let context = featureAbility.getContext(); +let show = true; context.setShowOnLockScreen(show, (err) => { console.info("setShowOnLockScreen err: " + JSON.stringify(err)); }); @@ -541,8 +541,8 @@ setShowOnLockScreen(show: boolean): Promise\; ```ts import featureAbility from '@ohos.ability.featureAbility'; -var context = featureAbility.getContext(); -var show = true; +let context = featureAbility.getContext(); +let show = true; context.setShowOnLockScreen(show).then((data) => { console.info("setShowOnLockScreen data: " + JSON.stringify(data)); }); @@ -567,8 +567,8 @@ setWakeUpScreen(wakeUp: boolean, callback: AsyncCallback\): void ```ts import featureAbility from '@ohos.ability.featureAbility'; -var context = featureAbility.getContext(); -var wakeUp = true; +let context = featureAbility.getContext(); +let wakeUp = true; context.setWakeUpScreen(wakeUp, (err) => { console.info("setWakeUpScreen err: " + JSON.stringify(err)); }); @@ -598,8 +598,8 @@ setWakeUpScreen(wakeUp: boolean): Promise\; ```ts import featureAbility from '@ohos.ability.featureAbility'; -var context = featureAbility.getContext(); -var wakeUp = true; +let context = featureAbility.getContext(); +let wakeUp = true; context.setWakeUpScreen(wakeUp).then((data) => { console.info("setWakeUpScreen data: " + JSON.stringify(data)); }); @@ -626,7 +626,7 @@ getProcessInfo(callback: AsyncCallback\): void ```ts import featureAbility from '@ohos.ability.featureAbility'; -var context = featureAbility.getContext(); +let context = featureAbility.getContext(); context.getProcessInfo((err, data) => { console.info("getProcessInfo err: " + JSON.stringify(err) + "data: " + JSON.stringify(data)); }); @@ -652,7 +652,7 @@ getProcessInfo(): Promise\ ```ts import featureAbility from '@ohos.ability.featureAbility'; -var context = featureAbility.getContext(); +let context = featureAbility.getContext(); context.getProcessInfo().then((data) => { console.info("getProcessInfo data: " + JSON.stringify(data)); }); @@ -680,7 +680,7 @@ getElementName(callback: AsyncCallback\): void ```ts import featureAbility from '@ohos.ability.featureAbility'; -var context = featureAbility.getContext(); +let context = featureAbility.getContext(); context.getElementName((err, data) => { console.info("getElementName err: " + JSON.stringify(err) + "data: " + JSON.stringify(data)); }); @@ -708,7 +708,7 @@ getElementName(): Promise\ ```ts import featureAbility from '@ohos.ability.featureAbility'; -var context = featureAbility.getContext(); +let context = featureAbility.getContext(); context.getElementName().then((data) => { console.info("getElementName data: " + JSON.stringify(data)); }); @@ -732,7 +732,7 @@ getProcessName(callback: AsyncCallback\): void ```ts import featureAbility from '@ohos.ability.featureAbility'; -var context = featureAbility.getContext(); +let context = featureAbility.getContext(); context.getProcessName((err, data) => { console.info("getProcessName err: " + JSON.stringify(err) + "data: " + JSON.stringify(data)); }); @@ -758,7 +758,7 @@ getProcessName(): Promise\ ```ts import featureAbility from '@ohos.ability.featureAbility'; -var context = featureAbility.getContext(); +let context = featureAbility.getContext(); context.getProcessName().then((data) => { console.info("getProcessName data: " + JSON.stringify(data)); }); @@ -784,7 +784,7 @@ getCallingBundle(callback: AsyncCallback\): void ```ts import featureAbility from '@ohos.ability.featureAbility'; -var context = featureAbility.getContext(); +let context = featureAbility.getContext(); context.getCallingBundle((err, data) => { console.info("getCallingBundle err: " + JSON.stringify(err) + "data: " + JSON.stringify(data)); }); @@ -810,7 +810,7 @@ getCallingBundle(): Promise\ ```ts import featureAbility from '@ohos.ability.featureAbility'; -var context = featureAbility.getContext(); +let context = featureAbility.getContext(); context.getCallingBundle().then((data) => { console.info("getCallingBundle data: " + JSON.stringify(data)); }); @@ -834,7 +834,7 @@ getCacheDir(callback: AsyncCallback\): void ```ts import featureAbility from '@ohos.ability.featureAbility'; -var context = featureAbility.getContext(); +let context = featureAbility.getContext(); context.getCacheDir((err, data) => { console.info("getCacheDir err: " + JSON.stringify(err) + "data: " + JSON.stringify(data)); }); @@ -858,7 +858,7 @@ getCacheDir(): Promise\ ```ts import featureAbility from '@ohos.ability.featureAbility'; -var context = featureAbility.getContext(); +let context = featureAbility.getContext(); context.getCacheDir().then((data) => { console.info("getCacheDir data: " + JSON.stringify(data)); }); @@ -882,7 +882,7 @@ getFilesDir(callback: AsyncCallback\): void ```ts import featureAbility from '@ohos.ability.featureAbility'; -var context = featureAbility.getContext(); +let context = featureAbility.getContext(); context.getFilesDir((err, data) => { console.info("getFilesDir err: " + JSON.stringify(err) + "data: " + JSON.stringify(data)); }); @@ -906,7 +906,7 @@ getFilesDir(): Promise\ ```ts import featureAbility from '@ohos.ability.featureAbility'; -var context = featureAbility.getContext(); +let context = featureAbility.getContext(); context.getFilesDir().then((data) => { console.info("getFilesDir data: " + JSON.stringify(data)); }); @@ -932,7 +932,7 @@ getOrCreateDistributedDir(callback: AsyncCallback\): void ```ts import featureAbility from '@ohos.ability.featureAbility'; -var context = featureAbility.getContext(); +let context = featureAbility.getContext(); context.getOrCreateDistributedDir((err, data) => { console.info("getOrCreateDistributedDir err: " + JSON.stringify(err) + "data: " + JSON.stringify(data)); }); @@ -958,7 +958,7 @@ getOrCreateDistributedDir(): Promise\ ```ts import featureAbility from '@ohos.ability.featureAbility'; -var context = featureAbility.getContext(); +let context = featureAbility.getContext(); context.getOrCreateDistributedDir().then((data) => { console.info("getOrCreateDistributedDir data: " + JSON.stringify(data)); }); @@ -982,7 +982,7 @@ getAppType(callback: AsyncCallback\): void ```ts import featureAbility from '@ohos.ability.featureAbility'; -var context = featureAbility.getContext(); +let context = featureAbility.getContext(); context.getAppType((err, data) => { console.info("getAppType err: " + JSON.stringify(err) + "data: " + JSON.stringify(data)); }); @@ -1006,7 +1006,7 @@ getAppType(): Promise\ ```ts import featureAbility from '@ohos.ability.featureAbility'; -var context = featureAbility.getContext(); +let context = featureAbility.getContext(); context.getAppType().then((data) => { console.info("getAppType data: " + JSON.stringify(data)); }); @@ -1030,7 +1030,7 @@ getHapModuleInfo(callback: AsyncCallback\): void ```ts import featureAbility from '@ohos.ability.featureAbility'; -var context = featureAbility.getContext(); +let context = featureAbility.getContext(); context.getHapModuleInfo((err, data) => { console.info("getHapModuleInfo err: " + JSON.stringify(err) + "data: " + JSON.stringify(data)); }); @@ -1054,7 +1054,7 @@ getHapModuleInfo(): Promise\ ```ts import featureAbility from '@ohos.ability.featureAbility'; -var context = featureAbility.getContext(); +let context = featureAbility.getContext(); context.getHapModuleInfo().then((data) => { console.info("getHapModuleInfo data: " + JSON.stringify(data)); }); @@ -1078,7 +1078,7 @@ getAppVersionInfo(callback: AsyncCallback\): void ```ts import featureAbility from '@ohos.ability.featureAbility'; -var context = featureAbility.getContext(); +let context = featureAbility.getContext(); context.getAppVersionInfo((err, data) => { console.info("getAppVersionInfo err: " + JSON.stringify(err) + "data: " + JSON.stringify(data)); }); @@ -1102,7 +1102,7 @@ getAppVersionInfo(): Promise\ ```ts import featureAbility from '@ohos.ability.featureAbility'; -var context = featureAbility.getContext(); +let context = featureAbility.getContext(); context.getAppVersionInfo().then((data) => { console.info("getAppVersionInfo data: " + JSON.stringify(data)); }); @@ -1126,7 +1126,7 @@ getAbilityInfo(callback: AsyncCallback\): void ```ts import featureAbility from '@ohos.ability.featureAbility'; -var context = featureAbility.getContext(); +let context = featureAbility.getContext(); context.getAbilityInfo((err, data) => { console.info("getAbilityInfo err: " + JSON.stringify(err) + "data: " + JSON.stringify(data)); }); @@ -1150,7 +1150,7 @@ getAbilityInfo(): Promise\ ```ts import featureAbility from '@ohos.ability.featureAbility'; -var context = featureAbility.getContext(); +let context = featureAbility.getContext(); context.getAbilityInfo().then((data) => { console.info("getAbilityInfo data: " + JSON.stringify(data)); }); @@ -1174,7 +1174,7 @@ getApplicationContext(): Context ```ts import featureAbility from '@ohos.ability.featureAbility'; -var context = featureAbility.getContext().getApplicationContext(); +let context = featureAbility.getContext().getApplicationContext(); ``` ## Context.isUpdatingConfigurations7+ @@ -1195,7 +1195,7 @@ isUpdatingConfigurations(callback: AsyncCallback\): void; ```ts import featureAbility from '@ohos.ability.featureAbility'; -var context = featureAbility.getContext(); +let context = featureAbility.getContext(); context.isUpdatingConfigurations((err, data) => { console.info("isUpdatingConfigurations err: " + JSON.stringify(err) + "data: " + JSON.stringify(data)); }); @@ -1219,7 +1219,7 @@ isUpdatingConfigurations(): Promise\; ```ts import featureAbility from '@ohos.ability.featureAbility'; -var context = featureAbility.getContext(); +let context = featureAbility.getContext(); context.isUpdatingConfigurations().then((data) => { console.info("isUpdatingConfigurations data: " + JSON.stringify(data)); }); @@ -1243,7 +1243,7 @@ printDrawnCompleted(callback: AsyncCallback\): void; ```ts import featureAbility from '@ohos.ability.featureAbility'; -var context = featureAbility.getContext(); +let context = featureAbility.getContext(); context.printDrawnCompleted((err) => { console.error('printDrawnCompleted err: ' + JSON.stringify(err)); }); @@ -1267,7 +1267,7 @@ printDrawnCompleted(): Promise\; ```ts import featureAbility from '@ohos.ability.featureAbility'; -var context = featureAbility.getContext(); +let context = featureAbility.getContext(); context.printDrawnCompleted().then((data) => { console.info("printDrawnCompleted data: " + JSON.stringify(data)); }); diff --git a/zh-cn/application-dev/reference/apis/js-apis-inner-app-processInfo.md b/zh-cn/application-dev/reference/apis/js-apis-inner-app-processInfo.md index 065784e1a602dd45349871249de78927357a5fcd..48f54e84fb3bcc274649ab1be9bc1527e62a4326 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-inner-app-processInfo.md +++ b/zh-cn/application-dev/reference/apis/js-apis-inner-app-processInfo.md @@ -17,11 +17,13 @@ ```ts import featureAbility from '@ohos.ability.featureAbility'; -var context = featureAbility.getContext(); +let context = featureAbility.getContext(); context.getProcessInfo((err, data) => { - console.info("getProcessInfo err: " + JSON.stringify(err) + "data: " + JSON.stringify(data)); - let pid = data.pid; - let processName = data.processName; + if (err.code != 0) { + console.info("getProcessInfo err: " + JSON.stringify(err) + "data: " + JSON.stringify(data)); + let pid = data.pid; + let processName = data.processName; + } }); ``` diff --git a/zh-cn/application-dev/reference/apis/js-apis-inner-application-abilityDelegatorArgs.md b/zh-cn/application-dev/reference/apis/js-apis-inner-application-abilityDelegatorArgs.md index 0913bdd260950f4039b5ce52869d0b5bf14ad46e..a8b15e26993ee71e2516410df96b22408855eee4 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-inner-application-abilityDelegatorArgs.md +++ b/zh-cn/application-dev/reference/apis/js-apis-inner-application-abilityDelegatorArgs.md @@ -28,5 +28,5 @@ AbilityDelegatorArgs模块提供在应用程序执行测试用例期间,获取 ```ts import AbilityDelegatorRegistry from '@ohos.app.ability.abilityDelegatorRegistry'; -var args = AbilityDelegatorRegistry.getArguments(); +let args = AbilityDelegatorRegistry.getArguments(); ``` diff --git a/zh-cn/application-dev/reference/apis/js-apis-inner-application-abilityMonitor.md b/zh-cn/application-dev/reference/apis/js-apis-inner-application-abilityMonitor.md index 7bd8dd4411a14448a3a9539c59e513aa82abe076..fa41b00fd9bea92058f7be3e26db61b923652840 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-inner-application-abilityMonitor.md +++ b/zh-cn/application-dev/reference/apis/js-apis-inner-application-abilityMonitor.md @@ -36,12 +36,12 @@ function onAbilityCreateCallback(data) { console.info("onAbilityCreateCallback"); } -var monitor = { +let monitor = { abilityName: "abilityname", onAbilityCreate: onAbilityCreateCallback } -var abilityDelegator = AbilityDelegatorRegistry.getAbilityDelegator(); +let abilityDelegator = AbilityDelegatorRegistry.getAbilityDelegator(); abilityDelegator.addAbilityMonitor(monitor, (err : any) => { console.info("addAbilityMonitor callback"); }); diff --git a/zh-cn/application-dev/reference/apis/js-apis-inner-application-abilityStageContext.md b/zh-cn/application-dev/reference/apis/js-apis-inner-application-abilityStageContext.md index c5b4aae5a0e82d0bdccc8b93738baa8e59340e73..1224bc0b62dc439e42aa88edfc4dde577156bff2 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-inner-application-abilityStageContext.md +++ b/zh-cn/application-dev/reference/apis/js-apis-inner-application-abilityStageContext.md @@ -1,6 +1,6 @@ # AbilityStageContext -AbilityStageContext是AbilityStage的上下文环境,继承自[Context](js-apis-application-context.md)。 +AbilityStageContext是AbilityStage的上下文环境,继承自[Context](js-apis-inner-application-context.md)。 AbilityStageContext提供允许访问特定于abilityStage的资源的能力,包括获取AbilityStage对应的ModuleInfo对象、环境变化对象。 @@ -29,5 +29,5 @@ class MyAbilityStage extends AbilityStage { | 名称 | 类型 | 可读 | 可写 | 说明 | | -------- | -------- | -------- | -------- | -------- | -| currentHapModuleInfo | HapModuleInfo | 是 | 否 | AbilityStage对应的ModuleInfo对象。 | +| currentHapModuleInfo | [HapModuleInfo](js-apis-bundleManager-hapModuleInfo.md) | 是 | 否 | AbilityStage对应的ModuleInfo对象。 | | config | [Configuration](js-apis-app-ability-configuration.md) | 是 | 否 | 环境变化对象。 | diff --git a/zh-cn/application-dev/reference/apis/js-apis-inner-application-applicationContext.md b/zh-cn/application-dev/reference/apis/js-apis-inner-application-applicationContext.md index d4042cd5ebc208bed0b8e5c44fe702f4ebab469d..e03b28ec9d958d242c123563cf55a009a077dcf1 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-inner-application-applicationContext.md +++ b/zh-cn/application-dev/reference/apis/js-apis-inner-application-applicationContext.md @@ -15,9 +15,9 @@ ApplicationContext模块提供开发者应用级别的的上下文的能力, let applicationContext = this.context.getApplicationContext(); ``` -## ApplicationContext.registerAbilityLifecycleCallback +## ApplicationContext.on(type: "abilityLifecycle", callback: AbilityLifecycleCallback) -registerAbilityLifecycleCallback(callback: AbilityLifecycleCallback): **number**; +on(type: "abilityLifecycle", callback: AbilityLifecycleCallback): **number**; 注册监听应用内生命周期 @@ -27,6 +27,7 @@ registerAbilityLifecycleCallback(callback: AbilityLifecycleCallback): **number** | 参数名 | 类型 | 必填 | 说明 | | ------------------------ | -------- | ---- | ------------------------------ | +| type | "abilityLifecycle" | 是 | 监听事件的类型。 | | callback | [AbilityLifecycleCallback](js-apis-app-ability-abilityLifecycleCallback.md) | 是 | 回调方法,返回注册监听事件的ID。 | **返回值:** @@ -40,56 +41,56 @@ registerAbilityLifecycleCallback(callback: AbilityLifecycleCallback): **number** ```ts import UIAbility from '@ohos.app.ability.UIAbility'; -var lifecycleId; +let lifecycleId; export default class EntryAbility extends UIAbility { onCreate() { console.log("MyAbility onCreate") let AbilityLifecycleCallback = { onAbilityCreate(ability) { - console.log("AbilityLifecycleCallback onAbilityCreate ability:" + JSON.stringify(ability)); + console.log("AbilityLifecycleCallback onAbilityCreate ability:" + ability); }, onWindowStageCreate(ability, windowStage) { - console.log("AbilityLifecycleCallback onWindowStageCreate ability:" + JSON.stringify(ability)); - console.log("AbilityLifecycleCallback onWindowStageCreate windowStage:" + JSON.stringify(windowStage)); + console.log("AbilityLifecycleCallback onWindowStageCreate ability:" + ability); + console.log("AbilityLifecycleCallback onWindowStageCreate windowStage:" + windowStage); }, onWindowStageActive(ability, windowStage) { - console.log("AbilityLifecycleCallback onWindowStageActive ability:" + JSON.stringify(ability)); - console.log("AbilityLifecycleCallback onWindowStageActive windowStage:" + JSON.stringify(windowStage)); + console.log("AbilityLifecycleCallback onWindowStageActive ability:" + ability); + console.log("AbilityLifecycleCallback onWindowStageActive windowStage:" + windowStage); }, onWindowStageInactive(ability, windowStage) { - console.log("AbilityLifecycleCallback onWindowStageInactive ability:" + JSON.stringify(ability)); - console.log("AbilityLifecycleCallback onWindowStageInactive windowStage:" + JSON.stringify(windowStage)); + console.log("AbilityLifecycleCallback onWindowStageInactive ability:" + ability); + console.log("AbilityLifecycleCallback onWindowStageInactive windowStage:" + windowStage); }, onWindowStageDestroy(ability, windowStage) { - console.log("AbilityLifecycleCallback onWindowStageDestroy ability:" + JSON.stringify(ability)); - console.log("AbilityLifecycleCallback onWindowStageDestroy windowStage:" + JSON.stringify(windowStage)); + console.log("AbilityLifecycleCallback onWindowStageDestroy ability:" + ability); + console.log("AbilityLifecycleCallback onWindowStageDestroy windowStage:" + windowStage); }, onAbilityDestroy(ability) { - console.log("AbilityLifecycleCallback onAbilityDestroy ability:" + JSON.stringify(ability)); + console.log("AbilityLifecycleCallback onAbilityDestroy ability:" + ability); }, onAbilityForeground(ability) { - console.log("AbilityLifecycleCallback onAbilityForeground ability:" + JSON.stringify(ability)); + console.log("AbilityLifecycleCallback onAbilityForeground ability:" + ability); }, onAbilityBackground(ability) { - console.log("AbilityLifecycleCallback onAbilityBackground ability:" + JSON.stringify(ability)); + console.log("AbilityLifecycleCallback onAbilityBackground ability:" + ability); }, onAbilityContinue(ability) { - console.log("AbilityLifecycleCallback onAbilityContinue ability:" + JSON.stringify(ability)); + console.log("AbilityLifecycleCallback onAbilityContinue ability:" + ability); } } // 1.通过context属性获取applicationContext let applicationContext = this.context.getApplicationContext(); // 2.通过applicationContext注册监听应用内生命周期 - lifecycleId = applicationContext.registerAbilityLifecycleCallback(AbilityLifecycleCallback); + lifecycleId = applicationContext.on("abilityLifecycle", AbilityLifecycleCallback); console.log("registerAbilityLifecycleCallback number: " + JSON.stringify(lifecycleId)); } } ``` -## ApplicationContext.unregisterAbilityLifecycleCallback +## ApplicationContext.off(type: "abilityLifecycle", callbackId: number, callback: AsyncCallback) -unregisterAbilityLifecycleCallback(callbackId: **number**, callback: AsyncCallback<**void**>): **void**; +off(type: "abilityLifecycle", callbackId: **number**, callback: AsyncCallback<**void**>): **void**; 取消监听应用内生命周期 @@ -99,6 +100,7 @@ unregisterAbilityLifecycleCallback(callbackId: **number**, callback: AsyncCallb | 参数名 | 类型 | 必填 | 说明 | | ------------- | -------- | ---- | -------------------------- | +| type | "abilityLifecycle" | 是 | 取消监听事件的类型。 | | callbackId | number | 是 | 注册监听应用内生命周期的ID。 | | callback | AsyncCallback\ | 是 | 回调方法。 | @@ -107,22 +109,53 @@ unregisterAbilityLifecycleCallback(callbackId: **number**, callback: AsyncCallb ```ts import UIAbility from '@ohos.app.ability.UIAbility'; -var lifecycleId; +let lifecycleId; export default class EntryAbility extends UIAbility { onDestroy() { let applicationContext = this.context.getApplicationContext(); - console.log("stage applicationContext: " + JSON.stringify(applicationContext)); - applicationContext.unregisterAbilityLifecycleCallback(lifecycleId, (error, data) => { + console.log("stage applicationContext: " + applicationContext); + applicationContext.off(type: "abilityLifecycle", lifecycleId, (error, data) => { console.log("unregisterAbilityLifecycleCallback success, err: " + JSON.stringify(error)); }); } } ``` -## ApplicationContext.registerEnvironmentCallback +## ApplicationContext.off(type: "abilityLifecycle", callbackId: number) -registerEnvironmentCallback(callback: EnvironmentCallback): **number**; +off(type: "abilityLifecycle", callbackId: **number**): **void**; + +取消监听应用内生命周期 + +**系统能力**:SystemCapability.Ability.AbilityRuntime.Core + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| ------------- | -------- | ---- | -------------------------- | +| type | "abilityLifecycle" | 是 | 取消监听事件的类型。 | +| callbackId | number | 是 | 注册监听应用内生命周期的ID。 | + +**示例:** + +```ts +import Ability from "@ohos.app.ability.UIAbility"; + +let lifecycleId; + +export default class MyAbility extends Ability { + onDestroy() { + let applicationContext = this.context.getApplicationContext(); + console.log("stage applicationContext: " + applicationContext); + applicationContext.off(type: "abilityLifecycle", lifecycleId); + } +} +``` + +## ApplicationContext.on(type: "environment", callback: EnvironmentCallback) + +on(type: "environment", callback: EnvironmentCallback): **number**; 注册对系统环境变化的监听。使用callback异步回调。 @@ -132,6 +165,7 @@ registerEnvironmentCallback(callback: EnvironmentCallback): **number**; | 参数名 | 类型 | 必填 | 说明 | | ------------------------ | -------- | ---- | ------------------------------ | +| type | "environment" | 是 | 监听事件的类型。 | | callback | [EnvironmentCallback](js-apis-app-ability-environmentCallback.md) | 是 | 回调方法,返回注册监听事件的ID。 | **返回值:** @@ -145,7 +179,7 @@ registerEnvironmentCallback(callback: EnvironmentCallback): **number**; ```ts import UIAbility from '@ohos.app.ability.UIAbility'; -var callbackId; +let callbackId; export default class EntryAbility extends UIAbility { onCreate() { @@ -162,15 +196,15 @@ export default class EntryAbility extends UIAbility { // 1.获取applicationContext let applicationContext = globalThis.applicationContext; // 2.通过applicationContext注册监听应用内生命周期 - callbackId = applicationContext.registerEnvironmentCallback(EnvironmentCallback); + callbackId = applicationContext.on("environment", EnvironmentCallback); console.log("registerEnvironmentCallback number: " + JSON.stringify(callbackId)); } } ``` -## ApplicationContext.unregisterEnvironmentCallback +## ApplicationContext.off(type: "environment", callbackId: number, callback: AsyncCallback) -unregisterEnvironmentCallback(callbackId: **number**, callback: AsyncCallback<**void**>): **void**; +off(type: "environment", callbackId: **number**, callback: AsyncCallback<**void**>): **void**; 取消对系统环境变化的监听。使用callback异步回调。 @@ -180,6 +214,7 @@ unregisterEnvironmentCallback(callbackId: **number**, callback: AsyncCallback<* | 参数名 | 类型 | 必填 | 说明 | | ------------- | -------- | ---- | -------------------------- | +| type | "environment" | 是 | 取消监听事件的类型。 | | callbackId | number | 是 | 注册监听系统环境变化的ID。 | | callback | AsyncCallback\ | 是 | 回调方法。 | @@ -188,14 +223,148 @@ unregisterEnvironmentCallback(callbackId: **number**, callback: AsyncCallback<* ```ts import UIAbility from '@ohos.app.ability.UIAbility'; -var callbackId; +let callbackId; export default class EntryAbility extends UIAbility { onDestroy() { let applicationContext = this.context.getApplicationContext(); - applicationContext.unregisterEnvironmentCallback(callbackId, (error, data) => { + applicationContext.off("environment", callbackId, (error, data) => { console.log("unregisterEnvironmentCallback success, err: " + JSON.stringify(error)); }); } } +``` + +## ApplicationContext.off(type: "environment", callbackId: number) + +off(type: "environment", callbackId: **number**, callback: AsyncCallback<**void**>): **void**; + +取消对系统环境变化的监听。使用callback异步回调。 + +**系统能力**:SystemCapability.Ability.AbilityRuntime.Core + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| ------------- | -------- | ---- | -------------------------- | +| type | "environment" | 是 | 取消监听事件的类型。 | +| callbackId | number | 是 | 注册监听系统环境变化的ID。 | + +**示例:** + +```ts +import Ability from "@ohos.app.ability.UIAbility"; + +let callbackId; + +export default class MyAbility extends Ability { + onDestroy() { + let applicationContext = this.context.getApplicationContext(); + applicationContext.off("environment", callbackId); + } +} +``` + +## ApplicationContext.getProcessRunningInformation9+ + +getProcessRunningInformation(): Promise\>; + +获取有关运行进程的信息。 + +**需要权限**:ohos.permission.GET_RUNNING_INFO + +**系统能力**:SystemCapability.Ability.AbilityRuntime.Core + +**系统API**: 此接口为系统接口,三方应用不支持调用。 + +**返回值:** + +| 类型 | 说明 | +| -------- | -------- | +| Promise\> | 以Promise方式返回接口运行结果及有关运行进程的信息,可进行错误处理或其他自定义处理。 | + +**示例:** + +```ts +let applicationContext = this.context.getApplicationContext(); +applicationContext.getProcessRunningInformation().then((data) => { + console.log("The process running information is:" + JSON.stringify(data)); +}).catch((error) => { + console.log("error:" + JSON.stringify(error)); +}); +``` + +## ApplicationContext.getProcessRunningInformation9+ + +getProcessRunningInformation(callback: AsyncCallback\>): void; + +获取有关运行进程的信息。 + +**需要权限**:ohos.permission.GET_RUNNING_INFO + +**系统能力**:SystemCapability.Ability.AbilityRuntime.Core + +**系统API**: 此接口为系统接口,三方应用不支持调用。 + +**返回值:** + +| 类型 | 说明 | +| -------- | -------- | +|AsyncCallback\> | 以回调方式返回接口运行结果及有关运行进程的信息,可进行错误处理或其他自定义处理。 | + +**示例:** + +```ts +let applicationContext = this.context.getApplicationContext(); +applicationContext.getProcessRunningInformation((err, data) => { + if (err.code !== 0) { + console.error("getProcessRunningInformation faile, err: " + JSON.stringify(err)); + } else { + console.log("The process running information is:" + JSON.stringify(data)); + } +}) +``` + +## ApplicationContext.killAllProcesses9+ + +killAllProcesses(): Promise\; + +杀死应用所在的进程。 + +**系统能力**:SystemCapability.Ability.AbilityRuntime.Core + +**返回值:** + +| 类型 | 说明 | +| -------- | -------- | +| Promise\ | 以Promise方式返回杀死应用所在的进程结果。 | + +**示例:** + +```ts +let applicationContext = this.context.getApplicationContext(); +applicationContext.killAllProcesses() +``` + +## ApplicationContext.killAllProcesses9+ + +killAllProcesses(callback: AsyncCallback\); + +杀死应用所在的进程。 + +**系统能力**:SystemCapability.Ability.AbilityRuntime.Core + +**返回值:** + +| 类型 | 说明 | +| -------- | -------- | +|AsyncCallback\ | 以callback方式返回杀死应用所在的进程结果。 | + +**示例:** + +```ts +let applicationContext = this.context.getApplicationContext(); +applicationContext.killAllProcesses(err => { + console.error("killAllProcesses result: " + JSON.stringify(err)); +}) ``` \ No newline at end of file diff --git a/zh-cn/application-dev/reference/apis/js-apis-inner-application-context.md b/zh-cn/application-dev/reference/apis/js-apis-inner-application-context.md index c2f6b786eea4594a65731753f2513efa7d493e55..d5dca1bf8a94fa284d7dd4cf47c5856436b8ce13 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-inner-application-context.md +++ b/zh-cn/application-dev/reference/apis/js-apis-inner-application-context.md @@ -23,7 +23,7 @@ Context模块提供了ability或application的上下文的能力,包括访问 | bundleCodeDir | string | 是 | 否 | 安装包目录。 | | distributedFilesDir | string | 是 | 否 | 分布式文件目录。 | | eventHub | [EventHub](js-apis-inner-application-eventHub.md) | 是 | 否 | 事件中心,提供订阅、取消订阅、触发事件对象。 | -| area | [AreaMode](#areamode) | 是 | 否 | 文件分区信息。 | +| area | contextConstant.[AreaMode](js-apis-app-ability-contextConstant.md) | 是 | 否 | 文件分区信息。 | ## Context.createBundleContext @@ -172,13 +172,3 @@ try { } ``` -## AreaMode - -文件分区 - -**系统能力**:以下各项对应的系统能力均为SystemCapability.Ability.AbilityRuntime.Core - -| 名称 | 值 | 说明 | -| -------- | -------- | -------- | -| EL1 | 0 | 设备级加密区,设备开机后可访问的数据区。 | -| EL2 | 1 | 用户级加密区,设备开机,首次输入密码后才能够访问的数据区。 | diff --git a/zh-cn/application-dev/reference/apis/js-apis-inner-application-extensionContext.md b/zh-cn/application-dev/reference/apis/js-apis-inner-application-extensionContext.md index f45abf105bdaa9d18ffd2ee8b07405a44204249a..dc559a56448e8ced24f37a5939c5f65997bbcaef 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-inner-application-extensionContext.md +++ b/zh-cn/application-dev/reference/apis/js-apis-inner-application-extensionContext.md @@ -90,7 +90,7 @@ export default class ServiceModel { return; } - var moduleInfo = globalThis.ExtensionContext.currentHapModuleInfo; + let moduleInfo = globalThis.ExtensionContext.currentHapModuleInfo; this.moduleName = moduleInfo.name; // 根据moduleName执行不同的业务逻辑,实现对不同性能设备的区分 switch (this.moduleName) { diff --git a/zh-cn/application-dev/reference/apis/js-apis-inner-application-extensionRunningInfo.md b/zh-cn/application-dev/reference/apis/js-apis-inner-application-extensionRunningInfo.md index 13e4ce5df6b37cb85cf82fd9e7e9841c3dca9fc1..4d9e0ab0999147dacc1aa6c459d92d106108f7ff 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-inner-application-extensionRunningInfo.md +++ b/zh-cn/application-dev/reference/apis/js-apis-inner-application-extensionRunningInfo.md @@ -29,7 +29,7 @@ ExtensionRunningInfo模块封装了Extension运行的相关信息,可以通过 ```ts import abilityManager from '@ohos.app.ability.abilityManager' -var upperLimit = 1; +let upperLimit = 1; function getExtensionInfos() { abilityManager.getExtensionRunningInfos(upperLimit, (error, data) => { if (error && error.code) { diff --git a/zh-cn/application-dev/reference/apis/js-apis-inner-application-missionSnapshot.md b/zh-cn/application-dev/reference/apis/js-apis-inner-application-missionSnapshot.md index 2310755f6bc2fd5ac0720e75060152ce6b050588..430fda3c1172ecd6076ed15a32c35def4661780e 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-inner-application-missionSnapshot.md +++ b/zh-cn/application-dev/reference/apis/js-apis-inner-application-missionSnapshot.md @@ -33,7 +33,7 @@ } console.log("size = " + missions.length); console.log("missions = " + JSON.stringify(missions)); - var id = missions[0].missionId; + let id = missions[0].missionId; missionManager.getMissionSnapShot("", id, (err, snapshot) => { if (err.code) { diff --git a/zh-cn/application-dev/reference/apis/js-apis-inner-application-serviceExtensionContext.md b/zh-cn/application-dev/reference/apis/js-apis-inner-application-serviceExtensionContext.md index 7a6ca307c663546ec71690b09ccdb5da1c454115..621d6e03bee8e8b037f10497e82d01e18e31f87b 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-inner-application-serviceExtensionContext.md +++ b/zh-cn/application-dev/reference/apis/js-apis-inner-application-serviceExtensionContext.md @@ -68,7 +68,7 @@ startAbility(want: Want, callback: AsyncCallback<void>): void; **示例:** ```ts - var want = { + let want = { bundleName: "com.example.myapp", abilityName: "MyAbility" }; @@ -141,11 +141,11 @@ startAbility(want: Want, options?: StartOptions): Promise\; **示例:** ```ts - var want = { + let want = { bundleName: "com.example.myapp", abilityName: "MyAbility" }; - var options = { + let options = { windowMode: 0, }; @@ -212,12 +212,12 @@ startAbility(want: Want, options: StartOptions, callback: AsyncCallback<void& **示例:** ```ts - var want = { + let want = { deviceId: "", bundleName: "com.example.myapplication", abilityName: "EntryAbility" }; - var options = { + let options = { windowMode: 0 }; @@ -290,12 +290,12 @@ startAbilityWithAccount(want: Want, accountId: number, callback: AsyncCallback\< **示例:** ```ts - var want = { + let want = { deviceId: "", bundleName: "com.example.myapplication", abilityName: "EntryAbility" }; - var accountId = 100; + let accountId = 100; try { this.context.startAbilityWithAccount(want, accountId, (error) => { @@ -367,13 +367,13 @@ startAbilityWithAccount(want: Want, accountId: number, options: StartOptions, ca **示例:** ```ts - var want = { + let want = { deviceId: "", bundleName: "com.example.myapplication", abilityName: "EntryAbility" }; - var accountId = 100; - var options = { + let accountId = 100; + let options = { windowMode: 0 }; @@ -453,13 +453,13 @@ startAbilityWithAccount(want: Want, accountId: number, options?: StartOptions): **示例:** ```ts - var want = { + let want = { deviceId: "", bundleName: "com.example.myapplication", abilityName: "EntryAbility" }; - var accountId = 100; - var options = { + let accountId = 100; + let options = { windowMode: 0 }; @@ -518,7 +518,7 @@ startServiceExtensionAbility(want: Want, callback: AsyncCallback\): void; **示例:** ```ts - var want = { + let want = { deviceId: "", bundleName: "com.example.myapplication", abilityName: "EntryAbility" @@ -584,7 +584,7 @@ startServiceExtensionAbility(want: Want): Promise\; **示例:** ```ts - var want = { + let want = { deviceId: "", bundleName: "com.example.myapplication", abilityName: "EntryAbility" @@ -650,12 +650,12 @@ startServiceExtensionAbilityWithAccount(want: Want, accountId: number, callback: **示例:** ```ts - var want = { + let want = { deviceId: "", bundleName: "com.example.myapplication", abilityName: "EntryAbility" }; - var accountId = 100; + let accountId = 100; try { this.context.startServiceExtensionAbilityWithAccount(want, accountId, (error) => { @@ -721,12 +721,12 @@ startServiceExtensionAbilityWithAccount(want: Want, accountId: number): Promise\ **示例:** ```ts - var want = { + let want = { deviceId: "", bundleName: "com.example.myapplication", abilityName: "EntryAbility" }; - var accountId = 100; + let accountId = 100; try { this.context.startServiceExtensionAbilityWithAccount(want, accountId) @@ -780,7 +780,7 @@ stopServiceExtensionAbility(want: Want, callback: AsyncCallback\): void; **示例:** ```ts - var want = { + let want = { deviceId: "", bundleName: "com.example.myapplication", abilityName: "EntryAbility" @@ -843,7 +843,7 @@ stopServiceExtensionAbility(want: Want): Promise\; **示例:** ```ts - var want = { + let want = { deviceId: "", bundleName: "com.example.myapplication", abilityName: "EntryAbility" @@ -905,12 +905,12 @@ stopServiceExtensionAbilityWithAccount(want: Want, accountId: number, callback: **示例:** ```ts - var want = { + let want = { deviceId: "", bundleName: "com.example.myapplication", abilityName: "EntryAbility" }; - var accountId = 100; + let accountId = 100; try { this.context.stopServiceExtensionAbilityWithAccount(want, accountId, (error) => { @@ -973,12 +973,12 @@ stopServiceExtensionAbilityWithAccount(want: Want, accountId: number): Promise\< **示例:** ```ts - var want = { + let want = { deviceId: "", bundleName: "com.example.myapplication", abilityName: "EntryAbility" }; - var accountId = 100; + let accountId = 100; try { this.context.stopServiceExtensionAbilityWithAccount(want, accountId) @@ -1118,17 +1118,17 @@ connectServiceExtensionAbility(want: Want, options: ConnectOptions): number; **示例:** ```ts - var want = { + let want = { bundleName: "com.example.myapp", abilityName: "MyAbility" }; - var options = { + let options = { onConnect(elementName, remote) { console.log('----------- onConnect -----------') }, onDisconnect(elementName) { console.log('----------- onDisconnect -----------') }, onFailed(code) { console.log('----------- onFailed -----------') } } - var connection = null; + let connection = null; try { connection = this.context.connectServiceExtensionAbility(want, options); } catch (paramError) { @@ -1178,19 +1178,19 @@ connectServiceExtensionAbilityWithAccount(want: Want, accountId: number, options **示例:** ```ts - var want = { + let want = { deviceId: "", bundleName: "com.example.myapplication", abilityName: "EntryAbility" }; - var accountId = 100; - var options = { + let accountId = 100; + let options = { onConnect(elementName, remote) { console.log('----------- onConnect -----------') }, onDisconnect(elementName) { console.log('----------- onDisconnect -----------') }, onFailed(code) { console.log('----------- onFailed -----------') } } - var connection = null; + let connection = null; try { connection = this.context.connectServiceExtensionAbilityWithAccount(want, accountId, options); } catch (paramError) { @@ -1214,7 +1214,7 @@ disconnectServiceExtensionAbility(connection: number, callback:AsyncCallback< | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | -| connection | number | 是 | 在connectAbility中返回的number。 | +| connection | number | 是 | 在connectServiceExtensionAbility中返回的number。 | | callback | AsyncCallback<void> | 否 | 回调函数,返回接口调用是否成功的结果。 | **错误码:** @@ -1232,7 +1232,7 @@ disconnectServiceExtensionAbility(connection: number, callback:AsyncCallback< ```ts // connection为connectServiceExtensionAbility中的返回值 - var connection = 1; + let connection = 1; try { this.context.disconnectServiceExtensionAbility(connection, (error) => { @@ -1266,7 +1266,7 @@ disconnectServiceExtensionAbility(connection: number): Promise<void>; | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | -| connection | number | 是 | 在connectAbility中返回的number。 | +| connection | number | 是 | 在connectServiceExtensionAbility中返回的number。 | **返回值:** @@ -1288,8 +1288,8 @@ disconnectServiceExtensionAbility(connection: number): Promise<void>; **示例:** ```ts - // connection为connectAbility中的返回值 - var connection = 1; + // connection为connectServiceExtensionAbility中的返回值 + let connection = 1; try { this.context.disconnectServiceExtensionAbility(connection) @@ -1355,10 +1355,10 @@ startAbilityByCall(want: Want): Promise<Caller>; 后台启动: ```ts - var caller = undefined; + let caller = undefined; // 后台启动Ability,不配置parameters - var wantBackground = { + let wantBackground = { bundleName: "com.example.myservice", moduleName: "entry", abilityName: "EntryAbility", @@ -1386,10 +1386,10 @@ startAbilityByCall(want: Want): Promise<Caller>; 前台启动: ```ts - var caller = undefined; + let caller = undefined; // 前台启动Ability,将parameters中的"ohos.aafwk.param.callAbilityToForeground"配置为true - var wantForeground = { + let wantForeground = { bundleName: "com.example.myservice", moduleName: "entry", abilityName: "EntryAbility", diff --git a/zh-cn/application-dev/reference/apis/js-apis-inner-application-uiAbilityContext.md b/zh-cn/application-dev/reference/apis/js-apis-inner-application-uiAbilityContext.md index 3795cea282673dc5feada8c9183114809b5d2669..3f0c8ff804d172a393f331f7e88f4db375f5f332 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-inner-application-uiAbilityContext.md +++ b/zh-cn/application-dev/reference/apis/js-apis-inner-application-uiAbilityContext.md @@ -230,7 +230,10 @@ startAbility(want: Want, options?: StartOptions): Promise<void>; startAbilityForResult(want: Want, callback: AsyncCallback<AbilityResult>): void; -启动一个Ability。Ability被启动后,正常情况下可通过调用[terminateSelfWithResult](#uiabilitycontextterminateselfwithresult)接口使之终止并且返回结果给调用者。异常情况下比如杀死Ability会返回异常信息给调用者(callback形式)。 +启动一个Ability。Ability被启动后,有如下情况(callback形式): + - 正常情况下可通过调用[terminateSelfWithResult](#uiabilitycontextterminateselfwithresult)接口使之终止并且返回结果给调用方。 + - 异常情况下比如杀死Ability会返回异常信息给调用方, 异常信息中resultCode为-1。 + - 如果被启动的Ability模式是单实例模式, 不同应用多次调用该接口启动这个Ability,当这个Ability调用[terminateSelfWithResult](#uiabilitycontextterminateselfwithresult)接口使之终止时,只将正常结果返回给最后一个调用方, 其它调用方返回异常信息, 异常信息中resultCode为-1。 使用规则: - 调用方应用位于后台时,使用该接口启动Ability需申请`ohos.permission.START_ABILITIES_FROM_BACKGROUND`权限 @@ -295,7 +298,10 @@ startAbilityForResult(want: Want, callback: AsyncCallback<AbilityResult>): startAbilityForResult(want: Want, options: StartOptions, callback: AsyncCallback<AbilityResult>): void; -启动一个Ability。Ability被启动后,正常情况下可通过调用[terminateSelfWithResult](#uiabilitycontextterminateselfwithresult)接口使之终止并且返回结果给调用者。异常情况下比如杀死Ability会返回异常信息给调用者(callback形式)。 +启动一个Ability。Ability被启动后,有如下情况(callback形式): + - 正常情况下可通过调用[terminateSelfWithResult](#uiabilitycontextterminateselfwithresult)接口使之终止并且返回结果给调用方。 + - 异常情况下比如杀死Ability会返回异常信息给调用方, 异常信息中resultCode为-1。 + - 如果被启动的Ability模式是单实例模式, 不同应用多次调用该接口启动这个Ability,当这个Ability调用[terminateSelfWithResult](#uiabilitycontextterminateselfwithresult)接口使之终止时,只将正常结果返回给最后一个调用方, 其它调用方返回异常信息, 异常信息中resultCode为-1。 使用规则: - 调用方应用位于后台时,使用该接口启动Ability需申请`ohos.permission.START_ABILITIES_FROM_BACKGROUND`权限 @@ -365,7 +371,10 @@ startAbilityForResult(want: Want, options: StartOptions, callback: AsyncCallback startAbilityForResult(want: Want, options?: StartOptions): Promise<AbilityResult>; -启动一个Ability。Ability被启动后,正常情况下可通过调用[terminateSelfWithResult](#uiabilitycontextterminateselfwithresult)接口使之终止并且返回结果给调用者。异常情况下比如杀死Ability会返回异常信息给调用者(promise形式)。 +启动一个Ability。Ability被启动后,有如下情况(promise形式): + - 正常情况下可通过调用[terminateSelfWithResult](#uiabilitycontextterminateselfwithresult)接口使之终止并且返回结果给调用方。 + - 异常情况下比如杀死Ability会返回异常信息给调用方, 异常信息中resultCode为-1。 + - 如果被启动的Ability模式是单实例模式, 不同应用多次调用该接口启动这个Ability,当这个Ability调用[terminateSelfWithResult](#uiabilitycontextterminateselfwithresult)接口使之终止时,只将正常结果返回给最后一个调用方, 其它调用方返回异常信息, 异常信息中resultCode为-1。 使用规则: - 调用方应用位于后台时,使用该接口启动Ability需申请`ohos.permission.START_ABILITIES_FROM_BACKGROUND`权限 @@ -1584,8 +1593,6 @@ startAbilityByCall(want: Want): Promise<Caller>; **系统能力**:SystemCapability.Ability.AbilityRuntime.Core -**系统API**: 此接口为系统接口,三方应用不支持调用。 - **参数:** | 参数名 | 类型 | 必填 | 说明 | @@ -2123,3 +2130,105 @@ isTerminating(): boolean; let isTerminating = this.context.isTerminating(); console.log('ability state :' + isTerminating); ``` + +## UIAbilityContext.requestDialogService + +requestDialogService(want: Want, result: AsyncCallback<dialogRequest.RequestResult>): void; + +启动一个支持模态弹框的ServiceExtensionAbility。ServiceExtensionAbility被启动后,应用弹出模态弹框,通过调用[setRequestResult](js-apis-app-ability-dialogRequest.md#requestcallbacksetrequestresult)接口返回结果给调用者。 + +使用规则: + - 调用方应用位于后台时,使用该接口启动Ability需申请`ohos.permission.START_ABILITIES_FROM_BACKGROUND`权限。 + - 跨应用场景下,目标Ability的visible属性若配置为false,调用方应用需申请`ohos.permission.START_INVISIBLE_ABILITY`权限。 + - 组件启动规则详见:[组件启动规则(Stage模型)](../../application-models/component-startup-rules.md)。 + +**系统能力**:SystemCapability.Ability.AbilityRuntime.Core + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| -------- | -------- | -------- | -------- | +| want |[Want](js-apis-application-want.md) | 是 | 启动ServiceExtensionAbility的want信息。 | +| result | AsyncCallback<[dialogRequest.RequestResult](js-apis-app-ability-dialogRequest.md)> | 是 | 执行结果回调函数。 | + +**示例:** + + ```ts + import dialogRequest from '@ohos.app.ability.dialogRequest'; + + let want = { + deviceId: "", + bundleName: "com.example.myapplication", + abilityName: "AuthAccountServiceExtension" + }; + + try { + this.context.requestDialogService(want, (error, result) => { + if (error && error.code) { + // 处理业务逻辑错误 + console.log('requestDialogService failed, error.code: ' + JSON.stringify(error.code) + + ' error.message: ' + JSON.stringify(error.message)); + return; + } + // 执行正常业务 + console.log("requestDialogService succeed, result = " + JSON.stringify(result)); + }); + } catch (paramError) { + // 处理入参错误异常 + console.log('requestDialogService failed, error.code: ' + JSON.stringify(paramError.code) + + ' error.message: ' + JSON.stringify(paramError.message)); + } + ``` + + ## UIAbilityContext.requestDialogService + +requestDialogService(want: Want): Promise<dialogRequest.RequestResult>; + +启动一个支持模态弹框的ServiceExtensionAbility。ServiceExtensionAbility被启动后,应用弹出模态弹框,通过调用[setRequestResult](js-apis-app-ability-dialogRequest.md#requestcallbacksetrequestresult)接口返回结果给调用者(promise形式)。 + +使用规则: + - 调用方应用位于后台时,使用该接口启动Ability需申请`ohos.permission.START_ABILITIES_FROM_BACKGROUND`权限。 + - 跨应用场景下,目标Ability的visible属性若配置为false,调用方应用需申请`ohos.permission.START_INVISIBLE_ABILITY`权限。 + - 组件启动规则详见:[组件启动规则(Stage模型)](../../application-models/component-startup-rules.md)。 + +**系统能力**:SystemCapability.Ability.AbilityRuntime.Core + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| -------- | -------- | -------- | -------- | +| want | [Want](js-apis-application-want.md) | 是 | 启动ServiceExtensionAbility的want信息。 | + + +**返回值:** + +| 类型 | 说明 | +| -------- | -------- | +| Promise<[dialogRequest.RequestResult](js-apis-app-ability-dialogRequest.md)> | Promise形式返回执行结果。 + +**示例:** + + ```ts +import dialogRequest from '@ohos.app.ability.dialogRequest'; + +let want = { + bundleName: "com.example.myapplication", + abilityName: "AuthAccountServiceExtension" +}; + +try { + this.context.requestDialogService(want) + .then((result) => { + // 执行正常业务 + console.log("requestDialogService succeed, result = " + JSON.stringify(result)); + }) + .catch((error) => { + // 处理业务逻辑错误 + console.log('requestDialogService failed, error= ' + JSON.stringify(error)); + }); +} catch (paramError) { + // 处理入参错误异常 + console.log('requestDialogService failed, error.code: ' + JSON.stringify(paramError.code) + + ' error.message: ' + JSON.stringify(paramError.message)); +} + ``` diff --git a/zh-cn/application-dev/reference/apis/js-apis-inner-application-windowExtensionContext.md b/zh-cn/application-dev/reference/apis/js-apis-inner-application-windowExtensionContext.md new file mode 100644 index 0000000000000000000000000000000000000000..78e9566b0e4effc0f54e7c727b7963f89fab10fa --- /dev/null +++ b/zh-cn/application-dev/reference/apis/js-apis-inner-application-windowExtensionContext.md @@ -0,0 +1,123 @@ +# WindowExtensionContext + +WindowExtensionContext模块是WindowExtensionAbility的上下文环境,继承自[ExtensionContext](js-apis-inner-application-extensionContext.md)。 + +WindowExtensionContext模块提供[WindowExtensionAbility](js-apis-application-windowExtensionAbility.md)具有的能力,包括启动Ability。 + +> **说明:** +> +> - 本模块首批接口从API version 9开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 +> +> - 本模块接口为系统接口。 +> +> - 本模块接口仅可在Stage模型下使用。 + +## 使用说明 + +在使用WindowExtensionContext的功能前,需要通过WindowExtensionAbility子类实例获取。 + +```ts + import WindowExtensionAbility from '@ohos.application.WindowExtensionAbility'; + + let context = undefined; + class WindowExtAbility extends WindowExtensionAbility { + onConnect() { + context = this.context; // 获取WindowExtensionContext + } + } +``` + +## WindowExtensionContext.startAbility + +startAbility(want: Want, options: StartOptions, callback: AsyncCallback<void>): void + +启动Ability,使用callback异步回调。 + +**系统能力**:SystemCapability.WindowManager.WindowManager.Core + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| -------- | -------- | -------- | -------- | +| want | [Want](js-apis-application-want.md) | 是 | 启动Ability的want信息。 | +| options | [StartOptions](js-apis-app-ability-startOptions.md) | 是 | 启动Ability所携带的参数。 | +| callback | AsyncCallback<void> | 是 | callback形式返回启动结果。 | + +**示例:** + + ```ts + var want = { + bundleName: "com.example.myapplication", + abilityName: "MainAbility" + }; + var options = { + windowMode: 102 + }; + + try { + this.context.startAbility(want, options, (error) => { + if (error.code) { + // 处理业务逻辑错误 + console.log('startAbility failed, error.code: ' + JSON.stringify(error.code) + + ' error.message: ' + JSON.stringify(error.message)); + return; + } + // 执行正常业务 + console.log('startAbility succeed'); + }); + } catch (paramError) { + // 处理入参错误异常 + console.error('error.code: ' + JSON.stringify(paramError.code) + + ' error.message: ' + JSON.stringify(paramError.message)); + } + ``` + +## WindowExtensionContext.startAbility + +startAbility(want: Want, options?: StartOptions): Promise\ + +启动Ability,使用Promise异步回调。 + +**系统能力**:SystemCapability.WindowManager.WindowManager.Core + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| -------- | -------- | -------- | -------- | +| want | [Want](js-apis-application-want.md) | 是 | Want类型参数,传入需要启动的ability的信息,如Ability名称,Bundle名称等。 | +| options | [StartOptions](js-apis-app-ability-startOptions.md) | 否 | 启动Ability所携带的参数。 | + +**返回值:** + +| 类型 | 说明 | +| -------- | -------- | +| Promise<void> | 无返回结果的Promise对象。 | + +**示例:** + + ```ts + var want = { + bundleName: "com.example.myapp", + abilityName: "MainAbility" + }; + var options = { + windowMode: 102, + }; + + try { + this.context.startAbility(want, options) + .then((data) => { + // 执行正常业务 + console.log('startAbility succeed'); + }) + .catch((error) => { + // 处理业务逻辑错误 + console.log('startAbility failed, error.code: ' + JSON.stringify(error.code) + + ' error.message: ' + JSON.stringify(error.message)); + }); + } catch (paramError) { + // 处理入参错误异常 + console.error('error.code: ' + JSON.stringify(paramError.code) + + ' error.message: ' + JSON.stringify(paramError.message)); + } + ``` \ No newline at end of file diff --git a/zh-cn/application-dev/reference/apis/js-apis-inner-wantAgent-triggerInfo.md b/zh-cn/application-dev/reference/apis/js-apis-inner-wantAgent-triggerInfo.md index 8c0cbdd5ebb961644623f580f009407607935488..2feb49eca2b637434e9ed21bb79fcf4c1b64ea71 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-inner-wantAgent-triggerInfo.md +++ b/zh-cn/application-dev/reference/apis/js-apis-inner-wantAgent-triggerInfo.md @@ -1,6 +1,6 @@ # TriggerInfo -作为[trigger](js-apis-app-ability-wantAgent.md#wantagenttrigger)的入参定义触发WantAgent所需要的的信息。 +作为[trigger](js-apis-app-ability-wantAgent.md#wantagenttrigger)的入参定义触发WantAgent所需要的信息。 **系统能力**:以下各项对应的系统能力均为SystemCapability.Ability.AbilityRuntime.Core diff --git a/zh-cn/application-dev/reference/apis/js-apis-inner-wantAgent-wantAgentInfo.md b/zh-cn/application-dev/reference/apis/js-apis-inner-wantAgent-wantAgentInfo.md index 3f0d49e87c3a5b80e9ccbfa002caab0de4ce0e9e..89ce97b7c59ca5a281ce86f3c729a05ad02a07be 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-inner-wantAgent-wantAgentInfo.md +++ b/zh-cn/application-dev/reference/apis/js-apis-inner-wantAgent-wantAgentInfo.md @@ -7,7 +7,7 @@ | 名称 | 类型 | 必填 | 说明 | | -------------- | ------------------------------- | ---- | ---------------------- | | wants | Array\ | 是 | 将被执行的动作列表。 | -| operationType | wantAgent.OperationType | 是 | 动作类型。 | +| operationType | [wantAgent.OperationType](js-apis-app-ability-wantAgent.md#operationtype) | 是 | 动作类型。 | | requestCode | number | 是 | 使用者定义的一个私有值。 | | wantAgentFlags | Array<[wantAgent.WantAgentFlags](js-apis-app-ability-wantAgent.md#wantagentflags)> | 否 | 动作执行属性。 | | extraInfo | {[key: string]: any} | 否 | 额外数据。 | diff --git a/zh-cn/application-dev/reference/apis/js-apis-inputmethod-InputMethodCommon.md b/zh-cn/application-dev/reference/apis/js-apis-inputmethod-InputMethodCommon.md new file mode 100644 index 0000000000000000000000000000000000000000..325d2f7aca6ddf2f093409faa8ac96e6c9bf84fd --- /dev/null +++ b/zh-cn/application-dev/reference/apis/js-apis-inputmethod-InputMethodCommon.md @@ -0,0 +1,41 @@ +# InputMethodCommon + +> **说明:** +> 本模块首批接口从API version 10 开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 + +输入法框架接口定义的公共属性信息。 + +## Direction + +光标移动方向类型枚举。 + + **系统能力:** SystemCapability.MiscServices.InputMethodFramework + +| 名称 | 值 | 说明 | +| ------------ | ---- | ---------- | +| CURSOR_UP | 1 | 光标上移。 | +| CURSOR_DOWN | 2 | 光标下移。 | +| CURSOR_LEFT | 3 | 光标左移。 | +| CURSOR_RIGHT | 4 | 光标右移。 | + +## Range + +描述选中文本的范围。 + + **系统能力:** SystemCapability.MiscServices.InputMethodFramework + +| 名称 | 类型 | 可读 | 可写 | 说明 | +| ----- | ------ | ---- | ---- | ---------------------------------- | +| start | number | 是 | 是 | 选中文本的首字符在编辑框的索引值。 | +| end | number | 是 | 是 | 选中文本的末字符在编辑框的索引值。 | + +## Movement + +描述进行选中文本动作时光标移动的方向。 + + **系统能力:** SystemCapability.MiscServices.InputMethodFramework + +| 名称 | 类型 | 可读 | 可写 | 说明 | +| --------- | ----------------------- | ---- | ---- | ---------------------------------- | +| direction | [Direction](#direction) | 是 | 是 | 进行选中文本动作时光标移动的方向。 | + diff --git a/zh-cn/application-dev/reference/apis/js-apis-inputmethod-extension-ability.md b/zh-cn/application-dev/reference/apis/js-apis-inputmethod-extension-ability.md index 527d1a60df24371594e5f5bf01fbecb3c48f856a..df38bad2078cc61c642a4999236d2c83cab7201e 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-inputmethod-extension-ability.md +++ b/zh-cn/application-dev/reference/apis/js-apis-inputmethod-extension-ability.md @@ -1,4 +1,4 @@ -# @ohos.inputmethodextensionability (InputMethodExtensionAbility) +# @ohos.InputMethodExtensionAbility (InputMethodExtensionAbility) 开发者可通过继承本模块开发自己的输入法应用并管理输入法应用生命周期。 @@ -9,7 +9,7 @@ ## 导入模块 ```js -import InputMethodExtensionAbility from '@ohos.inputmethodextensionability'; +import InputMethodExtensionAbility from '@ohos.InputMethodExtensionAbility'; ``` ## 属性 @@ -60,4 +60,4 @@ class InputMethodExt extends InputMethodExtensionAbility { console.log('onDestroy'); } } -``` \ No newline at end of file +``` diff --git a/zh-cn/application-dev/reference/apis/js-apis-inputmethod-extension-context.md b/zh-cn/application-dev/reference/apis/js-apis-inputmethod-extension-context.md index f3338dc2403789a8c53128c3760a151eba22949a..1633733d83c6688037a4614a2613a47543e03f94 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-inputmethod-extension-context.md +++ b/zh-cn/application-dev/reference/apis/js-apis-inputmethod-extension-context.md @@ -1,4 +1,4 @@ -# @ohos.inputmethodextensioncontext (InputMethodExtensionContext) +# @ohos.InputMethodExtensionContext (InputMethodExtensionContext) InputMethodExtensionContext模块是InputMethodExtensionAbility的上下文环境,继承自ExtensionContext。 @@ -11,7 +11,7 @@ InputMethodExtensionContext模块提供InputMethodExtensionAbility具有的能 ## 导入模块 ``` -import InputMethodExtensionContext from '@ohos.inputmethodextensioncontext'; +import InputMethodExtensionContext from '@ohos.InputMethodExtensionContext'; ``` ## 使用说明 @@ -19,7 +19,7 @@ import InputMethodExtensionContext from '@ohos.inputmethodextensioncontext'; 在使用InputMethodExtensionContext的功能前,需要通过InputMethodExtensionAbility子类实例获取。 ```js -import InputMethodExtensionAbility from '@ohos.inputmethodextensionability'; +import InputMethodExtensionAbility from '@ohos.InputMethodExtensionAbility'; class EntryAbility extends InputMethodExtensionAbility { onCreate() { let context = this.context; @@ -66,9 +66,9 @@ destroy(): Promise { - console.log('success:' + JSON.stringify(data)); +this.context.destroy().then(() => { + console.log('Succeed in destoring context.'); }).catch((error) => { - console.log('failed:' + JSON.stringify(error)); + console.log('Failed to destory context: ' + JSON.stringify(error)); }); -``` \ No newline at end of file +``` diff --git a/zh-cn/application-dev/reference/apis/js-apis-inputmethod-subtype.md b/zh-cn/application-dev/reference/apis/js-apis-inputmethod-subtype.md index 86e674a0ea5d2d2175b333399f8966b9099daa1b..d3c7dc85ce834a9f260efcae4a569666fc59cac5 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-inputmethod-subtype.md +++ b/zh-cn/application-dev/reference/apis/js-apis-inputmethod-subtype.md @@ -1,4 +1,4 @@ -# @ohos.inputmethodsubtype (输入法子类型) +# @ohos.InputMethodSubtype (输入法子类型) 本模块提供对输入法子类型的属性管理。输入法应用子类型的含义,如:输入法的中文版、英文版、大写模式、小写模式等都属于输入法的子类型。 @@ -9,7 +9,7 @@ ## 导入模块 ``` -import inputMethodEngine from '@ohos.inputMethodSubtype'; +import InputMethodSubtype from '@ohos.InputMethodSubtype'; ``` ## 属性 @@ -28,4 +28,4 @@ import inputMethodEngine from '@ohos.inputMethodSubtype'; | language | string | 是 | 否 | 是 | 输入法子类型的语言。 | | icon | string | 是 | 否 | 否 | 输入法子类型的图标。 | | iconId | number | 是 | 否 | 否 | 输入法子类型的图标id。 | -| extra | object | 是 | 是 | 是 | 输入法子类型的其他信息。 | \ No newline at end of file +| extra | object | 是 | 是 | 是 | 输入法子类型的其他信息。 | diff --git a/zh-cn/application-dev/reference/apis/js-apis-inputmethod.md b/zh-cn/application-dev/reference/apis/js-apis-inputmethod.md index b90aad2e46f49e5a6fa0ff418ead83dff70d5151..454e533f1ee846fd3105c038cf69b98719578d7a 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-inputmethod.md +++ b/zh-cn/application-dev/reference/apis/js-apis-inputmethod.md @@ -1,4 +1,4 @@ -# @ohos.inputmethod (输入法框架) +# @ohos.inputMethod (输入法框架) 本模块提供对输入法框架的管理,包括隐藏输入法、查询已安装的输入法列表和显示输入法选择对话框。 @@ -10,7 +10,7 @@ ## 导入模块 ```js -import inputMethod from '@ohos.inputmethod'; +import inputMethod from '@ohos.inputMethod'; ``` ## 常量8+ @@ -839,6 +839,92 @@ inputMethodController.stopInput().then((result) => { }) ``` +### on('selectByRange')10+ + +on(type: 'selectByRange', callback: Callback<Range>): void + +订阅输入法应用按范围选中文本事件。使用callback异步回调。 + +**系统能力:** SystemCapability.MiscServices.InputMethodFramework + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| -------- | ------------------------------------------------------------ | ---- | ------------------------------------------------------------ | +| type | string | 是 | 设置监听类型。
-type为‘selectByRange’时表示订阅输入法应用按范围选中文本事件监听。 | +| callback | Callback<[Range](./js-apis-inputmethod-InputMethodCommon.md#range)> | 是 | 回调函数,返回需要选中的文本的范围。
开发者需要在回调函数中根据传入的范围选中编辑框中相应文本。 | + +**示例:** + +```js +inputMethodController.on('selectByRange', (range) => { + console.info('Succeeded in subscribing selectByRange: start: ' + range.start + " , end: " + range.end); +}); +``` + +### off('selectByRange')10+ + +off(type: 'selectByRange'): void + +取消订阅输入法应用按范围选中文本事件。 + +**系统能力:** SystemCapability.MiscServices.InputMethodFramework + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| ------ | ------ | ---- | ------------------------------------------------------------ | +| type | string | 是 | 设置监听类型。
-type为‘selectByRange’时表示取消订阅输入法应用按范围选中文本事件监听。 | + +**示例:** + +```js +inputMethodController.off('selectByRange'); +``` + +### on('selectByMovement')10+ + +on(type: 'selectByMovement', callback: Callback<Range>): void + +订阅输入法应用按光标动作选中文本事件。使用callback异步回调。 + +**系统能力:** SystemCapability.MiscServices.InputMethodFramework + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| -------- | ------------------------------------------------------------ | ---- | ------------------------------------------------------------ | +| type | string | 是 | 设置监听类型。
-type为‘selectByMovement’时表示订阅输入法应用按光标移动动作选中文本事件监听。 | +| callback | Callback<[Movement](./js-apis-inputmethod-InputMethodCommon.md#movement)> | 是 | 回调函数,返回需要选中的文本的范围。
开发者需要在回调函数中根据传入的光标动作选中编辑框中相应文本。 | + +**示例:** + +```js +inputMethodController.on('selectByMovement', (movement) => { + console.info('Succeeded in subscribing selectByMovement: direction: ' + movement.direction); +}); +``` + +### off('selectByMovement')10+ + +off(type: 'selectByMovement'): void + +取消订阅输入法应用按光标动作选中文本事件。 + +**系统能力:** SystemCapability.MiscServices.InputMethodFramework + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| ------ | ------ | ---- | ------------------------------------------------------------ | +| type | string | 是 | 设置监听类型。
-type为‘selectByMovement’时表示取消订阅输入法应用按范围选中文本事件监听。 | + +**示例:** + +```js +inputMethodController.off('selectByMovement'); +``` + ## InputMethodSetting8+ 下列API示例中都需使用[getSetting](#inputmethodgetsetting9)获取到InputMethodSetting实例,再通过此实例调用对应方法。 diff --git a/zh-cn/application-dev/reference/apis/js-apis-inputmethodengine.md b/zh-cn/application-dev/reference/apis/js-apis-inputmethodengine.md index 4e3d0d703b9bf0a10af12938b76ac25d3f70a089..551562a61c610c300fc0c789ebd47b16a5f6dff9 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-inputmethodengine.md +++ b/zh-cn/application-dev/reference/apis/js-apis-inputmethodengine.md @@ -1,4 +1,4 @@ -# @ohos.inputmethodengine (输入法服务) +# @ohos.inputMethodEngine (输入法服务) 本模块的作用是拉通输入法应用和其他三方应用(联系人、微信等),功能包括:将三方应用与输入法应用的服务进行绑定、三方应用通过输入法应用进行文本输入、三方应用对输入法应用进行显示键盘请求和隐藏键盘请求、三方应用对输入法应用当前状态进行监听等。 @@ -9,7 +9,7 @@ ## 导入模块 ``` -import inputMethodEngine from '@ohos.inputmethodengine'; +import inputMethodEngine from '@ohos.inputMethodEngine'; ``` ## 常量 @@ -1495,6 +1495,241 @@ try { } ``` +### selectByRange10+ + +selectByRange(range: Range, callback: AsyncCallback<void>): void + +根据索引范围选中文本。使用callback异步回调。 + +**系统能力:** SystemCapability.MiscServices.InputMethodFramework + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| -------- | --------------------------------------------------------- | ---- | ------------------------------------------------------------ | +| range | [Range](./js-apis-inputmethod-InputMethodCommon.md#range) | 是 | 选中文本的范围。 | +| callback | AsyncCallback<void> | 是 | 回调函数。当成功发送选中事件后,err为undefined,否则为错误对象。 | + +**错误码:** + +以下错误码的详细介绍请参见[输入法框架错误码](../errorcodes/errorcode-inputmethod-framework.md)。 + +| 错误码ID | 错误信息 | +| -------- | -------------------------- | +| 401 | parameter error. | +| 12800003 | Input method client error. | + +**示例:** + +```js +try { + inputClient.selectByRange({start: 0, end: 1}, (err) => { + if (err !== undefined) { + console.error('Failed to selectByRange: ${err.message}'); + return; + } + console.info('Succeeded in selecting by range.'); + }); +} catch (err) { + console.error('Failed to selectByRange: ${err.message}'); +} +``` + +### selectByRange10+ + +selectByRange(range: Range): Promise<void> + +根据索引范围选中文本。使用promise异步回调。 + +**系统能力:** SystemCapability.MiscServices.InputMethodFramework + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| ------ | --------------------------------------------------------- | ---- | ---------------- | +| range | [Range](./js-apis-inputmethod-InputMethodCommon.md#range) | 是 | 选中文本的范围。 | + +**返回值:** + +| 类型 | 说明 | +| ------------------- | ------------------------- | +| Promise<void> | 无返回结果的Promise对象。 | + +**错误码:** + +以下错误码的详细介绍请参见[输入法框架错误码](../errorcodes/errorcode-inputmethod-framework.md)。 + +| 错误码ID | 错误信息 | +| -------- | -------------------------- | +| 401 | parameter error. | +| 12800003 | Input method client error. | + +**示例:** + +```js +try { + inputClient.selectByRange({start: 0, end:1}).then(() => { + console.log('Succeeded in selecting by range.'); + }).catch((err) => { + console.error('Failed to selectByRange: ${err.message}'); + }); +} catch (err) { + console.log('Failed to selectByRange: ${err.message}'); +} +``` + +### selectByMovement10+ + +selectByMovement(movement: Movement, callback: AsyncCallback<void>): void + +根据光标移动方向选中文本。使用callback异步回调。 + +**系统能力:** SystemCapability.MiscServices.InputMethodFramework + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| -------- | ------------------------------------------------------------ | ---- | ------------------------------------------------------------ | +| movement | [Movement](./js-apis-inputmethod-InputMethodCommon.md#movement) | 是 | 选中时光标移动的方向。 | +| callback | AsyncCallback<void> | 是 | 回调函数。当成功发送选中事件后,err为undefined,否则为错误对象。 | + +**错误码:** + +以下错误码的详细介绍请参见[输入法框架错误码](../errorcodes/errorcode-inputmethod-framework.md)。 + +| 错误码ID | 错误信息 | +| -------- | -------------------------- | +| 401 | parameter error. | +| 12800003 | Input method client error. | + +**示例:** + +```js +try { + inputClient.selectByMovement({direction: 1}, (err) => { + if (err !== undefined) { + console.error('Failed to selectByMovement: ${err.message}'); + return; + } + console.info('Succeeded in selecting by movement.'); + }); +} catch (err) { + console.error('Failed to selectByMovement: ${err.message}'); +} +``` + +### selectByMovement10+ + +selectByMovement(range: Range): Promise<void> + +根据索引范围选中文本。使用promise异步回调。 + +**系统能力:** SystemCapability.MiscServices.InputMethodFramework + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| -------- | ------------------------------------------------------------ | ---- | ---------------------- | +| movement | [Movement](./js-apis-inputmethod-InputMethodCommon.md#movement) | 是 | 选中时光标移动的方向。 | + +**返回值:** + +| 类型 | 说明 | +| ------------------- | ------------------------- | +| Promise<void> | 无返回结果的Promise对象。 | + +**错误码:** + +以下错误码的详细介绍请参见[输入法框架错误码](../errorcodes/errorcode-inputmethod-framework.md)。 + +| 错误码ID | 错误信息 | +| -------- | -------------------------- | +| 401 | parameter error. | +| 12800003 | Input method client error. | + +**示例:** + +```js +try { + inputClient.selectByMovement({direction: 1}).then(() => { + console.log('Succeeded in selecting by movement.'); + }).catch((err) => { + console.error('Failed to selectByMovement: ${err.message}'); + }); +} catch (err) { + console.log('Failed to selectByMovement: ${err.message}'); +} +``` + +### getTextIndexAtCursor10+ + +getTextIndexAtCursor(callback: AsyncCallback<number>): void + +获取光标所在处的文本索引。使用callback异步回调。 + +**系统能力:** SystemCapability.MiscServices.InputMethodFramework + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| -------- | --------------------------- | ---- | ------------------------------------------------------------ | +| callback | AsyncCallback<number> | 是 | 回调函数。当文本索引获取成功,err为undefined,否则为错误对象。 | + +**错误码:** + +以下错误码的详细介绍请参见[输入法框架错误码](../errorcodes/errorcode-inputmethod-framework.md)。 + +| 错误码ID | 错误信息 | +| -------- | ------------------------------ | +| 401 | parameter error. | +| 12800003 | Input method client error. | +| 12800006 | Input method controller error. | + +**示例:** + +```js +inputClient.getTextIndexAtCursor((err, index) => { + if (err !== undefined) { + console.error('Failed to getTextIndexAtCursor: ${err.message}'); + return; + } + console.info('Succeeded in getTextIndexAtCursor: ' + index); +}); +``` + +### getTextIndexAtCursor10+ + +getTextIndexAtCursor(): Promise<number> + +获取光标所在处的文本索引。使用promise异步回调。 + +**系统能力:** SystemCapability.MiscServices.InputMethodFramework + +**返回值:** + +| 类型 | 说明 | +| --------------------- | --------------------------------------- | +| Promise<number> | Promise对象,返回光标所在处的文本索引。 | + +**错误码:** + +以下错误码的详细介绍请参见[输入法框架错误码](../errorcodes/errorcode-inputmethod-framework.md)。 + +| 错误码ID | 错误信息 | +| -------- | ------------------------------ | +| 12800003 | Input method client error. | +| 12800006 | Input method controller error. | + +**示例:** + +```js +inputClient.getTextIndexAtCursor().then((index) => { + console.info('Succeeded in getTextIndexAtCursor: ' + index); +}).catch((err) => { + console.error('Failed to getTextIndexAtCursor: ${err.message}'); +}); +``` + ## EditorAttribute 编辑框属性值。 @@ -2014,4 +2249,4 @@ textInputClient.getEditorAttribute().then((editorAttribute) => { }).catch((err) => { console.error('Failed to getEditorAttribute: ' + JSON.stringify(err)); }); -``` \ No newline at end of file +``` diff --git a/zh-cn/application-dev/reference/apis/js-apis-media.md b/zh-cn/application-dev/reference/apis/js-apis-media.md index 8f4c2dece5dcff8a8a068a0dba8568b9d122cef9..bae88f7b46887eec29700970fa3f71c89bc94326 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-media.md +++ b/zh-cn/application-dev/reference/apis/js-apis-media.md @@ -364,7 +364,7 @@ Audio/Video播放demo可参考:[AVPlayer开发指导](../../media/avplayer-pla | loop9+ | boolean | 是 | 是 | 视频循环播放属性,默认'false',设置为'true'表示循环播放,动态属性。
只允许在**prepared**/**playing**/**paused**/**completed**状态下设置。 | | videoScaleType9+ | [VideoScaleType](#videoscaletype9) | 是 | 是 | 视频缩放模式,默认VIDEO_SCALE_TYPE_FIT_CROP,动态属性。
只允许在**prepared**/**playing**/**paused**/**completed**状态下设置。 | | audioInterruptMode9+ | [audio.InterruptMode](js-apis-audio.md#interruptmode9) | 是 | 是 | 音频焦点模型,默认SHARE_MODE,动态属性。
只允许在**prepared**/**playing**/**paused**/**completed**状态下设置。 | -| audioRendererInfo10+ | [audio.AudioRendererInfo](js-apis-audio.md#audiorendererinfo8) | 是 | 是 | 设置音频渲染信息。
只允许在**initialized**状态下设置 | +| audioRendererInfo10+ | [audio.AudioRendererInfo](js-apis-audio.md#audiorendererinfo8) | 是 | 是 | 设置音频渲染信息,默认值contentType为CONTENT_TYPE_MUSIC,streamUsage为STREAM_USAGE_MEDIA。
只允许在**initialized**状态下设置 | | state9+ | [AVPlayerState](#avplayerstate9) | 是 | 否 | 音视频播放的状态,全状态有效,可查询参数。 | | currentTime9+ | number | 是 | 否 | 视频的当前播放位置,单位为毫秒(ms),可查询参数。
返回为(-1)表示无效值,**prepared**/**playing**/**paused**/**completed**状态下有效。 | | duration9+ | number | 是 | 否 | 视频时长,单位为毫秒(ms),可查询参数。
返回为(-1)表示无效值,**prepared**/**playing**/**paused**/**completed**状态下有效。
直播场景默认返回(-1)。 | 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 4571be9d7ba6db66e689b23c4fc96d01b8722ee6..f77b0245cac97512dbd2a9a227a29faa4f2ae890 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-medialibrary.md +++ b/zh-cn/application-dev/reference/apis/js-apis-medialibrary.md @@ -118,14 +118,14 @@ media.getFileAssets(imagesFetchOp, (error, fetchFileResult) => { console.error('Failed to get first object: ' + err); return; } - console.log('fileAsset.displayName ' + ': ' + fileAsset.displayName); + console.info('fileAsset.displayName ' + ': ' + fileAsset.displayName); for (let i = 1; i < count; i++) { fetchFileResult.getNextObject((err, fileAsset) => { if (fileAsset == undefined) { console.error('Failed to get next object: ' + err); return; } - console.log('fileAsset.displayName ' + i + ': ' + fileAsset.displayName); + console.info('fileAsset.displayName ' + i + ': ' + fileAsset.displayName); }) } }); @@ -174,10 +174,10 @@ media.getFileAssets(imagesFetchOp).then(function(fetchFileResult) { } console.info('Get fetchFileResult success, count: ' + count); fetchFileResult.getFirstObject().then(function(fileAsset) { - console.log('fileAsset.displayName ' + ': ' + fileAsset.displayName); + console.info('fileAsset.displayName ' + ': ' + fileAsset.displayName); for (let i = 1; i < count; i++) { fetchFileResult.getNextObject().then(function(fileAsset) { - console.log('fileAsset.displayName ' + ': ' + fileAsset.displayName); + console.info('fileAsset.displayName ' + ': ' + fileAsset.displayName); }).catch(function(err) { console.error('Failed to get next object: ' + err); }) @@ -264,9 +264,9 @@ async function example() { const path = await media.getPublicDirectory(DIR_IMAGE); media.createAsset(mediaType, 'imageCallBack.jpg', path + 'myPicture/', (err, fileAsset) => { if (fileAsset != undefined) { - console.info('createAsset successfully, message = ' + err); + console.info('createAsset successfully, message'); } else { - console.info('createAsset failed, message = ' + err); + console.error('createAsset failed, message = ' + err); } }); } @@ -307,7 +307,7 @@ async function example() { media.createAsset(mediaType, 'imagePromise.jpg', path + 'myPicture/').then((fileAsset) => { console.info('createAsset successfully, message = ' + JSON.stringify(fileAsset)); }).catch((err) => { - console.info('createAsset failed, message = ' + err); + console.error('createAsset failed, message = ' + err); }); } ``` @@ -354,7 +354,7 @@ async function example() { media.deleteAsset(asset.uri).then(() => { console.info("deleteAsset successfully"); }).catch((err) => { - console.info("deleteAsset failed with error:"+ err); + console.error("deleteAsset failed with error:"+ err); }); } ``` @@ -397,7 +397,7 @@ async function example() { if (err != undefined) { console.info("deleteAsset successfully"); } else { - console.info("deleteAsset failed with error:"+ err); + console.error("deleteAsset failed with error:"+ err); } }); } @@ -426,7 +426,7 @@ media.getPublicDirectory(DIR_CAMERA, (err, dicResult) => { if (dicResult == 'Camera/') { console.info('mediaLibraryTest : getPublicDirectory passed'); } else { - console.info('mediaLibraryTest : getPublicDirectory failed'); + console.error('mediaLibraryTest : getPublicDirectory failed'); } }); ``` @@ -460,7 +460,7 @@ async function example() { if (dicResult == 'Camera/') { console.info('MediaLibraryTest : getPublicDirectory'); } else { - console.info('MediaLibraryTest : getPublicDirectory failed'); + console.error('MediaLibraryTest : getPublicDirectory failed'); } } ``` @@ -495,7 +495,7 @@ media.getAlbums(AlbumNoArgsfetchOp, (err, albumList) => { console.info('album.albumName = ' + album.albumName); console.info('album.count = ' + album.count); } else { - console.info('getAlbum fail, message = ' + err); + console.error('getAlbum fail, message = ' + err); } }) ``` @@ -532,7 +532,7 @@ let AlbumNoArgsfetchOp = { media.getAlbums(AlbumNoArgsfetchOp).then(function(albumList){ console.info("getAlbums successfully:"+ JSON.stringify(albumList)); }).catch(function(err){ - console.info("getAlbums failed with error:"+ err); + console.error("getAlbums failed with error: " + err); }); ``` @@ -607,10 +607,10 @@ let option = { }; mediaLibrary.getMediaLibrary().storeMediaAsset(option, (err, value) => { if (err) { - console.log("An error occurred when storing media resources."); + console.error("An error occurred when storing media resources."); return; } - console.log("Media resources stored. "); + console.info("Media resources stored. "); // Obtain the URI that stores media resources. }); ``` @@ -647,10 +647,10 @@ let option = { relativePath : "Pictures/" }; mediaLibrary.getMediaLibrary().storeMediaAsset(option).then((value) => { - console.log("Media resources stored."); + console.info("Media resources stored."); // Obtain the URI that stores media resources. }).catch((err) => { - console.log("An error occurred when storing media resources."); + console.error("An error occurred when storing media resources."); }); ``` @@ -689,10 +689,10 @@ let images = [ let index = 1; mediaLibrary.getMediaLibrary().startImagePreview(images, index, (err) => { if (err) { - console.log("An error occurred when previewing the images."); + console.error("An error occurred when previewing the images."); return; } - console.log("Succeeded in previewing the images."); + console.info("Succeeded in previewing the images."); }); ``` @@ -729,10 +729,10 @@ let images = [ */ mediaLibrary.getMediaLibrary().startImagePreview(images, (err) => { if (err) { - console.log("An error occurred when previewing the images."); + console.error("An error occurred when previewing the images."); return; } - console.log("Succeeded in previewing the images."); + console.info("Succeeded in previewing the images."); }); ``` @@ -775,9 +775,9 @@ let images = [ */ let index = 1; mediaLibrary.getMediaLibrary().startImagePreview(images, index).then(() => { - console.log("Succeeded in previewing the images."); + console.info("Succeeded in previewing the images."); }).catch((err) => { - console.log("An error occurred when previewing the images."); + console.error("An error occurred when previewing the images."); }); ``` @@ -808,10 +808,10 @@ let option : mediaLibrary.MediaSelectOption = { }; mediaLibrary.getMediaLibrary().startMediaSelect(option, (err, value) => { if (err) { - console.log("An error occurred when selecting media resources."); + console.error("An error occurred when selecting media resources."); return; } - console.log("Media resources selected."); + console.info("Media resources selected."); // Obtain the media selection value. }); ``` @@ -847,10 +847,10 @@ let option : mediaLibrary.MediaSelectOption = { count : 2 }; mediaLibrary.getMediaLibrary().startMediaSelect(option).then((value) => { - console.log("Media resources selected."); + console.info("Media resources selected."); // Obtain the media selection value. }).catch((err) => { - console.log("An error occurred when selecting media resources."); + console.error("An error occurred when selecting media resources."); }); ``` @@ -885,7 +885,7 @@ async function example() { console.info('get distributed info is undefined!') } }).catch((err) => { - console.info("get distributed info failed with error:" + err); + console.error("get distributed info failed with error:" + err); }); } ``` @@ -918,7 +918,7 @@ async function example() { console.info('get distributed info ' + devicesInfo[i].deviceName + devicesInfo[i].networkId); } } else { - console.info('get distributed fail, message = ' + err) + console.error('get distributed fail, message = ' + err) } }) } @@ -956,7 +956,7 @@ async function example() { console.info('get distributed info is undefined!') } }).catch((err) => { - console.info("get distributed info failed with error:" + err); + console.error("get distributed info failed with error: " + err); }); } ``` @@ -989,7 +989,7 @@ async function example() { console.info('get distributed info ' + devicesInfo[i].deviceName + devicesInfo[i].networkId); } } else { - console.info('get distributed fail, message = ' + err) + console.error('get distributed fail, message = ' + err) } }) } @@ -1019,7 +1019,7 @@ async function example() { | parent8+ | number | 是 | 否 | 父目录id | | size | number | 是 | 否 | 文件大小(单位:字节) | | dateAdded | number | 是 | 否 | 添加日期(添加文件时间到1970年1月1日的秒数值) | -| dateModified | number | 是 | 否 | 修改日期(修改文件时间到1970年1月1日的秒数值) | +| dateModified | number | 是 | 否 | 修改日期(修改文件时间到1970年1月1日的秒数值,修改文件名不会改变此值,当文件内容发生修改时才会更新)| | dateTaken | number | 是 | 否 | 拍摄日期(文件拍照时间到1970年1月1日的秒数值) | | artist8+ | string | 是 | 否 | 作者 | | audioAlbum8+ | string | 是 | 否 | 专辑 | @@ -1101,7 +1101,7 @@ async function example() { asset.isDirectory().then(function(isDirectory){ console.info("isDirectory result:"+ isDirectory); }).catch(function(err){ - console.info("isDirectory failed with error:"+ err); + console.error("isDirectory failed with error: " + err); }); } ``` @@ -1209,7 +1209,7 @@ async function example() { if(fd > 0){ asset.close(fd); }else{ - console.info('File Open Failed!' + openError); + console.error('File Open Failed!' + openError); } }); } @@ -1252,7 +1252,7 @@ async function example() { console.info('File fd!' + fd); }) .catch((err) => { - console.info('File err!' + err); + console.error('File err!' + err); }); } ``` @@ -1292,15 +1292,15 @@ async function example() { console.info('File fd!' + fd); asset.close(fd, (closeErr) => { if (closeErr != undefined) { - console.info('mediaLibraryTest : close : FAIL ' + closeErr); - console.info('mediaLibraryTest : ASSET_CALLBACK : FAIL'); + console.error('mediaLibraryTest : close : FAIL ' + closeErr); + console.error('mediaLibraryTest : ASSET_CALLBACK : FAIL'); } else { console.info("=======asset.close success====>"); } }); }) .catch((err) => { - console.info('File err!' + err); + console.error('File err!' + err); }); } ``` @@ -1345,8 +1345,8 @@ async function example() { console.info('File fd!' + fd); asset.close(fd).then((closeErr) => { if (closeErr != undefined) { - console.info('mediaLibraryTest : close : FAIL ' + closeErr); - console.info('mediaLibraryTest : ASSET_CALLBACK : FAIL'); + console.error('mediaLibraryTest : close : FAIL ' + closeErr); + console.error('mediaLibraryTest : ASSET_CALLBACK : FAIL'); } else { console.info("=======asset.close success====>"); @@ -1354,7 +1354,7 @@ async function example() { }); }) .catch((err) => { - console.info('File err!' + err); + console.error('File err!' + err); }); } ``` @@ -1475,7 +1475,7 @@ async function example() { console.info('mediaLibraryTest : getThumbnail Successful '+ pixelmap); }) .catch((err) => { - console.info('mediaLibraryTest : getThumbnail fail'+ err); + console.error('mediaLibraryTest : getThumbnail fail, err: ' + err); }); } ``` @@ -1556,7 +1556,7 @@ async function example() { asset.favorite(true).then(function() { console.info("favorite successfully"); }).catch(function(err){ - console.info("favorite failed with error:"+ err); + console.error("favorite failed with error: " + err); }); } ``` @@ -1634,7 +1634,7 @@ async function example() { asset.isFavorite().then(function(isFavorite){ console.info("isFavorite result:"+ isFavorite); }).catch(function(err){ - console.info("isFavorite failed with error:"+ err); + console.error("isFavorite failed with error: " + err); }); } ``` @@ -1720,7 +1720,7 @@ async function example() { asset.trash(true).then(function() { console.info("trash successfully"); }).catch(function(err){ - console.info("trash failed with error:"+ err); + console.error("trash failed with error: " + err); }); } ``` @@ -1875,7 +1875,6 @@ async function example() { console.info('mediaLibraryTest : isAfterLast:' + result); console.info('mediaLibraryTest : isAfterLast end'); fetchFileResult.close(); - } } } @@ -1938,7 +1937,7 @@ async function example() { console.error('Failed '); return; } - console.log('fileAsset.displayName : ' + fileAsset.displayName); + console.info('fileAsset.displayName : ' + fileAsset.displayName); }) } ``` @@ -1973,7 +1972,7 @@ async function example() { fetchFileResult.getFirstObject().then(function(fileAsset){ console.info("getFirstObject successfully:"+ JSON.stringify(fileAsset)); }).catch(function(err){ - console.info("getFirstObject failed with error:"+ err); + console.error("getFirstObject failed with error: " + err); }); } ``` @@ -2080,7 +2079,7 @@ async function example() { console.error('Failed '); return; } - console.log('fileAsset.displayName : ' + fileAsset.displayName); + console.info('fileAsset.displayName : ' + fileAsset.displayName); }) } ``` @@ -2149,7 +2148,7 @@ async function example() { console.error('Failed '); return; } - console.log('fileAsset.displayName : ' + fileAsset.displayName); + console.info('fileAsset.displayName : ' + fileAsset.displayName); }) } ``` @@ -2188,9 +2187,9 @@ async function example() { }; let fetchFileResult = await media.getFileAssets(getImageOp); fetchFileResult.getPositionObject(1) .then(function (fileAsset){ - console.log('fileAsset.displayName : ' + fileAsset.displayName); + console.info('fileAsset.displayName : ' + fileAsset.displayName); }).catch(function (err) { - console.info("getFileAssets failed with error:" + err); + console.error("getFileAssets failed with error: " + err); }); } ``` @@ -2228,7 +2227,7 @@ async function example() { return; } for (let i = 0; i < fetchFileResult.getCount(); i++) { - console.log('fileAsset.displayName : ' + fileAsset[i].displayName); + console.info('fileAsset.displayName : ' + fileAsset[i].displayName); } }) } @@ -2315,7 +2314,7 @@ async function example() { console.error('Failed '); return; } - console.log('Modify successful.'); + console.info('Modify successful.'); }) } ``` @@ -2350,7 +2349,7 @@ async function example() { album.commitModify().then(function() { console.info("commitModify successfully"); }).catch(function(err){ - console.info("commitModify failed with error:"+ err); + console.error("commitModify failed with error: " + err); }); } ``` @@ -2430,9 +2429,9 @@ async function example() { const albumList = await media.getAlbums(AlbumNoArgsfetchOp); const album = albumList[0]; album.getFileAssets(fileNoArgsfetchOp).then(function(albumFetchFileResult){ - console.info("getFileAssets successfully:"+ JSON.stringify(albumFetchFileResult)); + console.info("getFileAssets successfully: " + JSON.stringify(albumFetchFileResult)); }).catch(function(err){ - console.info("getFileAssets failed with error:"+ err); + console.error("getFileAssets failed with error: " + err); }); } ``` @@ -2486,7 +2485,7 @@ async function example() { | MEDIA_TYPE | "media_type" | 媒体类型 | | SIZE | "size" | 文件大小(单位:字节) | | DATE_ADDED | "date_added" | 添加日期(添加文件时间到1970年1月1日的秒数值) | -| DATE_MODIFIED | "date_modified" | 修改日期(修改文件时间到1970年1月1日的秒数值) | +| DATE_MODIFIED | "date_modified" | 修改日期(修改文件时间到1970年1月1日的秒数值,修改文件名不会改变此值,当文件内容发生修改时才会更新) | | DATE_TAKEN | "date_taken" | 拍摄日期(文件拍照时间到1970年1月1日的秒数值) | | TITLE | "title" | 文件标题 | | ARTIST | "artist" | 作者 | 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 6c957557b4dfe3b1fcb84676baae58962d2a6eaa..955a1c086f9f76512b5280c668f9baed1a1570f6 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 @@ -3,7 +3,6 @@ 网络连接管理提供管理网络一些基础能力,包括获取默认激活的数据网络、获取所有激活数据网络列表、开启关闭飞行模式、获取网络能力信息等功能。 > **说明:** -> > 本模块首批接口从API version 8开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 ## 导入模块 @@ -11,6 +10,40 @@ ```js import connection from '@ohos.net.connection' ``` +## connection.createNetConnection + +createNetConnection(netSpecifier?: NetSpecifier, timeout?: number): NetConnection + +返回一个NetConnection对象,netSpecifier指定关注的网络的各项特征,timeout是超时时间(单位是毫秒),netSpecifier是timeout的必要条件,两者都没有则表示关注默认网络。 + +**系统能力**:SystemCapability.Communication.NetManager.Core + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| ------------ | ----------------------------- | ---- | ------------------------------------------------------------ | +| netSpecifier | [NetSpecifier](#netspecifier) | 否 | 指定网络的各项特征,不指定则关注默认网络。 | +| timeout | number | 否 | 获取netSpecifier指定的网络时的超时时间,仅netSpecifier存在时生效。 | + +**返回值:** + +| 类型 | 说明 | +| ------------------------------- | -------------------- | +| [NetConnection](#netconnection) | 所关注的网络的句柄。 | + +**示例:** + +```js +// 关注默认网络 +let netConnection = connection.createNetConnection() + +// 关注蜂窝网络 +let netConnectionCellular = connection.createNetConnection({ + netCapabilities: { + bearerTypes: [connection.NetBearType.BEARER_CELLULAR] + } +}) +``` ## connection.getDefaultNet @@ -26,14 +59,22 @@ getDefaultNet(callback: AsyncCallback\): void | 参数名 | 类型 | 必填 | 说明 | | -------- | --------------------------------------- | ---- | ---------- | -| callback | AsyncCallback\<[NetHandle](#nethandle)> | 是 | 回调函数。 | +| callback | AsyncCallback\<[NetHandle](#nethandle)> | 是 | 回调函数。当成功获取默认激活的数据网络时,err为undefined,data为默认激活的数据网络;否则为错误对象 | + +**错误码:** + +| 错误码ID | 错误信息 | +| ------- | ----------------------------- | +| 201 | Permission denied. | +| 2100002 | Operation failed. Cannot connect to service.| +| 2100003 | System internal error. | **示例:** ```js -connection.getDefaultNet(function (error, netHandle) { +connection.getDefaultNet(function (error, data) { console.log(JSON.stringify(error)) - console.log(JSON.stringify(netHandle)) + console.log(JSON.stringify(data)) }) ``` @@ -53,85 +94,348 @@ getDefaultNet(): Promise\ | --------------------------------- | ------------------------------------- | | Promise\<[NetHandle](#nethandle)> | 以Promise形式返回默认激活的数据网络。 | +**错误码:** + +| 错误码ID | 错误信息 | +| ------- | ----------------------------- | +| 201 | Permission denied. | +| 2100002 | Operation failed. Cannot connect to service.| +| 2100003 | System internal error. | + **示例:** ```js -connection.getDefaultNet().then(function (netHandle) { - console.log(JSON.stringify(netHandle)) +connection.getDefaultNet().then(function (data) { + console.log(JSON.stringify(data)) }) ``` -## connection.getDefaultNetSync9+ +## connection.getGlobalHttpProxy10+ -getDefaultNetSync(): NetHandle; +getGlobalHttpProxy(callback: AsyncCallback\): void -使用同步方法获取默认激活的数据网络。可以使用[getNetCapabilities](#connectiongetnetcapabilities)去获取网络的类型、拥有的能力等信息。 +获取网络的全局代理配置信息,使用callback方式作为异步方法。 -**需要权限**:ohos.permission.GET_NETWORK_INFO +**系统能力**:SystemCapability.Communication.NetManager.Core + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| --------- | ------------------------------------------------------------ | ---- | ---------------- | +| callback | AsyncCallback\<[HttpProxy](#httpproxy)> | 是 | 回调函数。当成功获取网络的全局代理配置信息时,err为undefined,data为网络的全局代理配置信息;否则为错误对象| + +**错误码:** + +| 错误码ID | 错误信息 | +| ------- | ----------------------------- | +| 2100002 | Operation failed. Cannot connect to service.| +| 2100003 | System internal error. | + +**示例:** + +```js +connection.getGlobalHttpProxy((error,data) => { + console.info(JSON.stringify(error)); + console.info(JSON.stringify(data)); +}) +``` + +## connection.getGlobalHttpProxy10+ + +getGlobalHttpProxy(): Promise\; + +获取网络的全局代理配置信息,使用Promise方式作为异步方法。 **系统能力**:SystemCapability.Communication.NetManager.Core **返回值:** -| 类型 | 说明 | -| --------- | ---------------------------------- | -| NetHandle | 以同步方式返回默认激活的数据网络。 | +| 类型 | 说明 | +| --------------------------------- | ------------------------------------- | +| Promise\<[HttpProxy](#httpproxy)> | 以Promise形式返回网络的全局代理配置信息。 | + +**错误码:** + +| 错误码ID | 错误信息 | +| ------- | ----------------------------- | +| 2100002 | Operation failed. Cannot connect to service.| +| 2100003 | System internal error. | **示例:** ```js -let netHandle = connection.getDefaultNetSync(); +connection.getGlobalHttpProxy().then((data) => { + console.info(JSON.stringify(data)); +}).catch(error => { + console.info(JSON.stringify(error)); +}) ``` -## connection.hasDefaultNet +## connection.setGlobalHttpProxy10+ -hasDefaultNet(callback: AsyncCallback\): void +setGlobalHttpProxy(httpProxy: HttpProxy, callback: AsyncCallback\): void -检查默认数据网络是否被激活,使用callback方式作为异步方法。如果有默认数据网路,可以使用[getDefaultNet](#connectiongetdefaultnet)去获取。 +设置网络全局Http代理配置信息,使用callback方式作为异步方法。 -**需要权限**:ohos.permission.GET_NETWORK_INFO +**需要权限**:ohos.permission.CONNECTIVITY_INTERNAL **系统能力**:SystemCapability.Communication.NetManager.Core **参数:** -| 参数名 | 类型 | 必填 | 说明 | -| -------- | ----------------------- | ---- | -------------------------------------- | -| callback | AsyncCallback\ | 是 | 回调函数,默认数据网络被激活返回true。 | +| 参数名 | 类型 | 必填 | 说明 | +| --------- | ------------------------------------------------------------ | ---- | ---------------- | +| httpProxy | [HttpProxy](#httpproxy) | 是 | 网络全局Http代理配置信息 | +| callback | AsyncCallback\ | 是 | 回调函数。当成功设置网络全局Http代理配置信息时,err为undefined,否则为错误对象| + +**错误码:** + +| 错误码ID | 错误信息 | +| ------- | ----------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 2100001 | Invalid parameter value. | +| 2100002 | Operation failed. Cannot connect to service.| +| 2100003 | System internal error. | **示例:** ```js -connection.hasDefaultNet(function (error, has) { - console.log(JSON.stringify(error)) - console.log('has: ' + has) +let ExclusionList="" +let array = ExclusionList.split(','); +let httpProxy = { + host: "host", + port: 1, + parsedExclusionList: array +} +connection.setGlobalHttpProxy(httpProxy, (error, data) => { + console.info(JSON.stringify(error)); + console.info(JSON.stringify(data)); +}); +``` + +## connection.setGlobalHttpProxy10+ + +setGlobalHttpProxy(httpProxy: HttpProxy): Promise\; + +设置网络全局Http代理配置信息,使用Promise方式作为异步方法。 + +**需要权限**:ohos.permission.CONNECTIVITY_INTERNAL + +**系统能力**:SystemCapability.Communication.NetManager.Core + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| --------- | ------------------------------------------------------------ | ---- | ---------------- | +| httpProxy | [HttpProxy](#httpproxy) | 是 | 网络全局Http代理配置信息。 | + +**返回值:** + +| 类型 | 说明 | +| ------------------------------------------- | ----------------------------- | +| Promise\ | 无返回值的Promise对象。 | + +**错误码:** + +| 错误码ID | 错误信息 | +| ------- | ----------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 2100001 | Invalid parameter value. | +| 2100002 | Operation failed. Cannot connect to service.| +| 2100003 | System internal error. | + +**示例:** + +```js +let ExclusionList="" +let array = ExclusionList.split(','); +let httpProxy = { + host: "host", + port: 1, + parsedExclusionList: array +} +connection.setGlobalHttpProxy(httpProxy).then((error, data) => { + console.info(JSON.stringify(data)); +}).catch(error=>{ + console.info(JSON.stringify(error)); }) ``` -## connection.hasDefaultNet +## connection.getAppNet9+ -hasDefaultNet(): Promise\ +getAppNet(callback: AsyncCallback\): void -检查默认数据网络是否被激活,使用Promise方式作为异步方法。如果有默认数据网路,可以使用[getDefaultNet](#connectiongetdefaultnet)去获取。 +获取App绑定的网络信息,使用callback方式作为异步方法。 -**需要权限**:ohos.permission.GET_NETWORK_INFO +**系统能力**:SystemCapability.Communication.NetManager.Core + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| --------- | ------------------------------------------------------------ | ---- | ---------------- | +| callback | AsyncCallback\<[NetHandle](#nethandle)> | 是 | 回调函数。当成功获取App绑定的网络信息时,err为undefined,data为获取到App绑定的网络信息;否则为错误对象| + +**错误码:** + +| 错误码ID | 错误信息 | +| ------- | ----------------------------- | +| 2100002 | Operation failed. Cannot connect to service.| +| 2100003 | System internal error. | + +**示例:** + +```js +connection.getAppNet(function(error, data)) { + console.log(JSON.stringify(error)) + console.log(JSON.stringify(data)) +} +``` + +## connection.getAppNet9+ + +getAppNet(): Promise\; + +获取App绑定的网络信息,使用Promise方式作为异步方法。 **系统能力**:SystemCapability.Communication.NetManager.Core **返回值:** -| 类型 | 说明 | -| ----------------- | ----------------------------------------------- | -| Promise\ | 以Promise形式返回,默认数据网络被激活返回true。 | +| 类型 | 说明 | +| --------------------------------- | ------------------------------------- | +| Promise\<[NetHandle](#nethandle)> | 以Promise形式返回App绑定的网络信息。 | + +**错误码:** + +| 错误码ID | 错误信息 | +| ------- | ----------------------------- | +| 2100002 | Operation failed. Cannot connect to service.| +| 2100003 | System internal error. | **示例:** ```js -connection.hasDefaultNet().then(function (has) { - console.log('has: ' + has) +connection.getAppNet().then((data) => { + console.info(JSON.stringify(data)); +}).catch(error => { + console.info(JSON.stringify(error)); }) ``` +## connection.SetAppNet9+ + +setAppNet(netHandle: NetHandle, callback: AsyncCallback\): void + +绑定App到指定网络,绑定后的App只能通过指定网络访问外网,使用callback方式作为异步方法。 + +**需要权限**:ohos.permission.INTERNET + +**系统能力**:SystemCapability.Communication.NetManager.Core + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| --------- | ------------------------------------------------------------ | ---- | ---------------- | +| netHandle | [NetHandle](#nethandle) | 是 | 数据网络的句柄。 | +| callback | AsyncCallback\ | 是 | 回调函数。当成功绑定App到指定网络时,err为undefined,否则为错误对象| + +**错误码:** + +| 错误码ID | 错误信息 | +| ------- | ----------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 2100001 | Invalid parameter value. | +| 2100002 | Operation failed. Cannot connect to service.| +| 2100003 | System internal error. | + +**示例:** + +```js +connection.getDefaultNet(function (error, netHandle) { + connection.setAppNet(netHandle, (error, data) => { + console.log(JSON.stringify(error)) + console.log(JSON.stringify(data)) + }); +}) +``` + +## connection.SetAppNet9+ + +setAppNet(netHandle: NetHandle): Promise\; + +绑定App到指定网络,绑定后的App只能通过指定网络访问外网,使用Promise方式作为异步方法。 + +**需要权限**:ohos.permission.INTERNET + +**系统能力**:SystemCapability.Communication.NetManager.Core + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| --------- | ------------------------------------------------------------ | ---- | ---------------- | +| netHandle | [NetHandle](#nethandle) | 是 | 数据网络的句柄。 | + +**返回值:** + +| 类型 | 说明 | +| ------------------------------------------- | ----------------------------- | +| Promise\ | 无返回值的Promise对象。 | + +**错误码:** + +| 错误码ID | 错误信息 | +| ------- | ----------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 2100001 | Invalid parameter value. | +| 2100002 | Operation failed. Cannot connect to service.| +| 2100003 | System internal error. | + +**示例:** + +```js +connection.getDefaultNet().then(function (netHandle) { + connection.setAppNet(netHandle).then((error, data) => { + console.log(JSON.stringify(data)) + }).catch(error => { + console.log(JSON.stringify(error)) + }) +}) +``` + +## connection.getDefaultNetSync9+ + +getDefaultNetSync(): NetHandle; + +使用同步方法获取默认激活的数据网络。可以使用[getNetCapabilities](#connectiongetnetcapabilities)去获取网络的类型、拥有的能力等信息。 + +**需要权限**:ohos.permission.GET_NETWORK_INFO + +**系统能力**:SystemCapability.Communication.NetManager.Core + +**返回值:** + +| 类型 | 说明 | +| --------- | ---------------------------------- | +| NetHandle | 以同步方式返回默认激活的数据网络。 | + +**错误码:** + +| 错误码ID | 错误信息 | +| ------- | ----------------------------- | +| 201 | Permission denied. | +| 2100002 | Operation failed. Cannot connect to service.| +| 2100003 | System internal error. | + +**示例:** + +```js +let netHandle = connection.getDefaultNetSync(); +``` + ## connection.getAllNets getAllNets(callback: AsyncCallback<Array<NetHandle>>): void @@ -146,14 +450,22 @@ getAllNets(callback: AsyncCallback<Array<NetHandle>>): void | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | -| callback | AsyncCallback<Array<[NetHandle](#nethandle)>> | 是 | 回调函数。 | +| callback | AsyncCallback<Array<[NetHandle](#nethandle)>> | 是 | 回调函数。当成功获取所有处于连接状态的网络列表时,err为undefined,data为激活的数据网络列表;否则为错误对象 | + +**错误码:** + +| 错误码ID | 错误信息 | +| ------- | ----------------------------- | +| 201 | Permission denied. | +| 2100002 | Operation failed. Cannot connect to service.| +| 2100003 | System internal error. | **示例:** ```js -connection.getAllNets(function (error, nets) { +connection.getAllNets(function (error, data) { console.log(JSON.stringify(error)) - console.log(JSON.stringify(nets)) + console.log(JSON.stringify(data)) }); ``` @@ -173,11 +485,19 @@ getAllNets(): Promise<Array<NetHandle>> | -------- | -------- | | Promise<Array<[NetHandle](#nethandle)>> | 以Promise形式返回激活的数据网络列表。 | +**错误码:** + +| 错误码ID | 错误信息 | +| ------- | ----------------------------- | +| 201 | Permission denied. | +| 2100002 | Operation failed. Cannot connect to service.| +| 2100003 | System internal error. | + **示例:** ```js -connection.getAllNets().then(function (nets) { - console.log(JSON.stringify(nets)) +connection.getAllNets().then(function (data) { + console.log(JSON.stringify(data)) }); ``` @@ -196,15 +516,25 @@ getConnectionProperties(netHandle: NetHandle, callback: AsyncCallback\ | 是 | 回调函数。 | +| callback | AsyncCallback\<[ConnectionProperties](#connectionproperties)> | 是 | 回调函数。当成功获取netHandle对应的网络的连接信息时,err为undefined,data为获取的网络连接信息;否则为错误对象| + +**错误码:** + +| 错误码ID | 错误信息 | +| ------- | ----------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 2100001 | Invalid parameter value. | +| 2100002 | Operation failed. Cannot connect to service.| +| 2100003 | System internal error. | **示例:** ```js connection.getDefaultNet().then(function (netHandle) { - connection.getConnectionProperties(netHandle, function (error, info) { + connection.getConnectionProperties(netHandle, function (error, data) { console.log(JSON.stringify(error)) - console.log(JSON.stringify(info)) + console.log(JSON.stringify(data)) }) }) ``` @@ -231,12 +561,22 @@ getConnectionProperties(netHandle: NetHandle): Promise\ | ------------------------------------------------------- | --------------------------------- | | Promise\<[ConnectionProperties](#connectionproperties)> | 以Promise形式返回网络的连接信息。 | +**错误码:** + +| 错误码ID | 错误信息 | +| ------- | ----------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 2100001 | Invalid parameter value. | +| 2100002 | Operation failed. Cannot connect to service.| +| 2100003 | System internal error. | + **示例:** ```js connection.getDefaultNet().then(function (netHandle) { - connection.getConnectionProperties(netHandle).then(function (info) { - console.log(JSON.stringify(info)) + connection.getConnectionProperties(netHandle).then(function (data) { + console.log(JSON.stringify(data)) }) }) ``` @@ -256,15 +596,25 @@ getNetCapabilities(netHandle: NetHandle, callback: AsyncCallback\ | 是 | 回调函数。 | +| callback | AsyncCallback\<[NetCapabilities](#netcapabilities)> | 是 | 回调函数。当成功获取netHandle对应的网络的能力信息时,err为undefined,data为获取到的网络能力信息;否则为错误对象 | + +**错误码:** + +| 错误码ID | 错误信息 | +| ------- | ----------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 2100001 | Invalid parameter value. | +| 2100002 | Operation failed. Cannot connect to service.| +| 2100003 | System internal error. | **示例:** ```js connection.getDefaultNet().then(function (netHandle) { - connection.getNetCapabilities(netHandle, function (error, info) { + connection.getNetCapabilities(netHandle, function (error, data) { console.log(JSON.stringify(error)) - console.log(JSON.stringify(info)) + console.log(JSON.stringify(data)) }) }) ``` @@ -291,12 +641,22 @@ getNetCapabilities(netHandle: NetHandle): Promise\ | --------------------------------------------- | --------------------------------- | | Promise\<[NetCapabilities](#netcapabilities)> | 以Promise形式返回网络的能力信息。 | +**错误码:** + +| 错误码ID | 错误信息 | +| ------- | ----------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 2100001 | Invalid parameter value. | +| 2100002 | Operation failed. Cannot connect to service.| +| 2100003 | System internal error. | + **示例:** ```js connection.getDefaultNet().then(function (netHandle) { - connection.getNetCapabilities(netHandle).then(function (info) { - console.log(JSON.stringify(info)) + connection.getNetCapabilities(netHandle).then(function (data) { + console.log(JSON.stringify(data)) }) }) ``` @@ -315,14 +675,22 @@ isDefaultNetMetered(callback: AsyncCallback\): void | 参数名 | 类型 | 必填 | 说明 | | -------- | ----------------------- | ---- | -------------------------------------- | -| callback | AsyncCallback\ | 是 | 回调函数,当前网络上的数据流量使用被计量返回true。 | +| callback | AsyncCallback\ | 是 | 回调函数。当前网络上的数据流量使用被计量返回true。 | + +**错误码:** + +| 错误码ID | 错误信息 | +| ------- | ----------------------------- | +| 201 | Permission denied. | +| 2100002 | Operation failed. Cannot connect to service.| +| 2100003 | System internal error. | **示例:** ```js -connection.isDefaultNetMetered(function (error, has) { +connection.isDefaultNetMetered(function (error, data) { console.log(JSON.stringify(error)) - console.log('has: ' + has) + console.log('data: ' + data) }) ``` @@ -342,11 +710,208 @@ isDefaultNetMetered(): Promise\ | ----------------- | ----------------------------------------------- | | Promise\ | 以Promise形式返回,当前网络上的数据流量使用被计量true。 | +**错误码:** + +| 错误码ID | 错误信息 | +| ------- | ----------------------------- | +| 201 | Permission denied. | +| 2100002 | Operation failed. Cannot connect to service.| +| 2100003 | System internal error. | + +**示例:** + +```js +connection.isDefaultNetMetered().then(function (data) { + console.log('data: ' + data) +}) +``` + +## connection.hasDefaultNet + +hasDefaultNet(callback: AsyncCallback\): void + +检查默认数据网络是否被激活,使用callback方式作为异步方法。如果有默认数据网路,可以使用[getDefaultNet](#connectiongetdefaultnet)去获取。 + +**需要权限**:ohos.permission.GET_NETWORK_INFO + +**系统能力**:SystemCapability.Communication.NetManager.Core + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| -------- | ----------------------- | ---- | -------------------------------------- | +| callback | AsyncCallback\ | 是 | 回调函数。默认数据网络被激活返回true。 | + +**错误码:** + +| 错误码ID | 错误信息 | +| ------- | ----------------------------- | +| 201 | Permission denied. | +| 2100002 | Operation failed. Cannot connect to service.| +| 2100003 | System internal error. | + +**示例:** + +```js +connection.hasDefaultNet(function (error, data) { + console.log(JSON.stringify(error)) + console.log('data: ' + data) +}) +``` + +## connection.hasDefaultNet + +hasDefaultNet(): Promise\ + +检查默认数据网络是否被激活,使用Promise方式作为异步方法。如果有默认数据网路,可以使用[getDefaultNet](#connectiongetdefaultnet)去获取。 + +**需要权限**:ohos.permission.GET_NETWORK_INFO + +**系统能力**:SystemCapability.Communication.NetManager.Core + +**返回值:** + +| 类型 | 说明 | +| ----------------- | ----------------------------------------------- | +| Promise\ | 以Promise形式返回,默认数据网络被激活返回true。 | + +**错误码:** + +| 错误码ID | 错误信息 | +| ------- | ----------------------------- | +| 201 | Permission denied. | +| 2100002 | Operation failed. Cannot connect to service.| +| 2100003 | System internal error. | + +**示例:** + +```js +connection.hasDefaultNet().then(function (data) { + console.log('data: ' + data) +}) +``` + +## connection.enableAirplaneMode + +enableAirplaneMode(callback: AsyncCallback\): void + +开启飞行模式,使用callback方式作为异步方法。 + +**系统接口**:此接口为系统接口。 + +**系统能力**:SystemCapability.Communication.NetManager.Core + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| -------- | ------------------------------------------------- | ---- | ------------------ | +| callback | AsyncCallback\ | 是 | 回调函数。 | + +**错误码:** + +| 错误码ID | 错误信息 | +| ------- | ----------------------------- | +| 2100002 | Operation failed. Cannot connect to service.| +| 2100003 | System internal error. | + **示例:** ```js -connection.isDefaultNetMetered().then(function (has) { - console.log('has: ' + has) +connection.enableAirplaneMode(function (error) { + console.log(JSON.stringify(error)) +}) +``` + +## connection.enableAirplaneMode + +enableAirplaneMode(): Promise\ + +开启飞行模式,使用Promise方式作为异步方法。 + +**系统接口**:此接口为系统接口。 + +**系统能力**:SystemCapability.Communication.NetManager.Core + +**返回值:** + +| 类型 | 说明 | +| ------------------------------------------- | ----------------------------- | +| Promise\ | 无返回值的Promise对象。 | + +**错误码:** + +| 错误码ID | 错误信息 | +| ------- | ----------------------------- | +| 2100002 | Operation failed. Cannot connect to service.| +| 2100003 | System internal error. | + +**示例:** + +```js +connection.enableAirplaneMode().then(function (error) { + console.log(JSON.stringify(error)) +}) +``` + +## connection.disableAirplaneMode + +disableAirplaneMode(callback: AsyncCallback\): void + +关闭飞行模式,使用callback方式作为异步方法。 + +**系统接口**:此接口为系统接口。 + +**系统能力**:SystemCapability.Communication.NetManager.Core + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| -------- | ------------------------------------------------- | ---- | ------------------ | +| callback | AsyncCallback\ | 是 | 回调函数。当关闭飞行模式成功,err为undefined,否则为错误对象。| + +**错误码:** + +| 错误码ID | 错误信息 | +| ------- | ----------------------------- | +| 2100002 | Operation failed. Cannot connect to service.| +| 2100003 | System internal error. | + +**示例:** + +```js +connection.disableAirplaneMode(function (error) { + console.log(JSON.stringify(error)) +}) +``` + +## connection.disableAirplaneMode + +disableAirplaneMode(): Promise\ + +关闭飞行模式,使用Promise方式作为异步方法。 + +**系统接口**:此接口为系统接口。 + +**系统能力**:SystemCapability.Communication.NetManager.Core + +**返回值:** + +| 类型 | 说明 | +| ------------------------------------------- | ----------------------------- | +| Promise\ | 无返回值的Promise对象。 | + +**错误码:** + +| 错误码ID | 错误信息 | +| ------- | ----------------------------- | +| 2100002 | Operation failed. Cannot connect to service.| +| 2100003 | System internal error. | + +**示例:** + +```js +connection.disableAirplaneMode().then(function (error) { + console.log(JSON.stringify(error)) }) ``` @@ -366,7 +931,17 @@ reportNetConnected(netHandle: NetHandle, callback: AsyncCallback<void>): v | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | | netHandle | [NetHandle](#nethandle) | 是 | 数据网络的句柄,参考[NetHandle](#nethandle)。 | -| callback | AsyncCallback<void> | 是 | 回调函数。 | +| callback | AsyncCallback<void> | 是 | 回调函数。当向网络管理报告网络处于可用状态成功,err为undefined,否则为错误对象。 | + +**错误码:** + +| 错误码ID | 错误信息 | +| ------- | ----------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 2100001 | Invalid parameter value. | +| 2100002 | Operation failed. Cannot connect to service.| +| 2100003 | System internal error. | **示例:** @@ -400,6 +975,16 @@ reportNetConnected(netHandle: NetHandle): Promise<void> | -------- | -------- | | Promise<void> | 无返回值的Promise对象。 | +**错误码:** + +| 错误码ID | 错误信息 | +| ------- | ----------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 2100001 | Invalid parameter value. | +| 2100002 | Operation failed. Cannot connect to service.| +| 2100003 | System internal error. | + **示例:** ```js @@ -426,7 +1011,17 @@ reportNetDisconnected(netHandle: NetHandle, callback: AsyncCallback<void>) | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | | netHandle | [NetHandle](#nethandle) | 是 | 数据网络的句柄,参考[NetHandle](#nethandle)。 | -| callback | AsyncCallback<void> | 是 | 回调函数。 | +| callback | AsyncCallback<void> | 是 | 回调函数。当向网络管理报告网络处于不可用状态成功,err为undefined,否则为错误对象。 | + +**错误码:** + +| 错误码ID | 错误信息 | +| ------- | ----------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 2100001 | Invalid parameter value. | +| 2100002 | Operation failed. Cannot connect to service.| +| 2100003 | System internal error. | **示例:** @@ -460,6 +1055,16 @@ reportNetDisconnected(netHandle: NetHandle): Promise<void> | -------- | -------- | | Promise<void> | 无返回值的Promise对象。 | +**错误码:** + +| 错误码ID | 错误信息 | +| ------- | ----------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 2100001 | Invalid parameter value. | +| 2100002 | Operation failed. Cannot connect to service.| +| 2100003 | System internal error. | + **示例:** ```js @@ -485,15 +1090,25 @@ getAddressesByName(host: string, callback: AsyncCallback\>): | 参数名 | 类型 | 必填 | 说明 | | -------- | ------------------------------------------------- | ---- | ------------------ | | host | string | 是 | 需要解析的主机名。 | -| callback | AsyncCallback\> | 是 | 回调函数。 | +| callback | AsyncCallback\> | 是 | 回调函数。当使用默认网络解析主机名成功获取所有IP地址,err为undefined,data为获取到的所有IP地址;否则为错误对象。| + +**错误码:** + +| 错误码ID | 错误信息 | +| ------- | ----------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 2100001 | Invalid parameter value. | +| 2100002 | Operation failed. Cannot connect to service.| +| 2100003 | System internal error. | **示例:** ```js let host = "xxxx"; -connection.getAddressesByName(host, function (error, addresses) { +connection.getAddressesByName(host, function (error, data) { console.log(JSON.stringify(error)) - console.log(JSON.stringify(addresses)) + console.log(JSON.stringify(data)) }) ``` @@ -519,156 +1134,102 @@ getAddressesByName(host: string): Promise\> | ------------------------------------------- | ----------------------------- | | Promise\> | 以Promise形式返回所有IP地址。 | -**示例:** - -```js -let host = "xxxx"; -connection.getAddressesByName(host).then(function (addresses) { - console.log(JSON.stringify(addresses)) -}) -``` - -## connection.enableAirplaneMode - -enableAirplaneMode(callback: AsyncCallback\): void - -开启飞行模式,使用callback方式作为异步方法。 - -**系统接口**:此接口为系统接口。 - -**系统能力**:SystemCapability.Communication.NetManager.Core - -**参数:** - -| 参数名 | 类型 | 必填 | 说明 | -| -------- | ------------------------------------------------- | ---- | ------------------ | -| callback | AsyncCallback\ | 是 | 回调函数。 | - -**示例:** - -```js -connection.enableAirplaneMode(function (error) { - console.log(JSON.stringify(error)) -}) -``` - -## connection.enableAirplaneMode - -enableAirplaneMode(): Promise\ - -开启飞行模式,使用Promise方式作为异步方法。 - -**系统接口**:此接口为系统接口。 - -**系统能力**:SystemCapability.Communication.NetManager.Core - -**返回值:** - -| 类型 | 说明 | -| ------------------------------------------- | ----------------------------- | -| Promise\ | 无返回值的Promise对象。 | - -**示例:** - -```js -connection.enableAirplaneMode().then(function (error) { - console.log(JSON.stringify(error)) -}) -``` - -## connection.disableAirplaneMode - -disableAirplaneMode(callback: AsyncCallback\): void - -关闭飞行模式,使用callback方式作为异步方法。 - -**系统接口**:此接口为系统接口。 - -**系统能力**:SystemCapability.Communication.NetManager.Core - -**参数:** +**错误码:** -| 参数名 | 类型 | 必填 | 说明 | -| -------- | ------------------------------------------------- | ---- | ------------------ | -| callback | AsyncCallback\ | 是 | 回调函数。 | +| 错误码ID | 错误信息 | +| ------- | ----------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 2100001 | Invalid parameter value. | +| 2100002 | Operation failed. Cannot connect to service.| +| 2100003 | System internal error. | **示例:** ```js -connection.disableAirplaneMode(function (error) { - console.log(JSON.stringify(error)) +let host = "xxxx"; +connection.getAddressesByName(host).then(function (data) { + console.log(JSON.stringify(data)) }) ``` -## connection.disableAirplaneMode +## NetConnection -disableAirplaneMode(): Promise\ +网络连接的句柄。 -关闭飞行模式,使用Promise方式作为异步方法。 +### register -**系统接口**:此接口为系统接口。 +register(callback: AsyncCallback\): void + +订阅指定网络状态变化的通知。 + +**需要权限**:ohos.permission.GET_NETWORK_INFO **系统能力**:SystemCapability.Communication.NetManager.Core -**返回值:** +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| -------- | -------------------- | ---- | ---------- | +| callback | AsyncCallback\ | 是 | 回调函数。当订阅指定网络状态变化的通知成功,err为undefined,否则为错误对象。 | + +**错误码:** + +| 错误码ID | 错误信息 | +| ------- | ----------------------------- | +| 201 | Permission denied. | +| 2100002 | Operation failed. Cannot connect to service.| +| 2100003 | System internal error. | +| 2101008 | The callback is not exists. | +| 2101022 | The number of requests exceeded the maximum. | -| 类型 | 说明 | -| ------------------------------------------- | ----------------------------- | -| Promise\ | 无返回值的Promise对象。 | **示例:** ```js -connection.disableAirplaneMode().then(function (error) { +netConnection.register(function (error) { console.log(JSON.stringify(error)) }) ``` -## connection.createNetConnection +### unregister -createNetConnection(netSpecifier?: NetSpecifier, timeout?: number): NetConnection +unregister(callback: AsyncCallback\): void -返回一个NetConnection对象,netSpecifier指定关注的网络的各项特征,timeout是超时时间(单位是毫秒),netSpecifier是timeout的必要条件,两者都没有则表示关注默认网络。 +取消订阅默认网络状态变化的通知。 **系统能力**:SystemCapability.Communication.NetManager.Core **参数:** -| 参数名 | 类型 | 必填 | 说明 | -| ------------ | ----------------------------- | ---- | ------------------------------------------------------------ | -| netSpecifier | [NetSpecifier](#netspecifier) | 否 | 指定网络的各项特征,不指定则关注默认网络。 | -| timeout | number | 否 | 获取netSpecifier指定的网络时的超时时间,仅netSpecifier存在时生效。 | +| 参数名 | 类型 | 必填 | 说明 | +| -------- | -------------------- | ---- | ---------- | +| callback | AsyncCallback\ | 是 | 回调函数。当取消订阅指定网络状态变化的通知成功,err为undefined,否则为错误对象。 | -**返回值:** +**错误码:** -| 类型 | 说明 | -| ------------------------------- | -------------------- | -| [NetConnection](#netconnection) | 所关注的网络的句柄。 | +| 错误码ID | 错误信息 | +| ------- | ----------------------------- | +| 2100002 | Operation failed. Cannot connect to service.| +| 2100003 | System internal error. | +| 2101007 | The same callback exists. | **示例:** ```js -// 关注默认网络 -let netConnection = connection.createNetConnection() - -// 关注蜂窝网络 -let netConnectionCellular = connection.createNetConnection({ - netCapabilities: { - bearerTypes: [connection.NetBearType.BEARER_CELLULAR] - } +netConnection.unregister(function (error) { + console.log(JSON.stringify(error)) }) ``` -## NetConnection - -网络连接的句柄。 - ### on('netAvailable') on(type: 'netAvailable', callback: Callback\): void 订阅网络可用事件。 +**模型约束**:此接口调用之前需要先调用register接口,使用unregister取消订阅默认网络状态变化的通知。 + **系统能力**:SystemCapability.Communication.NetManager.Core **参数:** @@ -676,21 +1237,37 @@ on(type: 'netAvailable', callback: Callback\): void | 参数名 | 类型 | 必填 | 说明 | | -------- | ---------------------------------- | ---- | ------------------------------------------------------------ | | type | string | 是 | 订阅事件,固定为'netAvailable'。
netAvailable:数据网络可用事件。 | -| callback | Callback\<[NetHandle](#nethandle)> | 是 | 回调函数。 | +| callback | Callback\<[NetHandle](#nethandle)> | 是 | 回调函数,返回数据网络句柄。| **示例:** ```js -netConnection.on('netAvailable', function (data) { +// 创建NetConnection对象 +let netCon = connection.createNetConnection() + +// 先使用register接口注册订阅事件 +netCon.register(function (error) { + console.log(JSON.stringify(error)) +}) + +// 订阅网络可用事件。调用register后,才能接收到此事件通知 +netCon.on('netAvailable', function (data) { console.log(JSON.stringify(data)) }) + +// 使用unregister接口取消订阅 +netCon.unregister(function (error) { + console.log(JSON.stringify(error)) +}) ``` -### on('netCapabilitiesChange') +### on('netBlockStatusChange') -on(type: 'netCapabilitiesChange', callback: Callback<{ netHandle: NetHandle, netCap: NetCapabilities }>): void +on(type: 'netBlockStatusChange', callback: Callback<{ netHandle: NetHandle, blocked: boolean }>): void -订阅网络能力变化事件。 +订阅网络阻塞状态事件,使用callback方式作为异步方法。 + +**模型约束**:此接口调用之前需要先调用register接口,使用unregister取消订阅默认网络状态变化的通知。 **系统能力**:SystemCapability.Communication.NetManager.Core @@ -698,22 +1275,38 @@ on(type: 'netCapabilitiesChange', callback: Callback<{ netHandle: NetHandle, net | 参数名 | 类型 | 必填 | 说明 | | -------- | ------------------------------------------------------------ | ---- | ------------------------------------------------------------ | -| type | string | 是 | 订阅事件,固定为'netCapabilitiesChange'。
netCapabilitiesChange:网络能力变化事件。 | -| callback | Callback<{ netHandle: [NetHandle](#nethandle), netCap: [NetCapabilities](#netcapabilities) }> | 是 | 回调函数。 | +| type | string | 是 | 订阅事件,固定为'netBlockStatusChange'。
netBlockStatusChange:网络阻塞状态事件。 | +| callback | Callback<{ netHandle: [NetHandle](#nethandle), blocked: boolean }> | 是 | 回调函数,返回数据网络句柄(netHandle),及网络堵塞状态(blocked)。| **示例:** ```js -netConnection.on('netCapabilitiesChange', function (data) { +// 创建NetConnection对象 +let netCon = connection.createNetConnection() + +// 先使用register接口注册订阅事件 +netCon.register(function (error) { + console.log(JSON.stringify(error)) +}) + +// 订阅网络阻塞状态事件。调用register后,才能接收到此事件通知 +netCon.on('netBlockStatusChange', function (data) { console.log(JSON.stringify(data)) }) + +// 使用unregister接口取消订阅 +netCon.unregister(function (error) { + console.log(JSON.stringify(error)) +}) ``` -### on('netConnectionPropertiesChange') +### on('netCapabilitiesChange') -on(type: 'netConnectionPropertiesChange', callback: Callback<{ netHandle: NetHandle, connectionProperties: ConnectionProperties }>): void +on(type: 'netCapabilitiesChange', callback: Callback<{ netHandle: NetHandle, netCap: NetCapabilities }>): void -订阅网络连接信息变化事件。 +订阅网络能力变化事件。 + +**模型约束**:此接口调用之前需要先调用register接口,使用unregister取消订阅默认网络状态变化的通知。 **系统能力**:SystemCapability.Communication.NetManager.Core @@ -721,22 +1314,38 @@ on(type: 'netConnectionPropertiesChange', callback: Callback<{ netHandle: NetHan | 参数名 | 类型 | 必填 | 说明 | | -------- | ------------------------------------------------------------ | ---- | ------------------------------------------------------------ | -| type | string | 是 | 订阅事件,固定为'netConnectionPropertiesChange'。
netConnectionPropertiesChange:网络连接信息变化事件。 | -| callback | Callback<{ netHandle: [NetHandle](#nethandle), connectionProperties: [ConnectionProperties](#connectionproperties) }> | 是 | 回调函数。 | +| type | string | 是 | 订阅事件,固定为'netCapabilitiesChange'。
netCapabilitiesChange:网络能力变化事件。 | +| callback | Callback<{ netHandle: [NetHandle](#nethandle), netCap: [NetCapabilities](#netcapabilities) }> | 是 | 回调函数,返回数据网络句柄(netHandle)和网络的能力信息(netCap)。| **示例:** ```js -netConnection.on('netConnectionPropertiesChange', function (data) { +// 创建NetConnection对象 +let netCon = connection.createNetConnection() + +// 先使用register接口注册订阅事件 +netCon.register(function (error) { + console.log(JSON.stringify(error)) +}) + +// 订阅网络能力变化事件。调用register后,才能接收到此事件通知 +netCon.on('netCapabilitiesChange', function (data) { console.log(JSON.stringify(data)) }) + +// 使用unregister接口取消订阅 +netCon.unregister(function (error) { + console.log(JSON.stringify(error)) +}) ``` -### on('netBlockStatusChange') +### on('netConnectionPropertiesChange') -on(type: 'netBlockStatusChange', callback: Callback<{ netHandle: NetHandle, blocked: boolean }>): void +on(type: 'netConnectionPropertiesChange', callback: Callback<{ netHandle: NetHandle, connectionProperties: ConnectionProperties }>): void -订阅网络阻塞状态事件,使用callback方式作为异步方法。 +订阅网络连接信息变化事件。 + +**模型约束**:此接口调用之前需要先调用register接口,使用unregister取消订阅默认网络状态变化的通知。 **系统能力**:SystemCapability.Communication.NetManager.Core @@ -744,15 +1353,29 @@ on(type: 'netBlockStatusChange', callback: Callback<{ netHandle: NetHandle, b | 参数名 | 类型 | 必填 | 说明 | | -------- | ------------------------------------------------------------ | ---- | ------------------------------------------------------------ | -| type | string | 是 | 订阅事件,固定为'netBlockStatusChange'。
netBlockStatusChange:网络阻塞状态事件。 | -| callback | Callback<{ netHandle: [NetHandle](#nethandle), blocked: boolean }> | 是 | 回调函数。 | +| type | string | 是 | 订阅事件,固定为'netConnectionPropertiesChange'。
netConnectionPropertiesChange:网络连接信息变化事件。 | +| callback | Callback<{ netHandle: [NetHandle](#nethandle), connectionProperties: [ConnectionProperties](#connectionproperties) }> | 是 | 回调函数,返回数据网络句柄(netHandle)和网络的连接信息(connectionProperties)| **示例:** ```js -netConnection.on('netBlockStatusChange', function (data) { +// 创建NetConnection对象 +let netCon = connection.createNetConnection() + +// 先使用register接口注册订阅事件 +netCon.register(function (error) { + console.log(JSON.stringify(error)) +}) + +// 订阅网络连接信息变化事件。调用register后,才能接收到此事件通知 +netCon.on('netConnectionPropertiesChange', function (data) { console.log(JSON.stringify(data)) }) + +// 使用unregister接口取消订阅 +netCon.unregister(function (error) { + console.log(JSON.stringify(error)) +}) ``` ### on('netLost') @@ -761,6 +1384,8 @@ on(type: 'netLost', callback: Callback\): void 订阅网络丢失事件。 +**模型约束**:此接口调用之前需要先调用register接口,使用unregister取消订阅默认网络状态变化的通知。 + **系统能力**:SystemCapability.Communication.NetManager.Core **参数:** @@ -768,15 +1393,28 @@ on(type: 'netLost', callback: Callback\): void | 参数名 | 类型 | 必填 | 说明 | | -------- | ---------------------------------- | ---- | ------------------------------------------------------------ | | type | string | 是 | 订阅事件,固定为'netLost'。
netLost:网络严重中断或正常断开事件。 | -| callback | Callback\<[NetHandle](#nethandle)> | 是 | 回调函数。 | +| callback | Callback\<[NetHandle](#nethandle)> | 是 | 回调函数,数据网络句柄(netHandle)| **示例:** ```js -let netConnection1 = connection.createNetConnection() -netConnection1.on('netLost', function (data) { +// 创建NetConnection对象 +let netCon = connection.createNetConnection() + +// 先使用register接口注册订阅事件 +netCon.register(function (error) { + console.log(JSON.stringify(error)) +}) + +// 订阅网络丢失事件。调用register后,才能接收到此事件通知 +netCon.on('netLost', function (data) { console.log(JSON.stringify(data)) }) + +// 使用unregister接口取消订阅 +netCon.unregister(function (error) { + console.log(JSON.stringify(error)) +}) ``` ### on('netUnavailable') @@ -785,6 +1423,8 @@ on(type: 'netUnavailable', callback: Callback\): void 订阅网络不可用事件。 +**模型约束**:此接口调用之前需要先调用register接口,使用unregister取消订阅默认网络状态变化的通知。 + **系统能力**:SystemCapability.Communication.NetManager.Core **参数:** @@ -792,58 +1432,26 @@ on(type: 'netUnavailable', callback: Callback\): void | 参数名 | 类型 | 必填 | 说明 | | -------- | --------------- | ---- | ------------------------------------------------------------ | | type | string | 是 | 订阅事件,固定为'netUnavailable'。
netUnavailable:网络不可用事件。 | -| callback | Callback\ | 是 | 回调函数。 | +| callback | Callback\ | 是 | 回调函数,无返回结果。| **示例:** ```js -netConnection.on('netUnavailable', function (data) { - console.log(JSON.stringify(data)) -}) -``` - -### register - -register(callback: AsyncCallback\): void - -订阅指定网络状态变化的通知。 - -**需要权限**:ohos.permission.GET_NETWORK_INFO - -**系统能力**:SystemCapability.Communication.NetManager.Core - -**参数:** - -| 参数名 | 类型 | 必填 | 说明 | -| -------- | -------------------- | ---- | ---------- | -| callback | AsyncCallback\ | 是 | 回调函数。 | +// 创建NetConnection对象 +let netCon = connection.createNetConnection() -**示例:** - -```js -netConnection.register(function (error) { +// 先使用register接口注册订阅事件 +netCon.register(function (error) { console.log(JSON.stringify(error)) }) -``` - -### unregister - -unregister(callback: AsyncCallback\): void - -取消订阅默认网络状态变化的通知。 - -**系统能力**:SystemCapability.Communication.NetManager.Core - -**参数:** - -| 参数名 | 类型 | 必填 | 说明 | -| -------- | -------------------- | ---- | ---------- | -| callback | AsyncCallback\ | 是 | 回调函数。 | -**示例:** +// 订阅网络不可用事件。调用register后,才能接收到此事件通知 +netCon.on('netUnavailable', function (data) { + console.log(JSON.stringify(data)) +}) -```js -netConnection.unregister(function (error) { +// 使用unregister接口取消订阅 +netCon.unregister(function (error) { console.log(JSON.stringify(error)) }) ``` @@ -864,7 +1472,7 @@ netConnection.unregister(function (error) { ### bindSocket9+ -bindSocket(socketParam: TCPSocket \| UDPSocket, callback: AsyncCallback\): void; +bindSocket(socketParam: TCPSocket \| UDPSocket, callback: AsyncCallback\): void 将TCPSocket或UDPSocket绑定到当前网络,使用callback方式作为异步方法。 @@ -875,7 +1483,16 @@ bindSocket(socketParam: TCPSocket \| UDPSocket, callback: AsyncCallback\): | 参数名 | 类型 | 必填 | 说明 | | ----------- | ------------------------ | ---- | -------------------------------| | socketParam | [TCPSocket](js-apis-socket.md#tcpsocket) \| [UDPSocket](js-apis-socket.md#udpsocket) | 是 | 待绑定的TCPSocket或UDPSocket对象。| -| callback | AsyncCallback\ | 是 | 回调函数 | +| callback | AsyncCallback\ | 是 | 回调函数。当TCPSocket或UDPSocket成功绑定到当前网络,err为undefined,否则为错误对象。| + +**错误码:** + +| 错误码ID | 错误信息 | +| ------- | ----------------------------- | +| 401 | Parameter error. | +| 2100001 | Invalid parameter value. | +| 2100002 | Operation failed. Cannot connect to service.| +| 2100003 | System internal error. | **示例:** @@ -946,6 +1563,15 @@ bindSocket(socketParam: TCPSocket \| UDPSocket): Promise\; | -------------- | ---------------------- | | Promise\ | 无返回值的Promise对象。 | +**错误码:** + +| 错误码ID | 错误信息 | +| ------- | ----------------------------- | +| 401 | Parameter error. | +| 2100001 | Invalid parameter value. | +| 2100002 | Operation failed. Cannot connect to service.| +| 2100003 | System internal error. | + **示例:** ```js @@ -1006,16 +1632,26 @@ getAddressesByName(host: string, callback: AsyncCallback\>): | 参数名 | 类型 | 必填 | 说明 | | -------- | ------------------------------------------------- | ---- | ------------------ | | host | string | 是 | 需要解析的主机名。 | -| callback | AsyncCallback\> | 是 | 回调函数 | +| callback | AsyncCallback\> | 是 | 回调函数。当使用对应网络解析主机名成功获取所有IP地址,err为undefined,data为获取到的所有IP地址;否则为错误对象。| + +**错误码:** + +| 错误码ID | 错误信息 | +| ------- | ----------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 2100001 | Invalid parameter value. | +| 2100002 | Operation failed. Cannot connect to service.| +| 2100003 | System internal error. | **示例:** ```js connection.getDefaultNet().then(function (netHandle) { let host = "xxxx"; - netHandle.getAddressesByName(host, function (error, addresses) { + netHandle.getAddressesByName(host, function (error, data) { console.log(JSON.stringify(error)) - console.log(JSON.stringify(addresses)) + console.log(JSON.stringify(data)) }) }) ``` @@ -1042,13 +1678,23 @@ getAddressesByName(host: string): Promise\> | ------------------------------------------- | ----------------------------- | | Promise\> | 以Promise形式返回所有IP地址。 | +**错误码:** + +| 错误码ID | 错误信息 | +| ------- | ----------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 2100001 | Invalid parameter value. | +| 2100002 | Operation failed. Cannot connect to service.| +| 2100003 | System internal error. | + **示例:** ```js connection.getDefaultNet().then(function (netHandle) { let host = "xxxx"; - netHandle.getAddressesByName(host).then(function (addresses) { - console.log(JSON.stringify(addresses)) + netHandle.getAddressesByName(host).then(function (data) { + console.log(JSON.stringify(data)) }) }) ``` @@ -1068,16 +1714,26 @@ getAddressByName(host: string, callback: AsyncCallback\): void | 参数名 | 类型 | 必填 | 说明 | | -------- | ----------------------------------------- | ---- | ------------------ | | host | string | 是 | 需要解析的主机名。 | -| callback | AsyncCallback\<[NetAddress](#netaddress)> | 是 | 回调函数。 | +| callback | AsyncCallback\<[NetAddress](#netaddress)> | 是 | 回调函数。当使用对应网络解析主机名获取第一个IP地址成功,err为undefined,data为获取的第一个IP地址;否则为错误对象。 | + +**错误码:** + +| 错误码ID | 错误信息 | +| ------- | ----------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 2100001 | Invalid parameter value. | +| 2100002 | Operation failed. Cannot connect to service.| +| 2100003 | System internal error. | **示例:** ```js connection.getDefaultNet().then(function (netHandle) { let host = "xxxx"; - netHandle.getAddressByName(host, function (error, address) { + netHandle.getAddressByName(host, function (error, data) { console.log(JSON.stringify(error)) - console.log(JSON.stringify(address)) + console.log(JSON.stringify(data)) }) }) ``` @@ -1104,41 +1760,27 @@ getAddressByName(host: string): Promise\ | ----------------------------------- | ------------------------------- | | Promise\<[NetAddress](#netaddress)> | 以Promise形式返回第一个IP地址。 | +**错误码:** + +| 错误码ID | 错误信息 | +| ------- | ----------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 2100001 | Invalid parameter value. | +| 2100002 | Operation failed. Cannot connect to service.| +| 2100003 | System internal error. | + **示例:** ```js connection.getDefaultNet().then(function (netHandle) { let host = "xxxx"; - netHandle.getAddressByName(host).then(function (address) { - console.log(JSON.stringify(address)) + netHandle.getAddressByName(host).then(function (data) { + console.log(JSON.stringify(data)) }) }) ``` -## NetSpecifier - -提供承载数据网络能力的实例。 - -**系统能力**:以下各项对应的系统能力均为SystemCapability.Communication.NetManager.Core。 - -| 名称 | 类型 | 必填 | 说明 | -| ----------------------- | ----------------------------------- | ---- | ------------------------------------------------------------ | -| netCapabilities | [NetCapabilities](#netcapabilities) | 是 | 存储数据网络的传输能力和承载类型。 | -| bearerPrivateIdentifier | string | 否 | 网络标识符,Wi-Fi网络的标识符是"wifi",蜂窝网络的标识符是"slot0"(对应SIM卡1)。 | - -## NetCapabilities - -网络的能力集。 - -**系统能力**:以下各项对应的系统能力均为SystemCapability.Communication.NetManager.Core。 - -| 名称 | 类型 | 必填 | 说明 | -| --------------------- | ---------------------------------- | --- | ------------------------ | -| linkUpBandwidthKbps | number | 否 | 上行(设备到网络)带宽。 | -| linkDownBandwidthKbps | number | 否 | 下行(网络到设备)带宽。 | -| networkCap | Array\<[NetCap](#netcap)> | 否 | 网络具体能力。 | -| bearerTypes | Array\<[NetBearType](#netbeartype)> | 是 | 网络类型。 | - ## NetCap 网络具体能力。 @@ -1165,6 +1807,42 @@ connection.getDefaultNet().then(function (netHandle) { | BEARER_WIFI | 1 | Wi-Fi网络。 | | BEARER_ETHERNET | 3 | 以太网网络。 | +## HttpProxy + +网络全局代理配置信息 + +**系统能力**:SystemCapability.Communication.NetManager.Core + +| 名称 | 类型 | 必填 | 说明 | +| ------ | ------ | --- |------------------------- | +| host | string | 否 | 代理服务器主机名。 | +| port | number | 否 | 主机端口。 | +| parsedExclusionList | Array | 否 | 不使用代理服务器的屏蔽列表。 | + +## NetSpecifier + +提供承载数据网络能力的实例。 + +**系统能力**:以下各项对应的系统能力均为SystemCapability.Communication.NetManager.Core。 + +| 名称 | 类型 | 必填 | 说明 | +| ----------------------- | ----------------------------------- | ---- | ------------------------------------------------------------ | +| netCapabilities | [NetCapabilities](#netcapabilities) | 是 | 存储数据网络的传输能力和承载类型。 | +| bearerPrivateIdentifier | string | 否 | 网络标识符,Wi-Fi网络的标识符是"wifi",蜂窝网络的标识符是"slot0"(对应SIM卡1)。 | + +## NetCapabilities + +网络的能力集。 + +**系统能力**:以下各项对应的系统能力均为SystemCapability.Communication.NetManager.Core。 + +| 名称 | 类型 | 必填 | 说明 | +| --------------------- | ---------------------------------- | --- | ------------------------ | +| linkUpBandwidthKbps | number | 否 | 上行(设备到网络)带宽。 | +| linkDownBandwidthKbps | number | 否 | 下行(网络到设备)带宽。 | +| networkCap | Array\<[NetCap](#netcap)> | 否 | 网络具体能力。 | +| bearerTypes | Array\<[NetBearType](#netbeartype)> | 是 | 网络类型。 | + ## ConnectionProperties 网络连接信息。 @@ -1177,20 +1855,9 @@ connection.getDefaultNet().then(function (netHandle) { | domains | string | 是 |所属域,默认""。 | | linkAddresses | Array\<[LinkAddress](#linkaddress)> | 是 |链路信息。 | | routes | Array\<[RouteInfo](#routeinfo)> | 是 |路由信息。 | -| dnses | Array\<[NetAddress](#netaddress)>; | 是 |网络地址,参考[NetAddress](#netaddress)。 | +| dnses | Array\<[NetAddress](#netaddress)> | 是 |网络地址,参考[NetAddress](#netaddress)。 | | mtu | number | 是 |最大传输单元。 | -## LinkAddress - -网络链路信息。 - -**系统能力**:以下各项对应的系统能力均为SystemCapability.Communication.NetManager.Core。 - -| 名称 | 类型 | 必填 |说明 | -| ------------ | ----------------------- |---- |-------------------- | -| address | [NetAddress](#netaddress) | 是 | 链路地址。 | -| prefixLength | number | 是 |链路地址前缀的长度。 | - ## RouteInfo 网络路由信息。 @@ -1205,6 +1872,17 @@ connection.getDefaultNet().then(function (netHandle) { | hasGateway | boolean | 是 |是否有网关。 | | isDefaultRoute | boolean | 是 |是否为默认路由。 | +## LinkAddress + +网络链路信息。 + +**系统能力**:以下各项对应的系统能力均为SystemCapability.Communication.NetManager.Core。 + +| 名称 | 类型 | 必填 |说明 | +| ------------ | ----------------------- |---- |-------------------- | +| address | [NetAddress](#netaddress) | 是 | 链路地址。 | +| prefixLength | number | 是 |链路地址前缀的长度。 | + ## NetAddress 网络地址。 diff --git a/zh-cn/application-dev/reference/apis/js-apis-net-ethernet.md b/zh-cn/application-dev/reference/apis/js-apis-net-ethernet.md index bf12a438db128c698e083d53adc3209e670ec97c..50652d0b68fa5e14e732b114c0e718d5a5bacffa 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-net-ethernet.md +++ b/zh-cn/application-dev/reference/apis/js-apis-net-ethernet.md @@ -3,7 +3,6 @@ 以太网连接管理主要提供有线网络能力,提供设置有线网络的IP地址,子网掩码,网关,DNS等信息 > **说明:** -> > 本模块首批接口从API version 9开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 ## 导入模块 @@ -32,6 +31,19 @@ setIfaceConfig(iface: string, ic: InterfaceConfiguration, callback: AsyncCallbac | ic | [InterfaceConfiguration](#interfaceconfiguration) | 是 | 要设置的网络接口配置信息 | | callback | AsyncCallback\ | 是 | 回调函数,成功无返回,失败返回对应错误码。 | +**错误码:** + +| 错误码ID | 错误信息 | +| ------- | ----------------------------------------| +| 201 | Permission denied. | +| 401 | Parameter error. | +| 2200001 | Invalid parameter value. | +| 2200002 | Operation failed. Cannot connect to service.| +| 2200003 | System internal error. | +| 2201005 | The device information does not exist. | +| 2201006 | Device disconnected. | +| 2201007 | Failed to write the user configuration. | + **示例:** ```js @@ -77,6 +89,19 @@ setIfaceConfig(iface: string, ic: InterfaceConfiguration): Promise\ | ------------------- | ----------------------------------------------------------- | | Promise\ | 以Promise形式返回执行结果。成功无返回,失败返回对应错误码。 | +**错误码:** + +| 错误码ID | 错误信息 | +| ------- | ----------------------------------------| +| 201 | Permission denied. | +| 401 | Parameter error. | +| 2200001 | Invalid parameter value. | +| 2200002 | Operation failed. Cannot connect to service.| +| 2200003 | System internal error. | +| 2201005 | The device information does not exist. | +| 2201006 | Device disconnected. | +| 2201007 | Failed to write the user configuration. | + **示例:** ```js @@ -114,6 +139,17 @@ getIfaceConfig(iface: string, callback: AsyncCallback\): | iface | string | 是 | 指定网络接口 | | callback | AsyncCallback\<[InterfaceConfiguration](#interfaceconfiguration)> | 是 | 回调函数,返回指定网络接口信息 | +**错误码:** + +| 错误码ID | 错误信息 | +| ------- | ----------------------------------------| +| 201 | Permission denied. | +| 401 | Parameter error. | +| 2200001 | Invalid parameter value. | +| 2200002 | Operation failed. Cannot connect to service.| +| 2200003 | System internal error. | +| 2201005 | The device information does not exist. | + **示例:** ```js @@ -156,6 +192,17 @@ getIfaceConfig(iface: string): Promise\ | --------------------------------- | ---------------------------------- | | Promise\<[InterfaceConfiguration](#interfaceconfiguration)> | 以Promise形式返回接口信息。 | +**错误码:** + +| 错误码ID | 错误信息 | +| ------- | ----------------------------------------| +| 201 | Permission denied. | +| 401 | Parameter error. | +| 2200001 | Invalid parameter value. | +| 2200002 | Operation failed. Cannot connect to service.| +| 2200003 | System internal error. | +| 2201005 | The device information does not exist. | + **示例:** ```js @@ -191,6 +238,17 @@ isIfaceActive(iface: string, callback: AsyncCallback\): void | iface | string | 是 | 接口名。为空时代表查询是否存在激活接口 | | callback | AsyncCallback\ | 是 | 回调函数,已激活:1,未激活:0,其他为获取失败错误码。 | +**错误码:** + +| 错误码ID | 错误信息 | +| ------- | ----------------------------------------| +| 201 | Permission denied. | +| 401 | Parameter error. | +| 2200001 | Invalid parameter value. | +| 2200002 | Operation failed. Cannot connect to service.| +| 2200003 | System internal error. | +| 2201005 | The device information does not exist. | + **示例:** ```js @@ -227,6 +285,17 @@ isIfaceActive(iface: string): Promise\ | ----------------| ------------------------------------------------------------------ | | Promise\ | 以Promise形式返回获取结果。已激活:1,未激活:0,其他为获取失败错误码。| +**错误码:** + +| 错误码ID | 错误信息 | +| ------- | ----------------------------------------| +| 201 | Permission denied. | +| 401 | Parameter error. | +| 2200001 | Invalid parameter value. | +| 2200002 | Operation failed. Cannot connect to service.| +| 2200003 | System internal error. | +| 2201005 | The device information does not exist. | + **示例:** ```js @@ -255,6 +324,14 @@ getAllActiveIfaces(callback: AsyncCallback\>): void | -------- | ------------------------------------ | ---- | ------------------------------ | | callback | AsyncCallback\> | 是 | 回调函数,返回值为对应接口名。 | +**错误码:** + +| 错误码ID | 错误信息 | +| ------- | ----------------------------------------| +| 201 | Permission denied. | +| 2200002 | Operation failed. Cannot connect to service.| +| 2200003 | System internal error. | + **示例:** ```js @@ -288,6 +365,14 @@ getAllActiveIfaces(): Promise\> | ------------------------------ | ----------------------------------------------- | | Promise\> | 以Promise形式返回获取结果。返回值为对应接口名。 | +**错误码:** + +| 错误码ID | 错误信息 | +| ------- | ----------------------------------------| +| 201 | Permission denied. | +| 2200002 | Operation failed. Cannot connect to service.| +| 2200003 | System internal error. | + **示例:** ```js diff --git a/zh-cn/application-dev/reference/apis/js-apis-net-policy.md b/zh-cn/application-dev/reference/apis/js-apis-net-policy.md new file mode 100644 index 0000000000000000000000000000000000000000..0d2eef9ee6be3b6fd5d807b954367ba4fed1ba88 --- /dev/null +++ b/zh-cn/application-dev/reference/apis/js-apis-net-policy.md @@ -0,0 +1,1558 @@ +# @ohos.net.policy (网络策略管理) + +网络策略管理通过对用户使用数据流量进行控制管理,采用防火墙技术实现网络策略的管理。 + +> **说明:** +> +> 本模块首批接口从API version 9开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 + +## 导入模块 + +```js +import policy from '@ohos.net.policy' +``` + +## policy.setBackgroundPolicy + +setBackgroundPolicy(isAllowed: boolean, callback: AsyncCallback\): void + +设置后台网络策略,使用callback方式作为异步方法。 + +**需要权限**:ohos.permission.CONNECTIVITY_INTERNAL + +**系统能力**:SystemCapability.Communication.NetManager.Core + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| -------- | --------------------------------------- | ---- | ---------- | +| isAllowed | boolean | 是 | 是否允许应用后台使用数据 | +| callback | AsyncCallback\ | 是 | 回调函数,成功返回设置后台网络策略的结果,失败返回错误码错误信息。 | + +**错误码:** + +| 错误码ID | 错误信息 | +| ------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 2100001 | Invalid parameter value. | +| 2100002 | Operation failed. Cannot connect to service.| +| 2100003 | System internal error. | + +**示例:** + +```js +policy.setBackgroundPolicy(Boolean(Number.parseInt(this.isBoolean))), (error, data) => { + this.callBack(error, data); + console.log(JSON.stringify(error)) + console.log(JSON.stringify(data)) +}); +``` + +## policy.setBackgroundPolicy + +setBackgroundPolicy(isAllowed: boolean): Promise\ + +设置后台网络策略,使用Promise方式作为异步方法。 + +**需要权限**:ohos.permission.CONNECTIVITY_INTERNAL + +**系统能力**:SystemCapability.Communication.NetManager.Core + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| -------- | --------------------------------------- | ---- | ---------- | +| isAllowed | boolean | 是 | 是否允许应用后台使用数据 | + +**错误码:** + +| 错误码ID | 错误信息 | +| ------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 2100001 | Invalid parameter value. | +| 2100002 | Operation failed. Cannot connect to service.| +| 2100003 | System internal error. | + +**返回值:** + +| 类型 | 说明 | +| --------------------------------- | ------------------------------------- | +| Promise\ | 以Promise形式返回设定结果,失败返回错误码错误信息。 | + +**示例:** + +```js +policy.setBackgroundPolicy(Boolean(Number.parseInt(this.isBoolean))).then((error, data) { + console.log(JSON.stringify(error)) + console.log(JSON.stringify(data)) +}) +``` + +## policy.isBackgroundAllowed + +isBackgroundAllowed(callback: AsyncCallback\): void + +获取后台网络策略,使用callback方式作为异步方法。 + +**需要权限**:ohos.permission.CONNECTIVITY_INTERNAL + +**系统能力**:SystemCapability.Communication.NetManager.Core + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| -------- | --------------------------------------- | ---- | ---------- | +| callback | AsyncCallback\ | 是 | 回调函数,返回true代表后台策略为允许。失败返回错误码错误信息。 | + +**错误码:** + +| 错误码ID | 错误信息 | +| ------- | -------------------------------------------- | +| 201 | Permission denied. | +| 2100002 | Operation failed. Cannot connect to service.| +| 2100003 | System internal error. | + +**示例:** + +```js +policy.isBackgroundAllowed((error, data) => { + this.callBack(error, data); + console.log(JSON.stringify(error)) + console.log(JSON.stringify(data)) +}); +``` + +## policy.isBackgroundAllowed + +isBackgroundAllowed(): Promise\; + +获取后台网络策略,使用Promise方式作为异步方法。 + +**需要权限**:ohos.permission.CONNECTIVITY_INTERNAL + +**系统能力**:SystemCapability.Communication.NetManager.Core + +**返回值:** + +| 类型 | 说明 | +| --------------------------------- | ------------------------------------- | +| Promise\ | 以Promise形式返回设定结果。 返回true代表后台策略为允许。失败返回错误码错误信息。| + +**错误码:** + +| 错误码ID | 错误信息 | +| ------- | -------------------------------------------- | +| 201 | Permission denied. | +| 2100002 | Operation failed. Cannot connect to service.| +| 2100003 | System internal error. | + +**示例:** + +```js +policy.isBackgroundAllowed().then((error, data) { + console.log(JSON.stringify(error)) + console.log(JSON.stringify(data)) +}) + +``` + +## policy.setPolicyByUid + +setPolicyByUid(uid: number, policy: NetUidPolicy, callback: AsyncCallback\): void + +设置对应uid应用的访问计量网络的策略,使用callback方式作为异步方法。 + +**需要权限**:ohos.permission.CONNECTIVITY_INTERNAL + +**系统能力**:SystemCapability.Communication.NetManager.Core + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| -------- | --------------------------------------- | ---- | ---------- | +| uid | number | 是 | 应用的唯一标识符 | +| policy | [NetUidPolicy](#netuidpolicy) | 是 | 应用对应的策略 | +| callback | AsyncCallback\ | 是 | 回调函数,成功返回设定结果。失败返回错误码错误信息。 | + +**错误码:** + +| 错误码ID | 错误信息 | +| ------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 2100001 | Invalid parameter value. | +| 2100002 | Operation failed. Cannot connect to service.| +| 2100003 | System internal error. | + +**示例:** + +```js +let param = { + uid: Number.parseInt(this.firstParam), policy: Number.parseInt(this.currentNetUidPolicy) +} +policy.setPolicyByUid(Number.parseInt(this.firstParam), Number.parseInt(this.currentNetUidPolicy), (error, data) => { + this.callBack(error, data); +}); +``` + +## policy.setPolicyByUid + +setPolicyByUid(uid: number, policy: NetUidPolicy): Promise\; + +设置对应uid应用的访问计量网络的策略,使用Promise方式作为异步方法。 + +**需要权限**:ohos.permission.CONNECTIVITY_INTERNAL + +**系统能力**:SystemCapability.Communication.NetManager.Core + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| -------- | --------------------------------------- | ---- | ---------- | +| uid | number | 是 | 应用的唯一标识符 | +| policy | [NetUidPolicy](#netuidpolicy) | 是 | 应用对应的策略 | + +**返回值:** + +| 类型 | 说明 | +| --------------------------------- | ------------------------------------- | +| Promise\ | 以Promise形式返回设定结果。失败返回错误码错误信息。 | + +**错误码:** + +| 错误码ID | 错误信息 | +| ------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 2100001 | Invalid parameter value. | +| 2100002 | Operation failed. Cannot connect to service.| +| 2100003 | System internal error. | + +**示例:** + +```js +let param = { + uid: Number.parseInt(this.firstParam), policy: Number.parseInt(this.currentNetUidPolicy) +} +policy.setPolicyByUid(Number.parseInt(this.firstParam), Number.parseInt(this.currentNetUidPolicy)).then((error, data) { + console.log(JSON.stringify(error)) + console.log(JSON.stringify(data)) +}) + +``` + +## policy.getPolicyByUid + +getPolicyByUid(uid: number, callback: AsyncCallback\): void + +通过应用uid获取策略,使用callback方式作为异步方法。 + +**需要权限**:ohos.permission.CONNECTIVITY_INTERNAL + +**系统能力**:SystemCapability.Communication.NetManager.Core + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| -------- | --------------------------------------- | ---- | ---------- | +| uid | number | 是 | app唯一标识符 | +| callback | AsyncCallback\<[NetUidPolicy](#netuidpolicy)> | 是 | 回调函数,成功返回获取策略结果,失败返回错误码错误信息。 | + +**错误码:** + +| 错误码ID | 错误信息 | +| ------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 2100001 | Invalid parameter value. | +| 2100002 | Operation failed. Cannot connect to service.| +| 2100003 | System internal error. | + +**示例:** + +```js +policy.getPolicyByUid(Number.parseInt(this.firstParam), (error, data) => { + this.callBack(error, data); +}); +``` + +## policy.getPolicyByUid + +getPolicyByUid(uid: number): Promise\; + +通过应用uid获取策略,使用Promise方式作为异步方法。 + +**需要权限**:ohos.permission.CONNECTIVITY_INTERNAL + +**系统能力**:SystemCapability.Communication.NetManager.Core + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| -------- | --------------------------------------- | ---- | ---------- | +| uid | number | 是 | app唯一标识符 | + +**返回值:** + +| 类型 | 说明 | +| --------------------------------- | ------------------------------------- | +| Promise\<[NetUidPolicy](#netuidpolicy)> | 以Promise形式返回获取策略结果。失败返回错误码错误信息。| + +**错误码:** + +| 错误码ID | 错误信息 | +| ------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 2100001 | Invalid parameter value. | +| 2100002 | Operation failed. Cannot connect to service.| +| 2100003 | System internal error. | + +**示例:** + +```js +policy.getPolicyByUid(Number.parseInt(this.firstParam)).then((error, data) { + console.log(JSON.stringify(error)) + console.log(JSON.stringify(data)) +}) + +``` + +## policy.getUidsByPolicy + +getUidsByPolicy(policy: NetUidPolicy, callback: AsyncCallback\>): void + +通过策略获取设置这一策略的应用uid数组,使用callback方式作为异步方法。 + +**需要权限**:ohos.permission.CONNECTIVITY_INTERNAL + +**系统能力**:SystemCapability.Communication.NetManager.Core + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| -------- | --------------------------------------- | ---- | ---------- | +| policy | [NetUidPolicy](#netuidpolicy) | 是 | 应用对应的计量网络下的策略 | +| callback | AsyncCallback\> | 是 | 回调函数,成功返回应用的uid数组,失败返回错误码错误信息。| + +**错误码:** + +| 错误码ID | 错误信息 | +| ------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 2100001 | Invalid parameter value. | +| 2100002 | Operation failed. Cannot connect to service.| +| 2100003 | System internal error. | + +**示例:** + +```js +policy.getUidsByPolicy(Number.parseInt(this.currentNetUidPolicy), (error, data) => { + this.callBack(error, data); +}); +``` + +## policy.getUidsByPolicy + +function getUidsByPolicy(policy: NetUidPolicy): Promise\>; + +通过策略获取设置这一策略的应用uid数组,使用Promise方式作为异步方法。 + +**需要权限**:ohos.permission.CONNECTIVITY_INTERNAL + +**系统能力**:SystemCapability.Communication.NetManager.Core + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| -------- | --------------------------------------- | ---- | ---------- | +| policy | [NetUidPolicy](#netuidpolicy) | 是 | app对应的计量网络下的策略 | + +**返回值:** + +| 类型 | 说明 | +| --------------------------------- | ------------------------------------- | +| Promise\> | 以Promise形式返回应用的uid数组,失败返回错误码错误信息。| + +**错误码:** + +| 错误码ID | 错误信息 | +| ------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 2100001 | Invalid parameter value. | +| 2100002 | Operation failed. Cannot connect to service.| +| 2100003 | System internal error. | + +**示例:** + +```js +policy.getUidsByPolicy(Number.parseInt(this.firstParam)).then((error, data) { + console.log(JSON.stringify(error)) + console.log(JSON.stringify(data)) +}) + +``` + +## policy.getNetQuotaPolicies + +getNetQuotaPolicies(callback: AsyncCallback\>): void + +获取计量网络策略,使用callback方式作为异步方法。 + +**需要权限**:ohos.permission.CONNECTIVITY_INTERNAL + +**系统能力**:SystemCapability.Communication.NetManager.Core + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| -------- | --------------------------------------- | ---- | ---------- | +| callback | AsyncCallback\> | 是 | 回调函数,返回获取结果。 | + +**错误码:** + +| 错误码ID | 错误信息 | +| ------- | -------------------------------------------- | +| 201 | Permission denied. | +| 2100002 | Operation failed. Cannot connect to service.| +| 2100003 | System internal error. | + +**示例:** + +```js +policy.getNetQuotaPolicies((error, data) => { + this.callBack(error, data); +}); +``` + +## policy.getNetQuotaPolicies + +getNetQuotaPolicies(): Promise\>; + +获取计量网络策略,使用Promise方式作为异步方法。 + +**需要权限**:ohos.permission.CONNECTIVITY_INTERNAL + +**系统能力**:SystemCapability.Communication.NetManager.Core + +**返回值:** + +| 类型 | 说明 | +| --------------------------------- | ------------------------------------- | +| Promise\> | 以Promise形式返回设定结果。 | + +**错误码:** + +| 错误码ID | 错误信息 | +| ------- | -------------------------------------------- | +| 201 | Permission denied. | +| 2100002 | Operation failed. Cannot connect to service.| +| 2100003 | System internal error. | + +**示例:** + +```js +policy.getNetQuotaPolicies().then((error, data) { + console.log(JSON.stringify(error)) + console.log(JSON.stringify(data)) +}) + +``` + +## policy.setNetQuotaPolicies + +setNetQuotaPolicies(quotaPolicies: Array\, callback: AsyncCallback\): void + +设置计量网络策略,使用callback方式作为异步方法。 + +**需要权限**:ohos.permission.CONNECTIVITY_INTERNAL + +**系统能力**:SystemCapability.Communication.NetManager.Core + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| -------- | --------------------------------------- | ---- | ---------- | +| quotaPolicies | Array\<[NetQuotaPolicy](#netquotapolicy)> | 是 | 计量网络策略 | +| callback | AsyncCallback\ | 是 | 回调函数,返回设定结果。 | + +**错误码:** + +| 错误码ID | 错误信息 | +| ------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 2100001 | Invalid parameter value. | +| 2100002 | Operation failed. Cannot connect to service.| +| 2100003 | System internal error. | + +**示例:** + +```js +let param = {netType:Number.parseInt(this.netType), iccid:this.iccid, ident:this.ident, periodDuration:this.periodDuration, warningBytes:Number.parseInt(this.warningBytes), + limitBytes:Number.parseInt(this.limitBytes), lastWarningRemind:this.lastWarningRemind, lastLimitRemind:this.lastLimitRemind, metered:Boolean(Number.parseInt(this.metered)), limitAction:this.limitAction}; +this.netQuotaPolicyList.push(param); + +policy.setNetQuotaPolicies(this.netQuotaPolicyList, (error, data) => { + this.callBack(error, data); +}); +``` + +## policy.setNetQuotaPolicies + +setNetQuotaPolicies(quotaPolicies: Array\): Promise\; + +设置计量网络策略,使用Promise方式作为异步方法。 + +**需要权限**:ohos.permission.CONNECTIVITY_INTERNAL + +**系统能力**:SystemCapability.Communication.NetManager.Core + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| -------- | --------------------------------------- | ---- | ---------- | +| quotaPolicies | Array\<[NetQuotaPolicy](#netquotapolicy)> | 是 | 计量网络策略 | + +**错误码:** + +| 错误码ID | 错误信息 | +| ------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 2100001 | Invalid parameter value. | +| 2100002 | Operation failed. Cannot connect to service.| +| 2100003 | System internal error. | + +**返回值:** + +| 类型 | 说明 | +| --------------------------------- | ------------------------------------- | +| Promise\ | 以Promise形式返回设定结果。 | + +**示例:** + +```js +let param = {netType:Number.parseInt(this.netType), iccid:this.iccid, ident:this.ident, periodDuration:this.periodDuration, warningBytes:Number.parseInt(this.warningBytes), + limitBytes:Number.parseInt(this.limitBytes), lastWarningRemind:this.lastWarningRemind, lastLimitRemind:this.lastLimitRemind, metered:Boolean(Number.parseInt(this.metered)), limitAction:this.limitAction}; +this.netQuotaPolicyList.push(param); + +policy.setNetQuotaPolicies(this.netQuotaPolicyList).then((error, data) { + console.log(JSON.stringify(error)) + console.log(JSON.stringify(data)) +}) +``` + +## policy.restoreAllPolicies + +restoreAllPolicies(iccid: string, callback: AsyncCallback\): void + +重置对应sim卡id的蜂窝网络、后台网络策略、防火墙策略、应用对应的策略,使用callback方式作为异步方法。 + +**需要权限**:ohos.permission.CONNECTIVITY_INTERNAL + +**系统能力**:SystemCapability.Communication.NetManager.Core + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| -------- | --------------------------------------- | ---- | ---------- | +| iccid | string | 是 | SIM卡ID| +| callback | AsyncCallback\ | 是 | 回调函数,返回重置结果。 | + +**错误码:** + +| 错误码ID | 错误信息 | +| ------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 2100001 | Invalid parameter value. | +| 2100002 | Operation failed. Cannot connect to service.| +| 2100003 | System internal error. | + +**示例:** + +```js +this.firstParam = iccid; +policy.restoreAllPolicies(this.firstParam, (error, data) => { + this.callBack(error, data); +}); +``` + +## policy.restoreAllPolicies + +restoreAllPolicies(iccid: string): Promise\; + +重置对应sim卡id的蜂窝网络、后台网络策略、防火墙策略、应用对应的策略,使用Promise方式作为异步方法。 + +**需要权限**:ohos.permission.CONNECTIVITY_INTERNAL + +**系统能力**:SystemCapability.Communication.NetManager.Core + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| -------- | --------------------------------------- | ---- | ---------- | +| iccid | string | 是 | SIM卡ID| + +**返回值:** + +| 类型 | 说明 | +| --------------------------------- | ------------------------------------- | +| Promise\ | 以Promise形式返回设定结果。 | + +**错误码:** + +| 错误码ID | 错误信息 | +| ------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 2100001 | Invalid parameter value. | +| 2100002 | Operation failed. Cannot connect to service.| +| 2100003 | System internal error. | + +**示例:** + +```js +this.firstParam = iccid; +policy.restoreAllPolicies(this.firstParam).then((error, data){ + console.log(JSON.stringify(error)) + console.log(JSON.stringify(data)) +}) + +``` + +## policy.isUidNetAllowed + +isUidNetAllowed(uid: number, isMetered: boolean, callback: AsyncCallback\): void + +获取对应uid能否访问计量或非计量网络,使用callback方式作为异步方法。 + +**需要权限**:ohos.permission.CONNECTIVITY_INTERNAL + +**系统能力**:SystemCapability.Communication.NetManager.Core + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| -------- | --------------------------------------- | ---- | ---------- | +| uid | number | 是 | app唯一标识符 | +| isMetered | boolean | 是 | 是否为计量网络 | +| callback | AsyncCallback\ | 是 | 回调函数,返回true表示这个uid可以访问对应的计量网络。 | + +**错误码:** + +| 错误码ID | 错误信息 | +| ------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 2100001 | Invalid parameter value. | +| 2100002 | Operation failed. Cannot connect to service.| +| 2100003 | System internal error. | + +**示例:** + +```js + +let param = { + uid: Number.parseInt(this.firstParam), isMetered: Boolean(Number.parseInt(this.isBoolean)) +} +policy.isUidNetAllowed(Number.parseInt(this.firstParam), Boolean(Number.parseInt(this.isBoolean)), (error, data) => { + this.callBack(error, data); +}); +``` + +## policy.isUidNetAllowed + +isUidNetAllowed(uid: number, isMetered: boolean): Promise\; + +获取对应uid能否访问计量或非计量网络,使用Promise方式作为异步方法。 + +**需要权限**:ohos.permission.CONNECTIVITY_INTERNAL + +**系统能力**:SystemCapability.Communication.NetManager.Core + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| -------- | --------------------------------------- | ---- | ---------- | +| uid | number | 是 | app唯一标识符 | +| isMetered | boolean | 是 | 是否为计量网络 | + +**返回值:** + +| 类型 | 说明 | +| --------------------------------- | ------------------------------------- | +| Promise\ | 以Promise形式返回设定结果。 | + +**错误码:** + +| 错误码ID | 错误信息 | +| ------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 2100001 | Invalid parameter value. | +| 2100002 | Operation failed. Cannot connect to service.| +| 2100003 | System internal error. | + +**示例:** + +```js + +let param = { + uid: Number.parseInt(this.firstParam), isMetered: Boolean(Number.parseInt(this.isBoolean)) +} +policy.isUidNetAllowed(Number.parseInt(this.firstParam), Boolean(Number.parseInt(this.isBoolean))).then((error, data) { + console.log(JSON.stringify(error)) + console.log(JSON.stringify(data)) +}) + +``` + +## policy.isUidNetAllowed + +isUidNetAllowed(uid: number, iface: string, callback: AsyncCallback\): void + +获取对应uid能否访问指定的iface的网络,使用callback方式作为异步方法。 + +**需要权限**:ohos.permission.CONNECTIVITY_INTERNAL + +**系统能力**:SystemCapability.Communication.NetManager.Core + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| -------- | --------------------------------------- | ---- | ---------- | +| uid | number | 是 | app唯一标识符 | +| iface | string | 是 | 网络对应的名称 | +| callback | AsyncCallback\ | 是 | 回调函数,返回true表示这个uid可以访问对应iface的网络。 | + +**错误码:** + +| 错误码ID | 错误信息 | +| ------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 2100001 | Invalid parameter value. | +| 2100002 | Operation failed. Cannot connect to service.| +| 2100003 | System internal error. | + +**示例:** + +```js + +let param = { + uid: Number.parseInt(this.firstParam), iface: this.secondParam +} +policy.isUidNetAllowed(Number.parseInt(this.firstParam), this.secondParam, (error, data) => { + this.callBack(error, data); +}); +``` + +## policy.isUidNetAllowed + +isUidNetAllowed(uid: number, iface: string): Promise\; + +获取对应uid能否访问指定的iface的网络,使用Promise方式作为异步方法。 + +**需要权限**:ohos.permission.CONNECTIVITY_INTERNAL + +**系统能力**:SystemCapability.Communication.NetManager.Core + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| -------- | --------------------------------------- | ---- | ---------- | +| uid | number | 是 | app唯一标识符 | +| iface | string | 是 | 网络对应的名称 | + +**返回值:** + +| 类型 | 说明 | +| --------------------------------- | ------------------------------------- | +| Promise\ | 以Promise形式返回设定结果。 | + +**错误码:** + +| 错误码ID | 错误信息 | +| ------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 2100001 | Invalid parameter value. | +| 2100002 | Operation failed. Cannot connect to service.| +| 2100003 | System internal error. | + +**示例:** + +```js +let param = { + uid: Number.parseInt(this.firstParam), iface: this.secondParam +} +policy.isUidNetAllowed(Number.parseInt(this.firstParam), this.secondParam).then((error, data) { + console.log(JSON.stringify(error)) + console.log(JSON.stringify(data)) +}) + +``` + +## policy.setDeviceIdleAllowList + +setDeviceIdleAllowList(uid: number, isAllowed: boolean, callback: AsyncCallback\): void + +设置指定uid应用是否在休眠防火墙的白名单,使用callback方式作为异步方法。 + +**需要权限**:ohos.permission.CONNECTIVITY_INTERNAL + +**系统能力**:SystemCapability.Communication.NetManager.Core + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| -------- | --------------------------------------- | ---- | ---------- | +| uid | number | 是 | app唯一标识符 | +| isAllowed | boolean | 是 | 是否加入白名单 | +| callback | callback: AsyncCallback\ | 是 | 回调函数,返回设定结果。 | + +**错误码:** + +| 错误码ID | 错误信息 | +| ------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 2100001 | Invalid parameter value. | +| 2100002 | Operation failed. Cannot connect to service.| +| 2100003 | System internal error. | + +**示例:** + +```js +let param = { + uid: Number.parseInt(this.firstParam), isAllowed: Boolean(Number.parseInt(this.isBoolean)) +} +policy.setDeviceIdleAllowList(Number.parseInt(this.firstParam), Boolean(Number.parseInt(this.isBoolean)), (error, data) => { + this.callBack(error, data); +}); +``` + +## policy.setDeviceIdleAllowList + +setDeviceIdleAllowList(uid: number, isAllowed: boolean): Promise\; + +设置指定uid应用是否在休眠防火墙的白名单,使用Promise方式作为异步方法。 + +**需要权限**:ohos.permission.CONNECTIVITY_INTERNAL + +**系统能力**:SystemCapability.Communication.NetManager.Core + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| -------- | --------------------------------------- | ---- | ---------- | +| uid | number | 是 | app唯一标识符 | +| isAllowed | boolean | 是 | 是否加入白名单 | + +**返回值:** + +| 类型 | 说明 | +| --------------------------------- | ------------------------------------- | +| Promise\ | 以Promise形式返回设定结果。 | + +**错误码:** + +| 错误码ID | 错误信息 | +| ------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 2100001 | Invalid parameter value. | +| 2100002 | Operation failed. Cannot connect to service.| +| 2100003 | System internal error. | + +**示例:** + +```js +let param = { + uid: Number.parseInt(this.firstParam), isAllowed: Boolean(Number.parseInt(this.isBoolean)) +} +policy.setDeviceIdleAllowList(Number.parseInt(this.firstParam), Boolean(Number.parseInt(this.isBoolean))).then((error, data) { + console.log(JSON.stringify(error)) + console.log(JSON.stringify(data)) +}) + +``` + +## policy.getDeviceIdleAllowList + +getDeviceIdleAllowList(callback: AsyncCallback\>): void + +获取休眠模式白名单所包含的uid数组,使用callback方式作为异步方法。 + +**需要权限**:ohos.permission.CONNECTIVITY_INTERNAL + +**系统能力**:SystemCapability.Communication.NetManager.Core + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| -------- | --------------------------------------- | ---- | ---------- | +| callback | AsyncCallback\> | 是 | 回调函数,返回获取结果。 | + +**错误码:** + +| 错误码ID | 错误信息 | +| ------- | -------------------------------------------- | +| 201 | Permission denied. | +| 2100002 | Operation failed. Cannot connect to service.| +| 2100003 | System internal error. | + +**示例:** + +```js +policy.getDeviceIdleAllowList((error, data) => { + this.callBack(error, data); +}); +``` + +## policy.getDeviceIdleAllowList + +getDeviceIdleAllowList(): Promise\>; + +获取休眠模式白名单所包含的uid数组,使用Promise方式作为异步方法。 + +**需要权限**:ohos.permission.CONNECTIVITY_INTERNAL + +**系统能力**:SystemCapability.Communication.NetManager.Core + +**返回值:** + +| 类型 | 说明 | +| --------------------------------- | ------------------------------------- | +| Promise\> | 以Promise形式返回设定结果。 | + +**错误码:** + +| 错误码ID | 错误信息 | +| ------- | -------------------------------------------- | +| 201 | Permission denied. | +| 2100002 | Operation failed. Cannot connect to service.| +| 2100003 | System internal error. | + +**示例:** + +```js +policy.getDeviceIdleAllowList().then((error, data) { + console.log(JSON.stringify(error)) + console.log(JSON.stringify(data)) +}) +``` + +## policy.getBackgroundPolicyByUid + +getBackgroundPolicyByUid(uid: number, callback: AsyncCallback\): void + +获取指定uid能否访问后台网络,使用callback方式作为异步方法。 + +**需要权限**:ohos.permission.CONNECTIVITY_INTERNAL + +**系统能力**:SystemCapability.Communication.NetManager.Core + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| -------- | --------------------------------------- | ---- | ---------- | +| uid | number | 是 | app唯一标识符 | +| callback | AsyncCallback\<[NetBackgroundPolicy](#netbackgroundpolicy)> | 是 | 回调函数,返回获取结果。 | + +**错误码:** + +| 错误码ID | 错误信息 | +| ------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 2100001 | Invalid parameter value. | +| 2100002 | Operation failed. Cannot connect to service.| +| 2100003 | System internal error. | + +**示例:** + +```js +this.firstParam = uid +policy.getBackgroundPolicyByUid(Number.parseInt(this.firstParam), (error, data) => { + this.callBack(error, data); +}); +``` + +## policy.getBackgroundPolicyByUid + +getBackgroundPolicyByUid(uid: number): Promise\; + +获取指定uid能否访问后台网络,使用Promise方式作为异步方法。 + +**需要权限**:ohos.permission.CONNECTIVITY_INTERNAL + +**系统能力**:SystemCapability.Communication.NetManager.Core + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| -------- | --------------------------------------- | ---- | ---------- | +| uid | number | 是 | app唯一标识符 | + +**返回值:** + +| 类型 | 说明 | +| --------------------------------- | ------------------------------------- | +| Promise\<[NetBackgroundPolicy](#netbackgroundpolicy)> | 以Promise形式返回设定结果。 | + +**错误码:** + +| 错误码ID | 错误信息 | +| ------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 2100001 | Invalid parameter value. | +| 2100002 | Operation failed. Cannot connect to service.| +| 2100003 | System internal error. | + +**示例:** + +```js +this.firstParam = uid +policy.getBackgroundPolicyByUid(Number.parseInt(this.firstParam)).then((error, data) { + console.log(JSON.stringify(error)) + console.log(JSON.stringify(data)) +}) +``` + +## policy.resetPolicies + +resetPolicies(iccid: string, callback: AsyncCallback\): void + +重置对应sim卡id的蜂窝网络、后台网络策略、防火墙策略、应用对应的策略,使用callback方式作为异步方法。 + +**需要权限**:ohos.permission.CONNECTIVITY_INTERNAL + +**系统能力**:SystemCapability.Communication.NetManager.Core + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| -------- | --------------------------------------- | ---- | ---------- | +| iccid | string | 是 | SIM卡ID| +| callback | AsyncCallback\ | 是 | 回调函数,返回重置结果。 | + +**错误码:** + +| 错误码ID | 错误信息 | +| ------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 2100001 | Invalid parameter value. | +| 2100002 | Operation failed. Cannot connect to service.| +| 2100003 | System internal error. | + +**示例:** + +```js +this.firstParam = iccid +policy.resetPolicies(this.firstParam, (error, data) => { + this.callBack(error, data); +}); +``` + +## policy.resetPolicies + +resetPolicies(iccid: string): Promise\; + +重置对应sim卡id的蜂窝网络、后台网络策略、防火墙策略、应用对应的策略,使用Promise方式作为异步方法。 + +**需要权限**:ohos.permission.CONNECTIVITY_INTERNAL + +**系统能力**:SystemCapability.Communication.NetManager.Core + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| -------- | --------------------------------------- | ---- | ---------- | +| iccid | string | 是 | SIM卡ID| + +**返回值:** + +| 类型 | 说明 | +| --------------------------------- | ------------------------------------- | +| Promise\ | 以Promise形式返回设定结果。 | + +**错误码:** + +| 错误码ID | 错误信息 | +| ------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 2100001 | Invalid parameter value. | +| 2100002 | Operation failed. Cannot connect to service.| +| 2100003 | System internal error. | + +**示例:** + +```js +policy.getUidsByPolicy(Number.parseInt(this.firstParam)).then((error, data) { + +}) +this.firstParam = iccid +policy.resetPolicies(this.firstParam).then((error, data) { + console.log(JSON.stringify(error)) + console.log(JSON.stringify(data)) +}) + +``` + +## policy.updateRemindPolicy + +updateRemindPolicy(netType: NetBearType, iccid: string, remindType: RemindType, callback: AsyncCallback\): void + +更新提醒策略,使用callback方式作为异步方法。 + +**需要权限**:ohos.permission.CONNECTIVITY_INTERNAL + +**系统能力**:SystemCapability.Communication.NetManager.Core + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| -------- | --------------------------------------- | ---- | ---------- | +| netType | [NetBearType](js-apis-net-connection.md#netbeartype) | 是 | 网络类型 | +| iccid | string | 是 | SIM卡ID| +| remindType | [RemindType](#remindtype) | 是 | 提醒类型 | +| callback | AsyncCallback\ | 是 | 回调函数,返回更新结果。 | + +**错误码:** + +| 错误码ID | 错误信息 | +| ------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 2100001 | Invalid parameter value. | +| 2100002 | Operation failed. Cannot connect to service.| +| 2100003 | System internal error. | + +**示例:** + +```js +let param = { + netType: Number.parseInt(this.netType), iccid: this.firstParam, remindType: this.currentRemindType +} +policy.updateRemindPolicy(Number.parseInt(this.netType), this.firstParam, Number.parseInt(this.currentRemindType), (error, data) => { + this.callBack(error, data); +}); +``` + +## policy.updateRemindPolicy + +updateRemindPolicy(netType: NetBearType, iccid: string, remindType: RemindType): Promise\; + +更新提醒策略,使用Promise方式作为异步方法。 + +**需要权限**:ohos.permission.CONNECTIVITY_INTERNAL + +**系统能力**:SystemCapability.Communication.NetManager.Core + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| -------- | --------------------------------------- | ---- | ---------- | +| netType | [NetBearType](js-apis-net-connection.md#netbeartype) | 是 | 网络类型 | +| iccid | string | 是 | SIM卡ID| +| remindType | [RemindType](#remindtype) | 是 | 提醒类型 | + +**返回值:** + +| 类型 | 说明 | +| --------------------------------- | ------------------------------------- | +| Promise\ | 以Promise形式返回设定结果。 | + +**错误码:** + +| 错误码ID | 错误信息 | +| ------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 2100001 | Invalid parameter value. | +| 2100002 | Operation failed. Cannot connect to service.| +| 2100003 | System internal error. | + +**示例:** + +```js +let param = { + netType: Number.parseInt(this.netType), iccid: this.firstParam, remindType: this.currentRemindType +} +policy.updateRemindPolicy(Number.parseInt(this.netType), this.firstParam, Number.parseInt(this.currentRemindType)).then((error, data) { + console.log(JSON.stringify(error)) + console.log(JSON.stringify(data)) +}) + +``` + +## policy.setPowerSaveAllowList + +setPowerSaveAllowList(uid: number, isAllowed: boolean, callback: AsyncCallback\): void + +设置指定uid应用是否在省电防火墙的白名单,使用callback方式作为异步方法。 + +**需要权限**:ohos.permission.CONNECTIVITY_INTERNAL + +**系统能力**:SystemCapability.Communication.NetManager.Core + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| -------- | --------------------------------------- | ---- | ---------- | +| uid | number | 是 | app唯一标识符 | +| isAllowed | boolean | 是 | 是否加入白名单 | +| callback | callback: AsyncCallback\ | 是 | 回调函数,返回设定结果。 | + +**错误码:** + +| 错误码ID | 错误信息 | +| ------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 2100001 | Invalid parameter value. | +| 2100002 | Operation failed. Cannot connect to service.| +| 2100003 | System internal error. | + +**示例:** + +```js +let param = { + uid: Number.parseInt(this.firstParam), isAllowed: Boolean(Number.parseInt(this.isBoolean)) +} +policy.setPowerSaveAllowList(Number.parseInt(this.firstParam), Boolean(Number.parseInt(this.isBoolean)), (error, data) => { + this.callBack(error, data); +}); +``` + +## policy.setPowerSaveAllowList + +setPowerSaveAllowList(uid: number, isAllowed: boolean): Promise\; + +设置指定uid应用是否在省电防火墙的白名单,使用Promise方式作为异步方法。 + +**需要权限**:ohos.permission.CONNECTIVITY_INTERNAL + +**系统能力**:SystemCapability.Communication.NetManager.Core + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| -------- | --------------------------------------- | ---- | ---------- | +| uid | number | 是 | app唯一标识符 | +| isAllowed | boolean | 是 | 是否加入白名单 | + +**返回值:** + +| 类型 | 说明 | +| --------------------------------- | ------------------------------------- | +| Promise\ | 以Promise形式返回设定结果。 | + +**错误码:** + +| 错误码ID | 错误信息 | +| ------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 2100001 | Invalid parameter value. | +| 2100002 | Operation failed. Cannot connect to service.| +| 2100003 | System internal error. | + +**示例:** + +```js +let param = { + uid: Number.parseInt(this.firstParam), isAllowed: Boolean(Number.parseInt(this.isBoolean)) +} +policy.setPowerSaveAllowList(Number.parseInt(this.firstParam), Boolean(Number.parseInt(this.isBoolean))).then((error, data) { + console.log(JSON.stringify(error)) + console.log(JSON.stringify(data)) +}) + +``` + +## policy.getPowerSaveAllowList + +getPowerSaveAllowList(callback: AsyncCallback\>): void + +获取省电模式白名单所包含的uid数组,使用callback方式作为异步方法。 + +**需要权限**:ohos.permission.CONNECTIVITY_INTERNAL + +**系统能力**:SystemCapability.Communication.NetManager.Core + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| -------- | --------------------------------------- | ---- | ---------- | +| callback | AsyncCallback\> | 是 | 回调函数,返回获取结果。 | + +**错误码:** + +| 错误码ID | 错误信息 | +| ------- | -------------------------------------------- | +| 201 | Permission denied. | +| 2100002 | Operation failed. Cannot connect to service.| +| 2100003 | System internal error. | + +**示例:** + +```js +policy.getPowerSaveAllowList((error, data) => { + this.callBack(error, data); +}); +``` + +## policy.getPowerSaveAllowList + +getPowerSaveAllowList(): Promise\>; + +获取休眠模式白名单所包含的uid数组,使用Promise方式作为异步方法。 + +**需要权限**:ohos.permission.CONNECTIVITY_INTERNAL + +**系统能力**:SystemCapability.Communication.NetManager.Core + +**返回值:** + +| 类型 | 说明 | +| --------------------------------- | ------------------------------------- | +| Promise\> | 以Promise形式返回设定结果。 | + +**错误码:** + +| 错误码ID | 错误信息 | +| ------- | -------------------------------------------- | +| 201 | Permission denied. | +| 2100002 | Operation failed. Cannot connect to service.| +| 2100003 | System internal error. | + +**示例:** + +```js +policy.getPowerSaveAllowList().then((error, data) { + console.log(JSON.stringify(error)) + console.log(JSON.stringify(data)) +}) +``` + +## policy.on + +网络策略的句柄。 + +### on('netUidPolicyChange') + +on(type: "netUidPolicyChange", callback: Callback\<{ uid: number, policy: NetUidPolicy }>): void + +注册policy发生改变时的回调,使用callback方式作为异步方法。 + +**需要权限**:ohos.permission.CONNECTIVITY_INTERNAL + +**系统能力**:SystemCapability.Communication.NetManager.Core + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| -------- | ---------------------------------- | ---- | ------------------------------------------------------------ | +| type | netUidPolicyChange | 是 | policy发生改变的类型 | +| callback | Callback\<{ uid: number, policy: [NetUidPolicy](#netuidpolicy) }> | 是 | 回调函数。注册policy发生改变时调用。 | + +**示例:** + +```js +policy.on('netUidPolicyChange', (data) => { + this.log('on netUidPolicyChange:' + JSON.stringify(data)); +}) +``` + +### on('netUidRuleChange') + +on(type: "netUidRuleChange", callback: Callback\<{ uid: number, rule: NetUidRule }>): void + +注册rule发生改变时的回调,使用callback方式作为异步方法。 + +**需要权限**:ohos.permission.CONNECTIVITY_INTERNAL + +**系统能力**:SystemCapability.Communication.NetManager.Core + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| -------- | ---------------------------------- | ---- | ------------------------------------------------------------ | +| type | netUidRuleChange | 是 | rule发生改变的类型 | +| callback | Callback\<{ uid: number, rule: [NetUidRule](#netuidrule) }> | 是 | 回调函数。注册rule发生改变时的调用。 | + +**示例:** + +```js +policy.on('netUidRuleChange', (data) => { + this.log('on netUidRuleChange:' + JSON.stringify(data)); +}) +``` + +### on('netMeteredIfacesChange') + +on(type: "netMeteredIfacesChange", callback: Callback\>): void + +注册计量iface发生改变时的回调,使用callback方式作为异步方法。 + +**需要权限**:ohos.permission.CONNECTIVITY_INTERNAL + +**系统能力**:SystemCapability.Communication.NetManager.Core + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| -------- | ---------------------------------- | ---- | ------------------------------------------------------------ | +| type | netMeteredIfacesChange | 是 | 计量iface发生改变的类型 | +| callback | Callback\> | 是 | 回调函数。注册计量iface发生改变时调用。 | + +**示例:** + +```js +policy.on('netMeteredIfacesChange', (data) => { + this.log('on netMeteredIfacesChange:' + JSON.stringify(data)); +}) +``` + +### on('netQuotaPolicyChange') + +on(type: "netQuotaPolicyChange", callback: Callback\>): void + +注册计量网络策略发生改变时的回调,使用callback方式作为异步方法。 + +**需要权限**:ohos.permission.CONNECTIVITY_INTERNAL + +**系统能力**:SystemCapability.Communication.NetManager.Core + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| -------- | ---------------------------------- | ---- | ------------------------------------------------------------ | +| type | netQuotaPolicyChange | 是 | 计量网络策略发生改变的类型 | +| callback | Callback\> | 是 | 回调函数。注册计量网络策略发生改变时调用。 | + +**示例:** + +```js +policy.on('netQuotaPolicyChange', (data) => { + this.log('on netQuotaPolicyChange:' + JSON.stringify(data)); +}) +``` + +### on('netBackgroundPolicyChange') + +on(type: "netBackgroundPolicyChange", callback: Callback\): void + +注册后台网络策略发生改变时的回调,使用callback方式作为异步方法。 + +**需要权限**:ohos.permission.CONNECTIVITY_INTERNAL + +**系统能力**:SystemCapability.Communication.NetManager.Core + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| -------- | ---------------------------------- | ---- | ------------------------------------------------------------ | +| type | netBackgroundPolicyChange | 是 | 后台网络策略发生改变的类型 | +| callback | Callback\ | 是 | 回调函数。注册后台网络策略发生改变时调用。 | + +**示例:** + +```js +policy.on('netBackgroundPolicyChange', (data) => { + this.log('on netBackgroundPolicyChange:' + JSON.stringify(data)); +}) +``` + +## NetBackgroundPolicy + +后台网络策略。 + +**系统能力**:以下各项对应的系统能力均为SystemCapability.Communication.NetManager.Core。 + +| 参数名 | 值 | 说明 | +| ------------------------ | ---- | ---------------------- | +| NET_BACKGROUND_POLICY_NONE | 0 | 默认值。 | +| NET_BACKGROUND_POLICY_ENABLE | 1 | 应用在后台可以使用计量网路。 | +| NET_BACKGROUND_POLICY_DISABLE | 2 | 应用在后台不可以使用计量网路。 | +| NET_BACKGROUND_POLICY_ALLOW_LIST | 3 | 只有应用指定的列表在后台可以使用计量网络。 | + +## NetQuotaPolicy + +计量网络策略。 + +**系统能力**:以下各项对应的系统能力均为SystemCapability.Communication.NetManager.Core。 + +| 参数名 | 类型 | 说明 | +| ----------------------- | ----------------------------------- | ------------------------------------------------------------ | +| netType | [NetBearType](js-apis-net-connection.md#netbeartype) | 网络类型。 | +| iccid | string | 计量蜂窝网络的SIM卡的标识值。以太网,wifi网络不会用到 | +| ident | string | 计量蜂窝网络中配合iccid联合使用。以太网,wifi网络单独使用。用于标记类型。 | +| periodDuration | string | 计量开始时间。 | +| warningBytes | number | 发出警告的流量阈值。 | +| limitBytes | number | 流量设置的配额。 | +| lastWarningRemind | string | 最新一次发出警告的时间。 | +| lastLimitRemind | string | 最新一次配额耗尽的时间。 | +| metered | string | 是否为计量网络。 | +| limitAction | [LimitAction](#limitaction) | 到达流量限制后的动作。 | + +## LimitAction + +限制动作。 + +**系统能力**:以下各项对应的系统能力均为SystemCapability.Communication.NetManager.Core。 + +| 参数名 | 值 | 说明 | +| ---------------------- | ----- | ------------ | +| LIMIT_ACTION_NONE | -1 | 默认值。 | +| LIMIT_ACTION_DISABLE | 0 | 当配额策略达到限制时,访问被禁用。 | +| LIMIT_ACTION_AUTO_BILL| 1 | 当配额策略达到限制时,用户将自动计费。 | + +## NetUidRule + +计量网络规则。 + +**系统能力**:以下各项对应的系统能力均为SystemCapability.Communication.NetManager.Core。 + +| 参数名 | 值 | 说明 | +| ---------------------- | ----- | ------------ | +| NET_RULE_NONE | 0 | 默认规则 | +| NET_RULE_ALLOW_METERED_FOREGROUND | 1 | 允许前台访问计量网络 | +| NET_RULE_ALLOW_METERED | 2 | 允许访问计量网络 | +| NET_RULE_REJECT_METERED | 4 | 拒绝访问计量网络 | +| NET_RULE_ALLOW_ALL | 32 | 允许访问所有网络 | +| NET_RULE_REJECT_ALL | 64 | 拒绝访问所有网络 | + +## RemindType + +提醒类型。 + +**系统能力**:以下各项对应的系统能力均为SystemCapability.Communication.NetManager.Core。 + +| 参数名 | 值 | 说明 | +| ---------------------- | - | ------- | +| REMIND_TYPE_WARNING | 1 | 警告提醒 | +| REMIND_TYPE_LIMIT | 2 | 限制提醒 | + +## NetUidPolicy + +应用对应的网络策略。 + +**系统能力**:以下各项对应的系统能力均为SystemCapability.Communication.NetManager.Core。 + +| 参数名 | 值 | 说明 | +| ---------------------- | ----- | ------------ | +| NET_POLICY_NONE | 0 | 默认网络策略 | +| NET_POLICY_ALLOW_METERED_BACKGROUND | 1 | 允许应用在后台访问计量网络 | +| NET_POLICY_REJECT_METERED_BACKGROUND | 2 | 拒绝应用在后台访问计量网络 | diff --git a/zh-cn/application-dev/reference/apis/js-apis-net-sharing.md b/zh-cn/application-dev/reference/apis/js-apis-net-sharing.md index 170a07f983e910b39e3933a53a9a1c89d319f8af..75166c2be9e4fb15c7dcfa845b37c7d99421f167 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-net-sharing.md +++ b/zh-cn/application-dev/reference/apis/js-apis-net-sharing.md @@ -1,6 +1,6 @@ # @ohos.net.sharing (网络共享管理) -网络共享管理分享设备已有网络给其他连接设备,支持Wi-Fi热点共享和蓝牙共享,同时提供网络共享状态、共享流量查询功能。 +网络共享管理分享设备已有网络给其他连接设备,支持Wi-Fi热点共享、蓝牙共享和USB共享,同时提供网络共享状态、共享流量查询功能。 > **说明:** > @@ -30,6 +30,15 @@ isSharingSupported(callback: AsyncCallback\): void | -------- | --------------------------------------- | ---- | ---------- | | callback | AsyncCallback\ | 是 | 回调函数,返回true代表支持网络共享。 | +**错误码:** + +| 错误码ID | 错误信息 | +| ------- | -------------------------------------------- | +| 201 | Permission denied. | +| 2200002 | Operation failed. Cannot connect to service. | +| 2200003 | System internal error. | +| 2202011 | Cannot get network sharing configuration. | + **示例:** ```js @@ -57,6 +66,15 @@ isSharingSupported(): Promise\ | --------------------------------- | ------------------------------------- | | Promise\ | 以Promise形式返回是否支持共享结果。 | +**错误码:** + +| 错误码ID | 错误信息 | +| ------- | -------------------------------------------- | +| 201 | Permission denied. | +| 2200002 | Operation failed. Cannot connect to service. | +| 2200003 | System internal error. | +| 2202011 | Cannot get network sharing configuration. | + **示例:** ```js @@ -85,6 +103,14 @@ isSharing(callback: AsyncCallback\): void | -------- | --------------------------------------- | ---- | ---------- | | callback | AsyncCallback\ | 是 | 回调函数,返回true代表网络共享中。 | +**错误码:** + +| 错误码ID | 错误信息 | +| ------- | -------------------------------------------- | +| 201 | Permission denied. | +| 2200002 | Operation failed. Cannot connect to service. | +| 2200003 | System internal error. | + **示例:** ```js @@ -112,6 +138,14 @@ isSharing(): Promise\ | --------------------------------- | ------------------------------------- | | Promise\ | 以Promise形式返回网络共享状态结果,返回true代表网络共享中。 | +**错误码:** + +| 错误码ID | 错误信息 | +| ------- | -------------------------------------------- | +| 201 | Permission denied. | +| 2200002 | Operation failed. Cannot connect to service. | +| 2200003 | System internal error. | + **示例:** ```js @@ -141,6 +175,21 @@ startSharing(type: SharingIfaceType, callback: AsyncCallback\): void | type | [SharingIfaceType](#sharingifacetype) | 是 | 共享类型,0:Wi-Fi 1:USB 2:BLUETOOTH。 | | callback | AsyncCallback\ | 是 | 回调函数,返回开启网络共享结果。 | +**错误码:** + +| 错误码ID | 错误信息 | +| ------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 2200001 | Invalid parameter value. | +| 2200002 | Operation failed. Cannot connect to service. | +| 2200003 | System internal error. | +| 2202004 | Try to share an unavailable iface. | +| 2202005 | WiFi sharing failed. | +| 2202006 | Bluetooth sharing failed. | +| 2202009 | Network share enable forwarding error. | +| 2202011 | Cannot get network sharing configuration. | + **示例:** ```js @@ -174,6 +223,21 @@ startSharing(type: SharingIfaceType): Promise\ | --------------------------------- | ------------------------------------- | | Promise\ | 以Promise形式返回开启共享执行结果。 | +**错误码:** + +| 错误码ID | 错误信息 | +| ------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 2200001 | Invalid parameter value. | +| 2200002 | Operation failed. Cannot connect to service. | +| 2200003 | System internal error. | +| 2202004 | Try to share an unavailable iface. | +| 2202005 | WiFi sharing failed. | +| 2202006 | Bluetooth sharing failed. | +| 2202009 | Network share enable forwarding error. | +| 2202011 | Cannot get network sharing configuration. | + **示例:** ```js @@ -204,6 +268,19 @@ stopSharing(type: SharingIfaceType, callback: AsyncCallback\): void | type | [SharingIfaceType](#sharingifacetype) | 是 | 共享类型,0:Wi-Fi 1:USB 2:BLUETOOTH。 | | callback | AsyncCallback\ | 是 | 回调函数,返回停止网络共享结果。 | +**错误码:** + +| 错误码ID | 错误信息 | +| ------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 2200001 | Invalid parameter value. | +| 2200002 | Operation failed. Cannot connect to service. | +| 2200003 | System internal error. | +| 2202005 | WiFi sharing failed. | +| 2202006 | Bluetooth sharing failed. | +| 2202011 | Cannot get network sharing configuration. | + **示例:** ```js @@ -237,6 +314,19 @@ stopSharing(type: SharingIfaceType): Promise\ | --------------------------------- | ------------------------------------- | | Promise\ | 以Promise形式返回关闭共享执行结果。 | +**错误码:** + +| 错误码ID | 错误信息 | +| ------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 2200001 | Invalid parameter value. | +| 2200002 | Operation failed. Cannot connect to service. | +| 2200003 | System internal error. | +| 2202005 | WiFi sharing failed. | +| 2202006 | Bluetooth sharing failed. | +| 2202011 | Cannot get network sharing configuration. | + **示例:** ```js @@ -266,6 +356,14 @@ getStatsRxBytes(callback: AsyncCallback\): void | -------- | --------------------------------------- | ---- | ---------- | | callback | AsyncCallback\ | 是 | 回调函数,number代表数据量,单位:KB。 | +**错误码:** + +| 错误码ID | 错误信息 | +| ------- | -------------------------------------------- | +| 201 | Permission denied. | +| 2200002 | Operation failed. Cannot connect to service. | +| 2200003 | System internal error. | + **示例:** ```js @@ -293,6 +391,14 @@ getStatsRxBytes(): Promise\ | --------------------------------- | ------------------------------------- | | Promise\ | 以Promise形式返回共享网络接收数据量,单位:KB。 | +**错误码:** + +| 错误码ID | 错误信息 | +| ------- | -------------------------------------------- | +| 201 | Permission denied. | +| 2200002 | Operation failed. Cannot connect to service. | +| 2200003 | System internal error. | + **示例:** ```js @@ -321,6 +427,14 @@ getStatsTxBytes(callback: AsyncCallback\): void | -------- | --------------------------------------- | ---- | ---------- | | callback | AsyncCallback\ | 是 | 回调函数,number代表数据量,单位:KB。 | +**错误码:** + +| 错误码ID | 错误信息 | +| ------- | -------------------------------------------- | +| 201 | Permission denied. | +| 2200002 | Operation failed. Cannot connect to service. | +| 2200003 | System internal error. | + **示例:** ```js @@ -348,6 +462,14 @@ getStatsTxBytes(): Promise\ | --------------------------------- | ------------------------------------- | | Promise\ | 以Promise形式返回共享网络发送数据量,单位:KB。 | +**错误码:** + +| 错误码ID | 错误信息 | +| ------- | -------------------------------------------- | +| 201 | Permission denied. | +| 2200002 | Operation failed. Cannot connect to service. | +| 2200003 | System internal error. | + **示例:** ```js @@ -376,6 +498,14 @@ getStatsTotalBytes(callback: AsyncCallback\): void | -------- | --------------------------------------- | ---- | ---------- | | callback | AsyncCallback\ | 是 | 回调函数,number代表数据量,单位:KB。 | +**错误码:** + +| 错误码ID | 错误信息 | +| ------- | -------------------------------------------- | +| 201 | Permission denied. | +| 2200002 | Operation failed. Cannot connect to service. | +| 2200003 | System internal error. | + **示例:** ```js @@ -403,6 +533,14 @@ getStatsTotalBytes(): Promise\ | --------------------------------- | ------------------------------------- | | Promise\ | 以Promise形式返回共享网络总数据量,单位:KB。 | +**错误码:** + +| 错误码ID | 错误信息 | +| ------- | -------------------------------------------- | +| 201 | Permission denied. | +| 2200002 | Operation failed. Cannot connect to service. | +| 2200003 | System internal error. | + **示例:** ```js @@ -432,6 +570,16 @@ getSharingIfaces(state: SharingIfaceState, callback: AsyncCallback\> | 是 | 回调函数,返回指定状态的网卡名称列表。 | +**错误码:** + +| 错误码ID | 错误信息 | +| ------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 2200001 | Invalid parameter value. | +| 2200002 | Operation failed. Cannot connect to service. | +| 2200003 | System internal error. | + **示例:** ```js @@ -466,6 +614,16 @@ getSharingIfaces(state: SharingIfaceState): Promise\> | --------------------------------- | ------------------------------------- | | Promise\> | 以Promise形式返回指定状态网卡名称列表。 | +**错误码:** + +| 错误码ID | 错误信息 | +| ------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 2200001 | Invalid parameter value. | +| 2200002 | Operation failed. Cannot connect to service. | +| 2200003 | System internal error. | + **示例:** ```js @@ -496,6 +654,16 @@ getSharingState(type: SharingIfaceType, callback: AsyncCallback\ | 是 | 回调函数,返回指定类型网络共享状态。 | +**错误码:** + +| 错误码ID | 错误信息 | +| ------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 2200001 | Invalid parameter value. | +| 2200002 | Operation failed. Cannot connect to service. | +| 2200003 | System internal error. | + **示例:** ```js @@ -524,6 +692,16 @@ getSharingState(type: SharingIfaceType): Promise\ | -------- | --------------------------------------- | ---- | ---------- | | type | [SharingIfaceType](#sharingifacetype) | 是 | 共享类型,0:Wi-Fi 1:USB 2:BLUETOOTH。 | +**错误码:** + +| 错误码ID | 错误信息 | +| ------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 2200001 | Invalid parameter value. | +| 2200002 | Operation failed. Cannot connect to service. | +| 2200003 | System internal error. | + **返回值:** | 类型 | 说明 | @@ -560,6 +738,16 @@ getSharableRegexes(type: SharingIfaceType, callback: AsyncCallback\> | 是 | 回调函数,返回指定类型网卡名称正则表达式列表。 | +**错误码:** + +| 错误码ID | 错误信息 | +| ------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 2200001 | Invalid parameter value. | +| 2200002 | Operation failed. Cannot connect to service. | +| 2200003 | System internal error. | + **示例:** ```js @@ -594,6 +782,16 @@ getSharableRegexes(type: SharingIfaceType): Promise\> | --------------------------------- | ------------------------------------- | | Promise\> | 以Promise形式返回正则表达式列表。 | +**错误码:** + +| 错误码ID | 错误信息 | +| ------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 2200001 | Invalid parameter value. | +| 2200002 | Operation failed. Cannot connect to service. | +| 2200003 | System internal error. | + **示例:** ```js @@ -624,6 +822,13 @@ on(type: 'sharingStateChange', callback: Callback\): void | type | string | 是 | 事件名称。 | | callback | AsyncCallback\ | 是 | 回调函数,返回网络共享状态。 | +**错误码:** + +| 错误码ID | 错误信息 | +| ------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | + **示例:** ```js @@ -651,6 +856,13 @@ off(type: 'sharingStateChange', callback?: Callback\): void | type | string | 是 | 事件名称。 | | callback | AsyncCallback\ | 否 | 回调函数,返回网络共享状态。 | +**错误码:** + +| 错误码ID | 错误信息 | +| ------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | + **示例:** ```js @@ -678,6 +890,13 @@ on(type: 'interfaceSharingStateChange', callback: Callback\<{ type: SharingIface | type | string | 是 | 事件名称。 | | callback | AsyncCallback\<{ type: [SharingIfaceType](#sharingifacetype), iface: string, state: SharingIfaceState(#sharingifacestate) }> | 是 | 回调函数,指定网卡共享状态变化时调用。 | +**错误码:** + +| 错误码ID | 错误信息 | +| ------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | + **示例:** ```js @@ -705,6 +924,13 @@ off(type: 'interfaceSharingStateChange', callback?: Callback\<{ type: SharingIfa | type | string | 是 | 事件名称。 | | callback | AsyncCallback\<{ type: [SharingIfaceType](#sharingifacetype), iface: string, state: SharingIfaceState(#sharingifacestate) }> | 否 | 回调函数,注销指定网卡共享状态变化通知。 | +**错误码:** + +| 错误码ID | 错误信息 | +| ------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | + **示例:** ```js @@ -732,6 +958,13 @@ on(type: 'sharingUpstreamChange', callback: Callback\): void | type | string | 是 | 事件名称。 | | callback | AsyncCallback\ | 是 | 回调函数,上行网络变化时调用。 | +**错误码:** + +| 错误码ID | 错误信息 | +| ------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | + **示例:** ```js @@ -759,6 +992,13 @@ off(type: 'sharingUpstreamChange', callback?: Callback\): void | type | string | 是 | 事件名称。 | | callback | AsyncCallback\ | 否 | 回调函数,注销上行网络变化事件。 | +**错误码:** + +| 错误码ID | 错误信息 | +| ------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | + **示例:** ```js @@ -783,7 +1023,7 @@ sharing.off('sharingUpstreamChange', (data) => { ## SharingIfaceType -网络共享类型(暂不支持USB共享)。 +网络共享类型。 **系统接口**:此接口为系统接口。 diff --git a/zh-cn/application-dev/reference/apis/js-apis-notification.md b/zh-cn/application-dev/reference/apis/js-apis-notification.md index 5dd2d435904ed85ce1f21329d384c260d8e7dc06..b9b5f24a3c572b586124b379039bca1eaa99cdb2 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-notification.md +++ b/zh-cn/application-dev/reference/apis/js-apis-notification.md @@ -35,7 +35,7 @@ publish(request: NotificationRequest, callback: AsyncCallback\): void // publish回调 function publishCallback(err) { if (err.code) { - console.info("publish failed " + JSON.stringify(err)); + console.error(`publish failed, code is ${err.code}`); } else { console.info("publish success"); } @@ -55,8 +55,6 @@ let notificationRequest = { Notification.publish(notificationRequest, publishCallback); ``` - - ## Notification.publish publish(request: NotificationRequest): Promise\ @@ -118,7 +116,7 @@ publish(request: NotificationRequest, userId: number, callback: AsyncCallback\ @@ -316,8 +312,6 @@ Notification.cancelAll().then(() => { }); ``` - - ## Notification.addSlot addSlot(slot: NotificationSlot, callback: AsyncCallback\): void @@ -355,8 +349,6 @@ let notificationSlot = { Notification.addSlot(notificationSlot, addSlotCallBack); ``` - - ## Notification.addSlot addSlot(slot: NotificationSlot): Promise\ @@ -387,8 +379,6 @@ Notification.addSlot(notificationSlot).then(() => { }); ``` - - ## Notification.addSlot addSlot(type: SlotType, callback: AsyncCallback\): void @@ -418,8 +408,6 @@ function addSlotCallBack(err) { Notification.addSlot(Notification.SlotType.SOCIAL_COMMUNICATION, addSlotCallBack); ``` - - ## Notification.addSlot addSlot(type: SlotType): Promise\ @@ -442,8 +430,6 @@ Notification.addSlot(Notification.SlotType.SOCIAL_COMMUNICATION).then(() => { }); ``` - - ## Notification.addSlots addSlots(slots: Array\, callback: AsyncCallback\): void @@ -485,8 +471,6 @@ notificationSlotArray[0] = notificationSlot; Notification.addSlots(notificationSlotArray, addSlotsCallBack); ``` - - ## Notification.addSlots addSlots(slots: Array\): Promise\ @@ -521,8 +505,6 @@ Notification.addSlots(notificationSlotArray).then(() => { }); ``` - - ## Notification.getSlot getSlot(slotType: SlotType, callback: AsyncCallback\): void @@ -553,8 +535,6 @@ let slotType = Notification.SlotType.SOCIAL_COMMUNICATION; Notification.getSlot(slotType, getSlotCallback); ``` - - ## Notification.getSlot getSlot(slotType: SlotType): Promise\ @@ -584,8 +564,6 @@ Notification.getSlot(slotType).then((data) => { }); ``` - - ## Notification.getSlots getSlots(callback: AsyncCallback>): void @@ -614,8 +592,6 @@ function getSlotsCallback(err, data) { Notification.getSlots(getSlotsCallback); ``` - - ## Notification.getSlots getSlots(): Promise\> @@ -638,8 +614,6 @@ Notification.getSlots().then((data) => { }); ``` - - ## Notification.removeSlot removeSlot(slotType: SlotType, callback: AsyncCallback\): void @@ -670,8 +644,6 @@ let slotType = Notification.SlotType.SOCIAL_COMMUNICATION; Notification.removeSlot(slotType,removeSlotCallback); ``` - - ## Notification.removeSlot removeSlot(slotType: SlotType): Promise\ @@ -695,8 +667,6 @@ Notification.removeSlot(slotType).then(() => { }); ``` - - ## Notification.removeAllSlots removeAllSlots(callback: AsyncCallback\): void @@ -724,8 +694,6 @@ function removeAllCallBack(err) { Notification.removeAllSlots(removeAllCallBack); ``` - - ## Notification.removeAllSlots removeAllSlots(): Promise\ @@ -742,8 +710,6 @@ Notification.removeAllSlots().then(() => { }); ``` - - ## Notification.subscribe subscribe(subscriber: NotificationSubscriber, info: NotificationSubscribeInfo, callback: AsyncCallback\): void @@ -787,8 +753,6 @@ let info = { Notification.subscribe(subscriber, info, subscribeCallback); ``` - - ## Notification.subscribe subscribe(subscriber: NotificationSubscriber, callback: AsyncCallback\): void @@ -827,8 +791,6 @@ let subscriber = { Notification.subscribe(subscriber, subscribeCallback); ``` - - ## Notification.subscribe subscribe(subscriber: NotificationSubscriber, info?: NotificationSubscribeInfo): Promise\ @@ -862,8 +824,6 @@ Notification.subscribe(subscriber).then(() => { }); ``` - - ## Notification.unsubscribe unsubscribe(subscriber: NotificationSubscriber, callback: AsyncCallback\): void @@ -902,8 +862,6 @@ let subscriber = { Notification.unsubscribe(subscriber, unsubscribeCallback); ``` - - ## Notification.unsubscribe unsubscribe(subscriber: NotificationSubscriber): Promise\ @@ -936,8 +894,6 @@ Notification.unsubscribe(subscriber).then(() => { }); ``` - - ## Notification.enableNotification enableNotification(bundle: BundleOption, enable: boolean, callback: AsyncCallback\): void @@ -974,8 +930,6 @@ let bundle = { Notification.enableNotification(bundle, false, enableNotificationCallback); ``` - - ## Notification.enableNotification enableNotification(bundle: BundleOption, enable: boolean): Promise\ @@ -1006,8 +960,6 @@ Notification.enableNotification(bundle, false).then(() => { }); ``` - - ## Notification.isNotificationEnabled isNotificationEnabled(bundle: BundleOption, callback: AsyncCallback\): void @@ -1043,8 +995,6 @@ let bundle = { Notification.isNotificationEnabled(bundle, isNotificationEnabledCallback); ``` - - ## Notification.isNotificationEnabled isNotificationEnabled(bundle: BundleOption): Promise\ @@ -1080,8 +1030,6 @@ Notification.isNotificationEnabled(bundle).then((data) => { }); ``` - - ## Notification.isNotificationEnabled isNotificationEnabled(callback: AsyncCallback\): void @@ -1114,8 +1062,6 @@ function isNotificationEnabledCallback(err, data) { Notification.isNotificationEnabled(isNotificationEnabledCallback); ``` - - ## Notification.isNotificationEnabled isNotificationEnabled(): Promise\ @@ -1148,8 +1094,6 @@ Notification.isNotificationEnabled().then((data) => { }); ``` - - ## Notification.displayBadge displayBadge(bundle: BundleOption, enable: boolean, callback: AsyncCallback\): void @@ -1186,8 +1130,6 @@ let bundle = { Notification.displayBadge(bundle, false, displayBadgeCallback); ``` - - ## Notification.displayBadge displayBadge(bundle: BundleOption, enable: boolean): Promise\ @@ -1218,8 +1160,6 @@ Notification.displayBadge(bundle, false).then(() => { }); ``` - - ## Notification.isBadgeDisplayed isBadgeDisplayed(bundle: BundleOption, callback: AsyncCallback\): void @@ -1255,8 +1195,6 @@ let bundle = { Notification.isBadgeDisplayed(bundle, isBadgeDisplayedCallback); ``` - - ## Notification.isBadgeDisplayed isBadgeDisplayed(bundle: BundleOption): Promise\ @@ -1292,8 +1230,6 @@ Notification.isBadgeDisplayed(bundle).then((data) => { }); ``` - - ## Notification.setSlotByBundle setSlotByBundle(bundle: BundleOption, slot: NotificationSlot, callback: AsyncCallback\): void @@ -1333,8 +1269,6 @@ let notificationSlot = { Notification.setSlotByBundle(bundle, notificationSlot, setSlotByBundleCallback); ``` - - ## Notification.setSlotByBundle setSlotByBundle(bundle: BundleOption, slot: NotificationSlot): Promise\ @@ -1368,8 +1302,6 @@ Notification.setSlotByBundle(bundle, notificationSlot).then(() => { }); ``` - - ## Notification.getSlotsByBundle getSlotsByBundle(bundle: BundleOption, callback: AsyncCallback>): void @@ -1405,8 +1337,6 @@ let bundle = { Notification.getSlotsByBundle(bundle, getSlotsByBundleCallback); ``` - - ## Notification.getSlotsByBundle getSlotsByBundle(bundle: BundleOption): Promise> @@ -1442,8 +1372,6 @@ Notification.getSlotsByBundle(bundle).then((data) => { }); ``` - - ## Notification.getSlotNumByBundle getSlotNumByBundle(bundle: BundleOption, callback: AsyncCallback\): void @@ -1479,8 +1407,6 @@ let bundle = { Notification.getSlotNumByBundle(bundle, getSlotNumByBundleCallback); ``` - - ## Notification.getSlotNumByBundle getSlotNumByBundle(bundle: BundleOption): Promise\ @@ -1516,8 +1442,6 @@ Notification.getSlotNumByBundle(bundle).then((data) => { }); ``` - - ## Notification.remove remove(bundle: BundleOption, notificationKey: NotificationKey, reason: RemoveReason, callback: AsyncCallback\): void @@ -1560,8 +1484,6 @@ let reason = Notification.RemoveReason.CLICK_REASON_REMOVE; Notification.remove(bundle, notificationKey, reason, removeCallback); ``` - - ## Notification.remove remove(bundle: BundleOption, notificationKey: NotificationKey, reason: RemoveReason): Promise\ @@ -1598,8 +1520,6 @@ Notification.remove(bundle, notificationKey, reason).then(() => { }); ``` - - ## Notification.remove remove(hashCode: string, reason: RemoveReason, callback: AsyncCallback\): void @@ -1636,8 +1556,6 @@ let reason = Notification.RemoveReason.CANCEL_REASON_REMOVE; Notification.remove(hashCode, reason, removeCallback); ``` - - ## Notification.remove remove(hashCode: string, reason: RemoveReason): Promise\ @@ -1667,8 +1585,6 @@ Notification.remove(hashCode, reason).then(() => { }); ``` - - ## Notification.removeAll removeAll(bundle: BundleOption, callback: AsyncCallback\): void @@ -1704,8 +1620,6 @@ let bundle = { Notification.removeAll(bundle, removeAllCallback); ``` - - ## Notification.removeAll removeAll(callback: AsyncCallback\): void @@ -1738,8 +1652,6 @@ function removeAllCallback(err) { Notification.removeAll(removeAllCallback); ``` - - ## Notification.removeAll removeAll(bundle?: BundleOption): Promise\ @@ -1861,8 +1773,6 @@ function getAllActiveNotificationsCallback(err, data) { Notification.getAllActiveNotifications(getAllActiveNotificationsCallback); ``` - - ## Notification.getAllActiveNotifications getAllActiveNotifications(): Promise\\> @@ -1889,8 +1799,6 @@ Notification.getAllActiveNotifications().then((data) => { }); ``` - - ## Notification.getActiveNotificationCount getActiveNotificationCount(callback: AsyncCallback\): void @@ -1919,8 +1827,6 @@ function getActiveNotificationCountCallback(err, data) { Notification.getActiveNotificationCount(getActiveNotificationCountCallback); ``` - - ## Notification.getActiveNotificationCount getActiveNotificationCount(): Promise\ @@ -1943,8 +1849,6 @@ Notification.getActiveNotificationCount().then((data) => { }); ``` - - ## Notification.getActiveNotifications getActiveNotifications(callback: AsyncCallback>): void @@ -1973,8 +1877,6 @@ function getActiveNotificationsCallback(err, data) { Notification.getActiveNotifications(getActiveNotificationsCallback); ``` - - ## Notification.getActiveNotifications getActiveNotifications(): Promise\\> @@ -1997,8 +1899,6 @@ Notification.getActiveNotifications().then((data) => { }); ``` - - ## Notification.cancelGroup8+ cancelGroup(groupName: string, callback: AsyncCallback\): void @@ -2030,8 +1930,6 @@ let groupName = "GroupName"; Notification.cancelGroup(groupName, cancelGroupCallback); ``` - - ## Notification.cancelGroup8+ cancelGroup(groupName: string): Promise\ @@ -2055,8 +1953,6 @@ Notification.cancelGroup(groupName).then(() => { }); ``` - - ## Notification.removeGroupByBundle8+ removeGroupByBundle(bundle: BundleOption, groupName: string, callback: AsyncCallback\): void @@ -2094,8 +1990,6 @@ let groupName = "GroupName"; Notification.removeGroupByBundle(bundleOption, groupName, removeGroupByBundleCallback); ``` - - ## Notification.removeGroupByBundle8+ removeGroupByBundle(bundle: BundleOption, groupName: string): Promise\ @@ -2125,8 +2019,6 @@ Notification.removeGroupByBundle(bundleOption, groupName).then(() => { }); ``` - - ## Notification.setDoNotDisturbDate8+ setDoNotDisturbDate(date: DoNotDisturbDate, callback: AsyncCallback\): void @@ -2166,8 +2058,6 @@ let doNotDisturbDate = { Notification.setDoNotDisturbDate(doNotDisturbDate, setDoNotDisturbDateCallback); ``` - - ## Notification.setDoNotDisturbDate8+ setDoNotDisturbDate(date: DoNotDisturbDate): Promise\ @@ -2241,8 +2131,6 @@ let userId = 1 Notification.setDoNotDisturbDate(doNotDisturbDate, userId, setDoNotDisturbDateCallback); ``` - - ## Notification.setDoNotDisturbDate8+ setDoNotDisturbDate(date: DoNotDisturbDate, userId: number): Promise\ @@ -2311,8 +2199,6 @@ function getDoNotDisturbDateCallback(err, data) { Notification.getDoNotDisturbDate(getDoNotDisturbDateCallback); ``` - - ## Notification.getDoNotDisturbDate8+ getDoNotDisturbDate(): Promise\ @@ -2375,8 +2261,6 @@ let userId = 1; Notification.getDoNotDisturbDate(userId, getDoNotDisturbDateCallback); ``` - - ## Notification.getDoNotDisturbDate8+ getDoNotDisturbDate(userId: number): Promise\ @@ -2444,8 +2328,6 @@ function supportDoNotDisturbModeCallback(err,data) { Notification.supportDoNotDisturbMode(supportDoNotDisturbModeCallback); ``` - - ## Notification.supportDoNotDisturbMode8+ supportDoNotDisturbMode(): Promise\ @@ -2472,8 +2354,6 @@ Notification.supportDoNotDisturbMode().then((data) => { }); ``` - - ## Notification.isSupportTemplate8+ isSupportTemplate(templateName: string, callback: AsyncCallback\): void @@ -2504,8 +2384,6 @@ function isSupportTemplateCallback(err, data) { Notification.isSupportTemplate(templateName, isSupportTemplateCallback); ``` - - ## Notification.isSupportTemplate8+ isSupportTemplate(templateName: string): Promise\ @@ -2536,8 +2414,6 @@ Notification.isSupportTemplate(templateName).then((data) => { }); ``` - - ## Notification.requestEnableNotification8+ requestEnableNotification(callback: AsyncCallback\): void @@ -2566,8 +2442,6 @@ function requestEnableNotificationCallback(err) { Notification.requestEnableNotification(requestEnableNotificationCallback); ``` - - ## Notification.requestEnableNotification8+ requestEnableNotification(): Promise\ @@ -2620,8 +2494,6 @@ let enable = true; Notification.enableDistributed(enable, enabledNotificationCallback); ``` - - ## Notification.enableDistributed8+ enableDistributed(enable: boolean): Promise\ @@ -2678,8 +2550,6 @@ function isDistributedEnabledCallback(err, data) { Notification.isDistributedEnabled(isDistributedEnabledCallback); ``` - - ## Notification.isDistributedEnabled8+ isDistributedEnabled(): Promise\ @@ -2743,8 +2613,6 @@ let enable = true; Notification.enableDistributedByBundle(bundle, enable, enableDistributedByBundleCallback); ``` - - ## Notification.enableDistributedByBundle8+ enableDistributedByBundle(bundle: BundleOption, enable: boolean): Promise\ @@ -2814,8 +2682,6 @@ let bundle = { Notification.isDistributedEnabledByBundle(bundle, isDistributedEnabledByBundleCallback); ``` - - ## Notification.isDistributedEnabledByBundle8+ isDistributedEnabledByBundle(bundle: BundleOption): Promise\ @@ -2885,8 +2751,6 @@ function getDeviceRemindTypeCallback(err,data) { Notification.getDeviceRemindType(getDeviceRemindTypeCallback); ``` - - ## Notification.getDeviceRemindType8+ getDeviceRemindType(): Promise\ @@ -3381,8 +3245,6 @@ Notification.getSyncNotificationEnabledWithoutApp(userId).then((data) => { }); ``` - - ## NotificationSubscriber 作为订阅通知接口[subscribe](#notificationsubscribe)的入参,提供订阅者接收到新通知、取消通知等的回调方法。 @@ -3797,8 +3659,6 @@ Notification.enableNotification(bundle, false).then(() => { | bundle | string | 是 | 是 | 应用的包信息。 | | uid | number | 是 | 是 | 用户ID。 | - - ## NotificationKey **系统能力**:以下各项对应的系统能力均为SystemCapability.Notification.Notification diff --git a/zh-cn/application-dev/reference/apis/js-apis-notificationManager.md b/zh-cn/application-dev/reference/apis/js-apis-notificationManager.md index 50072a29d3d45636495c043a45be97da0484ee6d..4919feba1d401d7a4d1961c86dba7e282e106969 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-notificationManager.md +++ b/zh-cn/application-dev/reference/apis/js-apis-notificationManager.md @@ -44,7 +44,7 @@ publish(request: NotificationRequest, callback: AsyncCallback\): void //publish回调 function publishCallback(err) { if (err) { - console.info("publish failed " + JSON.stringify(err)); + console.error(`publish failed, code is ${err.code}, message is ${err.message}`); } else { console.info("publish success"); } @@ -148,7 +148,7 @@ publish(request: NotificationRequest, userId: number, callback: AsyncCallback\): void // cancel回调 function cancelCallback(err) { if (err) { - console.info("cancel failed " + JSON.stringify(err)); + console.error(`cancel failed, code is ${err.code}, message is ${err.message}`); } else { console.info("cancel success"); } @@ -325,7 +325,7 @@ cancel(id: number, callback: AsyncCallback\): void // cancel回调 function cancelCallback(err) { if (err) { - console.info("cancel failed " + JSON.stringify(err)); + console.error(`cancel failed, code is ${err.code}, message is ${err.message}`); } else { console.info("cancel success"); } @@ -361,7 +361,7 @@ cancelAll(callback: AsyncCallback\): void // cancel回调 function cancelAllCallback(err) { if (err) { - console.info("cancelAll failed " + JSON.stringify(err)); + console.error(`cancelAll failed, code is ${err.code}, message is ${err.message}`); } else { console.info("cancelAll success"); } @@ -426,7 +426,7 @@ addSlot(slot: NotificationSlot, callback: AsyncCallback\): void // addslot回调 function addSlotCallBack(err) { if (err) { - console.info("addSlot failed " + JSON.stringify(err)); + console.error(`addSlot failed, code is ${err.code}, message is ${err.message}`); } else { console.info("addSlot success"); } @@ -505,7 +505,7 @@ addSlot(type: SlotType, callback: AsyncCallback\): void // addslot回调 function addSlotCallBack(err) { if (err) { - console.info("addSlot failed " + JSON.stringify(err)); + console.error(`addSlot failed, code is ${err.code}, message is ${err.message}`); } else { console.info("addSlot success"); } @@ -576,7 +576,7 @@ addSlots(slots: Array\, callback: AsyncCallback\): voi // addSlots回调 function addSlotsCallBack(err) { if (err) { - console.info("addSlots failed " + JSON.stringify(err)); + console.error(`addSlots failed, code is ${err.code}, message is ${err.message}`); } else { console.info("addSlots success"); } @@ -663,7 +663,7 @@ getSlot(slotType: SlotType, callback: AsyncCallback\): void // getSlot回调 function getSlotCallback(err,data) { if (err) { - console.info("getSlot failed " + JSON.stringify(err)); + console.error(`getSlot failed, code is ${err.code}, message is ${err.message}`); } else { console.info("getSlot success"); } @@ -737,7 +737,7 @@ getSlots(callback: AsyncCallback>): void // getSlots回调 function getSlotsCallback(err,data) { if (err) { - console.info("getSlots failed " + JSON.stringify(err)); + console.error(`getSlots failed, code is ${err.code}, message is ${err.message}`); } else { console.info("getSlots success"); } @@ -804,7 +804,7 @@ removeSlot(slotType: SlotType, callback: AsyncCallback\): void // removeSlot回调 function removeSlotCallback(err) { if (err) { - console.info("removeSlot failed " + JSON.stringify(err)); + console.error(`removeSlot failed, code is ${err.code}, message is ${err.message}`); } else { console.info("removeSlot success"); } @@ -871,7 +871,7 @@ removeAllSlots(callback: AsyncCallback\): void ```ts function removeAllCallBack(err) { if (err) { - console.info("removeAllSlots failed " + JSON.stringify(err)); + console.error(`removeAllSlots failed, code is ${err.code}, message is ${err.message}`); } else { console.info("removeAllSlots success"); } @@ -937,7 +937,7 @@ setNotificationEnable(bundle: BundleOption, enable: boolean, callback: AsyncCall ```ts function setNotificationEnablenCallback(err) { if (err) { - console.info("setNotificationEnablenCallback failed " + JSON.stringify(err)); + console.error(`setNotificationEnablenCallback failed, code is ${err.code}, message is ${err.message}`); } else { console.info("setNotificationEnablenCallback success"); } @@ -1020,7 +1020,7 @@ isNotificationEnabled(bundle: BundleOption, callback: AsyncCallback\): ```ts function isNotificationEnabledCallback(err, data) { if (err) { - console.info("isNotificationEnabled failed " + JSON.stringify(err)); + console.error(`isNotificationEnabled failed, code is ${err.code}, message is ${err.message}`); } else { console.info("isNotificationEnabled success"); } @@ -1106,7 +1106,7 @@ isNotificationEnabled(callback: AsyncCallback\): void ```ts function isNotificationEnabledCallback(err, data) { if (err) { - console.info("isNotificationEnabled failed " + JSON.stringify(err)); + console.error(`isNotificationEnabled failed, code is ${err.code}, message is ${err.message}`); } else { console.info("isNotificationEnabled success"); } @@ -1190,7 +1190,7 @@ displayBadge(bundle: BundleOption, enable: boolean, callback: AsyncCallback\): void ```ts function isBadgeDisplayedCallback(err, data) { if (err) { - console.info("isBadgeDisplayed failed " + JSON.stringify(err)); + console.error(`isBadgeDisplayed failed, code is ${err.code}, message is ${err.message}`); } else { console.info("isBadgeDisplayed success"); } @@ -1362,7 +1362,7 @@ setSlotByBundle(bundle: BundleOption, slot: NotificationSlot, callback: AsyncCal ```ts function setSlotByBundleCallback(err) { if (err) { - console.info("setSlotByBundle failed " + JSON.stringify(err)); + console.error(`setSlotByBundle failed, code is ${err.code}, message is ${err.message}`); } else { console.info("setSlotByBundle success"); } @@ -1451,7 +1451,7 @@ getSlotsByBundle(bundle: BundleOption, callback: AsyncCallback): voi ```ts function getSlotNumByBundleCallback(err, data) { if (err) { - console.info("getSlotNumByBundle failed " + JSON.stringify(err)); + console.error(`getSlotByBundle failed, code is ${err.code}, message is ${err.message}`); } else { console.info("getSlotNumByBundle success"); } @@ -1626,7 +1626,7 @@ getAllActiveNotifications(callback: AsyncCallback>) ```ts function getAllActiveNotificationsCallback(err, data) { if (err) { - console.info("getAllActiveNotifications failed " + JSON.stringify(err)); + console.error(`getAllActiveNotifications failed, code is ${err.code}, message is ${err.message}`); } else { console.info("getAllActiveNotifications success"); } @@ -1696,7 +1696,7 @@ getActiveNotificationCount(callback: AsyncCallback\): void ```ts function getActiveNotificationCountCallback(err, data) { if (err) { - console.info("getActiveNotificationCount failed " + JSON.stringify(err)); + console.error(`getActiveNotificationCount failed, code is ${err.code}, message is ${err.message}`); } else { console.info("getActiveNotificationCount success"); } @@ -1762,7 +1762,7 @@ getActiveNotifications(callback: AsyncCallback>): v ```ts function getActiveNotificationsCallback(err, data) { if (err) { - console.info("getActiveNotifications failed " + JSON.stringify(err)); + console.error(`getActiveNotifications failed, code is ${err.code}, message is ${err.message}`); } else { console.info("getActiveNotifications success"); } @@ -1829,7 +1829,7 @@ cancelGroup(groupName: string, callback: AsyncCallback\): void ```ts function cancelGroupCallback(err) { if (err) { - console.info("cancelGroup failed " + JSON.stringify(err)); + console.error(`cancelGroup failed, code is ${err.code}, message is ${err.message}`); } else { console.info("cancelGroup success"); } @@ -1905,7 +1905,7 @@ removeGroupByBundle(bundle: BundleOption, groupName: string, callback: AsyncCall ```ts function removeGroupByBundleCallback(err) { if (err) { - console.info("removeGroupByBundle failed " + JSON.stringify(err)); + console.error(`removeGroupByBundle failed, code is ${err.code}, message is ${err.message}`); } else { console.info("removeGroupByBundle success"); } @@ -1987,7 +1987,7 @@ setDoNotDisturbDate(date: DoNotDisturbDate, callback: AsyncCallback\): vo ```ts function setDoNotDisturbDateCallback(err) { if (err) { - console.info("setDoNotDisturbDate failed " + JSON.stringify(err)); + console.error(`setDoNotDisturbDate failed, code is ${err.code}, message is ${err.message}`); } else { console.info("setDoNotDisturbDate success"); } @@ -2076,7 +2076,7 @@ setDoNotDisturbDate(date: DoNotDisturbDate, userId: number, callback: AsyncCallb ```ts function setDoNotDisturbDateCallback(err) { if (err) { - console.info("setDoNotDisturbDate failed " + JSON.stringify(err)); + console.error(`setDoNotDisturbDate failed, code is ${err.code}, message is ${err.message}`); } else { console.info("setDoNotDisturbDate success"); } @@ -2169,7 +2169,7 @@ getDoNotDisturbDate(callback: AsyncCallback\): void ```ts function getDoNotDisturbDateCallback(err,data) { if (err) { - console.info("getDoNotDisturbDate failed " + JSON.stringify(err)); + console.error(`getDoNotDisturbDate failed, code is ${err.code}, message is ${err.message}`); } else { console.info("getDoNotDisturbDate success"); } @@ -2246,7 +2246,7 @@ getDoNotDisturbDate(userId: number, callback: AsyncCallback\) ```ts function getDoNotDisturbDateCallback(err,data) { if (err) { - console.info("getDoNotDisturbDate failed " + JSON.stringify(err)); + console.error(`getDoNotDisturbDate failed, code is ${err.code}, message is ${err.message}`); } else { console.info("getDoNotDisturbDate success"); } @@ -2332,7 +2332,7 @@ supportDoNotDisturbMode(callback: AsyncCallback\): void ```ts function supportDoNotDisturbModeCallback(err,data) { if (err) { - console.info("supportDoNotDisturbMode failed " + JSON.stringify(err)); + console.error(`supportDoNotDisturbMode failed, code is ${err.code}, message is ${err.message}`); } else { console.info("supportDoNotDisturbMode success"); } @@ -2405,7 +2405,7 @@ isSupportTemplate(templateName: string, callback: AsyncCallback\): voi let templateName = 'process'; function isSupportTemplateCallback(err, data) { if (err) { - console.info("isSupportTemplate failed " + JSON.stringify(err)); + console.error(`isSupportTemplate failed, code is ${err.code}, message is ${err.message}`); } else { console.info("isSupportTemplate success"); } @@ -2480,7 +2480,7 @@ requestEnableNotification(callback: AsyncCallback\): void ```javascript function requestEnableNotificationCallback(err) { if (err) { - console.info("requestEnableNotification failed " + JSON.stringify(err)); + console.error(`requestEnableNotification failed, code is ${err.code}, message is ${err.message}`); } else { console.info("requestEnableNotification success"); } @@ -2548,7 +2548,7 @@ setDistributedEnable(enable: boolean, callback: AsyncCallback\): void ```javascript function setDistributedEnableCallback() { if (err) { - console.info("setDistributedEnable failed " + JSON.stringify(err)); + console.error(`setDistributedEnable failed, code is ${err.code}, message is ${err.message}`); } else { console.info("setDistributedEnable success"); } @@ -2625,7 +2625,7 @@ isDistributedEnabled(callback: AsyncCallback\): void ```javascript function isDistributedEnabledCallback(err, data) { if (err) { - console.info("isDistributedEnabled failed " + JSON.stringify(err)); + console.error(`isDistributedEnabled failed, code is ${err.code}, message is ${err.message}`); } else { console.info("isDistributedEnabled success " + JSON.stringify(data)); } @@ -2704,7 +2704,7 @@ setDistributedEnableByBundle(bundle: BundleOption, enable: boolean, callback: As ```javascript function setDistributedEnableByBundleCallback(err) { if (err) { - console.info("enableDistributedByBundle failed " + JSON.stringify(err)); + console.error(`setDistributedEnableByBundle failed, code is ${err.code}, message is ${err.message}`); } else { console.info("enableDistributedByBundle success"); } @@ -2798,7 +2798,7 @@ isDistributedEnabledByBundle(bundle: BundleOption, callback: AsyncCallback\): void ```javascript function getDeviceRemindTypeCallback(err, data) { if (err) { - console.info("getDeviceRemindType failed " + JSON.stringify(err)); + console.error(`getDeviceRemindType failed, code is ${err.code}, message is ${err.message}`); } else { console.info("getDeviceRemindType success"); } @@ -2972,7 +2972,7 @@ publishAsBundle(request: NotificationRequest, representativeBundle: string, user //publishAsBundle回调 function callback(err) { if (err) { - console.info("publishAsBundle failed " + JSON.stringify(err)); + console.error(`publishAsBundle failed, code is ${err.code}, message is ${err.message}`); } else { console.info("publishAsBundle success"); } @@ -3094,7 +3094,7 @@ cancelAsBundle(id: number, representativeBundle: string, userId: number, callbac // cancelAsBundle function cancelAsBundleCallback(err) { if (err) { - console.info("cancelAsBundle failed " + JSON.stringify(err)); + console.error(`cancelAsBundle failed, code is ${err.code}, message is ${err.message}`); } else { console.info("cancelAsBundle success"); } @@ -3188,7 +3188,7 @@ setNotificationEnableSlot(bundle: BundleOption, type: SlotType, enable: boolean, // setNotificationEnableSlot function setNotificationEnableSlotCallback(err) { if (err) { - console.info("setNotificationEnableSlot failed " + JSON.stringify(err)); + console.error(`setNotificationEnableSlot failed, code is ${err.code}, message is ${err.message}`); } else { console.info("setNotificationEnableSlot success"); } @@ -3277,7 +3277,7 @@ isNotificationSlotEnabled(bundle: BundleOption, type: SlotType, callback: AsyncC // isNotificationSlotEnabled function getEnableSlotCallback(err, data) { if (err) { - console.info("isNotificationSlotEnabled failed " + JSON.stringify(err)); + console.error(`isNotificationSlotEnabled failed, code is ${err.code}, message is ${err.message}`); } else { console.info("isNotificationSlotEnabled success"); } @@ -3371,7 +3371,7 @@ let enable = true; function callback(err) { if (err) { - console.info("setSyncNotificationEnabledWithoutApp failed " + JSON.stringify(err)); + console.error(`setSyncNotificationEnabledWithoutApp failed, code is ${err.code}, message is ${err.message}`); } else { console.info("setSyncNotificationEnabledWithoutApp success"); } @@ -3424,7 +3424,7 @@ let enable = true; notificationManager.setSyncNotificationEnabledWithoutApp(userId, enable).then(() => { console.info('setSyncNotificationEnabledWithoutApp success'); }).catch((err) => { - console.info('setSyncNotificationEnabledWithoutApp, err:' + JSON.stringify(err)); + console.error(`setSyncNotificationEnabledWithoutApp failed, code is ${err.code}, message is ${err.message}`); }); ``` diff --git a/zh-cn/application-dev/reference/apis/js-apis-notificationSubscribe.md b/zh-cn/application-dev/reference/apis/js-apis-notificationSubscribe.md index 241039f3132fe2dfb9fe4554011303a3ec7d324f..fe34687d9e47b8b912a7e24f66a32193f6c61455 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-notificationSubscribe.md +++ b/zh-cn/application-dev/reference/apis/js-apis-notificationSubscribe.md @@ -48,7 +48,7 @@ subscribe(subscriber: NotificationSubscriber, info: NotificationSubscribeInfo, c //subscribe回调 function subscribeCallback(err) { if (err) { - console.info("subscribe failed " + JSON.stringify(err)); + console.error(`subscribe failed, code is ${err.code}, message is ${err.message}`); } else { console.info("subscribe success"); } @@ -97,7 +97,7 @@ subscribe(subscriber: NotificationSubscriber, callback: AsyncCallback\): ```js function subscribeCallback(err) { if (err) { - console.info("subscribe failed " + JSON.stringify(err)); + console.error(`subscribe failed, code is ${err.code}, message is ${err.message}`); } else { console.info("subscribe success"); } @@ -188,7 +188,7 @@ unsubscribe(subscriber: NotificationSubscriber, callback: AsyncCallback\) ```js function unsubscribeCallback(err) { if (err) { - console.info("unsubscribe failed " + JSON.stringify(err)); + console.error(`unsubscribe failed, code is ${err.code}, message is ${err.message}`); } else { console.info("unsubscribe success"); } @@ -278,7 +278,7 @@ remove(bundle: BundleOption, notificationKey: NotificationKey, reason: RemoveRea ```js function removeCallback(err) { if (err) { - console.info("remove failed " + JSON.stringify(err)); + console.error(`remove failed, code is ${err.code}, message is ${err.message}`); } else { console.info("remove success"); } @@ -378,7 +378,7 @@ let hashCode = 'hashCode'; function removeCallback(err) { if (err) { - console.info("remove failed " + JSON.stringify(err)); + console.error(`remove failed, code is ${err.code}, message is ${err.message}`); } else { console.info("remove success"); } @@ -458,7 +458,7 @@ removeAll(bundle: BundleOption, callback: AsyncCallback\): void ```js function removeAllCallback(err) { if (err) { - console.info("removeAll failed " + JSON.stringify(err)); + console.error(`removeAll failed, code is ${err.code}, message is ${err.message}`); } else { console.info("removeAll success"); } @@ -500,7 +500,7 @@ removeAll(callback: AsyncCallback\): void ```js function removeAllCallback(err) { if (err) { - console.info("removeAll failed " + JSON.stringify(err)); + console.error(`removeAll failed, code is ${err.code}, message is ${err.message}`); } else { console.info("removeAll success"); } @@ -578,7 +578,7 @@ removeAll(userId: number, callback: AsyncCallback\): void ```js function removeAllCallback(err) { if (err) { - console.info("removeAll failed " + JSON.stringify(err)); + console.error(`removeAll failed, code is ${err.code}, message is ${err.message}`); } else { console.info("removeAll success"); } @@ -621,7 +621,7 @@ removeAll(userId: number): Promise\ ```js function removeAllCallback(err) { if (err) { - console.info("removeAll failed " + JSON.stringify(err)); + console.error(`removeAll failed, code is ${err.code}, message is ${err.message}`); } else { console.info("removeAll success"); } @@ -659,7 +659,7 @@ onConsume?: (data: [SubscribeCallbackData](#subscribecallbackdata)) => void ```javascript function subscribeCallback(err) { if (err) { - console.info("subscribe failed " + JSON.stringify(err)); + console.error(`subscribe failed, code is ${err.code}, message is ${err.message}`); } else { console.info("subscribeCallback"); } @@ -699,7 +699,7 @@ onCancel?:(data: [SubscribeCallbackData](#subscribecallbackdata)) => void ```javascript function subscribeCallback(err) { if (err) { - console.info("subscribe failed " + JSON.stringify(err)); + console.error(`subscribe failed, code is ${err.code}, message is ${err.message}`); } else { console.info("subscribeCallback"); } @@ -739,7 +739,7 @@ onUpdate?:(data: [NotificationSortingMap](#notificationsortingmap)) => void ```javascript function subscribeCallback(err) { if (err) { - console.info("subscribe failed " + JSON.stringify(err)); + console.error(`subscribe failed, code is ${err.code}, message is ${err.message}`); } else { console.info("subscribeCallback"); } @@ -771,7 +771,7 @@ onConnect?:() => void ```javascript function subscribeCallback(err) { if (err) { - console.info("subscribe failed " + JSON.stringify(err)); + console.error(`subscribe failed, code is ${err.code}, message is ${err.message}`); } else { console.info("subscribeCallback"); } @@ -803,14 +803,14 @@ onDisconnect?:() => void ```javascript function subscribeCallback(err) { if (err) { - console.info("subscribe failed " + JSON.stringify(err)); + console.error(`subscribe failed, code is ${err.code}, message is ${err.message}`); } else { console.info("subscribeCallback"); } }; function unsubscribeCallback(err) { if (err.code) { - console.info("unsubscribe failed " + JSON.stringify(err)); + console.error(`unsubscribe failed, code is ${err.code}, message is ${err.message}`); } else { console.info("unsubscribeCallback"); } @@ -849,7 +849,7 @@ onDestroy?:() => void ```javascript function subscribeCallback(err) { if (err) { - console.info("subscribe failed " + JSON.stringify(err)); + console.error(`subscribe failed, code is ${err.code}, message is ${err.message}`); } else { console.info("subscribeCallback"); } @@ -887,7 +887,7 @@ onDoNotDisturbDateChange?:(mode: notification.[DoNotDisturbDate](js-apis-notific ```javascript function subscribeCallback(err) { if (err) { - console.info("subscribe failed " + JSON.stringify(err)); + console.error(`subscribe failed, code is ${err.code}, message is ${err.message}`); } else { console.info("subscribeCallback"); } @@ -926,7 +926,7 @@ onEnabledNotificationChanged?:(callbackData: [EnabledNotificationCallbackData](# ```javascript function subscribeCallback(err) { if (err) { - console.info("subscribe failed " + JSON.stringify(err)); + console.error(`subscribe failed, code is ${err.code}, message is ${err.message}`); } else { console.info("subscribeCallback"); } diff --git a/zh-cn/application-dev/reference/apis/js-apis-observer.md b/zh-cn/application-dev/reference/apis/js-apis-observer.md index f1884f4831d2675b461808e02ae5baa1b4263cdb..f3d1b051fc1eab8f70b8af83f950ae70427582ec 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-observer.md +++ b/zh-cn/application-dev/reference/apis/js-apis-observer.md @@ -30,6 +30,17 @@ on\(type: \'networkStateChange\', callback: Callback\): void; | type | string | 是 | 网络状态变化事件 | | callback | Callback\<[NetworkState](js-apis-radio.md#networkstate)\> | 是 | 回调函数。参考radio的[NetworkState](js-apis-radio.md#networkstate) | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -57,6 +68,17 @@ on\(type: \'networkStateChange\', options: { slotId: number }, callback: Callbac | slotId | number | 是 | 卡槽ID。
- 0:卡槽1
- 1:卡槽2 | | callback | Callback\<[NetworkState](js-apis-radio.md#networkstate)\> | 是 | 回调函数。参考radio的[NetworkState](js-apis-radio.md#networkstate) | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -85,6 +107,14 @@ off\(type: \'networkStateChange\', callback?: Callback\): void; | type | string | 是 | 网络状态变化事件 | | callback | Callback\<[NetworkState](js-apis-radio.md#networkstate)\> | 否 | 回调函数。参考radio的[NetworkState](js-apis-radio.md#networkstate) | +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -112,6 +142,17 @@ on\(type: \'signalInfoChange\', callback: Callback\>): | type | string | 是 | 信号状态变化事件 | | callback | Callback\> | 是 | 回调函数。参考radio的[SignalInformation](js-apis-radio.md#signalinformation) | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -137,6 +178,17 @@ on\(type: \'signalInfoChange\', options: { slotId: number }, callback: Callback< | slotId | number | 是 | 卡槽ID。
- 0:卡槽1
- 1:卡槽2 | | callback | Callback\> | 是 | 回调函数。参考radio的[SignalInformation](js-apis-radio.md#signalinformation) | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -165,6 +217,16 @@ off\(type: \'signalInfoChange\', callback?: Callback\> | type | string | 是 | 信号状态变化事件 | | callback | Callback\> | 否 | 回调函数。参考radio的[SignalInformation](js-apis-radio.md#signalinformation) | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -193,6 +255,16 @@ on(type: 'callStateChange', callback: Callback\<{ state: CallState, number: stri | type | string | 是 | 通话状态变化事件 | | callback | Callback\<{ state: [CallState](js-apis-call.md#callstate), number: string }\> | 是 | 回调函数,参考call的[CallState](js-apis-call.md#callstate)
number:电话号码 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -218,6 +290,16 @@ on(type: 'callStateChange', options: { slotId: number }, callback: Callback<{ st | slotId | number | 是 | 卡槽ID。
- 0:卡槽1
- 1:卡槽2 | | callback | Callback\<{ state: [CallState](js-apis-call.md#callstate), number: string }\> | 是 | 回调函数,参考call的[CallState](js-apis-call.md#callstate)
number:电话号码 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -246,6 +328,16 @@ off(type: 'callStateChange', callback?: Callback<{ state: CallState, number: str | type | string | 是 | 通话状态变化事件 | | callback | Callback\<{ state: [CallState](js-apis-call.md#callstate), number: string }\> | 否 | 回调函数,参考call的[CallState](js-apis-call.md#callstate)
number:电话号码 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -274,6 +366,16 @@ on\(type: 'cellularDataConnectionStateChange', callback: Callback\<{ state: Data | type | string | 是 | 蜂窝数据链路连接状态事件 | | callback | Callback\<{ state: [DataConnectState](js-apis-telephony-data.md#dataconnectstate), network: [RatType](js-apis-radio.md#radiotechnology) }\> | 是 | 回调函数,参考data的[DataConnectState](js-apis-telephony-data.md#dataconnectstate),radio的[RadioTechnology](js-apis-radio.md#radiotechnology)。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -299,6 +401,16 @@ on\(type: 'cellularDataConnectionStateChange', options: { slotId: number }, call | slotId | number | 是 | 卡槽ID。
- 0:卡槽1
- 1:卡槽2 | | callback | Callback\<{ state: [DataConnectState](js-apis-telephony-data.md#dataconnectstate), network: [RatType](js-apis-radio.md#radiotechnology) }\> | 是 | 回调函数,参考data的[DataConnectState](js-apis-telephony-data.md#dataconnectstate),radio的[RadioTechnology](js-apis-radio.md#radiotechnology)。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -327,6 +439,16 @@ off\(type: 'cellularDataConnectionStateChange', callback?: Callback\<{ state: D | type | string | 是 | 蜂窝数据链路连接状态事件 | | callback | Callback\<{ state: [DataConnectState](js-apis-telephony-data.md#dataconnectstate), network: [RatType](js-apis-radio.md#radiotechnology) }\> | 否 | 回调函数,参考data的[DataConnectState](js-apis-telephony-data.md#dataconnectstate),radio的[RadioTechnology](js-apis-radio.md#radiotechnology)。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -355,6 +477,16 @@ on\(type: 'cellularDataFlowChange', callback: Callback\\): void; | type | string | 是 | 蜂窝数据业务的上下行数据流状态状态事件 | | callback | Callback\<[DataFlowType](js-apis-telephony-data.md#dataflowtype)\> | 是 | 回调函数,参考data的[DataFlowType](js-apis-telephony-data.md#dataflowtype)。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -380,6 +512,16 @@ on\(type: 'cellularDataFlowChange', options: { slotId: number }, callback: Call | slotId | number | 是 | 卡槽ID。
- 0:卡槽1
- 1:卡槽2 | | callback | Callback\<[DataFlowType](js-apis-telephony-data.md#dataflowtype)\> | 是 | 回调函数,参考data的[DataFlowType](js-apis-telephony-data.md#dataflowtype)。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -408,6 +550,16 @@ off\(type: 'cellularDataFlowChange', callback?: Callback\\): void | type | string | 是 | 蜂窝数据业务的上下行数据流状态事件 | | callback | Callback\<[DataFlowType](js-apis-telephony-data.md#dataflowtype)\> | 否 | 回调函数,参考data的[DataFlowType](js-apis-telephony-data.md#dataflowtype)。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -436,6 +588,16 @@ on\(type: 'simStateChange', callback: Callback\\): void; | type | string | 是 | sim状态更改事件 | | callback | Callback\<[SimStateData](#simstatedata7)\> | 是 | 回调函数。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -461,6 +623,16 @@ on\(type: 'simStateChange', options: { slotId: number }, callback: Callback\- 0:卡槽1
- 1:卡槽2 | | callback | Callback\<[SimStateData](#simstatedata7)\> | 是 | 回调函数。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -489,6 +661,16 @@ off\(type: 'simStateChange', callback?: Callback\\): void; | type | string | 是 | sim状态更改事件 | | callback | Callback\<[SimStateData](#simstatedata7)\> | 否 | 回调函数。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js 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 e1113330d00d86e527b5919099280af817b92ab5..99dcb37ae8506f65cb24baa9b7d09c1ae79979f4 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-osAccount.md +++ b/zh-cn/application-dev/reference/apis/js-apis-osAccount.md @@ -84,13 +84,13 @@ activateOsAccount(localId: number, callback: AsyncCallback<void>): void try { accountManager.activateOsAccount(localId, (err)=>{ if (err) { - console.log("activateOsAccount failed, error:" + JSON.stringify(err)); + console.error(`activateOsAccount failed, code is ${err.code}, message is ${err.message}`); } else { console.log("activateOsAccount successfully"); } }); } catch (err) { - console.log("activateOsAccount exception:" + JSON.stringify(err)); + console.error(`activateOsAccount failed, code is ${err.code}, message is ${err.message}`); } ``` @@ -170,13 +170,13 @@ checkMultiOsAccountEnabled(callback: AsyncCallback<boolean>): void try { accountManager.checkMultiOsAccountEnabled((err, isEnabled) => { if (err) { - console.log("checkMultiOsAccountEnabled failed, error: " + JSON.stringify(err)); + console.error(`checkMultiOsAccountEnabled failed, code is ${err.code}, message is ${err.message}`); } else { console.log("checkMultiOsAccountEnabled successfully, isEnabled: " + isEnabled); } }); } catch (err) { - console.log("checkMultiOsAccountEnabled exception: " + JSON.stringify(err)); + console.error(`checkMultiOsAccountEnabled failed, code is ${err.code}, message is ${err.message}`); } ``` @@ -208,10 +208,10 @@ checkMultiOsAccountEnabled(): Promise<boolean> accountManager.checkMultiOsAccountEnabled().then((isEnabled) => { console.log('checkMultiOsAccountEnabled successfully, isEnabled: ' + isEnabled); }).catch((err) => { - console.log('checkMultiOsAccountEnabled failed, error: ' + JSON.stringify(err)); + console.error(`checkMultiOsAccountEnabled failed, code is ${err.code}, message is ${err.message}`); }); } catch (err) { - console.log('checkMultiOsAccountEnabled exception: ' + JSON.stringify(err)); + console.error(`checkMultiOsAccountEnabled failed, code is ${err.code}, message is ${err.message}`); } ``` @@ -4323,13 +4323,13 @@ unregisterInputer(): void; pinAuth.unregisterInputer(); ``` -### InputerManager 10+ +## InputerManager 9+ 凭据输入管理器。 -### registerInputer10+ +### registerInputer9+ -registerInputer(authType: AuthType, inputer: IInputer): void; +static registerInputer(authType: AuthType, inputer: IInputer): void 注册凭据输入器。 @@ -4357,11 +4357,10 @@ registerInputer(authType: AuthType, inputer: IInputer): void; **示例:** ```js - let inputerMgr = new account_osAccount.InputerManager(); let authType = account_osAccount.AuthType.DOMAIN; let password = new Uint8Array([0, 0, 0, 0, 0]); try { - inputerMgr.registerInputer(authType, { + account_osAccount.InputerManager.registerInputer(authType, { onGetData: (authSubType, callback) => { callback.onSetData(authSubType, password); } @@ -4372,9 +4371,9 @@ registerInputer(authType: AuthType, inputer: IInputer): void; } ``` -### unregisterInputer10+ +### unregisterInputer9+ -unregisterInputer(authType: AuthType): void; +static unregisterInputer(authType: AuthType): void 解注册凭据输入器。 @@ -4398,16 +4397,129 @@ unregisterInputer(authType: AuthType): void; **示例:** ```js - let inputerMgr = new account_osAccount.InputerManager(); let authType = account_osAccount.AuthType.DOMAIN; try { - inputerMgr.unregisterInputer(authType); + account_osAccount.InputerManager.unregisterInputer(authType); console.log('unregisterInputer success.'); } catch(err) { console.log("unregisterInputer err:" + JSON.stringify(err)); } ``` +## DomainPlugin9+ + +域插件,提供域帐号认证功能。 + +**系统接口:** 此接口为系统接口。 + +### auth9+ + +auth(domainAccountInfo: DomainAccountInfo, credential: Uint8Array, callback: IUserAuthCallback): void + +认证指定的域帐号。 + +**系统接口:** 此接口为系统接口。 + +**系统能力:** SystemCapability.Account.OsAccount + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| ---------- | --------------------------------------- | ---- | --------------- | +| domainAccountInfo | [DomainAccountInfo](#domainaccountinfo8) | 是 | 指示域帐号信息。| +| credential | Uint8Array | 是 | 指示域帐号的凭据。| +| callback | [IUserAuthCallback](#iuserauthcallback8) | 是 | 指示认证结果回调。| + +**示例:** + ```js + let plugin = { + auth: (domainInfo, credential, callback) => { + // mock authentication + callback.onResult(0, {}); + } + } + account_osAccount.DomainAccountManager.registerPlugin(plugin); + let userAuth = new account_osAccount.UserAuth(); + let challenge = new Uint8Array([0]); + let authType = account_osAccount.AuthType.PIN; + let authTrustLevel = account_osAccount.AuthTrustLevel.ATL1; + try { + userAuth.auth(challenge, authType, authTrustLevel, { + onResult: (resultCode, authResult) => { + console.log('auth resultCode = ' + resultCode); + console.log('auth authResult = ' + JSON.stringify(authResult)); + } + }); + } catch (err) { + console.log('auth exception = ' + JSON.stringify(err)); + } + ``` + +## DomainAccountManager 9+ +域帐号管理器类。 + +### registerPlugin9+ + +static registerPlugin(plugin: DomainPlugin): void + +注册域插件。 + +**系统接口:** 此接口为系统接口。 + +**系统能力:** SystemCapability.Account.OsAccount + +**需要权限:** ohos.permission.MANAGE_LOCAL_ACCOUNTS + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| ----------| ----------------------- | --- | -------------------------- | +| plugin | [DomainPlugin](#domainplugin9) | 是 | 指示域插件。 | + +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | --------------------------- | +| 12300201 | The domain plugin has been registered. | + +**示例:** + ```js + let plugin = { + auth: (domainInfo, credential, callback) => { + // mock authentication + callback.onResult(0, {}); + } + } + try { + account_osAccount.DomainAccountManager.registerPlugin(plugin); + console.log('registerPlugin success.'); + } catch(err) { + console.log("registerPlugin err:" + JSON.stringify(err)); + } + ``` + +### unregisterPlugin9+ + +static unregisterPlugin(): void + +注销域插件。 + +**系统接口:** 此接口为系统接口。 + +**系统能力:** SystemCapability.Account.OsAccount + +**需要权限:** ohos.permission.MANAGE_LOCAL_ACCOUNTS + +**示例:** + ```js + try { + account_osAccount.DomainAccountManager.unregisterPlugin(); + console.log('unregisterPlugin success.'); + } catch(err) { + console.log("unregisterPlugin err:" + JSON.stringify(err)); + } + ``` + ## UserIdentityManager8+ 获取用户身份管理类。 diff --git a/zh-cn/application-dev/reference/apis/js-apis-pointer.md b/zh-cn/application-dev/reference/apis/js-apis-pointer.md index 014b704990f690340b4f2a9c206cc08abeb07cb7..6ae3701566fe2af3d482ffb5c3cd729d85be46f3 100755 --- a/zh-cn/application-dev/reference/apis/js-apis-pointer.md +++ b/zh-cn/application-dev/reference/apis/js-apis-pointer.md @@ -279,7 +279,7 @@ getPointerStyle(windowId: number, callback: AsyncCallback<PointerStyle>): import window from '@ohos.window'; window.getTopWindow((error, win) => { - win.getProperties((error, properties) => { + win.getWindowProperties((error, properties) => { let windowId = properties.id; if (windowId < 0) { console.log(`Invalid windowId`); @@ -322,7 +322,7 @@ getPointerStyle(windowId: number): Promise<PointerStyle> import window from '@ohos.window'; window.getTopWindow((error, win) => { - win.getProperties((error, properties) => { + win.getWindowProperties((error, properties) => { let windowId = properties.id; if (windowId < 0) { console.log(`Invalid windowId`); @@ -361,7 +361,7 @@ setPointerStyle(windowId: number, pointerStyle: PointerStyle, callback: AsyncCal import window from '@ohos.window'; window.getTopWindow((error, win) => { - win.getProperties((error, properties) => { + win.getWindowProperties((error, properties) => { let windowId = properties.id; if (windowId < 0) { console.log(`Invalid windowId`); @@ -399,7 +399,7 @@ setPointerStyle(windowId: number, pointerStyle: PointerStyle): Promise<void&g import window from '@ohos.window'; window.getTopWindow((error, win) => { - win.getProperties((error, properties) => { + win.getWindowProperties((error, properties) => { let windowId = properties.id; if (windowId < 0) { console.log(`Invalid windowId`); diff --git a/zh-cn/application-dev/reference/apis/js-apis-privacyManager.md b/zh-cn/application-dev/reference/apis/js-apis-privacyManager.md index 166c69fb6594c350cb943a03ff2db8ef4e732e79..04918ca06f0759a4033d73afcfb769861dcbecc5 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-privacyManager.md +++ b/zh-cn/application-dev/reference/apis/js-apis-privacyManager.md @@ -120,9 +120,9 @@ try { } ``` -## privacyManager.getPermissionUsedRecords +## privacyManager.getPermissionUsedRecord -getPermissionUsedRecords(request: PermissionUsedRequest): Promise<PermissionUsedResponse> +getPermissionUsedRecord(request: PermissionUsedRequest): Promise<PermissionUsedResponse> 获取历史权限使用记录。使用Promise异步回调。 @@ -170,19 +170,19 @@ let request = { "flag":privacyManager.PermissionUsageFlag.FLAG_PERMISSION_USAGE_DETAIL, }; try { - privacyManager.getPermissionUsedRecords(request).then((data) => { - console.log(`getPermissionUsedRecords success, data->${JSON.stringify(data)}`); + privacyManager.getPermissionUsedRecord(request).then((data) => { + console.log(`getPermissionUsedRecord success, data->${JSON.stringify(data)}`); }).catch((err) => { - console.log(`getPermissionUsedRecords fail, err->${JSON.stringify(err)}`); + console.log(`getPermissionUsedRecord fail, err->${JSON.stringify(err)}`); }); } catch(err) { console.log(`catch err->${JSON.stringify(err)}`); } ``` -## privacyManager.getPermissionUsedRecords +## privacyManager.getPermissionUsedRecord -getPermissionUsedRecords(request: PermissionUsedRequest, callback: AsyncCallback<PermissionUsedResponse>): void +getPermissionUsedRecord(request: PermissionUsedRequest, callback: AsyncCallback<PermissionUsedResponse>): void 获取历史权限使用记录。使用callback异步回调。 @@ -225,11 +225,11 @@ let request = { "flag":privacyManager.PermissionUsageFlag.FLAG_PERMISSION_USAGE_DETAIL, }; try { - privacyManager.getPermissionUsedRecords(request, (err, data) => { + privacyManager.getPermissionUsedRecord(request, (err, data) => { if (err) { - console.log(`getPermissionUsedRecords fail, err->${JSON.stringify(err)}`); + console.log(`getPermissionUsedRecord fail, err->${JSON.stringify(err)}`); } else { - console.log(`getPermissionUsedRecords success, data->${JSON.stringify(data)}`); + console.log(`getPermissionUsedRecord success, data->${JSON.stringify(data)}`); } }); } catch(err) { diff --git a/zh-cn/application-dev/reference/apis/js-apis-radio.md b/zh-cn/application-dev/reference/apis/js-apis-radio.md index a95004670962fcf0b72b05d240f66aa385ce3998..e4b9820b11024bba97664856f3fa020da0af66a2 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-radio.md +++ b/zh-cn/application-dev/reference/apis/js-apis-radio.md @@ -30,6 +30,17 @@ getRadioTech\(slotId: number, callback: AsyncCallback<\{psRadioTech: RadioTechno | slotId | number | 是 | 卡槽ID。
- 0:卡槽1
- 1:卡槽2 | | callback | AsyncCallback\<{psRadioTech: [RadioTechnology](#radiotechnology), csRadioTech:[RadioTechnology](#radiotechnology)}\> | 是 | 回调函数。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -62,6 +73,17 @@ getRadioTech\(slotId: number\): Promise<\{psRadioTech: RadioTechnology, csRadioT | ------------------------------------------------------------ | ----------------------------------------------- | | Promise<{psRadioTech: [RadioTechnology](#radiotechnology), csRadioTech: [RadioTechnology](#radiotechnology)}> | 以Promise形式返回获取当前接入的CS域和PS域技术。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -91,6 +113,17 @@ getNetworkState\(callback: AsyncCallback\): void | -------- | ---------------------------------------------- | ---- | ---------- | | callback | AsyncCallback\<[NetworkState](#networkstate)\> | 是 | 回调函数。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -117,6 +150,17 @@ getNetworkState\(slotId: number, callback: AsyncCallback\): void | slotId | number | 是 | 卡槽ID。
- 0:卡槽1
- 1:卡槽2 | | callback | AsyncCallback\<[NetworkState](#networkstate)\> | 是 | 回调函数。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -149,6 +193,17 @@ getNetworkState\(slotId?: number\): Promise | ---------------------------------------- | --------------------------- | | Promise\<[NetworkState](#networkstate)\> | 以Promise形式返回网络状态。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -177,6 +232,16 @@ getNetworkSelectionMode\(slotId: number, callback: AsyncCallback- 0:卡槽1
- 1:卡槽2 | | callback | AsyncCallback\<[NetworkSelectionMode](#networkselectionmode)\> | 是 | 回调函数。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -207,6 +272,16 @@ getNetworkSelectionMode\(slotId: number\): Promise | -------------------------------------------------------- | ------------------------------- | | Promise\<[NetworkSelectionMode](#networkselectionmode)\> | 以Promise形式返回当前选网模式。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -235,6 +310,16 @@ getISOCountryCodeForNetwork\(slotId: number, callback: AsyncCallback\): | slotId | number | 是 | 卡槽ID。
- 0:卡槽1
- 1:卡槽2 | | callback | AsyncCallback\ | 是 | 回调函数。返回国家码,例如:CN(中国)。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -265,6 +350,16 @@ getISOCountryCodeForNetwork\(slotId: number\): Promise | ----------------- | ------------------------------------------------------------ | | Promise\ | 以Promise形式返回注册网络所在国家的ISO国家码,例如CN(中国)。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -292,6 +387,16 @@ getPrimarySlotId\(callback: AsyncCallback\\): void | -------- | ------------------------------------------------------------ | ---- | ------------------------------------------------------------ | | callback | AsyncCallback\ | 是 | 回调函数 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300004 | Do not have sim card. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -315,6 +420,16 @@ getPrimarySlotId\(\): Promise\ | ----------------------------------------------------------- | ------------------------------------------------------------ | | Promise\ | 以Promise形式返回获取设备主卡所在卡槽的索引号的结果。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300004 | Do not have sim card. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -342,6 +457,16 @@ getSignalInformation\(slotId: number, callback: AsyncCallback- 0:卡槽1
- 1:卡槽2 | | callback | AsyncCallback\\> | 是 | 回调函数,返回[SignalInformation](#signalinformation)对象的数组。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -372,6 +497,16 @@ getSignalInformation\(slotId: number\): Promise\> | ----------------------------------------------------------- | ------------------------------------------------------------ | | Promise\\> | 以Promise形式返回网络信号强度[SignalInformation](#signalinformation)对象的数组。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -509,6 +644,17 @@ isRadioOn\(callback: AsyncCallback\): void | -------- | ------------------------ | ---- | ------------------------------------------------------- | | callback | AsyncCallback\ | 是 | 回调函数。
- true:Radio打开
- false:Radio关闭 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -535,6 +681,17 @@ isRadioOn\(slotId: number, callback: AsyncCallback\): void | slotId | number | 是 | 卡槽ID。
- 0:卡槽1
- 1:卡槽2 | | callback | AsyncCallback\ | 是 | 回调函数。
- true:Radio打开
- false:Radio关闭 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -567,6 +724,17 @@ isRadioOn\(slotId?: number\): Promise | ------------------ | ------------------------------------------------------------ | | Promise\ | 以Promise形式返回判断Radio是否打开的结果。
- true:Radio打开
- false:Radio关闭 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -595,6 +763,16 @@ getOperatorName\(slotId: number, callback: AsyncCallback\): void | slotId | number | 是 | 卡槽ID。
- 0:卡槽1
- 1:卡槽2 | | callback | AsyncCallback\ | 是 | 回调函数,返回运营商名称,例如:中国移动。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -625,6 +803,16 @@ getOperatorName\(slotId: number\): Promise | ----------------- | ------------------------------------------------------------ | | Promise\ | 以Promise形式返回运营商名称,例如:中国移动。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -656,6 +844,18 @@ setPrimarySlotId(slotId: number, callback: AsyncCallback): void | slotId | number | 是 | 卡槽ID。
- 0:卡槽1
- 1:卡槽2 | | callback | AsyncCallback\ | 是 | 回调函数。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300004 | Do not have sim card. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -690,6 +890,18 @@ setPrimarySlotId\(slotId: number\): Promise\ | --------------- | ------------------------------- | | Promise\ | 以Promise形式异步返回设置结果。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300004 | Do not have sim card. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -720,6 +932,17 @@ getIMEI(callback: AsyncCallback): void | -------- | ----------------------- | ---- | ------------------------------------------ | | callback | AsyncCallback\ | 是 | 回调函数,如果IMEI不存在,则返回空字符串。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -748,6 +971,17 @@ getIMEI(slotId: number, callback: AsyncCallback): void | slotId | number | 是 | 卡槽ID。
- 0:卡槽1
- 1:卡槽2 | | callback | AsyncCallback\ | 是 | 回调函数,如果IMEI不存在,则返回空字符串。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -782,6 +1016,17 @@ getIMEI(slotId?: number): Promise | ----------------- | ------------------------------------------ | | Promise\ | 以Promise形式异步返回IMEI;如果IMEI不存在,则返回空字符串。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -812,6 +1057,17 @@ getMEID(callback: AsyncCallback): void | -------- | ----------------------- | ---- | ---------- | | callback | AsyncCallback\ | 是 | 回调函数。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -840,6 +1096,17 @@ getMEID(slotId: number, callback: AsyncCallback): void | slotId | number | 是 | 卡槽ID。
- 0:卡槽1
- 1:卡槽2 | | callback | AsyncCallback\ | 是 | 回调函数。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -874,6 +1141,17 @@ getMEID(slotId?: number): Promise | ----------------- | --------------------------------------- | | Promise\ | 以Promise形式返回设备的指定卡槽的MEID。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -904,6 +1182,17 @@ getUniqueDeviceId(callback: AsyncCallback): void | -------- | ----------------------- | ---- | ---------- | | callback | AsyncCallback\ | 是 | 回调函数。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -932,6 +1221,17 @@ getUniqueDeviceId(slotId: number, callback: AsyncCallback): void | slotId | number | 是 | 卡槽ID。
- 0:卡槽1
- 1:卡槽2 | | callback | AsyncCallback\ | 是 | 回调函数。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -966,6 +1266,17 @@ getUniqueDeviceId(slotId?: number): Promise | ----------------- | --------------------------------------------- | | Promise\ | 以Promise形式返回设备的指定卡槽的唯一设备ID。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -996,6 +1307,17 @@ sendUpdateCellLocationRequest\(callback: AsyncCallback\): void | -------- | --------------------- | ---- | ---------- | | callback | AsyncCallback\ | 是 | 回调函数。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -1023,6 +1345,17 @@ sendUpdateCellLocationRequest\(slotId: number, callback: AsyncCallback\): | slotId | number | 是 | 卡槽ID。
- 0:卡槽1
- 1:卡槽2 | | callback | AsyncCallback\ | 是 | 回调函数。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -1056,6 +1389,17 @@ sendUpdateCellLocationRequest\(slotId?: number): Promise | --------------- | ----------------------- | | Promise\ | 以Promise形式返回结果。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -1086,6 +1430,17 @@ getCellInformation(callback: AsyncCallback>): void | -------- | ------------------------------------------------------------ | ---- | ------------------------ | | callback | AsyncCallback\\> | 是 | 回调函数。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -1114,6 +1469,17 @@ getCellInformation(slotId: number, callback: AsyncCallback- 0:卡槽1
- 1:卡槽2 | | callback | AsyncCallback\\> | 是 | 回调函数。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -1148,6 +1514,17 @@ getCellInformation(slotId?: number): Promise\> | ------------------------------------------------------- | ----------------------- | | Promise\\> | 以Promise形式返回结果。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -1179,6 +1556,17 @@ setNetworkSelectionMode\(options: NetworkSelectionModeOptions, callback: AsyncCa | options | [NetworkSelectionModeOptions](#networkselectionmodeoptions) | 是 | 网络选择模式选项。 | | callback | AsyncCallback\ | 是 | 回调函数。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -1223,6 +1611,17 @@ setNetworkSelectionMode\(options: NetworkSelectionModeOptions\): Promise | --------------- | ----------------------- | | Promise\ | 以Promise形式返回结果。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -1265,6 +1664,17 @@ getNetworkSearchInformation\(slotId: number, callback: AsyncCallback- 0:卡槽1
- 1:卡槽2 | | callback | AsyncCallback\<[NetworkSearchResult](#networksearchresult)\> | 是 | 回调函数。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -1297,6 +1707,17 @@ getNetworkSearchInformation\(slotId: number\): Promise | ------------------------------------------------------ | ----------------------- | | Promise\<[NetworkSearchResult](#networksearchresult)\> | 以Promise形式返回结果。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -1324,6 +1745,16 @@ getNrOptionMode(callback: AsyncCallback): void | -------- | ----------------------------------------------- | ---- | ---------- | | callback | AsyncCallback\<[NrOptionMode](#nroptionmode8)\> | 是 | 回调函数。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -1350,6 +1781,16 @@ getNrOptionMode(slotId: number, callback: AsyncCallback): void | slotId | number | 是 | 卡槽ID。
- 0:卡槽1
- 1:卡槽2 | | callback | AsyncCallback\<[NrOptionMode](#nroptionmode8)\> | 是 | 回调函数。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -1382,6 +1823,16 @@ getNrOptionMode(slotId?: number): Promise | ----------------------------------------- | ----------------------- | | Promise\<[NrOptionMode](#nroptionmode8)\> | 以Promise形式返回结果。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -1412,6 +1863,17 @@ turnOnRadio(callback: AsyncCallback): void | -------- | --------------------- | ---- | ---------- | | callback | AsyncCallback\ | 是 | 回调函数。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -1440,6 +1902,17 @@ turnOnRadio(slotId: number, callback: AsyncCallback): void | slotId | number | 是 | 卡槽ID。
- 0:卡槽1
- 1:卡槽2 | | callback | AsyncCallback\ | 是 | 回调函数。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -1474,6 +1947,17 @@ turnOnRadio(slotId?: number): Promise | --------------- | ----------------------- | | Promise\ | 以Promise形式返回结果。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -1504,6 +1988,17 @@ turnOffRadio(callback: AsyncCallback): void | -------- | --------------------- | ---- | ---------- | | callback | AsyncCallback\ | 是 | 回调函数。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -1532,6 +2027,17 @@ turnOffRadio(slotId: number, callback: AsyncCallback): void | slotId | number | 是 | 卡槽ID。
- 0:卡槽1
- 1:卡槽2 | | callback | AsyncCallback\ | 是 | 回调函数。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -1566,6 +2072,17 @@ turnOffRadio(slotId?: number): Promise | --------------- | ----------------------- | | Promise\ | 以Promise形式返回结果。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -1598,6 +2115,17 @@ setPreferredNetwork\(slotId: number, networkMode: PreferredNetworkMode, callback | networkMode | [PreferredNetworkMode](#preferrednetworkmode8) | 是 | 设置首选网络模式。 | | callback | AsyncCallback\ | 是 | 回调函数。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -1631,6 +2159,17 @@ setPreferredNetwork(slotId: number, networkMode: PreferredNetworkMode): Promise< | --------------- | ----------------------- | | Promise\ | 以Promise形式返回结果。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -1656,11 +2195,22 @@ getPreferredNetwork\(slotId: number, callback: AsyncCallback- 0:卡槽1
- 1:卡槽2 | +| 参数名 | 类型 | 必填 | 说明 | +| -------- | --------------------------------------------------------------- | ---- | -------------------------------------- | +| slotId | number | 是 | 卡槽ID。
- 0:卡槽1
- 1:卡槽2 | | callback | AsyncCallback\<[PreferredNetworkMode](#preferrednetworkmode8)\> | 是 | 回调函数。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -1693,6 +2243,17 @@ getPreferredNetwork(slotId: number): Promise | --------------- | ----------------------- | | Promise\ | 以Promise形式返回结果。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -1724,6 +2285,17 @@ getImsRegInfo(slotId: number, imsType: ImsServiceType, callback: AsyncCallback | 是 | 回调函数。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -1757,6 +2329,17 @@ getImsRegInfo(slotId: number, imsType: ImsServiceType): Promise | ------------------------------------- | ----------------------- | | Promise\<[ImsRegInfo](#imsreginfo9)\> | 以Promise形式返回结果。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -1789,6 +2372,17 @@ on(type: 'imsRegStateChange', slotId: number, imsType: ImsServiceType, callback: | imsType | [ImsServiceType](#imsservicetype9) | 是 | IMS服务类型。 | | callback | Callback<[ImsRegInfo](#imsreginfo9)> | 是 | 回调函数。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -1818,6 +2412,17 @@ off(type: 'imsRegStateChange', slotId: number, imsType: ImsServiceType, callback | imsType | [ImsServiceType](#imsservicetype9) | 是 | IMS服务类型。 | | callback | Callback<[ImsRegInfo](#imsreginfo9)> | 否 | 回调函数。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -1855,11 +2460,11 @@ radio.off('imsRegStateChange', 0, radio.ImsServiceType.TYPE_VIDEO, data => { **系统能力**:以下各项对应的系统能力均为SystemCapability.Telephony.CoreService。 -| 名称 | 类型 | 必填 | 说明 | -| ----------- | --------------------------- | ---- | ----------------- | -| signalType | [NetworkType](#networktype) | 是 | 网络信号强度类型。 | -| signalLevel | number | 是 | 网络信号强度等级。 | - +| 名称 | 类型 | 必填 | 说明 | +| --------------- | --------------------------- | ---- | ------------------ | +| signalType | [NetworkType](#networktype) | 是 | 网络信号强度类型。 | +| signalLevel | number | 是 | 网络信号强度等级。 | +| dBm9+| number | 是 | 网络信号强度。 | ## NetworkType diff --git a/zh-cn/application-dev/reference/apis/js-apis-request.md b/zh-cn/application-dev/reference/apis/js-apis-request.md index 73c89e70b2eb614a7a837d7c4b15bb6a9fe11595..dcf6443aab41e058fb9a23741c3200da1d5e7b4d 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-request.md +++ b/zh-cn/application-dev/reference/apis/js-apis-request.md @@ -282,91 +282,6 @@ upload(config: UploadConfig, callback: AsyncCallback<UploadTask>): void }); ``` -## request.upload(deprecated) - -upload(context: BaseContext, config: UploadConfig): Promise<UploadTask> - -上传,异步方法,使用promise形式返回结果。 - -> **说明:** 从API Version 9开始支持,从API Version 9开始不再维护,建议使用[request.uploadFile9+](#requestuploadfile9)替代。 - -**需要权限**:ohos.permission.INTERNET - -**系统能力**: SystemCapability.MiscServices.Upload - -**参数:** - - | 参数名 | 类型 | 必填 | 说明 | - | -------- | -------- | -------- | -------- | - | context | [BaseContext](js-apis-inner-application-baseContext.md) | 是 | 基于应用程序的上下文。 | - | config | [UploadConfig](#uploadconfig) | 是 | 上传的配置信息。 | - - -**返回值:** - - | 类型 | 说明 | - | -------- | -------- | - | Promise<[UploadTask](#uploadtask)> | 返回上传任务。 | - -**示例:** - - ```js - let uploadTask; - let uploadConfig = { - url: 'http://patch', - header: { key1: "value1", key2: "value2" }, - method: "POST", - files: [{ filename: "test", name: "test", uri: "internal://cache/test.jpg", type: "jpg" }], - data: [{ name: "name123", value: "123" }], - }; - request.upload(globalThis.abilityContext, uploadConfig).then((data) => { - uploadTask = data; - }).catch((err) => { - console.error('Failed to request the upload. Cause: ' + JSON.stringify(err)); - }); - ``` - - -## request.upload(deprecated) - -upload(context: BaseContext, config: UploadConfig, callback: AsyncCallback<UploadTask>): void - -上传,异步方法,使用callback形式返回结果。 - -> **说明:** 从API Version 9开始支持,从API Version 9开始不再维护,建议使用[request.uploadFile9+](#requestuploadfile9-1)替代。 - -**需要权限**:ohos.permission.INTERNET - -**系统能力**: SystemCapability.MiscServices.Upload - -**参数:** - - | 参数名 | 类型 | 必填 | 说明 | - | -------- | -------- | -------- | -------- | - | context | [BaseContext](js-apis-inner-application-baseContext.md) | 是 | 基于应用程序的上下文。 | - | config | [UploadConfig](#uploadconfig) | 是 | 上传的配置信息。 | - | callback | AsyncCallback<[UploadTask](#uploadtask)> | 是 | 回调函数,异步返回UploadTask对象。 | - -**示例:** - - ```js - let uploadTask; - let uploadConfig = { - url: 'http://patch', - header: { key1: "value1", key2: "value2" }, - method: "POST", - files: [{ filename: "test", name: "test", uri: "internal://cache/test.jpg", type: "jpg" }], - data: [{ name: "name123", value: "123" }], - }; - request.upload(globalThis.abilityContext, uploadConfig, (err, data) => { - if (err) { - console.error('Failed to request the upload. Cause: ' + JSON.stringify(err)); - return; - } - uploadTask = data; - }); - ``` - ## UploadTask 上传任务,使用下列方法前,需要先获取UploadTask对象,promise形式通过[request.uploadFile9+](#requestuploadfile9)获取,callback形式通过[request.uploadFile9+](#requestuploadfile9-1)获取。 @@ -936,78 +851,6 @@ download(config: DownloadConfig, callback: AsyncCallback<DownloadTask>): v }); ``` -## request.download(deprecated) - -download(context: BaseContext, config: DownloadConfig): Promise<DownloadTask> - -下载,异步方法,使用promise形式返回结果。 - -> **说明:** 从API Version 9开始支持,从API Version 9开始不再维护,建议使用[request.downloadFile9+](#requestdownloadfile9)替代。 - -**需要权限**:ohos.permission.INTERNET - -**系统能力**: SystemCapability.MiscServices.Download - -**参数:** - - | 参数名 | 类型 | 必填 | 说明 | - | -------- | -------- | -------- | -------- | - | context | [BaseContext](js-apis-inner-application-baseContext.md) | 是 | 基于应用程序的上下文。 | - | config | [DownloadConfig](#downloadconfig) | 是 | 下载的配置信息。 | - -**返回值:** - - | 类型 | 说明 | - | -------- | -------- | - | Promise<[DownloadTask](#downloadtask)> | 返回下载任务。 | - -**示例:** - - ```js - let downloadTask; - request.download(globalThis.abilityContext, { url: 'https://xxxx/xxxx.hap' }).then((data) => { - downloadTask = data; - }).catch((err) => { - console.error('Failed to request the download. Cause: ' + JSON.stringify(err)); - }) - ``` - - -## request.download(deprecated) - -download(context: BaseContext, config: DownloadConfig, callback: AsyncCallback<DownloadTask>): void; - -下载,异步方法,使用callback形式返回结果。 - -> **说明:** 从API Version 9开始支持,从API Version 9开始不再维护,建议使用[request.downloadFile9+](#requestdownloadfile9-1)替代。 - -**需要权限**:ohos.permission.INTERNET - -**系统能力**: SystemCapability.MiscServices.Download - -**参数:** - - | 参数名 | 类型 | 必填 | 说明 | - | -------- | -------- | -------- | -------- | - | context | [BaseContext](js-apis-inner-application-baseContext.md) | 是 | 基于应用程序的上下文。 | - | config | [DownloadConfig](#downloadconfig) | 是 | 下载的配置信息。 | - | callback | AsyncCallback<[DownloadTask](#downloadtask)> | 是 | 下载接口的回调函数。 | - -**示例:** - - ```js - let downloadTask; - request.download(globalThis.abilityContext, { url: 'https://xxxx/xxxxx.hap', - filePath: 'xxx/xxxxx.hap'}, (err, data) => { - if (err) { - console.error('Failed to request the download. Cause: ' + JSON.stringify(err)); - return; - } - downloadTask = data; - }); - ``` - - ## DownloadTask 下载任务,使用下列方法前,需要先获取DownloadTask对象,promise形式通过[request.downloadFile9+](#requestdownloadfile9)获取,callback形式通过[request.downloadFile9+](#requestdownloadfile9-1)获取。 diff --git a/zh-cn/application-dev/reference/apis/js-apis-resourceschedule-deviceUsageStatistics.md b/zh-cn/application-dev/reference/apis/js-apis-resourceschedule-deviceUsageStatistics.md index dd2d559e57d2008eafdf4e1d9e8982746fb67429..901b010bad01b1ee88840792cb06777ed9c76bc7 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-resourceschedule-deviceUsageStatistics.md +++ b/zh-cn/application-dev/reference/apis/js-apis-resourceschedule-deviceUsageStatistics.md @@ -35,8 +35,12 @@ isIdleState(bundleName: string, callback: AsyncCallback<boolean>): void 判断指定bundleName的应用当前是否是空闲状态,三方应用只能查询自身的空闲状态,使用Callback形式返回。 +**需要权限**:ohos.permission.BUNDLE_ACTIVE_INFO + **系统能力**:SystemCapability.ResourceSchedule.UsageStatistics.AppGroup +**系统API**:此接口为系统接口。 + **参数**: | 参数名 | 类型 | 必填 | 说明 | @@ -53,8 +57,8 @@ isIdleState(bundleName: string, callback: AsyncCallback<boolean>): void | 10000001 | Memory operation failed. | | 10000002 | Parcel operation failed. | | 10000003 | System service operation failed. | -| 10000004 | IPC Communication failed. | -| 10000006 | Get application info failed. | +| 10000004 | IPC failed. | +| 10000006 | Failed to get the application information. | **示例**: ```js @@ -77,8 +81,12 @@ isIdleState(bundleName: string): Promise<boolean> 判断指定bundleName的应用当前是否是空闲状态,三方应用只能查询自身的空闲状态,使用Promise形式返回。 +**需要权限**:ohos.permission.BUNDLE_ACTIVE_INFO + **系统能力**:SystemCapability.ResourceSchedule.UsageStatistics.AppGroup +**系统API**:此接口为系统接口。 + **参数**: | 参数名 | 类型 | 必填 | 说明 | @@ -100,8 +108,8 @@ isIdleState(bundleName: string): Promise<boolean> | 10000001 | Memory operation failed. | | 10000002 | Parcel operation failed. | | 10000003 | System service operation failed. | -| 10000004 | IPC Communication failed. | -| 10000006 | Get application info failed. | +| 10000004 | IPC failed. | +| 10000006 | Failed to get the application information. | **示例**: @@ -140,10 +148,10 @@ queryAppGroup(): Promise<number> | 10000001 | Memory operation failed. | | 10000002 | Parcel operation failed. | | 10000003 | System service operation failed. | -| 10000004 | IPC Communication failed. | -| 10000005 | Application is not installed. | -| 10000006 | Get application info failed. | -| 10100002 | Get Application group info failed. | +| 10000004 | IPC failed. | +| 10000005 | Application is not installed. | +| 10000006 | Failed to get the application information. | +| 10100002 | Failed to get the application group information. | **示例**: @@ -182,10 +190,10 @@ queryAppGroup(callback: AsyncCallback<number>): void | 10000001 | Memory operation failed. | | 10000002 | Parcel operation failed. | | 10000003 | System service operation failed. | -| 10000004 | IPC Communication failed. | -| 10000005 | Application is not installed. | -| 10000006 | Get application info failed. | -| 10100002 | Get Application group info failed. | +| 10000004 | IPC failed. | +| 10000005 | Application is not installed. | +| 10000006 | Failed to get the application information. | +| 10100002 | Failed to get the application group information. | **示例**: @@ -232,9 +240,9 @@ queryBundleStatsInfos(begin: number, end: number, callback: AsyncCallback<Bun | 10000001 | Memory operation failed. | | 10000002 | Parcel operation failed. | | 10000003 | System service operation failed. | -| 10000004 | IPC Communication failed. | -| 10000006 | Get application info failed. | -| 10000007 | Get system or actual time failed. | +| 10000004 | IPC failed. | +| 10000006 | Failed to get the application information. | +| 10000007 | Failed to get the system time. | **示例**: @@ -292,9 +300,9 @@ queryBundleStatsInfos(begin: number, end: number): Promise<BundleStatsMap> | 10000001 | Memory operation failed. | | 10000002 | Parcel operation failed. | | 10000003 | System service operation failed. | -| 10000004 | IPC Communication failed. | -| 10000006 | Get application info failed. | -| 10000007 | Get system or actual time failed. | +| 10000004 | IPC failed. | +| 10000006 | Failed to get the application information. | +| 10000007 | Failed to get the system time. | **示例**: @@ -346,9 +354,9 @@ queryBundleStatsInfoByInterval(byInterval: IntervalType, begin: number, end: num | 10000001 | Memory operation failed. | | 10000002 | Parcel operation failed. | | 10000003 | System service operation failed. | -| 10000004 | IPC Communication failed. | -| 10000006 | Get application info failed. | -| 10000007 | Get system or actual time failed. | +| 10000004 | IPC failed. | +| 10000006 | Failed to get the application information. | +| 10000007 | Failed to get the system time. | **示例**: @@ -405,9 +413,9 @@ queryBundleStatsInfoByInterval(byInterval: IntervalType, begin: number, end: num | 10000001 | Memory operation failed. | | 10000002 | Parcel operation failed. | | 10000003 | System service operation failed. | -| 10000004 | IPC Communication failed. | -| 10000006 | Get application info failed. | -| 10000007 | Get system or actual time failed. | +| 10000004 | IPC failed. | +| 10000006 | Failed to get the application information. | +| 10000007 | Failed to get the system time. | **示例**: @@ -456,9 +464,9 @@ queryBundleEvents(begin: number, end: number, callback: AsyncCallback<Array&l | 10000001 | Memory operation failed. | | 10000002 | Parcel operation failed. | | 10000003 | System service operation failed. | -| 10000004 | IPC Communication failed. | -| 10000006 | Get application info failed. | -| 10000007 | Get system or actual time failed. | +| 10000004 | IPC failed. | +| 10000006 | Failed to get the application information. | +| 10000007 | Failed to get the system time. | **示例**: @@ -514,9 +522,9 @@ queryBundleEvents(begin: number, end: number): Promise<Array<BundleEvents& | 10000001 | Memory operation failed. | | 10000002 | Parcel operation failed. | | 10000003 | System service operation failed. | -| 10000004 | IPC Communication failed. | -| 10000006 | Get application info failed. | -| 10000007 | Get system or actual time failed. | +| 10000004 | IPC failed. | +| 10000006 | Failed to get the application information. | +| 10000007 | Failed to get the system time. | **示例**: @@ -561,9 +569,9 @@ queryCurrentBundleEvents(begin: number, end: number, callback: AsyncCallback< | 10000001 | Memory operation failed. | | 10000002 | Parcel operation failed. | | 10000003 | System service operation failed. | -| 10000004 | IPC Communication failed. | -| 10000006 | Get application info failed. | -| 10000007 | Get system or actual time failed. | +| 10000004 | IPC failed. | +| 10000006 | Failed to get the application information. | +| 10000007 | Failed to get the system time. | **示例**: @@ -615,9 +623,9 @@ queryCurrentBundleEvents(begin: number, end: number): Promise<Array<Bundle | 10000001 | Memory operation failed. | | 10000002 | Parcel operation failed. | | 10000003 | System service operation failed. | -| 10000004 | IPC Communication failed. | -| 10000006 | Get application info failed. | -| 10000007 | Get system or actual time failed. | +| 10000004 | IPC failed. | +| 10000006 | Failed to get the application information. | +| 10000007 | Failed to get the system time. | **示例**: @@ -664,9 +672,9 @@ queryModuleUsageRecords(): Promise<Array<HapModuleInfo>> | 10000001 | Memory operation failed. | | 10000002 | Parcel operation failed. | | 10000003 | System service operation failed. | -| 10000004 | IPC Communication failed. | -| 10000006 | Get application info failed. | -| 10000007 | Get system or actual time failed. | +| 10000004 | IPC failed. | +| 10000006 | Failed to get the application information. | +| 10000007 | Failed to get the system time. | **示例**: @@ -714,9 +722,9 @@ queryModuleUsageRecords(callback: AsyncCallback<Array<HapModuleInfo>> | 10000001 | Memory operation failed. | | 10000002 | Parcel operation failed. | | 10000003 | System service operation failed. | -| 10000004 | IPC Communication failed. | -| 10000006 | Get application info failed. | -| 10000007 | Get system or actual time failed. | +| 10000004 | IPC failed. | +| 10000006 | Failed to get the application information. | +| 10000007 | Failed to get the system time. | **示例**: @@ -771,9 +779,9 @@ queryModuleUsageRecords(maxNum: number): Promise<Array<HapModuleInfo>&g | 10000001 | Memory operation failed. | | 10000002 | Parcel operation failed. | | 10000003 | System service operation failed. | -| 10000004 | IPC Communication failed. | -| 10000006 | Get application info failed. | -| 10000007 | Get system or actual time failed. | +| 10000004 | IPC failed. | +| 10000006 | Failed to get the application information. | +| 10000007 | Failed to get the system time. | **示例**: @@ -821,9 +829,9 @@ queryModuleUsageRecords(maxNum: number, callback: AsyncCallback<Array<HapM | 10000001 | Memory operation failed. | | 10000002 | Parcel operation failed. | | 10000003 | System service operation failed. | -| 10000004 | IPC Communication failed. | -| 10000006 | Get application info failed. | -| 10000007 | Get system or actual time failed. | +| 10000004 | IPC failed. | +| 10000006 | Failed to get the application information. | +| 10000007 | Failed to get the system time. | **示例**: @@ -878,10 +886,10 @@ queryAppGroup(bundleName : string): Promise<number> | 10000001 | Memory operation failed. | | 10000002 | Parcel operation failed. | | 10000003 | System service operation failed. | -| 10000004 | IPC Communication failed. | +| 10000004 | IPC failed. | | 10000005 | Application is not installed. | -| 10000006 | Get application info failed. | -| 10100002 | Get Application group info failed. | +| 10000006 | Failed to get the application information. | +| 10100002 | Failed to get the application group information. | **示例**: @@ -927,10 +935,10 @@ queryAppGroup(bundleName : string, callback: AsyncCallback<number>): void | 10000001 | Memory operation failed. | | 10000002 | Parcel operation failed. | | 10000003 | System service operation failed. | -| 10000004 | IPC Communication failed. | +| 10000004 | IPC failed. | | 10000005 | Application is not installed. | -| 10000006 | Get application info failed. | -| 10100002 | Get Application group info failed. | +| 10000006 | Failed to get the application information. | +| 10100002 | Failed to get the application group information. | **示例**: @@ -977,9 +985,9 @@ setAppGroup(bundleName: string, newGroup: GroupType): Promise<void> | 10000001 | Memory operation failed. | | 10000002 | Parcel operation failed. | | 10000003 | System service operation failed. | -| 10000004 | IPC Communication failed. | -| 10000006 | Get application info failed. | -| 10100001 | Application group operation repeated. | +| 10000004 | IPC failed. | +| 10000006 | Failed to get the application information. | +| 10100001 | Repeated operation on the application group. | **返回值**: @@ -1033,9 +1041,9 @@ setAppGroup(bundleName: string, newGroup: GroupType, callback: AsyncCallback< | 10000001 | Memory operation failed. | | 10000002 | Parcel operation failed. | | 10000003 | System service operation failed. | -| 10000004 | IPC Communication failed. | -| 10000006 | Get application info failed. | -| 10100001 | Application group operation repeated. | +| 10000004 | IPC failed. | +| 10000006 | Failed to get the application information. | +| 10100001 | Repeated operation on the application group. | **示例**: @@ -1083,8 +1091,8 @@ registerAppGroupCallBack(groupCallback: Callback<AppGroupCallbackInfo>): P | 10000001 | Memory operation failed. | | 10000002 | Parcel operation failed. | | 10000003 | System service operation failed. | -| 10000004 | IPC Communication failed. | -| 10100001 | Application group operation repeated. | +| 10000004 | IPC failed. | +| 10100001 | Repeated operation on the application group. | **返回值**: @@ -1142,13 +1150,14 @@ registerAppGroupCallBack(groupCallback: Callback<AppGroupCallbackInfo>, ca | 10000001 | Memory operation failed. | | 10000002 | Parcel operation failed. | | 10000003 | System service operation failed. | -| 10000004 | IPC Communication failed. | -| 10100001 | Application group operation repeated. | +| 10000004 | IPC failed. | +| 10100001 | Repeated operation on the application group. | **示例**: ```javascript + // @ts-nocheck let onBundleGroupChanged = (err, res) =>{ console.log('BUNDLE_ACTIVE onBundleGroupChanged RegisterGroupCallBack callback success.'); console.log('BUNDLE_ACTIVE registerAppGroupCallBack result appOldGroup is : ' + res.appOldGroup); @@ -1197,8 +1206,8 @@ unregisterAppGroupCallBack(): Promise<void> | 10000001 | Memory operation failed. | | 10000002 | Parcel operation failed. | | 10000003 | System service operation failed. | -| 10000004 | IPC Communication failed. | -| 10100001 | Application group operation repeated. | +| 10000004 | IPC failed. | +| 10100001 | Repeated operation on the application group. | **示例**: @@ -1241,8 +1250,8 @@ unregisterAppGroupCallBack(callback: AsyncCallback<void>): void; | 10000001 | Memory operation failed. | | 10000002 | Parcel operation failed. | | 10000003 | System service operation failed. | -| 10000004 | IPC Communication failed. | -| 10100001 | Application group operation repeated. | +| 10000004 | IPC failed. | +| 10100001 | Repeated operation on the application group. | **示例**: @@ -1294,9 +1303,9 @@ queryDeviceEventStats(begin: number, end: number): Promise<Array<DeviceEve | 10000001 | Memory operation failed. | | 10000002 | Parcel operation failed. | | 10000003 | System service operation failed. | -| 10000004 | IPC Communication failed. | -| 10000006 | Get application info failed. | -| 10000007 | Get system or actual time failed. | +| 10000004 | IPC failed. | +| 10000006 | Failed to get the application information. | +| 10000007 | Failed to get the system time. | **示例**: @@ -1342,9 +1351,9 @@ queryDeviceEventStats(begin: number, end: number, callback: AsyncCallback<Arr | 10000001 | Memory operation failed. | | 10000002 | Parcel operation failed. | | 10000003 | System service operation failed. | -| 10000004 | IPC Communication failed. | -| 10000006 | Get application info failed. | -| 10000007 | Get system or actual time failed. | +| 10000004 | IPC failed. | +| 10000006 | Failed to get the application information. | +| 10000007 | Failed to get the system time. | **示例**: @@ -1397,9 +1406,9 @@ queryNotificationEventStats(begin: number, end: number): Promise<Array<Dev | 10000001 | Memory operation failed. | | 10000002 | Parcel operation failed. | | 10000003 | System service operation failed. | -| 10000004 | IPC Communication failed. | -| 10000006 | Get application info failed. | -| 10000007 | Get system or actual time failed. | +| 10000004 | IPC failed. | +| 10000006 | Failed to get the application information. | +| 10000007 | Failed to get the system time. | **示例**: @@ -1445,9 +1454,9 @@ queryNotificationEventStats(begin: number, end: number, callback: AsyncCallback& | 10000001 | Memory operation failed. | | 10000002 | Parcel operation failed. | | 10000003 | System service operation failed. | -| 10000004 | IPC Communication failed. | -| 10000006 | Get application info failed. | -| 10000007 | Get system or actual time failed. | +| 10000004 | IPC failed. | +| 10000006 | Failed to get the application information. | +| 10000007 | Failed to get the system time. | **示例**: diff --git a/zh-cn/application-dev/reference/apis/js-apis-rpc.md b/zh-cn/application-dev/reference/apis/js-apis-rpc.md index e6683dd673247346780a300625e06cb221ec1c4f..1c9fd94d4d1606edad006c7ce6550151cb365688 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-rpc.md +++ b/zh-cn/application-dev/reference/apis/js-apis-rpc.md @@ -2391,6 +2391,8 @@ readException(): void **示例:** + 获取服务 + ```ts import FA from "@ohos.ability.featureAbility"; let proxy; @@ -2411,6 +2413,11 @@ readException(): void "abilityName": "com.ohos.server.EntryAbility", }; FA.connectAbility(want, connect); + ``` + + 上述onConnect回调函数中的proxy对象需要等ability异步连接成功后才会被赋值,然后才可调用proxy对象的sendMessageRequest接口方法发送消息 + + ```ts let option = new rpc.MessageOption(); let data = rpc.MessageSequence.create(); let reply = rpc.MessageSequence.create(); @@ -4839,6 +4846,8 @@ readException(): void **系统能力**:SystemCapability.Communication.IPC.Core **示例:** + + 获取服务 ```ts import FA from "@ohos.ability.featureAbility"; @@ -4860,6 +4869,11 @@ readException(): void "abilityName": "com.ohos.server.EntryAbility", }; FA.connectAbility(want, connect); + ``` + + 上述onConnect回调函数中的proxy对象需要等ability异步连接成功后才会被赋值,然后才可调用proxy对象的sendMessageRequest接口方法发送消息 + + ```ts let option = new rpc.MessageOption(); let data = rpc.MessageParcel.create(); let reply = rpc.MessageParcel.create(); @@ -5640,6 +5654,8 @@ asObject(): IRemoteObject **示例:** + 获取服务 + ```ts import FA from "@ohos.ability.featureAbility"; let proxy; @@ -5660,7 +5676,11 @@ asObject(): IRemoteObject "abilityName": "com.ohos.server.EntryAbility", }; FA.connectAbility(want, connect); - + ``` + + 上述onConnect回调函数中的proxy对象需要等ability异步连接成功后才会被赋值,然后才可调用proxy对象的asObject接口方法获取代理或远端对象 + + ```ts class TestProxy { remote: rpc.RemoteObject; constructor(remote) { @@ -5802,7 +5822,7 @@ sendRequest(code: number, data: MessageParcel, reply: MessageParcel, options: Me sendRequest(code: number, data: MessageParcel, reply: MessageParcel, options: MessageOption): Promise<SendRequestResult> -以同步或异步方式向对端进程发送MessageParcel消息。如果为选项设置了异步模式,则期约立即兑现,reply报文里没有内容。如果为选项设置了同步模式,则期约将在sendRequest返回时兑现,回复内容在reply报文里。 +以同步或异步方式向对端进程发送MessageParcel消息。如果为选项设置了异步模式,则期约立即兑现,reply报文里没有内容,具体回复需要在业务侧的回调中获取。如果为选项设置了同步模式,则期约将在sendRequest返回时兑现,回复内容在reply报文里。 **系统能力**:SystemCapability.Communication.IPC.Core @@ -5826,7 +5846,7 @@ sendRequest(code: number, data: MessageParcel, reply: MessageParcel, options: Me sendMessageRequest(code: number, data: MessageSequence, reply: MessageSequence, options: MessageOption): Promise<RequestResult> -以同步或异步方式向对端进程发送MessageSequence消息。如果为选项设置了异步模式,则期约立即兑现,reply报文里没有内容。如果为选项设置了同步模式,则期约将在sendMessageRequest返回时兑现,回复内容在reply报文里。 +以同步或异步方式向对端进程发送MessageSequence消息。如果为选项设置了异步模式,则期约立即兑现,reply报文里没有内容,具体回复需要在业务侧的回调中获取。如果为选项设置了同步模式,则期约将在sendMessageRequest返回时兑现,回复内容在reply报文里。 **系统能力**:SystemCapability.Communication.IPC.Core @@ -5850,7 +5870,7 @@ sendMessageRequest(code: number, data: MessageSequence, reply: MessageSequence, sendMessageRequest(code: number, data: MessageSequence, reply: MessageSequence, options: MessageOption, callback: AsyncCallback<RequestResult>): void -以同步或异步方式向对端进程发送MessageSequence消息。如果为选项设置了异步模式,则立即收到回调,reply报文里没有内容。如果为选项设置了同步模式,则将在sendRequest返回时收到回调,回复内容在reply报文里。 +以同步或异步方式向对端进程发送MessageSequence消息。如果为选项设置了异步模式,则立即收到回调,reply报文里没有内容,具体回复需要在业务侧的回调中获取。如果为选项设置了同步模式,则将在sendRequest返回时收到回调,回复内容在reply报文里。 **系统能力**:SystemCapability.Communication.IPC.Core @@ -5870,7 +5890,7 @@ sendMessageRequest(code: number, data: MessageSequence, reply: MessageSequence, sendRequest(code: number, data: MessageParcel, reply: MessageParcel, options: MessageOption, callback: AsyncCallback<SendRequestResult>): void -以同步或异步方式向对端进程发送MessageParcel消息。如果为选项设置了异步模式,则立即收到回调,reply报文里没有内容。如果为选项设置了同步模式,则将在sendRequest返回时收到回调,回复内容在reply报文里。 +以同步或异步方式向对端进程发送MessageParcel消息。如果为选项设置了异步模式,则立即收到回调,reply报文里没有内容,具体回复需要在业务侧的回调中获取。如果为选项设置了同步模式,则将在sendRequest返回时收到回调,回复内容在reply报文里。 **系统能力**:SystemCapability.Communication.IPC.Core @@ -6052,7 +6072,7 @@ isObjectDead(): boolean sendRequest(code: number, data: MessageParcel, reply: MessageParcel, options: MessageOption): boolean -以同步或异步方式向对端进程发送MessageParcel消息。如果为选项设置了异步模式,则期约立即兑现,reply报文里没有内容。如果为选项设置了同步模式,则期约将在sendRequest返回时兑现,回复内容在reply报文里。 +以同步或异步方式向对端进程发送MessageParcel消息。如果为选项设置了异步模式,则期约立即兑现,reply报文里没有内容,具体回复需要在业务侧的回调中获取。如果为选项设置了同步模式,则期约将在sendRequest返回时兑现,回复内容在reply报文里。 **系统能力**:SystemCapability.Communication.IPC.Core @@ -6073,6 +6093,8 @@ sendRequest(code: number, data: MessageParcel, reply: MessageParcel, options: Me **示例:** + 获取服务 + ```ts import FA from "@ohos.ability.featureAbility"; let proxy; @@ -6093,6 +6115,11 @@ sendRequest(code: number, data: MessageParcel, reply: MessageParcel, options: Me "abilityName": "com.ohos.server.EntryAbility", }; FA.connectAbility(want, connect); + ``` + + 上述onConnect回调函数中的proxy对象需要等ability异步连接成功后才会被赋值,然后才可调用proxy对象的sendRequest接口方法发送消息 + + ```ts let option = new rpc.MessageOption(); let data = rpc.MessageParcel.create(); let reply = rpc.MessageParcel.create(); @@ -6115,7 +6142,7 @@ sendRequest(code: number, data: MessageParcel, reply: MessageParcel, options: Me sendMessageRequest(code: number, data: MessageSequence, reply: MessageSequence, options: MessageOption): Promise<RequestResult> -以同步或异步方式向对端进程发送MessageSequence消息。如果为选项设置了异步模式,则期约立即兑现,reply报文里没有内容。如果为选项设置了同步模式,则期约将在sendMessageRequest返回时兑现,回复内容在reply报文里。 +以同步或异步方式向对端进程发送MessageSequence消息。如果为选项设置了异步模式,则期约立即兑现,reply报文里没有内容,具体回复需要在业务侧的回调中获取。如果为选项设置了同步模式,则期约将在sendMessageRequest返回时兑现,回复内容在reply报文里。 **系统能力**:SystemCapability.Communication.IPC.Core @@ -6136,6 +6163,8 @@ sendMessageRequest(code: number, data: MessageSequence, reply: MessageSequence, **示例:** + 获取服务 + ```ts import FA from "@ohos.ability.featureAbility"; let proxy; @@ -6156,6 +6185,11 @@ sendMessageRequest(code: number, data: MessageSequence, reply: MessageSequence, "abilityName": "com.ohos.server.EntryAbility", }; FA.connectAbility(want, connect); + ``` + + 上述onConnect回调函数中的proxy对象需要等ability异步连接成功后才会被赋值,然后才可调用proxy对象的sendMessageRequest接口方法发送消息 + + ```ts let option = new rpc.MessageOption(); let data = rpc.MessageSequence.create(); let reply = rpc.MessageSequence.create(); @@ -6186,7 +6220,7 @@ sendMessageRequest(code: number, data: MessageSequence, reply: MessageSequence, sendRequest(code: number, data: MessageParcel, reply: MessageParcel, options: MessageOption): Promise<SendRequestResult> -以同步或异步方式向对端进程发送MessageParcel消息。如果为选项设置了异步模式,则期约立即兑现,reply报文里没有内容。如果为选项设置了同步模式,则期约将在sendRequest返回时兑现,回复内容在reply报文里。 +以同步或异步方式向对端进程发送MessageParcel消息。如果为选项设置了异步模式,则期约立即兑现,reply报文里没有内容,具体回复需要在业务侧的回调中获取。如果为选项设置了同步模式,则期约将在sendRequest返回时兑现,回复内容在reply报文里。 **系统能力**:SystemCapability.Communication.IPC.Core @@ -6207,6 +6241,8 @@ sendRequest(code: number, data: MessageParcel, reply: MessageParcel, options: Me **示例:** + 获取服务 + ```ts import FA from "@ohos.ability.featureAbility"; let proxy; @@ -6227,6 +6263,11 @@ sendRequest(code: number, data: MessageParcel, reply: MessageParcel, options: Me "abilityName": "com.ohos.server.EntryAbility", }; FA.connectAbility(want, connect); + ``` + + 上述onConnect回调函数中的proxy对象需要等ability异步连接成功后才会被赋值,然后才可调用proxy对象的sendRequest接口方法发送消息 + + ```ts let option = new rpc.MessageOption(); let data = rpc.MessageParcel.create(); let reply = rpc.MessageParcel.create(); @@ -6255,7 +6296,7 @@ sendRequest(code: number, data: MessageParcel, reply: MessageParcel, options: Me sendMessageRequest(code: number, data: MessageSequence, reply: MessageSequence, options: MessageOption, callback: AsyncCallback<RequestResult>): void -以同步或异步方式向对端进程发送MessageSequence消息。如果为选项设置了异步模式,则立即收到回调,reply报文里没有内容。如果为选项设置了同步模式,则将在sendMessageRequest返回后的某个时机执行回调,回复内容在RequestResult的reply报文里。 +以同步或异步方式向对端进程发送MessageSequence消息。如果为选项设置了异步模式,则立即收到回调,reply报文里没有内容,具体回复需要在业务侧的回调中获取。如果为选项设置了同步模式,则将在sendMessageRequest返回后的某个时机执行回调,回复内容在RequestResult的reply报文里。 **系统能力**:SystemCapability.Communication.IPC.Core @@ -6270,6 +6311,8 @@ sendMessageRequest(code: number, data: MessageSequence, reply: MessageSequence, | callback | AsyncCallback<RequestResult> | 是 | 接收发送结果的回调。 | **示例:** + + 获取服务 ```ts import FA from "@ohos.ability.featureAbility"; @@ -6304,6 +6347,11 @@ sendMessageRequest(code: number, data: MessageSequence, reply: MessageSequence, result.reply.reclaim(); } FA.connectAbility(want, connect); + ``` + + 上述onConnect回调函数中的proxy对象需要等ability异步连接成功后才会被赋值,然后才可调用proxy对象的sendMessageRequest接口方法发送消息 + + ```ts let option = new rpc.MessageOption(); let data = rpc.MessageSequence.create(); let reply = rpc.MessageSequence.create(); @@ -6323,7 +6371,7 @@ sendMessageRequest(code: number, data: MessageSequence, reply: MessageSequence, sendRequest(code: number, data: MessageParcel, reply: MessageParcel, options: MessageOption, callback: AsyncCallback<SendRequestResult>): void -以同步或异步方式向对端进程发送MessageParcel消息。如果为选项设置了异步模式,则立即收到回调,reply报文里没有内容。如果为选项设置了同步模式,则将在sendRequest返回时收到回调,回复内容在reply报文里。 +以同步或异步方式向对端进程发送MessageParcel消息。如果为选项设置了异步模式,则立即收到回调,reply报文里没有内容,具体回复需要在业务侧的回调中获取。如果为选项设置了同步模式,则将在sendRequest返回时收到回调,回复内容在reply报文里。 **系统能力**:SystemCapability.Communication.IPC.Core @@ -6339,6 +6387,8 @@ sendRequest(code: number, data: MessageParcel, reply: MessageParcel, options: Me **示例:** + 获取服务 + ```ts import FA from "@ohos.ability.featureAbility"; let proxy; @@ -6372,6 +6422,11 @@ sendRequest(code: number, data: MessageParcel, reply: MessageParcel, options: Me result.reply.reclaim(); } FA.connectAbility(want, connect); + ``` + + 上述onConnect回调函数中的proxy对象需要等ability异步连接成功后才会被赋值,然后才可调用proxy对象的sendRequest接口方法发送消息 + + ```ts let option = new rpc.MessageOption(); let data = rpc.MessageParcel.create(); let reply = rpc.MessageParcel.create(); @@ -6410,6 +6465,8 @@ getLocalInterface(interface: string): IRemoteBroker **示例:** + 获取服务 + ```ts import FA from "@ohos.ability.featureAbility"; let proxy; @@ -6430,6 +6487,11 @@ getLocalInterface(interface: string): IRemoteBroker "abilityName":"com.ohos.server.EntryAbility", }; FA.connectAbility(want, connect); + ``` + + 上述onConnect回调函数中的proxy对象需要等ability异步连接成功后才会被赋值,然后才可调用proxy对象的getLocalInterface接口方法查询接口对象 + + ```ts try { let broker = proxy.getLocalInterface("testObject"); console.log("RpcClient: getLocalInterface is " + broker); @@ -6463,6 +6525,8 @@ queryLocalInterface(interface: string): IRemoteBroker **示例:** + 获取服务 + ```ts import FA from "@ohos.ability.featureAbility"; let proxy; @@ -6483,6 +6547,11 @@ queryLocalInterface(interface: string): IRemoteBroker "abilityName":"com.ohos.server.EntryAbility", }; FA.connectAbility(want, connect); + ``` + + 上述onConnect回调函数中的proxy对象需要等ability异步连接成功后才会被赋值,然后才可调用proxy对象的queryLocalInterface接口获取接口对象 + + ```ts let broker = proxy.queryLocalInterface("testObject"); console.log("RpcClient: queryLocalInterface is " + broker); ``` @@ -6512,6 +6581,8 @@ registerDeathRecipient(recipient: DeathRecipient, flags: number): void **示例:** + 获取服务 + ```ts import FA from "@ohos.ability.featureAbility"; let proxy; @@ -6532,6 +6603,11 @@ registerDeathRecipient(recipient: DeathRecipient, flags: number): void "abilityName": "com.ohos.server.EntryAbility", }; FA.connectAbility(want, connect); + ``` + + 上述onConnect回调函数中的proxy对象需要等ability异步连接成功后才会被赋值,然后才可调用proxy对象的registerDeathRecipient接口注册死亡回调 + + ```ts class MyDeathRecipient { onRemoteDied() { console.log("server died"); @@ -6539,7 +6615,7 @@ registerDeathRecipient(recipient: DeathRecipient, flags: number): void } let deathRecipient = new MyDeathRecipient(); try { - proxy.registerDeathRecippient(deathRecipient, 0); + proxy.registerDeathRecipient(deathRecipient, 0); } catch(error) { console.info("proxy register deathRecipient fail, errorCode " + error.code); console.info("proxy register deathRecipient fail, errorMessage " + error.message); @@ -6571,6 +6647,8 @@ addDeathRecipient(recipient: DeathRecipient, flags: number): boolean **示例:** + 获取服务 + ```ts import FA from "@ohos.ability.featureAbility"; let proxy; @@ -6591,13 +6669,18 @@ addDeathRecipient(recipient: DeathRecipient, flags: number): boolean "abilityName": "com.ohos.server.EntryAbility", }; FA.connectAbility(want, connect); + ``` + + 上述onConnect回调函数中的proxy对象需要等ability异步连接成功后才会被赋值,然后才可调用proxy对象的addDeathRecippient接口方法新增死亡回调 + + ```ts class MyDeathRecipient { onRemoteDied() { console.log("server died"); } } let deathRecipient = new MyDeathRecipient(); - proxy.addDeathRecippient(deathRecipient, 0); + proxy.addDeathRecipient(deathRecipient, 0); ``` ### unregisterDeathRecipient9+ @@ -6625,6 +6708,8 @@ unregisterDeathRecipient(recipient: DeathRecipient, flags: number): boolean **示例:** + 获取服务 + ```ts import FA from "@ohos.ability.featureAbility"; let proxy; @@ -6645,6 +6730,11 @@ unregisterDeathRecipient(recipient: DeathRecipient, flags: number): boolean "abilityName": "com.ohos.server.EntryAbility", }; FA.connectAbility(want, connect); + ``` + + 上述onConnect回调函数中的proxy对象需要等ability异步连接成功后才会被赋值,然后才可调用proxy对象的unregisterDeathRecipient接口方法注销死亡回调 + + ```ts class MyDeathRecipient { onRemoteDied() { console.log("server died"); @@ -6685,6 +6775,8 @@ removeDeathRecipient(recipient: DeathRecipient, flags: number): boolean **示例:** + 获取服务 + ```ts import FA from "@ohos.ability.featureAbility"; let proxy; @@ -6705,6 +6797,11 @@ removeDeathRecipient(recipient: DeathRecipient, flags: number): boolean "abilityName": "com.ohos.server.EntryAbility", }; FA.connectAbility(want, connect); + ``` + + 上述onConnect回调函数中的proxy对象需要等ability异步连接成功后才会被赋值,然后才可调用proxy对象的removeDeathRecipient接口方法去注册死亡回调 + + ```ts class MyDeathRecipient { onRemoteDied() { console.log("server died"); @@ -6740,6 +6837,8 @@ getDescriptor(): string **示例:** + 获取服务 + ```ts import FA from "@ohos.ability.featureAbility"; let proxy; @@ -6760,6 +6859,10 @@ getDescriptor(): string "abilityName": "com.ohos.server.EntryAbility", }; FA.connectAbility(want, connect); + ``` + 上述onConnect回调函数中的proxy对象需要等ability异步连接成功后才会被赋值,然后才可调用proxy对象的getDescriptor接口方法获取对象的接口描述符 + + ```ts try { let descriptor = proxy.getDescriptor(); console.log("RpcClient: descriptor is " + descriptor); @@ -6787,6 +6890,8 @@ getInterfaceDescriptor(): string **示例:** + 获取服务 + ```ts import FA from "@ohos.ability.featureAbility"; let proxy; @@ -6807,6 +6912,11 @@ getInterfaceDescriptor(): string "abilityName": "com.ohos.server.EntryAbility", }; FA.connectAbility(want, connect); + ``` + + 上述onConnect回调函数中的proxy对象需要等ability异步连接成功后才会被赋值,然后才可调用proxy对象的getInterfaceDescriptor接口方法查询当前代理对象接口的描述符 + + ```ts let descriptor = proxy.getInterfaceDescriptor(); console.log("RpcClient: descriptor is " + descriptor); ``` @@ -6827,6 +6937,8 @@ isObjectDead(): boolean **示例:** + 获取服务 + ```ts import FA from "@ohos.ability.featureAbility"; let proxy; @@ -6847,6 +6959,11 @@ isObjectDead(): boolean "abilityName": "com.ohos.server.EntryAbility", }; FA.connectAbility(want, connect); + ``` + + 上述onConnect回调函数中的proxy对象需要等ability异步连接成功后才会被赋值,然后才可调用proxy对象的isObjectDead接口方法判断当前对象是否已经死亡 + + ```ts let isDead = proxy.isObjectDead(); console.log("RpcClient: isObjectDead is " + isDead); ``` @@ -7452,7 +7569,7 @@ RemoteObject构造函数。 sendRequest(code: number, data: MessageParcel, reply: MessageParcel, options: MessageOption): boolean -以同步或异步方式向对端进程发送MessageParcel消息。如果为选项设置了异步模式,则期约立即兑现,reply报文里没有内容。如果为选项设置了同步模式,则期约将在sendRequest返回时兑现,回复内容在reply报文里。 +以同步或异步方式向对端进程发送MessageParcel消息。如果为选项设置了异步模式,则期约立即兑现,reply报文里没有内容,具体回复需要在业务侧的回调中获取。如果为选项设置了同步模式,则期约将在sendRequest返回时兑现,回复内容在reply报文里。 **系统能力**:SystemCapability.Communication.IPC.Core @@ -7518,7 +7635,7 @@ sendRequest(code: number, data: MessageParcel, reply: MessageParcel, options: Me sendRequest(code: number, data: MessageParcel, reply: MessageParcel, options: MessageOption): Promise<SendRequestResult> -以同步或异步方式向对端进程发送MessageParcel消息。如果为选项设置了异步模式,则期约立即兑现,reply报文里没有内容。如果为选项设置了同步模式,则期约将在sendRequest返回时兑现,回复内容在reply报文里。 +以同步或异步方式向对端进程发送MessageParcel消息。如果为选项设置了异步模式,则期约立即兑现,reply报文里没有内容,具体回复需要在业务侧的回调中获取。如果为选项设置了同步模式,则期约将在sendRequest返回时兑现,回复内容在reply报文里。 **系统能力**:SystemCapability.Communication.IPC.Core @@ -7588,7 +7705,7 @@ sendRequest(code: number, data: MessageParcel, reply: MessageParcel, options: Me sendMessageRequest(code: number, data: MessageSequence, reply: MessageSequence, options: MessageOption): Promise<RequestResult> -以同步或异步方式向对端进程发送MessageSequence消息。如果为选项设置了异步模式,则期约立即兑现,reply报文里没有内容。如果为选项设置了同步模式,则期约将在sendMessageRequest返回时兑现,回复内容在reply报文里。 +以同步或异步方式向对端进程发送MessageSequence消息。如果为选项设置了异步模式,则期约立即兑现,reply报文里没有内容,具体回复需要在业务侧的回调中获取。如果为选项设置了同步模式,则期约将在sendMessageRequest返回时兑现,回复内容在reply报文里。 **系统能力**:SystemCapability.Communication.IPC.Core @@ -7644,7 +7761,7 @@ sendMessageRequest(code: number, data: MessageSequence, reply: MessageSequence, sendMessageRequest(code: number, data: MessageSequence, reply: MessageSequence, options: MessageOption, callback: AsyncCallback<RequestResult>): void -以同步或异步方式向对端进程发送MessageSequence消息。如果为选项设置了异步模式,则立即收到回调,reply报文里没有内容。如果为选项设置了同步模式,则将在sendMessageRequest返回时收到回调,回复内容在reply报文里。 +以同步或异步方式向对端进程发送MessageSequence消息。如果为选项设置了异步模式,则立即收到回调,reply报文里没有内容,具体回复需要在业务侧的回调中获取。如果为选项设置了同步模式,则将在sendMessageRequest返回时收到回调,回复内容在reply报文里。 **系统能力**:SystemCapability.Communication.IPC.Core @@ -7694,7 +7811,7 @@ sendMessageRequest(code: number, data: MessageSequence, reply: MessageSequence, sendRequest(code: number, data: MessageParcel, reply: MessageParcel, options: MessageOption, callback: AsyncCallback<SendRequestResult>): void -以同步或异步方式向对端进程发送MessageParcel消息。如果为选项设置了异步模式,则立即收到回调,reply报文里没有内容。如果为选项设置了同步模式,则将在sendRequest返回时收到回调,回复内容在reply报文里。 +以同步或异步方式向对端进程发送MessageParcel消息。如果为选项设置了异步模式,则立即收到回调,reply报文里没有内容,具体回复需要在业务侧的回调中获取。如果为选项设置了同步模式,则将在sendRequest返回时收到回调,回复内容在reply报文里。 **系统能力**:SystemCapability.Communication.IPC.Core diff --git a/zh-cn/application-dev/reference/apis/js-apis-screen.md b/zh-cn/application-dev/reference/apis/js-apis-screen.md index 7c37de05cb8fe9303392531982b4af0bfc8f8a57..d2c888e1f4b312e1a9338b2344853be23dd78a52 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-screen.md +++ b/zh-cn/application-dev/reference/apis/js-apis-screen.md @@ -735,6 +735,8 @@ try { 下列API示例中都需先使用[getAllScreens()](#screengetallscreens)、[createVirtualScreen()](#screencreatevirtualscreen)中的任一方法获取到Screen实例,再通过此实例调用对应方法。 +### 属性 + **系统能力:** SystemCapability.WindowManager.WindowManager.Core | 名称 | 类型 | 可读 | 可写 | 说明 | @@ -744,6 +746,7 @@ try { | supportedModeInfo | Array<[ScreenModeInfo](#screenmodeinfo)> | 是 | 否 | 屏幕支持的模式集合。 | | activeModeIndex | number | 是 | 否 | 当前屏幕所处模式索引。 | | orientation | [Orientation](#orientation) | 是 | 否 | 屏幕方向。 | +| sourceMode10+ | [ScreenSourceMode](#screensourcemode10) | 是 | 否 | 屏幕来源模式。 | ### setOrientation @@ -997,6 +1000,19 @@ try { | REVERSE_VERTICAL | 3 | 表示指定屏幕为反向垂直方向。 | | REVERSE_HORIZONTAL | 4 | 表示指定屏幕为反向水平方向。 | +## ScreenSourceMode10+ + +屏幕显示内容来源模式枚举。 + +**系统能力:** SystemCapability.WindowManager.WindowManager.Core + +| 名称 | 值 | 说明 | +| ------------------ | ---- | -------------------------------- | +| SCREEN_MAIN | 0 | 表示屏幕为默认主屏。 | +| SCREEN_MIRROR | 1 | 表示屏幕内容来自镜像。 | +| SCREEN_EXTEND | 2 | 表示屏幕内容来自扩展。 | +| SCREEN_ALONE | 3 | 表示屏幕为未指定来源。 | + ## ScreenModeInfo 屏幕显示模式信息。 diff --git a/zh-cn/application-dev/reference/apis/js-apis-sensor.md b/zh-cn/application-dev/reference/apis/js-apis-sensor.md index 8638221b66ef061dd51a5333e602aada717900c3..282bab54a75a6fb77c5fe7a8ac5e1457b319b4bf 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-sensor.md +++ b/zh-cn/application-dev/reference/apis/js-apis-sensor.md @@ -3179,7 +3179,7 @@ getRotationMatrix(gravity: Array<number>, geomagnetic: Array<number> try { let gravity = [-0.27775216, 0.5351276, 9.788099]; let geomagnetic = [210.87253, -78.6096, -111.44444]; - sensor.getRotationMatrix(gravity, geomagnetic, function (err, data) => { + sensor.getRotationMatrix(gravity, geomagnetic, function (err, data) { if (err) { console.error('Get rotationMatrix failed. Error code: ' + err.code + '; message: ' + err.message); return; @@ -3477,7 +3477,7 @@ try { | 名称 | 类型 | 可读 | 可写 | 说明 | | --------------- | -------- | ---------------------- | ---------------------- | ---------------------- | | sensorName | string | 是 | 是 | 传感器名称。 | -| venderName | string | 是 | 是 | 传感器供应商。 | +| vendorName | string | 是 | 是 | 传感器供应商。 | | firmwareVersion | string | 是 | 是 | 传感器固件版本。 | | hardwareVersion | string | 是 | 是 | 传感器硬件版本。 | | sensorId | number | 是 | 是 | 传感器类型id。 | diff --git a/zh-cn/application-dev/reference/apis/js-apis-settings.md b/zh-cn/application-dev/reference/apis/js-apis-settings.md index 1fd15c0f09c8801a2b822ac7778643cb117f5ff4..1f020cc283bc5bfc9c08d621254730d90c1a167a 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-settings.md +++ b/zh-cn/application-dev/reference/apis/js-apis-settings.md @@ -185,121 +185,6 @@ import settings from '@ohos.settings'; | WIFI_STATUS | string | 是 | 是 | Wi-Fi是否可用。
值为true表示Wi-Fi可用;
值为false表示Wi-Fi不可用。 | | WIFI_WATCHDOG_STATUS | string | 是 | 是 | Wi-Fi的WatchDog是否可用。
值为true表示可用;
值为false表示不可用。 | -## setting.getURI - -getURI(name: string, callback: AsyncCallback\): void - -获取数据项的URI。使用callback异步回调。 - -**系统能力**:SystemCapability.Applications.settings.Core - -**参数**: - -| 参数名 | 类型 | 必填 | 说明 | -| -------- | ---------------------- | ---- | ------------------------------------------------------------ | -| name | string | 是 | 数据项的名称。数据项名称分为以下两种:
- 上述任意一个数据库中已存在的数据项。
- 开发者自行添加的数据项。 | -| callback | AsyncCallback\ | 是 | 回调函数。获取数据项的URI。 | - -**示例**: - -```js -settings.getURI(settings.display.SCREEN_BRIGHTNESS_STATUS, (uri) => { - console.log(`callback:uri -> ${JSON.stringify(uri)}`) -}) -``` - -## setting.getURI - -getURI(name: string): Promise\ - -获取数据项的URI。使用Promise异步回调。 - -**系统能力**:SystemCapability.Applications.settings.Core - -**参数**: - -| 参数名 | 类型 | 必填 | 说明 | -| ------ | ------ | ---- | ------------------------------------------------------------ | -| name | string | 是 | 数据项的名称。数据项名称分为以下两种:
- 上述任意一个数据库中已存在的数据项。
- 开发者自行添加的数据项。 | - -**返回值**: - -| 类型 | 说明 | -| ---------------- | ------------------------------------ | -| Promise\ | Promise对象。返回获取的数据项的URI。 | - -**示例**: - -```js -settings.getURI(settings.display.SCREEN_BRIGHTNESS_STATUS).then((uri) => { - console.log(`promise:uri -> ${JSON.stringify(uri)}`) -}) -``` - -## setting.getValue - -getValue(dataAbilityHelper: DataAbilityHelper, name: string, callback: AsyncCallback\): void - -获取数据库中指定数据项的值。使用callback异步回调。 - -**系统能力**:SystemCapability.Applications.settings.Core - -**参数**: - -| 参数名 | 类型 | 必填 | 说明 | -| ----------------- | ------------------------------------------------- | ---- | ------------------------------------------------------------ | -| dataAbilityHelper | [DataAbilityHelper](js-apis-inner-ability-dataAbilityHelper.md) | 是 | 数据管理辅助类。 | -| name | string | 是 | 数据项的名称。数据项名称分为以下两种:
- 上述任意一个数据库中已存在的数据项。
- 开发者自行添加的数据项。 | -| callback | AsyncCallback\ | 是 | 使用callback方式获取数据项的值。 | - -**示例**: - -```js -import featureAbility from '@ohos.ability.featureAbility'; - -let uri = settings.getUriSync(settings.display.SCREEN_BRIGHTNESS_STATUS); -let helper = featureAbility.acquireDataAbilityHelper(uri); -settings.getValue(helper, settings.display.SCREEN_BRIGHTNESS_STATUS, (err, value) => { - if (err) { - console.error(`Failed to get the setting. ${err.message} `); - return; - } - console.log(`callback:value -> ${JSON.stringify(value)}`) -}); -``` - -## setting.getValue - -getValue(dataAbilityHelper: DataAbilityHelper, name: string): Promise\ - -获取数据库中指定数据项的值。使用Promise异步回调。 - -**系统能力**:SystemCapability.Applications.settings.Core - -**参数**: - -| 参数名 | 类型 | 必填 | 说明 | -| ----------------- | ------------------------------------------------- | ---- | ------------------------------------------------------------ | -| dataAbilityHelper | [DataAbilityHelper](js-apis-inner-ability-dataAbilityHelper.md) | 是 | 数据管理辅助类。 | -| name | string | 是 | 数据项的名称。数据项名称分为以下两种:
- 上述任意一个数据库中已存在的数据项。
- 开发者自行添加的数据项。 | - -**返回值**: - -| 类型 | 说明 | -| ---------------- | ----------------------------------- | -| Promise\ | Promise对象。返回获得的数据项的值。 | - -**示例**: - -```js -import featureAbility from '@ohos.ability.featureAbility'; - -let uri = settings.getUriSync(settings.display.SCREEN_BRIGHTNESS_STATUS); -let helper = featureAbility.acquireDataAbilityHelper(uri); -settings.getValue(helper, settings.display.SCREEN_BRIGHTNESS_STATUS).then((value) => { - console.log(`promise:value -> ${JSON.stringify(value)}`) -}); -``` ## settings.setValue @@ -328,6 +213,8 @@ import featureAbility from '@ohos.ability.featureAbility'; //更新数据项亮度的值(该数据项在数据库中已存在,故setValue方法将更新该数据项的值) let uri = settings.getUriSync(settings.display.SCREEN_BRIGHTNESS_STATUS); let helper = featureAbility.acquireDataAbilityHelper(uri); +//@ts-ignore +//此处数据项值的类型为string settings.setValue(helper, settings.display.SCREEN_BRIGHTNESS_STATUS, '100', (status) => { console.log('Callback return whether value is set.'); }); @@ -365,6 +252,8 @@ import featureAbility from '@ohos.ability.featureAbility'; //更新数据项亮度的值(该数据项在数据库中已存在,故setValue方法将更新该数据项的值) let uri = settings.getUriSync(settings.display.SCREEN_BRIGHTNESS_STATUS); let helper = featureAbility.acquireDataAbilityHelper(uri); +//@ts-ignore +//此处数据项值的类型为string settings.setValue(helper, settings.display.SCREEN_BRIGHTNESS_STATUS, '100').then((status) => { console.log('Callback return whether value is set.'); }); @@ -500,12 +389,154 @@ getUriSync(name: string): string let urivar = settings.getUriSync(settings.display.SCREEN_BRIGHTNESS_STATUS); ``` -## settings.getValueSync8+ +## setting.getURI(deprecated) + +getURI(name: string, callback: AsyncCallback\): void + +获取数据项的URI。使用callback异步回调。 + +> **说明:** +> +> 从 API version 7开始支持,从API version 9开始废弃。 + +**系统能力**:SystemCapability.Applications.settings.Core + +**参数**: + +| 参数名 | 类型 | 必填 | 说明 | +| -------- | ---------------------- | ---- | ------------------------------------------------------------ | +| name | string | 是 | 数据项的名称。数据项名称分为以下两种:
- 上述任意一个数据库中已存在的数据项。
- 开发者自行添加的数据项。 | +| callback | AsyncCallback\ | 是 | 回调函数。获取数据项的URI。 | + +**示例**: + +```js +settings.getURI(settings.display.SCREEN_BRIGHTNESS_STATUS, (uri) => { + console.log(`callback:uri -> ${JSON.stringify(uri)}`) +}) +``` + +## setting.getURI(deprecated) + +getURI(name: string): Promise\ + +获取数据项的URI。使用Promise异步回调。 + +> **说明:** +> +> 从 API version 7开始支持,从API version 9开始废弃。 + +**系统能力**:SystemCapability.Applications.settings.Core + +**参数**: + +| 参数名 | 类型 | 必填 | 说明 | +| ------ | ------ | ---- | ------------------------------------------------------------ | +| name | string | 是 | 数据项的名称。数据项名称分为以下两种:
- 上述任意一个数据库中已存在的数据项。
- 开发者自行添加的数据项。 | + +**返回值**: + +| 类型 | 说明 | +| ---------------- | ------------------------------------ | +| Promise\ | Promise对象。返回获取的数据项的URI。 | + +**示例**: + +```js +settings.getURI(settings.display.SCREEN_BRIGHTNESS_STATUS).then((uri) => { + console.log(`promise:uri -> ${JSON.stringify(uri)}`) +}) +``` + +## setting.getValue(deprecated) + +getValue(dataAbilityHelper: DataAbilityHelper, name: string, callback: AsyncCallback\): void + +获取数据库中指定数据项的值。使用callback异步回调。 + +> **说明:** +> +> 从 API version 7开始支持,从API version 9开始废弃。 + +**模型约束**:此接口仅可在FA模型下使用。 + +**系统能力**:SystemCapability.Applications.settings.Core + +**参数**: + +| 参数名 | 类型 | 必填 | 说明 | +| ----------------- | ------------------------------------------------- | ---- | ------------------------------------------------------------ | +| dataAbilityHelper | [DataAbilityHelper](js-apis-inner-ability-dataAbilityHelper.md) | 是 | 数据管理辅助类。 | +| name | string | 是 | 数据项的名称。数据项名称分为以下两种:
- 上述任意一个数据库中已存在的数据项。
- 开发者自行添加的数据项。 | +| callback | AsyncCallback\ | 是 | 使用callback方式获取数据项的值。 | + +**示例**: + +```js +import featureAbility from '@ohos.ability.featureAbility'; + +let uri = settings.getUriSync(settings.display.SCREEN_BRIGHTNESS_STATUS); +let helper = featureAbility.acquireDataAbilityHelper(uri); +settings.getValue(helper, settings.display.SCREEN_BRIGHTNESS_STATUS, (err, value) => { + if (err) { + console.error(`Failed to get the setting. ${err.message} `); + return; + } + console.log(`callback:value -> ${JSON.stringify(value)}`) +}); +``` + +## setting.getValue(deprecated) + +getValue(dataAbilityHelper: DataAbilityHelper, name: string): Promise\ + +获取数据库中指定数据项的值。使用Promise异步回调。 + +> **说明:** +> +> 从 API version 7开始支持,从API version 9开始废弃。 + +**模型约束**:此接口仅可在FA模型下使用。 + +**系统能力**:SystemCapability.Applications.settings.Core + +**参数**: + +| 参数名 | 类型 | 必填 | 说明 | +| ----------------- | ------------------------------------------------- | ---- | ------------------------------------------------------------ | +| dataAbilityHelper | [DataAbilityHelper](js-apis-inner-ability-dataAbilityHelper.md) | 是 | 数据管理辅助类。 | +| name | string | 是 | 数据项的名称。数据项名称分为以下两种:
- 上述任意一个数据库中已存在的数据项。
- 开发者自行添加的数据项。 | + +**返回值**: + +| 类型 | 说明 | +| ---------------- | ----------------------------------- | +| Promise\ | Promise对象。返回获得的数据项的值。 | + +**示例**: + +```js +import featureAbility from '@ohos.ability.featureAbility'; + +let uri = settings.getUriSync(settings.display.SCREEN_BRIGHTNESS_STATUS); +let helper = featureAbility.acquireDataAbilityHelper(uri); +settings.getValue(helper, settings.display.SCREEN_BRIGHTNESS_STATUS).then((value) => { + console.log(`promise:value -> ${JSON.stringify(value)}`) +}); +``` + +## settings.getValueSync(deprecated) getValueSync(dataAbilityHelper: DataAbilityHelper, name: string, defValue: string): string 获取数据项的值。此方法相较getValue为同步方法。 +> **说明:** +> +> 从 API version 8开始支持,从API version 9开始废弃。 + +**模型约束**:此接口仅可在FA模型下使用。 + **系统能力**:SystemCapability.Applications.settings.Core **参数**: @@ -533,7 +564,7 @@ let helper = featureAbility.acquireDataAbilityHelper(uri); let value = settings.getValueSync(helper, settings.display.SCREEN_BRIGHTNESS_STATUS, '10'); ``` -## settings.setValueSync8+ +## settings.setValueSync(deprecated) setValueSync(dataAbilityHelper: DataAbilityHelper, name: string, value: string): boolean @@ -541,6 +572,12 @@ setValueSync(dataAbilityHelper: DataAbilityHelper, name: string, value: string): 如果数据库中已经存在该数据项,则setValueSync方法将更新该数据项的值;如果数据库中尚未存在该数据项,则setValueSync方法将向数据库中插入该数据项。 +> **说明:** +> +> 从 API version 8开始支持,从API version 9开始废弃。 + +**模型约束**:此接口仅可在FA模型下使用。 + **需要权限**:ohos.permission.MANAGE_SECURE_SETTINGS,仅系统应用可用。 **系统能力**:SystemCapability.Applications.settings.Core diff --git a/zh-cn/application-dev/reference/apis/js-apis-sim.md b/zh-cn/application-dev/reference/apis/js-apis-sim.md index b4902e0826bce301aaa807ab161d6a386a79dcfd..2b2def039972e6044e70c0b7afed2fae469204a5 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-sim.md +++ b/zh-cn/application-dev/reference/apis/js-apis-sim.md @@ -132,6 +132,17 @@ hasOperatorPrivileges(slotId: number, callback: AsyncCallback\): void | slotId | number | 是 | 卡槽ID。
- 0:卡槽1
- 1:卡槽2 | | callback | AsyncCallback\ | 是 | 回调函数。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300004 | Do not have sim card. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -160,6 +171,17 @@ hasOperatorPrivileges(slotId: number): Promise | :----------------- | :---------------------------------------------------------- | | Promise\ | 以Promise形式返回检查应用(调用者)是否已被授予运营商权限。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300004 | Do not have sim card. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -186,6 +208,17 @@ getISOCountryCodeForSim\(slotId: number, callback: AsyncCallback\): voi | slotId | number | 是 | 卡槽ID。
- 0:卡槽1
- 1:卡槽2 | | callback | AsyncCallback\ | 是 | 回调函数。返回国家码,例如:CN(中国)。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300004 | Do not have sim card. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -215,6 +248,17 @@ getISOCountryCodeForSim\(slotId: number\): Promise | ----------------- | ------------------------------------------------------------ | | Promise\ | 以Promise形式返回获取指定卡槽SIM卡的ISO国家码,例如:CN(中国)。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300004 | Do not have sim card. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -242,6 +286,17 @@ getSimOperatorNumeric\(slotId: number, callback: AsyncCallback\): void | slotId | number | 是 | 卡槽ID。
- 0:卡槽1
- 1:卡槽2 | | callback | AsyncCallback\ | 是 | 回调函数。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300004 | Do not have sim card. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -271,6 +326,17 @@ getSimOperatorNumeric\(slotId: number\): Promise | ----------------- | ------------------------------------------------ | | Promise\ | 以Promise形式返回获取指定卡槽SIM卡的归属PLMN号。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300004 | Do not have sim card. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -298,6 +364,17 @@ getSimSpn\(slotId: number, callback: AsyncCallback\): void | slotId | number | 是 | 卡槽ID。
- 0:卡槽1
- 1:卡槽2 | | callback | AsyncCallback\ | 是 | 回调函数。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300004 | Do not have sim card. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -327,6 +404,17 @@ getSimSpn\(slotId: number\): Promise | ----------------- | ----------------------------------------- | | Promise\ | 以Promise形式返回获取指定卡槽SIM卡的SPN。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300004 | Do not have sim card. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -354,6 +442,17 @@ getSimState\(slotId: number, callback: AsyncCallback\): void | slotId | number | 是 | 卡槽ID。
- 0:卡槽1
- 1:卡槽2 | | callback | AsyncCallback\<[SimState](#simstate)\> | 是 | 回调函数。参考[SimState](#simstate)。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300004 | Do not have sim card. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -383,6 +482,17 @@ getSimState\(slotId: number\): Promise | -------------------------------- | ------------------------------------------ | | Promise\<[SimState](#simstate)\> | 以Promise形式返回获取指定卡槽的SIM卡状态。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300004 | Do not have sim card. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -409,6 +519,17 @@ getCardType\(slotId: number, callback: AsyncCallback\): void | slotId | number | 是 | 卡槽ID。
- 0:卡槽1
- 1:卡槽2 | | callback | AsyncCallback\<[CardType](#cardtype7)\> | 是 | 回调函数。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300004 | Do not have sim card. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -438,6 +559,17 @@ getCardType\(slotId: number\): Promise | ----------------- | ------------------------------------------------------------ | | Promise\<[CardType](#cardtype7)\> | 以Promise形式返回指定卡槽SIM卡的卡类型。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300004 | Do not have sim card. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -465,6 +597,17 @@ hasSimCard\(slotId: number, callback: AsyncCallback\): void | slotId | number | 是 | 卡槽ID。
- 0:卡槽1
- 1:卡槽2 | | callback | AsyncCallback<boolean> | 是 | 回调函数。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300004 | Do not have sim card. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -494,6 +637,17 @@ hasSimCard\(slotId: number\): Promise | --------------------- | ---------------------------------- | | Promise<boolean> | 以Promise形式返回指定卡槽是否插卡,如果插卡返回true。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300004 | Do not have sim card. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -524,6 +678,19 @@ getSimAccountInfo(slotId: number, callback: AsyncCallback): voi | slotId | number | 是 | 卡槽ID。
- 0:卡槽1
- 1:卡槽2 | | callback | AsyncCallback\<[IccAccountInfo](#iccaccountinfo7)\> | 是 | 回调函数。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300004 | Do not have sim card. | +| 8300999 | Unknown error code. | +| 8301002 | SIM card operation error. | + **示例:** ```js @@ -557,6 +724,19 @@ getSimAccountInfo(slotId: number): Promise | -------------------------------------------- | ------------------------------------------ | | Promise<[IccAccountInfo](#iccaccountinfo7)\> | 以Promise形式返回指定卡槽SIM卡的账户信息。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300004 | Do not have sim card. | +| 8300999 | Unknown error code. | +| 8301002 | SIM card operation error. | + **示例:** ```js @@ -586,6 +766,18 @@ getActiveSimAccountInfoList(callback: AsyncCallback>): vo | -------- | ----------------------------------------------------------- | ---- | ---------- | | callback | AsyncCallback\\> | 是 | 回调函数。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300004 | Do not have sim card. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -613,6 +805,18 @@ getActiveSimAccountInfoList(): Promise>; | ---------------------------------------------------- | ---------------------------------------------- | | Promise\> | 以Promise形式返回活跃卡槽SIM卡的账户信息列表。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300004 | Do not have sim card. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -643,6 +847,19 @@ setDefaultVoiceSlotId(slotId: number, callback: AsyncCallback): void | slotId | number | 是 | SIM卡槽ID:
- 0:卡槽1
- 1:卡槽2
- -1:清除默认配置 | | callback | AsyncCallback<void> | 是 | 回调函数。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300004 | Do not have sim card. | +| 8300999 | Unknown error code. | +| 8301001 | SIM card is not activated. | + **示例:** ```js @@ -676,6 +893,19 @@ setDefaultVoiceSlotId(slotId: number): Promise\ | --------------- | ------------------------------- | | Promise\ | 以Promise形式异步返回设置结果。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300004 | Do not have sim card. | +| 8300999 | Unknown error code. | +| 8301001 | SIM card is not activated. | + **示例:** ```js @@ -707,6 +937,18 @@ setShowName\(slotId: number, name: string, callback: AsyncCallback\): voi | name | string | 是 | SIM卡名称。 | | callback | AsyncCallback<void> | 是 | 回调函数。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300004 | Do not have sim card. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -741,6 +983,18 @@ setShowName\(slotId: number, name: string\): Promise\ | --------------- | ------------------------------- | | Promise\ | 以Promise形式异步返回设置结果。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300004 | Do not have sim card. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -772,6 +1026,18 @@ getShowName(slotId: number, callback: AsyncCallback): void | slotId | number | 是 | 卡槽ID。
- 0:卡槽1
- 1:卡槽2 | | callback | AsyncCallback<string> | 是 | 回调函数。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300004 | Do not have sim card. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -805,6 +1071,18 @@ getShowName(slotId: number): Promise | --------------------- | -------------------------------------- | | Promise<string> | 以Promise形式返回指定卡槽SIM卡的名称。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300004 | Do not have sim card. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -836,6 +1114,18 @@ setShowNumber\(slotId: number, number: string, callback: AsyncCallback\): | number | string | 是 | SIM卡号码。 | | callback | AsyncCallback<void> | 是 | 回调函数。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300004 | Do not have sim card. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -871,6 +1161,18 @@ setShowNumber\(slotId: number, number: string\): Promise\ | -------------- | ------------------------------- | | Promise | 以Promise形式异步返回设置结果。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300004 | Do not have sim card. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -902,6 +1204,18 @@ getShowNumber(slotId: number, callback: AsyncCallback): void | slotId | number | 是 | 卡槽ID。
- 0:卡槽1
- 1:卡槽2 | | callback | AsyncCallback<string> | 是 | 回调函数。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300004 | Do not have sim card. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -935,6 +1249,18 @@ getShowNumber(slotId: number): Promise | --------------------- | --------------------------------- | | Promise<string> | 以Promise形式返回指定卡槽的号码。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300004 | Do not have sim card. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -965,6 +1291,18 @@ activateSim(slotId: number, callback: AsyncCallback): void | slotId | number | 是 | 卡槽ID。
- 0:卡槽1
- 1:卡槽2 | | callback | AsyncCallback<void> | 是 | 回调函数。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300004 | Do not have sim card. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -998,6 +1336,18 @@ activateSim(slotId: number): Promise\ | --------------- | ------------------------------- | | Promise\ | 以Promise形式异步返回设置结果。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300004 | Do not have sim card. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -1028,6 +1378,18 @@ deactivateSim(slotId: number, callback: AsyncCallback): void | slotId | number | 是 | 卡槽ID。
- 0:卡槽1
- 1:卡槽2 | | callback | AsyncCallback<void> | 是 | 回调函数。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300004 | Do not have sim card. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -1061,6 +1423,18 @@ deactivateSim(slotId: number): Promise\ | --------------- | ------------------------------- | | Promise\ | 以Promise形式异步返回设置结果。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300004 | Do not have sim card. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -1092,6 +1466,19 @@ setLockState(slotId: number, options: LockInfo, callback: AsyncCallback | 是 | 回调函数。 | | options | [LockInfo](#lockinfo8) | 是 | 锁信息。
- lockType: [LockType](#locktype8)
- password: string
- state: [LockState](#lockstate8) | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300004 | Do not have sim card. | +| 8300999 | Unknown error code. | +| 8301002 | SIM card operation error. | + **示例:** ```js @@ -1131,6 +1518,19 @@ setLockState(slotId: number, options: LockInfo): Promise | ---------------------------------------------------- | -------------------------------------------- | | Promise<[LockStatusResponse](#lockstatusresponse7)\> | 以Promise形式返回获取指定卡槽SIM卡的锁状态。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300004 | Do not have sim card. | +| 8300999 | Unknown error code. | +| 8301002 | SIM card operation error. | + **示例:** ```js @@ -1167,6 +1567,19 @@ getLockState(slotId: number, lockType: LockType, callback: AsyncCallback | 是 | 回调函数。 | | options | [LockType](#locktype8) | 是 | 锁类型。
- 1: PIN锁
- 2: PIN2锁 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300004 | Do not have sim card. | +| 8300999 | Unknown error code. | +| 8301002 | SIM card operation error. | + **示例:** ```js @@ -1201,6 +1614,19 @@ getLockState(slotId: number, lockType: LockType): Promise | ---------------------------------- | -------------------------------------------- | | Promise<[LockState](#lockstate8)\> | 以Promise形式返回获取指定卡槽SIM卡的锁状态。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300004 | Do not have sim card. | +| 8300999 | Unknown error code. | +| 8301002 | SIM card operation error. | + **示例:** ```js @@ -1233,6 +1659,19 @@ alterPin(slotId: number, newPin: string, oldPin: string, callback: AsyncCallback | newPin | string | 是 | 新密码。 | | oldPin | string | 是 | 旧密码。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300004 | Do not have sim card. | +| 8300999 | Unknown error code. | +| 8301002 | SIM card operation error. | + **示例:** ```js @@ -1268,6 +1707,19 @@ alterPin(slotId: number, newPin: string, oldPin: string): Promise | 以Promise形式返回指定卡槽SIM卡的Pin是否成功。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300004 | Do not have sim card. | +| 8300999 | Unknown error code. | +| 8301002 | SIM card operation error. | + **示例:** ```js @@ -1300,6 +1752,19 @@ alterPin2(slotId: number, newPin2: string, oldPin2: string, callback: AsyncCallb | newPin2 | string | 是 | 新密码。 | | oldPin2 | string | 是 | 旧密码。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300004 | Do not have sim card. | +| 8300999 | Unknown error code. | +| 8301002 | SIM card operation error. | + **示例:** ```js @@ -1335,6 +1800,19 @@ alterPin2(slotId: number, newPin2: string, oldPin2: string): Promise | 以Promise形式返回指定卡槽SIM卡的Pin是否成功。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300004 | Do not have sim card. | +| 8300999 | Unknown error code. | +| 8301002 | SIM card operation error. | + **示例:** ```js @@ -1366,6 +1844,19 @@ unlockPin(slotId: number, pin: string, callback: AsyncCallback | 是 | 回调函数。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300004 | Do not have sim card. | +| 8300999 | Unknown error code. | +| 8301002 | SIM card operation error. | + **示例:** ```js @@ -1401,6 +1892,19 @@ unlockPin(slotId: number, pin: string): Promise<LockStatusResponse\> | ---------------------------------------------------- | -------------------------------------------------- | | Promise\<[LockStatusResponse](#lockstatusresponse7)\> | 以Promise形式返回获取指定卡槽的SIM卡锁状态的响应。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300004 | Do not have sim card. | +| 8300999 | Unknown error code. | +| 8301002 | SIM card operation error. | + **示例:** ```js @@ -1434,6 +1938,19 @@ unlockPuk(slotId: number, newPin: string, puk: string, callback: AsyncCallback | 以Promise形式返回获取指定卡槽的SIM卡锁状态的响应。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300004 | Do not have sim card. | +| 8300999 | Unknown error code. | +| 8301002 | SIM card operation error. | + **示例:** ```js @@ -1504,6 +2034,19 @@ unlockPin2(slotId: number, pin2: string, callback: AsyncCallback | ----------------------------------------------------- | -------------------------------------------------- | | Promise\<[LockStatusResponse](#lockstatusresponse7)\> | 以Promise形式返回获取指定卡槽的SIM卡锁状态的响应。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300004 | Do not have sim card. | +| 8300999 | Unknown error code. | +| 8301002 | SIM card operation error. | + **示例:** ```js @@ -1572,6 +2128,19 @@ unlockPuk2(slotId: number, newPin2: string, puk2: string, callback: AsyncCallbac | puk2 | string | 是 | SIM卡密码的解锁密码。 | | callback | AsyncCallback<[LockStatusResponse](#lockstatusresponse7)> | 是 | 回调函数。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300004 | Do not have sim card. | +| 8300999 | Unknown error code. | +| 8301002 | SIM card operation error. | + **示例:** ```js @@ -1609,6 +2178,19 @@ unlockPuk2(slotId: number, newPin2: string, puk2: string): Promise<LockStatus | ---------------------------------------------------- | -------------------------------------------------- | | Promise\<[LockStatusResponse](#lockstatusresponse7)\> | 以Promise形式返回获取指定卡槽的SIM卡锁状态的响应。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300004 | Do not have sim card. | +| 8300999 | Unknown error code. | +| 8301002 | SIM card operation error. | + **示例:** ```js @@ -1661,6 +2243,18 @@ getSimIccId(slotId: number, callback: AsyncCallback): void | slotId | number | 是 | 卡槽ID。
- 0:卡槽1
- 1:卡槽2 | | callback | AsyncCallback | 是 | 回调函数。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300004 | Do not have sim card. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -1694,6 +2288,18 @@ getSimIccId(slotId: number): Promise | ---------------- | ------------------------------------------- | | Promise | 以Promise形式返回获取指定卡槽SIM卡的ICCID。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300004 | Do not have sim card. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -1724,6 +2330,18 @@ getVoiceMailIdentifier(slotId: number, callback: AsyncCallback): void | slotId | number | 是 | 卡槽ID。
- 0:卡槽1
- 1:卡槽2 | | callback | AsyncCallback | 是 | 回调函数。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300004 | Do not have sim card. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -1757,6 +2375,18 @@ getVoiceMailIdentifier(slotId: number): Promise | ---------------- | ------------------------------------------------- | | Promise | 以Promise形式返回获取指定卡槽SIM卡的alpha标识符。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300004 | Do not have sim card. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -1787,6 +2417,18 @@ getVoiceMailNumber(slotId: number, callback: AsyncCallback): void | slotId | number | 是 | 卡槽ID。
- 0:卡槽1
- 1:卡槽2 | | callback | AsyncCallback | 是 | 回调函数。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300004 | Do not have sim card. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -1820,6 +2462,18 @@ getVoiceMailNumber(slotId: number): Promise | ---------------- | ------------------------------------------------ | | Promise | 以Promise形式返回获取指定卡槽SIM卡的语音信箱号。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300004 | Do not have sim card. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -1831,6 +2485,7 @@ promise.then(data => { }); ``` + ## sim.setVoiceMailInfo8+ setVoiceMailInfo(slotId: number, mailName: string, mailNumber: string, callback: AsyncCallback): void @@ -1852,6 +2507,19 @@ setVoiceMailInfo(slotId: number, mailName: string, mailNumber: string, callback: | mailNumber | string | 是 | 邮件号码 | | callback | AsyncCallback | 是 | 回调函数。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300004 | Do not have sim card. | +| 8300999 | Unknown error code. | +| 8301002 | SIM card operation error. | + **示例:** ```js @@ -1887,6 +2555,19 @@ setVoiceMailInfo(slotId: number, mailName: string, mailNumber: string): Promise< | -------------- | ----------------------- | | Promise | 以Promise形式返回结果。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300004 | Do not have sim card. | +| 8300999 | Unknown error code. | +| 8301002 | SIM card operation error. | + **示例:** ```js @@ -1917,6 +2598,18 @@ getSimTelephoneNumber(slotId: number, callback: AsyncCallback): void | slotId | number | 是 | 卡槽ID。
- 0:卡槽1
- 1:卡槽2 | | callback | AsyncCallback | 是 | 回调函数。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300004 | Do not have sim card. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -1950,6 +2643,18 @@ getSimTelephoneNumber(slotId: number): Promise | ---------------- | -------------------------------------------- | | Promise | 以Promise形式返回获取指定卡槽SIM卡的MSISDN。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300004 | Do not have sim card. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -1980,6 +2685,18 @@ getSimGid1(slotId: number, callback: AsyncCallback): void | slotId | number | 是 | 卡槽ID。
- 0:卡槽1
- 1:卡槽2 | | callback | AsyncCallback\ | 是 | 回调函数。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300004 | Do not have sim card. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -2013,6 +2730,18 @@ getSimGid1(slotId: number): Promise | ---------------- | ------------------------------------------------- | | Promise | 以Promise形式返回获取指定卡槽SIM卡的标识符级别1。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300004 | Do not have sim card. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -2043,6 +2772,18 @@ getIMSI(slotId: number, callback: AsyncCallback): void | slotId | number | 是 | 卡槽ID。
- 0:卡槽1
- 1:卡槽2 | | callback | AsyncCallback\ | 是 | 回调函数。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300004 | Do not have sim card. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -2076,6 +2817,18 @@ getIMSI(slotId: number): Promise | ---------------- | ------------------------------------------- | | Promise | 以Promise形式返回获取的国际移动用户识别码。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300004 | Do not have sim card. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -2106,6 +2859,18 @@ getOperatorConfigs(slotId: number, callback: AsyncCallback- 0:卡槽1
- 1:卡槽2 | | callback | AsyncCallback> | 是 | 回调函数。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300004 | Do not have sim card. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -2139,6 +2904,18 @@ getOperatorConfigs(slotId: number): Promise> | --------------------------------------------------- | ----------------------------- | | Promise> | 以Promise形式返回运营商配置。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300004 | Do not have sim card. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -2170,6 +2947,19 @@ queryIccDiallingNumbers(slotId: number, type: ContactType, callback: AsyncCallba | type | [ContactType](#contacttype8) | 是 | 联系人类型。
- 1 : GENERAL_CONTACT
- 2 : FIXED_DIALING | | callback | AsyncCallback> | 是 | 回调函数。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300004 | Do not have sim card. | +| 8300999 | Unknown error code. | +| 8301002 | SIM card operation error. | + **示例:** ```js @@ -2202,7 +2992,20 @@ queryIccDiallingNumbers(slotId: number, type: ContactType): Promise> | 以Promise形式返回Icc拨号号码。 | +| Promise> | 以Promise形式返回Icc拨号号码。| + +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300004 | Do not have sim card. | +| 8300999 | Unknown error code. | +| 8301002 | SIM card operation error. | **示例:** @@ -2236,6 +3039,19 @@ addIccDiallingNumbers(slotId: number, type: ContactType, diallingNumbers: Dialli | diallingNumbers | [DiallingNumbersInfo](#diallingnumbersinfo8) | 是 | 拨号号码信息。 | | callback | AsyncCallback | 是 | 回调函数。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300004 | Do not have sim card. | +| 8300999 | Unknown error code. | +| 8301002 | SIM card operation error. | + **示例:** ```js @@ -2276,6 +3092,19 @@ addIccDiallingNumbers(slotId: number, type: ContactType, diallingNumbers: Dialli | -------------- | --------------------------- | | Promise | 以Promise形式返回添加结果。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300004 | Do not have sim card. | +| 8300999 | Unknown error code. | +| 8301002 | SIM card operation error. | + **示例:** ```js @@ -2312,6 +3141,19 @@ delIccDiallingNumbers(slotId: number, type: ContactType, diallingNumbers: Dialli | diallingNumbers | [DiallingNumbersInfo](#diallingnumbersinfo8) | 是 | 拨号号码信息。 | | callback | AsyncCallback | 是 | 回调函数。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300004 | Do not have sim card. | +| 8300999 | Unknown error code. | +| 8301002 | SIM card operation error. | + **示例:** ```js @@ -2353,6 +3195,19 @@ delIccDiallingNumbers(slotId: number, type: ContactType, diallingNumbers: Dialli | -------------- | --------------------------- | | Promise | 以Promise形式返回删除结果。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300004 | Do not have sim card. | +| 8300999 | Unknown error code. | +| 8301002 | SIM card operation error. | + **示例:** ```js @@ -2389,6 +3244,19 @@ updateIccDiallingNumbers(slotId: number, type: ContactType, diallingNumbers: Dia | diallingNumbers | [DiallingNumbersInfo](#diallingnumbersinfo8) | 是 | 拨号号码信息。 | | callback | AsyncCallback | 是 | 回调函数。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300004 | Do not have sim card. | +| 8300999 | Unknown error code. | +| 8301002 | SIM card operation error. | + **示例:** ```js @@ -2430,6 +3298,19 @@ updateIccDiallingNumbers(slotId: number, type: ContactType, diallingNumbers: Dia | -------------- | ----------------------------- | | Promise | 以Promise形式返回更新的结果。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300004 | Do not have sim card. | +| 8300999 | Unknown error code. | +| 8301002 | SIM card operation error. | + **示例:** ```js @@ -2466,6 +3347,18 @@ sendEnvelopeCmd(slotId: number, cmd: string, callback: AsyncCallback): vo | cmd | string | 是 | 命令。 | | callback | AsyncCallback | 是 | 回调函数。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300004 | Do not have sim card. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -2500,6 +3393,18 @@ sendEnvelopeCmd(slotId: number, cmd: string): Promise | -------------- | --------------------------- | | Promise | 以Promise形式返回发送结果。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300004 | Do not have sim card. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -2531,6 +3436,18 @@ sendTerminalResponseCmd(slotId: number, cmd: string, callback: AsyncCallback | 是 | 回调函数。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300004 | Do not have sim card. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -2565,6 +3482,18 @@ sendTerminalResponseCmd(slotId: number, cmd: string): Promise | -------------- | --------------------------- | | Promise | 以Promise形式返回发送结果。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300004 | Do not have sim card. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -2576,6 +3505,7 @@ promise.then(data => { }); ``` + ## sim.unlockSimLock8+ unlockSimLock(slotId: number, lockInfo: PersoLockInfo, callback: AsyncCallback): void @@ -2596,6 +3526,19 @@ unlockSimLock(slotId: number, lockInfo: PersoLockInfo, callback: AsyncCallback | 是 | 回调函数。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300004 | Do not have sim card. | +| 8300999 | Unknown error code. | +| 8301002 | SIM card operation error. | + **示例:** ```js @@ -2634,6 +3577,19 @@ unlockSimLock(slotId: number, lockInfo: PersoLockInfo): Promise | 以Promise形式返回锁状态。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300004 | Do not have sim card. | +| 8300999 | Unknown error code. | +| 8301002 | SIM card operation error. | + **示例:** ```js @@ -2664,12 +3620,32 @@ getOpKey(slotId: number, callback: AsyncCallback): void | slotId | number | 是 | 卡槽ID。
- 0:卡槽1
- 1:卡槽2 | | callback | AsyncCallback | 是 | 回调函数。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 401 | Parameter error. | +| 801 | Capability not supported. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300004 | Do not have sim card. | +| 8300999 | Unknown error code. | + **示例:** ```js -sim.getOpKey(0, (err, data) => { - console.log(`callback: err->${JSON.stringify(err)}, data->${JSON.stringify(data)}`); -}); +try { + sim.getOpKey(0, (err, data) => { + if (err) { + console.log("getOpKey failed, err: " + JSON.stringify(err)); + } else { + console.log('getOpKey successfully, data: ' + JSON.stringify(data)); + } + }); +} catch (err) { + console.log("getOpKey err: " + JSON.stringify(err)); +} ``` @@ -2693,15 +3669,27 @@ getOpKey(slotId: number): Promise | ---------------- | ----------------------------------------- | | Promise | 以Promise形式返回指定卡槽中SIM卡的opkey。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 401 | Parameter error. | +| 801 | Capability not supported. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300004 | Do not have sim card. | +| 8300999 | Unknown error code. | + **示例:** ```js -let promise = sim.getOpKey(0); -promise.then(data => { +try { + let data = sim.getOpKey(0); console.log(`getOpKey success, promise: data->${JSON.stringify(data)}`); -}).catch(err => { - console.log(`getOpKey failed, promise: err->${JSON.stringify(err)}`); -}); +} catch (error) { + console.log(`getOpKey failed, promise: err->${JSON.stringify(error)}`); +} ``` ## sim.getOpName9+ @@ -2719,12 +3707,32 @@ getOpName(slotId: number, callback: AsyncCallback): void | slotId | number | 是 | 卡槽ID。
- 0:卡槽1
- 1:卡槽2 | | callback | AsyncCallback | 是 | 回调函数。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 401 | Parameter error. | +| 801 | Capability not supported. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300004 | Do not have sim card. | +| 8300999 | Unknown error code. | + **示例:** ```js -sim.getOpName(0, (err, data) => { - console.log(`callback: err->${JSON.stringify(err)}, data->${JSON.stringify(data)}`); -}); +try { + sim.getOpName(0, (err, data) => { + if (err) { + console.log("getOpName failed, err: " + JSON.stringify(err)); + } else { + console.log('getOpName successfully, data: ' + JSON.stringify(data)); + } + }); +} catch (err) { + console.log("getOpName err: " + JSON.stringify(err)); +} ``` @@ -2748,15 +3756,27 @@ getOpName(slotId: number): Promise | ---------------- | ------------------------------------------ | | Promise | 以Promise形式返回指定卡槽中SIM卡的OpName。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 401 | Parameter error. | +| 801 | Capability not supported. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300004 | Do not have sim card. | +| 8300999 | Unknown error code. | + **示例:** ```js -let promise = sim.getOpName(0); -promise.then(data => { +try { + let data = sim.getOpName(0); console.log(`getOpName success, promise: data->${JSON.stringify(data)}`); -}).catch(err => { - console.log(`getOpName failed, promise: err->${JSON.stringify(err)}`); -}); +} catch (error) { + console.log(`getOpName failed, promise: err->${JSON.stringify(error)}`); +} ``` ## SimState @@ -2947,8 +3967,8 @@ Icc账户信息。 **系统能力**:以下各项对应的系统能力均为SystemCapability.Telephony.CoreService。 -| 名称 | 值 | 说明 | -| ------------------------------------------------------- | ---------------------------------------------------- | -------------------- | +| 名称 | 值 | 说明 | +| ------------------------------------------------------- | ------------------------------------------------------ | -------------------- | | KEY_VOICE_MAIL_NUMBER_STRING | "voice_mail_number_string" | 语音邮件号码。 | | KEY_IMS_SWITCH_ON_BY_DEFAULT_BOOL | "ims_switch_on_by_default_bool" | 固定拨号。 | | KEY_HIDE_IMS_SWITCH_BOOL | "hide_ims_switch_bool" | 是否隐藏ims开关。 | @@ -2961,7 +3981,7 @@ Icc账户信息。 | KEY_IMS_PREFER_FOR_EMERGENCY_BOOL | "ims_prefer_for_emergency_bool" | IMS紧急首选项。 | | KEY_CALL_WAITING_SERVICE_CLASS_INT | "call_waiting_service_class_int" | 呼叫等待服务。 | | KEY_CALL_TRANSFER_VISIBILITY_BOOL | "call_transfer_visibility_bool" | 呼叫转移可见性。 | -| KEY_IMS_CALL_DISCONNECT_REASONINFO_MAPPING_STRING_ARRAY | "ims_call_disconnect_reasoninfo_mapping_string_array" | IMS呼叫结束原因列表。| +| KEY_IMS_CALL_DISCONNECT_REASON_INFO_MAPPING_STRING_ARRAY| "ims_call_disconnect_reason_info_mapping_string_array" | IMS呼叫结束原因列表。| | KEY_FORCE_VOLTE_SWITCH_ON_BOOL | "force_volte_switch_on_bool" | 强制VOLTE开关。 | | KEY_ENABLE_OPERATOR_NAME_CUST_BOOL | "enable_operator_name_cust_bool" | 是否显示运营商名称。 | | KEY_OPERATOR_NAME_CUST_STRING | "operator_name_cust_string" | 运营商名称。 | diff --git a/zh-cn/application-dev/reference/apis/js-apis-sms.md b/zh-cn/application-dev/reference/apis/js-apis-sms.md index 47fe20e28b4f71f1a1ac75577538a7c8288867fe..9d92f570c3639794f016f4b6426dc940b2b34ce8 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-sms.md +++ b/zh-cn/application-dev/reference/apis/js-apis-sms.md @@ -177,6 +177,18 @@ setDefaultSmsSlotId\(slotId: number, callback: AsyncCallback<void>\): void | slotId | number | 是 | SIM卡槽ID。
- 0:卡槽1
- 1:卡槽2
- -1:清除默认配置 | | callback | AsyncCallback<void> | 是 | 回调函数。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300004 | Do not have sim card. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -210,6 +222,18 @@ setDefaultSmsSlotId\(slotId: number\): Promise<void> | --------------- | ------------------------------- | | Promise\ | 以Promise形式异步返回设置结果。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300004 | Do not have sim card. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -241,6 +265,17 @@ setSmscAddr\(slotId: number, smscAddr: string, callback: AsyncCallback\): | smscAddr | string | 是 | 短信服务中心地址。 | | callback | AsyncCallback<void> | 是 | 回调函数。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -277,6 +312,17 @@ setSmscAddr\(slotId: number, smscAddr: string\): Promise\ | ------------------- | ------------------------------- | | Promise<void> | 以Promise形式异步返回设置结果。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -310,6 +356,17 @@ getSmscAddr\(slotId: number, callback: AsyncCallback\): void | slotId | number | 是 | SIM卡槽ID:
- 0:卡槽1
- 1:卡槽2 | | callback | AsyncCallback<string> | 是 | 回调函数。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -344,6 +401,17 @@ getSmscAddr\(slotId: number\): Promise | --------------------- | --------------------------------------------- | | Promise<string> | 以Promise形式返回获取短信服务中心地址的结果。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -394,6 +462,17 @@ splitMessage(content: string, callback: AsyncCallback>): void | content | string | 是 | 指示短消息内容,不能为null。 | | callback | AsyncCallback> | 是 | 回调函数。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -428,6 +507,17 @@ splitMessage(content: string): Promise> | ----------------------- | ----------------------------------- | | Promise> | 以Promise形式返回多个片段的的结果。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -459,6 +549,17 @@ addSimMessage(options: SimMessageOptions, callback: AsyncCallback): void | options | [SimMessageOptions](#simmessageoptions7) | 是 | SIM卡消息选项。 | | callback | AsyncCallback<void> | 是 | 回调函数。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -498,6 +599,17 @@ addSimMessage(options: SimMessageOptions): Promise | ------------------- | ----------------------------- | | Promise<void> | 以Promise形式返回添加的结果。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -535,6 +647,17 @@ delSimMessage(slotId: number, msgIndex: number, callback: AsyncCallback): | msgIndex | number | 是 | 消息索引。 | | callback | AsyncCallback<void> | 是 | 回调函数。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -571,6 +694,17 @@ delSimMessage(slotId: number, msgIndex: number): Promise | ------------------- | ----------------------------- | | Promise<void> | 以Promise形式返回删除的结果。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -603,6 +737,17 @@ updateSimMessage(options: UpdateSimMessageOptions, callback: AsyncCallback | ------------------- | ----------------------------- | | Promise<void> | 以Promise形式返回更新的结果。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -680,6 +836,17 @@ getAllSimMessages(slotId: number, callback: AsyncCallback- 0:卡槽1
- 1:卡槽2 | | callback | AsyncCallback> | 是 | 回调函数。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -714,6 +881,17 @@ getAllSimMessages(slotId: number): Promise> | ------------------------------------------------------- | ---------------------------------- | | PromiseArray<[SimShortMessage](#simshortmessage7)\>> | 以Promise形式返回获取的SIM短消息。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -745,6 +923,17 @@ setCBConfig(options: CBConfigOptions, callback: AsyncCallback): void | options | [CBConfigOptions](#cbconfigoptions7) | 是 | 小区广播配置选项。 | | callback | AsyncCallback<void> | 是 | 回调函数。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -785,6 +974,17 @@ setCBConfig(options: CBConfigOptions): Promise | ------------------- | ----------------------------- | | Promise<void> | 以Promise形式返回设置的结果。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -822,6 +1022,16 @@ getSmsSegmentsInfo(slotId: number, message: string, force7bit: boolean, callback | force7bit | boolean | 是 | 是否使用7 bit编码。 | | callback | AsyncCallback<[SmsSegmentsInfo](#smssegmentsinfo8)> | 是 | 回调函数。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -856,6 +1066,16 @@ getSmsSegmentsInfo(slotId: number, message: string, force7bit: boolean): Promise | ------------------------------------------------------- | ----------------------------- | | Promise<[SmsSegmentsInfo](#smssegmentsinfo8)> | 以Promise形式返回短信段信息。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -885,6 +1105,16 @@ isImsSmsSupported(slotId: number, callback: AsyncCallback): void | slotId | number | 是 | SIM卡槽ID:
- 0:卡槽1
- 1:卡槽2 | | callback | AsyncCallback<boolean> | 是 | 回调函数。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -917,6 +1147,16 @@ isImsSmsSupported(slotId: number): Promise | ---------------------- | ----------------------- | | Promise<boolean> | 以Promise形式返回结果。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -945,6 +1185,17 @@ getImsShortMessageFormat(callback: AsyncCallback): void | -------- | --------------------------- | ---- | ---------- | | callback | AsyncCallback<string> | 是 | 回调函数。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -970,6 +1221,17 @@ getImsShortMessageFormat(): Promise | --------------------- | -------------------------- | | Promise<string> | 以Promise形式返回SMS格式。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -998,6 +1260,16 @@ decodeMms(mmsFilePathName: string | Array, callback: AsyncCallback | 是 | 彩信文件路径名。 | | callback | AsyncCallback<[MmsInformation](#mmsinformation8)> | 是 | 回调函数。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -1030,6 +1302,16 @@ decodeMms(mmsFilePathName: string | Array): Promise | --------------------------------------------------------- | --------------------------- | | Promise<<[MmsInformation](#mmsinformation8)>> | 以Promise形式返回彩信信息。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -1059,6 +1341,16 @@ encodeMms(mms: MmsInformation, callback: AsyncCallback>): void | mms | [MmsInformation](#mmsinformation8) | 是 | 彩信信息。 | | callback | AsyncCallback<Array> | 是 | 回调函数。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -1099,6 +1391,16 @@ encodeMms(mms: MmsInformation): Promise> | ----------------------------- | ----------------------------------- | | Promise<Array> | 以Promise形式返回彩信编码后的结果。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js diff --git a/zh-cn/application-dev/reference/apis/js-apis-socket.md b/zh-cn/application-dev/reference/apis/js-apis-socket.md index 431fc59a2845d51a66b44a4fc88cc26065ab7650..98396713aff1508626aa6817dc0f51f8691fc482 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-socket.md +++ b/zh-cn/application-dev/reference/apis/js-apis-socket.md @@ -667,6 +667,12 @@ Socket的连接信息。 | port | number | 是 | 端口号,范围0~65535。 | | size | number | 是 | 服务器响应信息的字节长度。 | +## UDP 错误码说明 + +UDP 错误码映射形式为:2301000 + 内核错误码。 + +错误码的详细介绍参见[Socket错误码](../errorcodes/errorcode-socket.md) + ## socket.constructTCPSocketInstance constructTCPSocketInstance\(\): TCPSocket @@ -1453,6 +1459,12 @@ TCPSocket连接的其他属性。 | reuseAddress | boolean | 否 | 是否重用地址。默认为false。 | | socketTimeout | number | 否 | 套接字超时时间,单位毫秒(ms)。 | +## TCP 错误码说明 + +TCP 错误码映射形式为:2301000 + 内核错误码。 + +错误码的详细介绍参见[Socket错误码](../errorcodes/errorcode-socket.md) + ## socket.constructTLSSocketInstance9+ constructTLSSocketInstance(): TLSSocket diff --git a/zh-cn/application-dev/reference/apis/js-apis-system-app.md b/zh-cn/application-dev/reference/apis/js-apis-system-app.md index 105134736b233c4b9cd2fd5860e8757feed4b478..8a03bfb8c5842b16ec77570d4a577400b3073893 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-system-app.md +++ b/zh-cn/application-dev/reference/apis/js-apis-system-app.md @@ -1,6 +1,7 @@ # @system.app (应用上下文) > **说明:** +> > - 从API Version 7 开始,该接口不再维护,推荐使用新接口。 > > - 本模块首批接口从API version 3开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 @@ -20,7 +21,7 @@ getInfo(): AppResponse 获取当前应用配置文件中声明的信息。 -> **说明:** 从API Version 7开始,推荐使用[`@ohos.bundle`](js-apis-Bundle.md)。 +从API Version 7开始,推荐使用[`@ohos.bundle`](js-apis-Bundle.md)。 **系统能力:** SystemCapability.ArkUI.ArkUI.Lite @@ -32,14 +33,14 @@ getInfo(): AppResponse **示例:** - ```ts +```ts export default { getInfo() { let info = app.getInfo() console.log(JSON.stringify(info)) } } - ``` +``` ## app.terminate @@ -47,37 +48,38 @@ terminate(): void 退出当前Ability。 -> **说明:** 从API Version 7开始,推荐使用[`@ohos.ability.featureAbility`](js-apis-ability-featureAbility.md)。 +从API Version 7开始,推荐使用[`@ohos.ability.featureAbility`](js-apis-ability-featureAbility.md)。 **系统能力:** SystemCapability.ArkUI.ArkUI.Lite **示例:** - ```ts +```ts export default { terminate() { app.terminate() } } - ``` +``` ## app.requestFullWindow requestFullWindow(options?: RequestFullWindowOptions): void 请求应用以全窗口运行,FA在某些场景下(如半模态FA)会以非全窗口运行,调用该接口会从非全窗口切换为全窗口运行,如果已经以全窗口运行则该接口调用无效。 -> **说明:** 从API Version 7开始,推荐使用[`@ohos.window`](js-apis-window.md)。 +从API Version 7开始,推荐使用[`@ohos.window`](js-apis-window.md)。 **系统能力:** SystemCapability.ArkUI.ArkUI.Full **参数:** + | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | | options | [RequestFullWindowOptions](#requestfullwindowoptions) | 否 | 请求全屏时,设定非全屏到全屏的过渡时间,单位为毫秒,默认时间与非全屏到全屏的距离成正比。 | **示例:** - ```ts +```ts export default { requestFullWindow() { app.requestFullWindow({ @@ -85,7 +87,7 @@ export default { }) } } - ``` +``` ## app.setImageCacheCount7+ @@ -96,13 +98,14 @@ setImageCacheCount(value: number): void **系统能力:** SystemCapability.ArkUI.ArkUI.Full **参数:** + | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | | value | number | 是 | 内存中解码后图片的缓存数量。 | **示例:** - ```ts +```ts // app.ets import app from '@system.app' @@ -115,7 +118,7 @@ export default { console.info('Application onDestroy') }, } - ``` +``` ## app.setImageRawDataCacheSize7+ @@ -126,13 +129,14 @@ setImageRawDataCacheSize(value: number): void **系统能力:** SystemCapability.ArkUI.ArkUI.Full **参数:** + | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | | value | number | 是 | 内存中解码前图片数据的缓存大小,单位为字节。 | **示例:** - ```ts +```ts // app.ets import app from '@system.app' @@ -146,7 +150,7 @@ export default { console.info('Application onDestroy') }, } - ``` +``` ## app.setImageFileCacheSize7+ @@ -157,13 +161,14 @@ setImageFileCacheSize(value: number): void **系统能力:** SystemCapability.ArkUI.ArkUI.Full **参数:** + | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | | value | number | 是 | 图片文件的缓存大小,单位为字节。 | **示例:** - ```ts +```ts // app.ets import app from '@system.app' @@ -177,7 +182,7 @@ export default { console.info('Application onDestroy') }, } - ``` +``` ## AppResponse @@ -198,7 +203,7 @@ screenOnVisible(options?: ScreenOnVisibleOptions) 定义屏幕唤醒时是否保持应用可见。 -**说明:** 该接口从API Version 8 开始废弃。 +该接口从API Version 8 开始废弃。 **系统能力:** 以下各项对应的系统能力均为SystemCapability.ArkUI.ArkUI.Full diff --git a/zh-cn/application-dev/reference/apis/js-apis-system-configuration.md b/zh-cn/application-dev/reference/apis/js-apis-system-configuration.md index 5f1beafc9fa71efd83ee715b86813858c98fe9ab..3ab1617f8e9dcec885ee4503df291eba6e273f73 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-system-configuration.md +++ b/zh-cn/application-dev/reference/apis/js-apis-system-configuration.md @@ -49,5 +49,4 @@ static getLocale(): LocaleResponse | ---- | ------ | ---- | ---- | ---------------------------------------- | | language | string | 是 | 否 | 语言。例如:zh。 | | countryOrRegion | string | 是 | 否 | 国家或地区。例如:CN。 | -| dir | string | 是 | 否 | 文字布局方向。取值范围:
- ltr:从左到右;
- rtl:从右到左。 | -| unicodeSetting5+ | string | 是 | 否 | 语言环境定义的Unicode语言环境键集,如果此语言环境没有特定键集,则返回空集。
例如:{"nu":"arab"},表示当前环境下的数字采用阿拉伯语的数字。 | \ No newline at end of file +| dir | string | 是 | 否 | 文字布局方向。取值范围:
- ltr:从左到右;
- rtl:从右到左。 | \ No newline at end of file diff --git a/zh-cn/application-dev/reference/apis/js-apis-system-fetch.md b/zh-cn/application-dev/reference/apis/js-apis-system-fetch.md index a9448693b273ae3b3869747342b580e012f7d0c5..f6c7b4b5eb360d1bf4cf18c3ddd37450445be811 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-system-fetch.md +++ b/zh-cn/application-dev/reference/apis/js-apis-system-fetch.md @@ -20,8 +20,6 @@ fetch(Object): void 通过网络获取数据。 -**需要权限:** ohos.permission.INTERNET - **系统能力:** SystemCapability.Communication.NetStack **参数:** @@ -32,7 +30,7 @@ fetch(Object): void | header | Object | 否 | 设置请求的header。 | | method | string | 否 | 请求方法默认为GET,可选值为:OPTIONS、GET、HEAD、POST、PUT、DELETE、TRACE。 | | responseType | string | 否 | 默认会根据服务器返回header中的Content-Type确定返回类型,支持文本和json格式。详见success返回值。 | -| success | Function | 否 | 接口调用成功的回调函数。 | +| success | Function | 否 | 接口调用成功的回调函数,返回值为[FetchResponse](#fetchresponse) | | fail | Function | 否 | 接口调用失败的回调函数。 | | complete | Function | 否 | 接口调用结束的回调函数。 | @@ -45,7 +43,7 @@ fetch(Object): void | Object | 不设置 | Content-Type默认为application/x-www-form-urlencoded,data按照资源地址规则进行encode拼接作为请求的body。 | | Object | application/x-www-form-urlencoded | data按照资源地址规则进行encode拼接作为请求的body。 | -success返回值: +## FetchResponse | 参数名 | 类型 | 说明 | | -------- | -------- | -------- | diff --git a/zh-cn/application-dev/reference/apis/js-apis-system-network.md b/zh-cn/application-dev/reference/apis/js-apis-system-network.md index f269ebc2d45d845eb1ddd7c8274598ac6476eb29..7ac1f1ea18ba295deea28cfa49a3cd49018d6b7b 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-system-network.md +++ b/zh-cn/application-dev/reference/apis/js-apis-system-network.md @@ -33,17 +33,10 @@ getType(Object): void | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | -| success | Function | 否 | 接口调用成功的回调函数。 | +| success | Function | 否 | 接口调用成功的回调函数,返回值为[NetworkResponse](#networkresponse) | | fail | Function | 否 | 接口调用失败的回调函数。 | | complete | Function | 否 | 接口调用结束的回调函数。 | -success返回值: - -| 参数名 | 类型 | 说明 | -| -------- | -------- | -------- | -| metered | boolean | 是否按照流量计费。 | -| type | string | 网络类型,可能的值有2g,3g,4g,5g,wifi,none等。 | - fail返回值: | 错误码 | 说明 | @@ -80,16 +73,9 @@ subscribe(Object): void | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | -| success | Function | 否 | 网络发生变化的回调函数。 | +| success | Function | 否 | 网络发生变化的回调函数,返回值为[NetworkResponse](#networkresponse) | | fail | Function | 否 | 接口调用失败的回调函数。 | -success返回值: - -| 参数名 | 类型 | 说明 | -| -------- | -------- | -------- | -| metered | boolean | 是否按照流量计费。 | -| type | string | 网络类型,可能的值为2g,3g,4g,5g,wifi,none。 | - fail返回值: | 错误码 | 说明 | @@ -131,4 +117,12 @@ export default { network.unsubscribe(); }, } -``` \ No newline at end of file +``` + + +## NetworkResponse + +| 参数名 | 类型 | 说明 | +| -------- | -------- | -------- | +| metered | boolean | 是否按照流量计费。 | +| type | string | 网络类型,可能的值有2g,3g,4g,5g,wifi,none等。 | \ No newline at end of file diff --git a/zh-cn/application-dev/reference/apis/js-apis-system-storage.md b/zh-cn/application-dev/reference/apis/js-apis-system-storage.md index d35b15d1ff5afe4fef74655c11b1b44da7e39621..d7f1a842246dbcbb3c934b8c89cf0d705f0a8670 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-system-storage.md +++ b/zh-cn/application-dev/reference/apis/js-apis-system-storage.md @@ -51,7 +51,7 @@ export default { ## storage.set -get(options: SetStorageOptions): void +set(options: SetStorageOptions): void 修改缓存中索引对应的值。 diff --git a/zh-cn/application-dev/reference/apis/js-apis-telephony-data.md b/zh-cn/application-dev/reference/apis/js-apis-telephony-data.md index 9438e4a886f6fc1a02b2bbf179f0afd672e3de1a..3b47746d554cb7d47e7d0ac83c9089ca2990dda9 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-telephony-data.md +++ b/zh-cn/application-dev/reference/apis/js-apis-telephony-data.md @@ -98,6 +98,19 @@ setDefaultCellularDataSlotId(slotId: number, callback: AsyncCallback\): v | slotId | number | 是 | SIM卡槽ID。
- 0:卡槽1。
- 1:卡槽2。
- -1:清除默认配置。 | | callback | AsyncCallback\ | 是 | 回调函数。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300004 | Do not have sim card. | +| 8300999 | Unknown error code. | +| 8301001 | SIM card is not activated. | + **示例:** ```js @@ -130,6 +143,19 @@ setDefaultCellularDataSlotId(slotId: number): Promise\ | --------------- | ------------------------------- | | Promise\ | 以Promise形式异步返回设置结果。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300004 | Do not have sim card. | +| 8300999 | Unknown error code. | +| 8301001 | SIM card is not activated. | + **示例:** ```js @@ -251,6 +277,17 @@ isCellularDataEnabled(callback: AsyncCallback\): void | -------- | ------------------------ | ---- | ------------------------------------------------------------ | | callback | AsyncCallback\ | 是 | 回调函数。
true:蜂窝数据业务已启用。
false:蜂窝数据业务已禁用。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -275,6 +312,17 @@ isCellularDataEnabled(): Promise\ | ------------------ | ------------------------------------------------------------ | | Promise\ | 以Promise形式返回检查蜂窝数据业务是否启用。
true:蜂窝数据业务已启用。
false:蜂窝数据业务已禁用。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -303,6 +351,17 @@ isCellularDataRoamingEnabled(slotId: number, callback: AsyncCallback\) | slotId | number | 是 | 卡槽ID。
0:卡槽1。
1:卡槽2。 | | callback | AsyncCallback\ | 是 | 回调函数。
true:蜂窝数据业务已启用漫游。
false:蜂窝数据业务已禁用漫游。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -333,6 +392,17 @@ isCellularDataRoamingEnabled(slotId: number): Promise\ | ------------------ | ------------------------------------------------------------ | | Promise\ | 以Promise形式返回检查蜂窝数据业务是否启用漫游。
true:蜂窝数据业务已启用漫游。
false:蜂窝数据业务已禁用漫游。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -362,6 +432,17 @@ enableCellularData(callback: AsyncCallback): void | -------- | --------------------- | ---- | ---------- | | callback | AsyncCallback\ | 是 | 回调函数。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -388,6 +469,17 @@ enableCellularData(): Promise | --------------- | ----------------------- | | Promise\ | 以Promise形式返回结果。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -417,6 +509,17 @@ disableCellularData(callback: AsyncCallback): void | -------- | --------------------- | ---- | ---------- | | callback | AsyncCallback\ | 是 | 回调函数。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -443,6 +546,17 @@ disableCellularData(): Promise | --------------- | --------------------------- | | Promise\ | 以Promise形式返回禁用结果。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -473,6 +587,17 @@ enableCellularDataRoaming(slotId: number, callback: AsyncCallback): void | slotId | number | 是 | 卡槽ID。
0:卡槽1。
1:卡槽2。 | | callback | AsyncCallback\ | 是 | 回调函数。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -505,6 +630,17 @@ enableCellularDataRoaming(slotId: number): Promise | --------------- | ------------------------- | | Promise\ | 以Promise形式返回启用结果 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -535,6 +671,17 @@ disableCellularDataRoaming(slotId: number, callback: AsyncCallback): void | slotId | number | 是 | 卡槽ID。
0:卡槽1。
1:卡槽2。 | | callback | AsyncCallback\ | 是 | 回调函数。 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js @@ -567,6 +714,17 @@ disableCellularDataRoaming(slotId: number): Promise | --------------- | ------------------------- | | Promise\ | 以Promise形式返回禁用结果 | +**错误码:** + +| 错误码ID | 错误信息 | +| -------- | -------------------------------------------- | +| 201 | Permission denied. | +| 401 | Parameter error. | +| 8300001 | Invalid parameter value. | +| 8300002 | Operation failed. Cannot connect to service. | +| 8300003 | System internal error. | +| 8300999 | Unknown error code. | + **示例:** ```js diff --git a/zh-cn/application-dev/reference/apis/js-apis-treemap.md b/zh-cn/application-dev/reference/apis/js-apis-treemap.md index e05aec4775026b954accbc578e073a4cb8ef97cc..eb8d83f1e094027bfa33fc45f11041eb30d4566b 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-treemap.md +++ b/zh-cn/application-dev/reference/apis/js-apis-treemap.md @@ -1,8 +1,5 @@ # @ohos.util.TreeMap (非线性容器TreeMap) -> **说明:** -> 本模块首批接口从API version 8开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 - TreeMap可用于存储具有关联关系的key-value键值对集合,存储元素中key值唯一,每个key对应一个value。 TreeMap底层使用红黑树实现,可以利用二叉树特性快速查找键值对。key值有序存储,可以实现快速的插入和删除。 @@ -11,10 +8,16 @@ TreeMap和[HashMap](js-apis-treemap.md)相比,HashMap依据键的hashCode存 **推荐使用场景:** 一般需要存储有序键值对的场景,可以使用TreeMap。 -文档中存在泛型的使用,涉及以下泛型标记符:
-- K: Key, 键
+文档中存在泛型的使用,涉及以下泛型标记符: + +- K: Key, 键 + - V: Value, 值 +> **说明:** +> +> 本模块首批接口从API version 8开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 + ## 导入模块 ```ts @@ -563,7 +566,7 @@ while(temp != undefined) { values(): IterableIterator<V> -返回包含此映射中包含的键值的新迭代器对象。 +返回包含此映射中键值对的新迭代器对象。 **系统能力:** SystemCapability.Utils.Lang @@ -609,9 +612,9 @@ forEach(callbackFn: (value?: V, key?: K, map?: TreeMap) => void, thisArg?: | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | | callbackFn | function | 是 | 回调函数。 | -| thisArg | Object | 否 | callbackfn被调用时用作this值。 | +| thisArg | Object | 否 | callbackFn被调用时用作this值。 | -callbackfn的参数说明: +callbackFn的参数说明: | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | | value | V | 否 | 当前遍历到的元素键值对的值。 | @@ -642,7 +645,7 @@ treeMap.forEach((value, key) => { entries(): IterableIterator<[K, V]> -返回包含此映射中包含的键值对的新迭代器对象。 +返回包含此映射中键值对的新迭代器对象。 **系统能力:** SystemCapability.Utils.Lang @@ -680,7 +683,7 @@ while(temp != undefined) { [Symbol.iterator]\(): IterableIterator<[K, V]> -返回一个迭代器,迭代器的每一项都是一个 JavaScript 对象,并返回该对象。 +返回一个迭代器,迭代器的每一项都是一个JavaScript对象,并返回该对象。 **系统能力:** SystemCapability.Utils.Lang diff --git a/zh-cn/application-dev/reference/apis/js-apis-treeset.md b/zh-cn/application-dev/reference/apis/js-apis-treeset.md index 402ea10225fcdc632960f1fb35c4845b267f408b..5452620b579d1ae02e0ff9f695b72c0d1662b6dd 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-treeset.md +++ b/zh-cn/application-dev/reference/apis/js-apis-treeset.md @@ -1,17 +1,19 @@ # @ohos.util.TreeSet (非线性容器TreeSet) -> **说明:** -> 本模块首批接口从API version 8开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 - TreeSet基于[TreeMap](js-apis-treemap.md)实现,在TreeSet中,只对value对象进行处理。TreeSet可用于存储一系列值的集合,元素中value唯一且有序。 TreeSet和[HashSet](js-apis-hashset.md)相比,HashSet中的数据无序存放,而TreeSet是有序存放。它们集合中的元素都不允许重复,但HashSet允许放入null值,TreeSet不允许。 **推荐使用场景:** 一般需要存储有序集合的场景,可以使用TreeSet。 -文档中存在泛型的使用,涉及以下泛型标记符:
+文档中存在泛型的使用,涉及以下泛型标记符: + - T: Type, 类 +> **说明:** +> +> 本模块首批接口从API version 8开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 + ## 导入模块 ```ts @@ -436,7 +438,7 @@ treeSet.clear(); values(): IterableIterator<T> -返回包含此映射中包含的键值的新迭代器对象。 +返回包含此映射中键值对的新迭代器对象。 **系统能力:** SystemCapability.Utils.Lang @@ -482,13 +484,13 @@ forEach(callbackFn: (value?: T, key?: T, set?: TreeSet<T>) => void, thisAr | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | | callbackFn | function | 是 | 回调函数。 | -| thisArg | Object | 否 | callbackfn被调用时用作this值。 | +| thisArg | Object | 否 | callbackFn被调用时用作this值。 | -callbackfn的参数说明: +callbackFn的参数说明: | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | -| value | T | 否 | 当前遍历到的元素。 | -| key | T | 否 | 当前遍历到的元素(和value相同)。 | +| value | T | 否 | 当前遍历到的value元素。 | +| key | T | 否 | 当前遍历到的key元素。 | | set | TreeSet<T> | 否 | 当前调用forEach方法的实例对象。 | **错误码:** @@ -515,7 +517,7 @@ treeSet.forEach((value, key) => { entries(): IterableIterator<[T, T]> -返回包含此映射中包含的键值对的新迭代器对象。 +返回包含此映射中键值对的新迭代器对象。 **系统能力:** SystemCapability.Utils.Lang @@ -553,7 +555,7 @@ while(temp != undefined) { [Symbol.iterator]\(): IterableIterator<T> -返回一个迭代器,迭代器的每一项都是一个 JavaScript 对象,并返回该对象。 +返回一个迭代器,迭代器的每一项都是一个JavaScript对象,并返回该对象。 **系统能力:** SystemCapability.Utils.Lang @@ -561,7 +563,7 @@ while(temp != undefined) { | 类型 | 说明 | | -------- | -------- | -| IterableIterator<T> | 返回一个迭代器 | +| IterableIterator<T> | 返回一个迭代器。 | **错误码:** diff --git a/zh-cn/application-dev/reference/apis/js-apis-uri.md b/zh-cn/application-dev/reference/apis/js-apis-uri.md index 6cc9eef1eec4ebd8bc4a69a2cf7a1814150d1100..e26fa93fa16ac7e99705c433b2fc1c3088b69e23 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-uri.md +++ b/zh-cn/application-dev/reference/apis/js-apis-uri.md @@ -226,9 +226,9 @@ checkIsAbsolute(): boolean ```js const uriInstance = new uri.URI('https://username:password@www.qwer.com:8080?query=pppppp'); -console.log(uriInstance.checkIsAbsolute()); // true +console.log(`${uriInstance.checkIsAbsolute()}`); // true const uriInstance1 = new uri.URI('xxx.com/suppliers.htm'); -console.log(uriInstance1.checkIsAbsolute()); // false +console.log(`${uriInstance1.checkIsAbsolute()}`); // false ``` diff --git a/zh-cn/application-dev/reference/apis/js-apis-usb-deprecated.md b/zh-cn/application-dev/reference/apis/js-apis-usb-deprecated.md index c8d6a78aa534f43890134222508dbd401391442d..8cfdfad79d999541c7aa89f26a00b738a76ea06b 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-usb-deprecated.md +++ b/zh-cn/application-dev/reference/apis/js-apis-usb-deprecated.md @@ -5,8 +5,8 @@ > **说明:** > > 本模块首批接口从API version 8开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 -> -> 从API version 9开始,该接口不再维护,推荐使用新接口[`@ohos.usbV9`](js-apis-usb.md)。 +> +> 从API version 9开始,该接口不再维护,推荐使用新接口[`@ohos.usbManager`](js-apis-usbManager.md)。 ## 导入模块 diff --git a/zh-cn/application-dev/reference/apis/js-apis-usb.md b/zh-cn/application-dev/reference/apis/js-apis-usb.md index 06170740a470357cc7fcb36ef1fd2c2b67b12793..dbc589203251e74a0158365d73da639edd0d48a8 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-usb.md +++ b/zh-cn/application-dev/reference/apis/js-apis-usb.md @@ -5,6 +5,8 @@ > **说明:** > > 本模块首批接口从API version 9开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 +> +> 从API version 9开始,该接口不再维护,推荐使用新接口[`@ohos.usbManager`](js-apis-usbManager.md)。 ## 导入模块 @@ -222,7 +224,7 @@ addRight(bundleName: string, deviceName: string): boolean 添加软件包访问设备的权限。 -[requestRight](#usbrequestright)的会触发弹框请求用户授权;addRight不会触发弹框,而是直接添加软件包访问设备的权限。 +[requestRight](#usbrequestright)会触发弹框请求用户授权;addRight不会触发弹框,而是直接添加软件包访问设备的权限。 **系统接口:** 此接口为系统接口。 diff --git a/zh-cn/application-dev/reference/apis/js-apis-usbManager.md b/zh-cn/application-dev/reference/apis/js-apis-usbManager.md new file mode 100644 index 0000000000000000000000000000000000000000..6eaf7501cc163afbec26e8b9749da044f94b4e05 --- /dev/null +++ b/zh-cn/application-dev/reference/apis/js-apis-usbManager.md @@ -0,0 +1,951 @@ +# @ohos.usbManager (USB管理) + +本模块主要提供管理USB设备的相关功能,包括主设备上查询USB设备列表、批量数据传输、控制命令传输、权限控制等;从设备上端口管理、功能切换及查询等。 + +> **说明:** +> +> 本模块首批接口从API version 9开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 + +## 导入模块 + +```js +import usb from "@ohos.usbManager"; +``` + +## usb.getDevices + +getDevices(): Array<Readonly<USBDevice>> + +获取接入主设备的USB设备列表。如果没有设备接入,那么将会返回一个空的列表。 + +**系统能力:** SystemCapability.USB.USBManager + +**返回值:** + +| 类型 | 说明 | +| ---------------------------------------------------- | ------- | +| Array<Readonly<[USBDevice](#usbdevice)>> | 设备信息列表。 | + +**示例:** + +```js +let devicesList = usb.getDevices(); +console.log(`devicesList = ${JSON.stringify(devicesList)}`); +//devicesList 返回的数据结构 +//此处提供一个简单的示例,如下 +[ + { + name: "1-1", + serial: "", + manufacturerName: "", + productName: "", + version: "", + vendorId: 7531, + productId: 2, + clazz: 9, + subClass: 0, + protocol: 1, + devAddress: 1, + busNum: 1, + configs: [ + { + id: 1, + attributes: 224, + isRemoteWakeup: true, + isSelfPowered: true, + maxPower: 0, + name: "1-1", + interfaces: [ + { + id: 0, + protocol: 0, + clazz: 9, + subClass: 0, + alternateSetting: 0, + name: "1-1", + endpoints: [ + { + address: 129, + attributes: 3, + interval: 12, + maxPacketSize: 4, + direction: 128, + number: 1, + type: 3, + interfaceId: 0, + }, + ], + }, + ], + }, + ], + }, +] +``` + +## usb.connectDevice + +connectDevice(device: USBDevice): Readonly<USBDevicePipe> + +根据getDevices()返回的设备信息打开USB设备。 + +需要调用[usb.getDevices](#usbgetdevices)获取设备信息以及device,再调用[usb.requestRight](#usbrequestright)请求使用该设备的权限。 + +**系统能力:** SystemCapability.USB.USBManager + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| -------- | -------- | -------- | -------- | +| device | [USBDevice](#usbdevice) | 是 | USB设备信息。 | + +**返回值:** + +| 类型 | 说明 | +| -------- | -------- | +| Readonly<[USBDevicePipe](#usbdevicepipe)> | 指定的传输通道对象。 | + +**错误码:** + +以下错误码的详细介绍参见[USB错误码](../errorcodes/errorcode-usb.md)。 + +| 错误码ID | 错误信息 | +| -------- | -------- | +| 14400001 |Permission denied. Need call requestRight to get permission. | + +**示例:** + +```js +let devicesList = usb.getDevices(); +if (devicesList.length == 0) { + console.log(`device list is empty`); + return; +} + +let device = devicesList[0]; +usb.requestRight(device.name); +let devicepipe = usb.connectDevice(device); +console.log(`devicepipe = ${JSON.stringify(devicepipe)}`); +``` + +## usb.hasRight + +hasRight(deviceName: string): boolean + +判断是否有权访问该设备。 + +如果“使用者”(如各种App或系统)有权访问设备则返回true;无权访问设备则返回false。 + +**系统能力:** SystemCapability.USB.USBManager + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| -------- | -------- | -------- | -------- | +| deviceName | string | 是 | 设备名称。 | + +**返回值:** + +| 类型 | 说明 | +| -------- | -------- | +| boolean | true表示有访问设备的权限,false表示没有访问设备的权限。 | + +**示例:** + +```js +let devicesName="1-1"; +let bool = usb.hasRight(devicesName); +console.log(bool); +``` + +## usb.requestRight + +requestRight(deviceName: string): Promise<boolean> + +请求软件包的临时权限以访问设备。使用Promise异步回调。 + +**系统能力:** SystemCapability.USB.USBManager + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| -------- | -------- | -------- | -------- | +| deviceName | string | 是 | 设备名称。 | + +**返回值:** + +| 类型 | 说明 | +| -------- | -------- | +| Promise<boolean> | Promise对象,返回临时权限的申请结果。返回true表示临时权限申请成功;返回false则表示临时权限申请失败。 | + +**示例:** + +```js +let devicesName="1-1"; +usb.requestRight(devicesName).then((ret) => { + console.log(`requestRight = ${JSON.stringify(ret)}`); +}); +``` + +## usb.removeRight + +removeRight(deviceName: string): boolean + +移除软件包访问设备的权限。 + +**系统能力:** SystemCapability.USB.USBManager + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| -------- | -------- | -------- | -------- | +| deviceName | string | 是 | 设备名称。 | + +**返回值:** + +| 类型 | 说明 | +| -------- | -------- | +| boolean | 返回权限移除结果。返回true表示权限移除成功;返回false则表示权限移除失败。 | + +**示例:** + +```js +let devicesName="1-1"; +if (usb.removeRight(devicesName) { + console.log(`Succeed in removing right`); +} +``` + +## usb.addRight + +addRight(bundleName: string, deviceName: string): boolean + +添加软件包访问设备的权限。 + +[requestRight](#usbrequestright)会触发弹框请求用户授权;addRight不会触发弹框,而是直接添加软件包访问设备的权限。 + +**系统接口:** 此接口为系统接口。 + +**系统能力:** SystemCapability.USB.USBManager + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| -------- | -------- | -------- | -------- | +| deviceName | string | 是 | 设备名称。 | +| bundleName | string | 是 | 软件包名称。| + +**返回值:** + +| 类型 | 说明 | +| -------- | -------- | +| boolean | 返回权限添加结果。返回true表示权限添加成功;返回false则表示权限添加失败。 | + +**示例:** + +```js +let devicesName = "1-1"; +let bundleName = "com.example.hello"; +if (usb.addRight(bundleName, devicesName) { + console.log(`Succeed in adding right`); +} +``` + +## usb.claimInterface + +claimInterface(pipe: USBDevicePipe, iface: USBInterface, force ?: boolean): number + +注册通信接口。 + +需要调用[usb.getDevices](#usbgetdevices)获取设备信息以及interfaces;调用[usb.requestRight](#usbrequestright)获取设备请求权限;调用[usb.connectDevice](#usbconnectdevice)接口得到devicepipe作为参数。 + +**系统能力:** SystemCapability.USB.USBManager + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| -------- | -------- | -------- | -------- | +| pipe | [USBDevicePipe](#usbdevicepipe) | 是 | 用于确定总线号和设备地址。 | +| iface | [USBInterface](#usbinterface) | 是 | 用于确定需要获取接口的索引。 | +| force | boolean | 否 | 可选参数,是否强制获取。默认值为false ,表示不强制获取。 | + +**返回值:** + +| 类型 | 说明 | +| -------- | -------- | +| number | 注册通信接口成功返回0;注册通信接口失败返回其他错误码。 | + +**示例:** + +```js +let ret = usb.claimInterface(devicepipe, interfaces); +console.log(`claimInterface = ${ret}`); +``` + +## usb.releaseInterface + +releaseInterface(pipe: USBDevicePipe, iface: USBInterface): number + +释放注册过的通信接口。 + +需要调用[usb.claimInterface](#usbclaiminterface)先获取接口,才能使用此方法释放接口。 + +**系统能力:** SystemCapability.USB.USBManager + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| -------- | -------- | -------- | -------- | +| pipe | [USBDevicePipe](#usbdevicepipe) | 是 | 用于确定总线号和设备地址。 | +| iface | [USBInterface](#usbinterface) | 是 | 用于确定需要释放接口的索引。 | + +**返回值:** + +| 类型 | 说明 | +| -------- | -------- | +| number | 释放接口成功返回0;释放接口失败返回其他错误码。 | + +**示例:** + +```js +let ret = usb.releaseInterface(devicepipe, interfaces); +console.log(`releaseInterface = ${ret}`); +``` + +## usb.setConfiguration + +setConfiguration(pipe: USBDevicePipe, config: USBConfiguration): number + +设置设备配置。 + +需要调用[usb.getDevices](#usbgetdevices)获取设备信息以及config;调用[usb.requestRight](#usbrequestright)获取设备请求权限;调用[usb.connectDevice](#usbconnectdevice)得到devicepipe作为参数。 + +**系统能力:** SystemCapability.USB.USBManager + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| -------- | -------- | -------- | -------- | +| pipe | [USBDevicePipe](#usbdevicepipe) | 是 | 用于确定总线号和设备地址。 | +| config | [USBConfiguration](#usbconfiguration) | 是 | 用于确定需要设置的配置。 | + +**返回值:** + +| 类型 | 说明 | +| -------- | -------- | +| number | 设置设备配置成功返回0;设置设备配置失败返回其他错误码。 | + +**示例:** + +```js +let ret = usb.setConfiguration(devicepipe, config); +console.log(`setConfiguration = ${ret}`); +``` + +## usb.setInterface + +setInterface(pipe: USBDevicePipe, iface: USBInterface): number + +设置设备接口。 + +需要调用[usb.getDevices](#usbgetdevices)获取设备列表以及interfaces;调用[usb.requestRight](#usbrequestright)获取设备请求权限;调用[usb.connectDevice](#usbconnectdevice)得到devicepipe作为参数;调用[usb.claimInterface](#usbclaiminterface)注册通信接口。 + +**系统能力:** SystemCapability.USB.USBManager + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| ----- | ------------------------------- | --- | ------------- | +| pipe | [USBDevicePipe](#usbdevicepipe) | 是 | 用于确定总线号和设备地址。 | +| iface | [USBInterface](#usbinterface) | 是 | 用于确定需要设置的接口。 | + +**返回值:** + +| 类型 | 说明 | +| -------- | -------- | +| number | 设置设备接口成功返回0;设置设备接口失败返回其他错误码。 | + +**示例:** + +```js +let ret = usb.setInterface(devicepipe, interfaces); +console.log(`setInterface = ${ret}`); +``` + +## usb.getRawDescriptor + +getRawDescriptor(pipe: USBDevicePipe): Uint8Array + +获取原始的USB描述符。 + +需要调用[usb.getDevices](#usbgetdevices)获取设备列表;调用[usb.requestRight](#usbrequestright)获取设备请求权限;调用[usb.connectDevice](#usbconnectdevice)接口得到devicepipe作为参数。 + +**系统能力:** SystemCapability.USB.USBManager + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| -------- | -------- | -------- | -------- | +| pipe | [USBDevicePipe](#usbdevicepipe) | 是 | 用于确定总线号和设备地址。 | + +**返回值:** + +| 类型 | 说明 | +| -------- | -------- | +| Uint8Array | 返回获取的原始数据;失败返回undefined。 | + +**示例:** + +```js +let ret = usb.getRawDescriptor(devicepipe); +``` + +## usb.getFileDescriptor + +getFileDescriptor(pipe: USBDevicePipe): number + +获取文件描述符。 + +需要调用[usb.getDevices](#usbgetdevices)获取设备列表;调用[usb.requestRight](#usbrequestright)获取设备请求权限;调用[usb.connectDevice](#usbconnectdevice)接口得到devicepipe作为参数。 + +**系统能力:** SystemCapability.USB.USBManager + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| -------- | -------- | -------- | -------- | +| pipe | [USBDevicePipe](#usbdevicepipe) | 是 | 用于确定总线号和设备地址。 | + +**返回值:** + +| 类型 | 说明 | +| ------ | -------------------- | +| number | 返回设备对应的文件描述符;失败返回-1。 | + +**示例:** + +```js +let ret = usb.getFileDescriptor(devicepipe); +``` + +## usb.controlTransfer + +controlTransfer(pipe: USBDevicePipe, controlparam: USBControlParams, timeout ?: number): Promise<number> + +控制传输。 + +需要调用[usb.getDevices](#usbgetdevices)获取设备列表;调用[usb.requestRight](#usbrequestright)获取设备请求权限;调用[usb.connectDevice](#usbconnectdevice)接口得到devicepipe作为参数。 + +**系统能力:** SystemCapability.USB.USBManager + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| -------- | -------- | -------- | -------- | +| pipe | [USBDevicePipe](#usbdevicepipe) | 是 | 用于确定设备。 | +| controlparam | [USBControlParams](#usbcontrolparams) | 是 | 控制传输参数。 | +| timeout | number | 否 | 超时时间(单位:ms),可选参数,默认为0不超时。 | + +**返回值:** + +| 类型 | 说明 | +| -------- | -------- | +| Promise<number> | Promise对象,获取传输或接收到的数据块大小。失败返回-1。 | + +**示例:** + +```js +usb.controlTransfer(devicepipe, USBControlParams).then((ret) => { + console.log(`controlTransfer = ${JSON.stringify(ret)}`); +}) +``` + +## usb.bulkTransfer + +bulkTransfer(pipe: USBDevicePipe, endpoint: USBEndpoint, buffer: Uint8Array, timeout ?: number): Promise<number> + +批量传输。 + +需要调用[usb.getDevices](#usbgetdevices)获取设备信息列表以及endpoint;再调用[usb.requestRight](#usbrequestright)获取设备请求权限;然后调用[usb.connectDevice](#usbconnectdevice)接口得到返回数据devicepipe之后,再次获取接口[usb.claimInterface](#usbclaiminterface);再调用usb.bulkTransfer接口。 + +**系统能力:** SystemCapability.USB.USBManager + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| -------- | -------- | -------- | -------- | +| pipe | [USBDevicePipe](#usbdevicepipe) | 是 | 用于确定设备。 | +| endpoint | [USBEndpoint](#usbendpoint) | 是 | 用于确定传输的端口。 | +| buffer | Uint8Array | 是 | 用于写入或读取的缓冲区。 | +| timeout | number | 否 | 超时时间(单位:ms),可选参数,默认为0不超时。| + +**返回值:** + +| 类型 | 说明 | +| -------- | -------- | +| Promise<number> | Promise对象,获取传输或接收到的数据块大小。失败返回-1。 | + +**示例:** + +```js +//usb.getDevices 接口返回数据集合,取其中一个设备对象,并获取权限 。 +//把获取到的设备对象作为参数传入usb.connectDevice;当usb.connectDevice接口成功返回之后; +//才可以调用第三个接口usb.claimInterface.当usb.claimInterface 调用成功以后,再调用该接口。 +usb.bulkTransfer(devicepipe, endpoint, buffer).then((ret) => { + console.log(`bulkTransfer = ${JSON.stringify(ret)}`); +}); +``` + +## usb.closePipe + +closePipe(pipe: USBDevicePipe): number + +关闭设备消息控制通道。 + +需要调用[usb.getDevices](#usbgetdevices)获取设备列表;调用[usb.requestRight](#usbrequestright)获取设备请求权限;调用[usb.connectDevice](#usbconnectdevice)得到devicepipe作为参数。 + +**系统能力:** SystemCapability.USB.USBManager + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| -------- | -------- | -------- | -------- | +| pipe | [USBDevicePipe](#usbdevicepipe) | 是 | 用于确定USB设备消息控制通道。 | + +**返回值:** + +| 类型 | 说明 | +| -------- | -------- | +| number | 关闭设备消息控制通道成功返回0;关闭设备消息控制通道失败返回其他错误码。 | + +**示例:** + +```js +let ret = usb.closePipe(devicepipe); +console.log(`closePipe = ${ret}`); +``` + +## usb.usbFunctionsFromString + +usbFunctionsFromString(funcs: string): number + +在设备模式下,将字符串形式的USB功能列表转化为数字掩码。 + +**系统接口:** 此接口为系统接口。 + +**系统能力:** SystemCapability.USB.USBManager + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| ------ | ------ | ---- | ---------------------- | +| funcs | string | 是 | 字符串形式的功能列表。 | + +**返回值:** + +| 类型 | 说明 | +| ------ | ------------------ | +| number | 转化后的数字掩码。 | + +**示例:** + +```js +let funcs = "acm"; +let ret = usb.usbFunctionsFromString(funcs); +``` + +## usb.usbFunctionsToString + +usbFunctionsToString(funcs: FunctionType): string + +在设备模式下,将数字掩码形式的USB功能列表转化为字符串。 + +**系统接口:** 此接口为系统接口。 + +**系统能力:** SystemCapability.USB.USBManager + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| ------ | ------------------------------ | ---- | ----------------- | +| funcs | [FunctionType](#functiontype) | 是 | USB功能数字掩码。 | + +**返回值:** + +| 类型 | 说明 | +| ------ | ------------------------------ | +| string | 转化后的字符串形式的功能列表。 | + +**示例:** + +```js +let funcs = ACM | ECM; +let ret = usb.usbFunctionsToString(funcs); +``` + +## usb.setCurrentFunctions + +setCurrentFunctions(funcs: FunctionType): Promise\ + +在设备模式下,设置当前的USB功能列表。 + +**系统接口:** 此接口为系统接口。 + +**系统能力:** SystemCapability.USB.USBManager + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| ------ | ------------------------------ | ---- | ----------------- | +| funcs | [FunctionType](#functiontype) | 是 | USB功能数字掩码。 | + +**返回值:** + +| 类型 | 说明 | +| --------------- | ------------- | +| Promise\ | Promise对象。 | + +**示例:** + +```js +let funcs = HDC; +usb.setCurrentFunctions(funcs).then(() => { + console.info('usb setCurrentFunctions successfully.'); +}).catch(err => { + console.error('usb setCurrentFunctions failed: ' + err.code + ' message: ' + err.message); +}); +``` + +## usb.getCurrentFunctions + +getCurrentFunctions(): FunctionType + +在设备模式下,获取当前的USB功能列表的数字组合掩码。 + +**系统接口:** 此接口为系统接口。 + +**系统能力:** SystemCapability.USB.USBManager + +**返回值:** + +| 类型 | 说明 | +| ------------------------------ | --------------------------------- | +| [FunctionType](#functiontype) | 当前的USB功能列表的数字组合掩码。 | + +**示例:** + +```js +let ret = usb.getCurrentFunctions(); +``` + +## usb.getPorts + +getPorts(): Array\ + +获取所有物理USB端口描述信息。 + +**系统接口:** 此接口为系统接口。 + +**系统能力:** SystemCapability.USB.USBManager + +**返回值:** + +| 类型 | 说明 | +| ----------------------------- | --------------------- | +| [Array\](#usbport) | USB端口描述信息列表。 | + +**示例:** + +```js +let ret = usb.getPorts(); +``` + +## usb.getSupportedModes + +getSupportedModes(portId: number): PortModeType + +获取指定的端口支持的模式列表的组合掩码。 + +**系统接口:** 此接口为系统接口。 + +**系统能力:** SystemCapability.USB.USBManager + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| ------ | ------ | ---- | -------- | +| portId | number | 是 | 端口号。 | + +**返回值:** + +| 类型 | 说明 | +| ------------------------------ | -------------------------- | +| [PortModeType](#portmodetype) | 支持的模式列表的组合掩码。 | + +**示例:** + +```js +let ret = usb.getSupportedModes(0); +``` + +## usb.setPortRoles + +setPortRoles(portId: number, powerRole: PowerRoleType, dataRole: DataRoleType): Promise\ + +设置指定的端口支持的角色模式,包含充电角色、数据传输角色。 + +**系统接口:** 此接口为系统接口。 + +**系统能力:** SystemCapability.USB.USBManager + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| --------- | -------------------------------- | ---- | ---------------- | +| portId | number | 是 | 端口号。 | +| powerRole | [PowerRoleType](#powerroletype) | 是 | 充电的角色。 | +| dataRole | [DataRoleType](#dataroletype) | 是 | 数据传输的角色。 | + +**返回值:** + +| 类型 | 说明 | +| --------------- | ------------- | +| Promise\ | Promise对象。 | + +**示例:** + +```js +let portId = 1; +usb.usb.setPortRoles(portId, usb.PowerRoleType.SOURCE, usb.DataRoleType.HOST).then(() => { + console.info('usb setPortRoles successfully.'); +}).catch(err => { + console.error('usb setPortRoles failed: ' + err.code + ' message: ' + err.message); +}); +``` + +## USBEndpoint + +通过USB发送和接收数据的端口。通过[USBInterface](#usbinterface)获取。 + +**系统能力:** SystemCapability.USB.USBManager + +| 名称 | 类型 | 必填 |说明 | +| ------------- | ------------------------------------------- | ------------- |------------- | +| address | number | 是 |端点地址。 | +| attributes | number | 是 |端点属性。 | +| interval | number | 是 |端点间隔。 | +| maxPacketSize | number | 是 |端点最大数据包大小。 | +| direction | [USBRequestDirection](#usbrequestdirection) | 是 |端点的方向。 | +| number | number | 是 |端点号。 | +| type | number | 是 |端点类型。 | +| interfaceId | number | 是 |端点所属的接口的唯一标识。 | + +## USBInterface + +一个[USBConfiguration](#usbconfiguration)中可以含有多个USBInterface,每个USBInterface提供一个功能。 + +**系统能力:** SystemCapability.USB.USBManager + +| 名称 | 类型 | 必填 |说明 | +| ---------------- | ---------------------------------------- | ------------- |--------------------- | +| id | number | 是 |接口的唯一标识。 | +| protocol | number | 是 |接口的协议。 | +| clazz | number | 是 |设备类型。 | +| subClass | number | 是 |设备子类。 | +| alternateSetting | number | 是 |在同一个接口中的多个描述符中进行切换设置。 | +| name | string | 是 |接口名称。 | +| endpoints | Array<[USBEndpoint](#usbendpoint)> | 是 |当前接口所包含的端点。 | + +## USBConfiguration + +USB配置,一个[USBDevice](#usbdevice)中可以含有多个配置。 + +**系统能力:** SystemCapability.USB.USBManager + +| 名称 | 类型 | 必填 |说明 | +| -------------- | ------------------------------------------------ | --------------- |--------------- | +| id | number | 是 |配置的唯一标识。 | +| attributes | number | 是 |配置的属性。 | +| maxPower | number | 是 |最大功耗,以毫安为单位。 | +| name | string | 是 |配置的名称,可以为空。 | +| isRemoteWakeup | boolean | 是 |检查当前配置是否支持远程唤醒。 | +| isSelfPowered | boolean | 是 | 检查当前配置是否支持独立电源。 | +| interfaces | Array <[USBInterface](#usbinterface)> | 是 |配置支持的接口属性。 | + +## USBDevice + +USB设备信息。 + +**系统能力:** SystemCapability.USB.USBManager + +| 名称 | 类型 | 必填 |说明 | +| ---------------- | ------------------------------------ | ---------- |---------- | +| busNum | number | 是 |总线地址。 | +| devAddress | number | 是 |设备地址。 | +| serial | string | 是 |序列号。 | +| name | string | 是 |设备名字。 | +| manufacturerName | string | 是 | 产商信息。 | +| productName | string | 是 |产品信息。 | +| version | string | 是 |版本。 | +| vendorId | number | 是 |厂商ID。 | +| productId | number | 是 |产品ID。 | +| clazz | number | 是 |设备类。 | +| subClass | number | 是 |设备子类。 | +| protocol | number | 是 |设备协议码。 | +| configs | Array<[USBConfiguration](#usbconfiguration)> | 是 |设备配置描述符信息。 | + +## USBDevicePipe + +USB设备消息传输通道,用于确定设备。 + +**系统能力:** SystemCapability.USB.USBManager + +| 名称 | 类型 | 必填 |说明 | +| ---------- | ------ | ----- |----- | +| busNum | number |是 | 总线地址。 | +| devAddress | number |是 | 设备地址。 | + +## USBControlParams + +控制传输参数。 + +**系统能力:** SystemCapability.USB.USBManager + +| 名称 | 类型 | 必填 |说明 | +| ------- | ----------------------------------------------- | ---------------- |---------------- | +| request | number | 是 |请求类型。 | +| target | [USBRequestTargetType](#usbrequesttargettype) | 是 |请求目标类型。 | +| reqType | [USBControlRequestType](#usbcontrolrequesttype) | 是 |请求控制类型。 | +| value | number | 是 |请求参数。 | +| index | number | 是 |请求参数value对应的索引值。 | +| data | Uint8Array | 是 |用于写入或读取的缓冲区。 | + +## USBPort + +USB设备端口。 + +**系统接口:** 此接口为系统接口。 + +**系统能力:** SystemCapability.USB.USBManager + +| 名称 | 类型 | 必填 |说明 | +| -------------- | ------------------------------- | ------------------- |------------------------ | +| id | number | 是 |USB端口唯一标识。 | +| supportedModes | [PortModeType](#portmodetype) | 是 |USB端口所支持的模式的数字组合掩码。 | +| status | [USBPortStatus](#usbportstatus) | 是 |USB端口角色。 | + +## USBPortStatus + +USB设备端口角色信息。 + +**系统接口:** 此接口为系统接口。 + +**系统能力:** SystemCapability.USB.USBManager + +| 名称 | 类型 | 必填 |说明 | +| ---------------- | -------- | ---------------- |---------------------- | +| currentMode | number | 是 |当前的USB模式。 | +| currentPowerRole | number | 是 |当前设备充电模式。 | +| currentDataRole | number | 是 |当前设备数据传输模式。 | + +## USBRequestTargetType + +请求目标类型。 + +**系统能力:** SystemCapability.USB.USBManager + +| 名称 | 值 | 说明 | +| ---------------------------- | ---- | ------ | +| USB_REQUEST_TARGET_DEVICE | 0 | 设备。 | +| USB_REQUEST_TARGET_INTERFACE | 1 | 接口。 | +| USB_REQUEST_TARGET_ENDPOINT | 2 | 端点。 | +| USB_REQUEST_TARGET_OTHER | 3 | 其他。 | + +## USBControlRequestType + +控制请求类型。 + +**系统能力:** SystemCapability.USB.USBManager + +| 名称 | 值 | 说明 | +| ------------------------- | ---- | ------ | +| USB_REQUEST_TYPE_STANDARD | 0 | 标准。 | +| USB_REQUEST_TYPE_CLASS | 1 | 类。 | +| USB_REQUEST_TYPE_VENDOR | 2 | 厂商。 | + +## USBRequestDirection + +请求方向。 + +**系统能力:** SystemCapability.USB.USBManager + +| 名称 | 值 | 说明 | +| --------------------------- | ---- | ------------------------ | +| USB_REQUEST_DIR_TO_DEVICE | 0 | 写数据,主设备往从设备。 | +| USB_REQUEST_DIR_FROM_DEVICE | 0x80 | 读数据,从设备往主设备。 | + +## FunctionType + +USB设备侧功能。 + +**系统接口:** 此接口为系统接口。 + +**系统能力:** SystemCapability.USB.USBManager + +| 名称 | 值 | 说明 | +| ------------ | ---- | ---------- | +| NONE | 0 | 没有功能。 | +| ACM | 1 | acm功能。 | +| ECM | 2 | ecm功能。 | +| HDC | 4 | hdc功能。 | +| MTP | 8 | 暂不支持。 | +| PTP | 16 | 暂不支持。 | +| RNDIS | 32 | 暂不支持。 | +| MIDI | 64 | 暂不支持。 | +| AUDIO_SOURCE | 128 | 暂不支持。 | +| NCM | 256 | 暂不支持。 | + +## PortModeType + +USB端口模式类型。 + +**系统接口:** 此接口为系统接口。 + +**系统能力:** SystemCapability.USB.USBManager + +| 名称 | 值 | 说明 | +| --------- | ---- | ---------------------------------------------------- | +| NONE | 0 | 无。 | +| UFP | 1 | 数据上行,需要外部供电。 | +| DFP | 2 | 数据下行,对外提供电源。 | +| DRP | 3 | 既可以做DFP(Host),也可以做UFP(Device),当前不支持。 | +| NUM_MODES | 4 | 当前不支持。 | + +## PowerRoleType + +电源角色类型。 + +**系统接口:** 此接口为系统接口。 + +**系统能力:** SystemCapability.USB.USBManager + +| 名称 | 值 | 说明 | +| ------ | ---- | ---------- | +| NONE | 0 | 无。 | +| SOURCE | 1 | 外部供电。 | +| SINK | 2 | 内部供电。 | + +## DataRoleType + +数据角色类型。 + +**系统接口:** 此接口为系统接口。 + +**系统能力:** SystemCapability.USB.USBManager + +| 名称 | 值 | 说明 | +| ------ | ---- | ------------ | +| NONE | 0 | 无。 | +| HOST | 1 | 主设备角色。 | +| DEVICE | 2 | 从设备角色。 | + diff --git a/zh-cn/application-dev/reference/apis/js-apis-userFileManager.md b/zh-cn/application-dev/reference/apis/js-apis-userFileManager.md index 59173bfab8fb9dbe015fb04db725511890d83bf1..a3fa457f690aef1252e5e9b51ff3499f00e80244 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-userFileManager.md +++ b/zh-cn/application-dev/reference/apis/js-apis-userFileManager.md @@ -82,10 +82,10 @@ async function example() { console.info('fetchResult success'); let fileAsset = await fetchResult.getFirstObject(); if (fileAsset != undefined) { - console.info("fileAsset.displayName :" + fileAsset.displayName); + console.info("fileAsset.displayName : " + fileAsset.displayName); } } else { - console.info('fetchResult fail' + err); + console.error('fetchResult fail' + err); } }); } @@ -136,7 +136,7 @@ async function example() { } } } catch (err) { - console.info('getPhotoAssets failed, message = ', err); + console.error('getPhotoAssets failed, message = ', err); } } ``` @@ -177,7 +177,7 @@ async function example() { console.info('createPhotoAsset file displayName' + fileAsset.displayName); console.info('createPhotoAsset successfully'); } else { - console.info('createPhotoAsset failed, message = ', err); + console.error('createPhotoAsset failed, message = ', err); } }); } @@ -211,7 +211,7 @@ async function example() { console.info('createPhotoAsset file displayName' + fileAsset.displayName); console.info('createPhotoAsset successfully'); } else { - console.info('createPhotoAsset failed, message = ', err); + console.error('createPhotoAsset failed, message = ', err); } }); } @@ -251,7 +251,7 @@ async function example() { console.info('createPhotoAsset file displayName' + fileAsset.displayName); console.info('createPhotoAsset successfully'); } catch (err) { - console.info('createPhotoAsset failed, message = ', err); + console.error('createPhotoAsset failed, message = ', err); } } ``` @@ -293,11 +293,11 @@ async function example() { if (album != undefined) { console.info('first album.albumName = ' + album.albumName); } else { - console.info('album is undefined, err = ', err); + console.error('album is undefined, err = ', err); } }); } else { - console.info('getPhotoAlbums fail, message = ', err); + console.error('getPhotoAlbums fail, message = ', err); } }); } @@ -342,7 +342,7 @@ async function example() { const album = await fetchResult.getFirstObject(); console.info('first album.albumName = ' + album.albumName); } catch (err) { - console.info('getPhotoAlbums fail, message = ' + err); + console.error('getPhotoAlbums fail, message = ' + err); } } ``` @@ -375,7 +375,7 @@ async function example() { let trashAlbum = await fetchResult.getFirstObject(); console.info('first album.albumName = ' + trashAlbum.albumName); } else { - console.info('getPrivateAlbum failed. message = ', err); + console.error('getPrivateAlbum failed. message = ', err); } }); } @@ -414,7 +414,7 @@ async function example() { let trashAlbum = await fetchResult.getFirstObject(); console.info('first album.albumName = ' + trashAlbum.albumName); } catch (err) { - console.info('getPrivateAlbum failed. message = ', err); + console.error('getPrivateAlbum failed. message = ', err); } } ``` @@ -458,7 +458,7 @@ async function example() { console.info("fileAsset.displayName :" + fileAsset.displayName); } } else { - console.info('fetchFileResult fail' + err); + console.error('fetchFileResult fail' + err); } }); } @@ -502,7 +502,7 @@ async function example() { try { var fetchResult = await mgr.getAudioAssets(fetchOptions); } catch (err) { - console.info('getAudioAssets failed, message = ', err); + console.error('getAudioAssets failed, message = ', err); } if (fetchResult != undefined) { @@ -558,7 +558,7 @@ async function example() { if (err == undefined) { console.info("delete successfully"); } else { - console.info("delete failed with error:" + err); + console.error("delete failed with error: " + err); } }); } @@ -612,7 +612,7 @@ async function example() { await mgr.delete(asset.uri); console.info("delete successfully"); } catch (err) { - console.info("delete failed with error:" + err); + console.error("delete failed with error: " + err); } } ``` @@ -648,13 +648,13 @@ async function example() { console.info('createPhotoAsset file displayName' + fileAsset.displayName); console.info('createPhotoAsset successfully'); } catch (err) { - console.info('createPhotoAsset failed, message = ' + err); + console.error('createPhotoAsset failed, message = ' + err); } //sleep 1s if (count > 0) { console.info("onDemo success"); } else { - console.info("onDemo fail"); + console.error("onDemo fail"); } mgr.off('imageChange', () => { // stop listening success @@ -698,13 +698,13 @@ async function example() { console.info('createPhotoAsset file displayName' + fileAsset.displayName); console.info('createPhotoAsset successfully'); } catch (err) { - console.info('createPhotoAsset failed, message = ' + err); + console.error('createPhotoAsset failed, message = ' + err); } //sleep 1s if (count == 0) { console.info("offDemo success"); } else { - console.info("offDemo fail"); + console.error("offDemo fail"); } } ``` @@ -735,7 +735,7 @@ async function example() { console.info('get distributed info ' + devicesInfo[i].deviceName + devicesInfo[i].networkId); } } else { - console.info('getActivePeers failed. message = ', err); + console.error('getActivePeers failed. message = ', err); } }); } @@ -763,7 +763,7 @@ async function example() { try { var devicesInfo = await mgr.getActivePeers(); } catch (err) { - console.info('getActivePeers failed. message = ', err); + console.error('getActivePeers failed. message = ', err); } if (devicesInfo != undefined) { console.log('getActivePeers succeed.'); @@ -771,7 +771,7 @@ async function example() { console.info('get distributed info ' + devicesInfo[i].deviceName + devicesInfo[i].networkId); } } else { - console.info('get distributed fail'); + console.error('get distributed fail'); } } ``` @@ -802,7 +802,7 @@ async function example() { console.info('get distributed info ' + devicesInfo[i].deviceName + devicesInfo[i].networkId); } } else { - console.info('getAllPeers failed. message = ', err); + console.error('getAllPeers failed. message = ', err); } }); } @@ -830,7 +830,7 @@ async function example() { try { var devicesInfo = await mgr.getAllPeers(); } catch (err) { - console.info('getAllPeers failed. message = ', err); + console.error('getAllPeers failed. message = ', err); } if (devicesInfo != undefined) { console.log('getAllPeers succeed.'); @@ -838,7 +838,7 @@ async function example() { console.info('get distributed info ' + devicesInfo[i].deviceName + devicesInfo[i].networkId); } } else { - console.info('get distributed fail'); + console.error('get distributed fail'); } } ``` @@ -865,7 +865,7 @@ async function example() { console.info('releaseDemo'); mgr.release((err) => { if (err != undefined) { - console.info('release failed. message = ', err); + console.error('release failed. message = ', err); } else { console.info('release ok.'); } @@ -897,7 +897,7 @@ async function example() { await mgr.release(); console.info('release ok.'); } catch (err) { - console.info('release failed. message = ', err); + console.error('release failed. message = ', err); } } ``` @@ -950,7 +950,7 @@ async function example() { let fileAssetTitle = fileAsset.get(title.toString()); console.info('fileAsset Get fileAssetTitle = ', fileAssetTitle); } catch (err) { - console.info('release failed. message = ', err); + console.error('release failed. message = ', err); } } ``` @@ -988,7 +988,7 @@ async function example() { let title = userFileManager.ImageVideoKey.TITLE; fileAsset.set(title.toString(), "newTitle"); } catch (err) { - console.info('release failed. message = ', err); + console.error('release failed. message = ', err); } } ``` @@ -1032,7 +1032,7 @@ async function example() { let newFileAssetTitle = fileAsset.get(title.toString()); console.info('fileAsset Get newFileAssetTitle = ', newFileAssetTitle); } else { - console.info('commitModify failed, message =', err); + console.error('commitModify failed, message =', err); } }); } @@ -1077,7 +1077,7 @@ async function example() { let newFileAssetTitle = fileAsset.get(title.toString()); console.info('fileAsset Get newFileAssetTitle = ', newFileAssetTitle); } catch (err) { - console.info('release failed. message = ', err); + console.error('release failed. message = ', err); } } ``` @@ -1114,7 +1114,7 @@ async function example() { console.info('File fd' + fd); fileAsset.close(fd); } else { - console.info('File err' + err); + console.error('File err' + err); } }); } @@ -1157,10 +1157,10 @@ async function example() { console.info('File fd' + fd); fileAsset.close(fd); } else { - console.info(' open File fail'); + console.error(' open File fail'); } } catch (err) { - console.info('open Demo err' + err); + console.error('open Demo err' + err); } } ``` @@ -1201,11 +1201,11 @@ async function example() { if (err == undefined) { console.info('asset close succeed.'); } else { - console.info('close failed, message = ' + err); + console.error('close failed, message = ' + err); } }); } catch (err) { - console.info('close failed, message = ' + err); + console.error('close failed, message = ' + err); } } ``` @@ -1250,7 +1250,7 @@ async function example() { await asset.close(fd); console.info('asset close succeed.'); } catch (err) { - console.info('close failed, message = ' + err); + console.error('close failed, message = ' + err); } } ``` @@ -1290,7 +1290,7 @@ async function example() { if (err == undefined) { console.info('getThumbnail successful ' + pixelMap); } else { - console.info('getThumbnail fail', err); + console.error('getThumbnail fail', err); } }); } @@ -1333,7 +1333,7 @@ async function example() { if (err == undefined) { console.info('getThumbnail successful ' + pixelMap); } else { - console.info('getThumbnail fail', err); + console.error('getThumbnail fail', err); } }); } @@ -1380,7 +1380,7 @@ async function example() { asset.getThumbnail(size).then((pixelMap) => { console.info('getThumbnail successful ' + pixelMap); }).catch((err) => { - console.info('getThumbnail fail' + err); + console.error('getThumbnail fail' + err); }); } ``` @@ -1420,7 +1420,7 @@ async function example() { if (err == undefined) { console.info("favorite successfully"); } else { - console.info("favorite failed with error:" + err); + console.error("favorite failed with error:" + err); } }); } @@ -1465,7 +1465,7 @@ async function example() { asset.favorite(true).then(function () { console.info("favorite successfully"); }).catch(function (err) { - console.info("favorite failed with error:" + err); + console.error("favorite failed with error:" + err); }); } ``` @@ -1568,7 +1568,7 @@ async function example() { await fetchResult.close(); console.info('close succeed.'); } catch (err) { - console.info('close fail. message = ' + err); + console.error('close fail. message = ' + err); } } ``` @@ -1604,7 +1604,7 @@ async function example() { if (fileAsset != undefined) { console.info('fileAsset displayName: ', fileAsset.displayName); } else { - console.info("fileAsset failed with err:" + err); + console.error("fileAsset failed with err:" + err); } }); } @@ -1675,7 +1675,7 @@ async function example() { if (fileAsset != undefined) { console.info('fileAsset displayName: ', fileAsset.displayName); } else { - console.info("fileAsset failed with err:" + err); + console.error("fileAsset failed with err: " + err); } }); } @@ -1748,7 +1748,7 @@ async function example() { if (fileAsset != undefined) { console.info('fileAsset displayName: ', fileAsset.displayName); } else { - console.info("fileAsset failed with err:" + err); + console.error("fileAsset failed with err: " + err); } }); } @@ -1818,7 +1818,7 @@ async function example() { if (fileAsset != undefined) { console.info('fileAsset displayName: ', fileAsset.displayName); } else { - console.info("fileAsset failed with err:" + err); + console.error("fileAsset failed with err: " + err); } }); } @@ -1915,9 +1915,9 @@ async function example() { const album = await albumList.getFirstObject(); album.getPhotoAssets(fetchOption, (err, albumFetchResult) => { if (albumFetchResult != undefined) { - console.info("album getPhotoAssets successfully, getCount:" + albumFetchResult.getCount()); + console.info("album getPhotoAssets successfully, getCount: " + albumFetchResult.getCount()); } else { - console.info("album getPhotoAssets failed with error:" + err); + console.error("album getPhotoAssets failed with error: " + err); } }); } @@ -1958,9 +1958,9 @@ async function example() { const albumList = await mgr.getPhotoAlbums(albumFetchOptions); const album = await albumList.getFirstObject(); album.getPhotoAssets(fetchOption).then((albumFetchResult) => { - console.info("album getFileAssets successfully, getCount:" + albumFetchResult.getCount()); + console.info("album getFileAssets successfully, getCount: " + albumFetchResult.getCount()); }).catch((err) => { - console.info("album getFileAssets failed with error:" + err); + console.error("album getFileAssets failed with error: " + err); }); } ``` @@ -1997,7 +1997,7 @@ async function example() { album.albumName = 'hello'; album.commitModify((err) => { if (err != undefined) { - console.info("commitModify failed with error:" + err); + console.error("commitModify failed with error: " + err); } else { console.info("commitModify successfully"); } @@ -2035,14 +2035,14 @@ async function example() { try { var albumList = await mgr.getPhotoAlbums(albumFetchOptions); } catch (err) { - console.info('getPhotoAlbums failed. message = ', err); + console.error('getPhotoAlbums failed. message = ', err); } const album = await albumList.getFirstObject(); album.albumName = 'hello'; album.commitModify().then(() => { console.info("commitModify successfully"); }).catch((err) => { - console.info("commitModify failed with error:" + err); + console.error("commitModify failed with error: " + err); }); } ``` @@ -2099,7 +2099,7 @@ async function example() { let count = fetchResult.getCount(); console.info('fetchResult.count = ', count); } else { - console.info('getFileAssets failed, message = ', err); + console.error('getFileAssets failed, message = ', err); } }); } @@ -2182,7 +2182,7 @@ async function example() { let deleteFileUri = fileAsset.uri; trashAlbum.delete(deleteFileUri, (err) => { if (err != undefined) { - console.info('trashAlbum.delete failed, message = ', err); + console.error('trashAlbum.delete failed, message = ', err); } else { console.info('trashAlbum.delete successfully'); } @@ -2231,7 +2231,7 @@ async function example() { trashAlbum.delete(deleteFileUri).then(() => { console.info('trashAlbum.delete successfully'); }).catch((err) => { - console.info('trashAlbum.delete failed, message = ', err); + console.error('trashAlbum.delete failed, message = ', err); }); } ``` @@ -2272,7 +2272,7 @@ async function example() { let recoverFileUri = fileAsset.uri; trashAlbum.recover(recoverFileUri, (err) => { if (err != undefined) { - console.info('trashAlbum.recover failed, message = ', err); + console.error('trashAlbum.recover failed, message = ', err); } else { console.info('trashAlbum.recover successfully'); } @@ -2321,7 +2321,7 @@ async function example() { trashAlbum.recover(recoverFileUri).then(() => { console.info('trashAlbum.recover successfully'); }).catch((err) => { - console.info('trashAlbum.recover failed, message = ', err); + console.error('trashAlbum.recover failed, message = ', err); }); } ``` @@ -2402,7 +2402,7 @@ async function example() { | URI | uri | 文件uri | | DISPLAY_NAME | display_name | 显示名字 | | DATE_ADDED | date_added | 添加日期(添加文件时间到1970年1月1日的秒数值) | -| DATE_MODIFIED | date_modified | 修改日期(修改文件时间到1970年1月1日的秒数值) | +| DATE_MODIFIED | date_modified | 修改日期(修改文件时间到1970年1月1日的秒数值,修改文件名不会改变此值,当文件内容发生修改时才会更新) | | TITLE | title | 文件标题 | | ARTIST | artist | 作者 | | AUDIOALBUM | audio_album | 专辑 | @@ -2421,7 +2421,7 @@ async function example() { | FILE_TYPE | file_type | 媒体文件类型 | | DISPLAY_NAME | display_name | 显示名字 | | DATE_ADDED | date_added | 添加日期(添加文件时间到1970年1月1日的秒数值) | -| DATE_MODIFIED | date_modified | 修改日期(修改文件时间到1970年1月1日的秒数值) | +| DATE_MODIFIED | date_modified | 修改日期(修改文件时间到1970年1月1日的秒数值,修改文件名不会改变此值,当文件内容发生修改时才会更新) | | TITLE | title | 文件标题 | | DURATION | duration | 持续时间(单位:毫秒) | | WIDTH | width | 图片宽度(单位:像素) | @@ -2442,7 +2442,7 @@ async function example() { | FILE_TYPE | file_type | 媒体文件类型 | | ALBUM_NAME | album_name | 相册名字 | | DATE_ADDED | date_added | 添加日期(添加文件时间到1970年1月1日的秒数值) | -| DATE_MODIFIED | date_modified | 修改日期(修改文件时间到1970年1月1日的秒数值) | +| DATE_MODIFIED | date_modified | 修改日期(修改文件时间到1970年1月1日的秒数值,修改文件名不会改变此值,当文件内容发生修改时才会更新) | ## FetchOptions diff --git a/zh-cn/application-dev/reference/apis/js-apis-wantAgent.md b/zh-cn/application-dev/reference/apis/js-apis-wantAgent.md index bf2fe339f78f70f38c7159f457981ebbeaf56e8e..0784a5c5db881acacc773738a049ad035f86c1d1 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-wantAgent.md +++ b/zh-cn/application-dev/reference/apis/js-apis-wantAgent.md @@ -160,8 +160,15 @@ function getWantAgentCallback(err, data) { if (err.code == 0) { wantAgent = data; } else { - console.info('----getWantAgent failed!----'); + console.error('getWantAgent failed, error: ' + JSON.stringify(err)); + return; } + + //getBundleName回调 + function getBundleNameCallback(err, data) { + console.info('==========================>getBundleNameCallback=======================>'); + } + WantAgent.getBundleName(wantAgent, getBundleNameCallback); } //WantAgentInfo对象 let wantAgentInfo = { @@ -192,12 +199,6 @@ let wantAgentInfo = { } WantAgent.getWantAgent(wantAgentInfo, getWantAgentCallback) - -//getBundleName回调 -function getBundleNameCallback(err, data) { - console.info('==========================>getBundleNameCallback=======================>'); -} -WantAgent.getBundleName(wantAgent, getBundleNameCallback); ``` @@ -261,10 +262,11 @@ let wantAgentInfo = { WantAgent.getWantAgent(wantAgentInfo).then((data) => { console.info('==========================>getWantAgentCallback=======================>'); wantAgent = data; -}); - -WantAgent.getBundleName(wantAgent).then((data) => { - console.info('==========================>getBundleNameCallback=======================>'); + if (wantAgent) { + WantAgent.getBundleName(wantAgent).then((data) => { + console.info('==========================>getBundleNameCallback=======================>'); + }); + } }); ``` @@ -300,8 +302,15 @@ function getWantAgentCallback(err, data) { if (err.code == 0) { wantAgent = data; } else { - console.info('----getWantAgent failed!----'); + console.error('getWantAgent failed, error: ' + JSON.stringify(err)); + return; } + + //getUid回调 + function getUidCallback(err, data) { + console.info('==========================>getUidCallback=======================>'); + } + WantAgent.getUid(wantAgent, getUidCallback); } //WantAgentInfo对象 let wantAgentInfo = { @@ -332,12 +341,6 @@ let wantAgentInfo = { } WantAgent.getWantAgent(wantAgentInfo, getWantAgentCallback) - -//getUid回调 -function getUidCallback(err, data) { - console.info('==========================>getUidCallback=======================>'); -} -WantAgent.getUid(wantAgent, getUidCallback); ``` @@ -402,10 +405,11 @@ let wantAgentInfo = { WantAgent.getWantAgent(wantAgentInfo).then((data) => { console.info('==========================>getWantAgentCallback=======================>'); wantAgent = data; -}); - -WantAgent.getUid(wantAgent).then((data) => { - console.info('==========================>getUidCallback=======================>'); + if (wantAgent) { + WantAgent.getUid(wantAgent).then((data) => { + console.info('==========================>getUidCallback=======================>'); + }); + } }); ``` @@ -440,8 +444,15 @@ function getWantAgentCallback(err, data) { if (err.code == 0) { wantAgent = data; } else { - console.info('----getWantAgent failed!----'); + console.error('getWantAgent failed, error: ' + JSON.stringify(err)); + return; } + + //cancel回调 + function cancelCallback(err, data) { + console.info('==========================>cancelCallback=======================>'); + } + WantAgent.cancel(wantAgent, cancelCallback); } //WantAgentInfo对象 let wantAgentInfo = { @@ -472,12 +483,6 @@ let wantAgentInfo = { } WantAgent.getWantAgent(wantAgentInfo, getWantAgentCallback) - -//cancel回调 -function cancelCallback(err, data) { - console.info('==========================>cancelCallback=======================>'); -} -WantAgent.cancel(wantAgent, cancelCallback); ``` @@ -542,10 +547,11 @@ let wantAgentInfo = { WantAgent.getWantAgent(wantAgentInfo).then((data) => { console.info('==========================>getWantAgentCallback=======================>'); wantAgent = data; -}); - -WantAgent.cancel(wantAgent).then((data) => { - console.info('==========================>cancelCallback=======================>'); + if (wantAgent) { + WantAgent.cancel(wantAgent).then((data) => { + console.info('==========================>cancelCallback=======================>'); + }); + } }); ``` @@ -582,8 +588,19 @@ function getWantAgentCallback(err, data) { if (err.code == 0) { wantAgent = data; } else { - console.info('----getWantAgent failed!----'); + console.error('getWantAgent failed, error: ' + JSON.stringify(err)); + return; + } + + //trigger回调 + function triggerCallback(data) { + console.info('==========================>triggerCallback=======================>'); + } + + var triggerInfo = { + code:0 } + WantAgent.trigger(wantAgent, triggerInfo, triggerCallback) } //WantAgentInfo对象 let wantAgentInfo = { @@ -614,16 +631,6 @@ let wantAgentInfo = { } WantAgent.getWantAgent(wantAgentInfo, getWantAgentCallback) - -//trigger回调 -function triggerCallback(data) { - console.info('==========================>triggerCallback=======================>'); -} - -var triggerInfo = { - code:0 -} -WantAgent.trigger(wantAgent, triggerInfo, triggerCallback) ``` @@ -661,8 +668,15 @@ function getWantAgentCallback(err, data) { wantAgent1 = data; wantAgent2 = data; } else { - console.info('----getWantAgent failed!----'); + console.error('getWantAgent failed, error: ' + JSON.stringify(err)); + return; } + + //equal回调 + function equalCallback(err, data) { + console.info('==========================>equalCallback=======================>'); + } + WantAgent.equal(wantAgent1, wantAgent2, equalCallback) } //WantAgentInfo对象 let wantAgentInfo = { @@ -693,12 +707,6 @@ let wantAgentInfo = { } WantAgent.getWantAgent(wantAgentInfo, getWantAgentCallback) - -//equal回调 -function equalCallback(err, data) { - console.info('==========================>equalCallback=======================>'); -} -WantAgent.equal(wantAgent1, wantAgent2, equalCallback) ``` @@ -766,6 +774,11 @@ WantAgent.getWantAgent(wantAgentInfo).then((data) => { console.info('==========================>getWantAgentCallback=======================>'); wantAgent1 = data; wantAgent2 = data; + if (data) { + WantAgent.equal(wantAgent1, wantAgent2).then((data) => { + console.info('==========================>equalCallback=======================>'); + }); + } }); WantAgent.equal(wantAgent1, wantAgent2).then((data) => { @@ -827,11 +840,12 @@ let wantAgentInfo = { WantAgent.getWantAgent(wantAgentInfo).then((data) => { console.info('==========================>getWantAgentCallback=======================>'); wantAgent = data; + if (data) { + WantAgent.getOperationType(wantAgent, (OperationType) => { + console.log('----------- getOperationType ----------, OperationType: ' + OperationType); + }) + } }); - -WantAgent.getOperationType(wantAgent, (OperationType) => { - console.log('----------- getOperationType ----------, OperationType: ' + OperationType); -}) ``` ## WantAgent.getOperationType9+ @@ -901,7 +915,6 @@ WantAgent.getWantAgent(wantAgentInfo).then((data) => { }); ``` - ## WantAgentFlags **系统能力**:以下各项对应的系统能力均为SystemCapability.Ability.AbilityRuntime.Core @@ -940,5 +953,5 @@ WantAgent.getWantAgent(wantAgentInfo).then((data) => { | info | WantAgent | 是 | 触发的wantAgent。 | | want | Want | 是 | 存在的被触发的want。 | | finalCode | number | 是 | 触发wantAgent的请求代码。| -| finalData | string | 否 | 公共事件收集的最终数据。 | +| finalData | string | 是 | 公共事件收集的最终数据。 | | extraInfo | {[key: string]: any} | 否 | 额外数据。 | diff --git a/zh-cn/application-dev/reference/apis/js-apis-webSocket.md b/zh-cn/application-dev/reference/apis/js-apis-webSocket.md index 5eb5d8ab5f6f3d8c65e074f2be1a519492a5a249..1c1bc09e3075ac28d21de64433dca8c4abbc0384 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-webSocket.md +++ b/zh-cn/application-dev/reference/apis/js-apis-webSocket.md @@ -104,6 +104,11 @@ connect\(url: string, callback: AsyncCallback\): void | url | string | 是 | 建立WebSocket连接的URL地址。 | | callback | AsyncCallback\ | 是 | 回调函数。 | +**错误码:** + +| 错误码ID | 错误信息 | +|-------|---------------------------| +| 401 | Parameter error. | **示例:** @@ -138,6 +143,11 @@ connect\(url: string, options: WebSocketRequestOptions, callback: AsyncCallback< | options | WebSocketRequestOptions | 是 | 参考[WebSocketRequestOptions](#websocketrequestoptions)。 | | callback | AsyncCallback\ | 是 | 回调函数。 | +**错误码:** + +| 错误码ID | 错误信息 | +|-------|---------------------------| +| 401 | Parameter error. | **示例:** @@ -182,6 +192,12 @@ connect\(url: string, options?: WebSocketRequestOptions\): Promise | :----------------- | :-------------------------------- | | Promise\ | 以Promise形式返回建立连接的结果。 | +**错误码:** + +| 错误码ID | 错误信息 | +|-------|---------------------------| +| 401 | Parameter error. | + **示例:** ```js @@ -213,6 +229,12 @@ send\(data: string | ArrayBuffer, callback: AsyncCallback\): void | data | string \| ArrayBuffer 8+ | 是 | 发送的数据。 | | callback | AsyncCallback\ | 是 | 回调函数。 | +**错误码:** + +| 错误码ID | 错误信息 | +|-------|---------------------------| +| 401 | Parameter error. | + **示例:** ```js @@ -252,6 +274,12 @@ send\(data: string | ArrayBuffer\): Promise | :----------------- | :-------------------------------- | | Promise\ | 以Promise形式返回发送数据的结果。 | +**错误码:** + +| 错误码ID | 错误信息 | +|--------|---------------------------| +| 401 | Parameter error. | + **示例:** ```js @@ -284,6 +312,12 @@ close\(callback: AsyncCallback\): void | -------- | ------------------------ | ---- | ---------- | | callback | AsyncCallback\ | 是 | 回调函数。 | +**错误码:** + +| 错误码ID | 错误信息 | +|-------|---------------------------| +| 401 | Parameter error. | + **示例:** ```js @@ -316,6 +350,12 @@ close\(options: WebSocketCloseOptions, callback: AsyncCallback\): void | options | WebSocketCloseOptions | 是 | 参考[WebSocketCloseOptions](#websocketcloseoptions)。 | | callback | AsyncCallback\ | 是 | 回调函数。 | +**错误码:** + +| 错误码ID | 错误信息 | +|--------|---------------------------| +| 401 | Parameter error. | + **示例:** ```js @@ -356,6 +396,12 @@ close\(options?: WebSocketCloseOptions\): Promise | :----------------- | :-------------------------------- | | Promise\ | 以Promise形式返回关闭连接的结果。 | +**错误码:** + +| 错误码ID | 错误信息 | +|--------|---------------------------| +| 401 | Parameter error. | + **示例:** ```js @@ -388,6 +434,11 @@ on\(type: 'open', callback: AsyncCallback\): void | type | string | 是 | 'open':WebSocket的打开事件。 | | callback | AsyncCallback\ | 是 | 回调函数。 | +**错误码:** + +| 错误码ID | 错误信息 | +|-------|---------------------------| +| 401 | Parameter error. | **示例:** @@ -417,6 +468,12 @@ off\(type: 'open', callback?: AsyncCallback\): void | type | string | 是 | 'open':WebSocket的打开事件。 | | callback | AsyncCallback\ | 否 | 回调函数。 | +**错误码:** + +| 错误码ID | 错误信息 | +|-------|---------------------------| +| 401 | Parameter error. | + **示例:** ```js @@ -448,6 +505,11 @@ on\(type: 'message', callback: AsyncCallback\): void | type | string | 是 | 'message':WebSocket的接收到服务器消息事件。 | | callback | AsyncCallback\8+\> | 是 | 回调函数。 | +**错误码:** + +| 错误码ID | 错误信息 | +|--------|---------------------------| +| 401 | Parameter error. | **示例:** @@ -478,6 +540,12 @@ off\(type: 'message', callback?: AsyncCallback\): void | type | string | 是 | 'message':WebSocket的接收到服务器消息事件。 | | callback | AsyncCallback\8+\> | 否 | 回调函数。 | +**错误码:** + +| 错误码ID | 错误信息 | +|-------|---------------------------| +| 401 | Parameter error. | + **示例:** ```js @@ -529,6 +597,11 @@ off\(type: 'close', callback?: AsyncCallback<\{ code: number, reason: string \}\ | type | string | 是 | 'close':WebSocket的关闭事件。 | | callback | AsyncCallback<{ code: number, reason: string }> | 否 | 回调函数。 | +**错误码:** + +| 错误码ID | 错误信息 | +|-------|---------------------------| +| 401 | Parameter error. | **示例:** @@ -553,6 +626,11 @@ on\(type: 'error', callback: ErrorCallback\): void | type | string | 是 | 'error':WebSocket的Error事件。 | | callback | ErrorCallback | 是 | 回调函数。 | +**错误码:** + +| 错误码ID | 错误信息 | +|-------|---------------------------| +| 401 | Parameter error. | **示例:** @@ -582,6 +660,12 @@ off\(type: 'error', callback?: ErrorCallback\): void | type | string | 是 | 'error':WebSocket的Error事件。 | | callback | ErrorCallback | 否 | 回调函数。 | +**错误码:** + +| 错误码ID | 错误信息 | +|--------|---------------------------| +| 401 | Parameter error. | + **示例:** ```js diff --git a/zh-cn/application-dev/reference/apis/js-apis-webgl.md b/zh-cn/application-dev/reference/apis/js-apis-webgl.md index 79e437f53cc4dc3b21ca70dd232eef7cf0e4d662..95a00191c78e971c6b2b49dd116096e9145ad5f7 100755 --- a/zh-cn/application-dev/reference/apis/js-apis-webgl.md +++ b/zh-cn/application-dev/reference/apis/js-apis-webgl.md @@ -9,6 +9,8 @@ WebGL标准图形API,对应OpenGL ES 2.0特性集。更多信息请参考[WebG > 本模块首批接口从API version 7开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 > > WebGL遵循OpenGL协议,不支持多线程调用。 +> +> 目前该功能仅支持使用兼容JS的类Web开发范式开发。 ## 调用方式 diff --git a/zh-cn/application-dev/reference/apis/js-apis-webgl2.md b/zh-cn/application-dev/reference/apis/js-apis-webgl2.md index ab16b8697067334c78e85057dfe185f02ecd33dd..c3e4cf4e3828b119796c9513e46246ce887c7592 100755 --- a/zh-cn/application-dev/reference/apis/js-apis-webgl2.md +++ b/zh-cn/application-dev/reference/apis/js-apis-webgl2.md @@ -9,6 +9,8 @@ WebGL标准图形API,对应OpenGL ES 3.0特性集。更多信息请参考[WebG > 本模块首批接口从API version 7开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 > > WebGL2遵循OpenGL协议,不支持多线程调用。 +> +> 目前该功能仅支持使用兼容JS的类Web开发范式开发。 ## 调用方式 diff --git a/zh-cn/application-dev/reference/apis/js-apis-webview.md b/zh-cn/application-dev/reference/apis/js-apis-webview.md index 05303a410338aea0380961f8cd20d45435aa59e7..780887ebfd6aca0d4b003d97161855321cfaadea 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-webview.md +++ b/zh-cn/application-dev/reference/apis/js-apis-webview.md @@ -115,7 +115,7 @@ postMessageEvent(message: WebMessage): void **错误码:** -以下错误码的详细介绍请参见 [webview错误码](../errorcodes/errorcode-webview.md) +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 | 错误码ID | 错误信息 | | -------- | ------------------------------------- | @@ -167,7 +167,7 @@ onMessageEvent(callback: (result: WebMessage) => void): void **错误码:** -以下错误码的详细介绍请参见 [webview错误码](../errorcodes/errorcode-webview.md) +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 | 错误码ID | 错误信息 | | -------- | ----------------------------------------------- | @@ -278,6 +278,8 @@ static setWebDebuggingAccess(webDebuggingAccess: boolean): void | ------------------ | ------- | ---- | ------------- | | webDebuggingAccess | boolean | 是 | 设置是否启用网页调试功能。| +**示例:** + ```ts // xxx.ets import web_webview from '@ohos.web.webview'; @@ -305,7 +307,7 @@ struct WebComponent { ### loadUrl -loadUrl(url: string | Resource, headers?: Array\): void +loadUrl(url: string | Resource, headers?: Array\): void 加载指定的URL。 @@ -316,11 +318,11 @@ loadUrl(url: string | Resource, headers?: Array\): void | 参数名 | 类型 | 必填 | 说明 | | ------- | ---------------- | ---- | :-------------------- | | url | string \| Resource | 是 | 需要加载的 URL。 | -| headers | Array\<[HeaderV9](#headerv9)> | 否 | URL的附加HTTP请求头。 | +| headers | Array\<[WebHeader](#webheader)> | 否 | URL的附加HTTP请求头。 | **错误码:** -以下错误码的详细介绍请参见 [webview错误码](../errorcodes/errorcode-webview.md) +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 | 错误码ID | 错误信息 | | -------- | ------------------------------------------------------------ | @@ -344,6 +346,7 @@ struct WebComponent { Button('loadUrl') .onClick(() => { try { + //需要加载的URL是string类型 this.controller.loadUrl('www.example.com'); } catch (error) { console.error(`ErrorCode: ${error.code}, Message: ${error.message}`); @@ -355,6 +358,69 @@ struct WebComponent { } ``` +```ts +// xxx.ets +import web_webview from '@ohos.web.webview' + +@Entry +@Component +struct WebComponent { + controller: web_webview.WebviewController = new web_webview.WebviewController(); + + build() { + Column() { + Button('loadUrl') + .onClick(() => { + try { + //带参数headers + this.controller.loadUrl('www.example.com', [{headerKey: "headerKey", headerValue: "headerValue"}]); + } catch (error) { + console.error(`ErrorCode: ${error.code}, Message: ${error.message}`); + } + }) + Web({ src: 'www.example.com', controller: this.controller }) + .webDebuggingAccess(true) + } + } +} +``` + +```ts +// xxx.ets +import web_webview from '@ohos.web.webview' + +@Entry +@Component +struct WebComponent { + controller: web_webview.WebviewController = new web_webview.WebviewController(); + + build() { + Column() { + Button('loadUrl') + .onClick(() => { + try { + //需要加载的URL是Resource类型 + this.controller.loadUrl($rawfile('xxx.html')); + } catch (error) { + console.error(`ErrorCode: ${error.code}, Message: ${error.message}`); + } + }) + Web({ src: 'www.example.com', controller: this.controller }) + } + } +} +``` + +```html + + + + +

Hello World

+ + +``` + ### loadData loadData(data: string, mimeType: string, encoding: string, baseUrl?: string, historyUrl?: string): void @@ -375,7 +441,7 @@ loadData(data: string, mimeType: string, encoding: string, baseUrl?: string, his **错误码:** -以下错误码的详细介绍请参见 [webview错误码](../errorcodes/errorcode-webview.md) +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 | 错误码ID | 错误信息 | | -------- | ------------------------------------------------------------ | @@ -429,7 +495,7 @@ accessForward(): boolean **错误码:** -以下错误码的详细介绍请参见 [webview错误码](../errorcodes/errorcode-webview.md) +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 | 错误码ID | 错误信息 | | -------- | ------------------------------------------------------------ | @@ -473,7 +539,7 @@ forward(): void **错误码:** -以下错误码的详细介绍请参见 [webview错误码](../errorcodes/errorcode-webview.md) +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 | 错误码ID | 错误信息 | | -------- | ------------------------------------------------------------ | @@ -522,7 +588,7 @@ accessBackward(): boolean **错误码:** -以下错误码的详细介绍请参见 [webview错误码](../errorcodes/errorcode-webview.md) +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 | 错误码ID | 错误信息 | | -------- | ------------------------------------------------------------ | @@ -566,7 +632,7 @@ backward(): void **错误码:** -以下错误码的详细介绍请参见 [webview错误码](../errorcodes/errorcode-webview.md) +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 | 错误码ID | 错误信息 | | -------- | ------------------------------------------------------------ | @@ -609,7 +675,7 @@ onActive(): void **错误码:** -以下错误码的详细介绍请参见 [webview错误码](../errorcodes/errorcode-webview.md) +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 | 错误码ID | 错误信息 | | -------- | ------------------------------------------------------------ | @@ -652,7 +718,7 @@ onInactive(): void **错误码:** -以下错误码的详细介绍请参见 [webview错误码](../errorcodes/errorcode-webview.md) +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 | 错误码ID | 错误信息 | | -------- | ------------------------------------------------------------ | @@ -694,7 +760,7 @@ refresh(): void **错误码:** -以下错误码的详细介绍请参见 [webview错误码](../errorcodes/errorcode-webview.md) +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 | 错误码ID | 错误信息 | | -------- | ------------------------------------------------------------ | @@ -749,7 +815,7 @@ accessStep(step: number): boolean **错误码:** -以下错误码的详细介绍请参见 [webview错误码](../errorcodes/errorcode-webview.md) +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 | 错误码ID | 错误信息 | | -------- | ------------------------------------------------------------ | @@ -794,7 +860,7 @@ clearHistory(): void **错误码:** -以下错误码的详细介绍请参见 [webview错误码](../errorcodes/errorcode-webview.md) +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 | 错误码ID | 错误信息 | | -------- | ------------------------------------------------------------ | @@ -829,7 +895,7 @@ struct WebComponent { ### getHitTest -getHitTest(): HitTestTypeV9 +getHitTest(): WebHitTestType 获取当前被点击区域的元素类型。 @@ -839,11 +905,11 @@ getHitTest(): HitTestTypeV9 | 类型 | 说明 | | ------------------------------------------------------------ | ---------------------- | -| [HitTestTypeV9](#hittesttypev9)| 被点击区域的元素类型。 | +| [WebHitTestType](#webhittesttype)| 被点击区域的元素类型。 | **错误码:** -以下错误码的详细介绍请参见 [webview错误码](../errorcodes/errorcode-webview.md) +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 | 错误码ID | 错误信息 | | -------- | ------------------------------------------------------------ | @@ -895,7 +961,7 @@ registerJavaScriptProxy(object: object, name: string, methodList: Array\ **错误码:** -以下错误码的详细介绍请参见 [webview错误码](../errorcodes/errorcode-webview.md) +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 | 错误码ID | 错误信息 | | -------- | ------------------------------------------------------------ | @@ -962,7 +1028,7 @@ runJavaScript(script: string, callback : AsyncCallback\): void **错误码:** -以下错误码的详细介绍请参见 [webview错误码](../errorcodes/errorcode-webview.md) +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 | 错误码ID | 错误信息 | | -------- | ------------------------------------------------------------ | @@ -1030,7 +1096,7 @@ runJavaScript(script: string): Promise\ **错误码:** -以下错误码的详细介绍请参见 [webview错误码](../errorcodes/errorcode-webview.md) +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 | 错误码ID | 错误信息 | | -------- | ------------------------------------------------------------ | @@ -1088,7 +1154,7 @@ deleteJavaScriptRegister(name: string): void **错误码:** -以下错误码的详细介绍请参见 [webview错误码](../errorcodes/errorcode-webview.md) +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 | 错误码ID | 错误信息 | | -------- | ------------------------------------------------------------ | @@ -1139,7 +1205,7 @@ zoom(factor: number): void **错误码:** -以下错误码的详细介绍请参见 [webview错误码](../errorcodes/errorcode-webview.md) +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 | 错误码ID | 错误信息 | | -------- | ------------------------------------------------------------ | @@ -1190,7 +1256,7 @@ searchAllAsync(searchString: string): void **错误码:** -以下错误码的详细介绍请参见 [webview错误码](../errorcodes/errorcode-webview.md) +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 | 错误码ID | 错误信息 | | -------- | ------------------------------------------------------------ | @@ -1238,7 +1304,7 @@ clearMatches(): void **错误码:** -以下错误码的详细介绍请参见 [webview错误码](../errorcodes/errorcode-webview.md) +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 | 错误码ID | 错误信息 | | -------- | ------------------------------------------------------------ | @@ -1287,7 +1353,7 @@ searchNext(forward: boolean): void **错误码:** -以下错误码的详细介绍请参见 [webview错误码](../errorcodes/errorcode-webview.md) +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 | 错误码ID | 错误信息 | | -------- | ------------------------------------------------------------ | @@ -1330,7 +1396,7 @@ clearSslCache(): void **错误码:** -以下错误码的详细介绍请参见 [webview错误码](../errorcodes/errorcode-webview.md) +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 | 错误码ID | 错误信息 | | -------- | ------------------------------------------------------------ | @@ -1373,7 +1439,7 @@ clearClientAuthenticationCache(): void **错误码:** -以下错误码的详细介绍请参见 [webview错误码](../errorcodes/errorcode-webview.md) +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 | 错误码ID | 错误信息 | | -------- | ------------------------------------------------------------ | @@ -1422,7 +1488,7 @@ struct WebComponent { **错误码:** -以下错误码的详细介绍请参见 [webview错误码](../errorcodes/errorcode-webview.md) +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 | 错误码ID | 错误信息 | | -------- | ------------------------------------------------------------ | @@ -1475,7 +1541,7 @@ postMessage(name: string, ports: Array\, uri: string): void **错误码:** -以下错误码的详细介绍请参见 [webview错误码](../errorcodes/errorcode-webview.md) +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 | 错误码ID | 错误信息 | | -------- | ------------------------------------------------------------ | @@ -1540,7 +1606,7 @@ struct WebComponent { .onClick(() => { try { if (this.ports && this.ports[1]) { - this.ports[1].postMessageEvent("post message from ets to HTML"); + this.ports[1].postMessageEvent("this.sendFromEts"); } else { console.error(`ports is null, Please initialize first`); } @@ -1626,7 +1692,7 @@ requestFocus(): void **错误码:** -以下错误码的详细介绍请参见 [webview错误码](../errorcodes/errorcode-webview.md) +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 | 错误码ID | 错误信息 | | -------- | ------------------------------------------------------------ | @@ -1669,7 +1735,7 @@ zoomIn(): void **错误码:** -以下错误码的详细介绍请参见 [webview错误码](../errorcodes/errorcode-webview.md) +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 | 错误码ID | 错误信息 | | -------- | ------------------------------------------------------------ | @@ -1713,7 +1779,7 @@ zoomOut(): void **错误码:** -以下错误码的详细介绍请参见 [webview错误码](../errorcodes/errorcode-webview.md) +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 | 错误码ID | 错误信息 | | -------- | ------------------------------------------------------------ | @@ -1763,7 +1829,7 @@ getHitTestValue(): HitTestValue **错误码:** -以下错误码的详细介绍请参见 [webview错误码](../errorcodes/errorcode-webview.md) +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 | 错误码ID | 错误信息 | | -------- | ------------------------------------------------------------ | @@ -1814,7 +1880,7 @@ getWebId(): number **错误码:** -以下错误码的详细介绍请参见 [webview错误码](../errorcodes/errorcode-webview.md) +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 | 错误码ID | 错误信息 | | -------- | ------------------------------------------------------------ | @@ -1864,7 +1930,7 @@ getUserAgent(): string **错误码:** -以下错误码的详细介绍请参见 [webview错误码](../errorcodes/errorcode-webview.md) +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 | 错误码ID | 错误信息 | | -------- | ------------------------------------------------------------ | @@ -1914,7 +1980,7 @@ getTitle(): string **错误码:** -以下错误码的详细介绍请参见 [webview错误码](../errorcodes/errorcode-webview.md) +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 | 错误码ID | 错误信息 | | -------- | ------------------------------------------------------------ | @@ -1964,7 +2030,7 @@ getPageHeight(): number **错误码:** -以下错误码的详细介绍请参见 [webview错误码](../errorcodes/errorcode-webview.md) +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 | 错误码ID | 错误信息 | | -------- | ------------------------------------------------------------ | @@ -2016,7 +2082,7 @@ storeWebArchive(baseName: string, autoName: boolean, callback: AsyncCallback\ **错误码:** -以下错误码的详细介绍请参见 [webview错误码](../errorcodes/errorcode-webview.md) +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 | 错误码ID | 错误信息 | | -------- | ------------------------------------------------------------ | @@ -2139,7 +2205,7 @@ getUrl(): string **错误码:** -以下错误码的详细介绍请参见 [webview错误码](../errorcodes/errorcode-webview.md) +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 | 错误码ID | 错误信息 | | -------- | ------------------------------------------------------------ | @@ -2183,7 +2249,7 @@ stop(): void **错误码:** -以下错误码的详细介绍请参见 [webview错误码](../errorcodes/errorcode-webview.md) +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 | 错误码ID | 错误信息 | | -------- | ------------------------------------------------------------ | @@ -2232,7 +2298,7 @@ backOrForward(step: number): void **错误码:** -以下错误码的详细介绍请参见 [webview错误码](../errorcodes/errorcode-webview.md) +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 | 错误码ID | 错误信息 | | -------- | ------------------------------------------------------------ | @@ -2283,7 +2349,7 @@ scrollTo(x:number, y:number): void **错误码:** -以下错误码的详细介绍请参见 [webview错误码](../errorcodes/errorcode-webview.md) +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 | 错误码ID | 错误信息 | | -------- | ------------------------------------------------------------ | @@ -2355,7 +2421,7 @@ scrollBy(deltaX:number, deltaY:number): void **错误码:** -以下错误码的详细介绍请参见 [webview错误码](../errorcodes/errorcode-webview.md) +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 | 错误码ID | 错误信息 | | -------- | ------------------------------------------------------------ | @@ -2427,7 +2493,7 @@ slideScroll(vx:number, vy:number): void **错误码:** -以下错误码的详细介绍请参见 [webview错误码](../errorcodes/errorcode-webview.md) +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 | 错误码ID | 错误信息 | | -------- | ------------------------------------------------------------ | @@ -2498,7 +2564,7 @@ getOriginalUrl(): string **错误码:** -以下错误码的详细介绍请参见 [webview错误码](../errorcodes/errorcode-webview.md) +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 | 错误码ID | 错误信息 | | -------- | ------------------------------------------------------------ | @@ -2548,7 +2614,7 @@ getFavicon(): image.PixelMap **错误码:** -以下错误码的详细介绍请参见 [webview错误码](../errorcodes/errorcode-webview.md) +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 | 错误码ID | 错误信息 | | -------- | ------------------------------------------------------------ | @@ -2598,7 +2664,7 @@ setNetworkAvailable(enable: boolean): void **错误码:** -以下错误码的详细介绍请参见 [webview错误码](../errorcodes/errorcode-webview.md) +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 | 错误码ID | 错误信息 | | -------- | ------------------------------------------------------------ | @@ -2647,7 +2713,7 @@ hasImage(callback: AsyncCallback\): void **错误码:** -以下错误码的详细介绍请参见 [webview错误码](../errorcodes/errorcode-webview.md) +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 | 错误码ID | 错误信息 | | -------- | ------------------------------------------------------------ | @@ -2702,7 +2768,7 @@ hasImage(): Promise\ **错误码:** -以下错误码的详细介绍请参见 [webview错误码](../errorcodes/errorcode-webview.md) +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 | 错误码ID | 错误信息 | | -------- | ------------------------------------------------------------ | @@ -2756,7 +2822,7 @@ removeCache(clearRom: boolean): void **错误码:** -以下错误码的详细介绍请参见 [webview错误码](../errorcodes/errorcode-webview.md) +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 | 错误码ID | 错误信息 | | -------- | ------------------------------------------------------------ | @@ -2805,7 +2871,7 @@ pageUp(top:boolean): void **错误码:** -以下错误码的详细介绍请参见 [webview错误码](../errorcodes/errorcode-webview.md) +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 | 错误码ID | 错误信息 | | -------- | ------------------------------------------------------------ | @@ -2854,7 +2920,7 @@ pageDown(bottom:boolean): void **错误码:** -以下错误码的详细介绍请参见 [webview错误码](../errorcodes/errorcode-webview.md) +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 | 错误码ID | 错误信息 | | -------- | ------------------------------------------------------------ | @@ -2903,7 +2969,7 @@ getBackForwardEntries(): BackForwardList **错误码:** -以下错误码的详细介绍请参见 [webview错误码](../errorcodes/errorcode-webview.md) +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 | 错误码ID | 错误信息 | | -------- | ------------------------------------------------------------ | @@ -2952,7 +3018,7 @@ serializeWebState(): Uint8Array **错误码:** -以下错误码的详细介绍请参见 [webview错误码](../errorcodes/errorcode-webview.md) +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 | 错误码ID | 错误信息 | | -------- | ------------------------------------------------------------ | @@ -3007,7 +3073,7 @@ restoreWebState(state: Uint8Array): void **错误码:** -以下错误码的详细介绍请参见 [webview错误码](../errorcodes/errorcode-webview.md) +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 | 错误码ID | 错误信息 | | -------- | ------------------------------------------------------------ | @@ -3127,7 +3193,7 @@ static getCookie(url: string): string **错误码:** -以下错误码的详细介绍请参见 [webview错误码](../errorcodes/errorcode-webview.md) +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 | 错误码ID | 错误信息 | | -------- | ------------------------------------------------------ | @@ -3178,7 +3244,7 @@ static setCookie(url: string, value: string): void **错误码:** -以下错误码的详细介绍请参见 [webview错误码](../errorcodes/errorcode-webview.md) +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 | 错误码ID | 错误信息 | | -------- | ------------------------------------------------------ | @@ -3579,11 +3645,11 @@ static deleteOrigin(origin : string): void | 参数名 | 类型 | 必填 | 说明 | | ------ | ------ | ---- | ------------------------ | -| origin | string | 是 | 指定源的字符串索引. | +| origin | string | 是 | 指定源的字符串索引,来自于[getOrigins](#getorigins)。 | **错误码:** -以下错误码的详细介绍请参见 [webview错误码](../errorcodes/errorcode-webview.md) +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 | 错误码ID | 错误信息 | | -------- | ------------------------------------------------------ | @@ -3635,7 +3701,7 @@ static getOrigins(callback: AsyncCallback\>) : void **错误码:** -以下错误码的详细介绍请参见 [webview错误码](../errorcodes/errorcode-webview.md) +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 | 错误码ID | 错误信息 | | -------- | ------------------------------------------------------ | @@ -3696,7 +3762,7 @@ static getOrigins() : Promise\> **错误码:** -以下错误码的详细介绍请参见 [webview错误码](../errorcodes/errorcode-webview.md) +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 | 错误码ID | 错误信息 | | -------- | ------------------------------------------------------ | @@ -3758,7 +3824,7 @@ static getOriginQuota(origin : string, callback : AsyncCallback\) : void **错误码:** -以下错误码的详细介绍请参见 [webview错误码](../errorcodes/errorcode-webview.md) +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 | 错误码ID | 错误信息 | | -------- | ------------------------------------------------------ | @@ -3822,7 +3888,7 @@ static getOriginQuota(origin : string) : Promise\ **错误码:** -以下错误码的详细介绍请参见 [webview错误码](../errorcodes/errorcode-webview.md) +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 | 错误码ID | 错误信息 | | -------- | ------------------------------------------------------ | @@ -3881,7 +3947,7 @@ static getOriginUsage(origin : string, callback : AsyncCallback\) : void **错误码:** -以下错误码的详细介绍请参见 [webview错误码](../errorcodes/errorcode-webview.md) +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 | 错误码ID | 错误信息 | | -------- | ------------------------------------------------------ | @@ -3945,7 +4011,7 @@ static getOriginUsage(origin : string) : Promise\ **错误码:** -以下错误码的详细介绍请参见 [webview错误码](../errorcodes/errorcode-webview.md) +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 | 错误码ID | 错误信息 | | -------- | ----------------------------------------------------- | @@ -4355,7 +4421,7 @@ static allowGeolocation(origin: string): void **错误码:** -以下错误码的详细介绍请参见 [webview错误码](../errorcodes/errorcode-webview.md) +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 | 错误码ID | 错误信息 | | -------- | ------------------------------------------------------ | @@ -4405,7 +4471,7 @@ static deleteGeolocation(origin: string): void **错误码:** -以下错误码的详细介绍请参见 [webview错误码](../errorcodes/errorcode-webview.md) +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 | 错误码ID | 错误信息 | | -------- | ------------------------------------------------------ | @@ -4456,7 +4522,7 @@ static getAccessibleGeolocation(origin: string, callback: AsyncCallback\ **错误码:** -以下错误码的详细介绍请参见 [webview错误码](../errorcodes/errorcode-webview.md) +以下错误码的详细介绍请参见[webview错误码](../errorcodes/errorcode-webview.md)。 | 错误码ID | 错误信息 | | -------- | ------------------------------------------------------ | @@ -4686,7 +4752,7 @@ struct WebComponent { } } ``` -## HeaderV9 +## WebHeader Web组件返回的请求/响应头对象。 **系统能力:** SystemCapability.Web.Webview.Core @@ -4696,7 +4762,7 @@ Web组件返回的请求/响应头对象。 | headerKey | string | 是 | 是 | 请求/响应头的key。 | | headerValue | string | 是 | 是 | 请求/响应头的value。 | -## HitTestTypeV9 +## WebHitTestType **系统能力:** SystemCapability.Web.Webview.Core @@ -4719,7 +4785,7 @@ Web组件返回的请求/响应头对象。 | 名称 | 类型 | 可读 | 可写 | 说明| | ---- | ---- | ---- | ---- |---- | -| type | [HitTestTypeV9](#hittesttypev9) | 是 | 否 | 当前被点击区域的元素类型。| +| type | [WebHitTestType](#webhittesttype) | 是 | 否 | 当前被点击区域的元素类型。| | extra | string | 是 | 否 |点击区域的附加参数信息。若被点击区域为图片或链接,则附加参数信息为其url地址。 | ## WebMessage diff --git a/zh-cn/application-dev/reference/apis/js-apis-wifiManager.md b/zh-cn/application-dev/reference/apis/js-apis-wifiManager.md index 4d45951c2c928a087981d6b34e096f8289356d41..31c3a192e7d0bc5449d9b4984546987f75b60a5e 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-wifiManager.md +++ b/zh-cn/application-dev/reference/apis/js-apis-wifiManager.md @@ -29,6 +29,14 @@ enableWifi(): void | -------- | -------- | | boolean | true:操作成功, false:操作失败。| +**错误码:** + +以下错误码的详细介绍请参见[WIFI错误码](../errorcodes/errorcode-wifi.md)。 + +| **类型** | **说明** | + | -------- | -------- | +| 2501000 | Operation failed.| + ## wifi.disableWifi9+ @@ -48,6 +56,13 @@ disableWifi(): void | -------- | -------- | | boolean | true:操作成功, false:操作失败。| +**错误码:** + +以下错误码的详细介绍请参见[WIFI错误码](../errorcodes/errorcode-wifi.md)。 + +| **类型** | **说明** | + | -------- | -------- | +| 2501000 | Operation failed.| ## wifi.isWifiActive9+ @@ -65,6 +80,13 @@ isWifiActive(): boolean | -------- | -------- | | boolean | true:已使能, false:未使能。 | +**错误码:** + +以下错误码的详细介绍请参见[WIFI错误码](../errorcodes/errorcode-wifi.md)。 + +| **类型** | **说明** | + | -------- | -------- | +| 2501000 | Operation failed.| ## wifi.scan9+ @@ -82,6 +104,13 @@ scan(): void | -------- | -------- | | boolean | true:扫描操作执行成功, false:扫描操作执行失败。 | +**错误码:** + +以下错误码的详细介绍请参见[WIFI错误码](../errorcodes/errorcode-wifi.md)。 + +| **类型** | **说明** | + | -------- | -------- | +| 2501000 | Operation failed.| ## wifi.getScanResults9+ @@ -99,6 +128,13 @@ getScanResults(): Promise<Array<WifiScanInfo>> | -------- | -------- | | Promise< Array<[WifiScanInfo](#wifiscaninfo)> > | Promise对象。返回扫描到的热点列表。 | +**错误码:** + +以下错误码的详细介绍请参见[WIFI错误码](../errorcodes/errorcode-wifi.md)。 + +| **类型** | **说明** | + | -------- | -------- | +| 2501000 | Operation failed.| ## wifi.getScanResults9+ @@ -116,6 +152,14 @@ getScanResults(callback: AsyncCallback<Array<WifiScanInfo>>): void | -------- | -------- | -------- | -------- | | callback | AsyncCallback< Array<[WifiScanInfo](#wifiscaninfo)>> | 是 | 回调函数。当成功时,err为0,data为扫描到的热点;否则err为非0值,data为空。 | +**错误码:** + +以下错误码的详细介绍请参见[WIFI错误码](../errorcodes/errorcode-wifi.md)。 + +| **类型** | **说明** | + | -------- | -------- | +| 2501000 | Operation failed.| + **示例:** ```js import wifi from '@ohos.wifi'; @@ -249,6 +293,13 @@ getScanResultsSync():  Array<[WifiScanInfo](#wifiscaninfo)> | -------- | -------- | |  Array<[WifiScanInfo](#wifiscaninfo)> | 扫描结果数组。 | +**错误码:** + +以下错误码的详细介绍请参见[WIFI错误码](../errorcodes/errorcode-wifi.md)。 + +| **类型** | **说明** | + | -------- | -------- | +| 2501000 | Operation failed.| ## wifi.addDeviceConfig9+ @@ -274,6 +325,14 @@ addDeviceConfig(config: WifiDeviceConfig): Promise<number> | -------- | -------- | | Promise<number> | Promise对象。返回添加的网络配置ID,如果值为-1表示添加失败。 | +**错误码:** + +以下错误码的详细介绍请参见[WIFI错误码](../errorcodes/errorcode-wifi.md)。 + +| **类型** | **说明** | + | -------- | -------- | +| 2501000 | Operation failed.| + ## WifiDeviceConfig9+ WLAN配置信息。 @@ -416,6 +475,13 @@ addDeviceConfig(config: WifiDeviceConfig, callback: AsyncCallback<number>) | config | [WifiDeviceConfig](#wifideviceconfig) | 是 | WLAN配置信息。 | | callback | AsyncCallback<number> | 是 | 回调函数。当操作成功时,err为0,data为添加的网络配置ID,如果data值为-1,表示添加失败。当error为非0,表示处理出现错误。 | +**错误码:** + +以下错误码的详细介绍请参见[WIFI错误码](../errorcodes/errorcode-wifi.md)。 + +| **类型** | **说明** | + | -------- | -------- | +| 2501000 | Operation failed.| ## wifi.addCandidateConfig9+ @@ -439,6 +505,13 @@ addCandidateConfig(config: WifiDeviceConfig): Promise<number> | -------- | -------- | | Promise<number> | Promise对象。表示网络配置ID。 | +**错误码:** + +以下错误码的详细介绍请参见[WIFI错误码](../errorcodes/errorcode-wifi.md)。 + +| **类型** | **说明** | + | -------- | -------- | +| 2501000 | Operation failed.| ## wifi.addCandidateConfig9+ @@ -457,6 +530,13 @@ addCandidateConfig(config: WifiDeviceConfig, callback: AsyncCallback<number&g | config | [WifiDeviceConfig](#wifideviceconfig) | 是 | WLAN配置信息。 | | callback | AsyncCallback<number> | 是 | 回调函数。当操作成功时,err为0,data为添加的网络配置ID,如果data值为-1,表示添加失败。如果操作出现错误,err为非0值。 | +**错误码:** + +以下错误码的详细介绍请参见[WIFI错误码](../errorcodes/errorcode-wifi.md)。 + +| **类型** | **说明** | + | -------- | -------- | +| 2501000 | Operation failed.| ## wifi.removeCandidateConfig9+ @@ -480,6 +560,13 @@ removeCandidateConfig(networkId: number): Promise<void> | -------- | -------- | | Promise<void> | Promise对象。 | +**错误码:** + +以下错误码的详细介绍请参见[WIFI错误码](../errorcodes/errorcode-wifi.md)。 + +| **类型** | **说明** | + | -------- | -------- | +| 2501000 | Operation failed.| ## wifi.removeCandidateConfig9+ @@ -498,6 +585,13 @@ removeCandidateConfig(networkId: number, callback: AsyncCallback<void>): v | networkId | number | 是 | 网络配置ID。 | | callback | AsyncCallback<void> | 是 | 回调函数。当操作成功时,err为0。如果error为非0,表示处理出现错误。 | +**错误码:** + +以下错误码的详细介绍请参见[WIFI错误码](../errorcodes/errorcode-wifi.md)。 + +| **类型** | **说明** | + | -------- | -------- | +| 2501000 | Operation failed.| ## wifi.getCandidateConfigs9+ @@ -515,6 +609,13 @@ getCandidateConfigs():  Array<[WifiDeviceConfig](#wifideviceconfig)> | -------- | -------- | |  Array<[WifiDeviceConfig](#wifideviceconfig)> | 候选网络配置数组。 | +**错误码:** + +以下错误码的详细介绍请参见[WIFI错误码](../errorcodes/errorcode-wifi.md)。 + +| **类型** | **说明** | + | -------- | -------- | +| 2501000 | Operation failed.| ## wifi.connectToCandidateConfig9+ @@ -532,6 +633,14 @@ connectToCandidateConfig(networkId: number): void | -------- | -------- | -------- | -------- | | networkId | number | 是 | 候选网络配置的ID。 | +**错误码:** + +以下错误码的详细介绍请参见[WIFI错误码](../errorcodes/errorcode-wifi.md)。 + +| **类型** | **说明** | + | -------- | -------- | +| 2501000 | Operation failed.| +| 2501001 | Wifi is closed.| ## wifi.connectToNetwork9+ @@ -551,12 +660,14 @@ connectToNetwork(networkId: number): void | -------- | -------- | -------- | -------- | | networkId | number | 是 | 待连接的网络配置ID。 | -**返回值:** +**错误码:** - | **类型** | **说明** | - | -------- | -------- | - | boolean | true:操作成功, false:操作失败。 | +以下错误码的详细介绍请参见[WIFI错误码](../errorcodes/errorcode-wifi.md)。 +| **类型** | **说明** | + | -------- | -------- | +| 2501000 | Operation failed.| +| 2501001 | Wifi is closed.| ## wifi.connectToDevice9+ @@ -577,12 +688,14 @@ connectToDevice(config: WifiDeviceConfig): void | -------- | -------- | -------- | -------- | | config | [WifiDeviceConfig](#wifideviceconfig) | 是 | WLAN配置信息。 | -**返回值:** +**错误码:** - | **类型** | **说明** | - | -------- | -------- | - | boolean | true:操作成功, false:操作失败。 | +以下错误码的详细介绍请参见[WIFI错误码](../errorcodes/errorcode-wifi.md)。 +| **类型** | **说明** | + | -------- | -------- | +| 2501000 | Operation failed.| +| 2501001 | Wifi is closed.| ## wifi.disconnect9+ @@ -597,12 +710,13 @@ disconnect(): void **系统能力:** SystemCapability.Communication.WiFi.STA -**返回值:** +**错误码:** - | **类型** | **说明** | - | -------- | -------- | - | boolean | true:操作成功, false:操作失败。 | +以下错误码的详细介绍请参见[WIFI错误码](../errorcodes/errorcode-wifi.md)。 +| **类型** | **说明** | + | -------- | -------- | +| 2501000 | Operation failed.| ## wifi.getSignalLevel9+ @@ -627,6 +741,13 @@ getSignalLevel(rssi: number, band: number): number | -------- | -------- | | number | 信号强度,取值范围为[0, 4]。 | +**错误码:** + +以下错误码的详细介绍请参见[WIFI错误码](../errorcodes/errorcode-wifi.md)。 + +| **类型** | **说明** | + | -------- | -------- | +| 2501000 | Operation failed.| ## wifi.getLinkedInfo9+ @@ -644,6 +765,14 @@ getLinkedInfo(): Promise<WifiLinkedInfo> | -------- | -------- | | Promise<[WifiLinkedInfo](#wifilinkedinfo)> | Promise对象。表示WLAN连接信息。 | +**错误码:** + +以下错误码的详细介绍请参见[WIFI错误码](../errorcodes/errorcode-wifi.md)。 + +| **类型** | **说明** | + | -------- | -------- | +| 2501000 | Operation failed.| +| 2501001 | Wifi is closed.| ## wifi.getLinkedInfo9+ @@ -661,6 +790,15 @@ getLinkedInfo(callback: AsyncCallback<WifiLinkedInfo>): void | -------- | -------- | -------- | -------- | | callback | AsyncCallback<[WifiLinkedInfo](#wifilinkedinfo)> | 是 | 回调函数。当获取成功时,err为0,data表示WLAN连接信息。如果error为非0,表示处理出现错误。 | +**错误码:** + +以下错误码的详细介绍请参见[WIFI错误码](../errorcodes/errorcode-wifi.md)。 + +| **类型** | **说明** | + | -------- | -------- | +| 2501000 | Operation failed.| +| 2501001 | Wifi is closed.| + **示例:** ```js import wifi from '@ohos.wifi'; @@ -765,6 +903,13 @@ isConnected(): boolean | -------- | -------- | | boolean | true:已连接, false:未连接。 | +**错误码:** + +以下错误码的详细介绍请参见[WIFI错误码](../errorcodes/errorcode-wifi.md)。 + +| **类型** | **说明** | + | -------- | -------- | +| 2501000 | Operation failed.| ## wifi.getSupportedFeatures9+ @@ -799,6 +944,13 @@ getSupportedFeatures(): number | 0x10000000 | WPA3-Enterprise Suite-B | | 0x20000000 | 增强开放特性。 | +**错误码:** + +以下错误码的详细介绍请参见[WIFI错误码](../errorcodes/errorcode-wifi.md)。 + +| **类型** | **说明** | + | -------- | -------- | +| 2401000 | Operation failed.| ## wifi.isFeatureSupported9+ @@ -823,6 +975,13 @@ isFeatureSupported(featureId: number): boolean | -------- | -------- | | boolean | true:支持, false:不支持。 | +**错误码:** + +以下错误码的详细介绍请参见[WIFI错误码](../errorcodes/errorcode-wifi.md)。 + +| **类型** | **说明** | + | -------- | -------- | +| 2401000 | Operation failed.| ## wifi.getDeviceMacAddress9+ @@ -842,6 +1001,13 @@ getDeviceMacAddress(): string[] | -------- | -------- | | string[] | MAC地址。 | +**错误码:** + +以下错误码的详细介绍请参见[WIFI错误码](../errorcodes/errorcode-wifi.md)。 + +| **类型** | **说明** | + | -------- | -------- | +| 2501000 | Operation failed.| ## wifi.getIpInfo9+ @@ -859,6 +1025,13 @@ getIpInfo(): IpInfo | -------- | -------- | | [IpInfo](#ipinfo9) | IP信息。 | +**错误码:** + +以下错误码的详细介绍请参见[WIFI错误码](../errorcodes/errorcode-wifi.md)。 + +| **类型** | **说明** | + | -------- | -------- | +| 2501000 | Operation failed.| ## IpInfo9+ @@ -893,6 +1066,13 @@ getCountryCode(): string | -------- | -------- | | string | 国家码。 | +**错误码:** + +以下错误码的详细介绍请参见[WIFI错误码](../errorcodes/errorcode-wifi.md)。 + +| **类型** | **说明** | + | -------- | -------- | +| 2401000 | Operation failed.| ## wifi.reassociate9+ @@ -906,12 +1086,14 @@ reassociate(): void **系统能力:** SystemCapability.Communication.WiFi.STA -**返回值:** +**错误码:** - | **类型** | **说明** | - | -------- | -------- | - | boolean | true:操作成功, false:操作失败。 | +以下错误码的详细介绍请参见[WIFI错误码](../errorcodes/errorcode-wifi.md)。 +| **类型** | **说明** | + | -------- | -------- | +| 2501000 | Operation failed.| +| 2501001 | Wifi is closed.| ## wifi.reconnect9+ @@ -925,12 +1107,14 @@ reconnect(): void **系统能力:** SystemCapability.Communication.WiFi.STA -**返回值:** +**错误码:** - | **类型** | **说明** | - | -------- | -------- | - | boolean | true:操作成功, false:操作失败。 | +以下错误码的详细介绍请参见[WIFI错误码](../errorcodes/errorcode-wifi.md)。 +| **类型** | **说明** | + | -------- | -------- | +| 2501000 | Operation failed.| +| 2501001 | Wifi is closed.| ## wifi.getDeviceConfigs9+ @@ -950,6 +1134,13 @@ getDeviceConfigs():  Array<[WifiDeviceConfig](#wifideviceconfig)> | -------- | -------- | |  Array<[WifiDeviceConfig](#wifideviceconfig)> | 网络配置信息的数组。 | +**错误码:** + +以下错误码的详细介绍请参见[WIFI错误码](../errorcodes/errorcode-wifi.md)。 + +| **类型** | **说明** | + | -------- | -------- | +| 2501000 | Operation failed.| ## wifi.updateNetwork9+ @@ -975,6 +1166,13 @@ updateNetwork(config: WifiDeviceConfig): number | -------- | -------- | | number | 返回更新的网络配置ID,如果值为-1表示更新失败。 | +**错误码:** + +以下错误码的详细介绍请参见[WIFI错误码](../errorcodes/errorcode-wifi.md)。 + +| **类型** | **说明** | + | -------- | -------- | +| 2501000 | Operation failed.| ## wifi.disableNetwork9+ @@ -994,12 +1192,13 @@ disableNetwork(netId: number): void | -------- | -------- | -------- | -------- | | netId | number | 是 | 网络配置ID。 | -**返回值:** +**错误码:** - | **类型** | **说明** | - | -------- | -------- | - | boolean | true:操作成功, false:操作失败。 | +以下错误码的详细介绍请参见[WIFI错误码](../errorcodes/errorcode-wifi.md)。 +| **类型** | **说明** | + | -------- | -------- | +| 2501000 | Operation failed.| ## wifi.removeAllNetwork9+ @@ -1013,12 +1212,13 @@ removeAllNetwork(): void **系统能力:** SystemCapability.Communication.WiFi.STA -**返回值:** +**错误码:** - | **类型** | **说明** | - | -------- | -------- | - | boolean | true:操作成功, false:操作失败。 | +以下错误码的详细介绍请参见[WIFI错误码](../errorcodes/errorcode-wifi.md)。 +| **类型** | **说明** | + | -------- | -------- | +| 2501000 | Operation failed.| ## wifi.removeDevice9+ @@ -1038,12 +1238,13 @@ removeDevice(id: number): void | -------- | -------- | -------- | -------- | | id | number | 是 | 网络配置ID。 | -**返回值:** +**错误码:** - | **类型** | **说明** | - | -------- | -------- | - | boolean | true:操作成功, false:操作失败。 | +以下错误码的详细介绍请参见[WIFI错误码](../errorcodes/errorcode-wifi.md)。 +| **类型** | **说明** | + | -------- | -------- | +| 2501000 | Operation failed.| ## wifi.enableHotspot9+ @@ -1057,12 +1258,13 @@ enableHotspot(): void **系统能力:** SystemCapability.Communication.WiFi.AP.Core -**返回值:** +**错误码:** - | **类型** | **说明** | - | -------- | -------- | - | boolean | true:操作成功, false:操作失败。| +以下错误码的详细介绍请参见[WIFI错误码](../errorcodes/errorcode-wifi.md)。 +| **类型** | **说明** | + | -------- | -------- | +| 2601000 | Operation failed.| ## wifi.disableHotspot9+ @@ -1076,12 +1278,13 @@ disableHotspot(): void **系统能力:** SystemCapability.Communication.WiFi.AP.Core -**返回值:** +**错误码:** - | **类型** | **说明** | - | -------- | -------- | - | boolean | true:操作成功, false:操作失败。| +以下错误码的详细介绍请参见[WIFI错误码](../errorcodes/errorcode-wifi.md)。 +| **类型** | **说明** | + | -------- | -------- | +| 2601000 | Operation failed.| ## wifi.isHotspotDualBandSupported9+ @@ -1099,8 +1302,15 @@ isHotspotDualBandSupported(): boolean | **类型** | **说明** | | -------- | -------- | - | boolean | true:支持, false:不支持。| + | boolean | true:支持, false:不支持.| +**错误码:** + +以下错误码的详细介绍请参见[WIFI错误码](../errorcodes/errorcode-wifi.md)。 + +| **类型** | **说明** | + | -------- | -------- | +| 2601000 | Operation failed.| ## wifi.isHotspotActive9+ @@ -1118,8 +1328,15 @@ isHotspotActive(): boolean | **类型** | **说明** | | -------- | -------- | - | boolean | true:已使能, false:未使能。| + | boolean | true:已使能, false:未使能.| + +**错误码:** +以下错误码的详细介绍请参见[WIFI错误码](../errorcodes/errorcode-wifi.md)。 + +| **类型** | **说明** | + | -------- | -------- | +| 2601000 | Operation failed.| ## wifi.setHotspotConfig9+ @@ -1139,12 +1356,13 @@ setHotspotConfig(config: HotspotConfig): void | -------- | -------- | -------- | -------- | | config | [HotspotConfig](#hotspotconfig9) | 是 | 热点配置信息。 | -**返回值:** +**错误码:** - | **类型** | **说明** | - | -------- | -------- | - | boolean | true:操作成功, false:操作失败。 | +以下错误码的详细介绍请参见[WIFI错误码](../errorcodes/errorcode-wifi.md)。 +| **类型** | **说明** | + | -------- | -------- | +| 2601000 | Operation failed.| ## HotspotConfig9+ @@ -1181,6 +1399,13 @@ getHotspotConfig(): HotspotConfig | -------- | -------- | | [HotspotConfig](#hotspotconfig9) | 热点的配置信息。 | +**错误码:** + +以下错误码的详细介绍请参见[WIFI错误码](../errorcodes/errorcode-wifi.md)。 + +| **类型** | **说明** | + | -------- | -------- | +| 2601000 | Operation failed.| ## wifi.getStations9+ @@ -1200,6 +1425,13 @@ getStations():  Array<[StationInfo](#stationinfo9)> | -------- | -------- | |  Array<[StationInfo](#stationinfo9)> | 连接的设备数组。 | +**错误码:** + +以下错误码的详细介绍请参见[WIFI错误码](../errorcodes/errorcode-wifi.md)。 + +| **类型** | **说明** | + | -------- | -------- | +| 2601000 | Operation failed.| ## StationInfo9+ @@ -1232,7 +1464,13 @@ getP2pLinkedInfo(): Promise<WifiP2pLinkedInfo> | -------- | -------- | | Promise<[WifiP2pLinkedInfo](#wifip2plinkedinfo9)> | Promise对象。表示P2P连接信息。 | +**错误码:** +以下错误码的详细介绍请参见[WIFI错误码](../errorcodes/errorcode-wifi.md)。 + +| **类型** | **说明** | + | -------- | -------- | +| 2801000 | Operation failed.| ## WifiP2pLinkedInfo9+ @@ -1292,6 +1530,13 @@ getCurrentGroup(): Promise<WifiP2pGroupInfo> | -------- | -------- | | Promise<[WifiP2pGroupInfo](#wifip2pgroupinfo9)> | Promise对象。表示当前组信息。 | +**错误码:** + +以下错误码的详细介绍请参见[WIFI错误码](../errorcodes/errorcode-wifi.md)。 + +| **类型** | **说明** | + | -------- | -------- | +| 2801000 | Operation failed.| ## wifi.getCurrentGroup9+ @@ -1309,6 +1554,13 @@ getCurrentGroup(callback: AsyncCallback<WifiP2pGroupInfo>): void | -------- | -------- | -------- | -------- | | callback | AsyncCallback<[WifiP2pGroupInfo](#wifip2pgroupinfo9)> | 是 | 回调函数。当操作成功时,err为0,data表示当前组信息。如果error为非0,表示处理出现错误。 | +**错误码:** + +以下错误码的详细介绍请参见[WIFI错误码](../errorcodes/errorcode-wifi.md)。 + +| **类型** | **说明** | + | -------- | -------- | +| 2801000 | Operation failed.| ## wifi.getP2pPeerDevices9+ @@ -1326,6 +1578,13 @@ getP2pPeerDevices(): Promise<WifiP2pDevice[]> | -------- | -------- | | Promise<[WifiP2pDevice[]](#wifip2pdevice9)> | Promise对象。表示对端设备列表信息。 | +**错误码:** + +以下错误码的详细介绍请参见[WIFI错误码](../errorcodes/errorcode-wifi.md)。 + +| **类型** | **说明** | + | -------- | -------- | +| 2801000 | Operation failed.| ## wifi.getP2pPeerDevices9+ @@ -1343,6 +1602,13 @@ getP2pPeerDevices(callback: AsyncCallback<WifiP2pDevice[]>): void | -------- | -------- | -------- | -------- | | callback | AsyncCallback<[WifiP2pDevice[]](#wifip2pdevice9)> | 是 | 回调函数。当操作成功时,err为0,data表示对端设备列表信息。如果error为非0,表示处理出现错误。 | +**错误码:** + +以下错误码的详细介绍请参见[WIFI错误码](../errorcodes/errorcode-wifi.md)。 + +| **类型** | **说明** | + | -------- | -------- | +| 2801000 | Operation failed.| ## WifiP2pDevice9+ @@ -1390,6 +1656,13 @@ getP2pLocalDevice(): Promise<WifiP2pDevice> | -------- | -------- | | Promise<[WifiP2pDevice](#wifip2pdevice9)> | Promise对象。表示本端设备信息。 | +**错误码:** + +以下错误码的详细介绍请参见[WIFI错误码](../errorcodes/errorcode-wifi.md)。 + +| **类型** | **说明** | + | -------- | -------- | +| 2801000 | Operation failed.| ## wifi.getP2pLocalDevice9+ @@ -1424,12 +1697,13 @@ createGroup(config: WifiP2PConfig): void | -------- | -------- | -------- | -------- | | config | [WifiP2PConfig](#wifip2pconfig9) | 是 | 群组配置信息。 | -**返回值:** +**错误码:** - | 类型 | 说明 | - | -------- | -------- | - | boolean | true:创建群组操作执行成功, false:创建群组操作执行失败。 | +以下错误码的详细介绍请参见[WIFI错误码](../errorcodes/errorcode-wifi.md)。 +| **类型** | **说明** | + | -------- | -------- | +| 2801000 | Operation failed.| ## WifiP2PConfig9+ @@ -1469,12 +1743,13 @@ removeGroup(): void **系统能力:** SystemCapability.Communication.WiFi.P2P -**返回值:** +**错误码:** - | 类型 | 说明 | - | -------- | -------- | - | boolean | true:操作执行成功, false:操作执行失败。 | +以下错误码的详细介绍请参见[WIFI错误码](../errorcodes/errorcode-wifi.md)。 +| **类型** | **说明** | + | -------- | -------- | +| 2801000 | Operation failed.| ## wifi.p2pConnect9+ @@ -1493,12 +1768,13 @@ p2pConnect(config: WifiP2PConfig): void | -------- | -------- | -------- | -------- | | config | [WifiP2PConfig](#wifip2pconfig9) | 是 | 连接配置信息。 | -**返回值:** +**错误码:** - | 类型 | 说明 | - | -------- | -------- | - | boolean | true:操作执行成功, false:操作执行失败。 | +以下错误码的详细介绍请参见[WIFI错误码](../errorcodes/errorcode-wifi.md)。 +| **类型** | **说明** | + | -------- | -------- | +| 2801000 | Operation failed.| **示例:** ```js @@ -1577,12 +1853,13 @@ p2pCancelConnect(): void **系统能力:** SystemCapability.Communication.WiFi.P2P -**返回值:** +**错误码:** - | 类型 | 说明 | - | -------- | -------- | - | boolean | true:操作执行成功, false:操作执行失败。 | +以下错误码的详细介绍请参见[WIFI错误码](../errorcodes/errorcode-wifi.md)。 +| **类型** | **说明** | + | -------- | -------- | +| 2801000 | Operation failed.| ## wifi.startDiscoverDevices9+ @@ -1594,12 +1871,13 @@ startDiscoverDevices(): void **系统能力:** SystemCapability.Communication.WiFi.P2P -**返回值:** +**错误码:** - | 类型 | 说明 | - | -------- | -------- | - | boolean | true:操作执行成功, false:操作执行失败。 | +以下错误码的详细介绍请参见[WIFI错误码](../errorcodes/errorcode-wifi.md)。 +| **类型** | **说明** | + | -------- | -------- | +| 2801000 | Operation failed.| ## wifi.stopDiscoverDevices9+ @@ -1611,12 +1889,13 @@ stopDiscoverDevices(): void **系统能力:** SystemCapability.Communication.WiFi.P2P -**返回值:** +**错误码:** - | 类型 | 说明 | - | -------- | -------- | - | boolean | true:操作执行成功,操作执行失败。 | +以下错误码的详细介绍请参见[WIFI错误码](../errorcodes/errorcode-wifi.md)。 +| **类型** | **说明** | + | -------- | -------- | +| 2801000 | Operation failed.| ## wifi.deletePersistentGroup9+ @@ -1637,12 +1916,13 @@ deletePersistentGroup(netId: number): void | -------- | -------- | -------- | -------- | | netId | number | 是 | 组的ID。 | -**返回值:** +**错误码:** - | 类型 | 说明 | - | -------- | -------- | - | boolean | true:操作执行成功,操作执行失败。 | +以下错误码的详细介绍请参见[WIFI错误码](../errorcodes/errorcode-wifi.md)。 +| **类型** | **说明** | + | -------- | -------- | +| 2801000 | Operation failed.| ## wifi.getP2pGroups9+ @@ -1662,6 +1942,13 @@ getP2pGroups(): Promise<Array<WifiP2pGroupInfo>> | -------- | -------- | | Promise< Array<[WifiP2pGroupInfo](#wifip2pgroupinfo9)> > | Promise对象。表示所有群组信息。 | +**错误码:** + +以下错误码的详细介绍请参见[WIFI错误码](../errorcodes/errorcode-wifi.md)。 + +| **类型** | **说明** | + | -------- | -------- | +| 2801000 | Operation failed.| ## WifiP2pGroupInfo9+ @@ -1700,6 +1987,13 @@ getP2pGroups(callback: AsyncCallback<Array<WifiP2pGroupInfo>>): void | -------- | -------- | -------- | -------- | | callback | AsyncCallback< Array<[WifiP2pGroupInfo](#wifip2pgroupinfo9)>> | 是 | 回调函数。当操作成功时,err为0,data表示所有群组信息。如果error为非0,表示处理出现错误。 | +**错误码:** + +以下错误码的详细介绍请参见[WIFI错误码](../errorcodes/errorcode-wifi.md)。 + +| **类型** | **说明** | + | -------- | -------- | +| 2801000 | Operation failed.| ## wifi.setDeviceName9+ @@ -1719,12 +2013,13 @@ setDeviceName(devName: string): void | -------- | -------- | -------- | -------- | | devName | string | 是 | 设备名称。 | -**返回值:** +**错误码:** - | **类型** | **说明** | - | -------- | -------- | - | boolean | true:操作成功, false:操作失败。 | +以下错误码的详细介绍请参见[WIFI错误码](../errorcodes/errorcode-wifi.md)。 +| **类型** | **说明** | + | -------- | -------- | +| 2801000 | Operation failed.| ## wifi.on('wifiStateChange')9+ @@ -1743,6 +2038,14 @@ on(type: "wifiStateChange", callback: Callback<number>): void | type | string | 是 | 固定填"wifiStateChange"字符串。 | | callback | Callback<number> | 是 | 状态改变回调函数。 | +**错误码:** + +以下错误码的详细介绍请参见[WIFI错误码](../errorcodes/errorcode-wifi.md)。 + +| **类型** | **说明** | + | -------- | -------- | +| 2501000 | Operation failed.| + **状态改变事件的枚举:** | **枚举值** | **说明** | @@ -1770,6 +2073,14 @@ off(type: "wifiStateChange", callback?: Callback<number>): void | type | string | 是 | 固定填"wifiStateChange"字符串。 | | callback | Callback<number> | 否 | 状态改变回调函数。如果callback不填,将去注册该事件关联的所有回调函数。 | +**错误码:** + +以下错误码的详细介绍请参见[WIFI错误码](../errorcodes/errorcode-wifi.md)。 + +| **类型** | **说明** | + | -------- | -------- | +| 2501000 | Operation failed.| + **示例:** ```js import wifi from '@ohos.wifi'; @@ -1810,6 +2121,13 @@ on(type: "wifiConnectionChange", callback: Callback<number>): void | 0 | 已断开。 | | 1 | 已连接。 | +**错误码:** + +以下错误码的详细介绍请参见[WIFI错误码](../errorcodes/errorcode-wifi.md)。 + +| **类型** | **说明** | + | -------- | -------- | +| 2501000 | Operation failed.| ## wifi.off('wifiConnectionChange')9+ @@ -1828,6 +2146,13 @@ off(type: "wifiConnectionChange", callback?: Callback<number>): void | type | string | 是 | 固定填"wifiConnectionChange"字符串。 | | callback | Callback<number> | 否 | 连接状态改变回调函数。如果callback不填,将去注册该事件关联的所有回调函数。 | +**错误码:** + +以下错误码的详细介绍请参见[WIFI错误码](../errorcodes/errorcode-wifi.md)。 + +| **类型** | **说明** | + | -------- | -------- | +| 2501000 | Operation failed.| ## wifi.on('wifiScanStateChange')9+ @@ -1853,6 +2178,13 @@ on(type: "wifiScanStateChange", callback: Callback<number>): void | 0 | 扫描失败。 | | 1 | 扫描成功。 | +**错误码:** + +以下错误码的详细介绍请参见[WIFI错误码](../errorcodes/errorcode-wifi.md)。 + +| **类型** | **说明** | + | -------- | -------- | +| 2501000 | Operation failed.| ## wifi.off('wifiScanStateChange')9+ @@ -1871,6 +2203,13 @@ off(type: "wifiScanStateChange", callback?: Callback<number>): void | type | string | 是 | 固定填"wifiScanStateChange"字符串。 | | callback | Callback<number> | 否 | 状态改变回调函数。如果callback不填,将去注册该事件关联的所有回调函数。 | +**错误码:** + +以下错误码的详细介绍请参见[WIFI错误码](../errorcodes/errorcode-wifi.md)。 + +| **类型** | **说明** | + | -------- | -------- | +| 2501000 | Operation failed.| ## wifi.on('wifiRssiChange')9+ @@ -1889,6 +2228,13 @@ on(type: "wifiRssiChange", callback: Callback<number>): void | type | string | 是 | 固定填"wifiRssiChange"字符串。 | | callback | Callback<number> | 是 | 状态改变回调函数,返回以dBm为单位的RSSI值。 | +**错误码:** + +以下错误码的详细介绍请参见[WIFI错误码](../errorcodes/errorcode-wifi.md)。 + +| **类型** | **说明** | + | -------- | -------- | +| 2501000 | Operation failed.| ## wifi.off('wifiRssiChange')9+ @@ -1907,6 +2253,13 @@ off(type: "wifiRssiChange", callback?: Callback<number>): void | type | string | 是 | 固定填"wifiRssiChange"字符串。 | | callback | Callback<number> | 否 | 状态改变回调函数。如果callback不填,将去注册该事件关联的所有回调函数。 | +**错误码:** + +以下错误码的详细介绍请参见[WIFI错误码](../errorcodes/errorcode-wifi.md)。 + +| **类型** | **说明** | + | -------- | -------- | +| 2501000 | Operation failed.| ## wifi.on('hotspotStateChange')9+ @@ -1934,6 +2287,13 @@ on(type: "hotspotStateChange", callback: Callback<number>): void | 2 | 激活中。 | | 3 | 去激活中。 | +**错误码:** + +以下错误码的详细介绍请参见[WIFI错误码](../errorcodes/errorcode-wifi.md)。 + +| **类型** | **说明** | + | -------- | -------- | +| 2601000 | Operation failed.| ## wifi.off('hotspotStateChange')9+ @@ -1952,6 +2312,13 @@ off(type: "hotspotStateChange", callback?: Callback<number>): void | type | string | 是 | 固定填"hotspotStateChange"字符串。 | | callback | Callback<number> | 否 | 状态改变回调函数。如果callback不填,将去注册该事件关联的所有回调函数。 | +**错误码:** + +以下错误码的详细介绍请参见[WIFI错误码](../errorcodes/errorcode-wifi.md)。 + +| **类型** | **说明** | + | -------- | -------- | +| 2601000 | Operation failed.| ## wifi.on('p2pStateChange')9+ @@ -1980,6 +2347,14 @@ on(type: "p2pStateChange", callback: Callback<number>): void | 4 | 关闭中。 | | 5 | 已关闭。 | +**错误码:** + +以下错误码的详细介绍请参见[WIFI错误码](../errorcodes/errorcode-wifi.md)。 + +| **类型** | **说明** | + | -------- | -------- | +| 2801000 | Operation failed.| + ## wifi.off('p2pStateChange')9+ off(type: "p2pStateChange", callback?: Callback<number>): void @@ -1997,6 +2372,13 @@ off(type: "p2pStateChange", callback?: Callback<number>): void | type | string | 是 | 固定填"p2pStateChange"字符串。 | | callback | Callback<number> | 否 | 状态改变回调函数。如果callback不填,将去注册该事件关联的所有回调函数。 | +**错误码:** + +以下错误码的详细介绍请参见[WIFI错误码](../errorcodes/errorcode-wifi.md)。 + +| **类型** | **说明** | + | -------- | -------- | +| 2801000 | Operation failed.| ## wifi.on('p2pConnectionChange')9+ @@ -2015,6 +2397,13 @@ on(type: "p2pConnectionChange", callback: Callback<WifiP2pLinkedInfo>): vo | type | string | 是 | 固定填"p2pConnectionChange"字符串。 | | callback | Callback<[WifiP2pLinkedInfo](#wifip2plinkedinfo9)> | 是 | 状态改变回调函数。 | +**错误码:** + +以下错误码的详细介绍请参见[WIFI错误码](../errorcodes/errorcode-wifi.md)。 + +| **类型** | **说明** | + | -------- | -------- | +| 2801000 | Operation failed.| ## wifi.off('p2pConnectionChange')9+ @@ -2033,6 +2422,13 @@ off(type: "p2pConnectionChange", callback?: Callback<WifiP2pLinkedInfo>): | type | string | 是 | 固定填"p2pConnectionChange"字符串。 | | callback | Callback<[WifiP2pLinkedInfo](#wifip2plinkedinfo9)> | 否 | 状态改变回调函数。如果callback不填,将去注册该事件关联的所有回调函数。 | +**错误码:** + +以下错误码的详细介绍请参见[WIFI错误码](../errorcodes/errorcode-wifi.md)。 + +| **类型** | **说明** | + | -------- | -------- | +| 2801000 | Operation failed.| ## wifi.on('p2pDeviceChange')9+ @@ -2051,6 +2447,13 @@ on(type: "p2pDeviceChange", callback: Callback<WifiP2pDevice>): void | type | string | 是 | 固定填"p2pDeviceChange"字符串。 | | callback | Callback<[WifiP2pDevice](#wifip2pdevice9)> | 是 | 状态改变回调函数。 | +**错误码:** + +以下错误码的详细介绍请参见[WIFI错误码](../errorcodes/errorcode-wifi.md)。 + +| **类型** | **说明** | + | -------- | -------- | +| 2801000 | Operation failed.| ## wifi.off('p2pDeviceChange')9+ @@ -2069,6 +2472,13 @@ off(type: "p2pDeviceChange", callback?: Callback<WifiP2pDevice>): void | type | string | 是 | 固定填"p2pDeviceChange"字符串。 | | callback | Callback<[WifiP2pDevice](#wifip2pdevice9)> | 否 | 状态改变回调函数。如果callback不填,将去注册该事件关联的所有回调函数。 | +**错误码:** + +以下错误码的详细介绍请参见[WIFI错误码](../errorcodes/errorcode-wifi.md)。 + +| **类型** | **说明** | + | -------- | -------- | +| 2801000 | Operation failed.| ## wifi.on('p2pPeerDeviceChange')9+ @@ -2087,6 +2497,13 @@ on(type: "p2pPeerDeviceChange", callback: Callback<WifiP2pDevice[]>): void | type | string | 是 | 固定填"p2pPeerDeviceChange"字符串。 | | callback | Callback<[WifiP2pDevice[]](#wifip2pdevice9)> | 是 | 状态改变回调函数。 | +**错误码:** + +以下错误码的详细介绍请参见[WIFI错误码](../errorcodes/errorcode-wifi.md)。 + +| **类型** | **说明** | + | -------- | -------- | +| 2801000 | Operation failed.| ## wifi.off('p2pPeerDeviceChange')9+ @@ -2105,6 +2522,13 @@ off(type: "p2pPeerDeviceChange", callback?: Callback<WifiP2pDevice[]>): vo | type | string | 是 | 固定填"p2pPeerDeviceChange"字符串。 | | callback | Callback<[WifiP2pDevice[]](#wifip2pdevice9)> | 否 | 状态改变回调函数。如果callback不填,将去注册该事件关联的所有回调函数。 | +**错误码:** + +以下错误码的详细介绍请参见[WIFI错误码](../errorcodes/errorcode-wifi.md)。 + +| **类型** | **说明** | + | -------- | -------- | +| 2801000 | Operation failed.| ## wifi.on('p2pPersistentGroupChange')9+ @@ -2123,6 +2547,13 @@ on(type: "p2pPersistentGroupChange", callback: Callback<void>): void | type | string | 是 | 固定填"p2pPersistentGroupChange"字符串。 | | callback | Callback<void> | 是 | 状态改变回调函数。 | +**错误码:** + +以下错误码的详细介绍请参见[WIFI错误码](../errorcodes/errorcode-wifi.md)。 + +| **类型** | **说明** | + | -------- | -------- | +| 2801000 | Operation failed.| ## wifi.off('p2pPersistentGroupChange')9+ @@ -2141,6 +2572,13 @@ off(type: "p2pPersistentGroupChange", callback?: Callback<void>): void | type | string | 是 | 固定填"p2pPersistentGroupChange"字符串。 | | callback | Callback<void> | 否 | 状态改变回调函数。如果callback不填,将去注册该事件关联的所有回调函数。 | +**错误码:** + +以下错误码的详细介绍请参见[WIFI错误码](../errorcodes/errorcode-wifi.md)。 + +| **类型** | **说明** | + | -------- | -------- | +| 2801000 | Operation failed.| ## wifi.on('p2pDiscoveryChange')9+ @@ -2166,6 +2604,13 @@ on(type: "p2pDiscoveryChange", callback: Callback<number>): void | 0 | 初始状态。 | | 1 | 发现成功。 | +**错误码:** + +以下错误码的详细介绍请参见[WIFI错误码](../errorcodes/errorcode-wifi.md)。 + +| **类型** | **说明** | + | -------- | -------- | +| 2801000 | Operation failed.| ## wifi.off('p2pDiscoveryChange')9+ @@ -2184,3 +2629,10 @@ off(type: "p2pDiscoveryChange", callback?: Callback<number>): void | type | string | 是 | 固定填"p2pDiscoveryChange"字符串。 | | callback | Callback<number> | 否 | 状态改变回调函数。如果callback不填,将去注册该事件关联的所有回调函数。 | +**错误码:** + +以下错误码的详细介绍请参见[WIFI错误码](../errorcodes/errorcode-wifi.md)。 + +| **类型** | **说明** | + | -------- | -------- | +| 2801000 | Operation failed.| diff --git a/zh-cn/application-dev/reference/apis/js-apis-wifiManagerExt.md b/zh-cn/application-dev/reference/apis/js-apis-wifiManagerExt.md index 637f78a84d484b85fe27b31c49750b5d3eaab35a..6b973ac78d449daa3d32e2a7c28da46a5115202e 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-wifiManagerExt.md +++ b/zh-cn/application-dev/reference/apis/js-apis-wifiManagerExt.md @@ -22,12 +22,13 @@ enableHotspot(): boolean; **系统能力:** SystemCapability.Communication.WiFi.AP.Extension -**返回值:** +**错误码:** - | **类型** | **说明** | - | -------- | -------- | - | boolean | 操作结果, true: 成功, false: 失败。 | +以下错误码的详细介绍请参见[WIFI错误码](../errorcodes/errorcode-wifi.md)。 +| **类型** | **说明** | + | -------- | -------- | +| 2701000 | Operation failed.| ## wifiext.disableHotspot @@ -39,12 +40,13 @@ disableHotspot(): boolean; **系统能力:** SystemCapability.Communication.WiFi.AP.Extension -**返回值:** +**错误码:** - | **类型** | **说明** | - | -------- | -------- | - | boolean | 操作结果, true: 成功, false: 失败。 | +以下错误码的详细介绍请参见[WIFI错误码](../errorcodes/errorcode-wifi.md)。 +| **类型** | **说明** | + | -------- | -------- | +| 2701000 | Operation failed.| ## wifiext.getSupportedPowerModel @@ -62,6 +64,13 @@ getSupportedPowerModel(): Promise<Array<PowerModel>> | -------- | -------- | | Promise<Array<[PowerModel](#powermodel)>> | Promise对象。表示功率模式。 | +**错误码:** + +以下错误码的详细介绍请参见[WIFI错误码](../errorcodes/errorcode-wifi.md)。 + +| **类型** | **说明** | + | -------- | -------- | +| 2701000 | Operation failed.| ## PowerModel @@ -92,6 +101,13 @@ getSupportedPowerModel(callback: AsyncCallback<Array<PowerModel>>): | -------- | -------- | -------- | -------- | | callback | AsyncCallback<Array<[PowerModel](#powermodel)>> | 是 | 回调函数。当操作成功时,err为0,data表示支持的功率模式。如果error为非0,表示处理出现错误。 | +**错误码:** + +以下错误码的详细介绍请参见[WIFI错误码](../errorcodes/errorcode-wifi.md)。 + +| **类型** | **说明** | + | -------- | -------- | +| 2701000 | Operation failed.| ## wifiext.getPowerModel @@ -109,6 +125,13 @@ getPowerModel(): Promise<PowerModel> | -------- | -------- | | Promise<[PowerModel](#powermodel)> | Promise对象。表示功率模式。 | +**错误码:** + +以下错误码的详细介绍请参见[WIFI错误码](../errorcodes/errorcode-wifi.md)。 + +| **类型** | **说明** | + | -------- | -------- | +| 2701000 | Operation failed.| ## wifiext.getPowerModel @@ -126,6 +149,13 @@ getPowerModel(callback: AsyncCallback<PowerModel>): void | -------- | -------- | -------- | -------- | | callback | AsyncCallback<[PowerModel](#powermodel)> | 是 | 回调函数。当操作成功时,err为0,data表示功率模式。如果error为非0,表示处理出现错误。 | +**错误码:** + +以下错误码的详细介绍请参见[WIFI错误码](../errorcodes/errorcode-wifi.md)。 + +| **类型** | **说明** | + | -------- | -------- | +| 2701000 | Operation failed.| ## wifiext.setPowerModel @@ -143,8 +173,10 @@ setPowerModel(model: PowerModel) : boolean; | -------- | -------- | -------- | -------- | | model | [PowerModel](#powermodel) | 是 | 功率模式。 | -**返回值:** +**错误码:** + +以下错误码的详细介绍请参见[WIFI错误码](../errorcodes/errorcode-wifi.md)。 - | **类型** | **说明** | +| **类型** | **说明** | | -------- | -------- | - | boolean | 操作结果, true: 成功, false: 失败。 | +| 2701000 | Operation failed.| diff --git a/zh-cn/application-dev/reference/apis/js-apis-window.md b/zh-cn/application-dev/reference/apis/js-apis-window.md index 60d0ddcdfb2a8f66639a8eaff58591703c266c9a..e80202ae57e2d9f1059041bc6888c02ca9a9245a 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-window.md +++ b/zh-cn/application-dev/reference/apis/js-apis-window.md @@ -296,6 +296,21 @@ import window from '@ohos.window'; | y | number | 否 | 是 | Y轴的平移参数,默认值为0.0。 | | z | number | 否 | 是 | Z轴的平移参数,默认值为0.0。 | +## WindowEventType10+ + +窗口生命周期。 + +**系统接口:** 此接口为系统接口。 + +**系统能力**:SystemCapability.WindowManager.WindowManager.Core + +| 名称 | 值 | 说明 | +| ---------- | ------ | ---------- | +| SHOWN | 1 | 切到前台。 | +| ACTIVE | 2 | 获焦状态。 | +| INACTIVE | 3 | 失焦状态。 | +| HIDDEN | 4 | 切到后台。 | + ## window.createWindow9+ createWindow(config: Configuration, callback: AsyncCallback<Window>): void @@ -824,7 +839,7 @@ create(id: string, type: WindowType, callback: AsyncCallback<Window>): voi 创建子窗口,使用callback异步回调。 > **说明:** -> +> > 从 API version 7开始支持,从API version 9开始废弃,推荐使用[createWindow()](#windowcreatewindow9)。 **模型约束:** 此接口仅可在FA模型下使用。 @@ -860,7 +875,7 @@ create(id: string, type: WindowType): Promise<Window> 创建子窗口,使用Promise异步回调。 > **说明:** -> +> > 从 API version 7开始支持,从API version 9开始废弃,推荐使用[createWindow()](#windowcreatewindow9-1)。 **模型约束:** 此接口仅可在FA模型下使用。 @@ -900,7 +915,7 @@ create(ctx: BaseContext, id: string, type: WindowType, callback: AsyncCallback&l 创建系统窗口,使用callback异步回调。 > **说明:** -> +> > 从 API version 7开始支持,从API version 9开始废弃,推荐使用[createWindow()](#windowcreatewindow9)。 **系统能力:** SystemCapability.WindowManager.WindowManager.Core @@ -936,7 +951,7 @@ create(ctx: BaseContext, id: string, type: WindowType): Promise<Window> 创建系统窗口,使用Promise异步回调。 > **说明:** -> +> > 从 API version 7开始支持,从API version 9开始废弃,推荐使用[createWindow()](#windowcreatewindow9-1)。 **系统能力:** SystemCapability.WindowManager.WindowManager.Core @@ -975,7 +990,7 @@ find(id: string, callback: AsyncCallback<Window>): void 查找id所对应的窗口,使用callback异步回调。 > **说明:** -> +> > 从 API version 7开始支持,从API version 9开始废弃,推荐使用[findWindow()](#windowfindwindow9)。 **系统能力:** SystemCapability.WindowManager.WindowManager.Core @@ -1008,7 +1023,7 @@ find(id: string): Promise<Window> 查找id所对应的窗口,使用Promise异步回调。 > **说明:** -> +> > 从 API version 7开始支持,从API version 9开始废弃,推荐使用[findWindow()](#windowfindwindow9)。 **系统能力:** SystemCapability.WindowManager.WindowManager.Core @@ -1045,7 +1060,7 @@ getTopWindow(callback: AsyncCallback<Window>): void 获取当前应用内最后显示的窗口,使用callback异步回调。 > **说明:** -> +> > 从 API version 6开始支持,从API version 9开始废弃,推荐使用[getLastWindow()](#windowgetlastwindow9)。 **模型约束:** 此接口仅可在FA模型下使用。 @@ -1079,7 +1094,7 @@ getTopWindow(): Promise<Window> 获取当前应用内最后显示的窗口,使用Promise异步回调。 > **说明:** -> +> > 从 API version 6开始支持,从API version 9开始废弃,推荐使用[getLastWindow()](#windowgetlastwindow9-1)。 **模型约束:** 此接口仅可在FA模型下使用。 @@ -1112,7 +1127,7 @@ getTopWindow(ctx: BaseContext, callback: AsyncCallback<Window>): void 获取当前应用内最后显示的窗口,使用callback异步回调。 > **说明:** -> +> > 从 API version 8开始支持,从API version 9开始废弃,推荐使用[getLastWindow()](#windowgetlastwindow9)。 **系统能力:** SystemCapability.WindowManager.WindowManager.Core @@ -1145,7 +1160,7 @@ getTopWindow(ctx: BaseContext): Promise<Window> 获取当前应用内最后显示的窗口,使用Promise异步回调。 > **说明:** -> +> > 从 API version 8开始支持,从API version 9开始废弃,推荐使用[getLastWindow()](#windowgetlastwindow9-1)。 **系统能力:** SystemCapability.WindowManager.WindowManager.Core @@ -2787,6 +2802,62 @@ try { } ``` +### on('windowEvent')10+ + +on(type: 'windowEvent', callback: Callback<WindowEventType>): void + +开启窗口生命周期变化的监听。 + +**系统接口:** 此接口为系统接口。 + +**系统能力:** SystemCapability.WindowManager.WindowManager.Core + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| -------- | ---------------------------------------------------------- | ---- | ------------------------------------------------------------ | +| type | string | 是 | 监听事件,固定为'windowEvent',即窗口生命周期变化事件。 | +| callback | Callback<[WindowEventType](#windoweventtype10)> | 是 | 回调函数。返回当前的窗口生命周期状态。 | + +**示例:** + +```js +try { + windowClass.on('windowEvent', (data) => { + console.info('Window event happened. Event:' + JSON.stringify(data)); + }); +} catch (exception) { + console.error('Failed to register callback. Cause: ' + JSON.stringify(exception)); +} +``` + +### off('windowEvent')10+ + +off(type: 'windowEvent', callback?: Callback<WindowEventType >): void + +关闭窗口生命周期变化的监听。 + +**系统接口:** 此接口为系统接口。 + +**系统能力:** SystemCapability.WindowManager.WindowManager.Core + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| -------- | ---------------------------------------------------------- | ---- | ------------------------------------------------------------ | +| type | string | 是 | 监听事件,固定为'windowEvent',即窗口生命周期变化事件。 | +| callback | Callback<[WindowEventType](#windoweventtype10)> | 否 | 回调函数。返回当前的窗口生命周期状态。 | + +**示例:** + +```js +try { + windowClass.off('windowEvent'); +} catch (exception) { + console.error('Failed to unregister callback. Cause: ' + JSON.stringify(exception)); +} +``` + ### bindDialogTarget9+ bindDialogTarget(token: rpc.RemoteObject, deathCallback: Callback<void>, callback: AsyncCallback<void>): void @@ -2927,6 +2998,154 @@ try { } ``` +### bindDialogTarget9+ + +bindDialogTarget(requestInfo: dialogRequest.RequestInfo, deathCallback: Callback<void>, callback: AsyncCallback<void>): void + +绑定模态窗口与目标窗口并添加模态窗口销毁监听,使用callback异步回调。 + +**系统接口:** 此接口为系统接口。 + +**系统能力:** SystemCapability.WindowManager.WindowManager.Core + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| ----------- | ------------------------- | ---- | -------------------- | +| requestInfo | [dialogRequest.RequestInfo](js-apis-app-ability-dialogRequest.md#requestinfo) | 是 | 目标窗口RequestInfo值。 | +| deathCallback | Callback<void> | 是 | 模态窗口销毁监听。 | +| callback | AsyncCallback<void> | 是 | 回调函数。 | + +**错误码:** + +以下错误码的详细介绍请参见[窗口错误码](../errorcodes/errorcode-window.md)。 + +| 错误码ID | 错误信息 | +| ------- | -------------------------------------------- | +| 1300002 | This window state is abnormal. | +| 1300003 | This window manager service works abnormally. | + +**示例:** + +```js +import ServiceExtensionAbility from '@ohos.app.ability.ServiceExtensionAbility'; +import rpc from '@ohos.rpc'; +import dialogRequest from '@ohos.app.ability.dialogRequest'; +import window from '@ohos.window'; + +export default class ServiceExtAbility extends ServiceExtensionAbility { + onCreate(want) { + console.info('onCreate'); + } + + onRequest(want, startId) { + console.info('onRequest'); + try { + let requestInfo = dialogRequest.getRequestInfo(want) + windowClass.bindDialogTarget(requestInfo, () => { + console.info('Dialog Window Need Destroy.'); + }, (err) => { + if (err.code) { + console.error('Failed to bind dialog target. Cause:' + JSON.stringify(err)); + return; + } + console.info('Succeeded in binding dialog target.'); + }); + } catch(err) { + console.error('getRequestInfo err = ' + JSON.stringify(err)) + } + } + + onConnect(want) { + console.info('onConnect'); + } + + onDisconnect(want) { + console.info('onDisconnect'); + } + + onDestroy() { + console.info('onDestroy'); + } +} +``` + +### bindDialogTarget9+ + +bindDialogTarget(requestInfo: dialogRequest.RequestInfo, deathCallback: Callback<void>): Promise<void> + +绑定模态窗口与目标窗口并添加模态窗口销毁监听,使用Promise异步回调。 + +**系统接口:** 此接口为系统接口。 + +**系统能力:** SystemCapability.WindowManager.WindowManager.Core + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| ----------- | ------------------------- | ---- | -------------------- | +| requestInfo | [dialogRequest.RequestInfo](js-apis-app-ability-dialogRequest.md#requestinfo) | 是 | 目标窗口RequestInfo值。 | +| deathCallback | Callback<void> | 是 | 模态窗口销毁监听。 | + +**返回值:** + +| 类型 | 说明 | +| ------------------- | ------------------------- | +| Promise<void> | 无返回结果的Promise对象。 | + +**错误码:** + +以下错误码的详细介绍请参见[窗口错误码](../errorcodes/errorcode-window.md)。 + +| 错误码ID | 错误信息 | +| ------- | -------------------------------------------- | +| 1300002 | This window state is abnormal. | +| 1300003 | This window manager service works abnormally. | + +**示例:** + +```js +import ServiceExtensionAbility from '@ohos.app.ability.ServiceExtensionAbility'; +import rpc from '@ohos.rpc'; +import dialogRequest from '@ohos.app.ability.dialogRequest'; +import window from '@ohos.window'; + +export default class ServiceExtAbility extends ServiceExtensionAbility { + onCreate(want) { + console.info('onCreate'); + } + + onRequest(want, startId) { + console.info('onRequest'); + try { + let requestInfo = dialogRequest.getRequestInfo(want) + let promise = windowClass.bindDialogTarget(requestInfo, () => { + console.info('Dialog Window Need Destroy.'); + }); + promise.then(()=> { + console.info('Succeeded in binding dialog target.'); + }).catch((err)=>{ + console.error('Failed to bind dialog target. Cause:' + JSON.stringify(err)); + }); + } catch(err) { + console.error('getRequestInfo err = ' + JSON.stringify(err)) + } + } + + onConnect(want) { + console.info('onConnect'); + } + + onDisconnect(want) { + console.info('onDisconnect'); + } + + onDestroy() { + console.info('onDestroy'); + } +} +``` + ### isWindowSupportWideGamut9+ isWindowSupportWideGamut(callback: AsyncCallback<boolean>): void @@ -3994,7 +4213,7 @@ controller.animationForHidden = (context : window.TransitionContext) => { playMode: PlayMode.Normal, // 动画模式 onFinish: ()=> { context.completeTransition(true) - } + } }, () => { let obj : window.TranslateOptions = { x : 100.0, @@ -4194,6 +4413,253 @@ try { } ``` +### raiseToAppTop10+ + +raiseToAppTop(callback: AsyncCallback<void>): void + +提升应用子窗口到应用顶层。使用callback异步回调。 + +**系统接口:** 此接口为系统接口。 + +**系统能力:** SystemCapability.WindowManager.WindowManager.Core + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| -------- | ------------------------- | ---- | ---------- | +| callback | AsyncCallback<void> | 是 | 回调函数。 | + +**错误码:** + +以下错误码的详细介绍请参见[窗口错误码](../errorcodes/errorcode-window.md)。 + +| 错误码ID | 错误信息 | +| ------- | ------------------------------ | +| 1300002 | This window state is abnormal. | +| 1300003 | This window manager service works abnormally. | +| 1300004 | Unauthorized operation. | +| 1300009 | The parent window is invalid. | + +**示例:** + +```js +windowClass.raiseToAppTop((err) => { + if (err.code) { + console.error('Failed to raise the window to app top. Cause: ' + JSON.stringify(err)); + return; + } + console.info('Succeeded in raising the window to app top.'); +}); +``` + +### raiseToAppTop10+ + +raiseToAppTop(): Promise<void> + +提升应用子窗口到应用顶层。使用Promise异步回调。 + +**系统接口:** 此接口为系统接口。 + +**系统能力:** SystemCapability.WindowManager.WindowManager.Core + +**返回值:** + +| 类型 | 说明 | +| ------------------- | ------------------------- | +| Promise<void> | 无返回结果的Promise对象。 | + +**错误码:** + +以下错误码的详细介绍请参见[窗口错误码](../errorcodes/errorcode-window.md)。 + +| 错误码ID | 错误信息 | +| ------- | ------------------------------ | +| 1300002 | This window state is abnormal. | +| 1300003 | This window manager service works abnormally. | +| 1300004 | Unauthorized operation. | +| 1300009 | The parent window is invalid. | + +**示例:** + +```js +let promise = windowClass.raiseToAppTop(); +promise.then(()=> { + console.info('Succeeded in raising the window to app top.'); +}).catch((err)=>{ + console.error('Failed to raise the window to app top. Cause: ' + JSON.stringify(err)); +}); +``` +### setAspectRatio10+ + +setAspectRatio(ratio: number): Promise<void> + +设置窗口内容布局的比例,使用Promise异步回调。 + +仅应用主窗口支持此接口功能,比例参数将持久化保存,关闭应用或重启设备设置的比例仍然生效。 + +**系统能力:** SystemCapability.WindowManager.WindowManager.Core + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| ------------------ | ------- | ---- | ------------------------------------------------------------ | +| ratio | number | 是 | 除边框装饰之外的窗口内容布局的宽高比,取值范围为大于0。 | + +**返回值:** + +| 类型 | 说明 | +| ------------------- | ------------------------- | +| Promise<void> | 无返回结果的Promise对象。 | + +**错误码:** + +以下错误码的详细介绍请参见[窗口错误码](../errorcodes/errorcode-window.md)。 + +| 错误码ID | 错误信息 | +| ------- | -------------------------------------------- | +| 1300002 | This window state is abnormal. | +| 1300004 | Unauthorized operation. | + +**示例:** + +```js +try { + let ratio = 1.0; + let promise = windowClass.setAspectRatio(ratio); + promise.then(()=> { + console.info('Succeeded in setting aspect ratio of window.'); + }).catch((err)=>{ + console.error('Failed to set the aspect ratio of window. Cause:' + JSON.stringify(err)); + }); +} catch (exception) { + console.error('Failed to set the aspect ratio of window. Cause: ' + JSON.stringify(exception)); +} +``` + +### setAspectRatio10+ + +setAspectRatio(ratio: number, callback: AsyncCallback<void>): void + +设置窗口内容布局的比例,使用callback异步回调。 + +仅应用主窗口支持此接口功能,比例参数将持久化保存,关闭应用或重启设备设置的比例仍然生效。 + +**系统能力:** SystemCapability.WindowManager.WindowManager.Core + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| ------------------ | ------- | ---- | ------------------------------------------------------------ | +| ratio | number | 是 | 除边框装饰之外的窗口内容布局的宽高比,取值范围为大于0。 | +| callback | AsyncCallback<void> | 是 | 回调函数。 | + +**错误码:** + +以下错误码的详细介绍请参见[窗口错误码](../errorcodes/errorcode-window.md)。 + +| 错误码ID | 错误信息 | +| ------- | -------------------------------------------- | +| 1300002 | This window state is abnormal. | +| 1300004 | Unauthorized operation. | + +**示例:** + +```js +try { + let ratio = 1.0; + windowClass.setAspectRatio(ratio, (err) => { + if (err.code) { + console.error('Failed to set the aspect ratio of window. Cause:' + JSON.stringify(err)); + return; + } + console.error('Failed to set the aspect ratio of window. Cause:' + JSON.stringify(err)); + }); +} catch (exception) { + console.error('Failed to set the aspect ratio of window. Cause: ' + JSON.stringify(exception)); +} +``` + +### resetAspectRatio10+ + +resetAspectRatio(): Promise<void> + +取消设置窗口内容布局的比例,使用Promise异步回调。 + +仅应用主窗口支持此接口功能,调用后将清除持久化储存的比例信息。 + +**系统能力:** SystemCapability.WindowManager.WindowManager.Core + +**返回值:** + +| 类型 | 说明 | +| ------------------- | ------------------------- | +| Promise<void> | 无返回结果的Promise对象。 | + +**错误码:** + +以下错误码的详细介绍请参见[窗口错误码](../errorcodes/errorcode-window.md)。 + +| 错误码ID | 错误信息 | +| ------- | -------------------------------------------- | +| 1300002 | This window state is abnormal. | +| 1300004 | Unauthorized operation. | + +**示例:** + +```js +try { + let promise = windowClass.resetAspectRatio(); + promise.then(()=> { + console.info('Succeeded in resetting aspect ratio of window.'); + }).catch((err)=>{ + console.error('Failed to reset the aspect ratio of window. Cause:' + JSON.stringify(err)); + }); +} catch (exception) { + console.error('Failed to reset the aspect ratio of window. Cause: ' + JSON.stringify(exception)); +} +``` + +### resetAspectRatio10+ + +resetAspectRatio(callback: AsyncCallback<void>): void + +取消设置窗口内容布局的比例,使用callback异步回调。 + +仅应用主窗口支持此接口功能,调用后将清除持久化储存的比例信息。 + +**系统能力:** SystemCapability.WindowManager.WindowManager.Core + +**参数:** + +| 参数名 | 类型 | 必填 | 说明 | +| ------------------ | ------- | ---- | ------------------------------------------------------------ | +| callback | AsyncCallback<void> | 是 | 回调函数。 | + +**错误码:** + +以下错误码的详细介绍请参见[窗口错误码](../errorcodes/errorcode-window.md)。 + +| 错误码ID | 错误信息 | +| ------- | -------------------------------------------- | +| 1300002 | This window state is abnormal. | +| 1300004 | Unauthorized operation. | + +**示例:** + +```js +try { + windowClass.resetAspectRatio((err) => { + if (err.code) { + console.error('Failed to reset the aspect ratio of window. Cause:' + JSON.stringify(err)); + return; + } + console.info('Succeeded in resetting aspect ratio of window.'); + }); +} catch (exception) { + console.error('Failed to reset the aspect ratio of window. Cause: ' + JSON.stringify(exception)); +} +``` + ### show(deprecated) show(callback: AsyncCallback<void>): void @@ -4201,7 +4667,7 @@ show(callback: AsyncCallback<void>): void 显示当前窗口,使用callback异步回调。 > **说明:** -> +> > 从 API version 7开始支持,从API version 9开始废弃,推荐使用[showWindow()](#showwindow9)。 **系统能力:** SystemCapability.WindowManager.WindowManager.Core @@ -4231,7 +4697,7 @@ show(): Promise<void> 显示当前窗口,使用Promise异步回调。 > **说明:** -> +> > 从 API version 7开始支持,从API version 9开始废弃,推荐使用[showWindow()](#showwindow9-1)。 **系统能力:** SystemCapability.WindowManager.WindowManager.Core @@ -4260,7 +4726,7 @@ destroy(callback: AsyncCallback<void>): void 销毁当前窗口,使用callback异步回调。 > **说明:** -> +> > 从 API version 7开始支持,从API version 9开始废弃,推荐使用[destroyWindow()](#destroywindow9)。 **系统能力:** SystemCapability.WindowManager.WindowManager.Core @@ -4290,7 +4756,7 @@ destroy(): Promise<void> 销毁当前窗口,使用Promise异步回调。 > **说明:** -> +> > 从 API version 7开始支持,从API version 9开始废弃,推荐使用[destroyWindow()](#destroywindow9-1)。 **系统能力:** SystemCapability.WindowManager.WindowManager.Core @@ -4321,7 +4787,7 @@ moveTo(x: number, y: number, callback: AsyncCallback<void>): void 全屏模式窗口不支持该操作。 > **说明:** -> +> > 从 API version 7开始支持,从API version 9开始废弃,推荐使用[moveWindowTo()](#movewindowto9)。 **系统能力:** SystemCapability.WindowManager.WindowManager.Core @@ -4355,7 +4821,7 @@ moveTo(x: number, y: number): Promise<void> 全屏模式窗口不支持该操作。 > **说明:** -> +> > 从 API version 7开始支持,从API version 9开始废弃,推荐使用[moveWindowTo()](#movewindowto9-1)。 **系统能力:** SystemCapability.WindowManager.WindowManager.Core @@ -4399,7 +4865,7 @@ resetSize(width: number, height: number, callback: AsyncCallback<void>): v 全屏模式窗口不支持该操作。 > **说明:** -> +> > 从 API version 7开始支持,从API version 9开始废弃,推荐使用[resize()](#resize9)。 **系统能力:** SystemCapability.WindowManager.WindowManager.Core @@ -4439,7 +4905,7 @@ resetSize(width: number, height: number): Promise<void> 全屏模式窗口不支持该操作。 > **说明:** -> +> > 从 API version 7开始支持,从API version 9开始废弃,推荐使用[resize()](#resize9-1)。 **系统能力:** SystemCapability.WindowManager.WindowManager.Core @@ -4477,7 +4943,7 @@ setWindowType(type: WindowType, callback: AsyncCallback<void>): void **系统接口:** 此接口为系统接口。 > **说明:** -> +> > 从 API version 7开始支持,从API version 9开始废弃。 **系统能力:** SystemCapability.WindowManager.WindowManager.Core @@ -4511,7 +4977,7 @@ setWindowType(type: WindowType): Promise<void> **系统接口:** 此接口为系统接口。 > **说明:** -> +> > 从 API version 7开始支持,从API version 9开始废弃。 **系统能力:** SystemCapability.WindowManager.WindowManager.Core @@ -4547,7 +5013,7 @@ getProperties(callback: AsyncCallback<WindowProperties>): void 获取当前窗口的属性,使用callback异步回调,返回WindowProperties。 > **说明:** -> +> > 从 API version 6开始支持,从API version 9开始废弃,推荐使用[getWindowProperties()](#getwindowproperties9)。 **系统能力:** SystemCapability.WindowManager.WindowManager.Core @@ -4577,7 +5043,7 @@ getProperties(): Promise<WindowProperties> 获取当前窗口的属性,使用Promise异步回调,返回WindowProperties。 > **说明:** -> +> > 从 API version 6开始支持,从API version 9开始废弃,推荐使用[getWindowProperties()](#getwindowproperties9)。 **系统能力:** SystemCapability.WindowManager.WindowManager.Core @@ -4606,7 +5072,7 @@ getAvoidArea(type: [AvoidAreaType](#avoidareatype7), callback: AsyncCallback< 获取窗口内容规避的区域;如系统栏区域、刘海屏区域、手势区域、软键盘区域等与窗口内容重叠时,需要窗口内容避让的区域。 > **说明:** -> +> > 从 API version 7开始支持,从API version 9开始废弃,推荐使用[getWindowAvoidArea()](#getwindowavoidarea9)。 **系统能力:** SystemCapability.WindowManager.WindowManager.Core @@ -4638,7 +5104,7 @@ getAvoidArea(type: [AvoidAreaType](#avoidareatype7)): Promise<[AvoidArea](#av 获取窗口内容规避的区域;如系统栏区域、刘海屏区域、手势区域、软键盘区域等与窗口内容重叠时,需要窗口内容避让的区域。 > **说明:** -> +> > 从 API version 7开始支持,从API version 9开始废弃,推荐使用[getWindowAvoidArea()](#getwindowavoidarea9)。 **系统能力:** SystemCapability.WindowManager.WindowManager.Core @@ -4674,7 +5140,7 @@ setFullScreen(isFullScreen: boolean, callback: AsyncCallback<void>): void 设置是否为全屏状态,使用callback异步回调。 > **说明:** -> +> > 从 API version 6开始支持,从API version 9开始废弃,推荐使用[setWindowSystemBarEnable()](#setwindowsystembarenable9)。 **系统能力:** SystemCapability.WindowManager.WindowManager.Core @@ -4706,7 +5172,7 @@ setFullScreen(isFullScreen: boolean): Promise<void> 设置是否为全屏状态,使用Promise异步回调。 > **说明:** -> +> > 从 API version 6开始支持,从API version 9开始废弃,推荐使用[setWindowSystemBarEnable()](#setwindowsystembarenable9-1)。 **系统能力:** SystemCapability.WindowManager.WindowManager.Core @@ -4742,7 +5208,7 @@ setLayoutFullScreen(isLayoutFullScreen: boolean, callback: AsyncCallback<void 设置窗口的布局是否为全屏显示状态,使用callback异步回调。 > **说明:** -> +> > 从 API version 7开始支持,从API version 9开始废弃,推荐使用[setWindowLayoutFullScreen()](#setwindowlayoutfullscreen9)。 **系统能力:** SystemCapability.WindowManager.WindowManager.Core @@ -4774,7 +5240,7 @@ setLayoutFullScreen(isLayoutFullScreen: boolean): Promise<void> 设置窗口的布局是否为全屏显示状态,使用Promise异步回调。 > **说明:** -> +> > 从 API version 7开始支持,从API version 9开始废弃,推荐使用[setWindowLayoutFullScreen()](#setwindowlayoutfullscreen9-1)。 **系统能力:** SystemCapability.WindowManager.WindowManager.Core @@ -4810,7 +5276,7 @@ setSystemBarEnable(names: Array<'status' | 'navigation'>, callback: AsyncCallbac 设置导航栏、状态栏的可见模式,使用callback异步回调。 > **说明:** -> +> > 从 API version 7开始支持,从API version 9开始废弃,推荐使用[setWindowSystemBarEnable()](#setwindowsystembarenable9)。 **系统能力:** SystemCapability.WindowManager.WindowManager.Core @@ -4843,7 +5309,7 @@ setSystemBarEnable(names: Array<'status' | 'navigation'>): Promise<void> 设置导航栏、状态栏的可见模式,使用Promise异步回调。 > **说明:** -> +> > 从 API version 7开始支持,从API version 9开始废弃,推荐使用[setWindowSystemBarEnable()](#setwindowsystembarenable9-1)。 **系统能力:** SystemCapability.WindowManager.WindowManager.Core @@ -4880,7 +5346,7 @@ setSystemBarProperties(systemBarProperties: SystemBarProperties, callback: Async 设置窗口内导航栏、状态栏的属性,使用callback异步回调。 > **说明:** -> +> > 从 API version 6开始支持,从API version 9开始废弃,推荐使用[setWindowSystemBarProperties()](#setwindowsystembarproperties9)。 **系统能力:** SystemCapability.WindowManager.WindowManager.Core @@ -4918,7 +5384,7 @@ setSystemBarProperties(systemBarProperties: SystemBarProperties): Promise<voi 设置窗口内导航栏、状态栏的属性,使用Promise异步回调。 > **说明:** -> +> > 从 API version 6开始支持,从API version 9开始废弃,推荐使用[setWindowSystemBarProperties()](#setwindowsystembarproperties9-1)。 **系统能力:** SystemCapability.WindowManager.WindowManager.Core @@ -4960,7 +5426,7 @@ loadContent(path: string, callback: AsyncCallback<void>): void 为当前窗口加载具体页面内容,使用callback异步回调。 > **说明:** -> +> > 从 API version 7开始支持,从API version 9开始废弃,推荐使用[setUIContent()](#setuicontent9)。 **系统能力:** SystemCapability.WindowManager.WindowManager.Core @@ -4991,7 +5457,7 @@ loadContent(path: string): Promise<void> 为当前窗口加载具体页面内容,使用Promise异步回调。 > **说明:** -> +> > 从 API version 7开始支持,从API version 9开始废弃,推荐使用[setUIContent()](#setuicontent9-1)。 **系统能力:** SystemCapability.WindowManager.WindowManager.Core @@ -5026,7 +5492,7 @@ isShowing(callback: AsyncCallback<boolean>): void 判断当前窗口是否已显示,使用callback异步回调。 > **说明:** -> +> > 从 API version 7开始支持,从API version 9开始废弃,推荐使用[isWindowShowing()](#iswindowshowing9)。 **系统能力:** SystemCapability.WindowManager.WindowManager.Core @@ -5056,7 +5522,7 @@ isShowing(): Promise<boolean> 判断当前窗口是否已显示,使用Promise异步回调。 > **说明:** -> +> > 从 API version 7开始支持,从API version 9开始废弃,推荐使用[isWindowShowing()](#iswindowshowing9)。 **系统能力:** SystemCapability.WindowManager.WindowManager.Core @@ -5085,7 +5551,7 @@ on(type: 'systemAvoidAreaChange', callback: Callback<AvoidArea>): void 开启系统规避区变化的监听。 > **说明:** -> +> > 从 API version 7开始支持,从API version 9开始废弃,推荐使用[on('avoidAreaChange')](#onavoidareachange9)。 **系统能力:** SystemCapability.WindowManager.WindowManager.Core @@ -5112,7 +5578,7 @@ off(type: 'systemAvoidAreaChange', callback?: Callback<AvoidArea>): void 关闭系统规避区变化的监听。 > **说明:** -> +> > 从 API version 7开始支持,从API version 9开始废弃,推荐使用[off('avoidAreaChange')](#offavoidareachange9)。 **系统能力:** SystemCapability.WindowManager.WindowManager.Core @@ -5137,7 +5603,7 @@ isSupportWideGamut(callback: AsyncCallback<boolean>): void 判断当前窗口是否支持广色域模式,使用callback异步回调。 > **说明:** -> +> > 从 API version 8开始支持,从API version 9开始废弃,推荐使用[isWindowSupportWideGamut()](#iswindowsupportwidegamut9)。 **系统能力:** SystemCapability.WindowManager.WindowManager.Core @@ -5167,7 +5633,7 @@ isSupportWideGamut(): Promise<boolean> 判断当前窗口是否支持广色域模式,使用Promise异步回调。 > **说明:** -> +> > 从 API version 8开始支持,从API version 9开始废弃,推荐使用[isWindowSupportWideGamut()](#iswindowsupportwidegamut9-1)。 **系统能力:** SystemCapability.WindowManager.WindowManager.Core @@ -5196,7 +5662,7 @@ setColorSpace(colorSpace:ColorSpace, callback: AsyncCallback<void>): void 设置当前窗口为广色域模式或默认色域模式,使用callback异步回调。 > **说明:** -> +> > 从 API version 8开始支持,从API version 9开始废弃,推荐使用[setWindowColorSpace()](#setwindowcolorspace9)。 **系统能力:** SystemCapability.WindowManager.WindowManager.Core @@ -5227,7 +5693,7 @@ setColorSpace(colorSpace:ColorSpace): Promise<void> 设置当前窗口为广色域模式或默认色域模式,使用Promise异步回调。 > **说明:** -> +> > 从 API version 8开始支持,从API version 9开始废弃,推荐使用[setWindowColorSpace()](#setwindowcolorspace9-1)。 **系统能力:** SystemCapability.WindowManager.WindowManager.Core @@ -5262,7 +5728,7 @@ getColorSpace(callback: AsyncCallback<ColorSpace>): void 获取当前窗口色域模式,使用callback异步回调。 > **说明:** -> +> > 从 API version 8开始支持,从API version 9开始废弃,推荐使用[getWindowColorSpace()](#getwindowcolorspace9)。 **系统能力:** SystemCapability.WindowManager.WindowManager.Core @@ -5292,7 +5758,7 @@ getColorSpace(): Promise<ColorSpace> 获取当前窗口色域模式,使用Promise异步回调。 > **说明:** -> +> > 从 API version 8开始支持,从API version 9开始废弃,推荐使用[getWindowColorSpace()](#getwindowcolorspace9)。 **系统能力:** SystemCapability.WindowManager.WindowManager.Core @@ -5321,7 +5787,7 @@ setBackgroundColor(color: string, callback: AsyncCallback<void>): void 设置窗口的背景色,使用callback异步回调。Stage模型下,该接口需要在[loadContent](#loadcontent9)或[setUIContent()](#setuicontent9)之后使用。 > **说明:** -> +> > 从 API version 6开始支持,从API version 9开始废弃,推荐使用[setWindowBackgroundColor()](#setwindowbackgroundcolor9)。 **系统能力:** SystemCapability.WindowManager.WindowManager.Core @@ -5353,7 +5819,7 @@ setBackgroundColor(color: string): Promise<void> 设置窗口的背景色,使用Promise异步回调。Stage模型下,该接口需要在[loadContent](#loadcontent9)或[setUIContent()](#setuicontent9)之后使用。 > **说明:** -> +> > 从 API version 6开始支持,从API version 9开始废弃,推荐使用[setWindowBackgroundColor()](#setwindowbackgroundcolor9)。 **系统能力:** SystemCapability.WindowManager.WindowManager.Core @@ -5389,7 +5855,7 @@ setBrightness(brightness: number, callback: AsyncCallback<void>): void 设置屏幕亮度值,使用callback异步回调。 > **说明:** -> +> > 从 API version 6开始支持,从API version 9开始废弃,推荐使用[setWindowBrightness()](#setwindowbrightness9)。 **系统能力:** SystemCapability.WindowManager.WindowManager.Core @@ -5421,7 +5887,7 @@ setBrightness(brightness: number): Promise<void> 设置屏幕亮度值,使用Promise异步回调。 > **说明:** -> +> > 从 API version 6开始支持,从API version 9开始废弃,推荐使用[setWindowBrightness()](#setwindowbrightness9-1)。 **系统能力:** SystemCapability.WindowManager.WindowManager.Core @@ -5457,7 +5923,7 @@ setDimBehind(dimBehindValue: number, callback: AsyncCallback<void>): void 窗口叠加时,设备有子窗口的情况下设置靠后的窗口的暗度值,使用callback异步回调。 > **说明:** -> +> > 该接口不支持使用。从 API version 7开始支持,从API version 9开始废弃。 **系统能力:** SystemCapability.WindowManager.WindowManager.Core @@ -5488,7 +5954,7 @@ setDimBehind(dimBehindValue: number): Promise<void> 窗口叠加时,设备有子窗口的情况下设置靠后的窗口的暗度值,使用Promise异步回调。 > **说明:** -> +> > 该接口不支持使用。从 API version 7开始支持,从API version 9开始废弃。 **系统能力:** SystemCapability.WindowManager.WindowManager.Core @@ -5523,7 +5989,7 @@ setFocusable(isFocusable: boolean, callback: AsyncCallback<void>): void 设置点击时是否支持切换焦点窗口,使用callback异步回调。 > **说明:** -> +> > 从 API version 7开始支持,从API version 9开始废弃,推荐使用[setWindowFocusable()](#setwindowfocusable9)。 **系统能力:** SystemCapability.WindowManager.WindowManager.Core @@ -5555,7 +6021,7 @@ setFocusable(isFocusable: boolean): Promise<void> 设置点击时是否支持切换焦点窗口,使用Promise异步回调。 > **说明:** -> +> > 从 API version 7开始支持,从API version 9开始废弃,推荐使用[setWindowFocusable()](#setwindowfocusable9-1)。 **系统能力:** SystemCapability.WindowManager.WindowManager.Core @@ -5591,7 +6057,7 @@ setKeepScreenOn(isKeepScreenOn: boolean, callback: AsyncCallback<void>): v 设置屏幕是否为常亮状态,使用callback异步回调。 > **说明:** -> +> > 从 API version 6开始支持,从API version 9开始废弃,推荐使用[setWindowKeepScreenOn()](#setwindowkeepscreenon9)。 **系统能力:** SystemCapability.WindowManager.WindowManager.Core @@ -5623,7 +6089,7 @@ setKeepScreenOn(isKeepScreenOn: boolean): Promise<void> 设置屏幕是否为常亮状态,使用Promise异步回调。 > **说明:** -> +> > 从 API version 6开始支持,从API version 9开始废弃,推荐使用[setWindowKeepScreenOn()](#setwindowkeepscreenon9-1)。 **系统能力:** SystemCapability.WindowManager.WindowManager.Core @@ -5659,7 +6125,7 @@ setOutsideTouchable(touchable: boolean, callback: AsyncCallback<void>): vo 设置是否允许可点击子窗口之外的区域,使用callback异步回调。 > **说明:** -> +> > 该接口不支持使用。从 API version 7开始支持,从API version 9开始废弃。 **系统能力:** SystemCapability.WindowManager.WindowManager.Core @@ -5690,7 +6156,7 @@ setOutsideTouchable(touchable: boolean): Promise<void> 设置是否允许可点击子窗口之外的区域,使用Promise异步回调。。 > **说明:** -> +> > 该接口不支持使用。从 API version 7开始支持,从API version 9开始废弃。 **系统能力:** SystemCapability.WindowManager.WindowManager.Core @@ -5725,7 +6191,7 @@ setPrivacyMode(isPrivacyMode: boolean, callback: AsyncCallback<void>): voi 设置窗口是否为隐私模式,使用callback异步回调。设置为隐私模式的窗口,窗口内容将无法被截屏或录屏。 > **说明:** -> +> > 从 API version 7开始支持,从API version 9开始废弃,推荐使用[setWindowPrivacyMode()](#setwindowprivacymode9)。 **系统能力:** SystemCapability.WindowManager.WindowManager.Core @@ -5757,7 +6223,7 @@ setPrivacyMode(isPrivacyMode: boolean): Promise<void> 设置窗口是否为隐私模式,使用Promise异步回调。设置为隐私模式的窗口,窗口内容将无法被截屏或录屏。 > **说明:** -> +> > 从 API version 7开始支持,从API version 9开始废弃,推荐使用[setWindowPrivacyMode()](#setwindowprivacymode9-1)。 **系统能力:** SystemCapability.WindowManager.WindowManager.Core @@ -5793,7 +6259,7 @@ setTouchable(isTouchable: boolean, callback: AsyncCallback<void>): void 设置窗口是否为可触状态,使用callback异步回调。 > **说明:** -> +> > 从 API version 7开始支持,从API version 9开始废弃,推荐使用[setWindowTouchable()](#setwindowtouchable9)。 **系统能力:** SystemCapability.WindowManager.WindowManager.Core @@ -5825,7 +6291,7 @@ setTouchable(isTouchable: boolean): Promise<void> 设置窗口是否为可触状态,使用Promise异步回调。 > **说明:** -> +> > 从 API version 7开始支持,从API version 9开始废弃,推荐使用[setWindowTouchable()](#setwindowtouchable9-1)。 **系统能力:** SystemCapability.WindowManager.WindowManager.Core @@ -6653,7 +7119,7 @@ controller.animationForShown = (context : window.TransitionContext) => { playMode: PlayMode.Normal, // 动画模式 onFinish: ()=> { context.completeTransition(true) - } + } }, () => { let obj : window.TranslateOptions = { x : 100.0, @@ -6699,7 +7165,7 @@ controller.animationForHidden = (context : window.TransitionContext) => { playMode: PlayMode.Normal, // 动画模式 onFinish: ()=> { context.completeTransition(true) - } + } }, () => { let obj : window.TranslateOptions = { x : 100.0, diff --git a/zh-cn/application-dev/reference/arkui-js/js-components-common-mediaquery.md b/zh-cn/application-dev/reference/arkui-js/js-components-common-mediaquery.md index 21656fe3a4336767ab938112c52ab59565933213..874bda123dc414f535574fa14ea5b1fb1237a369 100644 --- a/zh-cn/application-dev/reference/arkui-js/js-components-common-mediaquery.md +++ b/zh-cn/application-dev/reference/arkui-js/js-components-common-mediaquery.md @@ -109,9 +109,9 @@ | dark-mode6+ | 系统为深色模式时为true,否则为false。 | -## 示例代码 +## 通用媒体特征示例代码 -- 通用媒体特征示例代码: +多个.container中的所写的属性个数以及类型需要相同,若不相同会导致显示异常。 ```html diff --git a/zh-cn/application-dev/reference/arkui-ts/figures/TabBarStyle.jpeg b/zh-cn/application-dev/reference/arkui-ts/figures/TabBarStyle.jpeg new file mode 100644 index 0000000000000000000000000000000000000000..870c385e4600b1ddc9f92fd929be59022c3ef781 Binary files /dev/null and b/zh-cn/application-dev/reference/arkui-ts/figures/TabBarStyle.jpeg differ diff --git a/zh-cn/application-dev/reference/arkui-ts/figures/zh-cn_image_0000001194192434.png b/zh-cn/application-dev/reference/arkui-ts/figures/zh-cn_image_0000001194192434.png index f5cd637e5bf9db13e3334ca00413e3a91412c813..d2d75c22fdc20c39349b1397b52fb156a454d894 100644 Binary files a/zh-cn/application-dev/reference/arkui-ts/figures/zh-cn_image_0000001194192434.png and b/zh-cn/application-dev/reference/arkui-ts/figures/zh-cn_image_0000001194192434.png differ diff --git a/zh-cn/application-dev/reference/arkui-ts/figures/zh-cn_image_0000001238832405.png b/zh-cn/application-dev/reference/arkui-ts/figures/zh-cn_image_0000001238832405.png old mode 100644 new mode 100755 index f5cd637e5bf9db13e3334ca00413e3a91412c813..d2d75c22fdc20c39349b1397b52fb156a454d894 Binary files a/zh-cn/application-dev/reference/arkui-ts/figures/zh-cn_image_0000001238832405.png and b/zh-cn/application-dev/reference/arkui-ts/figures/zh-cn_image_0000001238832405.png differ diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-button.md b/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-button.md index c072a4cf54fec80813302d637c748ca382a60306..3579acfe447e6c34457ea9337d0502357c9d5a43 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-button.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-button.md @@ -51,7 +51,7 @@ | Normal | 普通按钮(默认不带圆角)。 | > **说明:** -> - 按钮圆角通过[通用属性borderRadius](ts-universal-attributes-border.md)设置(不支持通过border接口设置圆角)。 +> - 按钮圆角通过[通用属性borderRadius](ts-universal-attributes-border.md)设置(不支持通过border接口设置圆角),且只支持设置一个相同的圆角。 > - 当按钮类型为Capsule时,borderRadius设置不生效,按钮圆角始终为高度的一半。 > - 当按钮类型为Circle时,borderRadius即为按钮半径,若未设置borderRadius按钮半径则为宽、高中较小值的一半。 > - 按钮文本通过[通用文本样式](ts-universal-attributes-text-style.md)进行设置。 diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-datepicker.md b/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-datepicker.md index 74c48383609667735a7bd7a1ef1e9adf97f80a00..23ee9d666a1cb8a15ca1edb1db80957ed70c23f6 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-datepicker.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-datepicker.md @@ -19,6 +19,7 @@ DatePicker(options?: {start?: Date, end?: Date, selected?: Date}) 根据指定范围的Date创建可以选择日期的滑动选择器。 **参数:** + | 参数名 | 参数类型 | 必填 | 参数描述 | | -------- | -------- | ------------- | -------- | | start | Date | 否 | 指定选择器的起始日期。
默认值:Date('1970-1-1') | diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-image.md b/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-image.md index bc6a54e414a7fff721138d60240d8f28cdaf3335..2856ea7dd00b07f36b009b66db67ec7642084244 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-image.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-image.md @@ -53,7 +53,7 @@ Image(src: string | PixelMap | Resource) > **说明:** > > 使用快捷组合键对Image组件复制的前提是,该组件必须处于获焦状态。将Image组件的属性focusable设置为true,即可使用TAB键将焦点切换到Image组件上,再将Image组件的focusOnTouch属性设置为true,即可实现点击获焦。 -> 图片设置svg图源时,支持的标签范围有限,目前支持的svg标签包括svg、rect、circle、ellipse、path、line、polyline、polygon、animate、animateMotion、animateTransform。 +> 图片设置svg图源时,支持的标签范围有限,目前支持的svg标签包括svg、rect、circle、ellipse、path、line、polyline、polygon、animate。 ### ImageInterpolation diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-remotewindow.md b/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-remotewindow.md index 52f18fce48e8bf6c8c2cd2db419771cb3af3996c..a378f85c11918c041547ec2067becc5f7e45c0b9 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-remotewindow.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-remotewindow.md @@ -19,11 +19,13 @@ RemoteWindow(target: WindowAnimationTarget) 通过窗口动画对象创建组件。 **参数:** + | 参数名 | 参数类型 | 必填 | 参数描述 | | -------- | -------- | --------------- | -------- | | target | [WindowAnimationTarget](#windowanimationtarget) | 是 | 需要控制的动画窗口的描述。 | ## WindowAnimationTarget + 目标窗口,用来远程控制实现动画。 | 参数 | 类型 | 描述 | @@ -34,6 +36,7 @@ RemoteWindow(target: WindowAnimationTarget) | missionId | number | 任务ID。| ## RRect + 圆角矩形。 | 参数 | 类型 | 描述 | diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-scrollbar.md b/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-scrollbar.md index b300a6a2ab18d2453b685c998e9059eb7466a8eb..fe680d987c2ac0dcea2deba8d22b63c0ba34f4bd 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-scrollbar.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-scrollbar.md @@ -25,6 +25,7 @@ ScrollBar(value: { scroller: Scroller, direction?: ScrollBarDirection, state?: B | state | [BarState](ts-appendix-enums.md#barstate) | 否 | 滚动条状态。
默认值:BarState.Auto | > **说明:** +> > ScrollBar组件负责定义可滚动区域的行为样式,ScrollBar的子节点负责定义滚动条的行为样式。 > > 滚动条组件与可滚动组件通过Scroller进行绑定,且只有当两者方向相同时,才能联动,ScrollBar与可滚动组件仅支持一对一绑定。 diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-slider.md b/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-slider.md index 647260276e3dba7f7954b38e0fe5d3ca2d557875..c8d7d5482648345ceedf04c6b5036ed2b6655e6d 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-slider.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-slider.md @@ -24,7 +24,7 @@ Slider(options?: {value?: number, min?: number, max?: number, step?: number, sty | min | number | 否 | 设置最小值。
默认值:0 | | max | number | 否 | 设置最大值。
默认值:100 | | step | number | 否 | 设置Slider滑动步长。
默认值:1
取值范围:[0.01, max] | -| style | SliderStyle | 否 | 设置Slider的滑块与滑轨显示样式。
默认值:SliderStyle.OutSet | +| style | [SliderStyle](#sliderstyle枚举说明) | 否 | 设置Slider的滑块与滑轨显示样式。
默认值:SliderStyle.OutSet | | direction8+ | [Axis](ts-appendix-enums.md#axis) | 否 | 设置滑动条滑动方向为水平或竖直方向。
默认值:Axis.Horizontal | | reverse8+ | boolean | 否 | 设置滑动条取值范围是否反向,横向Slider默认为从左往右滑动,竖向Slider默认为从上往下滑动。
默认值:false | diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-stepper.md b/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-stepper.md index fd1a49a370bc272652fe1b5152f1730e7c5addb4..d760fd4e4108b59cbc51164f0ee5ba4ffc9d3425 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-stepper.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-stepper.md @@ -34,10 +34,10 @@ Stepper(value?: { index?: number }) | 名称 | 描述 | | -------- | -------- | -| onFinish(callback: () => void) | 步骤导航器最后一个StepperItem的nextLabel被点击时触发该回调 。 | +| onFinish(callback: () => void) | 步骤导航器最后一个StepperItem的nextLabel被点击时,并且ItemState属性为Normal时,触发该回调 。 | | onSkip(callback: () => void) | 当前显示的StepperItem状态为ItemState.Skip时,nextLabel被点击时触发该回调。 | -| onChange(callback: (prevIndex?: number, index?: number) => void) | 点击当前StepperItem的prevLabel或nextLabel进行步骤切换时触发该回调。
- prevIndex:切换前的步骤页索引值。
- index:切换后的步骤页(前一页或者下一页)索引值。 | -| onNext(callback: (index?: number, pendingIndex?: number) => void) | 点击StepperItem的nextLabel切换下一步骤时触发该回调。
- index:当前步骤页索引值。
- pendingIndex:下一步骤页索引值。 | +| onChange(callback: (prevIndex?: number, index?: number) => void) | 点击当前StepperItem的prevLabel进行步骤切换时触发该回调;或点击当前StepperItem的nextLabel,当前页面不为步骤导航器最后一个StepperItem且ItemState属性为Normal时,触发该回调。
- prevIndex:切换前的步骤页索引值。
- index:切换后的步骤页(前一页或者下一页)索引值。 | +| onNext(callback: (index?: number, pendingIndex?: number) => void) | 点击StepperItem的nextLabel切换下一步骤时,当前页面不为步骤导航器最后一个StepperItem且ItemState属性为Normal时,触发该回调。
- index:当前步骤页索引值。
- pendingIndex:下一步骤页索引值。 | | onPrevious(callback: (index?: number, pendingIndex?: number) => void) | 点击StepperItem的prevLabel切换上一步骤时触发该回调。
- index:当前步骤页索引值。
- pendingIndex:上一步骤页索引值。 | diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-stepperitem.md b/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-stepperitem.md index 9141c2052e93f441f40ae1aefa21837d9eb19ff6..16eca00028f791c505086f8f54d8d305cc3e8f74 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-stepperitem.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-stepperitem.md @@ -33,7 +33,7 @@ StepperItem() | Normal | 0 |正常状态,右侧文本按钮正常显示,可点击进入下一个StepperItem。 | | Disabled | 1 |不可用状态,右侧文本按钮灰度显示,不可点击进入下一个StepperItem。 | | Waiting | 2 | 等待状态,右侧文本按钮不显示,显示等待进度条,不可点击进入下一个StepperItem。 | -| Skip | 3 |跳过状态,右侧文本按钮显示“跳过”,此时可在Stepper的onSkip回调中自定义相关逻辑。 | +| Skip | 3 |跳过状态,右侧文本按钮默认显示“跳过”,此时可在Stepper的onSkip回调中自定义相关逻辑。 | ## 示例 diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-text.md b/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-text.md index 79498c8d67311ba7ff356a9c90e8358c80dd6c1d..5431ce7579ab88a9d4972bd4fde5c47b5ae5179d 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-text.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-text.md @@ -28,15 +28,15 @@ Text(content?: string | Resource) | 名称 | 参数类型 | 描述 | | ----------------------- | ----------------------------------- | ------------------------------------------- | -| textAlign | [TextAlign](ts-appendix-enums.md#textalign) | 设置文本在水平方向的对齐方式。
默认值:TextAlign.Start | +| textAlign | [TextAlign](ts-appendix-enums.md#textalign) | 设置文本段落在水平方向的对齐方式
默认值:TextAlign.Start
说明:
文本段落宽度占满Text组件宽度;可通过[align](ts-universal-attributes-location.md)属性控制文本段落在垂直方向上的位置。 | | textOverflow | {overflow: [TextOverflow](ts-appendix-enums.md#textoverflow)} | 设置文本超长时的显示方式。
默认值:{overflow: TextOverflow.Clip}
**说明:**
文本截断是按字截断。例如,英文以单词为最小单位进行截断,若需要以字母为单位进行截断,可在字母间添加零宽空格:\u200B。
需配合`maxLines`使用,单独设置不生效。 | | maxLines | number | 设置文本的最大行数。
默认值:Infinity
**说明:**
默认情况下,文本是自动折行的,如果指定此参数,则文本最多不会超过指定的行。如果有多余的文本,可以通过 `textOverflow`来指定截断方式。 | | lineHeight | string \| number \| [Resource](ts-types.md#resource) | 设置文本的文本行高,设置值不大于0时,不限制文本行高,自适应字体大小,Length为number类型时单位为fp。 | | decoration | {
type: [TextDecorationType](ts-appendix-enums.md#textdecorationtype),
color?: [ResourceColor](ts-types.md#resourcecolor)
} | 设置文本装饰线样式及其颜色。
默认值:{
type: TextDecorationType.None,
color:Color.Black
} | | baselineOffset | number \| string | 设置文本基线的偏移量,默认值0。 | | letterSpacing | number \| string | 设置文本字符间距。 | -| minFontSize | number \| string \| [Resource](ts-types.md#resource) | 设置文本最小显示字号。 | -| maxFontSize | number \| string \| [Resource](ts-types.md#resource) | 设置文本最大显示字号。 | +| minFontSize | number \| string \| [Resource](ts-types.md#resource) | 设置文本最小显示字号。
需配合maxFontSize以及maxline或布局大小限制使用,单独设置不生效。 | +| maxFontSize | number \| string \| [Resource](ts-types.md#resource) | 设置文本最大显示字号。
需配合minFontSize以及maxline或布局大小限制使用,单独设置不生效。 | | textCase | [TextCase](ts-appendix-enums.md#textcase) | 设置文本大小写。
默认值:TextCase.Normal | | copyOption9+ | [CopyOptions](ts-appendix-enums.md#copyoptions9) | 组件支持设置文本是否可复制粘贴。
默认值:CopyOptions.None | diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-textinput.md b/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-textinput.md index 8f9a28d3e5e49f695200372404fb9fdedcf40072..dda20d99a30be6965863aa882ef01c1a6fb41fb4 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-textinput.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-textinput.md @@ -92,7 +92,7 @@ TextInput组件的控制器。 ``` controller: TextInputController = new TextInputController() ``` -### caretPosition +### caretPosition8+ caretPosition(value: number): void diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-toggle.md b/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-toggle.md index e00ea4bb7aeef7efb1f3b681563dcb37af8ef39a..e82389ae717ae5ca876dd07954276f49af52df95 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-toggle.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-toggle.md @@ -30,9 +30,9 @@ Toggle(options: { type: ToggleType, isOn?: boolean }) ## ToggleType枚举说明 | 名称 | 描述 | | -------- | ---------------- | -| Checkbox | 提供单选框样式。
> **说明:**
> [通用属性padding](ts-universal-attributes-size.md)的默认值为:
{
 top: 14 vp,
 right: 6 vp,
 bottom: 14 vp,
 left: 6 vp
} | +| Checkbox | 提供单选框样式。
**说明:**
[通用属性padding](ts-universal-attributes-size.md)的默认值为:
{
 top: 14 vp,
 right: 6 vp,
 bottom: 14 vp,
 left: 6 vp
} | | Button | 提供状态按钮样式,如果子组件有文本设置,则相应的文本内容会显示在按钮内部。 | -| Switch | 提供开关样式。
> **说明:**
> [通用属性padding](ts-universal-attributes-size.md)默认值为:
{
 top: 12 vp,
 right: 12 vp,
 bottom: 12 vp,
 left: 12 vp
} | +| Switch | 提供开关样式。
**说明:**
[通用属性padding](ts-universal-attributes-size.md)默认值为:
{
 top: 12 vp,
 right: 12 vp,
 bottom: 12 vp,
 left: 12 vp
} | ## 属性 @@ -40,7 +40,7 @@ Toggle(options: { type: ToggleType, isOn?: boolean }) | 名称 | 参数 | 参数描述 | | ---------------- | --------------------------- | ---------------------- | | selectedColor | [ResourceColor](ts-types.md#resourcecolor) | 设置组件打开状态的背景颜色。 | -| switchPointColor | [ResourceColor](ts-types.md#resourcecolor) | 设置Switch类型的圆形滑块颜色。
> **说明:**
> 仅对type为ToggleType.Switch生效。 | +| switchPointColor | [ResourceColor](ts-types.md#resourcecolor) | 设置Switch类型的圆形滑块颜色。
**说明:**
仅对type为ToggleType.Switch生效。 | ## 事件 diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-web.md b/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-web.md index 32cd9333f37dd48ea86b81c0e4bdda6cbb2d34fe..ae246a09ee6db917abb138bbb6b9d4766b8cf6ad 100755 --- a/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-web.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-web.md @@ -21,6 +21,7 @@ Web(options: { src: ResourceStr, controller: WebController | WebviewController}) > **说明:** > > 不支持转场动画。 +> 同一页面的多个web组件,必须绑定不同的WebController。 **参数:** @@ -1557,7 +1558,7 @@ onDownloadStart(callback: (event?: { url: string, userAgent: string, contentDisp onErrorReceive(callback: (event?: { request: WebResourceRequest, error: WebResourceError }) => void) -网页加载遇到错误时触发该回调。出于性能考虑,建议此回调中尽量执行简单逻辑。 +网页加载遇到错误时触发该回调。出于性能考虑,建议此回调中尽量执行简单逻辑。在无网络的情况下,触发此回调。 **参数:** @@ -1968,7 +1969,7 @@ onScaleChange(callback: (event: {oldScale: number, newScale: number}) => void) onUrlLoadIntercept(callback: (event?: { data:string | WebResourceRequest }) => boolean) -当Web组件加载url之前触发该回调,用于是否阻止此次访问。 +当Web组件加载url之前触发该回调,用于判断是否阻止此次访问。默认允许加载。 **参数:** @@ -2344,8 +2345,8 @@ onScroll(callback: (event: {xOffset: number, yOffset: number}) => void) | 参数名 | 参数类型 | 参数描述 | | ------- | ------ | ------------ | -| xOffset | number | 水平滚动条滚动所在位置。 | -| yOffset | number | 竖直滚动条滚动所在位置。 | +| xOffset | number | 以网页最左端为基准,水平滚动条滚动所在位置。 | +| yOffset | number | 以网页最上端为基准,竖直滚动条滚动所在位置。 | **示例:** @@ -2686,7 +2687,7 @@ onPageVisible(callback: (event: {url: string}) => void) onInterceptKeyEvent(callback: (event: KeyEvent) => boolean) -设置键盘事件的回调函数,该回调在被Webview消费前触发。 +设置键盘事件的回调函数,该回调在被Webview使用前触发。 **参数:** @@ -4270,7 +4271,7 @@ zoom(factor: number): void ### zoomIn9+ zoomIn(): boolean -调用此接口将当前网页进行放大,比列20%。 +调用此接口将当前网页进行放大,比例为20%。 **返回值:** @@ -4303,7 +4304,7 @@ zoomIn(): boolean ### zoomOut9+ zoomOut(): boolean -调用此接口将当前网页进行缩小,比列20%。 +调用此接口将当前网页进行缩小,比例为20%。 **返回值:** diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-canvasrenderingcontext2d.md b/zh-cn/application-dev/reference/arkui-ts/ts-canvasrenderingcontext2d.md index ee45032d388956ec54d2e1d17777937cd30911c5..ab087aae4ced940c2f12d93ada61a66b0ee2fed6 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-canvasrenderingcontext2d.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-canvasrenderingcontext2d.md @@ -388,11 +388,11 @@ struct GlobalAlpha { .height('100%') .backgroundColor('#ffff00') .onReady(() =>{ - this.context.fillStyle = 'rgb(255,0,0)' - this.context.fillRect(0, 0, 50, 50) - this.context.globalAlpha = 0.4 - this.context.fillStyle = 'rgb(0,0,255)' - this.context.fillRect(50, 50, 50, 50) + this.context.fillStyle = 'rgb(0,0,255)' + this.context.fillRect(0, 0, 50, 50) + this.context.globalAlpha = 0.4 + this.context.fillStyle = 'rgb(0,0,255)' + this.context.fillRect(50, 50, 50, 50) }) } .width('100%') diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-combined-gestures.md b/zh-cn/application-dev/reference/arkui-ts/ts-combined-gestures.md index ec9d2e8021068ffde8cf932df2ca0fea5612f381..7c297ede50ec17263b9a6979cb34e9305941c351 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-combined-gestures.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-combined-gestures.md @@ -6,18 +6,19 @@ > > 从API Version 7开始支持。后续版本如有新增内容,则采用上角标单独标记该内容的起始版本。 - ## 接口 GestureGroup(mode: GestureMode, ...gesture: GestureType[]) -- 参数 - | 参数名 | 参数类型 | 必填 | 默认值 | 参数描述 | - | -------- | -------- | -------- | -------- | -------- | - | mode | [GestureMode](#gesturemode枚举说明) | 是 | - | 设置组合手势识别模式。 | - | gesture | [TapGesture](ts-basic-gestures-tapgesture.md)
\| [LongPressGesture](ts-basic-gestures-longpressgesture.md)
\| [PanGesture](ts-basic-gestures-pangesture.md)
\| [PinchGesture](ts-basic-gestures-pinchgesture.md)
\| [RotationGesture](ts-basic-gestures-rotationgesture.md) | 是 | - | 可变长参数,1个或者多个基础手势类型,这些手势会被组合识别。 | +**参数:** + +| 参数名 | 参数类型 | 必填 | 参数描述 | +| -------- | -------- | -------- | -------- | +| mode | [GestureMode](#gesturemode枚举说明) | 是 | 设置组合手势识别模式。 | +| gesture | [TapGesture](ts-basic-gestures-tapgesture.md)
\| [LongPressGesture](ts-basic-gestures-longpressgesture.md)
\| [PanGesture](ts-basic-gestures-pangesture.md)
\| [PinchGesture](ts-basic-gestures-pinchgesture.md)
\| [RotationGesture](ts-basic-gestures-rotationgesture.md) | 是 | 可变长参数,1个或者多个基础手势类型,这些手势会被组合识别。 | ## GestureMode枚举说明 + | 名称 | 描述 | | -------- | -------- | | Sequence | 顺序识别,按照手势的注册顺序识别手势,直到所有手势识别成功。当有一个手势识别失败时,所有手势识别失败。 | diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-container-badge.md b/zh-cn/application-dev/reference/arkui-ts/ts-container-badge.md index e359c9adfa14fd1309eb46f4b7fa8a17f950490b..d26cadcd3f509f6438c97c71d345e5a65413ee64 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-container-badge.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-container-badge.md @@ -19,6 +19,7 @@ 创建数字标记组件。 **参数:** + | 参数名 | 参数类型 | 必填 | 默认值 | 参数描述 | | -------- | -------- | -------- | -------- | -------- | | count | number | 是 | - | 设置提醒消息数。 | diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-container-columnsplit.md b/zh-cn/application-dev/reference/arkui-ts/ts-container-columnsplit.md index 0ba38047bab43cbe3a266697f64ad1aa783d35cc..e035856a4c9b0c71dfad2d881c2e8639061841b7 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-container-columnsplit.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-container-columnsplit.md @@ -25,6 +25,7 @@ ColumnSplit() | resizeable | boolean | 分割线是否可拖拽,默认为false。 | > **说明:** +> > 与RowSplit相同,ColumnSplit的分割线最小能拖动到刚好包含子组件。 > > 在真机中查看拖动效果,预览器中不支持拖动。 diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-container-flex.md b/zh-cn/application-dev/reference/arkui-ts/ts-container-flex.md index b04c09c7804046cfdce174a35b9291371f34ffaa..e2d7be2c2b07b48fa4fafaf1d04eaf003a98fb8b 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-container-flex.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-container-flex.md @@ -3,15 +3,11 @@ 以弹性方式布局子组件的容器组件。 > **说明:** +> > - 该组件从API Version 7开始支持。后续版本如有新增内容,则采用上角标单独标记该内容的起始版本。 > - Flex组件在渲染时存在二次布局过程,因此在对性能有严格要求的场景下建议使用[Column](ts-container-column.md)、[Row](ts-container-row.md)代替。 -## 权限列表 - -无 - - ## 子组件 可以包含子组件。 @@ -23,14 +19,15 @@ Flex(value?: { direction?: FlexDirection, wrap?: FlexWrap, justifyContent?: Fle 标准Flex布局容器。 -- 参数 - | 参数名 | 参数类型 | 必填 | 默认值 | 参数描述 | - | -------------- | ---------------------------------------- | ---- | ----------------- | ---------------------------------------- | - | direction | [FlexDirection](ts-appendix-enums.md#flexdirection) | 否 | FlexDirection.Row | 子组件在Flex容器上排列的方向,即主轴的方向。 | - | wrap | [FlexWrap](ts-appendix-enums.md#flexwrap) | 否 | FlexWrap.NoWrap | Flex容器是单行/列还是多行/列排列。 | - | justifyContent | [FlexAlign](ts-appendix-enums.md#flexalign) | 否 | FlexAlign.Start | 子组件在Flex容器主轴上的对齐格式。 | - | alignItems | [ItemAlign](ts-appendix-enums.md#itemalign) | 否 | ItemAlign.Start | 子组件在Flex容器交叉轴上的对齐格式。 | - | alignContent | [FlexAlign](ts-appendix-enums.md#flexalign) | 否 | FlexAlign.Start | 交叉轴中有额外的空间时,多行内容的对齐方式。仅在wrap为Wrap或WrapReverse下生效。 | +**参数:** + +| 参数名 | 参数类型 | 必填 | 默认值 | 参数描述 | +| -------------- | ---------------------------------------- | ---- | ----------------- | ---------------------------------------- | +| direction | [FlexDirection](ts-appendix-enums.md#flexdirection) | 否 | FlexDirection.Row | 子组件在Flex容器上排列的方向,即主轴的方向。 | +| wrap | [FlexWrap](ts-appendix-enums.md#flexwrap) | 否 | FlexWrap.NoWrap | Flex容器是单行/列还是多行/列排列。 | +| justifyContent | [FlexAlign](ts-appendix-enums.md#flexalign) | 否 | FlexAlign.Start | 子组件在Flex容器主轴上的对齐格式。 | +| alignItems | [ItemAlign](ts-appendix-enums.md#itemalign) | 否 | ItemAlign.Start | 子组件在Flex容器交叉轴上的对齐格式。 | +| alignContent | [FlexAlign](ts-appendix-enums.md#flexalign) | 否 | FlexAlign.Start | 交叉轴中有额外的空间时,多行内容的对齐方式。仅在wrap为Wrap或WrapReverse下生效。 | ## 示例 diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-container-grid.md b/zh-cn/application-dev/reference/arkui-ts/ts-container-grid.md index 34342bef756369527367d85e11077db6fae4cf73..ef8f2337eab6c6962066120ba4f6af42c41c42d0 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-container-grid.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-container-grid.md @@ -17,6 +17,7 @@ Grid(scroller?: Scroller) **参数:** + | 参数名 | 参数类型 | 必填 | 参数描述 | | --------- | ---------------------------------------- | ---- | ----------------------- | | scroller | [Scroller](ts-container-scroll.md#scroller) | 否 | 可滚动组件的控制器。用于与可滚动组件进行绑定。 | diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-container-griditem.md b/zh-cn/application-dev/reference/arkui-ts/ts-container-griditem.md index b0b5e850a53ded55096e78a46609d02caa284381..f4f82074eaf4218b0b25402aa70cfdb119eb004f 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-container-griditem.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-container-griditem.md @@ -25,7 +25,7 @@ GridItem() | rowEnd | number | 指定当前元素终点行号。 | | columnStart | number | 指定当前元素起始列号。 | | columnEnd | number | 指定当前元素终点列号。 | -| forceRebuild | boolean | 设置在触发组件build时是否重新创建此节点。
默认值:false | +| forceRebuild(deprecated) | boolean | 设置在触发组件build时是否重新创建此节点。
从API version9开始废弃。GridItem会根据自身属性和子组件变化自行决定是否需要重新创建,无需设置。
默认值:false | | selectable8+ | boolean | 当前GridItem元素是否可以被鼠标框选。
>  **说明:**
> 外层Grid容器的鼠标框选开启时,GridItem的框选才生效。
默认值:true | @@ -67,7 +67,7 @@ struct GridItemExample { .width('100%') .height('100%') .textAlign(TextAlign.Center) - }.forceRebuild(false) + } }, item => item) GridItem() { diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-container-gridrow.md b/zh-cn/application-dev/reference/arkui-ts/ts-container-gridrow.md index 75e927bf604194c4d19b99c2a291b8cd94c1876d..85e356b91ecdc865041301182ec39d1381029678 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-container-gridrow.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-container-gridrow.md @@ -16,6 +16,7 @@ GridRow(option?: {columns?: number | GridRowColumnOption, gutter?: Length | GutterOption, breakpoints?: BreakPoints, direction?: GridRowDirection}) **参数:** + | 参数名 |类型|必填|说明| |-----|-----|----|----| |gutter|Length \| GutterOption| 否 |栅格布局间距,x代表水平方向。| diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-container-listitemgroup.md b/zh-cn/application-dev/reference/arkui-ts/ts-container-listitemgroup.md index 3b3fcb3d9162b8de5d6075cf2e01dc120ad87d90..29d42b8de0840788b1f4fe13b94986ad3d337790 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-container-listitemgroup.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-container-listitemgroup.md @@ -5,7 +5,9 @@ > **说明:** > > 该组件从API Version 9开始支持。后续版本如有新增内容,则采用上角标单独标记该内容的起始版本。 + ## 使用说明 + 当ListItemGroup的父组件List的listDirection属性为Axis.Vertical时,不允许设置ListItemGroup组件的height属性。ListItemGroup的高度为header高度、footer高度和所有ListItem布局后总高度之和。当父组件List的listDirection属性为Axis.Horizontal时,不允许设置ListItemGroup组件的width属性。ListItemGroup的宽度为header宽度、footer宽度和所有ListItem布局后总宽度之和。 当前ListItemGroup内部的ListItem组件不支持编辑、框选、拖拽功能,即ListItem组件的editable、selectable属性不生效。 diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-container-rowsplit.md b/zh-cn/application-dev/reference/arkui-ts/ts-container-rowsplit.md index 7dd5e6a524d1c5bb4b224647e8d08be1a2481424..da4043d3bf0612b044344ba91e947b2d52cb80f6 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-container-rowsplit.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-container-rowsplit.md @@ -22,6 +22,7 @@ RowSplit() | resizeable | boolean | 分割线是否可拖拽,默认为false。 | > **说明:** +> > RowSplit的分割线最小能拖动到刚好包含子组件。 > > 在真机中查看拖动效果,预览器中不支持拖动。 diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-container-tabcontent.md b/zh-cn/application-dev/reference/arkui-ts/ts-container-tabcontent.md index 1c61f55bd76dd289c0ee6cef06bde7ac990fd8e3..8a2612b58f05f0642f203113e8f6ab60746b4256 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-container-tabcontent.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-container-tabcontent.md @@ -24,12 +24,45 @@ TabContent() | 名称 | 参数类型 | 描述 | | -------- | -------- | -------- | | tabBar | string \| Resource \| {
icon?: string \| Resource,
text?: string \| Resource
}
\| [CustomBuilder](ts-types.md)8+ | 设置TabBar上显示内容。
CustomBuilder: 构造器,内部可以传入组件(API8版本以上适用)。
>  **说明:**
> 如果icon采用svg格式图源,则要求svg图源删除其自有宽高属性值。如采用带有自有宽高属性的svg图源,icon大小则是svg本身内置的宽高属性值大小。 | +| tabBar9+ | [SubTabBarStyle](#subtabbarstyle) \| [BottomTabBarStyle](#bottomtabbarstyle) | 设置TabBar上显示内容。
SubTabBarStyle: 子页签样式,参数为文字。
BottomTabBarStyle: 底部页签和侧边页签样式,参数为文字和图片。 | > **说明:** > - TabContent组件不支持设置通用宽度属性,其宽度默认撑满Tabs父组件。 > - TabContent组件不支持设置通用高度属性,其高度由Tabs父组件高度与TabBar组件高度决定。 > - TabContent组件不支持[触摸热区设置](ts-universal-attributes-touch-target.md)。 +## SubTabBarStyle9+ + +子页签样式。 + +### constructor9+ + +constructor(content: string | Resource) + +SubTabBarStyle的构造函数。 + +**参数:** + +| 参数名 | 参数类型 | 必填 | 参数描述 | +| -------- | -------- | -------- | -------- | +| content | string \| [Resource](ts-types.md#resource) | 是 | 页签内的文字内容。 | + +## BottomTabBarStyle9+ + +底部页签和侧边页签样式。 + +### constructor9+ + +constructor(icon: string | Resource, text: string | Resource) + +BottomTabBarStyle的构造函数。 + +**参数:** + +| 参数名 | 参数类型 | 必填 | 参数描述 | +| -------- | -------- | -------- | -------- | +| icon | string \| [Resource](ts-types.md#resource) | 是 | 页签内的图片内容。 | +| text | string \| [Resource](ts-types.md#resource) | 是 | 页签内的文字内容。 | ## 示例 @@ -193,4 +226,102 @@ struct TabContentExample { } ``` -![tabContent](figures/tabContent2.gif) \ No newline at end of file +![tabContent](figures/tabContent2.gif) + +示例3: + +```ts +// xxx.ets +@Entry +@Component +struct TabBarStyleExample { + build() { + Column({ space: 5 }) { + Text("子页签样式") + Column() { + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Column().width('100%').height('100%').backgroundColor(Color.Pink) + }.tabBar(new SubTabBarStyle('Pink')) + + TabContent() { + Column().width('100%').height('100%').backgroundColor(Color.Yellow) + }.tabBar(new SubTabBarStyle('Yellow')) + + TabContent() { + Column().width('100%').height('100%').backgroundColor(Color.Blue) + }.tabBar(new SubTabBarStyle('Blue')) + + TabContent() { + Column().width('100%').height('100%').backgroundColor(Color.Green) + }.tabBar(new SubTabBarStyle('Green')) + } + .vertical(false) + .scrollable(true) + .barMode(BarMode.Fixed) + .onChange((index: number) => { + console.info(index.toString()) + }) + .width('100%') + .backgroundColor(0xF1F3F5) + }.width('100%').height(200) + Text("底部页签样式") + Column() { + Tabs({ barPosition: BarPosition.End }) { + TabContent() { + Column().width('100%').height('100%').backgroundColor(Color.Pink) + }.tabBar(new BottomTabBarStyle($r('sys.media.ohos_app_icon'), 'pink')) + + TabContent() { + Column().width('100%').height('100%').backgroundColor(Color.Yellow) + }.tabBar(new BottomTabBarStyle($r('sys.media.ohos_app_icon'), 'Yellow')) + + TabContent() { + Column().width('100%').height('100%').backgroundColor(Color.Blue) + }.tabBar(new BottomTabBarStyle($r('sys.media.ohos_app_icon'), 'Blue')) + + TabContent() { + Column().width('100%').height('100%').backgroundColor(Color.Green) + }.tabBar(new BottomTabBarStyle($r('sys.media.ohos_app_icon'), 'Green')) + } + .vertical(false) + .scrollable(true) + .barMode(BarMode.Fixed) + .onChange((index: number) => { + console.info(index.toString()) + }) + .width('100%') + .backgroundColor(0xF1F3F5) + }.width('100%').height(200) + Text("侧边页签样式") + Column() { + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Column().width('100%').height('100%').backgroundColor(Color.Pink) + }.tabBar(new BottomTabBarStyle($r('sys.media.ohos_app_icon'), 'pink')) + + TabContent() { + Column().width('100%').height('100%').backgroundColor(Color.Yellow) + }.tabBar(new BottomTabBarStyle($r('sys.media.ohos_app_icon'), 'Yellow')) + + TabContent() { + Column().width('100%').height('100%').backgroundColor(Color.Blue) + }.tabBar(new BottomTabBarStyle($r('sys.media.ohos_app_icon'), 'Blue')) + + TabContent() { + Column().width('100%').height('100%').backgroundColor(Color.Green) + }.tabBar(new BottomTabBarStyle($r('sys.media.ohos_app_icon'), 'Green')) + } + .vertical(true).scrollable(true).barMode(BarMode.Fixed) + .onChange((index: number) => { + console.info(index.toString()) + }) + .width('100%') + .backgroundColor(0xF1F3F5) + }.width('100%').height(400) + } + } +} +``` + +![tabbarStyle](figures/TabBarStyle.jpeg) diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-container-tabs.md b/zh-cn/application-dev/reference/arkui-ts/ts-container-tabs.md index c90880b34b81165fc0ee143c7a510a379bd8462d..47d0b607cd3925d36c86a35043630b0a5e21f174 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-container-tabs.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-container-tabs.md @@ -43,7 +43,7 @@ Tabs(value?: {barPosition?: BarPosition, index?: number, controller?: [TabsContr | barMode | BarMode | TabBar布局模式,具体描述见BarMode枚举说明。
默认值:BarMode.Fixed | | barWidth | number \| Length8+ | TabBar的宽度值。 | | barHeight | number \| Length8+ | TabBar的高度值。 | -| animationDuration | number | TabContent滑动动画时长。
默认值:200 | +| animationDuration | number | TabContent滑动动画时长。不设置时,点击切换页签无动画,滑动切换有动画;设置时,点击切换和滑动切换都有动画。
默认值:200 | ## BarMode枚举说明 diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-drawing-components-shape.md b/zh-cn/application-dev/reference/arkui-ts/ts-drawing-components-shape.md index 15d655ff27b9b2e468f2509b93b058f3279ad64c..22231ba443c6382fb645d04b9833424324be8e55 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-drawing-components-shape.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-drawing-components-shape.md @@ -145,91 +145,3 @@ struct ShapeExample { ``` ![zh-cn_image_0000001184628104](figures/zh-cn_image_0000001184628104.png) - -### 示例2 - -```ts -// xxx.ets -@Entry -@Component -struct ShapeMeshExample { - @State columnVal: number = 0 - @State rowVal: number = 0 - @State count: number = 0 - @State verts: Array = [] - @State shapeWidth: number = 600 - @State shapeHeight: number = 600 - - build() { - Column() { - Shape() { - Rect() - .width('250px') - .height('250px') - .radiusWidth('10px') - .radiusHeight('10px') - .stroke('10px') - .margin({ left: '10px', top: '10px' }) - .strokeWidth('10px') - .fill(Color.Blue) - Rect() - .width('250px') - .height('250px') - .radiusWidth('10px') - .radiusHeight('10px') - .stroke('10px') - .margin({ left: '270px', top: '10px' }) - .strokeWidth('10px') - .fill(Color.Red) - } - .mesh(this.verts, this.columnVal, this.rowVal) - .width(this.shapeWidth + 'px') - .height(this.shapeHeight + 'px') - // 手指触摸Shape组件时会显示mesh扭曲效果 - .onTouch((event: TouchEvent) => { - var touchX = event.touches[0].x * 2 - var touchY = event.touches[0].y * 2 - this.columnVal = 20 - this.rowVal = 20 - this.count = (this.columnVal + 1) * (this.rowVal + 1) - var orig = [this.count * 2] - var index = 0 - for (var i = 0; i <= this.rowVal; i++) { - var fy = this.shapeWidth * i / this.rowVal - for (var j = 0; j <= this.columnVal; j++) { - var fx = this.shapeWidth * j / this.columnVal - orig[index * 2 + 0] = this.verts[index * 2 + 0] = fx - orig[index * 2 + 1] = this.verts[index * 2 + 1] = fy - index++; - } - } - for (var k = 0; k < this.count * 2; k += 2) { - var dx = touchX - orig[k + 0] - var dy = touchY - orig[k + 1] - var dd = dx * dx + dy * dy - var d = Math.sqrt(dd) - var pull = 80000 / (dd * d) - if (pull >= 1) { - this.verts[k + 0] = touchX - this.verts[k + 1] = touchY - } else { - this.verts[k + 0] = orig[k + 0] + dx * pull - this.verts[k + 1] = orig[k + 1] + dy * pull - } - } - }) - } - .width('600px') - .height('600px') - .border({ width: 3, color: Color.Black }) - } -} -``` - -示意图: - -![zh-cn_image1_0000001184628104](figures/zh-cn_image1_0000001184628104.png) - -手指触摸Shape组件时会显示mesh扭曲效果: - -![zh-cn_image2_0000001184628104](figures/zh-cn_image2_0000001184628104.png) \ No newline at end of file diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-methods-custom-dialog-box.md b/zh-cn/application-dev/reference/arkui-ts/ts-methods-custom-dialog-box.md index c11e5f70b08b5d9ff02c3e7dcaa69da5734fac70..c9550fbd7355c8f35bd790f7619793f73b1f1388 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-methods-custom-dialog-box.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-methods-custom-dialog-box.md @@ -23,7 +23,7 @@ CustomDialogController(value:{builder: CustomDialog, cancel?: () => void, aut | autoCancel | boolean | 否 | 是否允许点击遮障层退出。
默认值:true | | alignment | [DialogAlignment](ts-methods-alert-dialog-box.md#dialogalignment枚举说明) | 否 | 弹窗在竖直方向上的对齐方式。
默认值:DialogAlignment.Default | | offset | [Offset](ts-types.md#offset) | 否 | 弹窗相对alignment所在位置的偏移量。 | -| customStyle | boolean | 否 | 弹窗容器样式是否自定义。
默认值:false | +| customStyle | boolean | 否 | 弹窗容器样式是否自定义。
默认值:false,弹窗容器的宽度根据栅格系统自适应,不跟随子节点;高度自适应子节点,最大为窗口高度的90%;圆角为24vp。 | | gridCount8+ | number | 否 | 弹窗宽度占[栅格宽度](../../ui/ui-ts-layout-grid-container-new.md)的个数。
默认值为4,异常值按默认值处理,最大栅格数为系统最大栅格数。 | diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-methods-datepicker-dialog.md b/zh-cn/application-dev/reference/arkui-ts/ts-methods-datepicker-dialog.md index 50d072a9a221958dc2a7b21aa4608c913bc004fd..f3bd25442f3d688aec59f9ed2c3fb3a445d8398b 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-methods-datepicker-dialog.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-methods-datepicker-dialog.md @@ -20,7 +20,7 @@ show(options?: DatePickerDialogOptions) | start | Date | 否 | Date('1970-1-1') | 设置选择器的起始日期。 | | end | Date | 否 | Date('2100-12-31') | 设置选择器的结束日期。 | | selected | Date | 否 | 当前系统日期 | 设置当前选中的日期。 | -| lunar | boolean | 否 | false | 日期是否显示为农历。 |确定 +| lunar | boolean | 否 | false | 日期是否显示为农历。 | | onAccept | (value: [DatePickerResult](ts-basic-components-datepicker.md#DatePickerResult对象说明)) => void | 否 | - | 点击弹窗中的“确定”按钮时触发该回调。 | | onCancel | () => void | 否 | - | 点击弹窗中的“取消”按钮时触发该回调。 | | onChange | (value: [DatePickerResult](ts-basic-components-datepicker.md#DatePickerResult对象说明)) => void | 否 | - | 滑动弹窗中的滑动选择器使当前选中项改变时触发该回调。 | diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-offscreencanvasrenderingcontext2d.md b/zh-cn/application-dev/reference/arkui-ts/ts-offscreencanvasrenderingcontext2d.md index b8e388139e40a5ae55028d961f815cea92fec36d..732e0cd1f5acb0cb444acd36683b6eed1e256eeb 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-offscreencanvasrenderingcontext2d.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-offscreencanvasrenderingcontext2d.md @@ -407,7 +407,7 @@ struct GlobalAlpha { .height('100%') .backgroundColor('#ffff00') .onReady(() =>{ - this.offContext.fillStyle = 'rgb(255,0,0)' + this.offContext.fillStyle = 'rgb(0,0,255)' this.offContext.fillRect(0, 0, 50, 50) this.offContext.globalAlpha = 0.4 this.offContext.fillStyle = 'rgb(0,0,255)' diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-transition-animation-shared-elements.md b/zh-cn/application-dev/reference/arkui-ts/ts-transition-animation-shared-elements.md index 82fd60584cbbf0dab54f234136342a5a760a8722..a30820399e7e66b72019e7a5a111b3157308a27f 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-transition-animation-shared-elements.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-transition-animation-shared-elements.md @@ -47,7 +47,8 @@ struct SharedTransitionExample { struct pageBExample { build() { Stack() { - Image($r('app.media.ic_health_heart')).width(150).height(150).sharedTransition('sharedImage') + Image($r('app.media.ic_health_heart')).width(150).height(150) + .sharedTransition('sharedImage', { duration: 800, curve: Curve.Linear, delay: 100 }) }.width('100%').height('100%') } } diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-component-id.md b/zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-component-id.md index 12c17eea62759530d4fa7881293319b9e91100b3..f56a0c97957064edf50c2f702a1a2f3bbea8c3a9 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-component-id.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-component-id.md @@ -39,7 +39,7 @@ getInspectorByKey(id: string): string ### getInspectorTree9+ -getInspectorTree(): string +getInspectorTree(): Object 获取组件树及组件属性。 @@ -49,7 +49,7 @@ getInspectorTree(): string | 类型 | 描述 | | ------ | --------------------------- | -| string | 组件树及组件属性列表的JSON字符串。 | +| Object | 组件树及组件属性列表的JSON对象。 | ### sendEventByKey9+ @@ -181,7 +181,7 @@ struct IdExample { }.margin({ top: 20 }) .onClick(() => { console.info(getInspectorByKey("click")) - console.info(getInspectorTree()) + console.info(JSON.stringify(getInspectorTree())) this.text = "Button 'click to start' is clicked" setTimeout(() => { sendEventByKey("longClick", 11, "") // 向id为"longClick"的组件发送长按事件 diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-focus.md b/zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-focus.md index 25f14ed9632f3e04803b7768a240e4c23a658d02..cc73b1303ddfd1b5592c5377165ea9461fdb569c 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-focus.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-focus.md @@ -38,6 +38,7 @@ requestFocus(value: string): boolean | boolean | 返回是否成功给目标组件申请到焦点。若参数指向的目标组件存在,且目标组件可获焦,则返回true,否则返回false。 | > **说明:** +> > 支持焦点控制的组件:Button、Text、Image、List、Grid。焦点事件当前仅支持在真机上显示运行效果。 ## 示例 @@ -47,6 +48,7 @@ requestFocus(value: string): boolean defaultFocus/groupDefaultFocus/focusOnTouch示例代码: defaultFocus可以使绑定的组件成为页面创建后首次获焦的焦点。groupDefaultFocus可以使绑定的组件成为tabIndex容器创建后首次获焦的焦点。focusOnTouch可以使绑定的组件点击后立即获焦。 + ```ts // focusTest.ets @Entry diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-popup.md b/zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-popup.md index ab47fc96adfd0e3f7bfa5b006be15dfe050f15dd..7d001c0c0781ca41d72d34398a668b563d46b30f 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-popup.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-popup.md @@ -23,7 +23,7 @@ | primaryButton | {
value: string,
action: () => void
} | 否 | 第一个按钮。
value: 弹窗里主按钮的文本。
action: 点击主按钮的回调函数。 | | secondaryButton | {
value: string,
action: () => void
} | 否 | 第二个按钮。
value: 弹窗里辅助按钮的文本。
action: 点击辅助按钮的回调函数。 | | onStateChange | (event: { isVisible: boolean }) => void | 否 | 弹窗状态变化事件回调,参数isVisible为弹窗当前的显示状态。 | -| arrowOffset9+ | [Length](ts-types.md#length) | 否 | popup箭头在弹窗处的偏移。箭头在气泡上下方时,默认居左;箭头在气泡左右侧时,默认居上。 | +| arrowOffset9+ | [Length](ts-types.md#length) | 否 | popup箭头在弹窗处的偏移。箭头在气泡上下方时,数值为0表示箭头居最左侧,偏移量为箭头至最左侧的距离,默认居中。箭头在气泡左右侧时,偏移量为箭头至最上侧的距离,默认居中。如果显示在屏幕边缘,气泡会自动左右偏移,数值为0时箭头始终指向绑定组件。 | | showInSubWindow9+ | boolean | 否 | 是否在子窗口显示气泡,默认值为false。 | ## CustomPopupOptions8+类型说明 @@ -34,10 +34,10 @@ | placement | [Placement](ts-appendix-enums.md#placement8) | 否 | 气泡组件优先显示的位置,当前位置显示不下时,会自动调整位置。
默认值:Placement.Bottom | | maskColor | [ResourceColor](ts-types.md#resourcecolor) | 否 | 提示气泡遮障层的颜色。 | | popupColor | [ResourceColor](ts-types.md#resourcecolor) | 否 | 提示气泡的颜色。 | -| enableArrow | boolean | 否 | 是否显示箭头。
从API Version 9开始,如果箭头所在方位侧的气泡长度不足以显示下箭头,则会默认不显示箭头。比如:placement设置为Left,但气泡高度小于箭头的宽度(32vp),则实际不会显示箭头。
默认值:true | +| enableArrow | boolean | 否 | 是否显示箭头。
从API Version 9开始,如果箭头所在方位侧的气泡长度不足以显示下箭头,则会默认不显示箭头。比如:placement设置为Left,但气泡高度小于箭头的宽度的两倍(64vp),则实际不会显示箭头。
默认值:true | | autoCancel | boolean | 否 | 页面有操作时,是否自动关闭气泡。
默认值:true | | onStateChange | (event: { isVisible: boolean }) => void | 否 | 弹窗状态变化事件回调,参数为弹窗当前的显示状态。 | -| arrowOffset9+ | [Length](ts-types.md#length) | 否 | popup箭头在弹窗处的偏移。箭头在气泡上下方时,默认居左;箭头在气泡左右侧时,默认居上。 | +| arrowOffset9+ | [Length](ts-types.md#length) | 否 | popup箭头在弹窗处的偏移。箭头在气泡上下方时,数值为0表示箭头居最左侧,偏移量为箭头至最左侧的距离,默认居中。箭头在气泡左右侧时,偏移量为箭头至最上侧的距离,默认居中。如果显示在屏幕边缘,气泡会自动左右偏移,数值为0时箭头始终指向绑定组件。 | | showInSubWindow9+ | boolean | 否 | 是否在子窗口显示气泡,默认值为false。 | diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-text-style.md b/zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-text-style.md index d1d36aa5c3b4725a38ae9a7b7d58b8adaa63dc54..7147691fa04e476bfbc23c9d900d7dc80d4c2387 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-text-style.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-text-style.md @@ -14,7 +14,7 @@ | 名称 | 参数类型 | 描述 | | -----------| ---------------------------------------- | ------------------------------------ | | fontColor | [ResourceColor](ts-types.md#resourcecolor) | 设置字体颜色。 | -| fontSize | [Length](ts-types.md#length) | 设置字体大小,Length为number类型时,使用fp单位。字体默认大小10。不支持设置百分比字符串。 | +| fontSize | [Length](ts-types.md#length) | 设置字体大小,Length为number类型时,使用fp单位。字体默认大小16。不支持设置百分比字符串。 | | fontStyle | [FontStyle](ts-appendix-enums.md#fontstyle) | 设置字体样式。
默认值:FontStyle.Normal | | fontWeight | number \| [FontWeight](ts-appendix-enums.md#fontweight) \| string | 设置文本的字体粗细,number类型取值[100, 900],取值间隔为100,默认为400,取值越大,字体越粗。string类型仅支持number类型取值的字符串形式,例如"400",以及"bold"、"bolder"、"lighter"、"regular"、"medium",分别对应FontWeight中相应的枚举值。
默认值:FontWeight.Normal | | fontFamily | string \| [Resource](ts-types.md#resource) | 设置字体列表。默认字体'HarmonyOS Sans',且当前只支持这种字体。| diff --git a/zh-cn/application-dev/reference/errorcodes/Readme-CN.md b/zh-cn/application-dev/reference/errorcodes/Readme-CN.md index ba66cd409a9e3ce26e184992ee410a1971fa9280..bf7667cdd065d8d4f03d3d938eeddcc5b7e5304d 100644 --- a/zh-cn/application-dev/reference/errorcodes/Readme-CN.md +++ b/zh-cn/application-dev/reference/errorcodes/Readme-CN.md @@ -47,6 +47,8 @@ - [文件管理子系统错误码](errorcode-filemanagement.md) - 网络管理 - [上传下载错误码](errorcode-request.md) + - [HTTP错误码](errorcode-http.md) + - [Socket错误码](errorcode-socket.md) - 通信与连接 - [NFC错误码](errorcode-nfc.md) - [RPC错误码](errorcode-rpc.md) diff --git a/zh-cn/application-dev/reference/errorcodes/errorcode-DeviceUsageStatistics.md b/zh-cn/application-dev/reference/errorcodes/errorcode-DeviceUsageStatistics.md index e7611c35ea75641a984219be39fd62dccba5d6f6..dda2607a4d9de5f979f26ca206313fad3dd84804 100644 --- a/zh-cn/application-dev/reference/errorcodes/errorcode-DeviceUsageStatistics.md +++ b/zh-cn/application-dev/reference/errorcodes/errorcode-DeviceUsageStatistics.md @@ -58,7 +58,7 @@ System service operation failed. **错误信息** -IPC communication failed. +IPC failed. **错误描述** @@ -94,7 +94,7 @@ The application is not installed. **错误信息** -Get application info failed. +Failed to get the application information. **错误描述** @@ -114,11 +114,11 @@ Get application info failed. **错误信息** -Get system or actual time operation failed. +Failed to get the system time. **错误描述** -系统服务获取系统事件或者实际事件操作失败。 +系统服务获取系统时间或者实际时间操作失败。 **可能原因** @@ -132,7 +132,7 @@ Get system or actual time operation failed. **错误信息** -Application group operation failed. The application group are the the same or do not need te be updated. +Repeated operation on the application group. **错误描述** @@ -150,7 +150,7 @@ Application group operation failed. The application group are the the same or do **错误信息** -Get application group info failed. The application group infomation cannot be found. +Failed to get the application group information. **错误描述** diff --git a/zh-cn/application-dev/reference/errorcodes/errorcode-http.md b/zh-cn/application-dev/reference/errorcodes/errorcode-http.md new file mode 100644 index 0000000000000000000000000000000000000000..342513e155c9b0c8ed5a79176527671f372bcb9f --- /dev/null +++ b/zh-cn/application-dev/reference/errorcodes/errorcode-http.md @@ -0,0 +1,523 @@ +# HTTP错误码 + +## 2300001 不支持的协议 + +**错误信息** + +Unsupported protocol. + +**错误描述** + +协议版本服务器不支持。 + +**可能原因** + +传入的协议版本,服务器不支持。 + +**处理步骤** + +请检查传入的协议版本是否合理,排查服务器实现。 + +## 2300003 URL格式错误 + +**错误信息** + +URL using bad/illegal format or missing URL. + +**错误描述** + +URL格式错误。 + +**可能原因** + +可能传入的url格式不正确。 + +**处理步骤** + +检查传入的url格式是否正确。 + +## 2300005 代理服务器域名解析失败 + +**错误信息** + +Couldn't resolve proxy name. + +**错误描述** + +代理服务器的域名无法解析。 + +**可能原因** + +服务器的URL不正确 + +**处理步骤** + +排查代理服务器的URL是否正确。 + +## 2300006 域名解析失败 + +**错误信息** + +Couldn't resolve host name. + +**错误描述** + +服务器的域名无法解析。 + +**可能原因** + +传入的服务器的URL不正确。 + +**处理步骤** + +请检查入的服务器的URL是否合理。 + +## 2300007 无法连接到服务器 + +**错误信息** + +Couldn't connect to server. + +**错误描述** + +服务器无法连接。 + +**可能原因** + +可能传入的url格式不正确。 + +**处理步骤** + +检查传入的url格式是否正确。 + +## 2300008 服务器返回非法数据 + +**错误信息** + +Weird server reply. + +**错误描述** + +服务器返回非法数据。 + +**可能原因** + +服务器出错,返回了非HTTP格式的数据。 + +**处理步骤** + +排查服务器实现。 + +## 2300009 拒绝对远程资源的访问 + +**错误信息** + +Access denied to remote resource. + +**错误描述** + +拒绝对远程资源的访问。 + +**可能原因** + +指定的内容被服务器拒绝访问。 + +**处理步骤** + +排查请求内容。 + +## 2300016 HTT2帧层错误 + +**错误信息** + +Error in the HTTP2 framing layer. + +**错误描述** + +HTTP2层级的错误。 + +**可能原因** + +服务器不支持HTTP2。 + +**处理步骤** + +抓包分析、排查服务器是否支持HTTP2。 + +## 2300018 服务器返回数据不完整 + +**错误信息** + +Transferred a partial file. + +**错误描述** + +服务器返回的数据不完整。 + +**可能原因** + +可能与服务器实现有关 + +**处理步骤** + +排查服务器实现。 + +## 2300023 向磁盘/应用程序写入接收数据失败 + +**错误信息** + +Failed writing received data to disk/application. + +**错误描述** + +向磁盘/应用程序写入接收数据失败。 + +**可能原因** + +应用没有写文件权限。 + +**处理步骤** + +排查应用权限。 + +## 2300025 上传失败 + +**错误信息** + +Upload failed. + +**错误描述** + +上传失败。 + +**可能原因** + +文件过大或者网络问题。对于FTP,服务器通常会拒绝STOR命令。错误缓冲区通常包含服务器的解释。 + +**处理步骤** + +排查文件大小及网络状况。 + +## 2300026 从文件/应用程序中打开/读取本地数据失败 + +**错误信息** + +Failed to open/read local data from file/application. + +**错误描述** + +从文件/应用程序中打开/读取本地数据失败。 + +**可能原因** + +应用没有读文件权限 + +**处理步骤** + +排查应用权限。 + +## 2300027 内存不足 + +**错误信息** + +Out of memory. + +**错误描述** + +内存不足。 + +**可能原因** + +内存不足。 + +**处理步骤** + +排查系统内存。 + +## 2300028 操作超时 + +**错误信息** + +Timeout was reached. + +**错误描述** + +操作超时。 + +**可能原因** + +TCP连接超时或读写超时。 + +**处理步骤** + +排查网络问题。 + +## 2300047 重定向次数达到最大值 + +**错误信息** + +Number of redirects hit maximum amount. + +**错误描述** + +重定向次数达到最大值。 + +**可能原因** + +重定向次数过多 + +**处理步骤** + +排查服务器实现。 + +## 2300052 服务器没有返回内容 + +**错误信息** + +Server returned nothing (no headers, no data). + +**错误描述** + +服务器没有返回内容。 + +**可能原因** + +可能与服务器实现有关。 + +**处理步骤** + +排查服务器实现。 + +## 2300055 发送网络数据失败 + +**错误信息** + +Failed sending data to the peer. + +**错误描述** + +无法往对端发送数据,发送网络数据失败。 + +**可能原因** + +网络问题。 + +**处理步骤** + +排查网络。 + +## 2300056 接收网络数据失败 + +**错误信息** + +Failure when receiving data from the peer. + +**错误描述** + +无法往从对端收到数据,接收网络数据失败。 + +**可能原因** + +网络问题 + +**处理步骤** + +排查网络问题。 + +## 2300058 本地SSL证书错误 + +**错误信息** + +Problem with the local SSL certificate. + +**错误描述** + +本地SSL证书错误。 + +**可能原因** + +SSL证书格式有错误。 + +**处理步骤** + +检查SSL证书格式。 + +## 2300059 无法使用指定的密码 + +**错误信息** + +Couldn't use specified SSL cipher. + +**错误描述** + +无法使用指定的密码。 + +**可能原因** + +client和sever协商的加密算法系统不支持。 + +**处理步骤** + +抓包分析协商的算法。 + +## 2300060 远程服务器SSL证书或SSH秘钥不正确 + +**错误信息** + +SSL peer certificate or SSH remote key was not OK. + +**错误描述** + +远程服务器SSL证书或SSH秘钥不正确。 + +**可能原因** + +无法校验服务器身份,有可能是证书过期了 + +**处理步骤** + +检查证书有效性。 + +## 2300061 无法识别或错误的HTTP编码格式 + +**错误信息** + +Unrecognized or bad HTTP Content or Transfer-Encoding. + +**错误描述** + +无法识别或错误的HTTP编码格式。 + +**可能原因** + +HTTP编码格式不正确。 + +**处理步骤** + +排查服务器实现,目前仅支持gzip编码。 + +## 2300063 超出最大文件大小 + +**错误信息** + +Maximum file size exceeded. + +**错误描述** + +超出最大文件大小。 + +**可能原因** + +下载的文件过大。 + +**处理步骤** + +排查服务器实现。 + +## 2300070 服务器磁盘空间不足 + +**错误信息** + +Remote disk full or allocation exceeded. + +**错误描述** + +服务器磁盘空间不足。 + +**可能原因** + +服务器磁盘已满 + +**处理步骤** + +检查服务器磁盘空间。 + +## 2300073 服务器返回文件已存在 + +**错误信息** + +Remote file already exists. + +**错误描述** + +服务器返回文件已存在。 + +**可能原因** + +上传文件的时候,服务器返回文件已经存在。 + +**处理步骤** + +排查服务器。 + +## 2300077 SSL CA证书不存在或没有访问权限 + +**错误信息** + +Problem with the SSL CA cert (path? access rights?). + +**错误描述** + +SSL CA证书不存在或没有访问权限。 + +**可能原因** + +证书不存在或者没有访问权限。 + +**处理步骤** + +检查证书是否存在或者有没有访问权限。 + +## 2300078 URL请求的文件不存在 + +**错误信息** + +Remote file not found. + +**错误描述** + +URL请求的文件不存在。 + +**可能原因** + +URL请求的文件不存在 + +**处理步骤** + +检查URL请求的文件是否存在。 + +## 2300094 身份校验失败 + +**错误信息** + +An authentication function returned an error. + +**错误描述** + +身份校验失败。 + +**可能原因** + +传入的校验身份的字段与服务器不匹配。 + +**处理步骤** + +排查传入的校验身份的字段是否与服务器匹配。 + +## 2300999 未知错误 + +**错误信息** + +Unknown Other Error. + +**错误描述** + +未知错误。 + +**可能原因** + +未知错误。 + +**处理步骤** + +未知错误。 diff --git a/zh-cn/application-dev/reference/errorcodes/errorcode-socket.md b/zh-cn/application-dev/reference/errorcodes/errorcode-socket.md new file mode 100644 index 0000000000000000000000000000000000000000..687ef15d7e9f836521de0db784bb7868c96a95ad --- /dev/null +++ b/zh-cn/application-dev/reference/errorcodes/errorcode-socket.md @@ -0,0 +1,77 @@ +# TCP/UDP 错误码 + +## 2301001 操作不允许 + +**错误信息** + +Operation not permitted. + +**错误描述** + +操作不允许。 + +**可能原因** + +非法操作。 + +**处理步骤** + +检查操作步骤。 + +## 2301002 文件不存在 + +**错误信息** + +No such file or directory. + +**错误描述** + +文件不存在。 + +**可能原因** + +文件不存在。 + +**处理步骤** + +检查文件名或文件路径。 + +## 2301003 进程不存在 + +**错误信息** + +No such process. + +**错误描述** + +进程不存在。 + +**可能原因** + +进程不存在 + +**处理步骤** + +排查进程信息。 + +## 2300004 Interrupted system call + +**错误信息** + +Couldn't resolve host name. + +**错误描述** + +系统调用中断。 + +**可能原因** + +系统调用中断。 + +**处理步骤** + +排查系统调用。 + +**TCP/UDP 错误码说明:** +> 其余错误码映射形式为:2301000 + 内核错误码,关键信息请参考内核错误码。 + diff --git a/zh-cn/application-dev/reference/errorcodes/errorcode-telephony.md b/zh-cn/application-dev/reference/errorcodes/errorcode-telephony.md new file mode 100644 index 0000000000000000000000000000000000000000..a80ec138f93e6fad1ab340ee77506a0250ca3642 --- /dev/null +++ b/zh-cn/application-dev/reference/errorcodes/errorcode-telephony.md @@ -0,0 +1,172 @@ +# 电话子系统错误码 + +## 8300001 输入参数不在处理范围内 + +**错误信息** + +The input parameter value is out of range. + +**错误描述** + +输入参数不在处理范围内,如slotId无效等,将无法进行相应的操作。 + +**可能原因** + +输入参数无效。 + +**处理步骤** + +请输入正确的有效参数。 + + + +## 8300002 服务连接失败 + +**错误信息** + +Operation failed. Cannot connect to service. + +**错误描述** + +操作失败。无法连接到服务。 + +**可能原因** + +服务启动失败,IPC连接失败等。 + +**处理步骤** + +本次操作异常,请稍后重试。 + + + +## 8300003 系统内部错误 + +**错误信息** + +System internal error. + +**错误描述** + +系统内部错误。 + +**可能原因** + +网络异常,数据读写失败等。 + +**处理步骤** + +本次操作异常,请稍后重试。 + + +## 8300004 未识别SIM卡 + +**错误信息** + +Do not have sim card. + +**错误描述** + +没有识别到sim卡。 + +**可能原因** + +未插入SIM卡或未正常插入SIM卡。 + +**处理步骤** + +请插卡或重新拔插SIM卡。 + + +## 8300999 未知错误 + +**错误信息** + +Unknown error code. + +**错误描述** + +未知的错误。 + +**可能原因** + +系统内部出现了意料之外的错误,可能是由于底层的错误码不在处理范围内。 + +**处理步骤** + +操作异常,请稍后再试。 + + +## 8301001 SIM卡未激活 + +**错误信息** + +SIM card is not activated. + +**错误描述** + +SIM卡未激活。 + +**可能原因** + +没有激活SIM卡。 + +**处理步骤** + +请激活SIM卡。 + + +## 8301002 SIM卡读取数据或者更新数据失败 + +**错误信息** + +SIM card operation error. + +**错误描述** + +SIM卡读取数据或者更新数据失败。 + +**可能原因** + +SIM不支持该操作,或者SIM卡已损坏。 + +**处理步骤** + +请联系SIM卡运营商,或者更换SIM卡。 + + +## 8301003 随卡配置错误 + +**错误信息** + +Operator config error. + +**错误描述** + +随卡配置错误。 + +**可能原因** + +未预置对应SIM卡的随卡配置文件。 + +**处理步骤** + +请检查是否插入正确的SIM卡。 + +## 8401001 UT连接失败 + +**错误信息** + +UT is not connected. + +**错误描述** + +UT未连接 + +**可能原因** + +当前运营商不支持从Wifi下发UT请求,但是当前手机Wifi已连上。 + +**处理步骤** + +断开wifi,再重发UT请求。 diff --git a/zh-cn/application-dev/reference/errorcodes/errorcode-wifi.md b/zh-cn/application-dev/reference/errorcodes/errorcode-wifi.md new file mode 100644 index 0000000000000000000000000000000000000000..348a833f12c55cf709c9c22c8ec00e516421b27a --- /dev/null +++ b/zh-cn/application-dev/reference/errorcodes/errorcode-wifi.md @@ -0,0 +1,125 @@ +# WIFI错误码 + +## 2401000 STA内部异常 + +**错误信息** + +Operation failed. + +**错误描述** + +WIFI服务内部执行STA相关操作时出现未知错误。 + +**可能原因** + +1. 和WIFI服务建立通信异常。 +2. WIFI芯片通信异常。 +3. 其他未知错误。 + +**处理步骤** + +1. 重新执行关闭及打开WIFI开关的操作。 +2. 如果步骤1无效,请尝试重启设备。 + +## 2501000 STA内部异常 + +**错误信息** + +Operation failed. + +**错误描述** + +WIFI服务内部执行STA相关操作时出现未知错误。 + +**可能原因** + +1. 和WIFI服务建立通信异常。 +2. WIFI芯片通信异常。 +3. 其他未知错误。 + +**处理步骤** + +1. 重新执行关闭及打开WIFI开关的操作。 +2. 如果步骤1无效,请尝试重启设备。 + +## 2501001 STA功能未打开 + +**错误信息** + +Wifi is closed. + +**错误描述** + +WIFI STA功能被关闭。 + +**可能原因** + +WIFI功能被关闭。 + +**处理步骤** + +打开WIFI功能。 + +## 2601000 Hotspot模块异常 + +**错误信息** + +Operation failed. + +**错误描述** + +WIFI服务内部执行Hotspot相关操作时出现未知错误。 + +**可能原因** + +1. 和WIFI服务建立通信异常。 +2. WIFI芯片通信异常。 +3. 其他未知错误。 + +**处理步骤** + +1. 重新执行关闭及打开Hotspot开关的操作。 +2. 如果步骤1无效,请尝试重启设备。 + +## 2701000 AP扩展模块异常 + +**错误信息** + +Operation failed. + +**错误描述** + +WIFI服务内部执行Hotspot相关操作时出现未知错误。 + +**可能原因** + +1. 和WIFI服务建立通信异常。 +2. WIFI芯片通信异常。 +3. 其他未知错误。 + +**处理步骤** + +1. 重新执行关闭及打开Hotspot开关的操作。 +2. 如果步骤1无效,请尝试重启设备。 + +## 2801000 P2P模块异常 + +**错误信息** + +Operation failed. + +**错误描述** + +WIFI服务内部执行P2P相关操作时出现未知错误。 + +**可能原因** + +1. 和WIFI服务建立通信异常。 +2. WIFI芯片通信异常。 +3. 其他未知错误。 + +**处理步骤** + +1. 重新执行关闭及打开WIFI开关的操作。 +2. 如果步骤1无效,请尝试重启设备。 + diff --git a/zh-cn/application-dev/reference/errorcodes/errorcode-window.md b/zh-cn/application-dev/reference/errorcodes/errorcode-window.md index 257e3b7355a8cda3dd91db05cd16e9fef94f0a54..ece08787c2d65a1a7b120e6447196d26c8419c86 100755 --- a/zh-cn/application-dev/reference/errorcodes/errorcode-window.md +++ b/zh-cn/application-dev/reference/errorcodes/errorcode-window.md @@ -77,3 +77,58 @@ This window context is abnormal. **处理步骤**
在对窗口上下文进行操作前,检查该窗口上下文是否存在,确保其未被销毁,再进行相关操作。 + +## 1300007 WindowExtension拉起应用失败 + +**错误信息**
+Start ability failed. + +**错误描述**
+WindowExtension拉起应用失败。 + +**可能原因**
+WindowExtension拉起应用的参数异常。 + +**处理步骤**
+检查WindowExtension参数是否被异常修改,确保其参数合法,再进行相关操作。 + +## 1300008 显示设备异常 + +**错误信息**
The operation is on invalid display. + +**错误描述**
显示设备异常。 + +**可能原因**
+1. 显示设备没有准备好。
+2. 显示设备被移除。
+3. 显示设备被损坏。 + +**处理步骤**
确保显示设备正常,再进行相关开发。 + +## 1300009 父窗口无效 + +**错误信息**
The parent window is invalid. + +**错误描述**
父窗口无效。 + +**可能原因**
+1. 子窗口没有绑定父窗口。
+2. 子窗口绑定的父窗口异常,如父窗口已被销毁等。 + +**处理步骤**
+1. 检查确保子窗口成功绑定父窗口。
+2. 检查子窗口绑定的父窗口状态,确保父窗口状态正常。 + +## 1300010 全屏窗口的无效操作 + +**错误信息**
This operation is not support in fullscreen. + +**错误描述**
全屏窗口下的无效操作。 + +**可能原因**
+1. 对全屏窗口进行move操作。
+2. 对全屏窗口进行resize操作。 + +**处理步骤**
+1. 不要对全屏窗口进行move操作。
+2. 不要对全屏窗口进行resize操作。 \ No newline at end of file diff --git a/zh-cn/application-dev/reference/js-service-widget-ui/js-service-widget-syntax-hml.md b/zh-cn/application-dev/reference/js-service-widget-ui/js-service-widget-syntax-hml.md index 064758811a255d6c69f41a060319a409be3f7d94..8730841330b4dfbbad2a5adf3731dd7698efae52 100644 --- a/zh-cn/application-dev/reference/js-service-widget-ui/js-service-widget-syntax-hml.md +++ b/zh-cn/application-dev/reference/js-service-widget-ui/js-service-widget-syntax-hml.md @@ -94,40 +94,6 @@ HML(OpenHarmony Markup Language)是一套类HTML的标记语言,通过组 } ``` - 也可以使用want格式绑定参数跳转到目标应用,want定义了Ability名称、Bundle名称、携带的参数字段等。 - - | 选择器 | 类型 | 默认值 | 样例描述 | - | ------ | ------ | -------- | ---------------------------------------- | - | action | string | "router" | 事件类型。
- "router":用于应用跳转。
- "message":自定义点击事件。 | - | want | [Want](../apis/js-apis-app-ability-want.md) | - | 跳转目标应用的信息,参考want格式表。 | - - -```json - { - "data": { - "mainAbility": "xxx.xxx.xxx" - }, - "actions": { - "routerEventName1": { - "action": "router", - "want": { - "bundleName": "com.example.myapplication", - "abilityName": "EntryAbility" - } - }, - "routerEventName2": { - "action": "router", - "want": { - "action": "xxx.intent.action.DIAL", - "uri": "tel:12345678" - } - } - } - } -``` - -在API Version 8,want参数需要在app.js或app.ets文件的onCreate方法中调用[featureAbility.getWant](../apis/js-apis-ability-featureAbility.md)接口接收相关参数。 - - 消息事件格式 | 选择器 | 样例 | 默认值 | 样例描述 | diff --git a/zh-cn/application-dev/reference/native-apis/_o_h___native_x_component.md b/zh-cn/application-dev/reference/native-apis/_o_h___native_x_component.md index fffd2abf32ac3f80dfc1dd808b2933a1a91ac345..2fd63c654e3cc00bde0dda042aa198597ba633d7 100644 --- a/zh-cn/application-dev/reference/native-apis/_o_h___native_x_component.md +++ b/zh-cn/application-dev/reference/native-apis/_o_h___native_x_component.md @@ -69,8 +69,8 @@ | [OH_XCOMPONENT_ID_LEN_MAX](#oh_xcomponent_id_len_max) = 128 | ArkUI XComponent的id最大长度。 | | [OH_MAX_TOUCH_POINTS_NUMBER](#oh_max_touch_points_number) = 10 | 触摸事件中的可识别的触摸点个数最大值。 | | [OH_NativeXComponent_TouchPoint::id](#id-12) = 0 | 手指的唯一标识符。 | -| [OH_NativeXComponent_TouchPoint::screenX](#screenx-13) = 0.0 | 触摸点相对于屏幕左边缘的x坐标。 | -| [OH_NativeXComponent_TouchPoint::screenY](#screeny-13) = 0.0 | 触摸点相对于屏幕上边缘的y坐标。 | +| [OH_NativeXComponent_TouchPoint::screenX](#screenx-13) = 0.0 | 触摸点相对于应用窗口左上角的x坐标。 | +| [OH_NativeXComponent_TouchPoint::screenY](#screeny-13) = 0.0 | 触摸点相对于应用窗口左上角的y坐标。 | | [OH_NativeXComponent_TouchPoint::x](#x-13) = 0.0 | 触摸点相对于XComponent组件左边缘的x坐标。 | | [OH_NativeXComponent_TouchPoint::y](#y-13) = 0.0 | 触摸点相对于XComponent组件上边缘的y坐标。 | | [OH_NativeXComponent_TouchPoint::type](#type-12) = OH_NativeXComponent_TouchEventType::OH_NATIVEXCOMPONENT_UNKNOWN | 触摸事件的触摸类型。 | @@ -79,8 +79,8 @@ | [OH_NativeXComponent_TouchPoint::timeStamp](#timestamp-12) = 0 | 当前触摸事件的时间戳。 | | [OH_NativeXComponent_TouchPoint::isPressed](#ispressed) = false | 当前点是否被按下。 | | [OH_NativeXComponent_TouchEvent::id](#id-22) = 0 | 手指的唯一标识符。 | -| [OH_NativeXComponent_TouchEvent::screenX](#screenx-23) = 0.0 | 触摸点相对于屏幕左边缘的x坐标。 | -| [OH_NativeXComponent_TouchEvent::screenY](#screeny-23) = 0.0 | 触摸点相对于屏幕上边缘的y坐标。 | +| [OH_NativeXComponent_TouchEvent::screenX](#screenx-23) = 0.0 | 触摸点相对于应用窗口左上角的x坐标。 | +| [OH_NativeXComponent_TouchEvent::screenY](#screeny-23) = 0.0 | 触摸点相对于应用窗口左上角的y坐标。 | | [OH_NativeXComponent_TouchEvent::x](#x-23) = 0.0 | 触摸点相对于XComponent组件左边缘的x坐标。 | | [OH_NativeXComponent_TouchEvent::y](#y-23) = 0.0 | 触摸点相对于XComponent组件上边缘的y坐标。 | | [OH_NativeXComponent_TouchEvent::type](#type-22) = OH_NativeXComponent_TouchEventType::OH_NATIVEXCOMPONENT_UNKNOWN | 触摸事件的触摸类型。 | @@ -92,8 +92,8 @@ | [OH_NativeXComponent_TouchEvent::numPoints](#numpoints) = 0 | 当前接触点的数量。 | | [OH_NativeXComponent_MouseEvent::x](#x-33) = 0.0 | 点击触点相对于当前组件左上角的x轴坐标。 | | [OH_NativeXComponent_MouseEvent::y](#y-33) = 0.0 | 点击触点相对于当前组件左上角的y轴坐标。 | -| [OH_NativeXComponent_MouseEvent::screenX](#screenx-33) = 0.0 | 点击触点相对于屏幕左上角的x轴坐标。 | -| [OH_NativeXComponent_MouseEvent::screenY](#screeny-33) = 0.0 | 点击触点相对于屏幕左上角的y轴坐标。 | +| [OH_NativeXComponent_MouseEvent::screenX](#screenx-33) = 0.0 | 点击触点相对于应用窗口左上角的x轴坐标。 | +| [OH_NativeXComponent_MouseEvent::screenY](#screeny-33) = 0.0 | 点击触点相对于应用窗口左上角的y轴坐标。 | | [OH_NativeXComponent_MouseEvent::timestamp](#timestamp) = 0 | 当前鼠标事件的时间戳。 | | [OH_NativeXComponent_MouseEvent::action](#action) = [OH_NativeXComponent_MouseEventAction::OH_NATIVEXCOMPONENT_MOUSE_NONE](#oh_nativexcomponent_mouseeventaction) | 当前鼠标事件动作。 | | [OH_NativeXComponent_MouseEvent::button](#button) = [OH_NativeXComponent_MouseEventButton::OH_NATIVEXCOMPONENT_NONE_BUTTON](#oh_nativexcomponent_mouseeventbutton) | 鼠标事件按键。 | @@ -739,7 +739,7 @@ float OH_NativeXComponent_TouchPoint::screenX = 0.0 **描述:** -触摸点相对于屏幕左边缘的x坐标。 +触摸点相对于应用窗口左上角的x坐标。 **起始版本:** @@ -755,7 +755,7 @@ float OH_NativeXComponent_TouchEvent::screenX = 0.0 **描述:** -触摸点相对于屏幕左边缘的x坐标。 +触摸点相对于应用窗口左上角的x坐标。 **起始版本:** @@ -771,7 +771,7 @@ float OH_NativeXComponent_MouseEvent::screenX **描述:** -点击触点相对于屏幕左上角的x轴坐标。 +点击触点相对于应用窗口左上角的x轴坐标。 **起始版本:** @@ -787,7 +787,7 @@ float OH_NativeXComponent_TouchPoint::screenY = 0.0 **描述:** -触摸点相对于屏幕上边缘的y坐标。 +触摸点相对于应用窗口左上角的y坐标。 **起始版本:** @@ -803,7 +803,7 @@ float OH_NativeXComponent_TouchEvent::screenY = 0.0 **描述:** -触摸点相对于屏幕上边缘的y坐标。 +触摸点相对于应用窗口左上角的y坐标。 **起始版本:** @@ -819,7 +819,7 @@ float OH_NativeXComponent_MouseEvent::screenY **描述:** -点击触点相对于屏幕左上角的y轴坐标。 +点击触点相对于应用窗口左上角的y轴坐标。 **起始版本:** diff --git a/zh-cn/application-dev/reference/native-apis/_o_h___native_x_component___mouse_event.md b/zh-cn/application-dev/reference/native-apis/_o_h___native_x_component___mouse_event.md index b046d76de2c0c98161fb5795dca4d2a4e1e2a46b..0ac4572128b94269ff1bdf393717b72a3c3020f1 100644 --- a/zh-cn/application-dev/reference/native-apis/_o_h___native_x_component___mouse_event.md +++ b/zh-cn/application-dev/reference/native-apis/_o_h___native_x_component___mouse_event.md @@ -23,8 +23,8 @@ | -------- | -------- | | [x = 0.0](_o_h___native_x_component.md#x-33) | 点击触点相对于当前组件左上角的x轴坐标。 | | [y = 0.0](_o_h___native_x_component.md#y-33) | 点击触点相对于当前组件左上角的y轴坐标。 | -| [screenX = 0.0](_o_h___native_x_component.md#screenx-33) | 点击触点相对于屏幕左上角的x轴坐标。 | -| [screenY = 0.0](_o_h___native_x_component.md#screeny-33) | 点击触点相对于屏幕左上角的y轴坐标。 | +| [screenX = 0.0](_o_h___native_x_component.md#screenx-33) | 点击触点相对于应用窗口左上角的x轴坐标。 | +| [screenY = 0.0](_o_h___native_x_component.md#screeny-33) | 点击触点相对于应用窗口左上角的y轴坐标。 | | [timestamp = 0](_o_h___native_x_component.md#timestamp) | 当前鼠标事件的时间戳。 | | [action = OH_NativeXComponent_MouseEventAction::OH_NATIVEXCOMPONENT_MOUSE_NONE](_o_h___native_x_component.md#action) | 当前鼠标事件动作。 | | [button = OH_NativeXComponent_MouseEventButton::OH_NATIVEXCOMPONENT_NONE_BUTTON](_o_h___native_x_component.md#button) | 鼠标事件按键。 | diff --git a/zh-cn/application-dev/reference/native-apis/_o_h___native_x_component___touch_event.md b/zh-cn/application-dev/reference/native-apis/_o_h___native_x_component___touch_event.md index 2907636f13dee69f0a85ff8d6135af9eb3c429f9..1002313b4f2a5d42a4f0b044114c1a8e04768f7c 100644 --- a/zh-cn/application-dev/reference/native-apis/_o_h___native_x_component___touch_event.md +++ b/zh-cn/application-dev/reference/native-apis/_o_h___native_x_component___touch_event.md @@ -22,8 +22,8 @@ | 成员变量名称 | 描述 | | -------- | -------- | | [id](_o_h___native_x_component.md#id-22) = 0 | 手指的唯一标识符。 | -| [screenX](_o_h___native_x_component.md#screenx-23) = 0.0 | 触摸点相对于屏幕左边缘的x坐标。 | -| [screenY](_o_h___native_x_component.md#screeny-23) = 0.0 | 触摸点相对于屏幕上边缘的y坐标。 | +| [screenX](_o_h___native_x_component.md#screenx-23) = 0.0 | 触摸点相对于应用窗口左上角的x坐标。 | +| [screenY](_o_h___native_x_component.md#screeny-23) = 0.0 | 触摸点相对于应用窗口左上角的y坐标。 | | [x](_o_h___native_x_component.md#x-23) = 0.0 | 触摸点相对于XComponent组件左边缘的x坐标。 | | [y](_o_h___native_x_component.md#y-23) = 0.0 | 触摸点相对于XComponent组件上边缘的y坐标。 | | [type](_o_h___native_x_component.md#type-22) = OH_NativeXComponent_TouchEventType::OH_NATIVEXCOMPONENT_UNKNOWN | 触摸事件的触摸类型。 | diff --git a/zh-cn/application-dev/reference/native-apis/_o_h___native_x_component___touch_point.md b/zh-cn/application-dev/reference/native-apis/_o_h___native_x_component___touch_point.md index 462f272c615f148d40a8caa59638abef3e123a8a..14176aeec7b69522675e9c387240812b1fcfaafb 100644 --- a/zh-cn/application-dev/reference/native-apis/_o_h___native_x_component___touch_point.md +++ b/zh-cn/application-dev/reference/native-apis/_o_h___native_x_component___touch_point.md @@ -22,8 +22,8 @@ | 成员变量名称 | 描述 | | -------- | -------- | | [id](_o_h___native_x_component.md#id-12) = 0 | 手指的唯一标识符。 | -| [screenX](_o_h___native_x_component.md#screenx-13) = 0.0 | 触摸点相对于屏幕左边缘的x坐标。 | -| [screenY](_o_h___native_x_component.md#screeny-13) = 0.0 | 触摸点相对于屏幕上边缘的y坐标。 | +| [screenX](_o_h___native_x_component.md#screenx-13) = 0.0 | 触摸点相对于应用窗口左上角的x坐标。 | +| [screenY](_o_h___native_x_component.md#screeny-13) = 0.0 | 触摸点相对于应用窗口左上角的y坐标。 | | [x](_o_h___native_x_component.md#x-13) = 0.0 | 触摸点相对于XComponent组件左边缘的x坐标。 | | [y](_o_h___native_x_component.md#y-13) = 0.0 | 触摸点相对于XComponent组件上边缘的y坐标。 | | [type](_o_h___native_x_component.md#type-12) = OH_NativeXComponent_TouchEventType::OH_NATIVEXCOMPONENT_UNKNOWN | 触摸事件的触摸类型。 | diff --git a/zh-cn/application-dev/reference/syscap.md b/zh-cn/application-dev/reference/syscap.md index fc98c0e05570f40281523fb766a525b070c47e49..5ab69bbb18a97b2645a1300ea7a258741fb19bad 100644 --- a/zh-cn/application-dev/reference/syscap.md +++ b/zh-cn/application-dev/reference/syscap.md @@ -8,7 +8,7 @@ SysCap,全称SystemCapability,即系统能力,指操作系统中每一个 ![image-20220326064841782](figures/image-20220326064841782.png) -开发者可以在[SysCap列表](../reference/syscap-list.md)中查询OpenHarmony的能力集。 +开发者可以在[SysCap列表](syscap-list.md)中查询OpenHarmony的能力集。 ### 支持能力集,联想能力集与要求能力集 @@ -93,19 +93,19 @@ DevEco Studio会根据创建的工程所支持的设置自动配置联想能力 ### 判断 API 是否可以使用 -- 方法1:OpenHarmony定义了API canIUse帮助开发者来判断该工程是否支持某个特定的syscap。 +- 方法1:OpenHarmony定义了API canIUse帮助开发者来判断该设备是否支持某个特定的syscap。 - ``` + ```ts if (canIUse("SystemCapability.ArkUI.ArkUI.Full")) { - console.log("该应用支持SystemCapability.ArkUI.ArkUI.Full"); + console.log("该设备支持SystemCapability.ArkUI.ArkUI.Full"); } else { - console.log("该应用不支持SystemCapability.ArkUI.ArkUI.Full"); + console.log("该设备不支持SystemCapability.ArkUI.ArkUI.Full"); } ``` -- 方法2:开发者可通过 import 的方式将模块导入,若当前设备不支持该模块,import 的结果为 undefined,开发者在使用其 API 时,需要判断其是否存在。 +- 方法2:开发者可通过import的方式将模块导入,若当前设备不支持该模块,import的结果为undefined,开发者在使用其API时,需要判断其是否存在。 - ``` + ```ts import geolocation from '@ohos.geolocation'; if (geolocation) { @@ -122,7 +122,7 @@ DevEco Studio会根据创建的工程所支持的设置自动配置联想能力 即使是相同的系统能力,在不同的设备下,也会有能力的差异。比如同是摄像头的能力,平板设备优于智能穿戴设备。 -``` +```ts import userAuth from '@ohos.userIAM.userAuth'; const authenticator = userAuth.getAuthenticator(); @@ -148,16 +148,16 @@ authenticator.execute('FACE_ONLY', 'S1', (err, result) => { 1. 一套 OpenHarmony 源码由可选和必选部件集组成,不同的部件为对外体现的系统能力不同,即部件与 SysCap 之间映射关系。 -2. 发布归一化的 SDK,API 与 SysCap 之间存在映射关系。 +2. 发布归一化的SDK,API与SysCap之间存在映射关系。 3. 产品解决方案厂商按硬件能力和产品诉求,可按需拼装部件。 -4. 产品配置的部件可以是 OpenHarmony 的部件,也可以是三方开发的私有部件,由于部件与SysCap间存在映射,所有拼装后即可得到该产品的SysCap集合。 +4. 产品配置的部件可以是OpenHarmony的部件,也可以是三方开发的私有部件,由于部件与SysCap间存在映射,所有拼装后即可得到该产品的SysCap集合。 -5. SysCap集编码生成 PCID (Product Compatibility ID, 产品兼容性标识),应用开发者可将 PCID 导入 IDE解码成SysCap ,开发时对设备的SysCap差异做兼容性处理。 +5. SysCap集编码生成 PCID (Product Compatibility ID, 产品兼容性标识),应用开发者可将PCID导入IDE解码成SysCap,开发时对设备的SysCap差异做兼容性处理。 -6. 部署到设备上的系统参数中包含了 SysCap 集,系统提供了native的接口和应用接口,可供系统内的部件和应用查询某个 SysCap 是否存在。 +6. 部署到设备上的系统参数中包含了SysCap集,系统提供了native的接口和应用接口,可供系统内的部件和应用查询某个SysCap是否存在。 -7. 应用开发过程中,应用必要的 SysCap 将被编码成 RPCID(Required Product Compatibility ID),并写入应用安装包中。应用安装时,包管理器将解码 RPCID 得到应用需要的 SysCap,与设备当前具备的 SysCap 比较,若应用要求的 SysCap 都被满足,则安装成功。 +7. 应用开发过程中,应用必要的SysCap将被编码成RPCID(Required Product Compatibility ID),并写入应用安装包中。应用安装时,包管理器将解码RPCID得到应用需要的 SysCap,与设备当前具备的SysCap比较,若应用要求的SysCap都被满足,则安装成功。 -8. 应用运行时,可通过 canIUse 接口查询设备的 SysCap,保证在不同设备上的兼容性。 +8. 应用运行时,可通过canIUse接口查询设备的SysCap,保证在不同设备上的兼容性。 diff --git a/zh-cn/application-dev/security/accesstoken-guidelines.md b/zh-cn/application-dev/security/accesstoken-guidelines.md index c16b9fd538233b2b8fc957714abdb69f799837ce..3b8e3940d1c65198b3b1a00b133d95ea5c4fb5d4 100644 --- a/zh-cn/application-dev/security/accesstoken-guidelines.md +++ b/zh-cn/application-dev/security/accesstoken-guidelines.md @@ -134,8 +134,7 @@ ```typescript import UIAbility from '@ohos.app.ability.UIAbility'; import window from '@ohos.window'; - import abilityAccessCtrl from '@ohos.abilityAccessCtrl'; - import { Permissions } from '@ohos.abilityAccessCtrl'; + import abilityAccessCtrl, { Permissions } from '@ohos.abilityAccessCtrl'; export default class EntryAbility extends UIAbility { // ... @@ -143,10 +142,10 @@ onWindowStageCreate(windowStage: window.WindowStage) { // Main window is created, set main page for this ability let context = this.context; - let AtManager = abilityAccessCtrl.createAtManager(); + let atManager = abilityAccessCtrl.createAtManager(); // requestPermissionsFromUser会判断权限的授权状态来决定是否唤起弹窗 const permissions: Array = ['ohos.permission.READ_CALENDAR']; - AtManager.requestPermissionsFromUser(context, permissions).then((data) => { + atManager.requestPermissionsFromUser(context, permissions).then((data) => { console.info(`[requestPermissions] data: ${JSON.stringify(data)}`); let grantStatus: Array = data.authResults; if (grantStatus[0] === -1) { @@ -165,8 +164,7 @@ 在UI界面中向用户申请授权。 ```typescript - import abilityAccessCtrl from '@ohos.abilityAccessCtrl'; - import { Permissions } from '@ohos.abilityAccessCtrl'; + import abilityAccessCtrl, { Permissions } from '@ohos.abilityAccessCtrl'; import common from '@ohos.app.ability.common'; @Entry @@ -174,10 +172,10 @@ struct Index { reqPermissions() { let context = getContext(this) as common.UIAbilityContext; - let AtManager = abilityAccessCtrl.createAtManager(); + let atManager = abilityAccessCtrl.createAtManager(); // requestPermissionsFromUser会判断权限的授权状态来决定是否唤起弹窗 const permissions: Array = ['ohos.permission.READ_CALENDAR']; - AtManager.requestPermissionsFromUser(context, permissions).then((data) => { + atManager.requestPermissionsFromUser(context, permissions).then((data) => { console.info(`[requestPermissions] data: ${JSON.stringify(data)}`); let grantStatus: Array = data.authResults; if (grantStatus[0] === -1) { @@ -202,12 +200,13 @@ 通过调用[requestPermissionsFromUser()](../reference/apis/js-apis-inner-app-context.md#contextrequestpermissionsfromuser7)接口向用户动态申请授权。 ```js -// Ability的onWindowStageCreate()生命周期 -onWindowStageCreate() { - let context = this.context; +import featureAbility from '@ohos.ability.featureAbility'; + +reqPermissions() { + let context = featureAbility.getContext(); let array:Array = ["ohos.permission.PERMISSION2"]; //requestPermissionsFromUser会判断权限的授权状态来决定是否唤起弹窗 - context.requestPermissionsFromUser(array).then(function(data) { + context.requestPermissionsFromUser(array, 1).then(function(data) { console.log("data:" + JSON.stringify(data)); console.log("data permissions:" + JSON.stringify(data.permissions)); console.log("data result:" + JSON.stringify(data.authResults)); @@ -249,5 +248,5 @@ onWindowStageCreate() { 针对访问控制,有以下相关实例可供参考: -- [AbilityAccessCtrl:访问权限控制(ArkTS)(API8)(Full SDK)](https://gitee.com/openharmony/applications_app_samples/tree/master/Safety/AbilityAccessCtrl) -- [为应用添加运行时权限(ArkTS)(API 9)](https://gitee.com/openharmony/codelabs/tree/master/Ability/AccessPermission) \ No newline at end of file +- [AbilityAccessCtrl:访问权限控制(ArkTS)(Full SDK)(API8)](https://gitee.com/openharmony/applications_app_samples/tree/master/Safety/AbilityAccessCtrl) +- [为应用添加运行时权限(ArkTS)(Full SDK)(API9)](https://gitee.com/openharmony/codelabs/tree/master/Ability/AccessPermission) \ No newline at end of file diff --git a/zh-cn/application-dev/security/accesstoken-overview.md b/zh-cn/application-dev/security/accesstoken-overview.md index 5aae9b27ec59c39aac848a0c3653a27cc393b5fe..aad84e46328813bf8c93ec6eeed26ece60f2123f 100644 --- a/zh-cn/application-dev/security/accesstoken-overview.md +++ b/zh-cn/application-dev/security/accesstoken-overview.md @@ -153,7 +153,7 @@ ATM (AccessTokenManager) 是OpenHarmony上基于AccessToken构建的统一的应 - 权限申请 - 开发者需要在配置文件中[声明目标权限](accesstoken-guidelines.md#权限申请声明)。 + 开发者需要在配置文件中[声明目标权限](accesstoken-guidelines.md#配置文件权限声明)。 - 权限授权 @@ -175,7 +175,7 @@ ATM (AccessTokenManager) 是OpenHarmony上基于AccessToken构建的统一的应 **注意事项:** - 每次执行需要目标权限的操作时,应用都必须检查自己是否已经具有该权限。 -- 如需检查用户是否已向您的应用授予特定权限,可以使用[verifyAccessToken](../reference/apis/js-apis-abilityAccessCtrl.md)函数,此方法会返回 [PERMISSION_GRANTED](../reference/apis/js-apis-abilityAccessCtrl.md)或[PERMISSION_DENIED](../reference/apis/js-apis-abilityAccessCtrl.md)。具体的示例代码可以查看[访问控制开发指导](accesstoken-guidelines.md)。 +- 如需检查用户是否已向您的应用授予特定权限,可以使用[checkAccessToken](../reference/apis/js-apis-abilityAccessCtrl.md#checkaccesstoken9)函数,此方法会返回 [PERMISSION_GRANTED](../reference/apis/js-apis-abilityAccessCtrl.md)或[PERMISSION_DENIED](../reference/apis/js-apis-abilityAccessCtrl.md)。具体的示例代码可以查看[访问控制开发指导](accesstoken-guidelines.md)。 - user_grant权限授权要基于用户可知可控的原则,需要应用在运行时主动调用系统动态申请权限的接口,系统弹框由用户授权,用户结合应用运行场景的上下文,识别出应用申请相应敏感权限的合理性,从而做出正确的选择。 - 即使用户向应用授予过请求的权限,应用在调用受此权限管控的接口前,也应该先检查自己有无此权限,而不能把之前授予的状态持久化,因为用户在动态授予后还可以通过设置取消应用的权限。 diff --git a/zh-cn/application-dev/security/cert-guidelines.md b/zh-cn/application-dev/security/cert-guidelines.md index 3af71a00098d37037564708aa7039348dc62158f..05240c1eb3adf66cc3133faa12f674fb99b9e807 100755 --- a/zh-cn/application-dev/security/cert-guidelines.md +++ b/zh-cn/application-dev/security/cert-guidelines.md @@ -260,7 +260,7 @@ function crlSample() { console.log("isRevoked failed, errCode: " + error.code + ", errMsg: " + error.message); } - // 业务需通过AsyKeyGenerator的generateKeyPair或convertKey接口获取PubKey对象,此处省略 + // 业务需通过将public key二进制数据输入 @ohos.security.cryptoFramework的convertKey接口获取PubKey对象,此处省略 let pubKey = null; // 证书吊销列表验签 diff --git a/zh-cn/application-dev/security/cryptoFramework-guidelines.md b/zh-cn/application-dev/security/cryptoFramework-guidelines.md index 562bef2ff66b8f961190f2bd1027496ffa4fa793..0c697abe1d3eef3718759ba8107e2e2e68a12ebc 100644 --- a/zh-cn/application-dev/security/cryptoFramework-guidelines.md +++ b/zh-cn/application-dev/security/cryptoFramework-guidelines.md @@ -249,7 +249,7 @@ function genGcmParamsSpec() { arr = [0, 0, 0, 0 , 0, 0, 0, 0, 0, 0, 0, 0 , 0, 0, 0, 0]; // 16 bytes let dataTag = new Uint8Array(arr); let tagBlob = {data : dataTag}; - let gcmParamsSpec = {iv : ivBlob, aad : aadBlob, authTag : tagBlob, algoName : "GcmParamsSpec"}; + let gcmParamsSpec = {iv : ivBlob, aad : aadBlob, authTag : tagBlob, algName : "GcmParamsSpec"}; return gcmParamsSpec; } @@ -296,8 +296,8 @@ function testAesGcm() { }, 10) }).then(() => { // 生成对称密钥生成器 - let symAlgoName = 'AES128'; - let symKeyGenerator = cryptoFramework.createSymKeyGenerator(symAlgoName); + let symAlgName = 'AES128'; + let symKeyGenerator = cryptoFramework.createSymKeyGenerator(symAlgName); if (symKeyGenerator == null) { console.error('createSymKeyGenerator failed'); return; @@ -309,9 +309,9 @@ function testAesGcm() { globalGcmParams = genGcmParamsSpec(); // 生成加解密生成器 - let cipherAlgoName = 'AES128|GCM|PKCS7'; + let cipherAlgName = 'AES128|GCM|PKCS7'; try { - globalCipher = cryptoFramework.createCipher(cipherAlgoName); + globalCipher = cryptoFramework.createCipher(cipherAlgName); console.info(`cipher algName: ${globalCipher.algName}`); } catch (error) { console.error(`createCipher failed, ${error.code}, ${error.message}`); @@ -409,8 +409,8 @@ function genKeyMaterialBlob() { // 3DES ECB模式示例,采用已有数据生成密钥(callback写法) function test3DesEcb() { // 生成对称密钥生成器 - let symAlgoName = '3DES192'; - let symKeyGenerator = cryptoFramework.createSymKeyGenerator(symAlgoName); + let symAlgName = '3DES192'; + let symKeyGenerator = cryptoFramework.createSymKeyGenerator(symAlgName); if (symKeyGenerator == null) { console.error('createSymKeyGenerator failed'); return; @@ -418,9 +418,9 @@ function test3DesEcb() { console.info(`symKeyGenerator algName: ${symKeyGenerator.algName}`); // 生成加解密生成器 - let cipherAlgoName = '3DES192|ECB|PKCS7'; + let cipherAlgName = '3DES192|ECB|PKCS7'; try { - globalCipher = cryptoFramework.createCipher(cipherAlgoName); + globalCipher = cryptoFramework.createCipher(cipherAlgName); console.info(`cipher algName: ${globalCipher.algName}`); } catch (error) { console.error(`createCipher failed, ${error.code}, ${error.message}`); diff --git a/zh-cn/application-dev/security/huks-guidelines.md b/zh-cn/application-dev/security/huks-guidelines.md index fb0922ed99056d703130194a0b30de0228f76be8..1017b119a80ba96bec68f317e138a2b5b8da4efa 100644 --- a/zh-cn/application-dev/security/huks-guidelines.md +++ b/zh-cn/application-dev/security/huks-guidelines.md @@ -235,12 +235,12 @@ try { **表2** 加密密钥材料格式 -| 内容 | 业务公钥长度Lpk2 | 业务公钥pk2 | k2加密参数AAD2长度LAAD2 | k2加密参数AAD2 | k2加密参数Nonce2长度LNonce2 | k2加密参数Nonce2 | +| 内容 | 业务公钥长度Lpk2 | 业务公钥pk2 | k2加密参数AAD2长度LAAD2 | k2加密参数AAD2 | k2加密参数Nonce2长度LNonce2 | k2加密参数Nonce2 | | :--: |:----:|:----: |:----: | :----: | :----:|:----:| |长度| 4字节 |Lpk2字节| 4字节 | LAAD2字节 | 4字节 | LNonce2字节 | -| 内容 | k2加密参数AEAD2长度LAEAD2 | k2加密参数AEAD2 | k3密文长度Lk3_enc | k3密文k3_enc | k3加密参数AAD3长度LAAD3 | k3加密参数AAD3 | +| 内容 | k2加密参数AEAD2长度LAEAD2 | k2加密参数AEAD2 | k3密文长度Lk3_enc | k3密文k3_enc | k3加密参数AAD3长度LAAD3 | k3加密参数AAD3 | |长度| 4字节 |LAEAD2字节| 4字节 | Lk3_enc字节 | 4字节 | LAAD3字节 | -| 内容| k3加密参数Nonce3长度LNonce3 | k3加密参数Nonce3 | k3加密参数AEAD3长度LAEAD3 | k3加密参数AEAD3 | **密钥明文材料长度** 的长度Lk1'_size | 密钥明文材料长度k1'_size | +| 内容| k3加密参数Nonce3长度LNonce3 | k3加密参数Nonce3 | k3加密参数AEAD3长度LAEAD3 | k3加密参数AEAD3 | **密钥明文材料长度** 的长度Lk1'_size | 密钥明文材料长度k1'_size | |长度| 4字节 |LNonce3字节| 4字节 | LAEAD3字节 | 4字节 | Lk1'_size字节 | |内容|k1'密文长度Lk1'_enc| k1'密文k1'_enc| | | | | |长度| 4字节 |Lk1'_enc字节| | | | | @@ -981,7 +981,9 @@ import huks from '@ohos.security.huks'; */ let generateKeyAlias = 'sm2_Key'; let importKeyAlias = 'importKeyAlias'; -let signVerifyInData = 'signVerifyInDataForTest'; +let signVerifyInData1 = 'signVerifyInDataForTestFirstText'; +let signVerifyInData2 = 'signVerifyInDataForTestSecondText'; +let signVerifyInData = [signVerifyInData1, signVerifyInData2]; let handle; let exportKey; let finishOutData; @@ -1338,9 +1340,10 @@ async function testSm2SignVerify() { await publicInitFunc(generateKeyAlias, signOptions); signHandle = handle; - signOptions.inData = StringToUint8Array(signVerifyInData) - await publicUpdateFunc(signHandle, signOptions); - + for (var index = 0; index < signVerifyInData.length; index++) { + signOptions.inData = StringToUint8Array(signVerifyInData[index]); + await publicUpdateFunc(signHandle, signOptions); + } signOptions.inData = new Uint8Array(new Array()); await publicFinishFunc(signHandle, signOptions); signFinishOutData = finishOutData; @@ -1357,10 +1360,10 @@ async function testSm2SignVerify() { await publicInitFunc(importKeyAlias, verifyOptions); verifyHandle = handle; - - verifyOptions.inData = StringToUint8Array(signVerifyInData) - await publicUpdateFunc(verifyHandle, verifyOptions); - + for (var index = 0; index < signVerifyInData.length; index++) { + verifyOptions.inData = StringToUint8Array(signVerifyInData[index]); + await publicUpdateFunc(verifyHandle, verifyOptions); + } verifyOptions.inData = signFinishOutData; await publicFinishFunc(verifyHandle, verifyOptions); diff --git a/zh-cn/application-dev/security/permission-list.md b/zh-cn/application-dev/security/permission-list.md index d586352a3385787cc39a5619fb0e5c0671c3c43a..19970e2214611a716eacb2113febe2f409f9992c 100644 --- a/zh-cn/application-dev/security/permission-list.md +++ b/zh-cn/application-dev/security/permission-list.md @@ -534,9 +534,9 @@ **ACL使能**:TRUE -## ohos.permission.START_ABILIIES_FROM_BACKGROUND +## ohos.permission.START_ABILITIES_FROM_BACKGROUND -允许应用在后台启动FA。 +允许应用在后台启动或者访问其他组件。 **权限级别**:system_basic @@ -1594,6 +1594,16 @@ **ACL使能**:TRUE +## ohos.permission.APP_TRACKING_CONSENT + +允许应用读取广告标识符。 + +**权限级别**:normal + +**授权方式**:user_grant + +**ACL使能**:TRUE + ## ohos.permission.RUN_ANY_CODE 允许应用运行未签名的代码。 diff --git a/zh-cn/application-dev/security/permission-verify-guidelines.md b/zh-cn/application-dev/security/permission-verify-guidelines.md index f36c97d7b88ad29230df4cd600d802e22b96c50a..0d514041edd27762f4fb5ced86121089bb1b3ddf 100644 --- a/zh-cn/application-dev/security/permission-verify-guidelines.md +++ b/zh-cn/application-dev/security/permission-verify-guidelines.md @@ -6,11 +6,14 @@ ## 接口说明 -以下仅列举本指导使用的接口,更多说明可以查阅[API参考](../reference/apis/js-apis-ability-context.md)。 +以下仅列举本指导使用的接口,更多说明可以查阅[API参考](../reference/apis/js-apis-abilityAccessCtrl)。 -| 接口名 | 描述 | -| ------------------------------------------------------------ | --------------------------------------------------- | -| verifyAccessToken(tokenID: number, permissionName: string): Promise<GrantStatus> | 校验指定的应用进程是否已被授权指定的权限。 | +checkAccessToken(tokenID: number, permissionName: Permissions): Promise<GrantStatus> + +| 参数名 | 类型 | 必填 | 说明 | +| -------- | ------------------- | ---- | ------------------------------------------ | +| tokenID | number | 是 | 要校验的目标应用的身份标识。可通过应用的[ApplicationInfo](../reference/apis/js-apis-bundleManager-applicationInfo.md)获得。 | +| permissionName | Permissions | 是 | 需要校验的权限名称,合法的权限名取值可在[系统权限定义列表](permission-list.md)中查询。 | ## 完整示例 @@ -20,8 +23,8 @@ 1. 获取调用者的身份标识:tokenId。 > **说明:**
> 获取访问者身份标识tokenId的方法 getCallingTokenId 可参考[API参考](../reference/apis/js-apis-rpc.md)。 -2. 待校验的权限名:ohos.permission.PERMISSION。 -3. 使用verifyAccessToken接口对当前调用者进行权限校验。 +2. 待校验的权限名:ohos.permission.ACCELEROMETER。 +3. 使用checkAccessToken接口对当前调用者进行权限校验。 4. 根据权限校验结果采取对应的措施。 ```js @@ -33,11 +36,14 @@ let callerTokenId = rpc.IPCSkeleton.getCallingTokenId(); console.log("RpcServer: getCallingTokenId result: " + callerTokenId); var atManager = abilityAccessCtrl.createAtManager(); - var result = await atManager.verifyAccessToken(tokenID, "ohos.permission.PERMISSION"); - if (result == abilityAccessCtrl.GrantStatus.PERMISSION_GRANTED) { - // 允许访问者调用当前应用提供的接口 - } else { - // 不允许访问者调用当前应用提供的接口 + try { + atManager.checkAccessToken(callerTokenId, "ohos.permission.ACCELEROMETER").then((data) => { + console.log(`checkAccessToken success, data->${JSON.stringify(data)}`); + }).catch((err) => { + console.log(`checkAccessToken fail, err->${JSON.stringify(err)}`); + }); + } catch(err) { + console.log(`catch err->${JSON.stringify(err)}`); } return true; } diff --git a/zh-cn/application-dev/task-management/reminder-agent-development.md b/zh-cn/application-dev/task-management/reminder-agent-development.md index 20390299966d8d696129b7177fb14204e46bec59..cc57f01db881131f73ea7b11392005dd03fc0442 100644 --- a/zh-cn/application-dev/task-management/reminder-agent-development.md +++ b/zh-cn/application-dev/task-management/reminder-agent-development.md @@ -175,3 +175,9 @@ console.log("cancelReminder code: " + error.code + ", message: " + error.message); }; ``` + +## 相关实例 + +基于后台代理提醒的开发,有以下相关实例可供参考: + +- [闹钟(ArkTS)(API9)](https://gitee.com/openharmony/codelabs/tree/master/CommonEventAndNotification/AlarmClock) \ No newline at end of file diff --git a/zh-cn/application-dev/telephony/Readme-CN.md b/zh-cn/application-dev/telephony/Readme-CN.md index 7361624ade0d235beb6e00ad87ce6b84c67a09df..f7892bf92c07bfcee484c9fdac765fcf487d9f90 100644 --- a/zh-cn/application-dev/telephony/Readme-CN.md +++ b/zh-cn/application-dev/telephony/Readme-CN.md @@ -1,5 +1,5 @@ # 电话服务 - [电话服务开发概述](telephony-overview.md) -- [跳转拨号界面](jumping-to-the-dial-screen.md) -- [获取当前蜂窝网络信号信息](cellular-network-signal-info.md) +- [拨打电话](telephony-call.md) +- [短信服务](telephony-sms.md) diff --git a/zh-cn/application-dev/telephony/cellular-network-signal-info.md b/zh-cn/application-dev/telephony/cellular-network-signal-info.md deleted file mode 100644 index 2e37ff8134208b978720953229ee445d8cd922e6..0000000000000000000000000000000000000000 --- a/zh-cn/application-dev/telephony/cellular-network-signal-info.md +++ /dev/null @@ -1,56 +0,0 @@ -# 获取当前蜂窝网络信号信息 - - -## 场景介绍 - -应用通常需要获取用户所在蜂窝网络下信号信息,以便获取当前驻网质量。开发者可以通过本业务,获取到用户指定SIM卡当前所在网络下的信号信息。 - - -## 接口说明 - -radio模块提供了获取当前网络信号信息的方法。observer模块为开发者提供蜂窝网络状态订阅和取消订阅功能。具体接口说明如下表。 - -| 功能分类 | 接口名 | 描述 | 所需权限 | -| -------- | -------- | -------- | -------- | -| 信号强度信息 | radio.getSignalInformation​​() | 获取当前注册蜂窝网络信号强度信息 | 无 | -| 订阅蜂窝网络信号变化 | observer.on('signalInfoChange') | 订阅蜂窝网络信号变化 | 无 | -| 取消订阅蜂窝网络信号变化 | observer.off('signalInfoChange') | 取消订阅蜂窝网络信号变化 | 无 | - - -## 开发步骤 - -1. import需要的模块。 - -2. 调用getSignalInformation()方法,返回所有SignalInformation列表。 - -3. 遍历SignalInformation数组,并分别根据不同的signalType得到不同制式的信号强度。 - -4. 订阅蜂窝网络信号变化(可选)。 - - ```js - import radio from '@ohos.telephony.radio' - import observer from '@ohos.telephony.observer'; - - // 以获取卡1的信号强度为例 - let slotId = 0; - radio.getSignalInformation(slotId, (err, data) => { - if (!err) { - console.log("get signal information success."); - // 遍历数组,输出不同网络制式下的信号强度 - for (let j = 0; j < data.length; j++) { - console.log("type:" + data[j].signalType + ", level:" + data[j].signalLevel); - } - } else { - console.log("get signal information fail, err is:" + JSON.stringify(err)); - } - }); - // 订阅蜂窝网络信号变化(可选) - observer.on("signalInfoChange", (data) => { - console.log("signal info change, data is:" + JSON.stringify(data)); - }); - ``` - -## 相关实例 - -针对蜂窝网络数据开发,有以下相关实例可供参考: -- [`MobileNetwork`:蜂窝数据(ArkTS)(API9)](https://gitee.com/openharmony/applications_app_samples/tree/master/Telephony/MobileNetwork) \ No newline at end of file diff --git a/zh-cn/application-dev/telephony/jumping-to-the-dial-screen.md b/zh-cn/application-dev/telephony/jumping-to-the-dial-screen.md deleted file mode 100644 index 6cdca64e2e8d47d6dbc6e1557c166f0c18394243..0000000000000000000000000000000000000000 --- a/zh-cn/application-dev/telephony/jumping-to-the-dial-screen.md +++ /dev/null @@ -1,51 +0,0 @@ -# 跳转拨号界面 - -当应用需要跳转到拨号界面,并显示拨号的号码时,使用本业务。当开发者调用makeCall接口时,设备会自动跳转到拨号界面。和正常拨打电话一样,用户可以选择音频或视频呼叫,卡1或卡2拨出。 - - -## 接口说明 - -call模块为开发者提供呼叫管理功能。observer模块为开发者提供订阅和取消订阅通话业务状态的功能。具体接口说明如下表。 - -| 功能分类 | 接口名 | 描述 | 所需权限 | -| -------- | -------- | -------- | -------- | -| 能力获取 | call.hasVoiceCapability() | 是否具有语音功能 | 无 | -| 跳转拨号界面 | call.makeCall() | 跳转到拨号界面,并显示拨号的号码 | 无 | -| 订阅通话业务状态变化 | observer.on('callStateChange') | 订阅通话业务状态变化 | ohos.permission.READ_CALL_LOG (获取通话号码需要该权限) | -| 取消订阅通话业务状态变化 | observer.off('callStateChange') | 取消订阅通话业务状态变化 | 无 | - - -## 开发步骤 - -1. import需要的模块。 - -2. 调用hasVoiceCapability()接口获取当前设备呼叫能力,如果支持继续下一步;如果不支持则无法发起呼叫。 - -3. 跳转到拨号界面,并显示拨号的号码。 - -4. (可选)订阅通话业务状态变化。 - - ```js - // import需要的模块 - import call from '@ohos.telephony.call'; - import observer from '@ohos.telephony.observer'; - - // 调用查询能力接口 - let isSupport = call.hasVoiceCapability(); - if (!isSupport) { - console.log("not support voice capability, return."); - return; - } - // 如果设备支持呼叫能力,则继续跳转到拨号界面,并显示拨号的号码 - call.makeCall("13xxxx", (err)=> { - if (!err) { - console.log("make call success."); - } else { - console.log("make call fail, err is:" + JSON.stringify(err)); - } - }); - // 订阅通话业务状态变化(可选) - observer.on("callStateChange", (data) => { - console.log("call state change, data is:" + JSON.stringify(data)); - }); - ``` diff --git a/zh-cn/application-dev/telephony/telephony-call.md b/zh-cn/application-dev/telephony/telephony-call.md new file mode 100644 index 0000000000000000000000000000000000000000..0426b1df602827beb3e6b163ecd893241b475545 --- /dev/null +++ b/zh-cn/application-dev/telephony/telephony-call.md @@ -0,0 +1,116 @@ +# 拨打电话 + +## 场景介绍 + +开发者可以通过两种不同的方式实现拨打电话的功能: +- 对于系统应用,开发者可以使用dial接口,直接进行音频/视频呼叫,在应用界面显示对应的通话。 +- 对于三方应用,开发者可以使用makecall接口,拉起系统电话应用,用户可以自行呼出通话。 + +## 基本概念 + +- 通话状态码 + 将当前的通话状态上报给app,可以根据当前的通话状态去做一些逻辑处理。例如在当前没有正在进行呼叫的时候,可以正常拨打新的一通电话。 + + | 名称 | 值 | 说明 | + | ------------------ | ---- | ------------------------------------------------------------ | + | CALL_STATE_UNKNOWN | -1 | 无效状态,当获取呼叫状态失败时返回。 | + | CALL_STATE_IDLE | 0 | 表示没有正在进行的呼叫。 | + | CALL_STATE_RINGING | 1 | 表示来电正在振铃或等待。 | + | CALL_STATE_OFFHOOK | 2 | 表示至少有一个呼叫处于拨号、通话中或呼叫保持状态,并且没有新的来电振铃或等待。 | + +## 约束与限制 + +1. 仅支持在标准系统上运行。 +2. 设备需插入可用的SIM卡。 + + +## 接口说明 + +> **说明:** +> 为了保证应用的运行效率,大部分API调用都是异步的,对于异步调用的API均提供了callback和Promise两种方式,以下示例均采用callback函数,更多方式可以查阅[API参考](../reference/apis/js-apis-call.md)。 + +| 接口名 | 描述 | +| ----------------------------------------------------------------------------------- | ------------------------------------------------------------ | +| hasVoiceCapability(): boolean; | 判断是否具有语音功能。 | +| dial(phoneNumber: string, callback: AsyncCallback): void | 拨号。该接口为系统接口。 | +| makeCall(phoneNumber: string, callback: AsyncCallback): void | 转到拨号屏幕,显示被叫号码。 | + +observer模块为开发者提供订阅和取消订阅通话业务状态的功能。具体API说明详见[接口文档](../reference/apis/js-apis-observer.md)。 + +| 接口名 | 描述 | +| ------------------------------------------------------------ | ------------------ | +| on(type: 'callStateChange', options: { slotId: number }, callback: Callback<{ state: CallState, number: string }>): void | 监听通话状态变化。 | + +## 开发步骤 + +### 使用dial拨打电话(仅供系统应用使用) + +1. 声明接口调用所需要的权限:ohos.permission.PLACE_CALL +ohos.permission.PLACE_CALL权限级别为system_basic,在申请权限前,请保证符合[权限使用的基本原则](../security/accesstoken-overview.md#权限使用的基本原则)。然后参考[配置文件权限声明指导文档](../security/accesstoken-guidelines.md#配置文件权限声明)声明对应权限。 +2. 导入call和observer模块。 +3. 调用hasVoiceCapability,确认当前设备是否支持拨号。 + 如果设备支持呼叫能力,则继续跳转到拨号界面,并显示拨号的号码。 +4. 调用dial接口,拨打电话。 +5.(可选)订阅通话业务状态变化。 + ```js + // import需要的模块 + import call from '@ohos.telephony.call' + import observer from '@ohos.telephony.observer' + + // 调用查询能力接口 + let isSupport = call.hasVoiceCapability(); + if (!isSupport) { + console.log("not support voice capability, return."); + return; + } + // 如果设备支持呼叫能力,调用以下接口进行拨号 + call.dial("13xxxx", (err, data) => { + this.output = this.output + `dial: ${JSON.stringify(data)}\n` + console.log(`callback: dial err->${JSON.stringify(err)} data->${JSON.stringify(data)}`) + }) + + // 订阅通话业务状态变化(可选) + observer.on("callStateChange", {slotId: 0}, (data) => { + console.log("call state change, data is:" + JSON.stringify(data)); + }); + ``` + +### 使用makecall拨打电话 + +1. 导入call和observer模块。 +2. 调用hasVoiceCapability,确认当前设备是否支持拨号。 + 如果设备支持呼叫能力,则继续跳转到拨号界面,并显示拨号的号码。 +3. 调用makecall接口,拉起系统电话应用,拨打电话。 +4.(可选)订阅通话业务状态变化。 + + ```js + // import需要的模块 + import call from '@ohos.telephony.call' + import observer from '@ohos.telephony.observer' + + // 调用查询能力接口 + let isSupport = call.hasVoiceCapability(); + if (!isSupport) { + console.log("not support voice capability, return."); + return; + } + // 如果设备支持呼叫能力,则继续跳转到拨号界面,并显示拨号的号码 + call.makeCall("13xxxx", (err)=> { + if (!err) { + console.log("make call success."); + } else { + console.log("make call fail, err is:" + JSON.stringify(err)); + } + }); + + // 订阅通话业务状态变化(可选) + observer.on("callStateChange", {slotId: 0}, (data) => { + console.log("call state change, data is:" + JSON.stringify(data)); + }); + ``` + +## 相关实例 + +拨打电话有以下相关实例可供参考: + +- [拨打电话](https://gitee.com/openharmony/applications_app_samples/tree/master/Telephony/Call) diff --git a/zh-cn/application-dev/telephony/telephony-overview.md b/zh-cn/application-dev/telephony/telephony-overview.md index 2870b050a9ce77a4c4729b9b0505721ff2048d50..34583ca3c98debfda5989c6b95d34d71fae0b615 100644 --- a/zh-cn/application-dev/telephony/telephony-overview.md +++ b/zh-cn/application-dev/telephony/telephony-overview.md @@ -1,14 +1,17 @@ # 电话服务开发概述 -电话服务系统提供了一系列的API用于[拨打电话](../reference/apis/js-apis-call.md)、获取[无线蜂窝网络](../reference/apis/js-apis-telephony-data.md)和[SIM卡](../reference/apis/js-apis-sim.md)相关信息。 +电话服务系统提供系列API帮助开发者开发通讯类应用,包括: -应用可以通过调用API来获取当前注册网络名称、网络服务状态、信号强度以及SIM卡的相关信息,具体可参考[获取当前蜂窝网络信号信息](cellular-network-signal-info.md)开发指导。 +- call模块(拨打电话):系统应用可以直接拨打电话,在应用界面显示通话;三方应用可以拉起系统电话应用,跳转至拨号界面,从而实现拨打电话的功能,具体可参考[拨打电话开发指导](telephony-call.md)。除此之外,应用还可以通过call模块,实现格式化电话号码、判断是否紧急号码等功能,详情请参考[@ohos.telephony.call API参考](../reference/apis/js-apis-call.md)。 -直接拨打电话需要系统权限ohos.permission.PLACE_CALL,建议应用使用makeCall(),跳转到拨号界面,并显示拨号的号码,具体可参考[跳转拨号界面](jumping-to-the-dial-screen.md)开发指导。 +- sms模块(短信服务):应用可以实现创建、发送短信消息的功能,具体可参考[发送短信开发指导](telephony-sms.md)。除此之外,应用还可以实现获取、设置短信服务中心地址,和检查当前设备是否具备短信发送和接收能力等功能,详情请参考[@ohos.telephony.sms API参考](../reference/apis/js-apis-sms.md)。 +- radio模块(网络搜索):应用可以调用API获取当前注册网络名称、网络服务状态以及信号强度相关信息,详情请参考[@ohos.telephony.radio API参考](../reference/apis/js-apis-radio.md)。 +- data模块(蜂窝数据):蜂窝数据是无线通讯技术标准的一种,从数据的传输到交换都采用分组技术(Packet Switch),能够为移动设备提供话音、数据、视频图像等业务,经常用于支持用户在智能设备上使用应用程序,以及在移动网络上浏览网页,详情请参考[@ohos.telephony.data API参考](../reference/apis/js-apis-telephony-data.md)。 + +- sim模块(SIM卡管理):应用可以调用API获取SIM卡相关信息,如服务提供商、ISO(International Organization for Standardization,国际标准化组织)国家码、归属PLMN(Public Land Mobile Network,公共陆地移动网络)号等,详情请参考[@ohos.telephony.sim API参考](../reference/apis/js-apis-sim.md)。 -## 约束与限制 -搭载设备需要支持以下硬件: +## 约束与限制 -可以进行独立蜂窝通信的Modem以及SIM卡。 \ No newline at end of file +在调用电话服务API前,请确保使用的硬件设备有可以独立蜂窝通信的Modem和SIM卡。 diff --git a/zh-cn/application-dev/telephony/telephony-sms.md b/zh-cn/application-dev/telephony/telephony-sms.md new file mode 100644 index 0000000000000000000000000000000000000000..15050311040ed94a7a8d10cde184e8e512cd8498 --- /dev/null +++ b/zh-cn/application-dev/telephony/telephony-sms.md @@ -0,0 +1,118 @@ +# 短信服务 + +## 场景介绍 + +短信服务模块提供了管理短信的一些基础能力,包括创建、发送短信,获取、设置发送短信的默认SIM卡槽ID,获取、设置短信服务中心地址,以及检查当前设备是否具备短信发送和接收能力等。 + +## 基本概念 + +- 短信服务 + + 即SMS(Short Messaging Service),是一种存储和转发服务。用户的移动电话可以通过它进行相互收发短信,内容以文本、数字或二进制非文本数据为主。发送方的信息通过短信服务中心进行储存并转发给接收方。 + +- 短信服务中心 + + 即SMSC(Short Message Service Center),负责在基站和移动设备间中继、储存或转发短消息。移动设备到短信服务中心的协议能传输来自移动设备或朝向移动设备的短消息,协议内容遵从GMS 03.40协议。 + +- 协议数据单元 + + 即PDU(Protocol Data Unit),PDU模式收发短信可以使用3种编码:7-bit、8-bit和UCS-2编码。7-bit编码用于发送普通的ASCII字符,8-bit编码通常用于发送数据短信,UCS-2编码用于发送Unicode字符。 + +## 约束与限制 + +1. 仅支持在标准系统上运行。 +2. 需授予发送短信权限且插入SIM卡才可成功发送短信。 + + +## 接口说明 + +> **说明:** +> 为了保证应用的运行效率,大部分API调用都是异步的,对于异步调用的API均提供了callback和Promise两种方式,以下示例均采用callback函数,更多方式可以查阅[API参考](../reference/apis/js-apis-sms.md)。 + +| 接口名 | 描述 | +| ------------------------------------------------------------ | ------------------------------------------------------- | +| createMessage(pdu: Array, specification: string, callback: AsyncCallback): void | 基于协议数据单元(PDU)和指定的SMS协议创建SMS消息实例。 | +| sendMessage(options: SendMessageOptions): void | 发送文本或数据SMS消息。 | +| getDefaultSmsSlotId(callback: AsyncCallback): void | 获取用于发送短信的默认SIM卡。 | +| setSmscAddr(slotId: number, smscAddr: string, callback: AsyncCallback): void | 根据指定的插槽ID设置短信服务中心的地址。 | +| getSmscAddr(slotId: number, callback: AsyncCallback): void | 根据指定的插槽ID获取短信服务中心地址。 | + + +## 开发步骤 + +1. 声明接口调用所需要的权限: + - 如果是想发送短信,则调用sendMessage接口,需要配置ohos.permission.SEND_MESSAGES权限,权限级别为system_basic。 + - 如果是想设置短信服务中心地址,则调用setSmscAddr接口,需要配置ohos.permission.SET_TELEPHONY_STATE权限,权限级别为system_basic。 + - 如果是想获取短信服务中心地址,则调用getSmscAddr接口,需要配置ohos.permission.GET_TELEPHONY_STATE权限,权限级别为system_basic。 + 在申请权限前,请保证符合[权限使用的基本原则](../security/accesstoken-overview.md#权限使用的基本原则)。然后参考[配置文件权限声明指导文档](../security/accesstoken-guidelines.md#配置文件权限声明)声明对应权限。 + +2. import需要的模块。 + +3. 基于协议数据单元(PDU)和指定的SMS协议创建SMS消息实例。 + +4. 发送SMS消息。 + + ```js + // import需要的模块 + import sms from '@ohos.telephony.sms' + + export default class SmsModel { + async createMessage() { + const specification = '3gpp' + const pdu = [0x08, 0x91] // 以数组的形式显示协议数据单元(PDU),类型为number + const shortMessage = await sms.createMessage(pdu, specification) + Logger.info(`${TAG}, createMessageCallback: shortMessage = ${JSON.stringify(shortMessage)}`) + return shortMessage + } + + sendMessage(slotId, content, destinationHost, serviceCenter, destinationPort, handleSend, handleDelivery) { + Logger.info(`${TAG}, sendMessage start ${slotId} ${content} ${destinationHost} ${serviceCenter} ${destinationPort}`) + const options = + { + slotId: slotId, + content: content, + destinationHost: destinationHost, + serviceCenter: serviceCenter, + destinationPort: destinationPort, + sendCallback(err, data) { + Logger.info(`${TAG}, sendCallback: data = ${JSON.stringify(data)} err = ${JSON.stringify(err)}`) + handleSend(err, data) + }, + deliveryCallback(err, data) { + Logger.info(`${TAG}, deliveryCallback: data = ${JSON.stringify(data)} err = ${JSON.stringify(err)}`) + handleDelivery(err, data) + } + } + // 发送SMS消息 + sms.sendMessage(options) + Logger.info(`${TAG}, sendMessage end`) + } + + // 获取用于发送短信的默认SIM卡 + async getDefaultSmsSlotId() { + const defaultSmsSlotId = await sms.getDefaultSmsSlotId() + Logger.info(`${TAG}, getDefaultSmsSlotId: defaultSmsSlotId = ${defaultSmsSlotId}`) + return defaultSmsSlotId + } + + // 根据指定的插槽ID设置短信服务中心的地址 + async setSmscAddr(slotId, smscAddr) { + const serviceCenter = await sms.setSmscAddr(slotId, smscAddr) + Logger.info(`${TAG}, setSmscAddr: serviceCenter = ${JSON.stringify(serviceCenter)}`) + return serviceCenter + } + + // 根据指定的插槽ID获取短信服务中心地址 + async getSmscAddr(slotId) { + const serviceCenter = await sms.getSmscAddr(slotId) + Logger.info(`${TAG}, getSmscAddr: serviceCenter = ${JSON.stringify(serviceCenter)}`) + return serviceCenter + } + } + ``` + + +## 相关实例 + +针对短信的使用,有以下相关实例可供参考: +- [短信服务](https://gitee.com/openharmony/applications_app_samples/tree/master/Telephony/Message) diff --git a/zh-cn/application-dev/tools/Readme-CN.md b/zh-cn/application-dev/tools/Readme-CN.md index 817df156a6735de838661c0bf68b09925d6d22f4..8d00e136013134ad7f0f0015c4d49e5971dbc908 100644 --- a/zh-cn/application-dev/tools/Readme-CN.md +++ b/zh-cn/application-dev/tools/Readme-CN.md @@ -7,3 +7,4 @@ - [拆包工具](unpacking-tool.md) - [cem工具](cem-tool.md) - [anm工具](anm-tool.md) +- [restool工具](restool.md) diff --git a/zh-cn/application-dev/tools/restool.md b/zh-cn/application-dev/tools/restool.md new file mode 100755 index 0000000000000000000000000000000000000000..c69595ea160dea9be2673bda27f58ee253c56080 --- /dev/null +++ b/zh-cn/application-dev/tools/restool.md @@ -0,0 +1,74 @@ +# restool工具 + + +## 简介 + +restool(资源编译工具)是一种资源构建工具。通过编译资源文件创建资源索引、解析资源。restool保存在sdk安装目录下的toolchains子目录。 + +## 参数说明 + +restool当前支持以下命令选项: + +| 选项 | 是否可缺省 | 是否存在入参 | 描述 | +| -------- | -------- | -------- | -------- | +| -i | 不可缺省 | 带参数 | 指定需要构建的资源目录或者需要构建的资源中间文件目录。同一个命令可以多次指定。 | +| -j | 不可缺省 | 带参数 | 指定config.json或者module.json文件路径。 | +| -o | 不可缺省 | 带参数 | 指定已编译资源的输出路径。 | +| -p | 不可缺省 | 带参数 | 指定编译资源的bundle名称。 | +| -r | 不可缺省 | 带参数 | 指定资源的头文件路径,有三种格式:“.txt”、“.js”、“.h”。 | +| -e | 可缺省 | 带参数 | 指定生成资源的起始ID值,例如:0x01000000,范围[0x01000000, 0x06FFFFFF),[0x08000000, 0x41FFFFFF) | +| -f | 可缺省 | 不带参数 | 如果输出路径已经存在。强制删除,重新生成。 | +| -h | 可缺省 | 不带参数 | 查看工具帮助信息。 | +| -m | 可缺省 | 带参数 | 多模块联合编译时,指定多个模块名。用“,”连接。 | +| -x | 可缺省 | 带参数 | 指定生成中间文件的资源目录或单个资源路径。同一个命令可以多次指定。 | +| -z | 可缺省 | 不带参数 | 针对资源终将文件目录,生成编译结果。 | +| -v | 可缺省 | 不带参数 | 查看工具版本号。 | +| --ids | 可缺省 | 带参数 | 指定生成id_defined.json的输出目录。 | +| --defined-ids | 可缺省 | 带参数 | 指定id_defined.json文件路径,一般都是通过--ids生成。
id_defined.json包含资源类型、名称及其ID的列表。
开发者可以自定义id_defined.json中的资源ID。 | + +## 使用实例 + +例如:entry目录结构如下 +``` +entry/src/main +| |----resource +| | |----base +| | | |----element +| | | |----media +| | | |----profile +| | |----rawfile +| |----config.json/module.json +``` + +构建资源全量命令: + +``` +restool -i entry/src/main -j entry/src/main/module.json -p com.ohos.demo -o out -r out/ResourceTable.txt -f +``` + +构建资源增量命令(仅预览模式可用),具体步骤如下: + +1.生成资源中间件: +``` +restool -x entry/src/main/resource -o out +``` +2.编译中间件: +``` +restool -i out1 -i out2 -o out -p com.ohos.demo -r out/ResourceTable.txt -j entry/src/main/module.json -f -z +``` + +固定资源ID的方式有两种,如下: + +方式一:在resource/base/element/目录下存放自定义id_defined.json文件。构建成功后,生成的ID值将会和id_defined.json文件中自定义的ID值保持一致。 + +方式二:通过--ids 命令生成id_defined.json文件。--defined-ids命令指定id_defined.json文件。构建成功后,生成的ID值将会和id_defined.json文件中自定义的ID值保持一致。 + +生成id_defined.json文件: +``` +restool -i entry/src/main -j entry/src/main/module.json -p com.ohos.demo -o out -r out/ResourceTable.txt --ids out/id_defined.json -f +``` + +指定资源ID固定的id_defined.json文件: +``` +restool -i entry/src/main -j entry/src/main/module.json -p com.ohos.demo -o out1 -r out1/ResourceTable.txt --defined-ids out/id_defined.json -f +``` \ No newline at end of file diff --git a/zh-cn/application-dev/ui/ui-js-building-ui-component.md b/zh-cn/application-dev/ui/ui-js-building-ui-component.md index 6ef14c79e61a3b67a9c5b63053a80fb919c316c1..53f345facae16f1885214e63bc7f43f6d3bb9561 100755 --- a/zh-cn/application-dev/ui/ui-js-building-ui-component.md +++ b/zh-cn/application-dev/ui/ui-js-building-ui-component.md @@ -25,6 +25,8 @@ 针对组件开发,有以下相关实例可供参考: +- [`JsComponentCollection`:组件集合(JS)(API9)](https://gitee.com/openharmony/applications_app_samples/tree/master/UI/JsComponentCollection) + - [`JsPanel`:内容展示面板(JS)(API8)](https://gitee.com/openharmony/applications_app_samples/tree/master/UI/JsPanel) - [`Popup`:气泡(JS)(API8)](https://gitee.com/openharmony/applications_app_samples/tree/master/UI/Popup) diff --git a/zh-cn/application-dev/ui/ui-ts-components-intro.md b/zh-cn/application-dev/ui/ui-ts-components-intro.md index 098791ee5e3a4787d7a85eee43b417a5f88007d5..343a6c790404c47b05b40f2ab2686c1312ec3388 100644 --- a/zh-cn/application-dev/ui/ui-ts-components-intro.md +++ b/zh-cn/application-dev/ui/ui-ts-components-intro.md @@ -15,6 +15,12 @@ ## 相关实例 +基于ArkTS的常用组件开发,有以下相关实例可供参考: + +- [`ComponentCollection`:组件集合(ArkTS)(API9)](https://gitee.com/openharmony/applications_app_samples/tree/master/ETSUI/ComponentCollection) + +- [`OrangeShopping`:购物示例应用(ArkTS)(API9)](https://gitee.com/openharmony/applications_app_samples/tree/master/ETSUI/OrangeShopping) + - [`Canvas`:画布组件(ArkTS)(API8)](https://gitee.com/openharmony/applications_app_samples/tree/master/ETSUI/Canvas) - [`Clock`:简单时钟(ArkTS)(API9)](https://gitee.com/openharmony/applications_app_samples/tree/master/Preset/Clock) @@ -25,6 +31,8 @@ - [`QRCode`:二维码(ArkTS)(API9)(Full SDK)](https://gitee.com/openharmony/applications_app_samples/tree/master/ETSUI/QRCode) -- [基础组件Slider的使用(ArkTS)(API8)](https://gitee.com/openharmony/codelabs/tree/master/ETSUI/SliderApplicationEts) - - [`Gallery`:组件集合(ArkTS)(API8)](https://gitee.com/openharmony/applications_app_samples/tree/master/ETSUI/Gallery) + +- [List组件的使用之商品列表(ArkTS)(API9)](https://gitee.com/openharmony/codelabs/tree/master/ETSUI/List_HDC) + +- [List组件的使用之设置项(ArkTS)(API9)](https://gitee.com/openharmony/codelabs/tree/master/ETSUI/List_HDC) \ No newline at end of file diff --git a/zh-cn/application-dev/ui/ui-ts-components-web.md b/zh-cn/application-dev/ui/ui-ts-components-web.md index 046c192db4ce6dd17655981a8b8502e13e8e9b95..1f7330eda0051c771f1a09fa6113d77adc22ce88 100644 --- a/zh-cn/application-dev/ui/ui-ts-components-web.md +++ b/zh-cn/application-dev/ui/ui-ts-components-web.md @@ -8,10 +8,12 @@ Web是提供网页显示能力的组件,具体用法请参考 [Web API](../ref ```ts // xxx.ets + import web_webview from '@ohos.web.webview'; + @Entry @Component struct WebComponent { - controller: WebController = new WebController(); + controller: web_webview.WebviewController = new web_webview.WebviewController(); build() { Column() { Web({ src: 'https://www.example.com', controller: this.controller }) @@ -26,11 +28,13 @@ Web组件的使用需要添加丰富的页面样式和功能属性。设置heigh ```ts // xxx.ets +import web_webview from '@ohos.web.webview'; + @Entry @Component struct WebComponent { fileAccess: boolean = true; - controller: WebController = new WebController(); + controller: web_webview.WebviewController = new web_webview.WebviewController(); build() { Column() { Text('Hello world!') @@ -54,13 +58,15 @@ struct WebComponent { ```ts // xxx.ets +import web_webview from '@ohos.web.webview'; + @Entry @Component struct WebComponent { @State progress: number = 0; @State hideProgress: boolean = true; fileAccess: boolean = true; - controller: WebController = new WebController(); + controller: web_webview.WebviewController = new web_webview.WebviewController(); build() { Column() { Text('Hello world!') @@ -93,14 +99,17 @@ struct WebComponent { ```ts // xxx.ets +import web_webview from '@ohos.web.webview'; + @Entry @Component struct WebComponent { @State progress: number = 0; @State hideProgress: boolean = true; + @State webResult: string = '' fileAccess: boolean = true; // 定义Web组件的控制器controller - controller: WebController = new WebController(); + controller: web_webview.WebviewController = new web_webview.WebviewController(); build() { Column() { Text('Hello world!') @@ -124,8 +133,23 @@ struct WebComponent { }) .onPageEnd(e => { // test()在index.html中定义 - this.controller.runJavaScript({ script: 'test()' }); - console.info('url: ', e.url); + try { + this.controller.runJavaScript( + 'test()', + (error, result) => { + if (error) { + console.info(`run JavaScript error: ` + JSON.stringify(error)) + return; + } + if (result) { + this.webResult = result + console.info(`The test() return value is: ${result}`) + } + }); + console.info('url: ', e.url); + } catch (error) { + console.error(`ErrorCode: ${error.code}, Message: ${error.message}`); + } }) Text('End') .fontSize(20) @@ -160,10 +184,12 @@ struct WebComponent { 1、首先设置Web组件属性webDebuggingAccess为true。 ```ts // xxx.ets + import web_webview from '@ohos.web.webview'; + @Entry @Component struct WebComponent { - controller: WebController = new WebController() + controller: web_webview.WebviewController = new web_webview.WebviewController(); build() { Column() { Web({ src: 'www.example.com', controller: this.controller }) @@ -189,20 +215,30 @@ struct WebComponent { ```ts // xxx.ets +import web_webview from '@ohos.web.webview'; + @Entry @Component struct WebComponent { - controller: WebController = new WebController(); + controller: web_webview.WebviewController = new web_webview.WebviewController(); build() { Column() { Row() { Button('onActive').onClick(() => { console.info("Web Component onActive"); - this.controller.onActive(); + try { + this.controller.onActive(); + } catch (error) { + console.error(`Errorcode: ${error.code}, Message: ${error.message}`); + } }) Button('onInactive').onClick(() => { console.info("Web Component onInactive"); - this.controller.onInactive(); + try { + this.controller.onInactive(); + } catch (error) { + console.error(`Errorcode: ${error.code}, Message: ${error.message}`); + } }) } Web({ src: $rawfile('index.html'), controller: this.controller }) @@ -231,3 +267,7 @@ struct WebComponent { 针对Web开发,有以下相关实例可供参考: - [`Web`:Web(ArkTS)(API8)](https://gitee.com/openharmony/applications_app_samples/tree/master/ETSUI/Web) + +- [Web组件的使用(ArkTS)(API9)](https://gitee.com/openharmony/codelabs/tree/master/ETSUI/WebCookie) + +- [Web组件抽奖案例(ArkTS)(API9)](https://gitee.com/openharmony/codelabs/tree/master/ETSUI/WebComponent) diff --git a/zh-cn/application-dev/ui/ui-ts-overview.md b/zh-cn/application-dev/ui/ui-ts-overview.md index e7bf1744db4373eb141e219dd19ca003782b82d8..308bcc78c26833500e59f53225a828411bd0432a 100644 --- a/zh-cn/application-dev/ui/ui-ts-overview.md +++ b/zh-cn/application-dev/ui/ui-ts-overview.md @@ -76,14 +76,16 @@ ArkTS语言的基础知识请参考[学习ArkTS语言](../quick-start/arkts-get- - [`TransitionAnimation`:转场动画(ArkTS)(API9)](https://gitee.com/openharmony/applications_app_samples/tree/master/ETSUI/TransitionAnimation) +- [基础组件Slider的使用(ArkTS)(API9)](https://gitee.com/openharmony/codelabs/tree/master/ETSUI/SliderExample) + +- [转场动画的使用(ArkTS)(API9)](https://gitee.com/openharmony/codelabs/tree/master/ETSUI/TransitionAnimation) + - [极简声明式UI范式(ArkTS)(API8)](https://gitee.com/openharmony/codelabs/tree/master/ETSUI/SimpleGalleryEts) - [购物应用(ArkTS)(API8)](https://gitee.com/openharmony/codelabs/tree/master/ETSUI/ShoppingEts) -- [转场动画的使用(ArkTS)(API8)](https://gitee.com/openharmony/codelabs/tree/master/ETSUI/TransitionAnimtaionEts) - - [弹窗(ArkTS)(API8)](https://gitee.com/openharmony/codelabs/tree/master/ETSUI/CustomDialogEts) - [`UpgradePopup`:自定义弹窗(ArkTS)(API9)](https://gitee.com/openharmony/applications_app_samples/tree/master/ETSUI/UpgradePopup) -- [CustomComponent:组件化(ArkTS)(API8)](https://gitee.com/openharmony/applications_app_samples/tree/master/ETSUI/CustomComponent) \ No newline at end of file +- [CustomComponent:组件化(ArkTS)(API8)](https://gitee.com/openharmony/applications_app_samples/tree/master/ETSUI/CustomComponent) diff --git a/zh-cn/application-dev/webgl/webgl-guidelines.md b/zh-cn/application-dev/webgl/webgl-guidelines.md index b4456e87ca3331c61bf069d504508a02d0274e07..644fe8b172683880599c370f49292b3e3afbc99a 100644 --- a/zh-cn/application-dev/webgl/webgl-guidelines.md +++ b/zh-cn/application-dev/webgl/webgl-guidelines.md @@ -4,6 +4,10 @@ WebGL主要帮助开发者在前端开发中完成图形图像的相关处理,比如绘制彩色图形等。 +> **说明:** +> +> 目前该功能仅支持使用兼容JS的类Web开发范式开发。 + ## 接口说明 diff --git a/zh-cn/application-dev/windowmanager/application-window-fa.md b/zh-cn/application-dev/windowmanager/application-window-fa.md index f3eb1da1e329aa6f4a2df28236dc44fe8f2c56be..09c29be1c50dc55ec80c6a87c8f93a99e89c43e7 100644 --- a/zh-cn/application-dev/windowmanager/application-window-fa.md +++ b/zh-cn/application-dev/windowmanager/application-window-fa.md @@ -23,7 +23,7 @@ | 实例名 | 接口名 | 描述 | | -------- | -------- | -------- | | window静态方法 | createWindow(config: Configuration, callback: AsyncCallback\): void | 创建子窗口。
-`config`:创建窗口时的参数。 | -| window静态方法 | findWindow(id: string, callback: AsyncCallback<Window>): void | 查找`id`所对应的窗口。 | +| window静态方法 | findWindow(name: string): Window | 查找`name`所对应的窗口。 | | Window | SetUIContent(path: string, callback: AsyncCallback<void>): void | 为当前窗口加载具体页面内容。 | | Window | moveWindowTo(x: number, y: number, callback: AsyncCallback<void>): void | 移动当前窗口。 | | Window | setWindowBackgroundColor(color: string, callback: AsyncCallback<void>): void | 设置窗口的背景色。 | @@ -64,14 +64,11 @@ windowClass = data; }); // 方式二:查找得到子窗口。 - window.findWindow("subWindow", (err, data) => { - if (err.code) { - console.error('Failed to find the subWindow. Cause: ' + JSON.stringify(err)); - return; - } - console.info('Succeeded in finding subWindow. Data: ' + JSON.stringify(data)); - windowClass = data; - }); + try { + windowClass = window.findWindow('subWindow'); + } catch (exception) { + console.error('Failed to find the Window. Cause: ' + JSON.stringify(exception)); + } ``` 2. 设置子窗口属性。 @@ -156,7 +153,7 @@ let mainWindowClass = null; // 获取主窗口。 - window.getLastWindow((err, data) => { + window.getLastWindow(this.context,(err, data) => { if (err.code) { console.error('Failed to get the subWindow. Cause: ' + JSON.stringify(err)); return; diff --git a/zh-cn/contribute/template/js-template.md b/zh-cn/contribute/template/js-template.md index b729a64b35bbb3d1d7d70f2732c63c5aa5eec6f0..ff323eff8e1797a33174e98fb6b0952d37bd1a84 100644 --- a/zh-cn/contribute/template/js-template.md +++ b/zh-cn/contribute/template/js-template.md @@ -104,7 +104,7 @@ import call from '@ohos.telephony.call'; **系统能力:** SystemCapability.xxx.xxx。(必选) -| 名称 | 类型 | 可读 | 可写 | 说明 | +| 名称 | 类型 | 只读 | 必填 | 说明 | | ---------------- | ----------------------------------------- | ---- | ---- | ------------------------------------------ | | pluggedType | [BatteryPluggedType](#batterypluggedtype) | 是 | 否 | 表示当前设备连接的充电器类型。 | | isBatteryPresent | boolean | 是 | 否 | 表示当前设备是否支持电池或者电池是否在位。 | @@ -161,15 +161,15 @@ import call from '@ohos.telephony.call'; | 参数名 | 类型 | 必填 | 说明 | | ------------ | --------------------------------------------- | ---- | ------------------------------------------------------------ | -| parameterOne | number \| string \| [CustomType](#customtype) | 是 | 参数描述。给出取值范围、建议值。如果有固定格式,需要给出格式样例,尤其是URI。
自定义类型需要进行建链说明。 | -| callback | Callback\> | 否 | 参数描述。可选参数需要说明不填写该参数的后果。
如:不填该参数则取消该type对应的所有回调。
callback写法参考总体写作说明第14项。 | +| parameterOne | number \| string \| [CustomType](#classinterface) | 是 | 参数描述。给出取值范围、建议值。如果有固定格式,需要给出格式样例,尤其是URI。
自定义类型需要进行建链说明。 | +| callback | Callback\> | 否 | 参数描述。可选参数需要说明不填写该参数的后果。
如:不填该参数则取消该type对应的所有回调。
callback写法参考总体写作说明第14项。 | **返回值**:(可选,如不涉及可删除) | 类型 | 说明 | | ------------------------------------------ | ----------------------------------------------- | | string | 返回值描述。取到返回值之后,可以用来做什么。 | -| Promise\> | 返回值描述。Promise写法参考总体写作说明第14项。 | +| Promise\> | 返回值描述。Promise写法参考总体写作说明第14项。 | **错误码**:(可选,如不涉及可删除) @@ -227,7 +227,7 @@ import call from '@ohos.telephony.call'; | 参数名 | 类型 | 必填 | 说明 | | -------- | ------------------------------------ | ---- | ------------------------------------------------------------ | | type | string | 是 | 事件描述,需要说明触发时机。如一个方法涉及多个事件,需要分开说明。
**示例1(单个):**
事件回调类型,支持的事件为`'play'`,当`play()`调用完成,音频开始播放,触发该事件。
**示例2(多个):**
事件回调类型,支持的事件包括:`'play'` \| `'dataLoad' `\|`'finish'`。
\- `'play'`:完成`play()`调用,音频开始播放,触发该事件。
\- `'dataLoad'`:完成音频数据加载后触发该事件,即src属性设置完成后触发该事件。
\- `'finish'`:完成音频播放后触发该事件。 | -| callback | Callback\<[CustomType](#CustomType)> | 否 | 参数描述。与[方法](#方法)要求一致。 | +| callback | Callback\<[CustomType](#classinterface)> | 否 | 参数描述。与[方法](#方法)要求一致。 | **返回值:**(可选,如不涉及可删除) @@ -261,15 +261,15 @@ import call from '@ohos.telephony.call'; > 2. 二级标题名为class、interface的名称。 > > 3. 如果该API中,既有属性,又有方法,需要先进行属性的写作,并使用“###”三级标题。 -> 如果该API中,只有属性,那么不需要新建三级标题,直接使用表格陈列属性,具体示例参考[CustomType](#CustomType)。 +> 如果该API中,只有属性,那么不需要新建三级标题,直接使用表格陈列属性。 -类描述/interface描述。如果有使用限制,需要在这个地方说明。比方说,是否有前提条件,是否需要通过什么方法先构造一个实例。 +类描述/interface描述。如果有使用限制,需要在这个地方说明。比方说,是否有前提条件,是否需要通过什么方法先构造一个实例。 ### 属性 > *写作说明* > -> 除标题使用三级标题外,其余要求同[属性](#属性)。 +> 除标题使用三级标题外,其余要求同[属性](#属性),如仅有属性,可删除。 ### Class/Interface中的方法 @@ -296,28 +296,13 @@ import call from '@ohos.telephony.call'; | ---- | ---- | -------------------------- | | NONE | 1 | 表示连接的充电器类型未知。 | -## CustomType - -> *写作说明* -> -> 可选,如果没有可删除此二级标题,对应d.ts中无方法的Interface。 - -仅有k-v键值对的自定义类型示例。 - -**系统能力:** SystemCapability.xxx.xxx(必选) - -| 名称 | 类型 | 必填 | 说明 | -| ------------ | ------------------- | ---- | ------------------------------------------------------------ | -| parameterUrl | string | 是 | 媒体输出URI。支持:
1. 协议类型为“internal”的相对路径,示例如下: 临时目录:internal://cache/test.mp4
2. 文件的绝对路径,示例如下: file:///data/data/ohos.xxx.xxx/files/test.mp4 | -| parameterOne | [CustomEnum](#枚举) | 否 | 属性描述,要求与参数说明类似。 | - ## Type > *写作说明* > > 1. 可选,如果没有可删除此二级标题,对应d.ts中的type联合类型。 > -> 2. 默认第一列为“类型”。如果全部为具体字符串,可将第一列修改为“取值”。 +> 2. 如果为取值范围为具体取值,如固定的字符串、枚举值等,需要说明其数据类型和指定取值;如果取值范围为指定类型,需说明是否取类型下任意值,还是有取值范围。 > > 3. 类型如果为自定义类型,需要建立链接到对应的interface或enum中。 @@ -325,14 +310,15 @@ import call from '@ohos.telephony.call'; **系统能力:** SystemCapability.xxx.xxx(必选) -| 类型 | 说明 | +| 取值范围 | 说明 | | -----------| ---------------------------- | -| number | 表示值类型为数字。 | -| string | 表示值类型为字符。 | +| number | 表示值类型为数字,可取任意值。 | +| string | 表示值类型为字符,可取任意值。 | ## 变更日志 | 变更说明 | 日期 | | ----------------------------------------------------------------------- | ------------ | +| 1. 修改属性的模板,将“可读”、“可写”、“必填”,统一为“只读”、“必填”。
2. 修改Type的模板,模板修改为“取值范围/说明”,并增加相关说明。
3. 删除自定义类型,合并进class和interface的模板中。 | 2023/02/01 | | 1. 总体写作说明整理为表格。
2. “图片路径”中,增加图片的引用方式说明。
3. 增加“文档结构”,对文档各节点顺序进行说明。
4. “权限说明”中,增加多权限的描述方式。
5. 增加@FAModelOnly/@StageModelOnly标记在文档的描述方式。
6. 增加异步接口说明(callback、Promise)。
7. 增加示例代码语言的标准和规范。
8. 增加文档链接的标准写法。
9. 增加模块描述的固定句式、示例。
10. 增加“on/off”等订阅方法的说明。
11. 修改@syscap的描述方式,除表格内的差异项,其余保持一致。
12. 修改@systemapi的描述方式,仅保留“该系统为系统接口。”。
13. 删除MR版本说明。 | 2022/6/24 | | 增加错误码说明。 | 2022/10/11 | | 1. 增加**常量const**、**类型type**的模板。
2. 修改自定义类型interface的表格,去除“可读、可写”,与d.ts保持一致,增加“必填”。
3. 针对同时存在起始版本和废弃版本的接口,增加废弃说明的模板。 |2022/11/22 | diff --git a/zh-cn/device-dev/driver/driver-platform-gpio-des.md b/zh-cn/device-dev/driver/driver-platform-gpio-des.md index a0f63441d9305fb97fd829f6792ffe71a7923d24..a92baaada7ff503ab66fb1b10d95ee2a6e4c73e8 100644 --- a/zh-cn/device-dev/driver/driver-platform-gpio-des.md +++ b/zh-cn/device-dev/driver/driver-platform-gpio-des.md @@ -133,7 +133,7 @@ int32_t ret; ret = GpioSetDir(3, GPIO_DIR_OUT); // 将3号GPIO管脚配置为输出 if (ret != 0) { - HDF_LOGE("GpioSerDir: failed, ret %d\n", ret); + HDF_LOGE("GpioSetDir: failed, ret %d\n", ret); return ret; } ``` diff --git a/zh-cn/device-dev/get-code/sourcecode-acquire.md b/zh-cn/device-dev/get-code/sourcecode-acquire.md index 43f187c7e92ad1326e5a080b7c9dcefa1f511ffd..6c0370b4548b0c4a8fb75bcd55cdd6fcf379f5fc 100644 --- a/zh-cn/device-dev/get-code/sourcecode-acquire.md +++ b/zh-cn/device-dev/get-code/sourcecode-acquire.md @@ -198,12 +198,12 @@ OpenHarmony是由开放原子开源基金会(OpenAtom Foundation)孵化及 | Hi3516解决方案-Linux(二进制) | 3.0 | [站点](https://repo.huaweicloud.com/openharmony/os/3.0/hispark_taurus_linux.tar.gz) | [SHA256校验码](https://repo.huaweicloud.com/openharmony/os/3.0/hispark_taurus_linux.tar.gz.sha256) | 418.1 MB | | RELEASE-NOTES | 3.0 | [站点](https://gitee.com/openharmony/docs/blob/OpenHarmony-3.0-LTS/zh-cn/release-notes/OpenHarmony-v3.0-LTS.md) | - | - | | **最新发布版本源码** | **版本信息** | **下载站点** | **SHA256校验码** | **软件包容量** | -| 全量代码Beta版本(标准、轻量和小型系统) | 3.2 Beta4 | [站点](https://repo.huaweicloud.com/harmonyos/os/3.2-Beta4/code-v3.2-Beta4.tar.gz) | [SHA256校验码](https://repo.huaweicloud.com/harmonyos/os/3.2-Beta4/code-v3.2-Beta4.tar.gz.sha256) | 19.0 GB | -| RK3568标准系统解决方案(二进制) | 3.2 Beta4 | [站点](https://repo.huaweicloud.com/harmonyos/os/3.2-Beta4/dayu200_standard_arm32.tar.gz) | [SHA256校验码](https://repo.huaweicloud.com/harmonyos/os/3.2-Beta4/dayu200_standard_arm32.tar.gz.sha256) | 3.2 GB | -| Hi3861解决方案(二进制) | 3.2 Beta4 | [站点](https://repo.huaweicloud.com/harmonyos/os/3.2-Beta4/hispark_pegasus.tar.gz) | [SHA256校验码](https://repo.huaweicloud.com/harmonyos/os/3.2-Beta4/hispark_pegasus.tar.gz.sha256) | 22.6 MB | -| Hi3516解决方案-LiteOS(二进制) | 3.2 Beta4 | [站点](https://repo.huaweicloud.com/harmonyos/os/3.2-Beta4/hispark_taurus_LiteOS.tar.gz) | [SHA256校验码](https://repo.huaweicloud.com/harmonyos/os/3.2-Beta4/hispark_taurus_LiteOS.tar.gz.sha256) | 293.9 MB | -| Hi3516解决方案-Linux(二进制) | 3.2 Beta4 | [站点](https://repo.huaweicloud.com/harmonyos/os/3.2-Beta4/hispark_taurus_Linux.tar.gz) | [SHA256校验码](https://repo.huaweicloud.com/harmonyos/os/3.2-Beta4/hispark_taurus_Linux.tar.gz.sha256) | 173.2 MB | -| RELEASE-NOTES | 3.2 Beta4 | [站点](../../release-notes/OpenHarmony-v3.2-beta4.md) | - | - | +| 全量代码Beta版本(标准、轻量和小型系统) | 3.2 Beta5 | [站点](https://repo.huaweicloud.com/harmonyos/os/3.2-Beta5/code-v3.2-Beta5.tar.gz) | [SHA256校验码](https://repo.huaweicloud.com/harmonyos/os/3.2-Beta5/code-v3.2-Beta5.tar.gz.sha256) | 21.3 GB | +| Hi3861解决方案(二进制) | 3.2 Beta5 | [站点](https://repo.huaweicloud.com/harmonyos/os/3.2-Beta5/hispark_pegasus.tar.gz) | [SHA256校验码](https://repo.huaweicloud.com/harmonyos/os/3.2-Beta5/hispark_pegasus.tar.gz.sha256) | 22.9 MB | +| Hi3516解决方案-LiteOS(二进制) | 3.2 Beta5 | [站点](https://repo.huaweicloud.com/openharmony/os/3.2-Beta5/hispark_taurus_LiteOS.tar.gz) | [SHA256校验码](https://repo.huaweicloud.com/openharmony/os/3.2-Beta5/hispark_taurus_LiteOS.tar.gz.sha256) | 293.6 MB | +| Hi3516解决方案-Linux(二进制) | 3.2 Beta5 | [站点](hispark_taurus_Linux.tar.gz) | [SHA256校验码](https://repo.huaweicloud.com/openharmony/os/3.2-Beta5/hispark_taurus_Linux.tar.gz.sha256) | 174.3 MB | +| RK3568标准系统解决方案(二进制) | 3.2 Beta5 | [站点](https://repo.huaweicloud.com/harmonyos/os/3.2-Beta5/dayu200_standard_arm32_20230201.tar.gz) | [SHA256校验码](https://repo.huaweicloud.com/harmonyos/os/3.2-Beta5/dayu200_standard_arm32_20230201.tar.gz.sha256) | 3.9 GB | +| RELEASE-NOTES | 3.2 Beta5 | [站点](../../release-notes/OpenHarmony-v3.2-beta5.md) | - | - | | **编译工具链** | **版本信息** | **下载站点** | **SHA256校验码** | **软件包容量** | | 编译工具链获取清单 | - | [站点](https://repo.huaweicloud.com/openharmony/os/2.0/tool_chain/) | - | - | diff --git a/zh-cn/device-dev/quick-start/quickstart-ide-3568-helloworld.md b/zh-cn/device-dev/quick-start/quickstart-ide-3568-helloworld.md index 518228c24abd54f22ecb318ed117c903b33b6bee..67b2ee1c680ed22e58745060d7310d0cacfd99b8 100644 --- a/zh-cn/device-dev/quick-start/quickstart-ide-3568-helloworld.md +++ b/zh-cn/device-dev/quick-start/quickstart-ide-3568-helloworld.md @@ -11,11 +11,12 @@ ## 示例目录 +拉取openharmony项目代码,在代码根目录创建sample子系统文件夹,在子系统目录下创建hello部件文件夹,hello文件夹中创建hello源码目录,构建文件BUILD.gn及部件配置文件bundle.json。 示例完整目录如下。 ``` -applications/sample/hello +sample/hello │── BUILD.gn │── include │ └── helloworld.h @@ -24,9 +25,9 @@ applications/sample/hello ├── bundle.json build └── subsystem_config.json -productdefine/common -└── products - └── rk3568.json +vendor/hihope +└── rk3568 + └── config.json ``` @@ -36,7 +37,7 @@ productdefine/common 1. 创建目录,编写业务代码。 - 新建applications/sample/hello/src/helloworld.c目录及文件,代码如下所示,用户可以自定义修改打印内容(例如:修改World为OHOS)。其中helloworld.h包含字符串打印函数HelloPrint的声明。当前应用程序可支持标准C及C++的代码开发。 + 新建sample/hello/src/helloworld.c目录及文件,代码如下所示,用户可以自定义修改打印内容(例如:修改World为OHOS)。其中helloworld.h包含字符串打印函数HelloPrint的声明。当前应用程序可支持标准C及C++的代码开发。 ``` @@ -57,7 +58,7 @@ productdefine/common } ``` - 再添加头文件applications/sample/hello/include/helloworld.h,代码如下所示。 + 再添加头文件sample/hello/include/helloworld.h,代码如下所示。 ``` @@ -80,88 +81,115 @@ productdefine/common ``` 2. 新建编译组织文件。 - 1. 新建applications/sample/hello/BUILD.gn文件,内容如下所示: + + 新建sample/hello/BUILD.gn,创建方法可参考:[模块配置规则](../subsystems/subsys-build-module.md)。 + 创建 + BUILD.gn内容如下所示: - ``` - import("//build/ohos.gni") # 导入编译模板 - ohos_executable("helloworld") { # 可执行模块 - sources = [ # 模块源码 - "src/helloworld.c" - ] - include_dirs = [ # 模块依赖头文件目录 - "include" - ] - cflags = [] - cflags_c = [] - cflags_cc = [] - ldflags = [] - configs = [] - deps =[] # 部件内部依赖 - part_name = "hello" # 所属部件名称,必选 - install_enable = true # 是否默认安装(缺省默认不安装),可选 - } - ``` - 2. 新建applications/sample/hello/bundle.json文件,添加sample部件描述,内容如下所示。 + ``` + import("//build/ohos.gni") # 导入编译模板 + ohos_executable("helloworld") { # 可执行模块 + sources = [ # 模块源码 + "src/helloworld.c" + ] + include_dirs = [ # 模块依赖头文件目录 + "include" + ] + cflags = [] + cflags_c = [] + cflags_cc = [] + ldflags = [] + configs = [] + deps =[] # 部件内部依赖 + part_name = "hello" # 所属部件名称,必选 + install_enable = true # 是否默认安装(缺省默认不安装),可选 + } + ``` + +3. 新建部件配置规则文件 + + 新建sample/hello/bundle.json文件,添加sample部件描述,创建方法可参考:[部件配置规则](../subsystems/subsys-build-component.md)。 + + bundle.json内容如下所示。 - ``` - { - "name": "@ohos/hello", - "description": "Hello world example.", - "version": "3.1", - "license": "Apache License 2.0", - "publishAs": "code-segment", - "segment": { - "destPath": "applications/sample/hello" + ``` + { + "name": "@ohos/hello", + "description": "Hello world example.", + "version": "3.1", + "license": "Apache License 2.0", + "publishAs": "code-segment", + "segment": { + "destPath": "sample/hello" + }, + "dirs": {}, + "scripts": {}, + "component": { + "name": "hello", + "subsystem": "sample", + "syscap": [], + "features": [], + "adapted_system_type": [ "mini", "small", "standard" ], + "rom": "10KB", + "ram": "10KB", + "deps": { + "components": [], + "third_party": [] }, - "dirs": {}, - "scripts": {}, - "component": { - "name": "hello", - "subsystem": "sample", - "syscap": [], - "features": [], - "adapted_system_type": [ "mini", "small", "standard" ], - "rom": "10KB", - "ram": "10KB", - "deps": { - "components": [], - "third_party": [] - }, - "build": { - "sub_component": [ - "//applications/sample/hello:helloworld" - ], - "inner_kits": [], - "test": [] - } + "build": { + "sub_component": [ + "//sample/hello:helloworld" + ], + "inner_kits": [], + "test": [] } } - ``` + } + ``` - bundle.json文件包含两个部分,第一部分描述该部件所属子系统的信息,第二部分component则定义该部件构建相关配置。添加的时候需要指明该部件包含的模块sub_component,假如有提供给其它部件的接口,需要在inner_kits中说明,假如有测试用例,需要在test中说明,inner_kits与test没有也可以不添加。 + bundle.json文件包含两个部分,第一部分描述该部件所属子系统的信息,第二部分component则定义该部件构建相关配置。添加的时候需要指明该部件包含的模块sub_component,假如有提供给其它部件的接口,需要在inner_kits中说明,假如有测试用例,需要在test中说明,inner_kits与test没有也可以不添加。 -3. 修改子系统配置文件。 +4. 修改子系统配置文件。 - 在build/subsystem_config.json中添加新建的子系统的配置。 - + 在build/subsystem_config.json中添加新建的子系统的配置。修改方法可参考:[子系统配置规则](../subsystems/subsys-build-subsystem.md)。 + + 新增子系统的配置如下所示。 ``` "sample": { - "path": "applications/sample/hello", + "path": "sample", "name": "sample" }, ``` -4. 修改产品配置文件。 - - 在productdefine/common/products/rk3568.json中添加对应的hello部件,直接添加到原有部件后即可。 - > ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** - > 本章节操作是以OpenHarmony-v3.1-Release版本为例进行操作的,该版本中,RK3568的配置文件为productdefine/common/products/rk3568.json;从OpenHarmony-v3.2-Beta2版本开始,RK3568的配置文件为vendor/hihope/rk3568/config.json。 - +5. 修改产品配置文件。 + + > ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** + > OpenHarmony-v3.2-Beta2之前版本,RK3568的产品配置文件为productdefine/common/products/rk3568.json;从OpenHarmony-v3.2-Beta2版本开始,RK3568的产品配置文件为vendor/hihope/rk3568/config.json。 + + - 3.2-Beta2之前版本 + + 在productdefine/common/products/rk3568.json中添加对应的hello部件,直接添加到原有部件后即可。 - ``` + ``` "usb:usb_manager_native":{}, "applications:prebuilt_hap":{}, "sample:hello":{}, "wpa_supplicant-2.9:wpa_supplicant-2.9":{}, - ``` + ``` + + - 3.2-Beta2及之后版本 + + 在vendor/hihope/rk3568/config.json中添加对应的hello部件,直接添加到原有部件后即可。 + + ``` + { + "subsystem": "sample", + "components": [ + { + "component": "hello", + "features": [] + } + ] + }, + ``` diff --git a/zh-cn/device-dev/quick-start/quickstart-pkg-3568-helloworld.md b/zh-cn/device-dev/quick-start/quickstart-pkg-3568-helloworld.md index de302e7a0c01608b4b1cb959922ce15075fe08fc..3d2b23fcbea1857460f720e596e0510d310e7ac4 100644 --- a/zh-cn/device-dev/quick-start/quickstart-pkg-3568-helloworld.md +++ b/zh-cn/device-dev/quick-start/quickstart-pkg-3568-helloworld.md @@ -78,7 +78,7 @@ vendor/hihope 2. 新建编译组织文件。 - 新建sample/hello/BUILD.gn,创建方法可参考:[模块配置规则](https://gitee.com/openharmony/docs/blob/master/zh-cn/device-dev/subsystems/subsys-build-module.md)。 + 新建sample/hello/BUILD.gn,创建方法可参考:[模块配置规则](../subsystems/subsys-build-module.md)。 创建 BUILD.gn内容如下所示: @@ -104,7 +104,7 @@ vendor/hihope 3. 新建部件配置规则文件 - 新建sample/hello/bundle.json文件,添加sample部件描述,创建方法可参考:[部件配置规则](https://gitee.com/openharmony/docs/blob/master/zh-cn/device-dev/subsystems/subsys-build-component.md)。 + 新建sample/hello/bundle.json文件,添加sample部件描述,创建方法可参考:[部件配置规则](../subsystems/subsys-build-component.md)。 bundle.json内容如下所示。 @@ -147,7 +147,7 @@ vendor/hihope 4. 修改子系统配置文件。 - 在build/subsystem_config.json中添加新建的子系统的配置。修改方法可参考:[子系统配置规则](https://gitee.com/openharmony/docs/blob/master/zh-cn/device-dev/subsystems/subsys-build-subsystem.md)。 + 在build/subsystem_config.json中添加新建的子系统的配置。修改方法可参考:[子系统配置规则](../subsystems/subsys-build-subsystem.md)。 新增子系统的配置如下所示。 @@ -168,10 +168,10 @@ vendor/hihope 在productdefine/common/products/rk3568.json中添加对应的hello部件,直接添加到原有部件后即可。 ``` - "usb:usb_manager_native":{}, - "applications:prebuilt_hap":{}, - "sample:hello":{}, - "wpa_supplicant-2.9:wpa_supplicant-2.9":{}, + "usb:usb_manager_native":{}, + "applications:prebuilt_hap":{}, + "sample:hello":{}, + "wpa_supplicant-2.9:wpa_supplicant-2.9":{}, ``` - 3.2-Beta2及之后版本 @@ -179,13 +179,13 @@ vendor/hihope 在vendor/hihope/rk3568/config.json中添加对应的hello部件,直接添加到原有部件后即可。 ``` + { + "subsystem": "sample", + "components": [ { - "subsystem": "sample", - "components": [ - { - "component": "hello", - "features": [] - } - ] - }, + "component": "hello", + "features": [] + } + ] + }, ``` diff --git a/zh-cn/device-dev/subsystems/figures/zh-cn_image_0000001115123966.png b/zh-cn/device-dev/subsystems/figures/zh-cn_image_0000001115123966.png deleted file mode 100644 index 883dccf82ef3ec1828893afa314a66ca2f23c421..0000000000000000000000000000000000000000 Binary files a/zh-cn/device-dev/subsystems/figures/zh-cn_image_0000001115123966.png and /dev/null differ diff --git a/zh-cn/device-dev/subsystems/figures/zh-cn_image_0000001154153558.png b/zh-cn/device-dev/subsystems/figures/zh-cn_image_0000001154153558.png deleted file mode 100644 index 6350269abdc028f9b1b31d544b78f380e58d7a57..0000000000000000000000000000000000000000 Binary files a/zh-cn/device-dev/subsystems/figures/zh-cn_image_0000001154153558.png and /dev/null differ diff --git a/zh-cn/device-dev/subsystems/figures/zh-cn_image_0000001197369959.png b/zh-cn/device-dev/subsystems/figures/zh-cn_image_0000001197369959.png deleted file mode 100644 index c7e8c809207f0dc8965a2f8a41b55f0ae2abe13b..0000000000000000000000000000000000000000 Binary files a/zh-cn/device-dev/subsystems/figures/zh-cn_image_0000001197369959.png and /dev/null differ diff --git a/zh-cn/device-dev/subsystems/subsys-build-gn-kconfig-visual-config-guide.md b/zh-cn/device-dev/subsystems/subsys-build-gn-kconfig-visual-config-guide.md index 2a04bbdd940b8c9678f04bb94ab3e95dcc88bbbe..7f2d371bd0d812ca38f30519252e5d9571f4af81 100644 --- a/zh-cn/device-dev/subsystems/subsys-build-gn-kconfig-visual-config-guide.md +++ b/zh-cn/device-dev/subsystems/subsys-build-gn-kconfig-visual-config-guide.md @@ -44,7 +44,7 @@ 4. 参数填写 - 参数配置项可以参考:[productdefine/common/base/base_product.json](https://gitee.com/openharmony/productdefine_common/blob/master/base/base_product.json) + 参数配置项可以参考:productdefine/common/base/base_product.json ![参数填写](figures/kconfig参数输入.gif) @@ -99,7 +99,7 @@ ### 菜单列表缺失最新部件信息 -由于产品不断的更新迭代,全量部件列表[productdefine/common/base/base_product.json](https://gitee.com/openharmony/productdefine_common/blob/master/base/base_product.json)也会随之不断更新,从而导致Kconfig菜单缺少最新部件。 +由于产品不断的更新迭代,全量部件列表productdefine/common/base/base_product.json也会随之不断更新,从而导致Kconfig菜单缺少最新部件。 解决办法: diff --git a/zh-cn/device-dev/subsystems/subsys-build-module.md b/zh-cn/device-dev/subsystems/subsys-build-module.md index 07c0b3022f064ca92c99795b200684f510ac7514..d9e2fd92a0778ae9fab621b399cca13313f8a57a 100644 --- a/zh-cn/device-dev/subsystems/subsys-build-module.md +++ b/zh-cn/device-dev/subsystems/subsys-build-module.md @@ -62,18 +62,21 @@ ohos_shared_library("helloworld") { part_name = [string] # 必选,所属部件名称 output_dir - + # Sanitizer配置,每项都是可选的,默认为false/空 sanitize = { # 各个Sanitizer开关 - cfi = [boolean] - integer_overflow = [boolean] + cfi = [boolean] # 控制流完整性检测 + integer_overflow = [boolean] # 整数溢出检测 + boundary_sanitize = [boolean] # 边界检测 + ubsan = [boolean] # 部分ubsan选项 + all_ubsan = [boolean] # 全量ubsan选项 ... debug = [boolean] # 调测模式 blocklist = [string] # 屏蔽名单路径 } - + testonly = [boolean] license_as_sources = [] license_file = [] # 后缀名是.txt的文件 @@ -106,18 +109,21 @@ ohos_static_library("helloworld") { lib_dirs = [] public_configs = [] - + # Sanitizer配置,每项都是可选的,默认为false/空 sanitize = { # 各个Sanitizer开关 - cfi = [boolean] - integer_overflow = [boolean] + cfi = [boolean] # 控制流完整性检测 + integer_overflow = [boolean] # 整数溢出检测 + boundary_sanitize = [boolean] # 边界检测 + ubsan = [boolean] # 部分ubsan选项 + all_ubsan = [boolean] # 全量ubsan选项 ... debug = [boolean] # 调测模式 blocklist = [string] # 屏蔽名单路径 } - + remove_configs = [] no_default_deps = [] license_file = [] # 后缀名是.txt的文件 @@ -141,18 +147,21 @@ ohos_executable("helloworld") { ] # 这里依赖的模块必须是依赖的部件声明在inner_kits中的模块 ohos_test = [] test_output_dir = [] - + # Sanitizer配置,每项都是可选的,默认为false/空 sanitize = { # 各个Sanitizer开关 - cfi = [boolean] - integer_overflow = [boolean] + cfi = [boolean] # 控制流完整性检测 + integer_overflow = [boolean] # 整数溢出检测 + boundary_sanitize = [boolean] # 边界检测 + ubsan = [boolean] # 部分ubsan选项 + all_ubsan = [boolean] # 全量ubsan选项 ... debug = [boolean] # 调测模式 blocklist = [string] # 屏蔽名单路径 } - + testonly = [boolean] license_as_sources = [] license_file = [] # 后缀名是.txt的文件 @@ -187,18 +196,21 @@ ohos_source_set("helloworld") { external_deps = [ # 跨部件模块依赖定义, "part_name:module_name", # 定义格式为 "部件名:模块名称" ] # 这里依赖的模块必须是依赖的部件声明在inner_kits中的模块 - + # Sanitizer配置,每项都是可选的,默认为false/空 sanitize = { # 各个Sanitizer开关 - cfi = [boolean] - integer_overflow = [boolean] + cfi = [boolean] # 控制流完整性检测 + integer_overflow = [boolean] # 整数溢出检测 + boundary_sanitize = [boolean] # 边界检测 + ubsan = [boolean] # 部分ubsan选项 + all_ubsan = [boolean] # 全量ubsan选项 ... debug = [boolean] # 调测模式 blocklist = [string] # 屏蔽名单路径 } - + testonly = [boolean] license_as_sources = [] license_file = [] diff --git a/zh-cn/device-dev/subsystems/subsys-build-reference.md b/zh-cn/device-dev/subsystems/subsys-build-reference.md index 3279c9bb5db88525830fd336df94124412eec7e6..2a0530161bbf031a9c725a69a791ace1ec635c9a 100644 --- a/zh-cn/device-dev/subsystems/subsys-build-reference.md +++ b/zh-cn/device-dev/subsystems/subsys-build-reference.md @@ -68,8 +68,11 @@ ``` shell ohos_shared_library("example") { sanitize = { - cfi = true - integer_overflow = true + cfi = true # 开启控制流完整性检测 + integer_overflow = true # 开启整数溢出检测 + boundary_sanitize = true # 开启边界检测 + ubsan = true # 开启部分ubsan选项 + all_ubsan = true # 开启全量ubsan选项 debug = true # 可选,调测模式,默认是不开启 blocklist = "./blocklist.txt" # 可选,屏蔽名单路径 } @@ -83,6 +86,9 @@ - 整数溢出排错:unsigned_integer_overflow/signed_integer_overflow/integer_overflow(同时包括无符号和有符号整数溢出两种检查) - 控制流完整性:cfi +- 边界检测:boundary_sanitize +- 部分未定义行为检测:ubsan(bool,integer-divide-by-zero,return,returns-nonnull-attribute,shift-exponent,unreachable,vla-bound等编译选项) +- 全量未定义行为检测:all_ubsan(全量undefined behavior sanitizer编译选项) **发布、调测模式** diff --git a/zh-cn/device-dev/subsystems/subsys-dfx-hisysevent-logging-config.md b/zh-cn/device-dev/subsystems/subsys-dfx-hisysevent-logging-config.md index 767d07500b7bf43df2acc1d5a86a2ad6c83ee1ee..285a917f36d6e4491b333cb619c81e572acb3497 100644 --- a/zh-cn/device-dev/subsystems/subsys-dfx-hisysevent-logging-config.md +++ b/zh-cn/device-dev/subsystems/subsys-dfx-hisysevent-logging-config.md @@ -31,20 +31,20 @@ - 每个事件名称可定义多个参数,同一个事件名称内部的参数不能重名,每个事件名称有且只有一个名称为__BASE的参数,此参数字段组成如表1,其它自定义参数,具体字段组成如表2。 **表1** __BASE参数字段说明 - | 字段名称 | 描述 | + | 字段名称 | 描述 | | -------- | -------- | - | type | 字段说明:必选字段,用来标识该事件名称的类型。
取值范围:
- FAULT:错误类型。
- STATISTIC:统计类型。
- SECURITY:安全性。
- BEHAVIOR:用户行为。 | - | level | 字段说明:必选字段,用来标识该事件名称的级别。
取值范围:
- CRITICAL:严重。
- MINOR:一般。 | - | tag | 字段说明:可选字段,用来标识该事件名称的标签。
定义规则:
- 最多可同时定义5个标签,标签之间使用空格来分隔。
- 单个标签最多包含16个字符,字符范围[a-zA-Z0-9] | - | desc | 字段说明:必选字段,用来对该事件名称进行描述。
定义规则:
- 至少包含3个字符,最多包含128个字符,字符范围[a-zA-Z0-9 _] | + | type | 字段说明:必选字段,用来标识该事件名称的类型。
取值范围:
- FAULT:错误类型。
- STATISTIC:统计类型。
- SECURITY:安全性。
- BEHAVIOR:用户行为。 | + | level | 字段说明:必选字段,用来标识该事件名称的级别。
取值范围:
- CRITICAL:严重。
- MINOR:一般。 | + | tag | 字段说明:可选字段,用来标识该事件名称的标签。
定义规则:
- 最多可同时定义5个标签,标签之间使用空格来分隔。
- 单个标签最多包含16个字符,字符范围[a-zA-Z0-9] | + | desc | 字段说明:必选字段,用来对该事件名称进行描述。
定义规则:
- 至少包含3个字符,最多包含128个字符,字符范围[a-zA-Z0-9 _] | **表2** 自定义参数字段说明 - | 字段名称 | 描述 | + | 字段名称 | 描述 | | -------- | -------- | - | type | 字段说明:必选字段,用来标识该参数的类型。
取值范围:
- BOOL
- UINT8
- UINT16
- INT32
- UINT32
- UINT64
- FLOAT
- DOUBLE
- STRING | - | arrsize | 字段作用:可选字段,用来标识数组类型参数的长度。
取值范围:
- 1~100 | - | desc | 字段作用:必选字段,用来对该参数进行描述。
定义规则:
- 至少包含3个字符,最多包含128个字符,字符范围[a-zA-Z0-9 _] | + | type | 字段说明:必选字段,用来标识该参数的类型。
取值范围:
- BOOL
- INT8
- UINT8
- INT16
- UINT16
- INT32
- UINT32
- INT64
- UINT64
- FLOAT
- DOUBLE
- STRING | + | arrsize | 字段作用:可选字段,用来标识数组类型参数的长度。
取值范围:
- 1~100 | + | desc | 字段作用:必选字段,用来对该参数进行描述。
定义规则:
- 至少包含3个字符,最多包含128个字符,字符范围[a-zA-Z0-9 _] | ## 编写yaml文件 @@ -74,7 +74,7 @@ - EVENT_NAMEA被定义成错误类型的严重事件,该事件包含类型为字符串类型的NAME1参数、字符串类型的NAME2参数及无符号短整型类型的NAME3参数,可以通过事件领域MODULEA和事件名称EVENT_NAMEA对其进行[实时订阅](../subsystems/subsys-dfx-hisysevent-listening.md)。 - EVENT_NAMEB被定义成统计类型的一般事件,EVENT_NAMEB包含类型为无符号短整型类型的NAME1参数及整型类型的NAME2参数。因为EVENT_NAMEB在__BASE参数中定义了名称为tag1和tag2的两个事件标签,所以不仅可以通过事件领域MODULEA和事件名称EVENT_NAMEB对其进行[实时订阅](../subsystems/subsys-dfx-hisysevent-listening.md),所以还可以通过事件标签对该事件进行实时订阅。 - + ``` ########################################## # the hisysevent definition for module a # @@ -102,7 +102,7 @@ 在bundle.json文件中通过hisysevent_config属性完成yaml文件的路径指定: - + ``` { "name": "@ohos/moduel_a", @@ -153,14 +153,14 @@ - 全量编译: - 全量编译整个系统,会将所有组件配置的yaml文件中的配置进行汇总,正常完成系统编译后,指定目录下就会生成hisysevent.def文件。 - + ``` cd 工程根目录的绝对路径 ./build --product-name ``` - 全量编译生成的hisysevent.def文件可以通过以下命令获取: - + ``` cd 工程根目录的绝对路径 find out -name hisysevent.def -type f @@ -169,7 +169,7 @@ - 单文件编译: 也可以只编译单个组件的yaml文件,命令如下: - + ``` cd 工程根目录的绝对路径 ./build/ohos/hisysevent/gen_def_from_all_yaml.py --yaml-list --def-path @@ -177,10 +177,10 @@ **表3** 单文件编译参数说明 - | 选项名称 | 描述 | + | 选项名称 | 描述 | | -------- | -------- | - | --yaml-list | 指定需要编译的yaml文件路径列表,多个yaml文件路径之间用空格分隔。 | - | --def-path | 指定编译生成的hisysevent.def文件的生成路径。 | + | --yaml-list | 指定需要编译的yaml文件路径列表,多个yaml文件路径之间用空格分隔。 | + | --def-path | 指定编译生成的hisysevent.def文件的生成路径。 | ### 打点及查询定义的事件 diff --git a/zh-cn/device-dev/subsystems/subsys-utils-guide.md b/zh-cn/device-dev/subsystems/subsys-utils-guide.md index 7cc3206f6fd95a3cbb9df55f1a0d97b9e1f9095a..4bddce0fcc6edd1cff55bb6497de6961b905e355 100644 --- a/zh-cn/device-dev/subsystems/subsys-utils-guide.md +++ b/zh-cn/device-dev/subsystems/subsys-utils-guide.md @@ -29,8 +29,8 @@ - 其它一些内部功能,如定时器等。 ## 各仓库开发指导 -[C++公共基础库(c_utils)开发指导](https://gitee.com/openharmony/commonlibrary_c_utils/blob/master/docs/zh-cn/c-utils-guide.md) +[C++公共基础库(c_utils)说明文档](https://gitee.com/openharmony/commonlibrary_c_utils/blob/master/README_zh.md) # 公共基础类库常见问题 ## c_utils常见问题 -具体各应用场景常见问题,参见[C++公共基础库(c_utils)开发指导](https://gitee.com/openharmony/commonlibrary_c_utils/blob/master/docs/zh-cn/c-utils-guide.md) \ No newline at end of file +具体各应用场景常见问题,参见[C++公共基础库(c_utils)说明文档](https://gitee.com/openharmony/commonlibrary_c_utils/blob/master/README_zh.md) \ No newline at end of file diff --git "a/zh-cn/readme/\346\226\207\344\273\266\347\256\241\347\220\206\345\255\220\347\263\273\347\273\237.md" "b/zh-cn/readme/\346\226\207\344\273\266\347\256\241\347\220\206\345\255\220\347\263\273\347\273\237.md" index 3f354b0775995e7b3b3094f59b1c6c31897cbc4d..3ebda6396d0d4e90fe7252bebe07027607542974 100644 --- "a/zh-cn/readme/\346\226\207\344\273\266\347\256\241\347\220\206\345\255\220\347\263\273\347\273\237.md" +++ "b/zh-cn/readme/\346\226\207\344\273\266\347\256\241\347\220\206\345\255\220\347\263\273\347\273\237.md" @@ -17,11 +17,11 @@ | 模块 | 详细描述 | | ------------ | ------------------------------------------------------------ | -| 文件访问接口 | 1. 提供完整文件JS 接口,支持基础文件访问能力;
2. 提供本地文件、分布式文件和云端文件扩展接口。 | +| 文件访问接口 | 1. 提供完整文件JS 接口,支持基础文件访问能力;
2. 提供本地文件、分布式文件扩展接口。 | | 存储管理 | 1. 提供数据备份恢复框架能力,支持系统和应用数据备份克隆等场景;
2. 提供应用空间清理和统计、配额管控等空间管理能力;
3. 提供挂载管理、外卡管理、设备管理及多用户管理等存储存储管理能力。 | -| 公共文件 | 1. 公共数据沙箱隔离,保证用户数据安全、纯净;
2. 统一公共数据访问入口,仅medialibrary;
3. 提供统一的FMF的文件管理框架;
4. 支持分布式和端云能力。 | -| 应用文件 | 1. 为应用提供安全的沙箱隔离技术,保证应用数据安全基础上权限最小化;
2. 支持应用间文件分享和文件跨设备分享,支持群组分享;
3. 应用可以像使用本地文件一样使用分布式和云端文件。 | -| 分布式能力 | 1. 提供基础分布式跨端访问能力,支持同账号分布式访问和异账号临时访问;
2. 支持端云协同能力,用户和应用无需感知数据位置;
3. 支持文件跨端迁移能力,支撑应用迁移、分布式剪切板等分布式场景。 | +| 公共文件 | 1. 公共数据沙箱隔离,保证用户数据安全、纯净;
2. 统一公共数据访问入口,仅medialibrary;
3. 提供统一的FMF的文件管理框架。 | +| 应用文件 | 1. 为应用提供安全的沙箱隔离技术,保证应用数据安全基础上权限最小化;
2. 支持应用间文件分享和文件跨设备分享,支持群组分享。 | +| 分布式能力 | 1. 提供基础分布式跨端访问能力,支持同账号分布式访问和异账号临时访问;
2. 支持文件跨端迁移能力,支撑应用迁移、分布式剪切板等分布式场景。 | | 基础文件系统 | 1. 支持ext4、f2fs、exfat、ntfs等本地文件系统;
2. 支持分布式文件系统、nfs等网络文件系统;
3. 文件系统相关工具。 | diff --git "a/zh-cn/readme/\346\265\213\350\257\225\345\255\220\347\263\273\347\273\237.md" "b/zh-cn/readme/\346\265\213\350\257\225\345\255\220\347\263\273\347\273\237.md" index 8b1063f4eb115087f3057adb19e5c5c3af681478..728661912d228e5f8004d537beefd2d44b1722a6 100755 --- "a/zh-cn/readme/\346\265\213\350\257\225\345\255\220\347\263\273\347\273\237.md" +++ "b/zh-cn/readme/\346\265\213\350\257\225\345\255\220\347\263\273\347\273\237.md" @@ -326,7 +326,7 @@ subsystem # 子系统 针对不同语言,下面提供不同的编译模板以供参考。 - **C++用例编译配置示例** - ``` + ```c++ import("//build/test.gni") @@ -414,8 +414,8 @@ subsystem # 子系统 > - ohos_performancetest:性能测试 > - ohos_securitytest:安全测试 > - ohos_reliabilitytest:可靠性测试 - > - ohos_distributedtest:分布式测试 - + > - ohos_distributedtest:分布式测试 + 7. 对目标测试用例文件进行条件分组 ``` @@ -425,10 +425,10 @@ subsystem # 子系统 } ``` > **说明:** 进行条件分组的目的在于执行用例时可以选择性的执行某一种特定类型的用例。 - + - **JavaScript用例编译配置示例** - ``` + ```javascript import("//build/test.gni") diff --git "a/zh-cn/readme/\347\224\265\350\257\235\346\234\215\345\212\241\345\255\220\347\263\273\347\273\237.md" "b/zh-cn/readme/\347\224\265\350\257\235\346\234\215\345\212\241\345\255\220\347\263\273\347\273\237.md" index af05135d8347c7fed29359967831f316a5056c8c..deee8ba6f71171a3e68b8d3038291c911c21266e 100644 --- "a/zh-cn/readme/\347\224\265\350\257\235\346\234\215\345\212\241\345\255\220\347\263\273\347\273\237.md" +++ "b/zh-cn/readme/\347\224\265\350\257\235\346\234\215\345\212\241\345\255\220\347\263\273\347\273\237.md" @@ -45,7 +45,7 @@ base/telephony/ ## 约束 1. 目前开源的范围包括蜂窝通话(仅支持CS通话)、短信、数据上网,支持双SIM卡框架。 -2. 南向HDI依赖芯片厂商适配,详见:[电话服务南向开发指导](https://gitee.com/openharmony/docs/blob/master/zh-cn/device-dev/subsystems/subsys-tel.md)。 +2. 南向HDI依赖芯片厂商适配,详见:[电话服务南向开发指导](../device-dev/subsystems/subsys-tel-overview.md)。 ## 使用说明 diff --git a/zh-cn/release-notes/OpenHarmony-v3.1.6-release.md b/zh-cn/release-notes/OpenHarmony-v3.1.6-release.md new file mode 100644 index 0000000000000000000000000000000000000000..da1e6c71bbac5c508443b019c81efa6a8048c240 --- /dev/null +++ b/zh-cn/release-notes/OpenHarmony-v3.1.6-release.md @@ -0,0 +1,145 @@ +# OpenHarmony 3.1.6 Release + + +## 版本概述 + +当前版本在OpenHarmony 3.1.5 Release的基础上,修复了内存泄漏及linux kernel等开源组件的安全漏洞,增强了系统安全性。修复了部分系统稳定性的issue,增强了系统稳定性。更新配套的SDK版本。 + + +## 配套关系 + + **表1** 版本软件和工具配套关系 + +| 软件 | 版本 | 备注 | +| -------- | -------- | -------- | +| OpenHarmony | 3.1.6 Release | NA | +| Full SDK | Ohos_sdk_full 3.1.12.5 (API Version 8 Relese) | 面向OEM厂商提供,包含了需要使用系统权限的系统接口。
使用Full SDK时需要手动从镜像站点获取,并在DevEco Studio中替换,具体操作可参考[替换指南](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/quick-start/full-sdk-switch-guide.md)。 | +| Public SDK | Ohos_sdk_public 3.1.12.5 (API Version 8 Release) | 面向应用开发者提供,不包含需要使用系统权限的系统接口。
DevEco Studio 3.0 Beta4版本起,通过DevEco Studio获取的SDK默认为Public SDK。 | +| HUAWEI DevEco Studio(可选) | 3.1 Preview for OpenHarmony | OpenHarmony应用开发推荐使用。 | +| HUAWEI DevEco Device Tool(可选) | 3.0 Release | OpenHarmony智能设备集成开发环境推荐使用。 | + + +## 源码获取 + + +### 前提条件 + +1. 注册码云gitee账号。 + +2. 注册码云SSH公钥,请参考[码云帮助中心](https://gitee.com/help/articles/4191)。 + +3. 安装[git客户端](https://gitee.com/link?target=https%3A%2F%2Fgit-scm.com%2Fbook%2Fzh%2Fv2%2F%25E8%25B5%25B7%25E6%25AD%25A5-%25E5%25AE%2589%25E8%25A3%2585-Git)和[git-lfs](https://gitee.com/vcs-all-in-one/git-lfs?_from=gitee_search#downloading)并配置用户信息。 + + ``` + git config --global user.name "yourname" + git config --global user.email "your-email-address" + git config --global credential.helper store + ``` + +4. 安装码云repo工具,可以执行如下命令。 + + ``` + curl -s https://gitee.com/oschina/repo/raw/fork_flow/repo-py3 > /usr/local/bin/repo #如果没有权限,可下载至其他目录,并将其配置到环境变量中chmod a+x /usr/local/bin/repo + pip3 install -i https://repo.huaweicloud.com/repository/pypi/simple requests + ``` + + +### 通过repo获取 + +**方式一(推荐)** + +通过repo + ssh 下载(需注册公钥,请参考[码云帮助中心](https://gitee.com/help/articles/4191))。 + + +``` +repo init -u git@gitee.com:openharmony/manifest.git -b refs/tags/OpenHarmony-v3.1.6-Release --no-repo-verify +repo sync -c +repo forall -c 'git lfs pull' +``` + +**方式二** + +通过repo + https 下载。 + + +``` +repo init -u https://gitee.com/openharmony/manifest.git -b refs/tags/OpenHarmony-v3.1.6-Release --no-repo-verify +repo sync -c +repo forall -c 'git lfs pull' +``` + + +### 从镜像站点获取 + +**表2** 获取源码路径 + +| 版本源码 | **版本信息** | **下载站点** | **SHA256校验码** | +| -------- | -------- | -------- | -------- | +| 全量代码(标准、轻量和小型系统) | 3.1.6 Release | [站点](https://mirrors.huaweicloud.com/openharmony/os/3.1.6/code-v3.1.6-Release.tar.gz) | [SHA256校验码](https://mirrors.huaweicloud.com/openharmony/os/3.1.6/code-v3.1.6-Release.tar.gz.sha256) | +| Hi3516标准系统解决方案(二进制) | 3.1.6 Release | [站点](https://mirrors.huaweicloud.com/openharmony/os/3.1.6/standard_hi3516.tar.gz) | [SHA256校验码](https://mirrors.huaweicloud.com/openharmony/os/3.1.6/standard_hi3516.tar.gz.sha256) | +| RK3568标准系统解决方案(二进制) | 3.1.6 Release | [站点](https://mirrors.huaweicloud.com/openharmony/os/3.1.6/standard_rk3568.tar.gz) | [SHA256校验码](https://mirrors.huaweicloud.com/openharmony/os/3.1.6/standard_rk3568.tar.gz.sha256) | +| Hi3861轻量系统解决方案(二进制) | 3.1.6 Release | [站点](https://mirrors.huaweicloud.com/openharmony/os/3.1.6/hispark_pegasus.tar.gz) | [SHA256校验码](https://mirrors.huaweicloud.com/openharmony/os/3.1.6/hispark_pegasus.tar.gz.sha256) | +| Hi3516小型系统解决方案-LiteOS(二进制) | 3.1.6 Release | [站点](https://mirrors.huaweicloud.com/openharmony/os/3.1.6/hispark_taurus.tar.gz) | [SHA256校验码](https://mirrors.huaweicloud.com/openharmony/os/3.1.6/hispark_taurus.tar.gz.sha256) | +| Hi3516小型系统解决方案-Linux(二进制) | 3.1.6 Release | [站点](https://mirrors.huaweicloud.com/openharmony/os/3.1.6/hispark_taurus_linux.tar.gz) | [SHA256校验码](https://mirrors.huaweicloud.com/openharmony/os/3.1.6/hispark_taurus_linux.tar.gz.sha256) | +| 标准系统Full SDK包(Mac) | 3.1.12.5 | [站点](https://mirrors.huaweicloud.com/openharmony/os/3.1.6/ohos-sdk-mac-full.tar.gz) | [SHA256校验码](https://mirrors.huaweicloud.com/openharmony/os/3.1.6/ohos-sdk-mac-full.tar.gz.sha256) | +| 标准系统Full SDK包(Windows\Linux) | 3.1.12.5 | [站点](https://mirrors.huaweicloud.com/openharmony/os/3.1.6/ohos-sdk-full.tar.gz) | [SHA256校验码](https://mirrors.huaweicloud.com/openharmony/os/3.1.6/ohos-sdk-full.tar.gz.sha256) | +| 标准系统Public SDK包(Mac) | 3.1.12.5 | [站点](https://mirrors.huaweicloud.com/openharmony/os/3.1.6/ohos-sdk-mac-public.tar.gz) | [SHA256校验码](https://mirrors.huaweicloud.com/openharmony/os/3.1.6/ohos-sdk-mac-public.tar.gz.sha256) | +| 标准系统Public SDK包(Windows\Linux) | 3.1.12.5 | [站点](https://mirrors.huaweicloud.com/openharmony/os/3.1.6/ohos-sdk-public.tar.gz) | [SHA256校验码](https://mirrors.huaweicloud.com/openharmony/os/3.1.6/ohos-sdk-public.tar.gz.sha256) | + + +## 更新说明 + +本版本在OpenHarmony 3.1.5 Release的基础上有如下变更。 + + +### 特性变更 + +本次版本无新增特性及变更。 + +### API变更 + +3.1.6 Release对比3.1.5 Release API接口无变更。 + + + +### 芯片及开发板适配 + +芯片及开发板适配状态请参考[SIG-Devboard](https://gitee.com/openharmony/community/blob/master/sig/sig-devboard/sig_devboard_cn.md)信息。 + + +### 修复缺陷列表 + +**表3** 修复缺陷issue列表 + +| 子系统 | 问题描述 | +| ------------------ | ------------------------------------------------------------ | +| 应用子系统 | com.ohos.callui应用多次出现jscrash 栈名:updateCallTimeList([I5LWIW](https://gitee.com/openharmony/applications_call/issues/I5LWIW)) | +| 全球化子系统 | 关键进程com.ohos.launcher下的com.ohos.launch线程多次出现libglobal_resmgr.z.so异常栈([I5LT0M](https://gitee.com/openharmony/global_resource_management/issues/I5LT0M))
进程com.ohos.permissionmanager下的2.ui线程多次出现libglobal_resmgr.z.so异常栈([I68J7P](https://gitee.com/openharmony/global_resource_management/issues/I68J7P)) | +| Misc软件服务子系统 | 进程com.example.kikakeyboard出现cppcrash, libinputmethod_client.z.so([I66W3B](https://gitee.com/openharmony/inputmethod_imf/issues/I66W3B))
通过工具进行压测出现CPPCrash问题([I65K13](https://gitee.com/openharmony/inputmethod_imf/issues/I65K13)) | +| 分布式硬件 | com.ohos.devicemanagerui多次出现jscrash([I69LD9](https://gitee.com/openharmony/distributedhardware_device_manager/issues/I69LD9)) | +| 分布式软总线 | 分布式图库组网重启后对端设备媒体资源显示不出来([I674LD](https://gitee.com/openharmony/applications_photos/issues/I674LD)) | + + + + +### 修复安全漏洞列表 + +**表4** 修复安全问题列表 + +| ISSUE | 问题描述 | 修复链接 | +| -------- | -------- | -------- | +| I5UI5A | 修复组件kernel_linux_5.10上的CVE-2022-41218、CVE-2022-3424、CVE-2022-42328、CVE-2022-3643、CVE-2022-47946安全漏洞。 | [PR](https://gitee.com/openharmony/kernel_linux_5.10/pulls/646) | +| I69WX6 | 修复组件ffmpeg上的CVE-2022-3341安全漏洞。 | [PR](https://gitee.com/openharmony/third_party_ffmpeg/pulls/74) | +| I68JS0 | 修复组件ffmpeg上的CVE-2022-3109安全漏洞。 | [PR](https://gitee.com/openharmony/third_party_ffmpeg/pulls/71) | +| I671DT | 修复组件curl上的CVE-2022-43551、CVE-2022-43552安全漏洞。 | [PR](https://gitee.com/openharmony/third_party_curl/pulls/99) | +| I6A4YJ | 修复组件kernel_linux_5.10上的CVE-2022-20568安全漏洞。 | [PR](https://gitee.com/openharmony/kernel_linux_5.10/pulls/629) | +| I6A55C | 修复组件kernel_linux_5.10上的CVE-2023-0047安全漏洞。 | [PR](https://gitee.com/openharmony/kernel_linux_5.10/pulls/631) | + +## 遗留缺陷列表 + +**表5** 遗留缺陷列表 + +| issue | 问题描述 | 影响 | 计划解决日期 | +| ------------------------------------------------------------ | ---------------------------------------------------------- | ---------------- | ------------ | +| [I6AF0Y](https://gitee.com/openharmony/ability_ability_runtime/issues/I6AF0Y) | 两个窗口分屏配对后,关闭其中一个窗口,另一个窗口也会关闭。 | 分屏功能退出失效 | 2/15 | + diff --git a/zh-cn/release-notes/OpenHarmony-v3.2-beta5.md b/zh-cn/release-notes/OpenHarmony-v3.2-beta5.md new file mode 100644 index 0000000000000000000000000000000000000000..04161710636b108e044c34d4d777b3ff88dc4ac7 --- /dev/null +++ b/zh-cn/release-notes/OpenHarmony-v3.2-beta5.md @@ -0,0 +1,208 @@ +# OpenHarmony 3.2 Beta5 + + +## 版本概述 + +当前版本在OpenHarmony 3.2 Beta4的基础上,更新支持或优化增强的能力如下: + +**标准系统基础能力增强** + +webview启动性能优化;配置管理和对输入事件的支持等能力增强;模块化模式下可导入json文件并加载。 + +支持taskpool;hap包动态库不压缩加载;host版本TS2AOT-tool工具;编译器运行时支持应用内共享包。 + +支持安装/更新/卸载动态共享库;支持动态共享库打包和拆包;对未配置入口图标的应用,可在桌面显示默认图标;HAR共享包运行期能力可验证。 + +卡片本地数据库切换;常驻应用异常频繁重启保护;ServiceExtensionAbility支持异步onConnected生命周期。 + +支持本地帐号与域帐号绑定、认证,以及域帐号管理服务基础框架;支持禁止直接创建本地用户。 + +支持电源灯、light灯能力控制。 + +HDI驱动显示图层,可以实现对水平镜像和垂直镜像的支持。 + +**标准系统应用开发框架增强** + +工具链新增编译共享包流程。 + +ArkUI适配了根据资源名称获取资源的能力。 + +提供多级菜单和分组菜单的组件能力。 + +新增编译har包的流程。 + +新增适配hap编译流程的能力,hap编译时能识别.d.ets声明文件。 + +**标准系统分布式能力增强** + +支持BLE连接参数配置,连接过程优化。 + + +## 配套关系 + + **表1** 版本软件和工具配套关系 + +| 软件 | 版本 | 备注 | +| -------- | -------- | -------- | +| OpenHarmony | 3.2 Beta5 | NA | +| Public SDK | Ohos_sdk_public 3.2.10.6 (API Version 9 Beta5) | 面向应用开发者提供,不包含需要使用系统权限的系统接口。通过DevEco Studio默认获取的SDK为Public SDK。 | +| HUAWEI DevEco Studio(可选) | *待发布* | OpenHarmony应用开发推荐使用。 | +| HUAWEI DevEco Device Tool(可选) | *待发布* | OpenHarmony智能设备集成开发环境推荐使用。 | + + +## 源码获取 + + +### 前提条件 + +1. 注册码云gitee帐号。 + +2. 注册码云SSH公钥,请参考[码云帮助中心](https://gitee.com/help/articles/4191)。 + +3. 安装[git客户端](https://gitee.com/link?target=https%3A%2F%2Fgit-scm.com%2Fbook%2Fzh%2Fv2%2F%25E8%25B5%25B7%25E6%25AD%25A5-%25E5%25AE%2589%25E8%25A3%2585-Git)和[git-lfs](https://gitee.com/vcs-all-in-one/git-lfs?_from=gitee_search#downloading)并配置用户信息。 + + ``` + git config --global user.name "yourname" + git config --global user.email "your-email-address" + git config --global credential.helper store + ``` + +4. 安装码云repo工具,可以执行如下命令。 + + ``` + curl -s https://gitee.com/oschina/repo/raw/fork_flow/repo-py3 > /usr/local/bin/repo #如果没有权限,可下载至其他目录,并将其配置到环境变量中chmod a+x /usr/local/bin/repo + pip3 install -i https://repo.huaweicloud.com/repository/pypi/simple requests + ``` + + +### 通过repo获取 + +**方式一(推荐)** + +通过repo + ssh 下载(需注册公钥,请参考[码云帮助中心](https://gitee.com/help/articles/4191))。 + +- 从版本分支获取源码。可获取该版本分支的最新源码,包括版本发布后在该分支的合入。 + ``` + repo init -u git@gitee.com:openharmony/manifest.git -b OpenHarmony-3.2-Beta5 --no-repo-verify + repo sync -c + repo forall -c 'git lfs pull' + ``` + +- 从版本发布Tag节点获取源码。可获取与版本发布时完全一致的源码。 + ``` + repo init -u git@gitee.com:openharmony/manifest.git -b refs/tags/OpenHarmony-v3.2-Beta5 --no-repo-verify + repo sync -c + repo forall -c 'git lfs pull' + ``` + +**方式二** + +通过repo + https 下载。 + +- 从版本分支获取源码。可获取该版本分支的最新源码,包括版本发布后在该分支的合入。 + ``` + repo init -u https://gitee.com/openharmony/manifest -b OpenHarmony-3.2-Beta5 --no-repo-verify + repo sync -c + repo forall -c 'git lfs pull' + ``` + +- 从版本发布Tag节点获取源码。可获取与版本发布时完全一致的源码。 + ``` + repo init -u https://gitee.com/openharmony/manifest -b refs/tags/OpenHarmony-v3.2-Beta5 --no-repo-verify + repo sync -c + repo forall -c 'git lfs pull' + ``` + + +### 从镜像站点获取 + + **表2** 获取源码路径 + +| 版本源码 | **版本信息** | **下载站点** | **SHA256校验码** | **软件包容量** | +| --------------------------------------- | ------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | -------- | +| 全量代码(标准、轻量和小型系统) | 3.2 Beta5 | [站点](https://repo.huaweicloud.com/harmonyos/os/3.2-Beta5/code-v3.2-Beta5.tar.gz) | [SHA256校验码](https://repo.huaweicloud.com/harmonyos/os/3.2-Beta5/code-v3.2-Beta5.tar.gz.sha256) | 21.3 GB | +| Hi3861解决方案(二进制) | 3.2 Beta5 | [站点](https://repo.huaweicloud.com/harmonyos/os/3.2-Beta5/hispark_pegasus.tar.gz) | [SHA256校验码](https://repo.huaweicloud.com/harmonyos/os/3.2-Beta5/hispark_pegasus.tar.gz.sha256) | 22.9 MB | +| Hi3516解决方案-LiteOS(二进制) | 3.2 Beta5 | [站点](https://repo.huaweicloud.com/openharmony/os/3.2-Beta5/hispark_taurus_LiteOS.tar.gz) | [SHA256校验码](https://repo.huaweicloud.com/openharmony/os/3.2-Beta5/hispark_taurus_LiteOS.tar.gz.sha256) | 293.6 MB | +| Hi3516解决方案-Linux(二进制) | 3.2 Beta5 | [站点](hispark_taurus_Linux.tar.gz) | [SHA256校验码](https://repo.huaweicloud.com/openharmony/os/3.2-Beta5/hispark_taurus_Linux.tar.gz.sha256) | 174.3 MB | +| RK3568标准系统解决方案(二进制) | 3.2 Beta5 | [站点](https://repo.huaweicloud.com/harmonyos/os/3.2-Beta5/dayu200_standard_arm32_20230201.tar.gz) | [SHA256校验码](https://repo.huaweicloud.com/harmonyos/os/3.2-Beta5/dayu200_standard_arm32_20230201.tar.gz.sha256) | 3.9 GB | +| 标准系统Public SDK包(Mac) | 3.2.10.6 | [站点](https://repo.huaweicloud.com/harmonyos/os/3.2-Beta5/ohos-sdk-mac-public.tar.gz) | [SHA256校验码](https://repo.huaweicloud.com/harmonyos/os/3.2-Beta5/ohos-sdk-mac-public.tar.gz.sha256) | 674.5 MB | +| 标准系统Public SDK包(Mac-M1) | 3.2.10.6 | [站点](https://repo.huaweicloud.com/harmonyos/os/3.2-Beta5/L2-SDK-MAC-M1-PUBLIC.tar.gz) | [SHA256校验码](https://repo.huaweicloud.com/harmonyos/os/3.2-Beta5/L2-SDK-MAC-M1-PUBLIC.tar.gz.sha256) | 634.5 MB | +| 标准系统Public SDK包(Windows\Linux) | 3.2.10.6 | [站点](https://repo.huaweicloud.com/harmonyos/os/3.2-Beta5/ohos-sdk-windows_linux-public.tar.gz) | [SHA256校验码](https://repo.huaweicloud.com/harmonyos/os/3.2-Beta5/ohos-sdk-windows_linux-public.tar.gz.sha256) | 1.6 GB | + + + +## 更新说明 + +本版本在OpenHarmony 3.2 Beta4的基础上有如下变更。 + + +### 特性变更 + + **表3** 版本特性变更表 + +| 子系统名称 | 标准系统 | 轻量、小型系统 | +| -------- | -------- | -------- | +| ArkUI | - 支持通过资源名称获取资源。
- 组件支持多级菜单和分组菜单。
- 编译能力增强。
主要涉及以下需求:
I683Z1 【新增功能】ArkUI适配根据资源名称获取资源
I68DBH 【基础能力】提供多级菜单和分组菜单能力
I68DRY【新增功能】新增编译har包的流程
I68DRY【新增功能】适配hap编译流程,hap编译时能识别.d.ets声明文件
I68DRY【新增功能】工具链新增编译共享包流程 | NA | +| Web子系统 | webview部件新增支持多项能力,包括:
- web页面的加载和显示支持历史记录和前进/后退、支持页面加载各类事件上报、webmessage支持arraybuffer类型、fetch支持自定义协议。
- webview的配置管理支持滚动条和滚动位置、支持网络加载拦截配置、支持判断页面中是否有image、支持获取源url/请求方法/网站图标、支持字体管理。
- 支持web上下文菜单中获取页面选中内容。
- 输入事件支持交互归一、支持原始输入事件。
- 新增支持若干W3C接口。
主要涉及以下需求:
I6BFPR 【功能增强】【webview部件】web页面的加载和显示 (支持历史记录和前进后退列表管理)
I6BFRC 【功能增强】【webview部件】支持W3C接口(html-部分用例)
I6BFS6 【功能增强】【webview部件】支持W3C接口(css-部分用例)
I6BFSK 【功能增强】【webview部件】web页面的加载和显示 (1.webmessage支持arraybuffer类型)
I6BFTS 【功能增强】【webview部件】支持W3C接口( 1.支持appmanifest等)
I6BFUD 【功能增强】【webview部件】web页面的加载和显示(1.fetch支持自定义协议)
I6BFUM 【功能增强】【webview部件】web页面支持状态回调 (1.支持页面加载各类事件上报)
I6BFV4 【功能增强】【webview部件】webview的配置管理 (1.支持滚动条和滚动位置 )
I6BFXF 【功能增强】【webview部件】webview的配置管理( 1.支持网络加载拦截配置 2.支持判断页面中是否有image 3.支持获取源url、请求方法以及网站图标)
I6BFXT 【功能增强】【webview部件】webview的配置管理(1.支持字体管理)
I6BFY9 【功能增强】【webview部件】输入事件支持(1.支持交互归一)
I6BG4H 【功能增强】【webview部件】输入事件支持(1.支持原始输入事件)
I6BG59 【功能增强】【webview部件】web页面内容选中和复制(1.支持web上下文菜单中获取页面选中内容) | NA | +| 安全 | - Mini设备支持认证会话取消能力
- HUKS支持RSA 签名增强方案
主要涉及以下需求:
I65VLX【功能增强】Mini设备支持认证会话取消能力
I611S5【新增规格】HUKS支持RSA 签名增强方案 | NA | +| 包管理 | - 隐式查询能力增强。
- 支持TS代码优化目录创建。
- 验签时支持provision中bundleName校验。
- 支持未配置入口图标的应用在桌面显示默认图标。
- 支持打包/拆包OpenHarmony动态共享库、支持安装/更新/卸载动态共享库、HAR共享包运行期能力验证等基础能力。
主要涉及以下需求:
I6BD9G【基础能力】隐式查询能力增强
I6BD9E【基础能力】支持TS代码优化目录创建
I6BD99【基础能力】验签时支持provision中bundleName校验
I6BD8Z【基础能力】支持未配置入口图标的应用在桌面显示默认图标
I6BD92【新增功能】支持打包/拆包OpenHarmony动态共享库
I6BD96【新增规格】支持安装/更新/卸载动态共享库
I6BD9I HAR共享包运行期能力验证 | NA | +| 编译运行时 | - 新增提供TS/JS高级语言任务池并发API-taskpool。
- 新增支持HOST侧TSAOT功能,tsc支持导出/导入声明文件(.d.ts/.d.ets)
主要涉及如下需求:
I65G6O 【基础能力】【闭源HAR包】tsc支持导出/导入声明文件(.d.ts/.d.ets)
I64QIR【taskpool】高级语言提供任务池并发API
I65HID【功能增强】支持host版本TS2AOT-tool工具 | NA | +| 泛Sensor服务 | 支持light单逻辑灯控制能力。
主要涉及以下需求:
I63TFA 【新增规格】 支持基本light单逻辑灯控制能力 | NA | +| 媒体 | 对播放音视频和录制音视频的接口进行了重构。
主要涉及以下需求:
I63GTA 【重构】播放音视频接口合一
I66VL5 【重构】录制音视频接口合一 | NA | +| 启动恢复 | 对NAPI模块隐藏符号,对依赖静态库模块修改为动态库依赖。
主要涉及以下需求:
I698CV 【符号优化】对NAPI模块隐藏符号,对依赖静态库模块修改为动态库依赖 | NA | +| 事件通知 | 本地通知数据库进行了切换。
主要涉及以下需求:
I67E9A 【基础能力】本地通知数据库切换 | NA | +| 图形图像 | 新增支持相机预览镜像。
主要涉及以下需求:
I6BDOH 【RenderService】【新增功能】支持相机预览镜像 | NA | +| 位置服务 | 新增支持网络定位框架能力。
主要涉及以下需求:
I5X4S9 【新增特性】【位置服务子系统】支持网络定位框架能力 | NA | +| 文件存储 | - 新增应用文件统一URI处理能力。
- 新增支持公共数据的临时授权和统一的打开入口。
主要涉及以下需求:
I687C8【新增能力】支持应用文件统一URI处理能力
I64U8W【基础能力】支持公共数据的临时授权和统一open入口 | NA | +| 元能力 | - 新增常驻进程重启优化。
- 支持卡片数据库切换。
- 支持异步onConnected等能力。
主要涉及以下需求:
I65M3F 【基础能力】执行ShellCommand命令管控
I65V83 【基础能力】ServiceExtensionAbility支持异步onConnected生命周期
I61H21 【基础能力】卡片本地数据库切换
I63UJ5 【元能力】【ability_runtime】API8及以前API 支持异常处理
I6BDCW 【基础能力】应用加载禁止加载data目录下的代码
I6BDDU 【基础能力】FA模型默认启动方式为Standard
I6BDE2 【基础能力】常驻应用异常频繁重启保护 | NA | + + +### 芯片及开发板适配 + +芯片及开发板适配状态请参考[SIG-Devboard](https://gitee.com/openharmony/community/blob/master/sig/sig-devboard/sig_devboard_cn.md)信息。 + + +### Samples + + **表4** 新增Samples + +| 子系统 | 名称 | 简介 | 开发语言 | +| -------- | -------- | -------- | -------- | +| web | [JS注入与执行](https://gitee.com/openharmony/applications_app_samples/tree/master/Web/RunJsInWeb) | 本示例基于H5游戏,通过ArkUI的button实现对游戏实现基本控制,展示webview的JS注入与执行能力,及native应用与H5的通信能力。 | ArkTs | +| 媒体子系统 | [二维码扫描](https://gitee.com/openharmony/applications_app_samples/tree/master/media/QRCodeScan) | 本示例展示二维码扫描,从文件中选择二维码图片进行解析和读取,识别二维码信息。 | ArkTs | +| ArkUI | [一多设置典型页面](https://gitee.com/openharmony/applications_app_samples/tree/master/MultiDeviceAppDev/Settings) | 本示例展示了设置应用的典型页面,其在小窗口和大窗口有不同的显示效果,体现一次开发、多端部署的能力。 | ArkTs | +| 文件管理 | [文件管理](https://gitee.com/openharmony/applications_app_samples/tree/master/FileManager/FileManager) | 本示例主要展示了文件管理相关的功能,使用[mediaLibrary](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/reference/apis/js-apis-medialibrary.md)、[userFileManager](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/reference/apis/js-apis-userfilemanager.md)、[fileio](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/reference/apis/js-apis-fileio.md)等接口,实现了媒体库文件、应用沙箱内文件的添加和访问等功能。 | ArkTs | +| 媒体子系统 | [录屏](https://gitee.com/openharmony/applications_app_samples/tree/master/media/ScreenRecorder) | 该示例展示设备屏幕(含音频)录制功能。屏幕录制的主要工作是通过创建一个虚拟屏,捕获屏幕显示图形帧,完成视频编码并保存到文件中,帮助OEM设备厂家系统应用实现屏幕录制功能,也可以通过此应用抓取屏幕帧用于问题复现录制。 | ArkTs | +| 窗口子系统 | [屏幕探测](https://gitee.com/openharmony/applications_app_samples/tree/master/device/ScreenDetector) | 本示例实时监测连接的屏幕数量状态,支持创建至多5个虚拟屏幕,点击对应的屏幕矩形能显示该屏幕的相关属性。 | ArkTs | +| 元能力 | [Stage模型卡片小游戏](https://gitee.com/openharmony/applications_app_samples/tree/master/ability/FormGame) | 本示例展示了如何通过Stage模型实现一个简单的游戏卡片。 | ArkTs | + + +请访问[Samples](https://gitee.com/openharmony/app_samples)仓了解更多信息。 + + +## 修复缺陷列表 + + **表5** 修复缺陷ISSUE列表 + +| ISSUE单 | 问题描述 | +| -------- | -------- | +| I5KMQX | 【RK3568】联系人到拨号子页签切换动作的完成时延要求未达标 | +| I5UFS1 | 组件das u-boot扫描发现新增漏洞CVE-2022-2347 | +| I5UDY5 | linux kernel漏洞:CVE-2022-41218 | +| I5YPMZ | linux kernel漏洞:CVE-2022-3344 | + + +## 遗留缺陷列表 + + **表6** 遗留缺陷列表 + +| ISSUE | 问题描述 | 影响 | 计划解决日期 | +| -------- | -------- | -------- | -------- | +| I6ATXO | 【RK3568】XTS执行测试,OpenGL测试套执行结果存在失败项 | 用例用于测试OpenGL接口,系统其他模块变更后用例未适配,但使用OpenGL接口的模块/应用不受影响,风险可控。 | 2023年2月5日 | +| I6B1IC | 【RK3568】【低概率1/10】【XTS】进程/vendor/bin/ispserver下的ispserver线程导致librkaiq.z.so出现cppcrash | 压测情况下,低概率出现ipserver线程cppcrash,出现crash后能自动重新启动ipserver线程,业务不受影响。 | 2023年2月5日 | +| I6BJ9Z
I6BJ82 | alloc_file_pseudo 内存泄漏问题跟踪 | accept4引用计数不平衡导致内存泄漏,selinux_netlbl_sock_genattr、new_inode_pseudo、inet_create 内存泄漏,上游社区无补丁,跟随上游社区补丁合入。 | 2023年3月30日 | +| I641A2
I64726 | 蓝牙模块存在静默配对问题,其他设备可以静默配对后通过蓝牙键盘、鼠标完全控制设备 | 蓝牙模块存在静默配对问题。在后续版本以需求跟踪解决。 | 2023年3月30日 | +| I6BRTS | 调用rdb::executeSql接口会引起内存泄漏风险 | 反复初始化调用rdb::executeSql接口出现少量内存泄露,此接口为应用初始化时调用,但不会多次调用,内存泄露影响可控。 | 2023年2月10日 | +| I6AZ4T | 带textinput输入框组件的应用存在内存泄漏风险 | 高频反复调用textinput框出现少量内存泄露,根因为调用三方库flutter库,内存未回收。需排查是否为开源flutter组件问题。 | 2023年2月10日 | + + \ No newline at end of file diff --git a/zh-cn/release-notes/Readme.md b/zh-cn/release-notes/Readme.md index 9488272e72b92c4f3a73baebd22faaa748bf1a91..de2478b990ec99ec4eeb16ad5117796ad1baee82 100644 --- a/zh-cn/release-notes/Readme.md +++ b/zh-cn/release-notes/Readme.md @@ -1,6 +1,7 @@ # OpenHarmony Release Notes ## OpenHarmony 3.x Releases +- [OpenHarmony v3.2 Beta5 (2023-01-31)](OpenHarmony-v3.2-beta5.md) - [OpenHarmony v3.2 Beta4 (2022-11-30)](OpenHarmony-v3.2-beta4.md) - [OpenHarmony v3.2 Beta3 (2022-09-30)](OpenHarmony-v3.2-beta3.md) - [OpenHarmony v3.2 Beta2 (2022-07-30)](OpenHarmony-v3.2-beta2.md) diff --git a/zh-cn/release-notes/api-diff/monthly-202210/js-apidiff-ability.md b/zh-cn/release-notes/api-diff/monthly-202210/js-apidiff-ability.md index 7b9ac761962207cd855dc69af1c5622f2e5a5938..3604e98010fa020703c1ace4535ffb2b07740783 100644 --- a/zh-cn/release-notes/api-diff/monthly-202210/js-apidiff-ability.md +++ b/zh-cn/release-notes/api-diff/monthly-202210/js-apidiff-ability.md @@ -1,630 +1,595 @@ -| 操作 | 新版本 | 旧版本 | d.ts文件 | +| 操作 | 旧版本 | 新版本 | d.ts文件 | | ---- | ------ | ------ | -------- | -|新增||模块名:ohos.ability.wantConstant
类名:Action
方法名 or 属性名:ACTION_APP_ACCOUNT_AUTH|@ohos.ability.wantConstant.d.ts| -|新增||模块名: ohos.app.ability.Ability
类名: Ability|@ohos.app.ability.Ability.d.ts| -|新增||模块名: ohos.app.ability.Ability
类名: Ability
方法名 or 属性名: onConfigurationUpdate|@ohos.app.ability.Ability.d.ts| -|新增||模块名: ohos.app.ability.Ability
类名: Ability
方法名 or 属性名: onMemoryLevel|@ohos.app.ability.Ability.d.ts| -|新增||模块名: ohos.app.ability.Ability
类名: Ability
方法名 or 属性名: onSaveState|@ohos.app.ability.Ability.d.ts| -|新增||模块名: ohos.app.ability.AbilityConstant
类名: AbilityConstant|@ohos.app.ability.AbilityConstant.d.ts| -|新增||模块名: ohos.app.ability.AbilityConstant
类名: LaunchParam|@ohos.app.ability.AbilityConstant.d.ts| -|新增||模块名: ohos.app.ability.AbilityConstant
类名: LaunchParam
方法名 or 属性名: launchReason|@ohos.app.ability.AbilityConstant.d.ts| -|新增||模块名: ohos.app.ability.AbilityConstant
类名: LaunchParam
方法名 or 属性名: lastExitReason|@ohos.app.ability.AbilityConstant.d.ts| -|新增||模块名: ohos.app.ability.AbilityConstant
类名: LaunchReason|@ohos.app.ability.AbilityConstant.d.ts| -|新增||模块名: ohos.app.ability.AbilityConstant
类名: LaunchReason
方法名 or 属性名: UNKNOWN|@ohos.app.ability.AbilityConstant.d.ts| -|新增||模块名: ohos.app.ability.AbilityConstant
类名: LaunchReason
方法名 or 属性名: START_ABILITY|@ohos.app.ability.AbilityConstant.d.ts| -|新增||模块名: ohos.app.ability.AbilityConstant
类名: LaunchReason
方法名 or 属性名: CALL|@ohos.app.ability.AbilityConstant.d.ts| -|新增||模块名: ohos.app.ability.AbilityConstant
类名: LaunchReason
方法名 or 属性名: CONTINUATION|@ohos.app.ability.AbilityConstant.d.ts| -|新增||模块名: ohos.app.ability.AbilityConstant
类名: LaunchReason
方法名 or 属性名: APP_RECOVERY|@ohos.app.ability.AbilityConstant.d.ts| -|新增||模块名: ohos.app.ability.AbilityConstant
类名: LastExitReason|@ohos.app.ability.AbilityConstant.d.ts| -|新增||模块名: ohos.app.ability.AbilityConstant
类名: LastExitReason
方法名 or 属性名: UNKNOWN|@ohos.app.ability.AbilityConstant.d.ts| -|新增||模块名: ohos.app.ability.AbilityConstant
类名: LastExitReason
方法名 or 属性名: ABILITY_NOT_RESPONDING|@ohos.app.ability.AbilityConstant.d.ts| -|新增||模块名: ohos.app.ability.AbilityConstant
类名: LastExitReason
方法名 or 属性名: NORMAL|@ohos.app.ability.AbilityConstant.d.ts| -|新增||模块名: ohos.app.ability.AbilityConstant
类名: OnContinueResult|@ohos.app.ability.AbilityConstant.d.ts| -|新增||模块名: ohos.app.ability.AbilityConstant
类名: OnContinueResult
方法名 or 属性名: AGREE|@ohos.app.ability.AbilityConstant.d.ts| -|新增||模块名: ohos.app.ability.AbilityConstant
类名: OnContinueResult
方法名 or 属性名: REJECT|@ohos.app.ability.AbilityConstant.d.ts| -|新增||模块名: ohos.app.ability.AbilityConstant
类名: OnContinueResult
方法名 or 属性名: MISMATCH|@ohos.app.ability.AbilityConstant.d.ts| -|新增||模块名: ohos.app.ability.AbilityConstant
类名: MemoryLevel|@ohos.app.ability.AbilityConstant.d.ts| -|新增||模块名: ohos.app.ability.AbilityConstant
类名: MemoryLevel
方法名 or 属性名: MEMORY_LEVEL_MODERATE|@ohos.app.ability.AbilityConstant.d.ts| -|新增||模块名: ohos.app.ability.AbilityConstant
类名: MemoryLevel
方法名 or 属性名: MEMORY_LEVEL_LOW|@ohos.app.ability.AbilityConstant.d.ts| -|新增||模块名: ohos.app.ability.AbilityConstant
类名: MemoryLevel
方法名 or 属性名: MEMORY_LEVEL_CRITICAL|@ohos.app.ability.AbilityConstant.d.ts| -|新增||模块名: ohos.app.ability.AbilityConstant
类名: WindowMode|@ohos.app.ability.AbilityConstant.d.ts| -|新增||模块名: ohos.app.ability.AbilityConstant
类名: WindowMode
方法名 or 属性名: WINDOW_MODE_UNDEFINED|@ohos.app.ability.AbilityConstant.d.ts| -|新增||模块名: ohos.app.ability.AbilityConstant
类名: WindowMode
方法名 or 属性名: WINDOW_MODE_FULLSCREEN|@ohos.app.ability.AbilityConstant.d.ts| -|新增||模块名: ohos.app.ability.AbilityConstant
类名: WindowMode
方法名 or 属性名: WINDOW_MODE_SPLIT_PRIMARY|@ohos.app.ability.AbilityConstant.d.ts| -|新增||模块名: ohos.app.ability.AbilityConstant
类名: WindowMode
方法名 or 属性名: WINDOW_MODE_SPLIT_SECONDARY|@ohos.app.ability.AbilityConstant.d.ts| -|新增||模块名: ohos.app.ability.AbilityConstant
类名: WindowMode
方法名 or 属性名: WINDOW_MODE_FLOATING|@ohos.app.ability.AbilityConstant.d.ts| -|新增||模块名: ohos.app.ability.AbilityConstant
类名: OnSaveResult|@ohos.app.ability.AbilityConstant.d.ts| -|新增||模块名: ohos.app.ability.AbilityConstant
类名: OnSaveResult
方法名 or 属性名: ALL_AGREE|@ohos.app.ability.AbilityConstant.d.ts| -|新增||模块名: ohos.app.ability.AbilityConstant
类名: OnSaveResult
方法名 or 属性名: CONTINUATION_REJECT|@ohos.app.ability.AbilityConstant.d.ts| -|新增||模块名: ohos.app.ability.AbilityConstant
类名: OnSaveResult
方法名 or 属性名: CONTINUATION_MISMATCH|@ohos.app.ability.AbilityConstant.d.ts| -|新增||模块名: ohos.app.ability.AbilityConstant
类名: OnSaveResult
方法名 or 属性名: RECOVERY_AGREE|@ohos.app.ability.AbilityConstant.d.ts| -|新增||模块名: ohos.app.ability.AbilityConstant
类名: OnSaveResult
方法名 or 属性名: RECOVERY_REJECT|@ohos.app.ability.AbilityConstant.d.ts| -|新增||模块名: ohos.app.ability.AbilityConstant
类名: OnSaveResult
方法名 or 属性名: ALL_REJECT|@ohos.app.ability.AbilityConstant.d.ts| -|新增||模块名: ohos.app.ability.AbilityConstant
类名: StateType|@ohos.app.ability.AbilityConstant.d.ts| -|新增||模块名: ohos.app.ability.AbilityConstant
类名: StateType
方法名 or 属性名: CONTINUATION|@ohos.app.ability.AbilityConstant.d.ts| -|新增||模块名: ohos.app.ability.AbilityConstant
类名: StateType
方法名 or 属性名: APP_RECOVERY|@ohos.app.ability.AbilityConstant.d.ts| -|新增||模块名: ohos.app.ability.abilityDelegatorRegistry
类名: abilityDelegatorRegistry|@ohos.app.ability.abilityDelegatorRegistry.d.ts| -|新增||模块名: ohos.app.ability.abilityDelegatorRegistry
类名: abilityDelegatorRegistry
方法名 or 属性名: getAbilityDelegator|@ohos.app.ability.abilityDelegatorRegistry.d.ts| -|新增||模块名: ohos.app.ability.abilityDelegatorRegistry
类名: abilityDelegatorRegistry
方法名 or 属性名: getArguments|@ohos.app.ability.abilityDelegatorRegistry.d.ts| -|新增||模块名: ohos.app.ability.abilityDelegatorRegistry
类名: AbilityLifecycleState|@ohos.app.ability.abilityDelegatorRegistry.d.ts| -|新增||模块名: ohos.app.ability.abilityDelegatorRegistry
类名: AbilityLifecycleState
方法名 or 属性名: UNINITIALIZED|@ohos.app.ability.abilityDelegatorRegistry.d.ts| -|新增||模块名: ohos.app.ability.abilityDelegatorRegistry
类名: AbilityLifecycleState
方法名 or 属性名: CREATE|@ohos.app.ability.abilityDelegatorRegistry.d.ts| -|新增||模块名: ohos.app.ability.abilityDelegatorRegistry
类名: AbilityLifecycleState
方法名 or 属性名: FOREGROUND|@ohos.app.ability.abilityDelegatorRegistry.d.ts| -|新增||模块名: ohos.app.ability.abilityDelegatorRegistry
类名: AbilityLifecycleState
方法名 or 属性名: BACKGROUND|@ohos.app.ability.abilityDelegatorRegistry.d.ts| -|新增||模块名: ohos.app.ability.abilityDelegatorRegistry
类名: AbilityLifecycleState
方法名 or 属性名: DESTROY|@ohos.app.ability.abilityDelegatorRegistry.d.ts| -|新增||模块名: ohos.app.ability.AbilityLifecycleCallback
类名: AbilityLifecycleCallback|@ohos.app.ability.AbilityLifecycleCallback.d.ts| -|新增||模块名: ohos.app.ability.AbilityLifecycleCallback
类名: AbilityLifecycleCallback
方法名 or 属性名: onAbilityCreate|@ohos.app.ability.AbilityLifecycleCallback.d.ts| -|新增||模块名: ohos.app.ability.AbilityLifecycleCallback
类名: AbilityLifecycleCallback
方法名 or 属性名: onWindowStageCreate|@ohos.app.ability.AbilityLifecycleCallback.d.ts| -|新增||模块名: ohos.app.ability.AbilityLifecycleCallback
类名: AbilityLifecycleCallback
方法名 or 属性名: onWindowStageActive|@ohos.app.ability.AbilityLifecycleCallback.d.ts| -|新增||模块名: ohos.app.ability.AbilityLifecycleCallback
类名: AbilityLifecycleCallback
方法名 or 属性名: onWindowStageInactive|@ohos.app.ability.AbilityLifecycleCallback.d.ts| -|新增||模块名: ohos.app.ability.AbilityLifecycleCallback
类名: AbilityLifecycleCallback
方法名 or 属性名: onWindowStageDestroy|@ohos.app.ability.AbilityLifecycleCallback.d.ts| -|新增||模块名: ohos.app.ability.AbilityLifecycleCallback
类名: AbilityLifecycleCallback
方法名 or 属性名: onAbilityDestroy|@ohos.app.ability.AbilityLifecycleCallback.d.ts| -|新增||模块名: ohos.app.ability.AbilityLifecycleCallback
类名: AbilityLifecycleCallback
方法名 or 属性名: onAbilityForeground|@ohos.app.ability.AbilityLifecycleCallback.d.ts| -|新增||模块名: ohos.app.ability.AbilityLifecycleCallback
类名: AbilityLifecycleCallback
方法名 or 属性名: onAbilityBackground|@ohos.app.ability.AbilityLifecycleCallback.d.ts| -|新增||模块名: ohos.app.ability.AbilityLifecycleCallback
类名: AbilityLifecycleCallback
方法名 or 属性名: onAbilityContinue|@ohos.app.ability.AbilityLifecycleCallback.d.ts| -|新增||模块名: ohos.app.ability.abilityManager
类名: abilityManager|@ohos.app.ability.abilityManager.d.ts| -|新增||模块名: ohos.app.ability.abilityManager
类名: AbilityState|@ohos.app.ability.abilityManager.d.ts| -|新增||模块名: ohos.app.ability.abilityManager
类名: AbilityState
方法名 or 属性名: INITIAL|@ohos.app.ability.abilityManager.d.ts| -|新增||模块名: ohos.app.ability.abilityManager
类名: AbilityState
方法名 or 属性名: FOREGROUND|@ohos.app.ability.abilityManager.d.ts| -|新增||模块名: ohos.app.ability.abilityManager
类名: AbilityState
方法名 or 属性名: BACKGROUND|@ohos.app.ability.abilityManager.d.ts| -|新增||模块名: ohos.app.ability.abilityManager
类名: AbilityState
方法名 or 属性名: FOREGROUNDING|@ohos.app.ability.abilityManager.d.ts| -|新增||模块名: ohos.app.ability.abilityManager
类名: AbilityState
方法名 or 属性名: BACKGROUNDING|@ohos.app.ability.abilityManager.d.ts| -|新增||模块名: ohos.app.ability.abilityManager
类名: abilityManager
方法名 or 属性名: updateConfiguration|@ohos.app.ability.abilityManager.d.ts| -|新增||模块名: ohos.app.ability.abilityManager
类名: abilityManager
方法名 or 属性名: updateConfiguration|@ohos.app.ability.abilityManager.d.ts| -|新增||模块名: ohos.app.ability.abilityManager
类名: abilityManager
方法名 or 属性名: getAbilityRunningInfos|@ohos.app.ability.abilityManager.d.ts| -|新增||模块名: ohos.app.ability.abilityManager
类名: abilityManager
方法名 or 属性名: getAbilityRunningInfos|@ohos.app.ability.abilityManager.d.ts| -|新增||模块名: ohos.app.ability.abilityManager
类名: abilityManager
方法名 or 属性名: getExtensionRunningInfos|@ohos.app.ability.abilityManager.d.ts| -|新增||模块名: ohos.app.ability.abilityManager
类名: abilityManager
方法名 or 属性名: getExtensionRunningInfos|@ohos.app.ability.abilityManager.d.ts| -|新增||模块名: ohos.app.ability.abilityManager
类名: abilityManager
方法名 or 属性名: getTopAbility|@ohos.app.ability.abilityManager.d.ts| -|新增||模块名: ohos.app.ability.abilityManager
类名: abilityManager
方法名 or 属性名: getTopAbility|@ohos.app.ability.abilityManager.d.ts| -|新增||模块名: ohos.app.ability.AbilityStage
类名: AbilityStage|@ohos.app.ability.AbilityStage.d.ts| -|新增||模块名: ohos.app.ability.AbilityStage
类名: AbilityStage
方法名 or 属性名: context|@ohos.app.ability.AbilityStage.d.ts| -|新增||模块名: ohos.app.ability.AbilityStage
类名: AbilityStage
方法名 or 属性名: onCreate|@ohos.app.ability.AbilityStage.d.ts| -|新增||模块名: ohos.app.ability.AbilityStage
类名: AbilityStage
方法名 or 属性名: onAcceptWant|@ohos.app.ability.AbilityStage.d.ts| -|新增||模块名: ohos.app.ability.AbilityStage
类名: AbilityStage
方法名 or 属性名: onConfigurationUpdate|@ohos.app.ability.AbilityStage.d.ts| -|新增||模块名: ohos.app.ability.AbilityStage
类名: AbilityStage
方法名 or 属性名: onMemoryLevel|@ohos.app.ability.AbilityStage.d.ts| -|新增||模块名: ohos.app.ability.appManager
类名: appManager|@ohos.app.ability.appManager.d.ts| -|新增||模块名: ohos.app.ability.appManager
类名: ApplicationState|@ohos.app.ability.appManager.d.ts| -|新增||模块名: ohos.app.ability.appManager
类名: ApplicationState
方法名 or 属性名: STATE_CREATE|@ohos.app.ability.appManager.d.ts| -|新增||模块名: ohos.app.ability.appManager
类名: ApplicationState
方法名 or 属性名: STATE_FOREGROUND|@ohos.app.ability.appManager.d.ts| -|新增||模块名: ohos.app.ability.appManager
类名: ApplicationState
方法名 or 属性名: STATE_ACTIVE|@ohos.app.ability.appManager.d.ts| -|新增||模块名: ohos.app.ability.appManager
类名: ApplicationState
方法名 or 属性名: STATE_BACKGROUND|@ohos.app.ability.appManager.d.ts| -|新增||模块名: ohos.app.ability.appManager
类名: ApplicationState
方法名 or 属性名: STATE_DESTROY|@ohos.app.ability.appManager.d.ts| -|新增||模块名: ohos.app.ability.appManager
类名: ProcessState|@ohos.app.ability.appManager.d.ts| -|新增||模块名: ohos.app.ability.appManager
类名: ProcessState
方法名 or 属性名: STATE_CREATE|@ohos.app.ability.appManager.d.ts| -|新增||模块名: ohos.app.ability.appManager
类名: ProcessState
方法名 or 属性名: STATE_FOREGROUND|@ohos.app.ability.appManager.d.ts| -|新增||模块名: ohos.app.ability.appManager
类名: ProcessState
方法名 or 属性名: STATE_ACTIVE|@ohos.app.ability.appManager.d.ts| -|新增||模块名: ohos.app.ability.appManager
类名: ProcessState
方法名 or 属性名: STATE_BACKGROUND|@ohos.app.ability.appManager.d.ts| -|新增||模块名: ohos.app.ability.appManager
类名: ProcessState
方法名 or 属性名: STATE_DESTROY|@ohos.app.ability.appManager.d.ts| -|新增||模块名: ohos.app.ability.appManager
类名: appManager
方法名 or 属性名: on_applicationState|@ohos.app.ability.appManager.d.ts| -|新增||模块名: ohos.app.ability.appManager
类名: appManager
方法名 or 属性名: on_applicationState|@ohos.app.ability.appManager.d.ts| -|新增||模块名: ohos.app.ability.appManager
类名: appManager
方法名 or 属性名: off_applicationState|@ohos.app.ability.appManager.d.ts| -|新增||模块名: ohos.app.ability.appManager
类名: appManager
方法名 or 属性名: off_applicationState|@ohos.app.ability.appManager.d.ts| -|新增||模块名: ohos.app.ability.appManager
类名: appManager
方法名 or 属性名: getForegroundApplications|@ohos.app.ability.appManager.d.ts| -|新增||模块名: ohos.app.ability.appManager
类名: appManager
方法名 or 属性名: getForegroundApplications|@ohos.app.ability.appManager.d.ts| -|新增||模块名: ohos.app.ability.appManager
类名: appManager
方法名 or 属性名: killProcessWithAccount|@ohos.app.ability.appManager.d.ts| -|新增||模块名: ohos.app.ability.appManager
类名: appManager
方法名 or 属性名: killProcessWithAccount|@ohos.app.ability.appManager.d.ts| -|新增||模块名: ohos.app.ability.appManager
类名: appManager
方法名 or 属性名: isRunningInStabilityTest|@ohos.app.ability.appManager.d.ts| -|新增||模块名: ohos.app.ability.appManager
类名: appManager
方法名 or 属性名: isRunningInStabilityTest|@ohos.app.ability.appManager.d.ts| -|新增||模块名: ohos.app.ability.appManager
类名: appManager
方法名 or 属性名: killProcessesByBundleName|@ohos.app.ability.appManager.d.ts| -|新增||模块名: ohos.app.ability.appManager
类名: appManager
方法名 or 属性名: killProcessesByBundleName|@ohos.app.ability.appManager.d.ts| -|新增||模块名: ohos.app.ability.appManager
类名: appManager
方法名 or 属性名: clearUpApplicationData|@ohos.app.ability.appManager.d.ts| -|新增||模块名: ohos.app.ability.appManager
类名: appManager
方法名 or 属性名: clearUpApplicationData|@ohos.app.ability.appManager.d.ts| -|新增||模块名: ohos.app.ability.appManager
类名: appManager
方法名 or 属性名: isRamConstrainedDevice|@ohos.app.ability.appManager.d.ts| -|新增||模块名: ohos.app.ability.appManager
类名: appManager
方法名 or 属性名: isRamConstrainedDevice|@ohos.app.ability.appManager.d.ts| -|新增||模块名: ohos.app.ability.appManager
类名: appManager
方法名 or 属性名: getAppMemorySize|@ohos.app.ability.appManager.d.ts| -|新增||模块名: ohos.app.ability.appManager
类名: appManager
方法名 or 属性名: getAppMemorySize|@ohos.app.ability.appManager.d.ts| -|新增||模块名: ohos.app.ability.appManager
类名: appManager
方法名 or 属性名: getProcessRunningInformation|@ohos.app.ability.appManager.d.ts| -|新增||模块名: ohos.app.ability.appManager
类名: appManager
方法名 or 属性名: getProcessRunningInformation|@ohos.app.ability.appManager.d.ts| -|新增||模块名: ohos.app.ability.appRecovery
类名: appReceovery|@ohos.app.ability.appRecovery.d.ts| -|新增||模块名: ohos.app.ability.appRecovery
类名: RestartFlag|@ohos.app.ability.appRecovery.d.ts| -|新增||模块名: ohos.app.ability.appRecovery
类名: RestartFlag
方法名 or 属性名: ALWAYS_RESTART|@ohos.app.ability.appRecovery.d.ts| -|新增||模块名: ohos.app.ability.appRecovery
类名: RestartFlag
方法名 or 属性名: CPP_CRASH_NO_RESTART|@ohos.app.ability.appRecovery.d.ts| -|新增||模块名: ohos.app.ability.appRecovery
类名: RestartFlag
方法名 or 属性名: JS_CRASH_NO_RESTART|@ohos.app.ability.appRecovery.d.ts| -|新增||模块名: ohos.app.ability.appRecovery
类名: RestartFlag
方法名 or 属性名: APP_FREEZE_NO_RESTART|@ohos.app.ability.appRecovery.d.ts| -|新增||模块名: ohos.app.ability.appRecovery
类名: RestartFlag
方法名 or 属性名: NO_RESTART|@ohos.app.ability.appRecovery.d.ts| -|新增||模块名: ohos.app.ability.appRecovery
类名: SaveOccasionFlag|@ohos.app.ability.appRecovery.d.ts| -|新增||模块名: ohos.app.ability.appRecovery
类名: SaveOccasionFlag
方法名 or 属性名: SAVE_WHEN_ERROR|@ohos.app.ability.appRecovery.d.ts| -|新增||模块名: ohos.app.ability.appRecovery
类名: SaveOccasionFlag
方法名 or 属性名: SAVE_WHEN_BACKGROUND|@ohos.app.ability.appRecovery.d.ts| -|新增||模块名: ohos.app.ability.appRecovery
类名: SaveModeFlag|@ohos.app.ability.appRecovery.d.ts| -|新增||模块名: ohos.app.ability.appRecovery
类名: SaveModeFlag
方法名 or 属性名: SAVE_WITH_FILE|@ohos.app.ability.appRecovery.d.ts| -|新增||模块名: ohos.app.ability.appRecovery
类名: SaveModeFlag
方法名 or 属性名: SAVE_WITH_SHARED_MEMORY|@ohos.app.ability.appRecovery.d.ts| -|新增||模块名: ohos.app.ability.appRecovery
类名: appReceovery
方法名 or 属性名: enableAppRecovery|@ohos.app.ability.appRecovery.d.ts| -|新增||模块名: ohos.app.ability.appRecovery
类名: appReceovery
方法名 or 属性名: restartApp|@ohos.app.ability.appRecovery.d.ts| -|新增||模块名: ohos.app.ability.appRecovery
类名: appReceovery
方法名 or 属性名: saveAppState|@ohos.app.ability.appRecovery.d.ts| -|新增||模块名: ohos.app.ability.common
类名: common|@ohos.app.ability.common.d.ts| -|新增||模块名: ohos.app.ability.common
类名: AreaMode|@ohos.app.ability.common.d.ts| -|新增||模块名: ohos.app.ability.common
类名: AreaMode
方法名 or 属性名: EL1|@ohos.app.ability.common.d.ts| -|新增||模块名: ohos.app.ability.common
类名: AreaMode
方法名 or 属性名: EL2|@ohos.app.ability.common.d.ts| -|新增||模块名: ohos.app.ability.Configuration
类名: Configuration|@ohos.app.ability.Configuration.d.ts| -|新增||模块名: ohos.app.ability.Configuration
类名: Configuration
方法名 or 属性名: language|@ohos.app.ability.Configuration.d.ts| -|新增||模块名: ohos.app.ability.Configuration
类名: Configuration
方法名 or 属性名: colorMode|@ohos.app.ability.Configuration.d.ts| -|新增||模块名: ohos.app.ability.Configuration
类名: Configuration
方法名 or 属性名: direction|@ohos.app.ability.Configuration.d.ts| -|新增||模块名: ohos.app.ability.Configuration
类名: Configuration
方法名 or 属性名: screenDensity|@ohos.app.ability.Configuration.d.ts| -|新增||模块名: ohos.app.ability.Configuration
类名: Configuration
方法名 or 属性名: displayId|@ohos.app.ability.Configuration.d.ts| -|新增||模块名: ohos.app.ability.Configuration
类名: Configuration
方法名 or 属性名: hasPointerDevice|@ohos.app.ability.Configuration.d.ts| -|新增||模块名: ohos.app.ability.ConfigurationConstant
类名: ConfigurationConstant|@ohos.app.ability.ConfigurationConstant.d.ts| -|新增||模块名: ohos.app.ability.ConfigurationConstant
类名: ColorMode|@ohos.app.ability.ConfigurationConstant.d.ts| -|新增||模块名: ohos.app.ability.ConfigurationConstant
类名: ColorMode
方法名 or 属性名: COLOR_MODE_NOT_SET|@ohos.app.ability.ConfigurationConstant.d.ts| -|新增||模块名: ohos.app.ability.ConfigurationConstant
类名: ColorMode
方法名 or 属性名: COLOR_MODE_DARK|@ohos.app.ability.ConfigurationConstant.d.ts| -|新增||模块名: ohos.app.ability.ConfigurationConstant
类名: ColorMode
方法名 or 属性名: COLOR_MODE_LIGHT|@ohos.app.ability.ConfigurationConstant.d.ts| -|新增||模块名: ohos.app.ability.ConfigurationConstant
类名: Direction|@ohos.app.ability.ConfigurationConstant.d.ts| -|新增||模块名: ohos.app.ability.ConfigurationConstant
类名: Direction
方法名 or 属性名: DIRECTION_NOT_SET|@ohos.app.ability.ConfigurationConstant.d.ts| -|新增||模块名: ohos.app.ability.ConfigurationConstant
类名: Direction
方法名 or 属性名: DIRECTION_VERTICAL|@ohos.app.ability.ConfigurationConstant.d.ts| -|新增||模块名: ohos.app.ability.ConfigurationConstant
类名: Direction
方法名 or 属性名: DIRECTION_HORIZONTAL|@ohos.app.ability.ConfigurationConstant.d.ts| -|新增||模块名: ohos.app.ability.ConfigurationConstant
类名: ScreenDensity|@ohos.app.ability.ConfigurationConstant.d.ts| -|新增||模块名: ohos.app.ability.ConfigurationConstant
类名: ScreenDensity
方法名 or 属性名: SCREEN_DENSITY_NOT_SET|@ohos.app.ability.ConfigurationConstant.d.ts| -|新增||模块名: ohos.app.ability.ConfigurationConstant
类名: ScreenDensity
方法名 or 属性名: SCREEN_DENSITY_SDPI|@ohos.app.ability.ConfigurationConstant.d.ts| -|新增||模块名: ohos.app.ability.ConfigurationConstant
类名: ScreenDensity
方法名 or 属性名: SCREEN_DENSITY_MDPI|@ohos.app.ability.ConfigurationConstant.d.ts| -|新增||模块名: ohos.app.ability.ConfigurationConstant
类名: ScreenDensity
方法名 or 属性名: SCREEN_DENSITY_LDPI|@ohos.app.ability.ConfigurationConstant.d.ts| -|新增||模块名: ohos.app.ability.ConfigurationConstant
类名: ScreenDensity
方法名 or 属性名: SCREEN_DENSITY_XLDPI|@ohos.app.ability.ConfigurationConstant.d.ts| -|新增||模块名: ohos.app.ability.ConfigurationConstant
类名: ScreenDensity
方法名 or 属性名: SCREEN_DENSITY_XXLDPI|@ohos.app.ability.ConfigurationConstant.d.ts| -|新增||模块名: ohos.app.ability.ConfigurationConstant
类名: ScreenDensity
方法名 or 属性名: SCREEN_DENSITY_XXXLDPI|@ohos.app.ability.ConfigurationConstant.d.ts| -|新增||模块名: ohos.app.ability.contextConstant
类名: contextConstant|@ohos.app.ability.contextConstant.d.ts| -|新增||模块名: ohos.app.ability.contextConstant
类名: AreaMode|@ohos.app.ability.contextConstant.d.ts| -|新增||模块名: ohos.app.ability.contextConstant
类名: AreaMode
方法名 or 属性名: EL1|@ohos.app.ability.contextConstant.d.ts| -|新增||模块名: ohos.app.ability.contextConstant
类名: AreaMode
方法名 or 属性名: EL2|@ohos.app.ability.contextConstant.d.ts| -|新增||模块名: ohos.app.ability.EnvironmentCallback
类名: EnvironmentCallback|@ohos.app.ability.EnvironmentCallback.d.ts| -|新增||模块名: ohos.app.ability.EnvironmentCallback
类名: EnvironmentCallback
方法名 or 属性名: onConfigurationUpdated|@ohos.app.ability.EnvironmentCallback.d.ts| -|新增||模块名: ohos.app.ability.errorManager
类名: errorManager|@ohos.app.ability.errorManager.d.ts| -|新增||模块名: ohos.app.ability.errorManager
类名: errorManager
方法名 or 属性名: on_error|@ohos.app.ability.errorManager.d.ts| -|新增||模块名: ohos.app.ability.errorManager
类名: errorManager
方法名 or 属性名: off_error|@ohos.app.ability.errorManager.d.ts| -|新增||模块名: ohos.app.ability.errorManager
类名: errorManager
方法名 or 属性名: off_error|@ohos.app.ability.errorManager.d.ts| -|新增||模块名: ohos.app.ability.ExtensionAbility
类名: ExtensionAbility|@ohos.app.ability.ExtensionAbility.d.ts| -|新增||模块名: ohos.app.ability.missionManager
类名: missionManager|@ohos.app.ability.missionManager.d.ts| -|新增||模块名: ohos.app.ability.missionManager
类名: missionManager
方法名 or 属性名: on_mission|@ohos.app.ability.missionManager.d.ts| -|新增||模块名: ohos.app.ability.missionManager
类名: missionManager
方法名 or 属性名: off_mission|@ohos.app.ability.missionManager.d.ts| -|新增||模块名: ohos.app.ability.missionManager
类名: missionManager
方法名 or 属性名: off_mission|@ohos.app.ability.missionManager.d.ts| -|新增||模块名: ohos.app.ability.missionManager
类名: missionManager
方法名 or 属性名: getMissionInfo|@ohos.app.ability.missionManager.d.ts| -|新增||模块名: ohos.app.ability.missionManager
类名: missionManager
方法名 or 属性名: getMissionInfo|@ohos.app.ability.missionManager.d.ts| -|新增||模块名: ohos.app.ability.missionManager
类名: missionManager
方法名 or 属性名: getMissionInfos|@ohos.app.ability.missionManager.d.ts| -|新增||模块名: ohos.app.ability.missionManager
类名: missionManager
方法名 or 属性名: getMissionInfos|@ohos.app.ability.missionManager.d.ts| -|新增||模块名: ohos.app.ability.missionManager
类名: missionManager
方法名 or 属性名: getMissionSnapShot|@ohos.app.ability.missionManager.d.ts| -|新增||模块名: ohos.app.ability.missionManager
类名: missionManager
方法名 or 属性名: getMissionSnapShot|@ohos.app.ability.missionManager.d.ts| -|新增||模块名: ohos.app.ability.missionManager
类名: missionManager
方法名 or 属性名: getLowResolutionMissionSnapShot|@ohos.app.ability.missionManager.d.ts| -|新增||模块名: ohos.app.ability.missionManager
类名: missionManager
方法名 or 属性名: getLowResolutionMissionSnapShot|@ohos.app.ability.missionManager.d.ts| -|新增||模块名: ohos.app.ability.missionManager
类名: missionManager
方法名 or 属性名: lockMission|@ohos.app.ability.missionManager.d.ts| -|新增||模块名: ohos.app.ability.missionManager
类名: missionManager
方法名 or 属性名: lockMission|@ohos.app.ability.missionManager.d.ts| -|新增||模块名: ohos.app.ability.missionManager
类名: missionManager
方法名 or 属性名: unlockMission|@ohos.app.ability.missionManager.d.ts| -|新增||模块名: ohos.app.ability.missionManager
类名: missionManager
方法名 or 属性名: unlockMission|@ohos.app.ability.missionManager.d.ts| -|新增||模块名: ohos.app.ability.missionManager
类名: missionManager
方法名 or 属性名: clearMission|@ohos.app.ability.missionManager.d.ts| -|新增||模块名: ohos.app.ability.missionManager
类名: missionManager
方法名 or 属性名: clearMission|@ohos.app.ability.missionManager.d.ts| -|新增||模块名: ohos.app.ability.missionManager
类名: missionManager
方法名 or 属性名: clearAllMissions|@ohos.app.ability.missionManager.d.ts| -|新增||模块名: ohos.app.ability.missionManager
类名: missionManager
方法名 or 属性名: clearAllMissions|@ohos.app.ability.missionManager.d.ts| -|新增||模块名: ohos.app.ability.missionManager
类名: missionManager
方法名 or 属性名: moveMissionToFront|@ohos.app.ability.missionManager.d.ts| -|新增||模块名: ohos.app.ability.missionManager
类名: missionManager
方法名 or 属性名: moveMissionToFront|@ohos.app.ability.missionManager.d.ts| -|新增||模块名: ohos.app.ability.missionManager
类名: missionManager
方法名 or 属性名: moveMissionToFront|@ohos.app.ability.missionManager.d.ts| -|新增||模块名: ohos.app.ability.quickFixManager
类名: quickFixManager|@ohos.app.ability.quickFixManager.d.ts| -|新增||模块名: ohos.app.ability.quickFixManager
类名: HapModuleQuickFixInfo|@ohos.app.ability.quickFixManager.d.ts| -|新增||模块名: ohos.app.ability.quickFixManager
类名: HapModuleQuickFixInfo
方法名 or 属性名: moduleName|@ohos.app.ability.quickFixManager.d.ts| -|新增||模块名: ohos.app.ability.quickFixManager
类名: HapModuleQuickFixInfo
方法名 or 属性名: originHapHash|@ohos.app.ability.quickFixManager.d.ts| -|新增||模块名: ohos.app.ability.quickFixManager
类名: HapModuleQuickFixInfo
方法名 or 属性名: quickFixFilePath|@ohos.app.ability.quickFixManager.d.ts| -|新增||模块名: ohos.app.ability.quickFixManager
类名: ApplicationQuickFixInfo|@ohos.app.ability.quickFixManager.d.ts| -|新增||模块名: ohos.app.ability.quickFixManager
类名: ApplicationQuickFixInfo
方法名 or 属性名: bundleName|@ohos.app.ability.quickFixManager.d.ts| -|新增||模块名: ohos.app.ability.quickFixManager
类名: ApplicationQuickFixInfo
方法名 or 属性名: bundleVersionCode|@ohos.app.ability.quickFixManager.d.ts| -|新增||模块名: ohos.app.ability.quickFixManager
类名: ApplicationQuickFixInfo
方法名 or 属性名: bundleVersionName|@ohos.app.ability.quickFixManager.d.ts| -|新增||模块名: ohos.app.ability.quickFixManager
类名: ApplicationQuickFixInfo
方法名 or 属性名: quickFixVersionCode|@ohos.app.ability.quickFixManager.d.ts| -|新增||模块名: ohos.app.ability.quickFixManager
类名: ApplicationQuickFixInfo
方法名 or 属性名: quickFixVersionName|@ohos.app.ability.quickFixManager.d.ts| -|新增||模块名: ohos.app.ability.quickFixManager
类名: ApplicationQuickFixInfo
方法名 or 属性名: hapModuleQuickFixInfo|@ohos.app.ability.quickFixManager.d.ts| -|新增||模块名: ohos.app.ability.quickFixManager
类名: quickFixManager
方法名 or 属性名: applyQuickFix|@ohos.app.ability.quickFixManager.d.ts| -|新增||模块名: ohos.app.ability.quickFixManager
类名: quickFixManager
方法名 or 属性名: applyQuickFix|@ohos.app.ability.quickFixManager.d.ts| -|新增||模块名: ohos.app.ability.quickFixManager
类名: quickFixManager
方法名 or 属性名: getApplicationQuickFixInfo|@ohos.app.ability.quickFixManager.d.ts| -|新增||模块名: ohos.app.ability.quickFixManager
类名: quickFixManager
方法名 or 属性名: getApplicationQuickFixInfo|@ohos.app.ability.quickFixManager.d.ts| -|新增||模块名: ohos.app.ability.ServiceExtensionAbility
类名: ServiceExtensionAbility|@ohos.app.ability.ServiceExtensionAbility.d.ts| -|新增||模块名: ohos.app.ability.ServiceExtensionAbility
类名: ServiceExtensionAbility
方法名 or 属性名: context|@ohos.app.ability.ServiceExtensionAbility.d.ts| -|新增||模块名: ohos.app.ability.ServiceExtensionAbility
类名: ServiceExtensionAbility
方法名 or 属性名: onCreate|@ohos.app.ability.ServiceExtensionAbility.d.ts| -|新增||模块名: ohos.app.ability.ServiceExtensionAbility
类名: ServiceExtensionAbility
方法名 or 属性名: onDestroy|@ohos.app.ability.ServiceExtensionAbility.d.ts| -|新增||模块名: ohos.app.ability.ServiceExtensionAbility
类名: ServiceExtensionAbility
方法名 or 属性名: onRequest|@ohos.app.ability.ServiceExtensionAbility.d.ts| -|新增||模块名: ohos.app.ability.ServiceExtensionAbility
类名: ServiceExtensionAbility
方法名 or 属性名: onConnect|@ohos.app.ability.ServiceExtensionAbility.d.ts| -|新增||模块名: ohos.app.ability.ServiceExtensionAbility
类名: ServiceExtensionAbility
方法名 or 属性名: onDisconnect|@ohos.app.ability.ServiceExtensionAbility.d.ts| -|新增||模块名: ohos.app.ability.ServiceExtensionAbility
类名: ServiceExtensionAbility
方法名 or 属性名: onReconnect|@ohos.app.ability.ServiceExtensionAbility.d.ts| -|新增||模块名: ohos.app.ability.ServiceExtensionAbility
类名: ServiceExtensionAbility
方法名 or 属性名: onConfigurationUpdate|@ohos.app.ability.ServiceExtensionAbility.d.ts| -|新增||模块名: ohos.app.ability.ServiceExtensionAbility
类名: ServiceExtensionAbility
方法名 or 属性名: onDump|@ohos.app.ability.ServiceExtensionAbility.d.ts| -|新增||模块名: ohos.app.ability.StartOptions
类名: StartOptions|@ohos.app.ability.StartOptions.d.ts| -|新增||模块名: ohos.app.ability.StartOptions
类名: StartOptions
方法名 or 属性名: windowMode|@ohos.app.ability.StartOptions.d.ts| -|新增||模块名: ohos.app.ability.StartOptions
类名: StartOptions
方法名 or 属性名: displayId|@ohos.app.ability.StartOptions.d.ts| -|新增||模块名: ohos.app.ability.UIAbility
类名: OnReleaseCallback|@ohos.app.ability.UIAbility.d.ts| -|新增||模块名: ohos.app.ability.UIAbility
类名: OnReleaseCallback
方法名 or 属性名: OnReleaseCallback|@ohos.app.ability.UIAbility.d.ts| -|新增||模块名: ohos.app.ability.UIAbility
类名: CalleeCallback|@ohos.app.ability.UIAbility.d.ts| -|新增||模块名: ohos.app.ability.UIAbility
类名: CalleeCallback
方法名 or 属性名: CalleeCallback|@ohos.app.ability.UIAbility.d.ts| -|新增||模块名: ohos.app.ability.UIAbility
类名: Caller|@ohos.app.ability.UIAbility.d.ts| -|新增||模块名: ohos.app.ability.UIAbility
类名: Caller
方法名 or 属性名: call|@ohos.app.ability.UIAbility.d.ts| -|新增||模块名: ohos.app.ability.UIAbility
类名: Caller
方法名 or 属性名: callWithResult|@ohos.app.ability.UIAbility.d.ts| -|新增||模块名: ohos.app.ability.UIAbility
类名: Caller
方法名 or 属性名: release|@ohos.app.ability.UIAbility.d.ts| -|新增||模块名: ohos.app.ability.UIAbility
类名: Caller
方法名 or 属性名: onRelease|@ohos.app.ability.UIAbility.d.ts| -|新增||模块名: ohos.app.ability.UIAbility
类名: Caller
方法名 or 属性名: on_release|@ohos.app.ability.UIAbility.d.ts| -|新增||模块名: ohos.app.ability.UIAbility
类名: Caller
方法名 or 属性名: off_release|@ohos.app.ability.UIAbility.d.ts| -|新增||模块名: ohos.app.ability.UIAbility
类名: Caller
方法名 or 属性名: off_release|@ohos.app.ability.UIAbility.d.ts| -|新增||模块名: ohos.app.ability.UIAbility
类名: Callee|@ohos.app.ability.UIAbility.d.ts| -|新增||模块名: ohos.app.ability.UIAbility
类名: Callee
方法名 or 属性名: on|@ohos.app.ability.UIAbility.d.ts| -|新增||模块名: ohos.app.ability.UIAbility
类名: Callee
方法名 or 属性名: off|@ohos.app.ability.UIAbility.d.ts| -|新增||模块名: ohos.app.ability.UIAbility
类名: UIAbility|@ohos.app.ability.UIAbility.d.ts| -|新增||模块名: ohos.app.ability.UIAbility
类名: UIAbility
方法名 or 属性名: context|@ohos.app.ability.UIAbility.d.ts| -|新增||模块名: ohos.app.ability.UIAbility
类名: UIAbility
方法名 or 属性名: launchWant|@ohos.app.ability.UIAbility.d.ts| -|新增||模块名: ohos.app.ability.UIAbility
类名: UIAbility
方法名 or 属性名: lastRequestWant|@ohos.app.ability.UIAbility.d.ts| -|新增||模块名: ohos.app.ability.UIAbility
类名: UIAbility
方法名 or 属性名: callee|@ohos.app.ability.UIAbility.d.ts| -|新增||模块名: ohos.app.ability.UIAbility
类名: UIAbility
方法名 or 属性名: onCreate|@ohos.app.ability.UIAbility.d.ts| -|新增||模块名: ohos.app.ability.UIAbility
类名: UIAbility
方法名 or 属性名: onWindowStageCreate|@ohos.app.ability.UIAbility.d.ts| -|新增||模块名: ohos.app.ability.UIAbility
类名: UIAbility
方法名 or 属性名: onWindowStageDestroy|@ohos.app.ability.UIAbility.d.ts| -|新增||模块名: ohos.app.ability.UIAbility
类名: UIAbility
方法名 or 属性名: onWindowStageRestore|@ohos.app.ability.UIAbility.d.ts| -|新增||模块名: ohos.app.ability.UIAbility
类名: UIAbility
方法名 or 属性名: onDestroy|@ohos.app.ability.UIAbility.d.ts| -|新增||模块名: ohos.app.ability.UIAbility
类名: UIAbility
方法名 or 属性名: onForeground|@ohos.app.ability.UIAbility.d.ts| -|新增||模块名: ohos.app.ability.UIAbility
类名: UIAbility
方法名 or 属性名: onBackground|@ohos.app.ability.UIAbility.d.ts| -|新增||模块名: ohos.app.ability.UIAbility
类名: UIAbility
方法名 or 属性名: onContinue|@ohos.app.ability.UIAbility.d.ts| -|新增||模块名: ohos.app.ability.UIAbility
类名: UIAbility
方法名 or 属性名: onNewWant|@ohos.app.ability.UIAbility.d.ts| -|新增||模块名: ohos.app.ability.UIAbility
类名: UIAbility
方法名 or 属性名: onDump|@ohos.app.ability.UIAbility.d.ts| -|新增||模块名: ohos.app.ability.Want
类名: Want|@ohos.app.ability.Want.d.ts| -|新增||模块名: ohos.app.ability.Want
类名: Want
方法名 or 属性名: deviceId|@ohos.app.ability.Want.d.ts| -|新增||模块名: ohos.app.ability.Want
类名: Want
方法名 or 属性名: bundleName|@ohos.app.ability.Want.d.ts| -|新增||模块名: ohos.app.ability.Want
类名: Want
方法名 or 属性名: abilityName|@ohos.app.ability.Want.d.ts| -|新增||模块名: ohos.app.ability.Want
类名: Want
方法名 or 属性名: uri|@ohos.app.ability.Want.d.ts| -|新增||模块名: ohos.app.ability.Want
类名: Want
方法名 or 属性名: type|@ohos.app.ability.Want.d.ts| -|新增||模块名: ohos.app.ability.Want
类名: Want
方法名 or 属性名: flags|@ohos.app.ability.Want.d.ts| -|新增||模块名: ohos.app.ability.Want
类名: Want
方法名 or 属性名: action|@ohos.app.ability.Want.d.ts| -|新增||模块名: ohos.app.ability.Want
类名: Want
方法名 or 属性名: parameters|@ohos.app.ability.Want.d.ts| -|新增||模块名: ohos.app.ability.Want
类名: Want
方法名 or 属性名: entities|@ohos.app.ability.Want.d.ts| -|新增||模块名: ohos.app.ability.Want
类名: Want
方法名 or 属性名: moduleName|@ohos.app.ability.Want.d.ts| -|新增||模块名: ohos.app.ability.wantAgent
类名: wantAgent|@ohos.app.ability.wantAgent.d.ts| -|新增||模块名: ohos.app.ability.wantAgent
类名: wantAgent
方法名 or 属性名: getBundleName|@ohos.app.ability.wantAgent.d.ts| -|新增||模块名: ohos.app.ability.wantAgent
类名: wantAgent
方法名 or 属性名: getBundleName|@ohos.app.ability.wantAgent.d.ts| -|新增||模块名: ohos.app.ability.wantAgent
类名: wantAgent
方法名 or 属性名: getUid|@ohos.app.ability.wantAgent.d.ts| -|新增||模块名: ohos.app.ability.wantAgent
类名: wantAgent
方法名 or 属性名: getUid|@ohos.app.ability.wantAgent.d.ts| -|新增||模块名: ohos.app.ability.wantAgent
类名: wantAgent
方法名 or 属性名: getWant|@ohos.app.ability.wantAgent.d.ts| -|新增||模块名: ohos.app.ability.wantAgent
类名: wantAgent
方法名 or 属性名: getWant|@ohos.app.ability.wantAgent.d.ts| -|新增||模块名: ohos.app.ability.wantAgent
类名: wantAgent
方法名 or 属性名: cancel|@ohos.app.ability.wantAgent.d.ts| -|新增||模块名: ohos.app.ability.wantAgent
类名: wantAgent
方法名 or 属性名: cancel|@ohos.app.ability.wantAgent.d.ts| -|新增||模块名: ohos.app.ability.wantAgent
类名: wantAgent
方法名 or 属性名: trigger|@ohos.app.ability.wantAgent.d.ts| -|新增||模块名: ohos.app.ability.wantAgent
类名: wantAgent
方法名 or 属性名: trigger|@ohos.app.ability.wantAgent.d.ts| -|新增||模块名: ohos.app.ability.wantAgent
类名: wantAgent
方法名 or 属性名: equal|@ohos.app.ability.wantAgent.d.ts| -|新增||模块名: ohos.app.ability.wantAgent
类名: wantAgent
方法名 or 属性名: equal|@ohos.app.ability.wantAgent.d.ts| -|新增||模块名: ohos.app.ability.wantAgent
类名: wantAgent
方法名 or 属性名: getWantAgent|@ohos.app.ability.wantAgent.d.ts| -|新增||模块名: ohos.app.ability.wantAgent
类名: wantAgent
方法名 or 属性名: getWantAgent|@ohos.app.ability.wantAgent.d.ts| -|新增||模块名: ohos.app.ability.wantAgent
类名: wantAgent
方法名 or 属性名: getOperationType|@ohos.app.ability.wantAgent.d.ts| -|新增||模块名: ohos.app.ability.wantAgent
类名: wantAgent
方法名 or 属性名: getOperationType|@ohos.app.ability.wantAgent.d.ts| -|新增||模块名: ohos.app.ability.wantAgent
类名: WantAgentFlags|@ohos.app.ability.wantAgent.d.ts| -|新增||模块名: ohos.app.ability.wantAgent
类名: WantAgentFlags
方法名 or 属性名: ONE_TIME_FLAG|@ohos.app.ability.wantAgent.d.ts| -|新增||模块名: ohos.app.ability.wantAgent
类名: WantAgentFlags
方法名 or 属性名: NO_BUILD_FLAG|@ohos.app.ability.wantAgent.d.ts| -|新增||模块名: ohos.app.ability.wantAgent
类名: WantAgentFlags
方法名 or 属性名: CANCEL_PRESENT_FLAG|@ohos.app.ability.wantAgent.d.ts| -|新增||模块名: ohos.app.ability.wantAgent
类名: WantAgentFlags
方法名 or 属性名: UPDATE_PRESENT_FLAG|@ohos.app.ability.wantAgent.d.ts| -|新增||模块名: ohos.app.ability.wantAgent
类名: WantAgentFlags
方法名 or 属性名: CONSTANT_FLAG|@ohos.app.ability.wantAgent.d.ts| -|新增||模块名: ohos.app.ability.wantAgent
类名: WantAgentFlags
方法名 or 属性名: REPLACE_ELEMENT|@ohos.app.ability.wantAgent.d.ts| -|新增||模块名: ohos.app.ability.wantAgent
类名: WantAgentFlags
方法名 or 属性名: REPLACE_ACTION|@ohos.app.ability.wantAgent.d.ts| -|新增||模块名: ohos.app.ability.wantAgent
类名: WantAgentFlags
方法名 or 属性名: REPLACE_URI|@ohos.app.ability.wantAgent.d.ts| -|新增||模块名: ohos.app.ability.wantAgent
类名: WantAgentFlags
方法名 or 属性名: REPLACE_ENTITIES|@ohos.app.ability.wantAgent.d.ts| -|新增||模块名: ohos.app.ability.wantAgent
类名: WantAgentFlags
方法名 or 属性名: REPLACE_BUNDLE|@ohos.app.ability.wantAgent.d.ts| -|新增||模块名: ohos.app.ability.wantAgent
类名: OperationType|@ohos.app.ability.wantAgent.d.ts| -|新增||模块名: ohos.app.ability.wantAgent
类名: OperationType
方法名 or 属性名: UNKNOWN_TYPE|@ohos.app.ability.wantAgent.d.ts| -|新增||模块名: ohos.app.ability.wantAgent
类名: OperationType
方法名 or 属性名: START_ABILITY|@ohos.app.ability.wantAgent.d.ts| -|新增||模块名: ohos.app.ability.wantAgent
类名: OperationType
方法名 or 属性名: START_ABILITIES|@ohos.app.ability.wantAgent.d.ts| -|新增||模块名: ohos.app.ability.wantAgent
类名: OperationType
方法名 or 属性名: START_SERVICE|@ohos.app.ability.wantAgent.d.ts| -|新增||模块名: ohos.app.ability.wantAgent
类名: OperationType
方法名 or 属性名: SEND_COMMON_EVENT|@ohos.app.ability.wantAgent.d.ts| -|新增||模块名: ohos.app.ability.wantAgent
类名: CompleteData|@ohos.app.ability.wantAgent.d.ts| -|新增||模块名: ohos.app.ability.wantAgent
类名: CompleteData
方法名 or 属性名: info|@ohos.app.ability.wantAgent.d.ts| -|新增||模块名: ohos.app.ability.wantAgent
类名: CompleteData
方法名 or 属性名: want|@ohos.app.ability.wantAgent.d.ts| -|新增||模块名: ohos.app.ability.wantAgent
类名: CompleteData
方法名 or 属性名: finalCode|@ohos.app.ability.wantAgent.d.ts| -|新增||模块名: ohos.app.ability.wantAgent
类名: CompleteData
方法名 or 属性名: finalData|@ohos.app.ability.wantAgent.d.ts| -|新增||模块名: ohos.app.ability.wantAgent
类名: CompleteData
方法名 or 属性名: extraInfo|@ohos.app.ability.wantAgent.d.ts| -|新增||模块名: ohos.app.ability.wantConstant
类名: wantConstant|@ohos.app.ability.wantConstant.d.ts| -|新增||模块名: ohos.app.ability.wantConstant
类名: Action|@ohos.app.ability.wantConstant.d.ts| -|新增||模块名: ohos.app.ability.wantConstant
类名: Action
方法名 or 属性名: ACTION_HOME|@ohos.app.ability.wantConstant.d.ts| -|新增||模块名: ohos.app.ability.wantConstant
类名: Action
方法名 or 属性名: ACTION_DIAL|@ohos.app.ability.wantConstant.d.ts| -|新增||模块名: ohos.app.ability.wantConstant
类名: Action
方法名 or 属性名: ACTION_SEARCH|@ohos.app.ability.wantConstant.d.ts| -|新增||模块名: ohos.app.ability.wantConstant
类名: Action
方法名 or 属性名: ACTION_WIRELESS_SETTINGS|@ohos.app.ability.wantConstant.d.ts| -|新增||模块名: ohos.app.ability.wantConstant
类名: Action
方法名 or 属性名: ACTION_MANAGE_APPLICATIONS_SETTINGS|@ohos.app.ability.wantConstant.d.ts| -|新增||模块名: ohos.app.ability.wantConstant
类名: Action
方法名 or 属性名: ACTION_APPLICATION_DETAILS_SETTINGS|@ohos.app.ability.wantConstant.d.ts| -|新增||模块名: ohos.app.ability.wantConstant
类名: Action
方法名 or 属性名: ACTION_SET_ALARM|@ohos.app.ability.wantConstant.d.ts| -|新增||模块名: ohos.app.ability.wantConstant
类名: Action
方法名 or 属性名: ACTION_SHOW_ALARMS|@ohos.app.ability.wantConstant.d.ts| -|新增||模块名: ohos.app.ability.wantConstant
类名: Action
方法名 or 属性名: ACTION_SNOOZE_ALARM|@ohos.app.ability.wantConstant.d.ts| -|新增||模块名: ohos.app.ability.wantConstant
类名: Action
方法名 or 属性名: ACTION_DISMISS_ALARM|@ohos.app.ability.wantConstant.d.ts| -|新增||模块名: ohos.app.ability.wantConstant
类名: Action
方法名 or 属性名: ACTION_DISMISS_TIMER|@ohos.app.ability.wantConstant.d.ts| -|新增||模块名: ohos.app.ability.wantConstant
类名: Action
方法名 or 属性名: ACTION_SEND_SMS|@ohos.app.ability.wantConstant.d.ts| -|新增||模块名: ohos.app.ability.wantConstant
类名: Action
方法名 or 属性名: ACTION_CHOOSE|@ohos.app.ability.wantConstant.d.ts| -|新增||模块名: ohos.app.ability.wantConstant
类名: Action
方法名 or 属性名: ACTION_IMAGE_CAPTURE|@ohos.app.ability.wantConstant.d.ts| -|新增||模块名: ohos.app.ability.wantConstant
类名: Action
方法名 or 属性名: ACTION_VIDEO_CAPTURE|@ohos.app.ability.wantConstant.d.ts| -|新增||模块名: ohos.app.ability.wantConstant
类名: Action
方法名 or 属性名: ACTION_SELECT|@ohos.app.ability.wantConstant.d.ts| -|新增||模块名: ohos.app.ability.wantConstant
类名: Action
方法名 or 属性名: ACTION_SEND_DATA|@ohos.app.ability.wantConstant.d.ts| -|新增||模块名: ohos.app.ability.wantConstant
类名: Action
方法名 or 属性名: ACTION_SEND_MULTIPLE_DATA|@ohos.app.ability.wantConstant.d.ts| -|新增||模块名: ohos.app.ability.wantConstant
类名: Action
方法名 or 属性名: ACTION_SCAN_MEDIA_FILE|@ohos.app.ability.wantConstant.d.ts| -|新增||模块名: ohos.app.ability.wantConstant
类名: Action
方法名 or 属性名: ACTION_VIEW_DATA|@ohos.app.ability.wantConstant.d.ts| -|新增||模块名: ohos.app.ability.wantConstant
类名: Action
方法名 or 属性名: ACTION_EDIT_DATA|@ohos.app.ability.wantConstant.d.ts| -|新增||模块名: ohos.app.ability.wantConstant
类名: Action
方法名 or 属性名: INTENT_PARAMS_INTENT|@ohos.app.ability.wantConstant.d.ts| -|新增||模块名: ohos.app.ability.wantConstant
类名: Action
方法名 or 属性名: INTENT_PARAMS_TITLE|@ohos.app.ability.wantConstant.d.ts| -|新增||模块名: ohos.app.ability.wantConstant
类名: Action
方法名 or 属性名: ACTION_FILE_SELECT|@ohos.app.ability.wantConstant.d.ts| -|新增||模块名: ohos.app.ability.wantConstant
类名: Action
方法名 or 属性名: PARAMS_STREAM|@ohos.app.ability.wantConstant.d.ts| -|新增||模块名: ohos.app.ability.wantConstant
类名: Action
方法名 or 属性名: ACTION_APP_ACCOUNT_AUTH|@ohos.app.ability.wantConstant.d.ts| -|新增||模块名: ohos.app.ability.wantConstant
类名: Action
方法名 or 属性名: ACTION_MARKET_DOWNLOAD|@ohos.app.ability.wantConstant.d.ts| -|新增||模块名: ohos.app.ability.wantConstant
类名: Action
方法名 or 属性名: ACTION_MARKET_CROWDTEST|@ohos.app.ability.wantConstant.d.ts| -|新增||模块名: ohos.app.ability.wantConstant
类名: Action
方法名 or 属性名: DLP_PARAMS_SANDBOX|@ohos.app.ability.wantConstant.d.ts| -|新增||模块名: ohos.app.ability.wantConstant
类名: Action
方法名 or 属性名: DLP_PARAMS_BUNDLE_NAME|@ohos.app.ability.wantConstant.d.ts| -|新增||模块名: ohos.app.ability.wantConstant
类名: Action
方法名 or 属性名: DLP_PARAMS_MODULE_NAME|@ohos.app.ability.wantConstant.d.ts| -|新增||模块名: ohos.app.ability.wantConstant
类名: Action
方法名 or 属性名: DLP_PARAMS_ABILITY_NAME|@ohos.app.ability.wantConstant.d.ts| -|新增||模块名: ohos.app.ability.wantConstant
类名: Action
方法名 or 属性名: DLP_PARAMS_INDEX|@ohos.app.ability.wantConstant.d.ts| -|新增||模块名: ohos.app.ability.wantConstant
类名: Entity|@ohos.app.ability.wantConstant.d.ts| -|新增||模块名: ohos.app.ability.wantConstant
类名: Entity
方法名 or 属性名: ENTITY_DEFAULT|@ohos.app.ability.wantConstant.d.ts| -|新增||模块名: ohos.app.ability.wantConstant
类名: Entity
方法名 or 属性名: ENTITY_HOME|@ohos.app.ability.wantConstant.d.ts| -|新增||模块名: ohos.app.ability.wantConstant
类名: Entity
方法名 or 属性名: ENTITY_VOICE|@ohos.app.ability.wantConstant.d.ts| -|新增||模块名: ohos.app.ability.wantConstant
类名: Entity
方法名 or 属性名: ENTITY_BROWSABLE|@ohos.app.ability.wantConstant.d.ts| -|新增||模块名: ohos.app.ability.wantConstant
类名: Entity
方法名 or 属性名: ENTITY_VIDEO|@ohos.app.ability.wantConstant.d.ts| -|新增||模块名: ohos.app.ability.wantConstant
类名: Flags|@ohos.app.ability.wantConstant.d.ts| -|新增||模块名: ohos.app.ability.wantConstant
类名: Flags
方法名 or 属性名: FLAG_AUTH_READ_URI_PERMISSION|@ohos.app.ability.wantConstant.d.ts| -|新增||模块名: ohos.app.ability.wantConstant
类名: Flags
方法名 or 属性名: FLAG_AUTH_WRITE_URI_PERMISSION|@ohos.app.ability.wantConstant.d.ts| -|新增||模块名: ohos.app.ability.wantConstant
类名: Flags
方法名 or 属性名: FLAG_ABILITY_FORWARD_RESULT|@ohos.app.ability.wantConstant.d.ts| -|新增||模块名: ohos.app.ability.wantConstant
类名: Flags
方法名 or 属性名: FLAG_ABILITY_CONTINUATION|@ohos.app.ability.wantConstant.d.ts| -|新增||模块名: ohos.app.ability.wantConstant
类名: Flags
方法名 or 属性名: FLAG_NOT_OHOS_COMPONENT|@ohos.app.ability.wantConstant.d.ts| -|新增||模块名: ohos.app.ability.wantConstant
类名: Flags
方法名 or 属性名: FLAG_ABILITY_FORM_ENABLED|@ohos.app.ability.wantConstant.d.ts| -|新增||模块名: ohos.app.ability.wantConstant
类名: Flags
方法名 or 属性名: FLAG_AUTH_PERSISTABLE_URI_PERMISSION|@ohos.app.ability.wantConstant.d.ts| -|新增||模块名: ohos.app.ability.wantConstant
类名: Flags
方法名 or 属性名: FLAG_AUTH_PREFIX_URI_PERMISSION|@ohos.app.ability.wantConstant.d.ts| -|新增||模块名: ohos.app.ability.wantConstant
类名: Flags
方法名 or 属性名: FLAG_ABILITYSLICE_MULTI_DEVICE|@ohos.app.ability.wantConstant.d.ts| -|新增||模块名: ohos.app.ability.wantConstant
类名: Flags
方法名 or 属性名: FLAG_START_FOREGROUND_ABILITY|@ohos.app.ability.wantConstant.d.ts| -|新增||模块名: ohos.app.ability.wantConstant
类名: Flags
方法名 or 属性名: FLAG_ABILITY_CONTINUATION_REVERSIBLE|@ohos.app.ability.wantConstant.d.ts| -|新增||模块名: ohos.app.ability.wantConstant
类名: Flags
方法名 or 属性名: FLAG_INSTALL_ON_DEMAND|@ohos.app.ability.wantConstant.d.ts| -|新增||模块名: ohos.app.ability.wantConstant
类名: Flags
方法名 or 属性名: FLAG_INSTALL_WITH_BACKGROUND_MODE|@ohos.app.ability.wantConstant.d.ts| -|新增||模块名: ohos.app.ability.wantConstant
类名: Flags
方法名 or 属性名: FLAG_ABILITY_CLEAR_MISSION|@ohos.app.ability.wantConstant.d.ts| -|新增||模块名: ohos.app.ability.wantConstant
类名: Flags
方法名 or 属性名: FLAG_ABILITY_NEW_MISSION|@ohos.app.ability.wantConstant.d.ts| -|新增||模块名: ohos.app.ability.wantConstant
类名: Flags
方法名 or 属性名: FLAG_ABILITY_MISSION_TOP|@ohos.app.ability.wantConstant.d.ts| -|新增||模块名: ohos.app.form.formBindingData
类名: formBindingData|@ohos.app.form.formBindingData.d.ts| -|新增||模块名: ohos.app.form.formBindingData
类名: formBindingData
方法名 or 属性名: createFormBindingData|@ohos.app.form.formBindingData.d.ts| -|新增||模块名: ohos.app.form.formBindingData
类名: FormBindingData|@ohos.app.form.formBindingData.d.ts| -|新增||模块名: ohos.app.form.formBindingData
类名: FormBindingData
方法名 or 属性名: data|@ohos.app.form.formBindingData.d.ts| -|新增||模块名: ohos.app.form.FormExtensionAbility
类名: FormExtensionAbility|@ohos.app.form.FormExtensionAbility.d.ts| -|新增||模块名: ohos.app.form.FormExtensionAbility
类名: FormExtensionAbility
方法名 or 属性名: context|@ohos.app.form.FormExtensionAbility.d.ts| -|新增||模块名: ohos.app.form.FormExtensionAbility
类名: FormExtensionAbility
方法名 or 属性名: onAddForm|@ohos.app.form.FormExtensionAbility.d.ts| -|新增||模块名: ohos.app.form.FormExtensionAbility
类名: FormExtensionAbility
方法名 or 属性名: onCastToNormalForm|@ohos.app.form.FormExtensionAbility.d.ts| -|新增||模块名: ohos.app.form.FormExtensionAbility
类名: FormExtensionAbility
方法名 or 属性名: onUpdateForm|@ohos.app.form.FormExtensionAbility.d.ts| -|新增||模块名: ohos.app.form.FormExtensionAbility
类名: FormExtensionAbility
方法名 or 属性名: onChangeFormVisibility|@ohos.app.form.FormExtensionAbility.d.ts| -|新增||模块名: ohos.app.form.FormExtensionAbility
类名: FormExtensionAbility
方法名 or 属性名: onFormEvent|@ohos.app.form.FormExtensionAbility.d.ts| -|新增||模块名: ohos.app.form.FormExtensionAbility
类名: FormExtensionAbility
方法名 or 属性名: onRemoveForm|@ohos.app.form.FormExtensionAbility.d.ts| -|新增||模块名: ohos.app.form.FormExtensionAbility
类名: FormExtensionAbility
方法名 or 属性名: onConfigurationUpdate|@ohos.app.form.FormExtensionAbility.d.ts| -|新增||模块名: ohos.app.form.FormExtensionAbility
类名: FormExtensionAbility
方法名 or 属性名: onAcquireFormState|@ohos.app.form.FormExtensionAbility.d.ts| -|新增||模块名: ohos.app.form.FormExtensionAbility
类名: FormExtensionAbility
方法名 or 属性名: onShareForm|@ohos.app.form.FormExtensionAbility.d.ts| -|新增||模块名: ohos.app.form.formHost
类名: formHost|@ohos.app.form.formHost.d.ts| -|新增||模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: deleteForm|@ohos.app.form.formHost.d.ts| -|新增||模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: deleteForm|@ohos.app.form.formHost.d.ts| -|新增||模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: releaseForm|@ohos.app.form.formHost.d.ts| -|新增||模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: releaseForm|@ohos.app.form.formHost.d.ts| -|新增||模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: releaseForm|@ohos.app.form.formHost.d.ts| -|新增||模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: requestForm|@ohos.app.form.formHost.d.ts| -|新增||模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: requestForm|@ohos.app.form.formHost.d.ts| -|新增||模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: castToNormalForm|@ohos.app.form.formHost.d.ts| -|新增||模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: castToNormalForm|@ohos.app.form.formHost.d.ts| -|新增||模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: notifyVisibleForms|@ohos.app.form.formHost.d.ts| -|新增||模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: notifyVisibleForms|@ohos.app.form.formHost.d.ts| -|新增||模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: notifyInvisibleForms|@ohos.app.form.formHost.d.ts| -|新增||模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: notifyInvisibleForms|@ohos.app.form.formHost.d.ts| -|新增||模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: enableFormsUpdate|@ohos.app.form.formHost.d.ts| -|新增||模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: enableFormsUpdate|@ohos.app.form.formHost.d.ts| -|新增||模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: disableFormsUpdate|@ohos.app.form.formHost.d.ts| -|新增||模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: disableFormsUpdate|@ohos.app.form.formHost.d.ts| -|新增||模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: isSystemReady|@ohos.app.form.formHost.d.ts| -|新增||模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: isSystemReady|@ohos.app.form.formHost.d.ts| -|新增||模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: getAllFormsInfo|@ohos.app.form.formHost.d.ts| -|新增||模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: getAllFormsInfo|@ohos.app.form.formHost.d.ts| -|新增||模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: getFormsInfo|@ohos.app.form.formHost.d.ts| -|新增||模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: getFormsInfo|@ohos.app.form.formHost.d.ts| -|新增||模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: getFormsInfo|@ohos.app.form.formHost.d.ts| -|新增||模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: deleteInvalidForms|@ohos.app.form.formHost.d.ts| -|新增||模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: deleteInvalidForms|@ohos.app.form.formHost.d.ts| -|新增||模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: acquireFormState|@ohos.app.form.formHost.d.ts| -|新增||模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: acquireFormState|@ohos.app.form.formHost.d.ts| -|新增||模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: on_formUninstall|@ohos.app.form.formHost.d.ts| -|新增||模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: off_formUninstall|@ohos.app.form.formHost.d.ts| -|新增||模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: notifyFormsVisible|@ohos.app.form.formHost.d.ts| -|新增||模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: notifyFormsVisible|@ohos.app.form.formHost.d.ts| -|新增||模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: notifyFormsEnableUpdate|@ohos.app.form.formHost.d.ts| -|新增||模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: notifyFormsEnableUpdate|@ohos.app.form.formHost.d.ts| -|新增||模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: shareForm|@ohos.app.form.formHost.d.ts| -|新增||模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: shareForm|@ohos.app.form.formHost.d.ts| -|新增||模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: notifyFormsPrivacyProtected|@ohos.app.form.formHost.d.ts| -|新增||模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: notifyFormsPrivacyProtected|@ohos.app.form.formHost.d.ts| -|新增||模块名: ohos.app.form.formInfo
类名: formInfo|@ohos.app.form.formInfo.d.ts| -|新增||模块名: ohos.app.form.formInfo
类名: FormInfo|@ohos.app.form.formInfo.d.ts| -|新增||模块名: ohos.app.form.formInfo
类名: FormInfo
方法名 or 属性名: bundleName|@ohos.app.form.formInfo.d.ts| -|新增||模块名: ohos.app.form.formInfo
类名: FormInfo
方法名 or 属性名: moduleName|@ohos.app.form.formInfo.d.ts| -|新增||模块名: ohos.app.form.formInfo
类名: FormInfo
方法名 or 属性名: abilityName|@ohos.app.form.formInfo.d.ts| -|新增||模块名: ohos.app.form.formInfo
类名: FormInfo
方法名 or 属性名: name|@ohos.app.form.formInfo.d.ts| -|新增||模块名: ohos.app.form.formInfo
类名: FormInfo
方法名 or 属性名: description|@ohos.app.form.formInfo.d.ts| -|新增||模块名: ohos.app.form.formInfo
类名: FormInfo
方法名 or 属性名: type|@ohos.app.form.formInfo.d.ts| -|新增||模块名: ohos.app.form.formInfo
类名: FormInfo
方法名 or 属性名: jsComponentName|@ohos.app.form.formInfo.d.ts| -|新增||模块名: ohos.app.form.formInfo
类名: FormInfo
方法名 or 属性名: colorMode|@ohos.app.form.formInfo.d.ts| -|新增||模块名: ohos.app.form.formInfo
类名: FormInfo
方法名 or 属性名: isDefault|@ohos.app.form.formInfo.d.ts| -|新增||模块名: ohos.app.form.formInfo
类名: FormInfo
方法名 or 属性名: updateEnabled|@ohos.app.form.formInfo.d.ts| -|新增||模块名: ohos.app.form.formInfo
类名: FormInfo
方法名 or 属性名: formVisibleNotify|@ohos.app.form.formInfo.d.ts| -|新增||模块名: ohos.app.form.formInfo
类名: FormInfo
方法名 or 属性名: relatedBundleName|@ohos.app.form.formInfo.d.ts| -|新增||模块名: ohos.app.form.formInfo
类名: FormInfo
方法名 or 属性名: scheduledUpdateTime|@ohos.app.form.formInfo.d.ts| -|新增||模块名: ohos.app.form.formInfo
类名: FormInfo
方法名 or 属性名: formConfigAbility|@ohos.app.form.formInfo.d.ts| -|新增||模块名: ohos.app.form.formInfo
类名: FormInfo
方法名 or 属性名: updateDuration|@ohos.app.form.formInfo.d.ts| -|新增||模块名: ohos.app.form.formInfo
类名: FormInfo
方法名 or 属性名: defaultDimension|@ohos.app.form.formInfo.d.ts| -|新增||模块名: ohos.app.form.formInfo
类名: FormInfo
方法名 or 属性名: supportDimensions|@ohos.app.form.formInfo.d.ts| -|新增||模块名: ohos.app.form.formInfo
类名: FormInfo
方法名 or 属性名: customizeData|@ohos.app.form.formInfo.d.ts| -|新增||模块名: ohos.app.form.formInfo
类名: FormType|@ohos.app.form.formInfo.d.ts| -|新增||模块名: ohos.app.form.formInfo
类名: FormType
方法名 or 属性名: JS|@ohos.app.form.formInfo.d.ts| -|新增||模块名: ohos.app.form.formInfo
类名: FormType
方法名 or 属性名: eTS|@ohos.app.form.formInfo.d.ts| -|新增||模块名: ohos.app.form.formInfo
类名: ColorMode|@ohos.app.form.formInfo.d.ts| -|新增||模块名: ohos.app.form.formInfo
类名: ColorMode
方法名 or 属性名: MODE_AUTO|@ohos.app.form.formInfo.d.ts| -|新增||模块名: ohos.app.form.formInfo
类名: ColorMode
方法名 or 属性名: MODE_DARK|@ohos.app.form.formInfo.d.ts| -|新增||模块名: ohos.app.form.formInfo
类名: ColorMode
方法名 or 属性名: MODE_LIGHT|@ohos.app.form.formInfo.d.ts| -|新增||模块名: ohos.app.form.formInfo
类名: FormStateInfo|@ohos.app.form.formInfo.d.ts| -|新增||模块名: ohos.app.form.formInfo
类名: FormStateInfo
方法名 or 属性名: formState|@ohos.app.form.formInfo.d.ts| -|新增||模块名: ohos.app.form.formInfo
类名: FormStateInfo
方法名 or 属性名: want|@ohos.app.form.formInfo.d.ts| -|新增||模块名: ohos.app.form.formInfo
类名: FormState|@ohos.app.form.formInfo.d.ts| -|新增||模块名: ohos.app.form.formInfo
类名: FormState
方法名 or 属性名: UNKNOWN|@ohos.app.form.formInfo.d.ts| -|新增||模块名: ohos.app.form.formInfo
类名: FormState
方法名 or 属性名: DEFAULT|@ohos.app.form.formInfo.d.ts| -|新增||模块名: ohos.app.form.formInfo
类名: FormState
方法名 or 属性名: READY|@ohos.app.form.formInfo.d.ts| -|新增||模块名: ohos.app.form.formInfo
类名: FormParam|@ohos.app.form.formInfo.d.ts| -|新增||模块名: ohos.app.form.formInfo
类名: FormParam
方法名 or 属性名: IDENTITY_KEY|@ohos.app.form.formInfo.d.ts| -|新增||模块名: ohos.app.form.formInfo
类名: FormParam
方法名 or 属性名: DIMENSION_KEY|@ohos.app.form.formInfo.d.ts| -|新增||模块名: ohos.app.form.formInfo
类名: FormParam
方法名 or 属性名: NAME_KEY|@ohos.app.form.formInfo.d.ts| -|新增||模块名: ohos.app.form.formInfo
类名: FormParam
方法名 or 属性名: MODULE_NAME_KEY|@ohos.app.form.formInfo.d.ts| -|新增||模块名: ohos.app.form.formInfo
类名: FormParam
方法名 or 属性名: WIDTH_KEY|@ohos.app.form.formInfo.d.ts| -|新增||模块名: ohos.app.form.formInfo
类名: FormParam
方法名 or 属性名: HEIGHT_KEY|@ohos.app.form.formInfo.d.ts| -|新增||模块名: ohos.app.form.formInfo
类名: FormParam
方法名 or 属性名: TEMPORARY_KEY|@ohos.app.form.formInfo.d.ts| -|新增||模块名: ohos.app.form.formInfo
类名: FormParam
方法名 or 属性名: BUNDLE_NAME_KEY|@ohos.app.form.formInfo.d.ts| -|新增||模块名: ohos.app.form.formInfo
类名: FormParam
方法名 or 属性名: ABILITY_NAME_KEY|@ohos.app.form.formInfo.d.ts| -|新增||模块名: ohos.app.form.formInfo
类名: FormParam
方法名 or 属性名: DEVICE_ID_KEY|@ohos.app.form.formInfo.d.ts| -|新增||模块名: ohos.app.form.formInfo
类名: FormInfoFilter|@ohos.app.form.formInfo.d.ts| -|新增||模块名: ohos.app.form.formInfo
类名: FormInfoFilter
方法名 or 属性名: moduleName|@ohos.app.form.formInfo.d.ts| -|新增||模块名: ohos.app.form.formInfo
类名: FormDimension|@ohos.app.form.formInfo.d.ts| -|新增||模块名: ohos.app.form.formInfo
类名: FormDimension
方法名 or 属性名: Dimension_1_2|@ohos.app.form.formInfo.d.ts| -|新增||模块名: ohos.app.form.formInfo
类名: FormDimension
方法名 or 属性名: Dimension_2_2|@ohos.app.form.formInfo.d.ts| -|新增||模块名: ohos.app.form.formInfo
类名: FormDimension
方法名 or 属性名: Dimension_2_4|@ohos.app.form.formInfo.d.ts| -|新增||模块名: ohos.app.form.formInfo
类名: FormDimension
方法名 or 属性名: Dimension_4_4|@ohos.app.form.formInfo.d.ts| -|新增||模块名: ohos.app.form.formInfo
类名: FormDimension
方法名 or 属性名: Dimension_2_1|@ohos.app.form.formInfo.d.ts| -|新增||模块名: ohos.app.form.formInfo
类名: VisibilityType|@ohos.app.form.formInfo.d.ts| -|新增||模块名: ohos.app.form.formInfo
类名: VisibilityType
方法名 or 属性名: FORM_VISIBLE|@ohos.app.form.formInfo.d.ts| -|新增||模块名: ohos.app.form.formInfo
类名: VisibilityType
方法名 or 属性名: FORM_INVISIBLE|@ohos.app.form.formInfo.d.ts| -|新增||模块名: ohos.app.form.formProvider
类名: formProvider|@ohos.app.form.formProvider.d.ts| -|新增||模块名: ohos.app.form.formProvider
类名: formProvider
方法名 or 属性名: setFormNextRefreshTime|@ohos.app.form.formProvider.d.ts| -|新增||模块名: ohos.app.form.formProvider
类名: formProvider
方法名 or 属性名: setFormNextRefreshTime|@ohos.app.form.formProvider.d.ts| -|新增||模块名: ohos.app.form.formProvider
类名: formProvider
方法名 or 属性名: updateForm|@ohos.app.form.formProvider.d.ts| -|新增||模块名: ohos.app.form.formProvider
类名: formProvider
方法名 or 属性名: updateForm|@ohos.app.form.formProvider.d.ts| -|新增||模块名: ohos.app.form.formProvider
类名: formProvider
方法名 or 属性名: getFormsInfo|@ohos.app.form.formProvider.d.ts| -|新增||模块名: ohos.app.form.formProvider
类名: formProvider
方法名 or 属性名: getFormsInfo|@ohos.app.form.formProvider.d.ts| -|新增||模块名: ohos.app.form.formProvider
类名: formProvider
方法名 or 属性名: getFormsInfo|@ohos.app.form.formProvider.d.ts| -|新增||模块名: ohos.app.form.formProvider
类名: formProvider
方法名 or 属性名: requestPublishForm|@ohos.app.form.formProvider.d.ts| -|新增||模块名: ohos.app.form.formProvider
类名: formProvider
方法名 or 属性名: requestPublishForm|@ohos.app.form.formProvider.d.ts| -|新增||模块名: ohos.app.form.formProvider
类名: formProvider
方法名 or 属性名: requestPublishForm|@ohos.app.form.formProvider.d.ts| -|新增||模块名: ohos.app.form.formProvider
类名: formProvider
方法名 or 属性名: isRequestPublishFormSupported|@ohos.app.form.formProvider.d.ts| -|新增||模块名: ohos.app.form.formProvider
类名: formProvider
方法名 or 属性名: isRequestPublishFormSupported|@ohos.app.form.formProvider.d.ts| -|新增||模块名:ohos.application.Ability
类名:Ability
方法名 or 属性名:onSaveState|@ohos.application.Ability.d.ts| -|新增||模块名: ohos.application.AbilityConstant
类名: LaunchReason
方法名 or 属性名:APP_RECOVERY|@ohos.application.AbilityConstant.d.ts| -|新增||模块名: ohos.application.AbilityConstant
类名: OnSaveResult|@ohos.application.AbilityConstant.d.ts| -|新增||模块名: ohos.application.AbilityConstant
类名: OnSaveResult
方法名 or 属性名:ALL_AGREE|@ohos.application.AbilityConstant.d.ts| -|新增||模块名: ohos.application.AbilityConstant
类名: OnSaveResult
方法名 or 属性名:CONTINUATION_REJECT|@ohos.application.AbilityConstant.d.ts| -|新增||模块名: ohos.application.AbilityConstant
类名: OnSaveResult
方法名 or 属性名:CONTINUATION_MISMATCH|@ohos.application.AbilityConstant.d.ts| -|新增||模块名: ohos.application.AbilityConstant
类名: OnSaveResult
方法名 or 属性名:RECOVERY_AGREE|@ohos.application.AbilityConstant.d.ts| -|新增||模块名: ohos.application.AbilityConstant
类名: OnSaveResult
方法名 or 属性名:RECOVERY_REJECT|@ohos.application.AbilityConstant.d.ts| -|新增||模块名: ohos.application.AbilityConstant
类名: OnSaveResult
方法名 or 属性名:ALL_REJECT|@ohos.application.AbilityConstant.d.ts| -|新增||模块名: ohos.application.AbilityConstant
类名: StateType|@ohos.application.AbilityConstant.d.ts| -|新增||模块名: ohos.application.AbilityConstant
类名: StateType
方法名 or 属性名:CONTINUATION|@ohos.application.AbilityConstant.d.ts| -|新增||模块名: ohos.application.AbilityConstant
类名: StateType
方法名 or 属性名:APP_RECOVERY|@ohos.application.AbilityConstant.d.ts| -|新增||模块名: ohos.application.ExtensionAbility
类名: ExtensionAbility|@ohos.application.ExtensionAbility.d.ts| -|新增||模块名: ohos.application.ExtensionAbility
类名: ExtensionAbility
方法名 or 属性名: onConfigurationUpdated|@ohos.application.ExtensionAbility.d.ts| -|新增||模块名: ohos.application.ExtensionAbility
类名: ExtensionAbility
方法名 or 属性名: onMemoryLevel|@ohos.application.ExtensionAbility.d.ts| -|新增||模块名:ohos.application.formHost
类名:formHost
方法名 or 属性名:notifyFormsPrivacyProtected|@ohos.application.formHost.d.ts| -|新增||模块名:ohos.application.formHost
类名:formHost
方法名 or 属性名:notifyFormsPrivacyProtected|@ohos.application.formHost.d.ts| -|新增||模块名: ohos.application.formInfo
类名: FormType
方法名 or 属性名:eTS|@ohos.application.formInfo.d.ts| -|新增||模块名:ohos.application.formInfo
类名:VisibilityType|@ohos.application.formInfo.d.ts| -|新增||模块名:ohos.application.formInfo
类名:VisibilityType
方法名 or 属性名:FORM_VISIBLE|@ohos.application.formInfo.d.ts| -|新增||模块名:ohos.application.formInfo
类名:VisibilityType
方法名 or 属性名:FORM_INVISIBLE|@ohos.application.formInfo.d.ts| -|新增||模块名:ohos.continuation.continuationManager
类名:continuationManager
方法名 or 属性名:registerContinuation|@ohos.continuation.continuationManager.d.ts| -|新增||模块名:ohos.continuation.continuationManager
类名:continuationManager
方法名 or 属性名:registerContinuation|@ohos.continuation.continuationManager.d.ts| -|新增||模块名:ohos.continuation.continuationManager
类名:continuationManager
方法名 or 属性名:registerContinuation|@ohos.continuation.continuationManager.d.ts| -|新增||模块名:ohos.continuation.continuationManager
类名:continuationManager
方法名 or 属性名:unregisterContinuation|@ohos.continuation.continuationManager.d.ts| -|新增||模块名:ohos.continuation.continuationManager
类名:continuationManager
方法名 or 属性名:unregisterContinuation|@ohos.continuation.continuationManager.d.ts| -|新增||模块名:ohos.continuation.continuationManager
类名:continuationManager
方法名 or 属性名:updateContinuationState|@ohos.continuation.continuationManager.d.ts| -|新增||模块名:ohos.continuation.continuationManager
类名:continuationManager
方法名 or 属性名:updateContinuationState|@ohos.continuation.continuationManager.d.ts| -|新增||模块名:ohos.continuation.continuationManager
类名:continuationManager
方法名 or 属性名:startContinuationDeviceManager|@ohos.continuation.continuationManager.d.ts| -|新增||模块名:ohos.continuation.continuationManager
类名:continuationManager
方法名 or 属性名:startContinuationDeviceManager|@ohos.continuation.continuationManager.d.ts| -|新增||模块名:ohos.continuation.continuationManager
类名:continuationManager
方法名 or 属性名:startContinuationDeviceManager|@ohos.continuation.continuationManager.d.ts| -|新增||模块名:ohos.distributedMissionManager
类名:distributedMissionManager
方法名 or 属性名:continueMission|@ohos.distributedMissionManager.d.ts| -|新增||模块名:ohos.distributedMissionManager
类名:distributedMissionManager
方法名 or 属性名:continueMission|@ohos.distributedMissionManager.d.ts| -|新增||模块名:AbilityContext
类名:AbilityContext
方法名 or 属性名:connectServiceExtensionAbility|AbilityContext.d.ts| -|新增||模块名:AbilityContext
类名:AbilityContext
方法名 or 属性名:connectServiceExtensionAbilityWithAccount|AbilityContext.d.ts| -|新增||模块名:AbilityContext
类名:AbilityContext
方法名 or 属性名:disconnectServiceExtensionAbility|AbilityContext.d.ts| -|新增||模块名:AbilityContext
类名:AbilityContext
方法名 or 属性名:disconnectServiceExtensionAbility|AbilityContext.d.ts| -|新增||方法名 or 属性名:waitAbilityMonitor
函数:waitAbilityMonitor(monitor: AbilityMonitor, callback: AsyncCallback): void;|abilityDelegator.d.ts| -|新增||方法名 or 属性名:waitAbilityMonitor
函数:waitAbilityMonitor(monitor: AbilityMonitor, timeout: number, callback: AsyncCallback): void;|abilityDelegator.d.ts| -|新增||方法名 or 属性名:waitAbilityMonitor
函数:waitAbilityMonitor(monitor: AbilityMonitor, timeout?: number): Promise;|abilityDelegator.d.ts| -|新增||方法名 or 属性名:getAbilityState
函数:getAbilityState(ability: UIAbility): number;|abilityDelegator.d.ts| -|新增||方法名 or 属性名:getCurrentTopAbility
函数:getCurrentTopAbility(callback: AsyncCallback): void;|abilityDelegator.d.ts| -|新增||方法名 or 属性名:getCurrentTopAbility
函数:getCurrentTopAbility(): Promise|abilityDelegator.d.ts| -|新增||方法名 or 属性名:doAbilityForeground
函数:doAbilityForeground(ability: UIAbility, callback: AsyncCallback): void;|abilityDelegator.d.ts| -|新增||方法名 or 属性名:doAbilityForeground
函数:doAbilityForeground(ability: UIAbility): Promise;|abilityDelegator.d.ts| -|新增||方法名 or 属性名:doAbilityBackground
函数:doAbilityBackground(ability: UIAbility, callback: AsyncCallback): void;|abilityDelegator.d.ts| -|新增||方法名 or 属性名:doAbilityBackground
函数:doAbilityBackground(ability: UIAbility): Promise;|abilityDelegator.d.ts| -|新增||模块名:abilityMonitor
类名:AbilityMonitor
方法名 or 属性名:moduleName|abilityMonitor.d.ts| -|新增||方法名 or 属性名:onAbilityCreate
函数:onAbilityCreate?:(ability: UIAbility) => void;|abilityMonitor.d.ts| -|新增||方法名 or 属性名:onAbilityForeground
函数:onAbilityForeground?:(ability: UIAbility) => void;|abilityMonitor.d.ts| -|新增||方法名 or 属性名:onAbilityBackground
函数:onAbilityBackground?:(ability: UIAbility) => void;|abilityMonitor.d.ts| -|新增||方法名 or 属性名:onAbilityDestroy
函数:onAbilityDestroy?:(ability: UIAbility) => void;|abilityMonitor.d.ts| -|新增||方法名 or 属性名:onWindowStageCreate
函数:onWindowStageCreate?:(ability: UIAbility) => void;|abilityMonitor.d.ts| -|新增||方法名 or 属性名:onWindowStageRestore
函数:onWindowStageRestore?:(ability: UIAbility) => void;|abilityMonitor.d.ts| -|新增||方法名 or 属性名:onWindowStageDestroy
函数:onWindowStageDestroy?:(ability: UIAbility) => void;|abilityMonitor.d.ts| -|新增||模块名:ApplicationContext
类名:ApplicationContext
方法名 or 属性名:on_abilityLifecycle|ApplicationContext.d.ts| -|新增||模块名:ApplicationContext
类名:ApplicationContext
方法名 or 属性名:off_abilityLifecycle|ApplicationContext.d.ts| -|新增||模块名:ApplicationContext
类名:ApplicationContext
方法名 or 属性名:off_abilityLifecycle|ApplicationContext.d.ts| -|新增||模块名:ApplicationContext
类名:ApplicationContext
方法名 or 属性名:on_environment|ApplicationContext.d.ts| -|新增||模块名:ApplicationContext
类名:ApplicationContext
方法名 or 属性名:off_environment|ApplicationContext.d.ts| -|新增||模块名:ApplicationContext
类名:ApplicationContext
方法名 or 属性名:off_environment|ApplicationContext.d.ts| -|新增||模块名:ApplicationContext
类名:ApplicationContext
方法名 or 属性名:getProcessRunningInformation|ApplicationContext.d.ts| -|新增||模块名:ApplicationContext
类名:ApplicationContext
方法名 or 属性名:getProcessRunningInformation|ApplicationContext.d.ts| -|新增||模块名:ApplicationContext
类名:ApplicationContext
方法名 or 属性名:killProcessesBySelf|ApplicationContext.d.ts| -|新增||模块名:ApplicationContext
类名:ApplicationContext
方法名 or 属性名:killProcessesBySelf|ApplicationContext.d.ts| -|新增||模块名: ContinueCallback
类名: ContinueCallback|ContinueCallback.d.ts| -|新增||模块名: ContinueCallback
类名: ContinueCallback
方法名 or 属性名: onContinueDone|ContinueCallback.d.ts| -|新增||模块名: ContinueDeviceInfo
类名: ContinueDeviceInfo|ContinueDeviceInfo.d.ts| -|新增||模块名: ContinueDeviceInfo
类名: ContinueDeviceInfo
方法名 or 属性名: srcDeviceId|ContinueDeviceInfo.d.ts| -|新增||模块名: ContinueDeviceInfo
类名: ContinueDeviceInfo
方法名 or 属性名: dstDeviceId|ContinueDeviceInfo.d.ts| -|新增||模块名: ContinueDeviceInfo
类名: ContinueDeviceInfo
方法名 or 属性名: missionId|ContinueDeviceInfo.d.ts| -|新增||模块名: ContinueDeviceInfo
类名: ContinueDeviceInfo
方法名 or 属性名: wantParam|ContinueDeviceInfo.d.ts| -|新增||模块名: MissionListener
类名: MissionListener
方法名 or 属性名: onMissionLabelUpdated|MissionListener.d.ts| -|新增||模块名:ServiceExtensionContext
类名:ServiceExtensionContext
方法名 or 属性名:connectServiceExtensionAbility|ServiceExtensionContext.d.ts| -|新增||模块名:ServiceExtensionContext
类名:ServiceExtensionContext
方法名 or 属性名:connectServiceExtensionAbilityWithAccount|ServiceExtensionContext.d.ts| -|新增||模块名:ServiceExtensionContext
类名:ServiceExtensionContext
方法名 or 属性名:disconnectServiceExtensionAbility|ServiceExtensionContext.d.ts| -|新增||模块名:ServiceExtensionContext
类名:ServiceExtensionContext
方法名 or 属性名:disconnectServiceExtensionAbility|ServiceExtensionContext.d.ts| -|新增||模块名: UIAbilityContext
类名: UIAbilityContext|UIAbilityContext.d.ts| -|新增||模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: abilityInfo|UIAbilityContext.d.ts| -|新增||模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: currentHapModuleInfo|UIAbilityContext.d.ts| -|新增||模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: config|UIAbilityContext.d.ts| -|新增||模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: startAbility|UIAbilityContext.d.ts| -|新增||模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: startAbility|UIAbilityContext.d.ts| -|新增||模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: startAbility|UIAbilityContext.d.ts| -|新增||模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: startAbilityByCall|UIAbilityContext.d.ts| -|新增||模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: startAbilityWithAccount|UIAbilityContext.d.ts| -|新增||模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: startAbilityWithAccount|UIAbilityContext.d.ts| -|新增||模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: startAbilityWithAccount|UIAbilityContext.d.ts| -|新增||模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: startAbilityForResult|UIAbilityContext.d.ts| -|新增||模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: startAbilityForResult|UIAbilityContext.d.ts| -|新增||模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: startAbilityForResult|UIAbilityContext.d.ts| -|新增||模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: startAbilityForResultWithAccount|UIAbilityContext.d.ts| -|新增||模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: startAbilityForResultWithAccount|UIAbilityContext.d.ts| -|新增||模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: startAbilityForResultWithAccount|UIAbilityContext.d.ts| -|新增||模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: startServiceExtensionAbility|UIAbilityContext.d.ts| -|新增||模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: startServiceExtensionAbility|UIAbilityContext.d.ts| -|新增||模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: startServiceExtensionAbilityWithAccount|UIAbilityContext.d.ts| -|新增||模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: startServiceExtensionAbilityWithAccount|UIAbilityContext.d.ts| -|新增||模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: stopServiceExtensionAbility|UIAbilityContext.d.ts| -|新增||模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: stopServiceExtensionAbility|UIAbilityContext.d.ts| -|新增||模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: stopServiceExtensionAbilityWithAccount|UIAbilityContext.d.ts| -|新增||模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: stopServiceExtensionAbilityWithAccount|UIAbilityContext.d.ts| -|新增||模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: terminateSelf|UIAbilityContext.d.ts| -|新增||模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: terminateSelf|UIAbilityContext.d.ts| -|新增||模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: terminateSelfWithResult|UIAbilityContext.d.ts| -|新增||模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: terminateSelfWithResult|UIAbilityContext.d.ts| -|新增||模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: connectServiceExtensionAbility|UIAbilityContext.d.ts| -|新增||模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: connectServiceExtensionAbilityWithAccount|UIAbilityContext.d.ts| -|新增||模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: disconnectServiceExtensionAbility|UIAbilityContext.d.ts| -|新增||模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: disconnectServiceExtensionAbility|UIAbilityContext.d.ts| -|新增||模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: setMissionLabel|UIAbilityContext.d.ts| -|新增||模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: setMissionLabel|UIAbilityContext.d.ts| -|新增||模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: setMissionIcon|UIAbilityContext.d.ts| -|新增||模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: setMissionIcon|UIAbilityContext.d.ts| -|新增||模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: requestPermissionsFromUser|UIAbilityContext.d.ts| -|新增||模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: requestPermissionsFromUser|UIAbilityContext.d.ts| -|新增||模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: restoreWindowStage|UIAbilityContext.d.ts| -|新增||模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: isTerminating|UIAbilityContext.d.ts| -|删除|模块名: ohos.application.context
类名: AreaMode||@ohos.application.context.d.ts| -|删除|模块名: ohos.application.context
类名: AreaMode
方法名 or 属性名:EL1||@ohos.application.context.d.ts| -|删除|模块名: ohos.application.context
类名: AreaMode
方法名 or 属性名:EL2||@ohos.application.context.d.ts| -|删除|模块名:ohos.application.formInfo
类名:VisibilityType||@ohos.application.formInfo.d.ts| -|删除|模块名:ohos.application.formInfo
类名:VisibilityType
方法名 or 属性名:FORM_VISIBLE||@ohos.application.formInfo.d.ts| -|删除|模块名:ohos.application.formInfo
类名:VisibilityType
方法名 or 属性名:FORM_INVISIBLE||@ohos.application.formInfo.d.ts| -|删除|模块名: ohos.application.quickFixManager
类名: quickFixManager||@ohos.application.quickFixManager.d.ts| -|删除|模块名: ohos.application.quickFixManager
类名: HapModuleQuickFixInfo||@ohos.application.quickFixManager.d.ts| -|删除|模块名: ohos.application.quickFixManager
类名: HapModuleQuickFixInfo
方法名 or 属性名: moduleName||@ohos.application.quickFixManager.d.ts| -|删除|模块名: ohos.application.quickFixManager
类名: HapModuleQuickFixInfo
方法名 or 属性名: originHapHash||@ohos.application.quickFixManager.d.ts| -|删除|模块名: ohos.application.quickFixManager
类名: HapModuleQuickFixInfo
方法名 or 属性名: quickFixFilePath||@ohos.application.quickFixManager.d.ts| -|删除|模块名: ohos.application.quickFixManager
类名: ApplicationQuickFixInfo||@ohos.application.quickFixManager.d.ts| -|删除|模块名: ohos.application.quickFixManager
类名: ApplicationQuickFixInfo
方法名 or 属性名: bundleName||@ohos.application.quickFixManager.d.ts| -|删除|模块名: ohos.application.quickFixManager
类名: ApplicationQuickFixInfo
方法名 or 属性名: bundleVersionCode||@ohos.application.quickFixManager.d.ts| -|删除|模块名: ohos.application.quickFixManager
类名: ApplicationQuickFixInfo
方法名 or 属性名: bundleVersionName||@ohos.application.quickFixManager.d.ts| -|删除|模块名: ohos.application.quickFixManager
类名: ApplicationQuickFixInfo
方法名 or 属性名: quickFixVersionCode||@ohos.application.quickFixManager.d.ts| -|删除|模块名: ohos.application.quickFixManager
类名: ApplicationQuickFixInfo
方法名 or 属性名: quickFixVersionName||@ohos.application.quickFixManager.d.ts| -|删除|模块名: ohos.application.quickFixManager
类名: ApplicationQuickFixInfo
方法名 or 属性名: hapModuleQuickFixInfo||@ohos.application.quickFixManager.d.ts| -|删除|模块名: ohos.application.quickFixManager
类名: quickFixManager
方法名 or 属性名: applyQuickFix||@ohos.application.quickFixManager.d.ts| -|删除|模块名: ohos.application.quickFixManager
类名: quickFixManager
方法名 or 属性名: applyQuickFix||@ohos.application.quickFixManager.d.ts| -|删除|模块名: ohos.application.quickFixManager
类名: quickFixManager
方法名 or 属性名: getApplicationQuickFixInfo||@ohos.application.quickFixManager.d.ts| -|删除|模块名: ohos.application.quickFixManager
类名: quickFixManager
方法名 or 属性名: getApplicationQuickFixInfo||@ohos.application.quickFixManager.d.ts| +|新增|NA|模块名: ohos.app.ability.Ability
类名: Ability|@ohos.app.ability.Ability.d.ts| +|新增|NA|模块名: ohos.app.ability.Ability
类名: Ability
方法名 or 属性名: onConfigurationUpdate|@ohos.app.ability.Ability.d.ts| +|新增|NA|模块名: ohos.app.ability.Ability
类名: Ability
方法名 or 属性名: onMemoryLevel|@ohos.app.ability.Ability.d.ts| +|新增|NA|模块名: ohos.app.ability.Ability
类名: Ability
方法名 or 属性名: onSaveState|@ohos.app.ability.Ability.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityConstant
类名: AbilityConstant|@ohos.app.ability.AbilityConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityConstant
类名: LaunchParam|@ohos.app.ability.AbilityConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityConstant
类名: LaunchParam
方法名 or 属性名: launchReason|@ohos.app.ability.AbilityConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityConstant
类名: LaunchParam
方法名 or 属性名: lastExitReason|@ohos.app.ability.AbilityConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityConstant
类名: LaunchReason|@ohos.app.ability.AbilityConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityConstant
类名: LaunchReason
方法名 or 属性名: UNKNOWN|@ohos.app.ability.AbilityConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityConstant
类名: LaunchReason
方法名 or 属性名: START_ABILITY|@ohos.app.ability.AbilityConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityConstant
类名: LaunchReason
方法名 or 属性名: CALL|@ohos.app.ability.AbilityConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityConstant
类名: LaunchReason
方法名 or 属性名: CONTINUATION|@ohos.app.ability.AbilityConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityConstant
类名: LaunchReason
方法名 or 属性名: APP_RECOVERY|@ohos.app.ability.AbilityConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityConstant
类名: LastExitReason|@ohos.app.ability.AbilityConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityConstant
类名: LastExitReason
方法名 or 属性名: UNKNOWN|@ohos.app.ability.AbilityConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityConstant
类名: LastExitReason
方法名 or 属性名: ABILITY_NOT_RESPONDING|@ohos.app.ability.AbilityConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityConstant
类名: LastExitReason
方法名 or 属性名: NORMAL|@ohos.app.ability.AbilityConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityConstant
类名: OnContinueResult|@ohos.app.ability.AbilityConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityConstant
类名: OnContinueResult
方法名 or 属性名: AGREE|@ohos.app.ability.AbilityConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityConstant
类名: OnContinueResult
方法名 or 属性名: REJECT|@ohos.app.ability.AbilityConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityConstant
类名: OnContinueResult
方法名 or 属性名: MISMATCH|@ohos.app.ability.AbilityConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityConstant
类名: MemoryLevel|@ohos.app.ability.AbilityConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityConstant
类名: MemoryLevel
方法名 or 属性名: MEMORY_LEVEL_MODERATE|@ohos.app.ability.AbilityConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityConstant
类名: MemoryLevel
方法名 or 属性名: MEMORY_LEVEL_LOW|@ohos.app.ability.AbilityConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityConstant
类名: MemoryLevel
方法名 or 属性名: MEMORY_LEVEL_CRITICAL|@ohos.app.ability.AbilityConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityConstant
类名: WindowMode|@ohos.app.ability.AbilityConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityConstant
类名: WindowMode
方法名 or 属性名: WINDOW_MODE_UNDEFINED|@ohos.app.ability.AbilityConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityConstant
类名: WindowMode
方法名 or 属性名: WINDOW_MODE_FULLSCREEN|@ohos.app.ability.AbilityConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityConstant
类名: WindowMode
方法名 or 属性名: WINDOW_MODE_SPLIT_PRIMARY|@ohos.app.ability.AbilityConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityConstant
类名: WindowMode
方法名 or 属性名: WINDOW_MODE_SPLIT_SECONDARY|@ohos.app.ability.AbilityConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityConstant
类名: WindowMode
方法名 or 属性名: WINDOW_MODE_FLOATING|@ohos.app.ability.AbilityConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityConstant
类名: OnSaveResult|@ohos.app.ability.AbilityConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityConstant
类名: OnSaveResult
方法名 or 属性名: ALL_AGREE|@ohos.app.ability.AbilityConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityConstant
类名: OnSaveResult
方法名 or 属性名: CONTINUATION_REJECT|@ohos.app.ability.AbilityConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityConstant
类名: OnSaveResult
方法名 or 属性名: CONTINUATION_MISMATCH|@ohos.app.ability.AbilityConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityConstant
类名: OnSaveResult
方法名 or 属性名: RECOVERY_AGREE|@ohos.app.ability.AbilityConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityConstant
类名: OnSaveResult
方法名 or 属性名: RECOVERY_REJECT|@ohos.app.ability.AbilityConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityConstant
类名: OnSaveResult
方法名 or 属性名: ALL_REJECT|@ohos.app.ability.AbilityConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityConstant
类名: StateType|@ohos.app.ability.AbilityConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityConstant
类名: StateType
方法名 or 属性名: CONTINUATION|@ohos.app.ability.AbilityConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityConstant
类名: StateType
方法名 or 属性名: APP_RECOVERY|@ohos.app.ability.AbilityConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.abilityDelegatorRegistry
类名: abilityDelegatorRegistry|@ohos.app.ability.abilityDelegatorRegistry.d.ts| +|新增|NA|模块名: ohos.app.ability.abilityDelegatorRegistry
类名: abilityDelegatorRegistry
方法名 or 属性名: getAbilityDelegator|@ohos.app.ability.abilityDelegatorRegistry.d.ts| +|新增|NA|模块名: ohos.app.ability.abilityDelegatorRegistry
类名: abilityDelegatorRegistry
方法名 or 属性名: getArguments|@ohos.app.ability.abilityDelegatorRegistry.d.ts| +|新增|NA|模块名: ohos.app.ability.abilityDelegatorRegistry
类名: AbilityLifecycleState|@ohos.app.ability.abilityDelegatorRegistry.d.ts| +|新增|NA|模块名: ohos.app.ability.abilityDelegatorRegistry
类名: AbilityLifecycleState
方法名 or 属性名: UNINITIALIZED|@ohos.app.ability.abilityDelegatorRegistry.d.ts| +|新增|NA|模块名: ohos.app.ability.abilityDelegatorRegistry
类名: AbilityLifecycleState
方法名 or 属性名: CREATE|@ohos.app.ability.abilityDelegatorRegistry.d.ts| +|新增|NA|模块名: ohos.app.ability.abilityDelegatorRegistry
类名: AbilityLifecycleState
方法名 or 属性名: FOREGROUND|@ohos.app.ability.abilityDelegatorRegistry.d.ts| +|新增|NA|模块名: ohos.app.ability.abilityDelegatorRegistry
类名: AbilityLifecycleState
方法名 or 属性名: BACKGROUND|@ohos.app.ability.abilityDelegatorRegistry.d.ts| +|新增|NA|模块名: ohos.app.ability.abilityDelegatorRegistry
类名: AbilityLifecycleState
方法名 or 属性名: DESTROY|@ohos.app.ability.abilityDelegatorRegistry.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityLifecycleCallback
类名: AbilityLifecycleCallback|@ohos.app.ability.AbilityLifecycleCallback.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityLifecycleCallback
类名: AbilityLifecycleCallback
方法名 or 属性名: onAbilityCreate|@ohos.app.ability.AbilityLifecycleCallback.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityLifecycleCallback
类名: AbilityLifecycleCallback
方法名 or 属性名: onWindowStageCreate|@ohos.app.ability.AbilityLifecycleCallback.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityLifecycleCallback
类名: AbilityLifecycleCallback
方法名 or 属性名: onWindowStageActive|@ohos.app.ability.AbilityLifecycleCallback.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityLifecycleCallback
类名: AbilityLifecycleCallback
方法名 or 属性名: onWindowStageInactive|@ohos.app.ability.AbilityLifecycleCallback.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityLifecycleCallback
类名: AbilityLifecycleCallback
方法名 or 属性名: onWindowStageDestroy|@ohos.app.ability.AbilityLifecycleCallback.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityLifecycleCallback
类名: AbilityLifecycleCallback
方法名 or 属性名: onAbilityDestroy|@ohos.app.ability.AbilityLifecycleCallback.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityLifecycleCallback
类名: AbilityLifecycleCallback
方法名 or 属性名: onAbilityForeground|@ohos.app.ability.AbilityLifecycleCallback.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityLifecycleCallback
类名: AbilityLifecycleCallback
方法名 or 属性名: onAbilityBackground|@ohos.app.ability.AbilityLifecycleCallback.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityLifecycleCallback
类名: AbilityLifecycleCallback
方法名 or 属性名: onAbilityContinue|@ohos.app.ability.AbilityLifecycleCallback.d.ts| +|新增|NA|模块名: ohos.app.ability.abilityManager
类名: abilityManager|@ohos.app.ability.abilityManager.d.ts| +|新增|NA|模块名: ohos.app.ability.abilityManager
类名: AbilityState|@ohos.app.ability.abilityManager.d.ts| +|新增|NA|模块名: ohos.app.ability.abilityManager
类名: AbilityState
方法名 or 属性名: INITIAL|@ohos.app.ability.abilityManager.d.ts| +|新增|NA|模块名: ohos.app.ability.abilityManager
类名: AbilityState
方法名 or 属性名: FOREGROUND|@ohos.app.ability.abilityManager.d.ts| +|新增|NA|模块名: ohos.app.ability.abilityManager
类名: AbilityState
方法名 or 属性名: BACKGROUND|@ohos.app.ability.abilityManager.d.ts| +|新增|NA|模块名: ohos.app.ability.abilityManager
类名: AbilityState
方法名 or 属性名: FOREGROUNDING|@ohos.app.ability.abilityManager.d.ts| +|新增|NA|模块名: ohos.app.ability.abilityManager
类名: AbilityState
方法名 or 属性名: BACKGROUNDING|@ohos.app.ability.abilityManager.d.ts| +|新增|NA|模块名: ohos.app.ability.abilityManager
类名: abilityManager
方法名 or 属性名: updateConfiguration|@ohos.app.ability.abilityManager.d.ts| +|新增|NA|模块名: ohos.app.ability.abilityManager
类名: abilityManager
方法名 or 属性名: updateConfiguration|@ohos.app.ability.abilityManager.d.ts| +|新增|NA|模块名: ohos.app.ability.abilityManager
类名: abilityManager
方法名 or 属性名: getAbilityRunningInfos|@ohos.app.ability.abilityManager.d.ts| +|新增|NA|模块名: ohos.app.ability.abilityManager
类名: abilityManager
方法名 or 属性名: getAbilityRunningInfos|@ohos.app.ability.abilityManager.d.ts| +|新增|NA|模块名: ohos.app.ability.abilityManager
类名: abilityManager
方法名 or 属性名: getExtensionRunningInfos|@ohos.app.ability.abilityManager.d.ts| +|新增|NA|模块名: ohos.app.ability.abilityManager
类名: abilityManager
方法名 or 属性名: getExtensionRunningInfos|@ohos.app.ability.abilityManager.d.ts| +|新增|NA|模块名: ohos.app.ability.abilityManager
类名: abilityManager
方法名 or 属性名: getTopAbility|@ohos.app.ability.abilityManager.d.ts| +|新增|NA|模块名: ohos.app.ability.abilityManager
类名: abilityManager
方法名 or 属性名: getTopAbility|@ohos.app.ability.abilityManager.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityStage
类名: AbilityStage|@ohos.app.ability.AbilityStage.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityStage
类名: AbilityStage
方法名 or 属性名: context|@ohos.app.ability.AbilityStage.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityStage
类名: AbilityStage
方法名 or 属性名: onCreate|@ohos.app.ability.AbilityStage.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityStage
类名: AbilityStage
方法名 or 属性名: onAcceptWant|@ohos.app.ability.AbilityStage.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityStage
类名: AbilityStage
方法名 or 属性名: onConfigurationUpdate|@ohos.app.ability.AbilityStage.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityStage
类名: AbilityStage
方法名 or 属性名: onMemoryLevel|@ohos.app.ability.AbilityStage.d.ts| +|新增|NA|模块名: ohos.app.ability.appManager
类名: appManager|@ohos.app.ability.appManager.d.ts| +|新增|NA|模块名: ohos.app.ability.appManager
类名: ApplicationState|@ohos.app.ability.appManager.d.ts| +|新增|NA|模块名: ohos.app.ability.appManager
类名: ApplicationState
方法名 or 属性名: STATE_CREATE|@ohos.app.ability.appManager.d.ts| +|新增|NA|模块名: ohos.app.ability.appManager
类名: ApplicationState
方法名 or 属性名: STATE_FOREGROUND|@ohos.app.ability.appManager.d.ts| +|新增|NA|模块名: ohos.app.ability.appManager
类名: ApplicationState
方法名 or 属性名: STATE_ACTIVE|@ohos.app.ability.appManager.d.ts| +|新增|NA|模块名: ohos.app.ability.appManager
类名: ApplicationState
方法名 or 属性名: STATE_BACKGROUND|@ohos.app.ability.appManager.d.ts| +|新增|NA|模块名: ohos.app.ability.appManager
类名: ApplicationState
方法名 or 属性名: STATE_DESTROY|@ohos.app.ability.appManager.d.ts| +|新增|NA|模块名: ohos.app.ability.appManager
类名: ProcessState|@ohos.app.ability.appManager.d.ts| +|新增|NA|模块名: ohos.app.ability.appManager
类名: ProcessState
方法名 or 属性名: STATE_CREATE|@ohos.app.ability.appManager.d.ts| +|新增|NA|模块名: ohos.app.ability.appManager
类名: ProcessState
方法名 or 属性名: STATE_FOREGROUND|@ohos.app.ability.appManager.d.ts| +|新增|NA|模块名: ohos.app.ability.appManager
类名: ProcessState
方法名 or 属性名: STATE_ACTIVE|@ohos.app.ability.appManager.d.ts| +|新增|NA|模块名: ohos.app.ability.appManager
类名: ProcessState
方法名 or 属性名: STATE_BACKGROUND|@ohos.app.ability.appManager.d.ts| +|新增|NA|模块名: ohos.app.ability.appManager
类名: ProcessState
方法名 or 属性名: STATE_DESTROY|@ohos.app.ability.appManager.d.ts| +|新增|NA|模块名: ohos.app.ability.appManager
类名: appManager
方法名 or 属性名: on_applicationState|@ohos.app.ability.appManager.d.ts| +|新增|NA|模块名: ohos.app.ability.appManager
类名: appManager
方法名 or 属性名: on_applicationState|@ohos.app.ability.appManager.d.ts| +|新增|NA|模块名: ohos.app.ability.appManager
类名: appManager
方法名 or 属性名: off_applicationState|@ohos.app.ability.appManager.d.ts| +|新增|NA|模块名: ohos.app.ability.appManager
类名: appManager
方法名 or 属性名: off_applicationState|@ohos.app.ability.appManager.d.ts| +|新增|NA|模块名: ohos.app.ability.appManager
类名: appManager
方法名 or 属性名: getForegroundApplications|@ohos.app.ability.appManager.d.ts| +|新增|NA|模块名: ohos.app.ability.appManager
类名: appManager
方法名 or 属性名: getForegroundApplications|@ohos.app.ability.appManager.d.ts| +|新增|NA|模块名: ohos.app.ability.appManager
类名: appManager
方法名 or 属性名: killProcessWithAccount|@ohos.app.ability.appManager.d.ts| +|新增|NA|模块名: ohos.app.ability.appManager
类名: appManager
方法名 or 属性名: killProcessWithAccount|@ohos.app.ability.appManager.d.ts| +|新增|NA|模块名: ohos.app.ability.appManager
类名: appManager
方法名 or 属性名: isRunningInStabilityTest|@ohos.app.ability.appManager.d.ts| +|新增|NA|模块名: ohos.app.ability.appManager
类名: appManager
方法名 or 属性名: isRunningInStabilityTest|@ohos.app.ability.appManager.d.ts| +|新增|NA|模块名: ohos.app.ability.appManager
类名: appManager
方法名 or 属性名: killProcessesByBundleName|@ohos.app.ability.appManager.d.ts| +|新增|NA|模块名: ohos.app.ability.appManager
类名: appManager
方法名 or 属性名: killProcessesByBundleName|@ohos.app.ability.appManager.d.ts| +|新增|NA|模块名: ohos.app.ability.appManager
类名: appManager
方法名 or 属性名: clearUpApplicationData|@ohos.app.ability.appManager.d.ts| +|新增|NA|模块名: ohos.app.ability.appManager
类名: appManager
方法名 or 属性名: clearUpApplicationData|@ohos.app.ability.appManager.d.ts| +|新增|NA|模块名: ohos.app.ability.appManager
类名: appManager
方法名 or 属性名: isRamConstrainedDevice|@ohos.app.ability.appManager.d.ts| +|新增|NA|模块名: ohos.app.ability.appManager
类名: appManager
方法名 or 属性名: isRamConstrainedDevice|@ohos.app.ability.appManager.d.ts| +|新增|NA|模块名: ohos.app.ability.appManager
类名: appManager
方法名 or 属性名: getAppMemorySize|@ohos.app.ability.appManager.d.ts| +|新增|NA|模块名: ohos.app.ability.appManager
类名: appManager
方法名 or 属性名: getAppMemorySize|@ohos.app.ability.appManager.d.ts| +|新增|NA|模块名: ohos.app.ability.appManager
类名: appManager
方法名 or 属性名: getProcessRunningInformation|@ohos.app.ability.appManager.d.ts| +|新增|NA|模块名: ohos.app.ability.appManager
类名: appManager
方法名 or 属性名: getProcessRunningInformation|@ohos.app.ability.appManager.d.ts| +|新增|NA|模块名: ohos.app.ability.appRecovery
类名: appReceovery|@ohos.app.ability.appRecovery.d.ts| +|新增|NA|模块名: ohos.app.ability.appRecovery
类名: RestartFlag|@ohos.app.ability.appRecovery.d.ts| +|新增|NA|模块名: ohos.app.ability.appRecovery
类名: RestartFlag
方法名 or 属性名: ALWAYS_RESTART|@ohos.app.ability.appRecovery.d.ts| +|新增|NA|模块名: ohos.app.ability.appRecovery
类名: RestartFlag
方法名 or 属性名: CPP_CRASH_NO_RESTART|@ohos.app.ability.appRecovery.d.ts| +|新增|NA|模块名: ohos.app.ability.appRecovery
类名: RestartFlag
方法名 or 属性名: JS_CRASH_NO_RESTART|@ohos.app.ability.appRecovery.d.ts| +|新增|NA|模块名: ohos.app.ability.appRecovery
类名: RestartFlag
方法名 or 属性名: APP_FREEZE_NO_RESTART|@ohos.app.ability.appRecovery.d.ts| +|新增|NA|模块名: ohos.app.ability.appRecovery
类名: RestartFlag
方法名 or 属性名: NO_RESTART|@ohos.app.ability.appRecovery.d.ts| +|新增|NA|模块名: ohos.app.ability.appRecovery
类名: SaveOccasionFlag|@ohos.app.ability.appRecovery.d.ts| +|新增|NA|模块名: ohos.app.ability.appRecovery
类名: SaveOccasionFlag
方法名 or 属性名: SAVE_WHEN_ERROR|@ohos.app.ability.appRecovery.d.ts| +|新增|NA|模块名: ohos.app.ability.appRecovery
类名: SaveOccasionFlag
方法名 or 属性名: SAVE_WHEN_BACKGROUND|@ohos.app.ability.appRecovery.d.ts| +|新增|NA|模块名: ohos.app.ability.appRecovery
类名: SaveModeFlag|@ohos.app.ability.appRecovery.d.ts| +|新增|NA|模块名: ohos.app.ability.appRecovery
类名: SaveModeFlag
方法名 or 属性名: SAVE_WITH_FILE|@ohos.app.ability.appRecovery.d.ts| +|新增|NA|模块名: ohos.app.ability.appRecovery
类名: SaveModeFlag
方法名 or 属性名: SAVE_WITH_SHARED_MEMORY|@ohos.app.ability.appRecovery.d.ts| +|新增|NA|模块名: ohos.app.ability.appRecovery
类名: appReceovery
方法名 or 属性名: enableAppRecovery|@ohos.app.ability.appRecovery.d.ts| +|新增|NA|模块名: ohos.app.ability.appRecovery
类名: appReceovery
方法名 or 属性名: restartApp|@ohos.app.ability.appRecovery.d.ts| +|新增|NA|模块名: ohos.app.ability.appRecovery
类名: appReceovery
方法名 or 属性名: saveAppState|@ohos.app.ability.appRecovery.d.ts| +|新增|NA|模块名: ohos.app.ability.common
类名: common|@ohos.app.ability.common.d.ts| +|新增|NA|模块名: ohos.app.ability.common
类名: AreaMode|@ohos.app.ability.common.d.ts| +|新增|NA|模块名: ohos.app.ability.common
类名: AreaMode
方法名 or 属性名: EL1|@ohos.app.ability.common.d.ts| +|新增|NA|模块名: ohos.app.ability.common
类名: AreaMode
方法名 or 属性名: EL2|@ohos.app.ability.common.d.ts| +|新增|NA|模块名: ohos.app.ability.Configuration
类名: Configuration|@ohos.app.ability.Configuration.d.ts| +|新增|NA|模块名: ohos.app.ability.Configuration
类名: Configuration
方法名 or 属性名: language|@ohos.app.ability.Configuration.d.ts| +|新增|NA|模块名: ohos.app.ability.Configuration
类名: Configuration
方法名 or 属性名: colorMode|@ohos.app.ability.Configuration.d.ts| +|新增|NA|模块名: ohos.app.ability.Configuration
类名: Configuration
方法名 or 属性名: direction|@ohos.app.ability.Configuration.d.ts| +|新增|NA|模块名: ohos.app.ability.Configuration
类名: Configuration
方法名 or 属性名: screenDensity|@ohos.app.ability.Configuration.d.ts| +|新增|NA|模块名: ohos.app.ability.Configuration
类名: Configuration
方法名 or 属性名: displayId|@ohos.app.ability.Configuration.d.ts| +|新增|NA|模块名: ohos.app.ability.Configuration
类名: Configuration
方法名 or 属性名: hasPointerDevice|@ohos.app.ability.Configuration.d.ts| +|新增|NA|模块名: ohos.app.ability.ConfigurationConstant
类名: ConfigurationConstant|@ohos.app.ability.ConfigurationConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.ConfigurationConstant
类名: ColorMode|@ohos.app.ability.ConfigurationConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.ConfigurationConstant
类名: ColorMode
方法名 or 属性名: COLOR_MODE_NOT_SET|@ohos.app.ability.ConfigurationConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.ConfigurationConstant
类名: ColorMode
方法名 or 属性名: COLOR_MODE_DARK|@ohos.app.ability.ConfigurationConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.ConfigurationConstant
类名: ColorMode
方法名 or 属性名: COLOR_MODE_LIGHT|@ohos.app.ability.ConfigurationConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.ConfigurationConstant
类名: Direction|@ohos.app.ability.ConfigurationConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.ConfigurationConstant
类名: Direction
方法名 or 属性名: DIRECTION_NOT_SET|@ohos.app.ability.ConfigurationConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.ConfigurationConstant
类名: Direction
方法名 or 属性名: DIRECTION_VERTICAL|@ohos.app.ability.ConfigurationConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.ConfigurationConstant
类名: Direction
方法名 or 属性名: DIRECTION_HORIZONTAL|@ohos.app.ability.ConfigurationConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.ConfigurationConstant
类名: ScreenDensity|@ohos.app.ability.ConfigurationConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.ConfigurationConstant
类名: ScreenDensity
方法名 or 属性名: SCREEN_DENSITY_NOT_SET|@ohos.app.ability.ConfigurationConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.ConfigurationConstant
类名: ScreenDensity
方法名 or 属性名: SCREEN_DENSITY_SDPI|@ohos.app.ability.ConfigurationConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.ConfigurationConstant
类名: ScreenDensity
方法名 or 属性名: SCREEN_DENSITY_MDPI|@ohos.app.ability.ConfigurationConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.ConfigurationConstant
类名: ScreenDensity
方法名 or 属性名: SCREEN_DENSITY_LDPI|@ohos.app.ability.ConfigurationConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.ConfigurationConstant
类名: ScreenDensity
方法名 or 属性名: SCREEN_DENSITY_XLDPI|@ohos.app.ability.ConfigurationConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.ConfigurationConstant
类名: ScreenDensity
方法名 or 属性名: SCREEN_DENSITY_XXLDPI|@ohos.app.ability.ConfigurationConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.ConfigurationConstant
类名: ScreenDensity
方法名 or 属性名: SCREEN_DENSITY_XXXLDPI|@ohos.app.ability.ConfigurationConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.contextConstant
类名: contextConstant|@ohos.app.ability.contextConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.contextConstant
类名: AreaMode|@ohos.app.ability.contextConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.contextConstant
类名: AreaMode
方法名 or 属性名: EL1|@ohos.app.ability.contextConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.contextConstant
类名: AreaMode
方法名 or 属性名: EL2|@ohos.app.ability.contextConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.EnvironmentCallback
类名: EnvironmentCallback|@ohos.app.ability.EnvironmentCallback.d.ts| +|新增|NA|模块名: ohos.app.ability.EnvironmentCallback
类名: EnvironmentCallback
方法名 or 属性名: onConfigurationUpdated|@ohos.app.ability.EnvironmentCallback.d.ts| +|新增|NA|模块名: ohos.app.ability.errorManager
类名: errorManager|@ohos.app.ability.errorManager.d.ts| +|新增|NA|模块名: ohos.app.ability.errorManager
类名: errorManager
方法名 or 属性名: on_error|@ohos.app.ability.errorManager.d.ts| +|新增|NA|模块名: ohos.app.ability.errorManager
类名: errorManager
方法名 or 属性名: off_error|@ohos.app.ability.errorManager.d.ts| +|新增|NA|模块名: ohos.app.ability.errorManager
类名: errorManager
方法名 or 属性名: off_error|@ohos.app.ability.errorManager.d.ts| +|新增|NA|模块名: ohos.app.ability.ExtensionAbility
类名: ExtensionAbility|@ohos.app.ability.ExtensionAbility.d.ts| +|新增|NA|模块名: ohos.app.ability.missionManager
类名: missionManager|@ohos.app.ability.missionManager.d.ts| +|新增|NA|模块名: ohos.app.ability.missionManager
类名: missionManager
方法名 or 属性名: on_mission|@ohos.app.ability.missionManager.d.ts| +|新增|NA|模块名: ohos.app.ability.missionManager
类名: missionManager
方法名 or 属性名: off_mission|@ohos.app.ability.missionManager.d.ts| +|新增|NA|模块名: ohos.app.ability.missionManager
类名: missionManager
方法名 or 属性名: off_mission|@ohos.app.ability.missionManager.d.ts| +|新增|NA|模块名: ohos.app.ability.missionManager
类名: missionManager
方法名 or 属性名: getMissionInfo|@ohos.app.ability.missionManager.d.ts| +|新增|NA|模块名: ohos.app.ability.missionManager
类名: missionManager
方法名 or 属性名: getMissionInfo|@ohos.app.ability.missionManager.d.ts| +|新增|NA|模块名: ohos.app.ability.missionManager
类名: missionManager
方法名 or 属性名: getMissionInfos|@ohos.app.ability.missionManager.d.ts| +|新增|NA|模块名: ohos.app.ability.missionManager
类名: missionManager
方法名 or 属性名: getMissionInfos|@ohos.app.ability.missionManager.d.ts| +|新增|NA|模块名: ohos.app.ability.missionManager
类名: missionManager
方法名 or 属性名: getMissionSnapShot|@ohos.app.ability.missionManager.d.ts| +|新增|NA|模块名: ohos.app.ability.missionManager
类名: missionManager
方法名 or 属性名: getMissionSnapShot|@ohos.app.ability.missionManager.d.ts| +|新增|NA|模块名: ohos.app.ability.missionManager
类名: missionManager
方法名 or 属性名: getLowResolutionMissionSnapShot|@ohos.app.ability.missionManager.d.ts| +|新增|NA|模块名: ohos.app.ability.missionManager
类名: missionManager
方法名 or 属性名: getLowResolutionMissionSnapShot|@ohos.app.ability.missionManager.d.ts| +|新增|NA|模块名: ohos.app.ability.missionManager
类名: missionManager
方法名 or 属性名: lockMission|@ohos.app.ability.missionManager.d.ts| +|新增|NA|模块名: ohos.app.ability.missionManager
类名: missionManager
方法名 or 属性名: lockMission|@ohos.app.ability.missionManager.d.ts| +|新增|NA|模块名: ohos.app.ability.missionManager
类名: missionManager
方法名 or 属性名: unlockMission|@ohos.app.ability.missionManager.d.ts| +|新增|NA|模块名: ohos.app.ability.missionManager
类名: missionManager
方法名 or 属性名: unlockMission|@ohos.app.ability.missionManager.d.ts| +|新增|NA|模块名: ohos.app.ability.missionManager
类名: missionManager
方法名 or 属性名: clearMission|@ohos.app.ability.missionManager.d.ts| +|新增|NA|模块名: ohos.app.ability.missionManager
类名: missionManager
方法名 or 属性名: clearMission|@ohos.app.ability.missionManager.d.ts| +|新增|NA|模块名: ohos.app.ability.missionManager
类名: missionManager
方法名 or 属性名: clearAllMissions|@ohos.app.ability.missionManager.d.ts| +|新增|NA|模块名: ohos.app.ability.missionManager
类名: missionManager
方法名 or 属性名: clearAllMissions|@ohos.app.ability.missionManager.d.ts| +|新增|NA|模块名: ohos.app.ability.missionManager
类名: missionManager
方法名 or 属性名: moveMissionToFront|@ohos.app.ability.missionManager.d.ts| +|新增|NA|模块名: ohos.app.ability.missionManager
类名: missionManager
方法名 or 属性名: moveMissionToFront|@ohos.app.ability.missionManager.d.ts| +|新增|NA|模块名: ohos.app.ability.missionManager
类名: missionManager
方法名 or 属性名: moveMissionToFront|@ohos.app.ability.missionManager.d.ts| +|新增|NA|模块名: ohos.app.ability.quickFixManager
类名: quickFixManager|@ohos.app.ability.quickFixManager.d.ts| +|新增|NA|模块名: ohos.app.ability.quickFixManager
类名: HapModuleQuickFixInfo|@ohos.app.ability.quickFixManager.d.ts| +|新增|NA|模块名: ohos.app.ability.quickFixManager
类名: HapModuleQuickFixInfo
方法名 or 属性名: moduleName|@ohos.app.ability.quickFixManager.d.ts| +|新增|NA|模块名: ohos.app.ability.quickFixManager
类名: HapModuleQuickFixInfo
方法名 or 属性名: originHapHash|@ohos.app.ability.quickFixManager.d.ts| +|新增|NA|模块名: ohos.app.ability.quickFixManager
类名: HapModuleQuickFixInfo
方法名 or 属性名: quickFixFilePath|@ohos.app.ability.quickFixManager.d.ts| +|新增|NA|模块名: ohos.app.ability.quickFixManager
类名: ApplicationQuickFixInfo|@ohos.app.ability.quickFixManager.d.ts| +|新增|NA|模块名: ohos.app.ability.quickFixManager
类名: ApplicationQuickFixInfo
方法名 or 属性名: bundleName|@ohos.app.ability.quickFixManager.d.ts| +|新增|NA|模块名: ohos.app.ability.quickFixManager
类名: ApplicationQuickFixInfo
方法名 or 属性名: bundleVersionCode|@ohos.app.ability.quickFixManager.d.ts| +|新增|NA|模块名: ohos.app.ability.quickFixManager
类名: ApplicationQuickFixInfo
方法名 or 属性名: bundleVersionName|@ohos.app.ability.quickFixManager.d.ts| +|新增|NA|模块名: ohos.app.ability.quickFixManager
类名: ApplicationQuickFixInfo
方法名 or 属性名: quickFixVersionCode|@ohos.app.ability.quickFixManager.d.ts| +|新增|NA|模块名: ohos.app.ability.quickFixManager
类名: ApplicationQuickFixInfo
方法名 or 属性名: quickFixVersionName|@ohos.app.ability.quickFixManager.d.ts| +|新增|NA|模块名: ohos.app.ability.quickFixManager
类名: ApplicationQuickFixInfo
方法名 or 属性名: hapModuleQuickFixInfo|@ohos.app.ability.quickFixManager.d.ts| +|新增|NA|模块名: ohos.app.ability.quickFixManager
类名: quickFixManager
方法名 or 属性名: applyQuickFix|@ohos.app.ability.quickFixManager.d.ts| +|新增|NA|模块名: ohos.app.ability.quickFixManager
类名: quickFixManager
方法名 or 属性名: applyQuickFix|@ohos.app.ability.quickFixManager.d.ts| +|新增|NA|模块名: ohos.app.ability.quickFixManager
类名: quickFixManager
方法名 or 属性名: getApplicationQuickFixInfo|@ohos.app.ability.quickFixManager.d.ts| +|新增|NA|模块名: ohos.app.ability.quickFixManager
类名: quickFixManager
方法名 or 属性名: getApplicationQuickFixInfo|@ohos.app.ability.quickFixManager.d.ts| +|新增|NA|模块名: ohos.app.ability.ServiceExtensionAbility
类名: ServiceExtensionAbility|@ohos.app.ability.ServiceExtensionAbility.d.ts| +|新增|NA|模块名: ohos.app.ability.ServiceExtensionAbility
类名: ServiceExtensionAbility
方法名 or 属性名: context|@ohos.app.ability.ServiceExtensionAbility.d.ts| +|新增|NA|模块名: ohos.app.ability.ServiceExtensionAbility
类名: ServiceExtensionAbility
方法名 or 属性名: onCreate|@ohos.app.ability.ServiceExtensionAbility.d.ts| +|新增|NA|模块名: ohos.app.ability.ServiceExtensionAbility
类名: ServiceExtensionAbility
方法名 or 属性名: onDestroy|@ohos.app.ability.ServiceExtensionAbility.d.ts| +|新增|NA|模块名: ohos.app.ability.ServiceExtensionAbility
类名: ServiceExtensionAbility
方法名 or 属性名: onRequest|@ohos.app.ability.ServiceExtensionAbility.d.ts| +|新增|NA|模块名: ohos.app.ability.ServiceExtensionAbility
类名: ServiceExtensionAbility
方法名 or 属性名: onConnect|@ohos.app.ability.ServiceExtensionAbility.d.ts| +|新增|NA|模块名: ohos.app.ability.ServiceExtensionAbility
类名: ServiceExtensionAbility
方法名 or 属性名: onDisconnect|@ohos.app.ability.ServiceExtensionAbility.d.ts| +|新增|NA|模块名: ohos.app.ability.ServiceExtensionAbility
类名: ServiceExtensionAbility
方法名 or 属性名: onReconnect|@ohos.app.ability.ServiceExtensionAbility.d.ts| +|新增|NA|模块名: ohos.app.ability.ServiceExtensionAbility
类名: ServiceExtensionAbility
方法名 or 属性名: onConfigurationUpdate|@ohos.app.ability.ServiceExtensionAbility.d.ts| +|新增|NA|模块名: ohos.app.ability.ServiceExtensionAbility
类名: ServiceExtensionAbility
方法名 or 属性名: onDump|@ohos.app.ability.ServiceExtensionAbility.d.ts| +|新增|NA|模块名: ohos.app.ability.StartOptions
类名: StartOptions|@ohos.app.ability.StartOptions.d.ts| +|新增|NA|模块名: ohos.app.ability.StartOptions
类名: StartOptions
方法名 or 属性名: windowMode|@ohos.app.ability.StartOptions.d.ts| +|新增|NA|模块名: ohos.app.ability.StartOptions
类名: StartOptions
方法名 or 属性名: displayId|@ohos.app.ability.StartOptions.d.ts| +|新增|NA|模块名: ohos.app.ability.UIAbility
类名: OnReleaseCallback|@ohos.app.ability.UIAbility.d.ts| +|新增|NA|模块名: ohos.app.ability.UIAbility
类名: OnReleaseCallback
方法名 or 属性名: OnReleaseCallback|@ohos.app.ability.UIAbility.d.ts| +|新增|NA|模块名: ohos.app.ability.UIAbility
类名: CalleeCallback|@ohos.app.ability.UIAbility.d.ts| +|新增|NA|模块名: ohos.app.ability.UIAbility
类名: CalleeCallback
方法名 or 属性名: CalleeCallback|@ohos.app.ability.UIAbility.d.ts| +|新增|NA|模块名: ohos.app.ability.UIAbility
类名: Caller|@ohos.app.ability.UIAbility.d.ts| +|新增|NA|模块名: ohos.app.ability.UIAbility
类名: Caller
方法名 or 属性名: call|@ohos.app.ability.UIAbility.d.ts| +|新增|NA|模块名: ohos.app.ability.UIAbility
类名: Caller
方法名 or 属性名: callWithResult|@ohos.app.ability.UIAbility.d.ts| +|新增|NA|模块名: ohos.app.ability.UIAbility
类名: Caller
方法名 or 属性名: release|@ohos.app.ability.UIAbility.d.ts| +|新增|NA|模块名: ohos.app.ability.UIAbility
类名: Caller
方法名 or 属性名: onRelease|@ohos.app.ability.UIAbility.d.ts| +|新增|NA|模块名: ohos.app.ability.UIAbility
类名: Caller
方法名 or 属性名: on_release|@ohos.app.ability.UIAbility.d.ts| +|新增|NA|模块名: ohos.app.ability.UIAbility
类名: Caller
方法名 or 属性名: off_release|@ohos.app.ability.UIAbility.d.ts| +|新增|NA|模块名: ohos.app.ability.UIAbility
类名: Caller
方法名 or 属性名: off_release|@ohos.app.ability.UIAbility.d.ts| +|新增|NA|模块名: ohos.app.ability.UIAbility
类名: Callee|@ohos.app.ability.UIAbility.d.ts| +|新增|NA|模块名: ohos.app.ability.UIAbility
类名: Callee
方法名 or 属性名: on|@ohos.app.ability.UIAbility.d.ts| +|新增|NA|模块名: ohos.app.ability.UIAbility
类名: Callee
方法名 or 属性名: off|@ohos.app.ability.UIAbility.d.ts| +|新增|NA|模块名: ohos.app.ability.UIAbility
类名: UIAbility|@ohos.app.ability.UIAbility.d.ts| +|新增|NA|模块名: ohos.app.ability.UIAbility
类名: UIAbility
方法名 or 属性名: context|@ohos.app.ability.UIAbility.d.ts| +|新增|NA|模块名: ohos.app.ability.UIAbility
类名: UIAbility
方法名 or 属性名: launchWant|@ohos.app.ability.UIAbility.d.ts| +|新增|NA|模块名: ohos.app.ability.UIAbility
类名: UIAbility
方法名 or 属性名: lastRequestWant|@ohos.app.ability.UIAbility.d.ts| +|新增|NA|模块名: ohos.app.ability.UIAbility
类名: UIAbility
方法名 or 属性名: callee|@ohos.app.ability.UIAbility.d.ts| +|新增|NA|模块名: ohos.app.ability.UIAbility
类名: UIAbility
方法名 or 属性名: onCreate|@ohos.app.ability.UIAbility.d.ts| +|新增|NA|模块名: ohos.app.ability.UIAbility
类名: UIAbility
方法名 or 属性名: onWindowStageCreate|@ohos.app.ability.UIAbility.d.ts| +|新增|NA|模块名: ohos.app.ability.UIAbility
类名: UIAbility
方法名 or 属性名: onWindowStageDestroy|@ohos.app.ability.UIAbility.d.ts| +|新增|NA|模块名: ohos.app.ability.UIAbility
类名: UIAbility
方法名 or 属性名: onWindowStageRestore|@ohos.app.ability.UIAbility.d.ts| +|新增|NA|模块名: ohos.app.ability.UIAbility
类名: UIAbility
方法名 or 属性名: onDestroy|@ohos.app.ability.UIAbility.d.ts| +|新增|NA|模块名: ohos.app.ability.UIAbility
类名: UIAbility
方法名 or 属性名: onForeground|@ohos.app.ability.UIAbility.d.ts| +|新增|NA|模块名: ohos.app.ability.UIAbility
类名: UIAbility
方法名 or 属性名: onBackground|@ohos.app.ability.UIAbility.d.ts| +|新增|NA|模块名: ohos.app.ability.UIAbility
类名: UIAbility
方法名 or 属性名: onContinue|@ohos.app.ability.UIAbility.d.ts| +|新增|NA|模块名: ohos.app.ability.UIAbility
类名: UIAbility
方法名 or 属性名: onNewWant|@ohos.app.ability.UIAbility.d.ts| +|新增|NA|模块名: ohos.app.ability.UIAbility
类名: UIAbility
方法名 or 属性名: onDump|@ohos.app.ability.UIAbility.d.ts| +|新增|NA|模块名: ohos.app.ability.Want
类名: Want|@ohos.app.ability.Want.d.ts| +|新增|NA|模块名: ohos.app.ability.Want
类名: Want
方法名 or 属性名: deviceId|@ohos.app.ability.Want.d.ts| +|新增|NA|模块名: ohos.app.ability.Want
类名: Want
方法名 or 属性名: bundleName|@ohos.app.ability.Want.d.ts| +|新增|NA|模块名: ohos.app.ability.Want
类名: Want
方法名 or 属性名: abilityName|@ohos.app.ability.Want.d.ts| +|新增|NA|模块名: ohos.app.ability.Want
类名: Want
方法名 or 属性名: uri|@ohos.app.ability.Want.d.ts| +|新增|NA|模块名: ohos.app.ability.Want
类名: Want
方法名 or 属性名: type|@ohos.app.ability.Want.d.ts| +|新增|NA|模块名: ohos.app.ability.Want
类名: Want
方法名 or 属性名: flags|@ohos.app.ability.Want.d.ts| +|新增|NA|模块名: ohos.app.ability.Want
类名: Want
方法名 or 属性名: action|@ohos.app.ability.Want.d.ts| +|新增|NA|模块名: ohos.app.ability.Want
类名: Want
方法名 or 属性名: parameters|@ohos.app.ability.Want.d.ts| +|新增|NA|模块名: ohos.app.ability.Want
类名: Want
方法名 or 属性名: entities|@ohos.app.ability.Want.d.ts| +|新增|NA|模块名: ohos.app.ability.Want
类名: Want
方法名 or 属性名: moduleName|@ohos.app.ability.Want.d.ts| +|新增|NA|模块名: ohos.app.ability.wantAgent
类名: wantAgent|@ohos.app.ability.wantAgent.d.ts| +|新增|NA|模块名: ohos.app.ability.wantAgent
类名: wantAgent
方法名 or 属性名: getBundleName|@ohos.app.ability.wantAgent.d.ts| +|新增|NA|模块名: ohos.app.ability.wantAgent
类名: wantAgent
方法名 or 属性名: getBundleName|@ohos.app.ability.wantAgent.d.ts| +|新增|NA|模块名: ohos.app.ability.wantAgent
类名: wantAgent
方法名 or 属性名: getUid|@ohos.app.ability.wantAgent.d.ts| +|新增|NA|模块名: ohos.app.ability.wantAgent
类名: wantAgent
方法名 or 属性名: getUid|@ohos.app.ability.wantAgent.d.ts| +|新增|NA|模块名: ohos.app.ability.wantAgent
类名: wantAgent
方法名 or 属性名: getWant|@ohos.app.ability.wantAgent.d.ts| +|新增|NA|模块名: ohos.app.ability.wantAgent
类名: wantAgent
方法名 or 属性名: getWant|@ohos.app.ability.wantAgent.d.ts| +|新增|NA|模块名: ohos.app.ability.wantAgent
类名: wantAgent
方法名 or 属性名: cancel|@ohos.app.ability.wantAgent.d.ts| +|新增|NA|模块名: ohos.app.ability.wantAgent
类名: wantAgent
方法名 or 属性名: cancel|@ohos.app.ability.wantAgent.d.ts| +|新增|NA|模块名: ohos.app.ability.wantAgent
类名: wantAgent
方法名 or 属性名: trigger|@ohos.app.ability.wantAgent.d.ts| +|新增|NA|模块名: ohos.app.ability.wantAgent
类名: wantAgent
方法名 or 属性名: trigger|@ohos.app.ability.wantAgent.d.ts| +|新增|NA|模块名: ohos.app.ability.wantAgent
类名: wantAgent
方法名 or 属性名: equal|@ohos.app.ability.wantAgent.d.ts| +|新增|NA|模块名: ohos.app.ability.wantAgent
类名: wantAgent
方法名 or 属性名: equal|@ohos.app.ability.wantAgent.d.ts| +|新增|NA|模块名: ohos.app.ability.wantAgent
类名: wantAgent
方法名 or 属性名: getWantAgent|@ohos.app.ability.wantAgent.d.ts| +|新增|NA|模块名: ohos.app.ability.wantAgent
类名: wantAgent
方法名 or 属性名: getWantAgent|@ohos.app.ability.wantAgent.d.ts| +|新增|NA|模块名: ohos.app.ability.wantAgent
类名: wantAgent
方法名 or 属性名: getOperationType|@ohos.app.ability.wantAgent.d.ts| +|新增|NA|模块名: ohos.app.ability.wantAgent
类名: wantAgent
方法名 or 属性名: getOperationType|@ohos.app.ability.wantAgent.d.ts| +|新增|NA|模块名: ohos.app.ability.wantAgent
类名: WantAgentFlags|@ohos.app.ability.wantAgent.d.ts| +|新增|NA|模块名: ohos.app.ability.wantAgent
类名: WantAgentFlags
方法名 or 属性名: ONE_TIME_FLAG|@ohos.app.ability.wantAgent.d.ts| +|新增|NA|模块名: ohos.app.ability.wantAgent
类名: WantAgentFlags
方法名 or 属性名: NO_BUILD_FLAG|@ohos.app.ability.wantAgent.d.ts| +|新增|NA|模块名: ohos.app.ability.wantAgent
类名: WantAgentFlags
方法名 or 属性名: CANCEL_PRESENT_FLAG|@ohos.app.ability.wantAgent.d.ts| +|新增|NA|模块名: ohos.app.ability.wantAgent
类名: WantAgentFlags
方法名 or 属性名: UPDATE_PRESENT_FLAG|@ohos.app.ability.wantAgent.d.ts| +|新增|NA|模块名: ohos.app.ability.wantAgent
类名: WantAgentFlags
方法名 or 属性名: CONSTANT_FLAG|@ohos.app.ability.wantAgent.d.ts| +|新增|NA|模块名: ohos.app.ability.wantAgent
类名: WantAgentFlags
方法名 or 属性名: REPLACE_ELEMENT|@ohos.app.ability.wantAgent.d.ts| +|新增|NA|模块名: ohos.app.ability.wantAgent
类名: WantAgentFlags
方法名 or 属性名: REPLACE_ACTION|@ohos.app.ability.wantAgent.d.ts| +|新增|NA|模块名: ohos.app.ability.wantAgent
类名: WantAgentFlags
方法名 or 属性名: REPLACE_URI|@ohos.app.ability.wantAgent.d.ts| +|新增|NA|模块名: ohos.app.ability.wantAgent
类名: WantAgentFlags
方法名 or 属性名: REPLACE_ENTITIES|@ohos.app.ability.wantAgent.d.ts| +|新增|NA|模块名: ohos.app.ability.wantAgent
类名: WantAgentFlags
方法名 or 属性名: REPLACE_BUNDLE|@ohos.app.ability.wantAgent.d.ts| +|新增|NA|模块名: ohos.app.ability.wantAgent
类名: OperationType|@ohos.app.ability.wantAgent.d.ts| +|新增|NA|模块名: ohos.app.ability.wantAgent
类名: OperationType
方法名 or 属性名: UNKNOWN_TYPE|@ohos.app.ability.wantAgent.d.ts| +|新增|NA|模块名: ohos.app.ability.wantAgent
类名: OperationType
方法名 or 属性名: START_ABILITY|@ohos.app.ability.wantAgent.d.ts| +|新增|NA|模块名: ohos.app.ability.wantAgent
类名: OperationType
方法名 or 属性名: START_ABILITIES|@ohos.app.ability.wantAgent.d.ts| +|新增|NA|模块名: ohos.app.ability.wantAgent
类名: OperationType
方法名 or 属性名: START_SERVICE|@ohos.app.ability.wantAgent.d.ts| +|新增|NA|模块名: ohos.app.ability.wantAgent
类名: OperationType
方法名 or 属性名: SEND_COMMON_EVENT|@ohos.app.ability.wantAgent.d.ts| +|新增|NA|模块名: ohos.app.ability.wantAgent
类名: CompleteData|@ohos.app.ability.wantAgent.d.ts| +|新增|NA|模块名: ohos.app.ability.wantAgent
类名: CompleteData
方法名 or 属性名: info|@ohos.app.ability.wantAgent.d.ts| +|新增|NA|模块名: ohos.app.ability.wantAgent
类名: CompleteData
方法名 or 属性名: want|@ohos.app.ability.wantAgent.d.ts| +|新增|NA|模块名: ohos.app.ability.wantAgent
类名: CompleteData
方法名 or 属性名: finalCode|@ohos.app.ability.wantAgent.d.ts| +|新增|NA|模块名: ohos.app.ability.wantAgent
类名: CompleteData
方法名 or 属性名: finalData|@ohos.app.ability.wantAgent.d.ts| +|新增|NA|模块名: ohos.app.ability.wantAgent
类名: CompleteData
方法名 or 属性名: extraInfo|@ohos.app.ability.wantAgent.d.ts| +|新增|NA|模块名: ohos.app.ability.wantConstant
类名: wantConstant|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.wantConstant
类名: Action|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.wantConstant
类名: Action
方法名 or 属性名: ACTION_HOME|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.wantConstant
类名: Action
方法名 or 属性名: ACTION_DIAL|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.wantConstant
类名: Action
方法名 or 属性名: ACTION_SEARCH|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.wantConstant
类名: Action
方法名 or 属性名: ACTION_WIRELESS_SETTINGS|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.wantConstant
类名: Action
方法名 or 属性名: ACTION_MANAGE_APPLICATIONS_SETTINGS|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.wantConstant
类名: Action
方法名 or 属性名: ACTION_APPLICATION_DETAILS_SETTINGS|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.wantConstant
类名: Action
方法名 or 属性名: ACTION_SET_ALARM|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.wantConstant
类名: Action
方法名 or 属性名: ACTION_SHOW_ALARMS|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.wantConstant
类名: Action
方法名 or 属性名: ACTION_SNOOZE_ALARM|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.wantConstant
类名: Action
方法名 or 属性名: ACTION_DISMISS_ALARM|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.wantConstant
类名: Action
方法名 or 属性名: ACTION_DISMISS_TIMER|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.wantConstant
类名: Action
方法名 or 属性名: ACTION_SEND_SMS|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.wantConstant
类名: Action
方法名 or 属性名: ACTION_CHOOSE|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.wantConstant
类名: Action
方法名 or 属性名: ACTION_IMAGE_CAPTURE|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.wantConstant
类名: Action
方法名 or 属性名: ACTION_VIDEO_CAPTURE|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.wantConstant
类名: Action
方法名 or 属性名: ACTION_SELECT|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.wantConstant
类名: Action
方法名 or 属性名: ACTION_SEND_DATA|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.wantConstant
类名: Action
方法名 or 属性名: ACTION_SEND_MULTIPLE_DATA|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.wantConstant
类名: Action
方法名 or 属性名: ACTION_SCAN_MEDIA_FILE|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.wantConstant
类名: Action
方法名 or 属性名: ACTION_VIEW_DATA|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.wantConstant
类名: Action
方法名 or 属性名: ACTION_EDIT_DATA|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.wantConstant
类名: Action
方法名 or 属性名: INTENT_PARAMS_INTENT|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.wantConstant
类名: Action
方法名 or 属性名: INTENT_PARAMS_TITLE|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.wantConstant
类名: Action
方法名 or 属性名: ACTION_FILE_SELECT|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.wantConstant
类名: Action
方法名 or 属性名: PARAMS_STREAM|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.wantConstant
类名: Action
方法名 or 属性名: ACTION_APP_ACCOUNT_AUTH|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.wantConstant
类名: Action
方法名 or 属性名: ACTION_MARKET_DOWNLOAD|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.wantConstant
类名: Action
方法名 or 属性名: ACTION_MARKET_CROWDTEST|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.wantConstant
类名: Action
方法名 or 属性名: DLP_PARAMS_SANDBOX|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.wantConstant
类名: Action
方法名 or 属性名: DLP_PARAMS_BUNDLE_NAME|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.wantConstant
类名: Action
方法名 or 属性名: DLP_PARAMS_MODULE_NAME|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.wantConstant
类名: Action
方法名 or 属性名: DLP_PARAMS_ABILITY_NAME|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.wantConstant
类名: Action
方法名 or 属性名: DLP_PARAMS_INDEX|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.wantConstant
类名: Entity|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.wantConstant
类名: Entity
方法名 or 属性名: ENTITY_DEFAULT|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.wantConstant
类名: Entity
方法名 or 属性名: ENTITY_HOME|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.wantConstant
类名: Entity
方法名 or 属性名: ENTITY_VOICE|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.wantConstant
类名: Entity
方法名 or 属性名: ENTITY_BROWSABLE|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.wantConstant
类名: Entity
方法名 or 属性名: ENTITY_VIDEO|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.wantConstant
类名: Flags|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.wantConstant
类名: Flags
方法名 or 属性名: FLAG_AUTH_READ_URI_PERMISSION|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.wantConstant
类名: Flags
方法名 or 属性名: FLAG_AUTH_WRITE_URI_PERMISSION|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.wantConstant
类名: Flags
方法名 or 属性名: FLAG_ABILITY_FORWARD_RESULT|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.wantConstant
类名: Flags
方法名 or 属性名: FLAG_ABILITY_CONTINUATION|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.wantConstant
类名: Flags
方法名 or 属性名: FLAG_NOT_OHOS_COMPONENT|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.wantConstant
类名: Flags
方法名 or 属性名: FLAG_ABILITY_FORM_ENABLED|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.wantConstant
类名: Flags
方法名 or 属性名: FLAG_AUTH_PERSISTABLE_URI_PERMISSION|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.wantConstant
类名: Flags
方法名 or 属性名: FLAG_AUTH_PREFIX_URI_PERMISSION|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.wantConstant
类名: Flags
方法名 or 属性名: FLAG_ABILITYSLICE_MULTI_DEVICE|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.wantConstant
类名: Flags
方法名 or 属性名: FLAG_START_FOREGROUND_ABILITY|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.wantConstant
类名: Flags
方法名 or 属性名: FLAG_ABILITY_CONTINUATION_REVERSIBLE|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.wantConstant
类名: Flags
方法名 or 属性名: FLAG_INSTALL_ON_DEMAND|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.wantConstant
类名: Flags
方法名 or 属性名: FLAG_INSTALL_WITH_BACKGROUND_MODE|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.wantConstant
类名: Flags
方法名 or 属性名: FLAG_ABILITY_CLEAR_MISSION|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.wantConstant
类名: Flags
方法名 or 属性名: FLAG_ABILITY_NEW_MISSION|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.wantConstant
类名: Flags
方法名 or 属性名: FLAG_ABILITY_MISSION_TOP|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|模块名: ohos.app.form.formBindingData
类名: formBindingData|@ohos.app.form.formBindingData.d.ts| +|新增|NA|模块名: ohos.app.form.formBindingData
类名: formBindingData
方法名 or 属性名: createFormBindingData|@ohos.app.form.formBindingData.d.ts| +|新增|NA|模块名: ohos.app.form.formBindingData
类名: FormBindingData|@ohos.app.form.formBindingData.d.ts| +|新增|NA|模块名: ohos.app.form.formBindingData
类名: FormBindingData
方法名 or 属性名: data|@ohos.app.form.formBindingData.d.ts| +|新增|NA|模块名: ohos.app.form.FormExtensionAbility
类名: FormExtensionAbility|@ohos.app.form.FormExtensionAbility.d.ts| +|新增|NA|模块名: ohos.app.form.FormExtensionAbility
类名: FormExtensionAbility
方法名 or 属性名: context|@ohos.app.form.FormExtensionAbility.d.ts| +|新增|NA|模块名: ohos.app.form.FormExtensionAbility
类名: FormExtensionAbility
方法名 or 属性名: onAddForm|@ohos.app.form.FormExtensionAbility.d.ts| +|新增|NA|模块名: ohos.app.form.FormExtensionAbility
类名: FormExtensionAbility
方法名 or 属性名: onCastToNormalForm|@ohos.app.form.FormExtensionAbility.d.ts| +|新增|NA|模块名: ohos.app.form.FormExtensionAbility
类名: FormExtensionAbility
方法名 or 属性名: onUpdateForm|@ohos.app.form.FormExtensionAbility.d.ts| +|新增|NA|模块名: ohos.app.form.FormExtensionAbility
类名: FormExtensionAbility
方法名 or 属性名: onChangeFormVisibility|@ohos.app.form.FormExtensionAbility.d.ts| +|新增|NA|模块名: ohos.app.form.FormExtensionAbility
类名: FormExtensionAbility
方法名 or 属性名: onFormEvent|@ohos.app.form.FormExtensionAbility.d.ts| +|新增|NA|模块名: ohos.app.form.FormExtensionAbility
类名: FormExtensionAbility
方法名 or 属性名: onRemoveForm|@ohos.app.form.FormExtensionAbility.d.ts| +|新增|NA|模块名: ohos.app.form.FormExtensionAbility
类名: FormExtensionAbility
方法名 or 属性名: onConfigurationUpdate|@ohos.app.form.FormExtensionAbility.d.ts| +|新增|NA|模块名: ohos.app.form.FormExtensionAbility
类名: FormExtensionAbility
方法名 or 属性名: onAcquireFormState|@ohos.app.form.FormExtensionAbility.d.ts| +|新增|NA|模块名: ohos.app.form.FormExtensionAbility
类名: FormExtensionAbility
方法名 or 属性名: onShareForm|@ohos.app.form.FormExtensionAbility.d.ts| +|新增|NA|模块名: ohos.app.form.formHost
类名: formHost|@ohos.app.form.formHost.d.ts| +|新增|NA|模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: deleteForm|@ohos.app.form.formHost.d.ts| +|新增|NA|模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: deleteForm|@ohos.app.form.formHost.d.ts| +|新增|NA|模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: releaseForm|@ohos.app.form.formHost.d.ts| +|新增|NA|模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: releaseForm|@ohos.app.form.formHost.d.ts| +|新增|NA|模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: releaseForm|@ohos.app.form.formHost.d.ts| +|新增|NA|模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: requestForm|@ohos.app.form.formHost.d.ts| +|新增|NA|模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: requestForm|@ohos.app.form.formHost.d.ts| +|新增|NA|模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: castToNormalForm|@ohos.app.form.formHost.d.ts| +|新增|NA|模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: castToNormalForm|@ohos.app.form.formHost.d.ts| +|新增|NA|模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: notifyVisibleForms|@ohos.app.form.formHost.d.ts| +|新增|NA|模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: notifyVisibleForms|@ohos.app.form.formHost.d.ts| +|新增|NA|模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: notifyInvisibleForms|@ohos.app.form.formHost.d.ts| +|新增|NA|模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: notifyInvisibleForms|@ohos.app.form.formHost.d.ts| +|新增|NA|模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: enableFormsUpdate|@ohos.app.form.formHost.d.ts| +|新增|NA|模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: enableFormsUpdate|@ohos.app.form.formHost.d.ts| +|新增|NA|模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: disableFormsUpdate|@ohos.app.form.formHost.d.ts| +|新增|NA|模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: disableFormsUpdate|@ohos.app.form.formHost.d.ts| +|新增|NA|模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: isSystemReady|@ohos.app.form.formHost.d.ts| +|新增|NA|模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: isSystemReady|@ohos.app.form.formHost.d.ts| +|新增|NA|模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: getAllFormsInfo|@ohos.app.form.formHost.d.ts| +|新增|NA|模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: getAllFormsInfo|@ohos.app.form.formHost.d.ts| +|新增|NA|模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: getFormsInfo|@ohos.app.form.formHost.d.ts| +|新增|NA|模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: getFormsInfo|@ohos.app.form.formHost.d.ts| +|新增|NA|模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: getFormsInfo|@ohos.app.form.formHost.d.ts| +|新增|NA|模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: deleteInvalidForms|@ohos.app.form.formHost.d.ts| +|新增|NA|模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: deleteInvalidForms|@ohos.app.form.formHost.d.ts| +|新增|NA|模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: acquireFormState|@ohos.app.form.formHost.d.ts| +|新增|NA|模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: acquireFormState|@ohos.app.form.formHost.d.ts| +|新增|NA|模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: on_formUninstall|@ohos.app.form.formHost.d.ts| +|新增|NA|模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: off_formUninstall|@ohos.app.form.formHost.d.ts| +|新增|NA|模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: notifyFormsVisible|@ohos.app.form.formHost.d.ts| +|新增|NA|模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: notifyFormsVisible|@ohos.app.form.formHost.d.ts| +|新增|NA|模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: notifyFormsEnableUpdate|@ohos.app.form.formHost.d.ts| +|新增|NA|模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: notifyFormsEnableUpdate|@ohos.app.form.formHost.d.ts| +|新增|NA|模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: shareForm|@ohos.app.form.formHost.d.ts| +|新增|NA|模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: shareForm|@ohos.app.form.formHost.d.ts| +|新增|NA|模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: notifyFormsPrivacyProtected|@ohos.app.form.formHost.d.ts| +|新增|NA|模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: notifyFormsPrivacyProtected|@ohos.app.form.formHost.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: formInfo|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: FormInfo|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: FormInfo
方法名 or 属性名: bundleName|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: FormInfo
方法名 or 属性名: moduleName|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: FormInfo
方法名 or 属性名: abilityName|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: FormInfo
方法名 or 属性名: name|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: FormInfo
方法名 or 属性名: description|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: FormInfo
方法名 or 属性名: type|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: FormInfo
方法名 or 属性名: jsComponentName|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: FormInfo
方法名 or 属性名: colorMode|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: FormInfo
方法名 or 属性名: isDefault|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: FormInfo
方法名 or 属性名: updateEnabled|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: FormInfo
方法名 or 属性名: formVisibleNotify|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: FormInfo
方法名 or 属性名: relatedBundleName|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: FormInfo
方法名 or 属性名: scheduledUpdateTime|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: FormInfo
方法名 or 属性名: formConfigAbility|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: FormInfo
方法名 or 属性名: updateDuration|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: FormInfo
方法名 or 属性名: defaultDimension|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: FormInfo
方法名 or 属性名: supportDimensions|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: FormInfo
方法名 or 属性名: customizeData|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: FormType|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: FormType
方法名 or 属性名: JS|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: FormType
方法名 or 属性名: eTS|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: ColorMode|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: ColorMode
方法名 or 属性名: MODE_AUTO|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: ColorMode
方法名 or 属性名: MODE_DARK|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: ColorMode
方法名 or 属性名: MODE_LIGHT|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: FormStateInfo|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: FormStateInfo
方法名 or 属性名: formState|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: FormStateInfo
方法名 or 属性名: want|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: FormState|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: FormState
方法名 or 属性名: UNKNOWN|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: FormState
方法名 or 属性名: DEFAULT|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: FormState
方法名 or 属性名: READY|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: FormParam|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: FormParam
方法名 or 属性名: IDENTITY_KEY|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: FormParam
方法名 or 属性名: DIMENSION_KEY|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: FormParam
方法名 or 属性名: NAME_KEY|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: FormParam
方法名 or 属性名: MODULE_NAME_KEY|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: FormParam
方法名 or 属性名: WIDTH_KEY|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: FormParam
方法名 or 属性名: HEIGHT_KEY|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: FormParam
方法名 or 属性名: TEMPORARY_KEY|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: FormParam
方法名 or 属性名: BUNDLE_NAME_KEY|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: FormParam
方法名 or 属性名: ABILITY_NAME_KEY|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: FormParam
方法名 or 属性名: DEVICE_ID_KEY|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: FormInfoFilter|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: FormInfoFilter
方法名 or 属性名: moduleName|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: FormDimension|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: FormDimension
方法名 or 属性名: Dimension_1_2|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: FormDimension
方法名 or 属性名: Dimension_2_2|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: FormDimension
方法名 or 属性名: Dimension_2_4|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: FormDimension
方法名 or 属性名: Dimension_4_4|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: FormDimension
方法名 or 属性名: Dimension_2_1|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: VisibilityType|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: VisibilityType
方法名 or 属性名: FORM_VISIBLE|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: VisibilityType
方法名 or 属性名: FORM_INVISIBLE|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formProvider
类名: formProvider|@ohos.app.form.formProvider.d.ts| +|新增|NA|模块名: ohos.app.form.formProvider
类名: formProvider
方法名 or 属性名: setFormNextRefreshTime|@ohos.app.form.formProvider.d.ts| +|新增|NA|模块名: ohos.app.form.formProvider
类名: formProvider
方法名 or 属性名: setFormNextRefreshTime|@ohos.app.form.formProvider.d.ts| +|新增|NA|模块名: ohos.app.form.formProvider
类名: formProvider
方法名 or 属性名: updateForm|@ohos.app.form.formProvider.d.ts| +|新增|NA|模块名: ohos.app.form.formProvider
类名: formProvider
方法名 or 属性名: updateForm|@ohos.app.form.formProvider.d.ts| +|新增|NA|模块名: ohos.app.form.formProvider
类名: formProvider
方法名 or 属性名: getFormsInfo|@ohos.app.form.formProvider.d.ts| +|新增|NA|模块名: ohos.app.form.formProvider
类名: formProvider
方法名 or 属性名: getFormsInfo|@ohos.app.form.formProvider.d.ts| +|新增|NA|模块名: ohos.app.form.formProvider
类名: formProvider
方法名 or 属性名: getFormsInfo|@ohos.app.form.formProvider.d.ts| +|新增|NA|模块名: ohos.app.form.formProvider
类名: formProvider
方法名 or 属性名: requestPublishForm|@ohos.app.form.formProvider.d.ts| +|新增|NA|模块名: ohos.app.form.formProvider
类名: formProvider
方法名 or 属性名: requestPublishForm|@ohos.app.form.formProvider.d.ts| +|新增|NA|模块名: ohos.app.form.formProvider
类名: formProvider
方法名 or 属性名: requestPublishForm|@ohos.app.form.formProvider.d.ts| +|新增|NA|模块名: ohos.app.form.formProvider
类名: formProvider
方法名 or 属性名: isRequestPublishFormSupported|@ohos.app.form.formProvider.d.ts| +|新增|NA|模块名: ohos.app.form.formProvider
类名: formProvider
方法名 or 属性名: isRequestPublishFormSupported|@ohos.app.form.formProvider.d.ts| +|新增|NA|模块名: ohos.application.AbilityConstant
类名: LaunchReason
方法名 or 属性名:APP_RECOVERY|@ohos.application.AbilityConstant.d.ts| +|新增|NA|模块名: ohos.application.AbilityConstant
类名: OnSaveResult|@ohos.application.AbilityConstant.d.ts| +|新增|NA|模块名: ohos.application.AbilityConstant
类名: OnSaveResult
方法名 or 属性名:ALL_AGREE|@ohos.application.AbilityConstant.d.ts| +|新增|NA|模块名: ohos.application.AbilityConstant
类名: OnSaveResult
方法名 or 属性名:CONTINUATION_REJECT|@ohos.application.AbilityConstant.d.ts| +|新增|NA|模块名: ohos.application.AbilityConstant
类名: OnSaveResult
方法名 or 属性名:CONTINUATION_MISMATCH|@ohos.application.AbilityConstant.d.ts| +|新增|NA|模块名: ohos.application.AbilityConstant
类名: OnSaveResult
方法名 or 属性名:RECOVERY_AGREE|@ohos.application.AbilityConstant.d.ts| +|新增|NA|模块名: ohos.application.AbilityConstant
类名: OnSaveResult
方法名 or 属性名:RECOVERY_REJECT|@ohos.application.AbilityConstant.d.ts| +|新增|NA|模块名: ohos.application.AbilityConstant
类名: OnSaveResult
方法名 or 属性名:ALL_REJECT|@ohos.application.AbilityConstant.d.ts| +|新增|NA|模块名: ohos.application.AbilityConstant
类名: StateType|@ohos.application.AbilityConstant.d.ts| +|新增|NA|模块名: ohos.application.AbilityConstant
类名: StateType
方法名 or 属性名:CONTINUATION|@ohos.application.AbilityConstant.d.ts| +|新增|NA|模块名: ohos.application.AbilityConstant
类名: StateType
方法名 or 属性名:APP_RECOVERY|@ohos.application.AbilityConstant.d.ts| +|新增|NA|模块名: ohos.application.appManager
类名: ApplicationState|@ohos.application.appManager.d.ts| +|新增|NA|模块名: ohos.application.appManager
类名: ApplicationState
方法名 or 属性名:STATE_CREATE|@ohos.application.appManager.d.ts| +|新增|NA|模块名: ohos.application.appManager
类名: ApplicationState
方法名 or 属性名:STATE_FOREGROUND|@ohos.application.appManager.d.ts| +|新增|NA|模块名: ohos.application.appManager
类名: ApplicationState
方法名 or 属性名:STATE_ACTIVE|@ohos.application.appManager.d.ts| +|新增|NA|模块名: ohos.application.appManager
类名: ApplicationState
方法名 or 属性名:STATE_BACKGROUND|@ohos.application.appManager.d.ts| +|新增|NA|模块名: ohos.application.appManager
类名: ApplicationState
方法名 or 属性名:STATE_DESTROY|@ohos.application.appManager.d.ts| +|新增|NA|模块名: ohos.application.appManager
类名: ProcessState|@ohos.application.appManager.d.ts| +|新增|NA|模块名: ohos.application.appManager
类名: ProcessState
方法名 or 属性名:STATE_CREATE|@ohos.application.appManager.d.ts| +|新增|NA|模块名: ohos.application.appManager
类名: ProcessState
方法名 or 属性名:STATE_FOREGROUND|@ohos.application.appManager.d.ts| +|新增|NA|模块名: ohos.application.appManager
类名: ProcessState
方法名 or 属性名:STATE_ACTIVE|@ohos.application.appManager.d.ts| +|新增|NA|模块名: ohos.application.appManager
类名: ProcessState
方法名 or 属性名:STATE_BACKGROUND|@ohos.application.appManager.d.ts| +|新增|NA|模块名: ohos.application.appManager
类名: ProcessState
方法名 or 属性名:STATE_DESTROY|@ohos.application.appManager.d.ts| +|新增|NA|模块名: ohos.application.ExtensionAbility
类名: ExtensionAbility|@ohos.application.ExtensionAbility.d.ts| +|新增|NA|模块名: ohos.application.ExtensionAbility
类名: ExtensionAbility
方法名 or 属性名: onConfigurationUpdated|@ohos.application.ExtensionAbility.d.ts| +|新增|NA|模块名: ohos.application.ExtensionAbility
类名: ExtensionAbility
方法名 or 属性名: onMemoryLevel|@ohos.application.ExtensionAbility.d.ts| +|新增|NA|模块名: ohos.application.formInfo
类名: FormType
方法名 or 属性名:eTS|@ohos.application.formInfo.d.ts| +|新增|NA|模块名: ohos.application.formInfo
类名: VisibilityType|@ohos.application.formInfo.d.ts| +|新增|NA|模块名: ohos.application.formInfo
类名: VisibilityType
方法名 or 属性名:FORM_VISIBLE|@ohos.application.formInfo.d.ts| +|新增|NA|模块名: ohos.application.formInfo
类名: VisibilityType
方法名 or 属性名:FORM_INVISIBLE|@ohos.application.formInfo.d.ts| +|新增|NA|模块名: context
类名: Context
方法名 or 属性名: getExternalCacheDir|context.d.ts| +|新增|NA|模块名: context
类名: Context
方法名 or 属性名: getExternalCacheDir|context.d.ts| +|新增|NA|方法名 or 属性名:waitAbilityMonitor
函数:waitAbilityMonitor(monitor: AbilityMonitor, callback: AsyncCallback): void;|abilityDelegator.d.ts| +|新增|NA|方法名 or 属性名:waitAbilityMonitor
函数:waitAbilityMonitor(monitor: AbilityMonitor, timeout: number, callback: AsyncCallback): void;|abilityDelegator.d.ts| +|新增|NA|方法名 or 属性名:waitAbilityMonitor
函数:waitAbilityMonitor(monitor: AbilityMonitor, timeout?: number): Promise;|abilityDelegator.d.ts| +|新增|NA|方法名 or 属性名:getAbilityState
函数:getAbilityState(ability: UIAbility): number;|abilityDelegator.d.ts| +|新增|NA|方法名 or 属性名:getCurrentTopAbility
函数:getCurrentTopAbility(callback: AsyncCallback): void;|abilityDelegator.d.ts| +|新增|NA|方法名 or 属性名:getCurrentTopAbility
函数:getCurrentTopAbility(): Promise|abilityDelegator.d.ts| +|新增|NA|方法名 or 属性名:doAbilityForeground
函数:doAbilityForeground(ability: UIAbility, callback: AsyncCallback): void;|abilityDelegator.d.ts| +|新增|NA|方法名 or 属性名:doAbilityForeground
函数:doAbilityForeground(ability: UIAbility): Promise;|abilityDelegator.d.ts| +|新增|NA|方法名 or 属性名:doAbilityBackground
函数:doAbilityBackground(ability: UIAbility, callback: AsyncCallback): void;|abilityDelegator.d.ts| +|新增|NA|方法名 or 属性名:doAbilityBackground
函数:doAbilityBackground(ability: UIAbility): Promise;|abilityDelegator.d.ts| +|新增|NA|方法名 or 属性名:onAbilityCreate
函数:onAbilityCreate?:(ability: UIAbility) => void;|abilityMonitor.d.ts| +|新增|NA|方法名 or 属性名:onAbilityForeground
函数:onAbilityForeground?:(ability: UIAbility) => void;|abilityMonitor.d.ts| +|新增|NA|方法名 or 属性名:onAbilityBackground
函数:onAbilityBackground?:(ability: UIAbility) => void;|abilityMonitor.d.ts| +|新增|NA|方法名 or 属性名:onAbilityDestroy
函数:onAbilityDestroy?:(ability: UIAbility) => void;|abilityMonitor.d.ts| +|新增|NA|方法名 or 属性名:onWindowStageCreate
函数:onWindowStageCreate?:(ability: UIAbility) => void;|abilityMonitor.d.ts| +|新增|NA|方法名 or 属性名:onWindowStageRestore
函数:onWindowStageRestore?:(ability: UIAbility) => void;|abilityMonitor.d.ts| +|新增|NA|方法名 or 属性名:onWindowStageDestroy
函数:onWindowStageDestroy?:(ability: UIAbility) => void;|abilityMonitor.d.ts| +|新增|NA|模块名: ApplicationStateObserver
类名: ApplicationStateObserver
方法名 or 属性名: onProcessStateChanged|ApplicationStateObserver.d.ts| +|新增|NA|模块名: ContinueCallback
类名: ContinueCallback|ContinueCallback.d.ts| +|新增|NA|模块名: ContinueCallback
类名: ContinueCallback
方法名 or 属性名: onContinueDone|ContinueCallback.d.ts| +|新增|NA|模块名: ContinueDeviceInfo
类名: ContinueDeviceInfo|ContinueDeviceInfo.d.ts| +|新增|NA|模块名: ContinueDeviceInfo
类名: ContinueDeviceInfo
方法名 or 属性名: srcDeviceId|ContinueDeviceInfo.d.ts| +|新增|NA|模块名: ContinueDeviceInfo
类名: ContinueDeviceInfo
方法名 or 属性名: dstDeviceId|ContinueDeviceInfo.d.ts| +|新增|NA|模块名: ContinueDeviceInfo
类名: ContinueDeviceInfo
方法名 or 属性名: missionId|ContinueDeviceInfo.d.ts| +|新增|NA|模块名: ContinueDeviceInfo
类名: ContinueDeviceInfo
方法名 or 属性名: wantParam|ContinueDeviceInfo.d.ts| +|新增|NA|模块名: MissionListener
类名: MissionListener
方法名 or 属性名: onMissionLabelUpdated|MissionListener.d.ts| +|新增|NA|模块名: MissionListener
类名: MissionListener
方法名 or 属性名: onMissionClosed|MissionListener.d.ts| +|新增|NA|模块名: ProcessData
类名: ProcessData
方法名 or 属性名: state|ProcessData.d.ts| +|新增|NA|模块名: ProcessData
类名: ProcessData
方法名 or 属性名: isContinuousTask|ProcessData.d.ts| +|新增|NA|模块名: ProcessData
类名: ProcessData
方法名 or 属性名: isKeepAlive|ProcessData.d.ts| +|新增|NA|模块名: UIAbilityContext
类名: UIAbilityContext|UIAbilityContext.d.ts| +|新增|NA|模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: abilityInfo|UIAbilityContext.d.ts| +|新增|NA|模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: currentHapModuleInfo|UIAbilityContext.d.ts| +|新增|NA|模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: config|UIAbilityContext.d.ts| +|新增|NA|模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: startAbility|UIAbilityContext.d.ts| +|新增|NA|模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: startAbility|UIAbilityContext.d.ts| +|新增|NA|模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: startAbility|UIAbilityContext.d.ts| +|新增|NA|模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: startAbilityByCall|UIAbilityContext.d.ts| +|新增|NA|模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: startAbilityWithAccount|UIAbilityContext.d.ts| +|新增|NA|模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: startAbilityWithAccount|UIAbilityContext.d.ts| +|新增|NA|模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: startAbilityWithAccount|UIAbilityContext.d.ts| +|新增|NA|模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: startAbilityForResult|UIAbilityContext.d.ts| +|新增|NA|模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: startAbilityForResult|UIAbilityContext.d.ts| +|新增|NA|模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: startAbilityForResult|UIAbilityContext.d.ts| +|新增|NA|模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: startAbilityForResultWithAccount|UIAbilityContext.d.ts| +|新增|NA|模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: startAbilityForResultWithAccount|UIAbilityContext.d.ts| +|新增|NA|模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: startAbilityForResultWithAccount|UIAbilityContext.d.ts| +|新增|NA|模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: startServiceExtensionAbility|UIAbilityContext.d.ts| +|新增|NA|模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: startServiceExtensionAbility|UIAbilityContext.d.ts| +|新增|NA|模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: startServiceExtensionAbilityWithAccount|UIAbilityContext.d.ts| +|新增|NA|模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: startServiceExtensionAbilityWithAccount|UIAbilityContext.d.ts| +|新增|NA|模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: stopServiceExtensionAbility|UIAbilityContext.d.ts| +|新增|NA|模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: stopServiceExtensionAbility|UIAbilityContext.d.ts| +|新增|NA|模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: stopServiceExtensionAbilityWithAccount|UIAbilityContext.d.ts| +|新增|NA|模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: stopServiceExtensionAbilityWithAccount|UIAbilityContext.d.ts| +|新增|NA|模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: terminateSelf|UIAbilityContext.d.ts| +|新增|NA|模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: terminateSelf|UIAbilityContext.d.ts| +|新增|NA|模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: terminateSelfWithResult|UIAbilityContext.d.ts| +|新增|NA|模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: terminateSelfWithResult|UIAbilityContext.d.ts| +|新增|NA|模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: connectServiceExtensionAbility|UIAbilityContext.d.ts| +|新增|NA|模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: connectServiceExtensionAbilityWithAccount|UIAbilityContext.d.ts| +|新增|NA|模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: disconnectServiceExtensionAbility|UIAbilityContext.d.ts| +|新增|NA|模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: disconnectServiceExtensionAbility|UIAbilityContext.d.ts| +|新增|NA|模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: setMissionLabel|UIAbilityContext.d.ts| +|新增|NA|模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: setMissionLabel|UIAbilityContext.d.ts| +|新增|NA|模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: setMissionIcon|UIAbilityContext.d.ts| +|新增|NA|模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: setMissionIcon|UIAbilityContext.d.ts| +|新增|NA|模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: requestPermissionsFromUser|UIAbilityContext.d.ts| +|新增|NA|模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: requestPermissionsFromUser|UIAbilityContext.d.ts| +|新增|NA|模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: restoreWindowStage|UIAbilityContext.d.ts| +|新增|NA|模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: isTerminating|UIAbilityContext.d.ts| +|删除|模块名: ohos.application.context
类名: AreaMode|NA|@ohos.application.context.d.ts| +|删除|模块名: ohos.application.context
类名: AreaMode
方法名 or 属性名:EL1|NA|@ohos.application.context.d.ts| +|删除|模块名: ohos.application.context
类名: AreaMode
方法名 or 属性名:EL2|NA|@ohos.application.context.d.ts| |model有变化|类名:ability
model:@StageModelOnly|类名:ability
model:@FAModelOnly|@ohos.ability.ability.d.ts| |model有变化|类名:AbilityContext
model:@StageModelOnly|类名:AbilityContext
model:@stagemodelonly|AbilityContext.d.ts| |model有变化|方法名 or 属性名:abilityInfo
model:@StageModelOnly|方法名 or 属性名:abilityInfo
model:@stagemodelonly|AbilityContext.d.ts| @@ -755,77 +720,77 @@ |废弃版本有变化|方法名 or 属性名:disconnectAbility
废弃版本:N/A|方法名 or 属性名:disconnectAbility
废弃版本:9|ServiceExtensionContext.d.ts| |起始版本有变化|类名:AbilityDelegator
起始版本:8|类名:AbilityDelegator
起始版本:9|abilityDelegator.d.ts| |删除(权限)|类名:distributedMissionManager
权限:ohos.permission.MANAGE_MISSIONS|类名:distributedMissionManager
权限:N/A|@ohos.distributedMissionManager.d.ts| -|新增(错误码)||方法名 or 属性名:on_deviceConnect
错误码内容:401,16600001,16600002,16600004|@ohos.continuation.continuationManager.d.ts| -|新增(错误码)||方法名 or 属性名:on_deviceDisconnect
错误码内容:401,16600001,16600002,16600004|@ohos.continuation.continuationManager.d.ts| -|新增(错误码)||方法名 or 属性名:startSyncRemoteMissions
错误码内容:201,401|@ohos.distributedMissionManager.d.ts| -|新增(错误码)||方法名 or 属性名:stopSyncRemoteMissions
错误码内容:201,401|@ohos.distributedMissionManager.d.ts| -|新增(错误码)||方法名 or 属性名:registerMissionListener
错误码内容:201,401|@ohos.distributedMissionManager.d.ts| -|新增(错误码)||方法名 or 属性名:startAbility
错误码内容:401|AbilityContext.d.ts| -|新增(错误码)||方法名 or 属性名:startAbility
错误码内容:401|AbilityContext.d.ts| -|新增(错误码)||方法名 or 属性名:startAbility
错误码内容:401|AbilityContext.d.ts| -|新增(错误码)||方法名 or 属性名:startAbilityByCall
错误码内容:401|AbilityContext.d.ts| -|新增(错误码)||方法名 or 属性名:startAbilityWithAccount
错误码内容:401|AbilityContext.d.ts| -|新增(错误码)||方法名 or 属性名:startAbilityWithAccount
错误码内容:401|AbilityContext.d.ts| -|新增(错误码)||方法名 or 属性名:startAbilityWithAccount
错误码内容:401|AbilityContext.d.ts| -|新增(错误码)||方法名 or 属性名:startAbilityForResult
错误码内容:401|AbilityContext.d.ts| -|新增(错误码)||方法名 or 属性名:startAbilityForResult
错误码内容:401|AbilityContext.d.ts| -|新增(错误码)||方法名 or 属性名:startAbilityForResult
错误码内容:401|AbilityContext.d.ts| -|新增(错误码)||方法名 or 属性名:startAbilityForResultWithAccount
错误码内容:401|AbilityContext.d.ts| -|新增(错误码)||方法名 or 属性名:startAbilityForResultWithAccount
错误码内容:401|AbilityContext.d.ts| -|新增(错误码)||方法名 or 属性名:startAbilityForResultWithAccount
错误码内容:401|AbilityContext.d.ts| -|新增(错误码)||方法名 or 属性名:startServiceExtensionAbility
错误码内容:401|AbilityContext.d.ts| -|新增(错误码)||方法名 or 属性名:startServiceExtensionAbility
错误码内容:401|AbilityContext.d.ts| -|新增(错误码)||方法名 or 属性名:startServiceExtensionAbilityWithAccount
错误码内容:401|AbilityContext.d.ts| -|新增(错误码)||方法名 or 属性名:startServiceExtensionAbilityWithAccount
错误码内容:401|AbilityContext.d.ts| -|新增(错误码)||方法名 or 属性名:stopServiceExtensionAbility
错误码内容:401|AbilityContext.d.ts| -|新增(错误码)||方法名 or 属性名:stopServiceExtensionAbility
错误码内容:401|AbilityContext.d.ts| -|新增(错误码)||方法名 or 属性名:stopServiceExtensionAbilityWithAccount
错误码内容:401|AbilityContext.d.ts| -|新增(错误码)||方法名 or 属性名:stopServiceExtensionAbilityWithAccount
错误码内容:401|AbilityContext.d.ts| -|新增(错误码)||方法名 or 属性名:terminateSelf
错误码内容:401|AbilityContext.d.ts| -|新增(错误码)||方法名 or 属性名:terminateSelf
错误码内容:401|AbilityContext.d.ts| -|新增(错误码)||方法名 or 属性名:terminateSelfWithResult
错误码内容:401|AbilityContext.d.ts| -|新增(错误码)||方法名 or 属性名:terminateSelfWithResult
错误码内容:401|AbilityContext.d.ts| -|新增(错误码)||方法名 or 属性名:setMissionLabel
错误码内容:401|AbilityContext.d.ts| -|新增(错误码)||方法名 or 属性名:setMissionIcon
错误码内容:401|AbilityContext.d.ts| -|新增(错误码)||方法名 or 属性名:addAbilityMonitor
错误码内容:401|abilityDelegator.d.ts| -|新增(错误码)||方法名 or 属性名:addAbilityMonitor
错误码内容:401|abilityDelegator.d.ts| -|新增(错误码)||方法名 or 属性名:addAbilityStageMonitor
错误码内容:401|abilityDelegator.d.ts| -|新增(错误码)||方法名 or 属性名:addAbilityStageMonitor
错误码内容:401|abilityDelegator.d.ts| -|新增(错误码)||方法名 or 属性名:removeAbilityMonitor
错误码内容:401|abilityDelegator.d.ts| -|新增(错误码)||方法名 or 属性名:removeAbilityMonitor
错误码内容:401|abilityDelegator.d.ts| -|新增(错误码)||方法名 or 属性名:removeAbilityStageMonitor
错误码内容:401|abilityDelegator.d.ts| -|新增(错误码)||方法名 or 属性名:removeAbilityStageMonitor
错误码内容:401|abilityDelegator.d.ts| -|新增(错误码)||方法名 or 属性名:waitAbilityStageMonitor
错误码内容:401|abilityDelegator.d.ts| -|新增(错误码)||方法名 or 属性名:waitAbilityStageMonitor
错误码内容:401|abilityDelegator.d.ts| -|新增(错误码)||方法名 or 属性名:waitAbilityStageMonitor
错误码内容:401|abilityDelegator.d.ts| -|新增(错误码)||方法名 or 属性名:startAbility
错误码内容:401|abilityDelegator.d.ts| -|新增(错误码)||方法名 or 属性名:startAbility
错误码内容:401|abilityDelegator.d.ts| -|新增(错误码)||方法名 or 属性名:printSync
错误码内容:401|abilityDelegator.d.ts| -|新增(错误码)||方法名 or 属性名:finishTest
错误码内容:401|abilityDelegator.d.ts| -|新增(错误码)||方法名 or 属性名:finishTest
错误码内容:401|abilityDelegator.d.ts| -|新增(错误码)||方法名 or 属性名:createBundleContext
错误码内容:401|Context.d.ts| -|新增(错误码)||方法名 or 属性名:createModuleContext
错误码内容:401|Context.d.ts| -|新增(错误码)||方法名 or 属性名:createModuleContext
错误码内容:401|Context.d.ts| -|新增(错误码)||方法名 or 属性名:on
错误码内容:401|EventHub.d.ts| -|新增(错误码)||方法名 or 属性名:off
错误码内容:401|EventHub.d.ts| -|新增(错误码)||方法名 or 属性名:emit
错误码内容:401|EventHub.d.ts| -|新增(错误码)||方法名 or 属性名:startAbility
错误码内容:401|ServiceExtensionContext.d.ts| -|新增(错误码)||方法名 or 属性名:startAbility
错误码内容:401|ServiceExtensionContext.d.ts| -|新增(错误码)||方法名 or 属性名:startAbility
错误码内容:401|ServiceExtensionContext.d.ts| -|新增(错误码)||方法名 or 属性名:startAbilityWithAccount
错误码内容:401|ServiceExtensionContext.d.ts| -|新增(错误码)||方法名 or 属性名:startAbilityWithAccount
错误码内容:401|ServiceExtensionContext.d.ts| -|新增(错误码)||方法名 or 属性名:startAbilityWithAccount
错误码内容:401|ServiceExtensionContext.d.ts| -|新增(错误码)||方法名 or 属性名:startServiceExtensionAbility
错误码内容:401|ServiceExtensionContext.d.ts| -|新增(错误码)||方法名 or 属性名:startServiceExtensionAbility
错误码内容:401|ServiceExtensionContext.d.ts| -|新增(错误码)||方法名 or 属性名:startServiceExtensionAbilityWithAccount
错误码内容:401|ServiceExtensionContext.d.ts| -|新增(错误码)||方法名 or 属性名:startServiceExtensionAbilityWithAccount
错误码内容:401|ServiceExtensionContext.d.ts| -|新增(错误码)||方法名 or 属性名:stopServiceExtensionAbility
错误码内容:401|ServiceExtensionContext.d.ts| -|新增(错误码)||方法名 or 属性名:stopServiceExtensionAbility
错误码内容:401|ServiceExtensionContext.d.ts| -|新增(错误码)||方法名 or 属性名:stopServiceExtensionAbilityWithAccount
错误码内容:401|ServiceExtensionContext.d.ts| -|新增(错误码)||方法名 or 属性名:stopServiceExtensionAbilityWithAccount
错误码内容:401|ServiceExtensionContext.d.ts| -|新增(错误码)||方法名 or 属性名:terminateSelf
错误码内容:401|ServiceExtensionContext.d.ts| -|新增(错误码)||方法名 or 属性名:terminateSelf
错误码内容:401|ServiceExtensionContext.d.ts| -|新增(错误码)||方法名 or 属性名:startAbilityByCall
错误码内容:401|ServiceExtensionContext.d.ts| +|新增(错误码)|NA|方法名 or 属性名:on_deviceConnect
错误码内容:401,16600001,16600002,16600004|@ohos.continuation.continuationManager.d.ts| +|新增(错误码)|NA|方法名 or 属性名:on_deviceDisconnect
错误码内容:401,16600001,16600002,16600004|@ohos.continuation.continuationManager.d.ts| +|新增(错误码)|NA|方法名 or 属性名:startSyncRemoteMissions
错误码内容:201,401|@ohos.distributedMissionManager.d.ts| +|新增(错误码)|NA|方法名 or 属性名:stopSyncRemoteMissions
错误码内容:201,401|@ohos.distributedMissionManager.d.ts| +|新增(错误码)|NA|方法名 or 属性名:registerMissionListener
错误码内容:201,401|@ohos.distributedMissionManager.d.ts| +|新增(错误码)|NA|方法名 or 属性名:startAbility
错误码内容:401|AbilityContext.d.ts| +|新增(错误码)|NA|方法名 or 属性名:startAbility
错误码内容:401|AbilityContext.d.ts| +|新增(错误码)|NA|方法名 or 属性名:startAbility
错误码内容:401|AbilityContext.d.ts| +|新增(错误码)|NA|方法名 or 属性名:startAbilityByCall
错误码内容:401|AbilityContext.d.ts| +|新增(错误码)|NA|方法名 or 属性名:startAbilityWithAccount
错误码内容:401|AbilityContext.d.ts| +|新增(错误码)|NA|方法名 or 属性名:startAbilityWithAccount
错误码内容:401|AbilityContext.d.ts| +|新增(错误码)|NA|方法名 or 属性名:startAbilityWithAccount
错误码内容:401|AbilityContext.d.ts| +|新增(错误码)|NA|方法名 or 属性名:startAbilityForResult
错误码内容:401|AbilityContext.d.ts| +|新增(错误码)|NA|方法名 or 属性名:startAbilityForResult
错误码内容:401|AbilityContext.d.ts| +|新增(错误码)|NA|方法名 or 属性名:startAbilityForResult
错误码内容:401|AbilityContext.d.ts| +|新增(错误码)|NA|方法名 or 属性名:startAbilityForResultWithAccount
错误码内容:401|AbilityContext.d.ts| +|新增(错误码)|NA|方法名 or 属性名:startAbilityForResultWithAccount
错误码内容:401|AbilityContext.d.ts| +|新增(错误码)|NA|方法名 or 属性名:startAbilityForResultWithAccount
错误码内容:401|AbilityContext.d.ts| +|新增(错误码)|NA|方法名 or 属性名:startServiceExtensionAbility
错误码内容:401|AbilityContext.d.ts| +|新增(错误码)|NA|方法名 or 属性名:startServiceExtensionAbility
错误码内容:401|AbilityContext.d.ts| +|新增(错误码)|NA|方法名 or 属性名:startServiceExtensionAbilityWithAccount
错误码内容:401|AbilityContext.d.ts| +|新增(错误码)|NA|方法名 or 属性名:startServiceExtensionAbilityWithAccount
错误码内容:401|AbilityContext.d.ts| +|新增(错误码)|NA|方法名 or 属性名:stopServiceExtensionAbility
错误码内容:401|AbilityContext.d.ts| +|新增(错误码)|NA|方法名 or 属性名:stopServiceExtensionAbility
错误码内容:401|AbilityContext.d.ts| +|新增(错误码)|NA|方法名 or 属性名:stopServiceExtensionAbilityWithAccount
错误码内容:401|AbilityContext.d.ts| +|新增(错误码)|NA|方法名 or 属性名:stopServiceExtensionAbilityWithAccount
错误码内容:401|AbilityContext.d.ts| +|新增(错误码)|NA|方法名 or 属性名:terminateSelf
错误码内容:401|AbilityContext.d.ts| +|新增(错误码)|NA|方法名 or 属性名:terminateSelf
错误码内容:401|AbilityContext.d.ts| +|新增(错误码)|NA|方法名 or 属性名:terminateSelfWithResult
错误码内容:401|AbilityContext.d.ts| +|新增(错误码)|NA|方法名 or 属性名:terminateSelfWithResult
错误码内容:401|AbilityContext.d.ts| +|新增(错误码)|NA|方法名 or 属性名:setMissionLabel
错误码内容:401|AbilityContext.d.ts| +|新增(错误码)|NA|方法名 or 属性名:setMissionIcon
错误码内容:401|AbilityContext.d.ts| +|新增(错误码)|NA|方法名 or 属性名:addAbilityMonitor
错误码内容:401|abilityDelegator.d.ts| +|新增(错误码)|NA|方法名 or 属性名:addAbilityMonitor
错误码内容:401|abilityDelegator.d.ts| +|新增(错误码)|NA|方法名 or 属性名:addAbilityStageMonitor
错误码内容:401|abilityDelegator.d.ts| +|新增(错误码)|NA|方法名 or 属性名:addAbilityStageMonitor
错误码内容:401|abilityDelegator.d.ts| +|新增(错误码)|NA|方法名 or 属性名:removeAbilityMonitor
错误码内容:401|abilityDelegator.d.ts| +|新增(错误码)|NA|方法名 or 属性名:removeAbilityMonitor
错误码内容:401|abilityDelegator.d.ts| +|新增(错误码)|NA|方法名 or 属性名:removeAbilityStageMonitor
错误码内容:401|abilityDelegator.d.ts| +|新增(错误码)|NA|方法名 or 属性名:removeAbilityStageMonitor
错误码内容:401|abilityDelegator.d.ts| +|新增(错误码)|NA|方法名 or 属性名:waitAbilityStageMonitor
错误码内容:401|abilityDelegator.d.ts| +|新增(错误码)|NA|方法名 or 属性名:waitAbilityStageMonitor
错误码内容:401|abilityDelegator.d.ts| +|新增(错误码)|NA|方法名 or 属性名:waitAbilityStageMonitor
错误码内容:401|abilityDelegator.d.ts| +|新增(错误码)|NA|方法名 or 属性名:startAbility
错误码内容:401|abilityDelegator.d.ts| +|新增(错误码)|NA|方法名 or 属性名:startAbility
错误码内容:401|abilityDelegator.d.ts| +|新增(错误码)|NA|方法名 or 属性名:printSync
错误码内容:401|abilityDelegator.d.ts| +|新增(错误码)|NA|方法名 or 属性名:finishTest
错误码内容:401|abilityDelegator.d.ts| +|新增(错误码)|NA|方法名 or 属性名:finishTest
错误码内容:401|abilityDelegator.d.ts| +|新增(错误码)|NA|方法名 or 属性名:createBundleContext
错误码内容:401|Context.d.ts| +|新增(错误码)|NA|方法名 or 属性名:createModuleContext
错误码内容:401|Context.d.ts| +|新增(错误码)|NA|方法名 or 属性名:createModuleContext
错误码内容:401|Context.d.ts| +|新增(错误码)|NA|方法名 or 属性名:on
错误码内容:401|EventHub.d.ts| +|新增(错误码)|NA|方法名 or 属性名:off
错误码内容:401|EventHub.d.ts| +|新增(错误码)|NA|方法名 or 属性名:emit
错误码内容:401|EventHub.d.ts| +|新增(错误码)|NA|方法名 or 属性名:startAbility
错误码内容:401|ServiceExtensionContext.d.ts| +|新增(错误码)|NA|方法名 or 属性名:startAbility
错误码内容:401|ServiceExtensionContext.d.ts| +|新增(错误码)|NA|方法名 or 属性名:startAbility
错误码内容:401|ServiceExtensionContext.d.ts| +|新增(错误码)|NA|方法名 or 属性名:startAbilityWithAccount
错误码内容:401|ServiceExtensionContext.d.ts| +|新增(错误码)|NA|方法名 or 属性名:startAbilityWithAccount
错误码内容:401|ServiceExtensionContext.d.ts| +|新增(错误码)|NA|方法名 or 属性名:startAbilityWithAccount
错误码内容:401|ServiceExtensionContext.d.ts| +|新增(错误码)|NA|方法名 or 属性名:startServiceExtensionAbility
错误码内容:401|ServiceExtensionContext.d.ts| +|新增(错误码)|NA|方法名 or 属性名:startServiceExtensionAbility
错误码内容:401|ServiceExtensionContext.d.ts| +|新增(错误码)|NA|方法名 or 属性名:startServiceExtensionAbilityWithAccount
错误码内容:401|ServiceExtensionContext.d.ts| +|新增(错误码)|NA|方法名 or 属性名:startServiceExtensionAbilityWithAccount
错误码内容:401|ServiceExtensionContext.d.ts| +|新增(错误码)|NA|方法名 or 属性名:stopServiceExtensionAbility
错误码内容:401|ServiceExtensionContext.d.ts| +|新增(错误码)|NA|方法名 or 属性名:stopServiceExtensionAbility
错误码内容:401|ServiceExtensionContext.d.ts| +|新增(错误码)|NA|方法名 or 属性名:stopServiceExtensionAbilityWithAccount
错误码内容:401|ServiceExtensionContext.d.ts| +|新增(错误码)|NA|方法名 or 属性名:stopServiceExtensionAbilityWithAccount
错误码内容:401|ServiceExtensionContext.d.ts| +|新增(错误码)|NA|方法名 or 属性名:terminateSelf
错误码内容:401|ServiceExtensionContext.d.ts| +|新增(错误码)|NA|方法名 or 属性名:terminateSelf
错误码内容:401|ServiceExtensionContext.d.ts| +|新增(错误码)|NA|方法名 or 属性名:startAbilityByCall
错误码内容:401|ServiceExtensionContext.d.ts| |新增(权限)|方法名 or 属性名:startSyncRemoteMissions
权限:N/A|方法名 or 属性名:startSyncRemoteMissions
权限:ohos.permission.MANAGE_MISSIONS|@ohos.distributedMissionManager.d.ts| |新增(权限)|方法名 or 属性名:startSyncRemoteMissions
权限:N/A|方法名 or 属性名:startSyncRemoteMissions
权限:ohos.permission.MANAGE_MISSIONS|@ohos.distributedMissionManager.d.ts| |新增(权限)|方法名 or 属性名:stopSyncRemoteMissions
权限:N/A|方法名 or 属性名:stopSyncRemoteMissions
权限:ohos.permission.MANAGE_MISSIONS|@ohos.distributedMissionManager.d.ts| diff --git a/zh-cn/release-notes/api-diff/monthly-202210/js-apidiff-accessibility.md b/zh-cn/release-notes/api-diff/monthly-202210/js-apidiff-accessibility.md index 196923d9263ad1c4510592927242b1f8a7ad7ce0..0b1f2b441ff2108ef7a42fb483b97e62bc39f15e 100644 --- a/zh-cn/release-notes/api-diff/monthly-202210/js-apidiff-accessibility.md +++ b/zh-cn/release-notes/api-diff/monthly-202210/js-apidiff-accessibility.md @@ -1,52 +1,46 @@ -| 操作 | 新版本 | 旧版本 | d.ts文件 | +| 操作 | 旧版本 | 新版本 | d.ts文件 | | ---- | ------ | ------ | -------- | -|新增||模块名:ohos.accessibility.config
类名:config
方法名 or 属性名:on_enabledAccessibilityExtensionListChange|@ohos.accessibility.config.d.ts| -|新增||模块名:ohos.accessibility.config
类名:config
方法名 or 属性名:off_enabledAccessibilityExtensionListChange|@ohos.accessibility.config.d.ts| -|新增||模块名:ohos.accessibility
类名:accessibility
方法名 or 属性名:getAccessibilityExtensionList|@ohos.accessibility.d.ts| -|新增||模块名:ohos.accessibility
类名:accessibility
方法名 or 属性名:getAccessibilityExtensionList|@ohos.accessibility.d.ts| -|新增||模块名:ohos.accessibility
类名:accessibility
方法名 or 属性名:sendAccessibilityEvent|@ohos.accessibility.d.ts| -|新增||模块名:ohos.accessibility
类名:accessibility
方法名 or 属性名:sendAccessibilityEvent|@ohos.accessibility.d.ts| -|新增||模块名: ohos.accessibility.GesturePath
类名: GesturePath|@ohos.accessibility.GesturePath.d.ts| -|新增||模块名: ohos.accessibility.GesturePath
类名: GesturePath
方法名 or 属性名: ructor(durationTime|@ohos.accessibility.GesturePath.d.ts| -|新增||模块名: ohos.accessibility.GesturePath
类名: GesturePath
方法名 or 属性名: points|@ohos.accessibility.GesturePath.d.ts| -|新增||模块名: ohos.accessibility.GesturePath
类名: GesturePath
方法名 or 属性名: durationTime|@ohos.accessibility.GesturePath.d.ts| -|新增||模块名: ohos.accessibility.GesturePoint
类名: GesturePoint|@ohos.accessibility.GesturePoint.d.ts| -|新增||模块名: ohos.accessibility.GesturePoint
类名: GesturePoint
方法名 or 属性名: ructor(positionX|@ohos.accessibility.GesturePoint.d.ts| -|新增||模块名: ohos.accessibility.GesturePoint
类名: GesturePoint
方法名 or 属性名: positionX|@ohos.accessibility.GesturePoint.d.ts| -|新增||模块名: ohos.accessibility.GesturePoint
类名: GesturePoint
方法名 or 属性名: positionY|@ohos.accessibility.GesturePoint.d.ts| -|新增||方法名 or 属性名:performAction
函数:performAction(actionName: string, parameters?: object): Promise;|AccessibilityExtensionContext.d.ts| -|新增||方法名 or 属性名:performAction
函数:performAction(actionName: string, callback: AsyncCallback): void;|AccessibilityExtensionContext.d.ts| -|新增||方法名 or 属性名:performAction
函数:performAction(actionName: string, parameters: object, callback: AsyncCallback): void;|AccessibilityExtensionContext.d.ts| -|删除|模块名:ohos.accessibility.config
类名:config
方法名 or 属性名:on_enableAbilityListsStateChanged||@ohos.accessibility.config.d.ts| -|删除|模块名:ohos.accessibility.config
类名:config
方法名 or 属性名:off_enableAbilityListsStateChanged||@ohos.accessibility.config.d.ts| -|删除|模块名: ohos.application.AccessibilityExtensionAbility
类名: GesturePath||@ohos.application.AccessibilityExtensionAbility.d.ts| -|删除|模块名: ohos.application.AccessibilityExtensionAbility
类名: GesturePath
方法名 or 属性名: points||@ohos.application.AccessibilityExtensionAbility.d.ts| -|删除|模块名: ohos.application.AccessibilityExtensionAbility
类名: GesturePath
方法名 or 属性名: durationTime||@ohos.application.AccessibilityExtensionAbility.d.ts| -|删除|模块名: ohos.application.AccessibilityExtensionAbility
类名: GesturePoint||@ohos.application.AccessibilityExtensionAbility.d.ts| -|删除|模块名: ohos.application.AccessibilityExtensionAbility
类名: GesturePoint
方法名 or 属性名: positionX||@ohos.application.AccessibilityExtensionAbility.d.ts| -|删除|模块名: ohos.application.AccessibilityExtensionAbility
类名: GesturePoint
方法名 or 属性名: positionY||@ohos.application.AccessibilityExtensionAbility.d.ts| +|新增|NA|模块名: ohos.accessibility.GesturePath
类名: GesturePath|@ohos.accessibility.GesturePath.d.ts| +|新增|NA|模块名: ohos.accessibility.GesturePath
类名: GesturePath
方法名 or 属性名: ructor(durationTime|@ohos.accessibility.GesturePath.d.ts| +|新增|NA|模块名: ohos.accessibility.GesturePath
类名: GesturePath
方法名 or 属性名: points|@ohos.accessibility.GesturePath.d.ts| +|新增|NA|模块名: ohos.accessibility.GesturePath
类名: GesturePath
方法名 or 属性名: durationTime|@ohos.accessibility.GesturePath.d.ts| +|新增|NA|模块名: ohos.accessibility.GesturePoint
类名: GesturePoint|@ohos.accessibility.GesturePoint.d.ts| +|新增|NA|模块名: ohos.accessibility.GesturePoint
类名: GesturePoint
方法名 or 属性名: ructor(positionX|@ohos.accessibility.GesturePoint.d.ts| +|新增|NA|模块名: ohos.accessibility.GesturePoint
类名: GesturePoint
方法名 or 属性名: positionX|@ohos.accessibility.GesturePoint.d.ts| +|新增|NA|模块名: ohos.accessibility.GesturePoint
类名: GesturePoint
方法名 or 属性名: positionY|@ohos.accessibility.GesturePoint.d.ts| +|新增|NA|方法名 or 属性名:performAction
函数:performAction(actionName: string, parameters?: object): Promise;|AccessibilityExtensionContext.d.ts| +|新增|NA|方法名 or 属性名:performAction
函数:performAction(actionName: string, callback: AsyncCallback): void;|AccessibilityExtensionContext.d.ts| +|新增|NA|方法名 or 属性名:performAction
函数:performAction(actionName: string, parameters: object, callback: AsyncCallback): void;|AccessibilityExtensionContext.d.ts| +|删除|模块名:ohos.accessibility.config
类名:config
方法名 or 属性名:on_enableAbilityListsStateChanged|NA|@ohos.accessibility.config.d.ts| +|删除|模块名:ohos.accessibility.config
类名:config
方法名 or 属性名:off_enableAbilityListsStateChanged|NA|@ohos.accessibility.config.d.ts| +|删除|模块名: ohos.application.AccessibilityExtensionAbility
类名: GesturePath|NA|@ohos.application.AccessibilityExtensionAbility.d.ts| +|删除|模块名: ohos.application.AccessibilityExtensionAbility
类名: GesturePath
方法名 or 属性名: points|NA|@ohos.application.AccessibilityExtensionAbility.d.ts| +|删除|模块名: ohos.application.AccessibilityExtensionAbility
类名: GesturePath
方法名 or 属性名: durationTime|NA|@ohos.application.AccessibilityExtensionAbility.d.ts| +|删除|模块名: ohos.application.AccessibilityExtensionAbility
类名: GesturePoint|NA|@ohos.application.AccessibilityExtensionAbility.d.ts| +|删除|模块名: ohos.application.AccessibilityExtensionAbility
类名: GesturePoint
方法名 or 属性名: positionX|NA|@ohos.application.AccessibilityExtensionAbility.d.ts| +|删除|模块名: ohos.application.AccessibilityExtensionAbility
类名: GesturePoint
方法名 or 属性名: positionY|NA|@ohos.application.AccessibilityExtensionAbility.d.ts| |废弃版本有变化|方法名 or 属性名:getAbilityLists
废弃版本:N/A|方法名 or 属性名:getAbilityLists
废弃版本:9
代替接口:ohos.accessibility|@ohos.accessibility.d.ts| |废弃版本有变化|方法名 or 属性名:getAbilityLists
废弃版本:N/A|方法名 or 属性名:getAbilityLists
废弃版本:9|@ohos.accessibility.d.ts| |废弃版本有变化|方法名 or 属性名:sendEvent
废弃版本:N/A|方法名 or 属性名:sendEvent
废弃版本:9
代替接口:ohos.accessibility|@ohos.accessibility.d.ts| |废弃版本有变化|方法名 or 属性名:sendEvent
废弃版本:N/A|方法名 or 属性名:sendEvent
废弃版本:9|@ohos.accessibility.d.ts| -|新增(错误码)||方法名 or 属性名:enableAbility
错误码内容:201,401,9300001,9300002|@ohos.accessibility.config.d.ts| -|新增(错误码)||方法名 or 属性名:disableAbility
错误码内容:201,401,9300001|@ohos.accessibility.config.d.ts| -|新增(错误码)||方法名 or 属性名:set
错误码内容:201,401|@ohos.accessibility.config.d.ts| -|新增(错误码)||方法名 or 属性名:on
错误码内容:401|@ohos.accessibility.config.d.ts| -|新增(错误码)||方法名 or 属性名:on_accessibilityStateChange
错误码内容:401|@ohos.accessibility.d.ts| -|新增(错误码)||方法名 or 属性名:on_touchGuideStateChange
错误码内容:401|@ohos.accessibility.d.ts| -|新增(错误码)||方法名 or 属性名:off_accessibilityStateChange
错误码内容:401|@ohos.accessibility.d.ts| -|新增(错误码)||方法名 or 属性名:off_touchGuideStateChange
错误码内容:401|@ohos.accessibility.d.ts| -|新增(错误码)||方法名 or 属性名:on_enableChange
错误码内容:401|@ohos.accessibility.d.ts| -|新增(错误码)||方法名 or 属性名:on_styleChange
错误码内容:401|@ohos.accessibility.d.ts| -|新增(错误码)||方法名 or 属性名:off_enableChange
错误码内容:401|@ohos.accessibility.d.ts| -|新增(错误码)||方法名 or 属性名:off_styleChange
错误码内容:401|@ohos.accessibility.d.ts| -|新增(错误码)||方法名 or 属性名:setTargetBundleName
错误码内容:401|AccessibilityExtensionContext.d.ts| -|新增(错误码)||方法名 or 属性名:getFocusElement
错误码内容:9300003|AccessibilityExtensionContext.d.ts| -|新增(错误码)||方法名 or 属性名:getWindowRootElement
错误码内容:9300003|AccessibilityExtensionContext.d.ts| -|新增(错误码)||方法名 or 属性名:getWindows
错误码内容:9300003|AccessibilityExtensionContext.d.ts| -|新增(错误码)||方法名 or 属性名:injectGesture
错误码内容:401,9300003|AccessibilityExtensionContext.d.ts| -|新增(错误码)||方法名 or 属性名:attributeValue
错误码内容:401,9300004|AccessibilityExtensionContext.d.ts| -|新增(错误码)||方法名 or 属性名:findElement
错误码内容:401|AccessibilityExtensionContext.d.ts| -|新增(错误码)||方法名 or 属性名:findElement
错误码内容:401|AccessibilityExtensionContext.d.ts| -|新增(错误码)||方法名 or 属性名:findElement
错误码内容:401|AccessibilityExtensionContext.d.ts| +|新增(错误码)|NA|方法名 or 属性名:enableAbility
错误码内容:201,401,9300001,9300002|@ohos.accessibility.config.d.ts| +|新增(错误码)|NA|方法名 or 属性名:disableAbility
错误码内容:201,401,9300001|@ohos.accessibility.config.d.ts| +|新增(错误码)|NA|方法名 or 属性名:set
错误码内容:201,401|@ohos.accessibility.config.d.ts| +|新增(错误码)|NA|方法名 or 属性名:on
错误码内容:401|@ohos.accessibility.config.d.ts| +|新增(错误码)|NA|方法名 or 属性名:on_accessibilityStateChange
错误码内容:401|@ohos.accessibility.d.ts| +|新增(错误码)|NA|方法名 or 属性名:on_touchGuideStateChange
错误码内容:401|@ohos.accessibility.d.ts| +|新增(错误码)|NA|方法名 or 属性名:off_accessibilityStateChange
错误码内容:401|@ohos.accessibility.d.ts| +|新增(错误码)|NA|方法名 or 属性名:off_touchGuideStateChange
错误码内容:401|@ohos.accessibility.d.ts| +|新增(错误码)|NA|方法名 or 属性名:on_enableChange
错误码内容:401|@ohos.accessibility.d.ts| +|新增(错误码)|NA|方法名 or 属性名:on_styleChange
错误码内容:401|@ohos.accessibility.d.ts| +|新增(错误码)|NA|方法名 or 属性名:off_enableChange
错误码内容:401|@ohos.accessibility.d.ts| +|新增(错误码)|NA|方法名 or 属性名:off_styleChange
错误码内容:401|@ohos.accessibility.d.ts| +|新增(错误码)|NA|方法名 or 属性名:setTargetBundleName
错误码内容:401|AccessibilityExtensionContext.d.ts| +|新增(错误码)|NA|方法名 or 属性名:getFocusElement
错误码内容:9300003|AccessibilityExtensionContext.d.ts| +|新增(错误码)|NA|方法名 or 属性名:getWindowRootElement
错误码内容:9300003|AccessibilityExtensionContext.d.ts| +|新增(错误码)|NA|方法名 or 属性名:getWindows
错误码内容:9300003|AccessibilityExtensionContext.d.ts| +|新增(错误码)|NA|方法名 or 属性名:injectGesture
错误码内容:401,9300003|AccessibilityExtensionContext.d.ts| +|新增(错误码)|NA|方法名 or 属性名:attributeValue
错误码内容:401,9300004|AccessibilityExtensionContext.d.ts| +|新增(错误码)|NA|方法名 or 属性名:findElement
错误码内容:401|AccessibilityExtensionContext.d.ts| +|新增(错误码)|NA|方法名 or 属性名:findElement
错误码内容:401|AccessibilityExtensionContext.d.ts| +|新增(错误码)|NA|方法名 or 属性名:findElement
错误码内容:401|AccessibilityExtensionContext.d.ts| diff --git a/zh-cn/release-notes/api-diff/monthly-202210/js-apidiff-account.md b/zh-cn/release-notes/api-diff/monthly-202210/js-apidiff-account.md index 50e0757f393eef418a7db17a9baa6b025119f238..3251075b33fb18c50e7a037bf1353c98fe3fa785 100644 --- a/zh-cn/release-notes/api-diff/monthly-202210/js-apidiff-account.md +++ b/zh-cn/release-notes/api-diff/monthly-202210/js-apidiff-account.md @@ -1,132 +1,41 @@ -| 操作 | 新版本 | 旧版本 | d.ts文件 | +| 操作 | 旧版本 | 新版本 | d.ts文件 | | ---- | ------ | ------ | -------- | -|新增||模块名:ohos.account.appAccount
类名:AppAccountManager
方法名 or 属性名:createAccount|@ohos.account.appAccount.d.ts| -|新增||模块名:ohos.account.appAccount
类名:AppAccountManager
方法名 or 属性名:createAccount|@ohos.account.appAccount.d.ts| -|新增||模块名:ohos.account.appAccount
类名:AppAccountManager
方法名 or 属性名:createAccount|@ohos.account.appAccount.d.ts| -|新增||模块名:ohos.account.appAccount
类名:AppAccountManager
方法名 or 属性名:createAccountImplicitly|@ohos.account.appAccount.d.ts| -|新增||模块名:ohos.account.appAccount
类名:AppAccountManager
方法名 or 属性名:createAccountImplicitly|@ohos.account.appAccount.d.ts| -|新增||模块名:ohos.account.appAccount
类名:AppAccountManager
方法名 or 属性名:removeAccount|@ohos.account.appAccount.d.ts| -|新增||模块名:ohos.account.appAccount
类名:AppAccountManager
方法名 or 属性名:removeAccount|@ohos.account.appAccount.d.ts| -|新增||模块名:ohos.account.appAccount
类名:AppAccountManager
方法名 or 属性名:setAppAccess|@ohos.account.appAccount.d.ts| -|新增||模块名:ohos.account.appAccount
类名:AppAccountManager
方法名 or 属性名:setAppAccess|@ohos.account.appAccount.d.ts| -|新增||模块名:ohos.account.appAccount
类名:AppAccountManager
方法名 or 属性名:checkDataSyncEnabled|@ohos.account.appAccount.d.ts| -|新增||模块名:ohos.account.appAccount
类名:AppAccountManager
方法名 or 属性名:checkDataSyncEnabled|@ohos.account.appAccount.d.ts| -|新增||模块名:ohos.account.appAccount
类名:AppAccountManager
方法名 or 属性名:setCredential|@ohos.account.appAccount.d.ts| -|新增||模块名:ohos.account.appAccount
类名:AppAccountManager
方法名 or 属性名:setCredential|@ohos.account.appAccount.d.ts| -|新增||模块名:ohos.account.appAccount
类名:AppAccountManager
方法名 or 属性名:setDataSyncEnabled|@ohos.account.appAccount.d.ts| -|新增||模块名:ohos.account.appAccount
类名:AppAccountManager
方法名 or 属性名:setDataSyncEnabled|@ohos.account.appAccount.d.ts| -|新增||模块名:ohos.account.appAccount
类名:AppAccountManager
方法名 or 属性名:setCustomData|@ohos.account.appAccount.d.ts| -|新增||模块名:ohos.account.appAccount
类名:AppAccountManager
方法名 or 属性名:setCustomData|@ohos.account.appAccount.d.ts| -|新增||方法名 or 属性名:getAllAccounts
函数:getAllAccounts(callback: AsyncCallback>): void;|@ohos.account.appAccount.d.ts| -|新增||方法名 or 属性名:getAllAccounts
函数:getAllAccounts(): Promise>;|@ohos.account.appAccount.d.ts| -|新增||模块名:ohos.account.appAccount
类名:AppAccountManager
方法名 or 属性名:getAccountsByOwner|@ohos.account.appAccount.d.ts| -|新增||模块名:ohos.account.appAccount
类名:AppAccountManager
方法名 or 属性名:getAccountsByOwner|@ohos.account.appAccount.d.ts| -|新增||模块名:ohos.account.appAccount
类名:AppAccountManager
方法名 or 属性名:getCredential|@ohos.account.appAccount.d.ts| -|新增||模块名:ohos.account.appAccount
类名:AppAccountManager
方法名 or 属性名:getCredential|@ohos.account.appAccount.d.ts| -|新增||模块名:ohos.account.appAccount
类名:AppAccountManager
方法名 or 属性名:getCustomData|@ohos.account.appAccount.d.ts| -|新增||模块名:ohos.account.appAccount
类名:AppAccountManager
方法名 or 属性名:getCustomData|@ohos.account.appAccount.d.ts| -|新增||模块名:ohos.account.appAccount
类名:AppAccountManager
方法名 or 属性名:getCustomDataSync|@ohos.account.appAccount.d.ts| -|新增||模块名:ohos.account.appAccount
类名:AppAccountManager
方法名 or 属性名:on_accountChange|@ohos.account.appAccount.d.ts| -|新增||模块名:ohos.account.appAccount
类名:AppAccountManager
方法名 or 属性名:off_accountChange|@ohos.account.appAccount.d.ts| -|新增||模块名:ohos.account.appAccount
类名:AppAccountManager
方法名 or 属性名:auth|@ohos.account.appAccount.d.ts| -|新增||模块名:ohos.account.appAccount
类名:AppAccountManager
方法名 or 属性名:auth|@ohos.account.appAccount.d.ts| -|新增||模块名:ohos.account.appAccount
类名:AppAccountManager
方法名 or 属性名:getAuthToken|@ohos.account.appAccount.d.ts| -|新增||模块名:ohos.account.appAccount
类名:AppAccountManager
方法名 or 属性名:getAuthToken|@ohos.account.appAccount.d.ts| -|新增||模块名:ohos.account.appAccount
类名:AppAccountManager
方法名 or 属性名:setAuthToken|@ohos.account.appAccount.d.ts| -|新增||模块名:ohos.account.appAccount
类名:AppAccountManager
方法名 or 属性名:setAuthToken|@ohos.account.appAccount.d.ts| -|新增||模块名:ohos.account.appAccount
类名:AppAccountManager
方法名 or 属性名:deleteAuthToken|@ohos.account.appAccount.d.ts| -|新增||模块名:ohos.account.appAccount
类名:AppAccountManager
方法名 or 属性名:deleteAuthToken|@ohos.account.appAccount.d.ts| -|新增||模块名:ohos.account.appAccount
类名:AppAccountManager
方法名 or 属性名:setAuthTokenVisibility|@ohos.account.appAccount.d.ts| -|新增||模块名:ohos.account.appAccount
类名:AppAccountManager
方法名 or 属性名:setAuthTokenVisibility|@ohos.account.appAccount.d.ts| -|新增||模块名:ohos.account.appAccount
类名:AppAccountManager
方法名 or 属性名:checkAuthTokenVisibility|@ohos.account.appAccount.d.ts| -|新增||模块名:ohos.account.appAccount
类名:AppAccountManager
方法名 or 属性名:checkAuthTokenVisibility|@ohos.account.appAccount.d.ts| -|新增||模块名:ohos.account.appAccount
类名:AppAccountManager
方法名 or 属性名:getAllAuthTokens|@ohos.account.appAccount.d.ts| -|新增||模块名:ohos.account.appAccount
类名:AppAccountManager
方法名 or 属性名:getAllAuthTokens|@ohos.account.appAccount.d.ts| -|新增||模块名:ohos.account.appAccount
类名:AppAccountManager
方法名 or 属性名:getAuthList|@ohos.account.appAccount.d.ts| -|新增||模块名:ohos.account.appAccount
类名:AppAccountManager
方法名 or 属性名:getAuthList|@ohos.account.appAccount.d.ts| -|新增||模块名:ohos.account.appAccount
类名:AppAccountManager
方法名 or 属性名:getAuthCallback|@ohos.account.appAccount.d.ts| -|新增||模块名:ohos.account.appAccount
类名:AppAccountManager
方法名 or 属性名:getAuthCallback|@ohos.account.appAccount.d.ts| -|新增||模块名:ohos.account.appAccount
类名:AppAccountManager
方法名 or 属性名:queryAuthenticatorInfo|@ohos.account.appAccount.d.ts| -|新增||模块名:ohos.account.appAccount
类名:AppAccountManager
方法名 or 属性名:queryAuthenticatorInfo|@ohos.account.appAccount.d.ts| -|新增||模块名:ohos.account.appAccount
类名:AppAccountManager
方法名 or 属性名:deleteCredential|@ohos.account.appAccount.d.ts| -|新增||模块名:ohos.account.appAccount
类名:AppAccountManager
方法名 or 属性名:deleteCredential|@ohos.account.appAccount.d.ts| -|新增||方法名 or 属性名:selectAccountsByOptions
函数:selectAccountsByOptions(options: SelectAccountsOptions, callback: AsyncCallback>): void;|@ohos.account.appAccount.d.ts| -|新增||方法名 or 属性名:verifyCredential
函数:verifyCredential(name: string, owner: string, callback: AuthCallback): void;|@ohos.account.appAccount.d.ts| -|新增||方法名 or 属性名:verifyCredential
函数:verifyCredential(name: string, owner: string, options: VerifyCredentialOptions, callback: AuthCallback): void;|@ohos.account.appAccount.d.ts| -|新增||方法名 or 属性名:setAuthenticatorProperties
函数:setAuthenticatorProperties(owner: string, callback: AuthCallback): void;|@ohos.account.appAccount.d.ts| -|新增||方法名 or 属性名:setAuthenticatorProperties
函数:setAuthenticatorProperties(owner: string, options: SetPropertiesOptions, callback: AuthCallback): void;|@ohos.account.appAccount.d.ts| -|新增||模块名: ohos.account.appAccount
类名: AuthTokenInfo|@ohos.account.appAccount.d.ts| -|新增||模块名: ohos.account.appAccount
类名: AuthTokenInfo
方法名 or 属性名:authType|@ohos.account.appAccount.d.ts| -|新增||模块名: ohos.account.appAccount
类名: AuthTokenInfo
方法名 or 属性名:token|@ohos.account.appAccount.d.ts| -|新增||模块名: ohos.account.appAccount
类名: AuthTokenInfo
方法名 or 属性名:account|@ohos.account.appAccount.d.ts| -|新增||模块名: ohos.account.appAccount
类名: AuthResult|@ohos.account.appAccount.d.ts| -|新增||模块名: ohos.account.appAccount
类名: AuthResult
方法名 or 属性名:account|@ohos.account.appAccount.d.ts| -|新增||模块名: ohos.account.appAccount
类名: AuthResult
方法名 or 属性名:tokenInfo|@ohos.account.appAccount.d.ts| -|新增||模块名: ohos.account.appAccount
类名: CreateAccountOptions|@ohos.account.appAccount.d.ts| -|新增||模块名: ohos.account.appAccount
类名: CreateAccountOptions
方法名 or 属性名:customData|@ohos.account.appAccount.d.ts| -|新增||模块名: ohos.account.appAccount
类名: CreateAccountImplicitlyOptions|@ohos.account.appAccount.d.ts| -|新增||模块名: ohos.account.appAccount
类名: CreateAccountImplicitlyOptions
方法名 or 属性名:requiredLabels|@ohos.account.appAccount.d.ts| -|新增||模块名: ohos.account.appAccount
类名: CreateAccountImplicitlyOptions
方法名 or 属性名:authType|@ohos.account.appAccount.d.ts| -|新增||模块名: ohos.account.appAccount
类名: CreateAccountImplicitlyOptions
方法名 or 属性名:parameters|@ohos.account.appAccount.d.ts| -|新增||模块名:ohos.account.appAccount
类名:Constants
方法名 or 属性名:ACTION_CREATE_ACCOUNT_IMPLICITLY|@ohos.account.appAccount.d.ts| -|新增||模块名:ohos.account.appAccount
类名:Constants
方法名 or 属性名:ACTION_AUTH|@ohos.account.appAccount.d.ts| -|新增||模块名:ohos.account.appAccount
类名:Constants
方法名 or 属性名:ACTION_VERIFY_CREDENTIAL|@ohos.account.appAccount.d.ts| -|新增||模块名:ohos.account.appAccount
类名:Constants
方法名 or 属性名:ACTION_SET_AUTHENTICATOR_PROPERTIES|@ohos.account.appAccount.d.ts| -|新增||模块名: ohos.account.appAccount
类名: AuthCallback|@ohos.account.appAccount.d.ts| -|新增||模块名: ohos.account.appAccount
类名: AuthCallback
方法名 or 属性名:onResult|@ohos.account.appAccount.d.ts| -|新增||模块名: ohos.account.appAccount
类名: AuthCallback
方法名 or 属性名:onRequestRedirected|@ohos.account.appAccount.d.ts| -|新增||模块名: ohos.account.appAccount
类名: AuthCallback
方法名 or 属性名:onRequestContinued|@ohos.account.appAccount.d.ts| -|新增||模块名:ohos.account.appAccount
类名:Authenticator
方法名 or 属性名:createAccountImplicitly|@ohos.account.appAccount.d.ts| -|新增||模块名:ohos.account.appAccount
类名:Authenticator
方法名 or 属性名:auth|@ohos.account.appAccount.d.ts| -|新增||方法名 or 属性名:verifyCredential
函数:verifyCredential(name: string, options: VerifyCredentialOptions, callback: AuthCallback): void;|@ohos.account.appAccount.d.ts| -|新增||方法名 or 属性名:setProperties
函数:setProperties(options: SetPropertiesOptions, callback: AuthCallback): void;|@ohos.account.appAccount.d.ts| -|新增||方法名 or 属性名:checkAccountLabels
函数:checkAccountLabels(name: string, labels: Array, callback: AuthCallback): void;|@ohos.account.appAccount.d.ts| -|新增||方法名 or 属性名:isAccountRemovable
函数:isAccountRemovable(name: string, callback: AuthCallback): void;|@ohos.account.appAccount.d.ts| -|新增||模块名:ohos.account.distributedAccount
类名:DistributedAccountAbility
方法名 or 属性名:getOsAccountDistributedInfo|@ohos.account.distributedAccount.d.ts| -|新增||模块名:ohos.account.distributedAccount
类名:DistributedAccountAbility
方法名 or 属性名:getOsAccountDistributedInfo|@ohos.account.distributedAccount.d.ts| -|新增||模块名:ohos.account.distributedAccount
类名:DistributedAccountAbility
方法名 or 属性名:setOsAccountDistributedInfo|@ohos.account.distributedAccount.d.ts| -|新增||模块名:ohos.account.distributedAccount
类名:DistributedAccountAbility
方法名 or 属性名:setOsAccountDistributedInfo|@ohos.account.distributedAccount.d.ts| -|新增||模块名: ohos.account.distributedAccount
类名: DistributedInfo
方法名 or 属性名:nickname|@ohos.account.distributedAccount.d.ts| -|新增||模块名: ohos.account.distributedAccount
类名: DistributedInfo
方法名 or 属性名:avatar|@ohos.account.distributedAccount.d.ts| -|新增||模块名:ohos.account.osAccount
类名:AccountManager
方法名 or 属性名:checkMultiOsAccountEnabled|@ohos.account.osAccount.d.ts| -|新增||模块名:ohos.account.osAccount
类名:AccountManager
方法名 or 属性名:checkMultiOsAccountEnabled|@ohos.account.osAccount.d.ts| -|新增||模块名:ohos.account.osAccount
类名:AccountManager
方法名 or 属性名:checkOsAccountActivated|@ohos.account.osAccount.d.ts| -|新增||模块名:ohos.account.osAccount
类名:AccountManager
方法名 or 属性名:checkOsAccountActivated|@ohos.account.osAccount.d.ts| -|新增||模块名:ohos.account.osAccount
类名:AccountManager
方法名 or 属性名:checkConstraintEnabled|@ohos.account.osAccount.d.ts| -|新增||模块名:ohos.account.osAccount
类名:AccountManager
方法名 or 属性名:checkConstraintEnabled|@ohos.account.osAccount.d.ts| -|新增||模块名:ohos.account.osAccount
类名:AccountManager
方法名 or 属性名:checkOsAccountTestable|@ohos.account.osAccount.d.ts| -|新增||模块名:ohos.account.osAccount
类名:AccountManager
方法名 or 属性名:checkOsAccountTestable|@ohos.account.osAccount.d.ts| -|新增||模块名:ohos.account.osAccount
类名:AccountManager
方法名 or 属性名:checkOsAccountVerified|@ohos.account.osAccount.d.ts| -|新增||模块名:ohos.account.osAccount
类名:AccountManager
方法名 or 属性名:checkOsAccountVerified|@ohos.account.osAccount.d.ts| -|新增||模块名:ohos.account.osAccount
类名:AccountManager
方法名 or 属性名:checkOsAccountVerified|@ohos.account.osAccount.d.ts| -|新增||模块名:ohos.account.osAccount
类名:AccountManager
方法名 or 属性名:getOsAccountCount|@ohos.account.osAccount.d.ts| -|新增||模块名:ohos.account.osAccount
类名:AccountManager
方法名 or 属性名:getOsAccountCount|@ohos.account.osAccount.d.ts| -|新增||模块名:ohos.account.osAccount
类名:AccountManager
方法名 or 属性名:queryOsAccountLocalIdFromProcess|@ohos.account.osAccount.d.ts| -|新增||模块名:ohos.account.osAccount
类名:AccountManager
方法名 or 属性名:queryOsAccountLocalIdFromProcess|@ohos.account.osAccount.d.ts| -|新增||模块名:ohos.account.osAccount
类名:AccountManager
方法名 or 属性名:queryOsAccountLocalIdFromUid|@ohos.account.osAccount.d.ts| -|新增||模块名:ohos.account.osAccount
类名:AccountManager
方法名 or 属性名:queryOsAccountLocalIdFromUid|@ohos.account.osAccount.d.ts| -|新增||模块名:ohos.account.osAccount
类名:AccountManager
方法名 or 属性名:queryOsAccountLocalIdFromDomain|@ohos.account.osAccount.d.ts| -|新增||模块名:ohos.account.osAccount
类名:AccountManager
方法名 or 属性名:queryOsAccountLocalIdFromDomain|@ohos.account.osAccount.d.ts| -|新增||模块名:ohos.account.osAccount
类名:AccountManager
方法名 or 属性名:getOsAccountConstraints|@ohos.account.osAccount.d.ts| -|新增||模块名:ohos.account.osAccount
类名:AccountManager
方法名 or 属性名:getOsAccountConstraints|@ohos.account.osAccount.d.ts| -|新增||模块名:ohos.account.osAccount
类名:AccountManager
方法名 or 属性名:getActivatedOsAccountIds|@ohos.account.osAccount.d.ts| -|新增||模块名:ohos.account.osAccount
类名:AccountManager
方法名 or 属性名:getActivatedOsAccountIds|@ohos.account.osAccount.d.ts| -|新增||模块名:ohos.account.osAccount
类名:AccountManager
方法名 or 属性名:getCurrentOsAccount|@ohos.account.osAccount.d.ts| -|新增||模块名:ohos.account.osAccount
类名:AccountManager
方法名 or 属性名:getCurrentOsAccount|@ohos.account.osAccount.d.ts| -|新增||模块名:ohos.account.osAccount
类名:AccountManager
方法名 or 属性名:getOsAccountType|@ohos.account.osAccount.d.ts| -|新增||模块名:ohos.account.osAccount
类名:AccountManager
方法名 or 属性名:getOsAccountType|@ohos.account.osAccount.d.ts| -|新增||模块名:ohos.account.osAccount
类名:AccountManager
方法名 or 属性名:queryDistributedVirtualDeviceId|@ohos.account.osAccount.d.ts| -|新增||模块名:ohos.account.osAccount
类名:AccountManager
方法名 or 属性名:queryDistributedVirtualDeviceId|@ohos.account.osAccount.d.ts| -|新增||模块名:ohos.account.osAccount
类名:AccountManager
方法名 or 属性名:queryOsAccountLocalIdBySerialNumber|@ohos.account.osAccount.d.ts| -|新增||模块名:ohos.account.osAccount
类名:AccountManager
方法名 or 属性名:queryOsAccountLocalIdBySerialNumber|@ohos.account.osAccount.d.ts| -|新增||模块名:ohos.account.osAccount
类名:AccountManager
方法名 or 属性名:querySerialNumberByOsAccountLocalId|@ohos.account.osAccount.d.ts| -|新增||模块名:ohos.account.osAccount
类名:AccountManager
方法名 or 属性名:querySerialNumberByOsAccountLocalId|@ohos.account.osAccount.d.ts| -|新增||方法名 or 属性名:cancelAuth
函数:cancelAuth(contextID: Uint8Array): void;|@ohos.account.osAccount.d.ts| -|新增||方法名 or 属性名:registerInputer
函数:registerInputer(inputer: IInputer): void;|@ohos.account.osAccount.d.ts| -|新增||方法名 or 属性名:cancel
函数:cancel(challenge: Uint8Array): void;|@ohos.account.osAccount.d.ts| -|删除|模块名:ohos.account.appAccount
类名:AppAccountManager
方法名 or 属性名:getAssociatedDataSync||@ohos.account.appAccount.d.ts| -|删除|模块名:ohos.account.appAccount
类名:AppAccountManager
方法名 or 属性名:deleteAccountCredential||@ohos.account.appAccount.d.ts| -|删除|模块名:ohos.account.appAccount
类名:AppAccountManager
方法名 or 属性名:deleteAccountCredential||@ohos.account.appAccount.d.ts| +|新增|NA|方法名 or 属性名:getAllAccounts
函数:getAllAccounts(callback: AsyncCallback>): void;|@ohos.account.appAccount.d.ts| +|新增|NA|方法名 or 属性名:getAllAccounts
函数:getAllAccounts(): Promise>;|@ohos.account.appAccount.d.ts| +|新增|NA|方法名 or 属性名:selectAccountsByOptions
函数:selectAccountsByOptions(options: SelectAccountsOptions, callback: AsyncCallback>): void;|@ohos.account.appAccount.d.ts| +|新增|NA|方法名 or 属性名:verifyCredential
函数:verifyCredential(name: string, owner: string, callback: AuthCallback): void;|@ohos.account.appAccount.d.ts| +|新增|NA|方法名 or 属性名:verifyCredential
函数:verifyCredential(name: string, owner: string, options: VerifyCredentialOptions, callback: AuthCallback): void;|@ohos.account.appAccount.d.ts| +|新增|NA|方法名 or 属性名:setAuthenticatorProperties
函数:setAuthenticatorProperties(owner: string, callback: AuthCallback): void;|@ohos.account.appAccount.d.ts| +|新增|NA|方法名 or 属性名:setAuthenticatorProperties
函数:setAuthenticatorProperties(owner: string, options: SetPropertiesOptions, callback: AuthCallback): void;|@ohos.account.appAccount.d.ts| +|新增|NA|模块名: ohos.account.appAccount
类名: AuthTokenInfo|@ohos.account.appAccount.d.ts| +|新增|NA|模块名: ohos.account.appAccount
类名: AuthTokenInfo
方法名 or 属性名:authType|@ohos.account.appAccount.d.ts| +|新增|NA|模块名: ohos.account.appAccount
类名: AuthTokenInfo
方法名 or 属性名:token|@ohos.account.appAccount.d.ts| +|新增|NA|模块名: ohos.account.appAccount
类名: AuthTokenInfo
方法名 or 属性名:account|@ohos.account.appAccount.d.ts| +|新增|NA|模块名: ohos.account.appAccount
类名: AuthResult|@ohos.account.appAccount.d.ts| +|新增|NA|模块名: ohos.account.appAccount
类名: AuthResult
方法名 or 属性名:account|@ohos.account.appAccount.d.ts| +|新增|NA|模块名: ohos.account.appAccount
类名: AuthResult
方法名 or 属性名:tokenInfo|@ohos.account.appAccount.d.ts| +|新增|NA|模块名: ohos.account.appAccount
类名: CreateAccountOptions|@ohos.account.appAccount.d.ts| +|新增|NA|模块名: ohos.account.appAccount
类名: CreateAccountOptions
方法名 or 属性名:customData|@ohos.account.appAccount.d.ts| +|新增|NA|模块名: ohos.account.appAccount
类名: CreateAccountImplicitlyOptions|@ohos.account.appAccount.d.ts| +|新增|NA|模块名: ohos.account.appAccount
类名: CreateAccountImplicitlyOptions
方法名 or 属性名:requiredLabels|@ohos.account.appAccount.d.ts| +|新增|NA|模块名: ohos.account.appAccount
类名: CreateAccountImplicitlyOptions
方法名 or 属性名:authType|@ohos.account.appAccount.d.ts| +|新增|NA|模块名: ohos.account.appAccount
类名: CreateAccountImplicitlyOptions
方法名 or 属性名:parameters|@ohos.account.appAccount.d.ts| +|新增|NA|模块名: ohos.account.appAccount
类名: AuthCallback|@ohos.account.appAccount.d.ts| +|新增|NA|模块名: ohos.account.appAccount
类名: AuthCallback
方法名 or 属性名:onResult|@ohos.account.appAccount.d.ts| +|新增|NA|模块名: ohos.account.appAccount
类名: AuthCallback
方法名 or 属性名:onRequestRedirected|@ohos.account.appAccount.d.ts| +|新增|NA|模块名: ohos.account.appAccount
类名: AuthCallback
方法名 or 属性名:onRequestContinued|@ohos.account.appAccount.d.ts| +|新增|NA|方法名 or 属性名:verifyCredential
函数:verifyCredential(name: string, options: VerifyCredentialOptions, callback: AuthCallback): void;|@ohos.account.appAccount.d.ts| +|新增|NA|方法名 or 属性名:setProperties
函数:setProperties(options: SetPropertiesOptions, callback: AuthCallback): void;|@ohos.account.appAccount.d.ts| +|新增|NA|方法名 or 属性名:checkAccountLabels
函数:checkAccountLabels(name: string, labels: Array, callback: AuthCallback): void;|@ohos.account.appAccount.d.ts| +|新增|NA|方法名 or 属性名:isAccountRemovable
函数:isAccountRemovable(name: string, callback: AuthCallback): void;|@ohos.account.appAccount.d.ts| +|新增|NA|模块名: ohos.account.distributedAccount
类名: DistributedInfo
方法名 or 属性名:nickname|@ohos.account.distributedAccount.d.ts| +|新增|NA|模块名: ohos.account.distributedAccount
类名: DistributedInfo
方法名 or 属性名:avatar|@ohos.account.distributedAccount.d.ts| +|新增|NA|方法名 or 属性名:cancelAuth
函数:cancelAuth(contextID: Uint8Array): void;|@ohos.account.osAccount.d.ts| +|新增|NA|方法名 or 属性名:registerInputer
函数:registerInputer(inputer: IInputer): void;|@ohos.account.osAccount.d.ts| +|新增|NA|方法名 or 属性名:cancel
函数:cancel(challenge: Uint8Array): void;|@ohos.account.osAccount.d.ts| +|删除|模块名:ohos.account.appAccount
类名:AppAccountManager
方法名 or 属性名:getAssociatedDataSync|NA|@ohos.account.appAccount.d.ts| +|删除|模块名:ohos.account.appAccount
类名:AppAccountManager
方法名 or 属性名:deleteAccountCredential|NA|@ohos.account.appAccount.d.ts| +|删除|模块名:ohos.account.appAccount
类名:AppAccountManager
方法名 or 属性名:deleteAccountCredential|NA|@ohos.account.appAccount.d.ts| |废弃版本有变化|方法名 or 属性名:addAccount
废弃版本:N/A|方法名 or 属性名:addAccount
废弃版本:9
代替接口:appAccount.AppAccountManager|@ohos.account.appAccount.d.ts| |废弃版本有变化|方法名 or 属性名:addAccount
废弃版本:N/A|方法名 or 属性名:addAccount
废弃版本:9|@ohos.account.appAccount.d.ts| |废弃版本有变化|方法名 or 属性名:addAccount
废弃版本:N/A|方法名 or 属性名:addAccount
废弃版本:9|@ohos.account.appAccount.d.ts| @@ -222,4 +131,9 @@ |废弃版本有变化|方法名 or 属性名:getOsAccountLocalIdBySerialNumber
废弃版本:N/A|方法名 or 属性名:getOsAccountLocalIdBySerialNumber
废弃版本:9|@ohos.account.osAccount.d.ts| |废弃版本有变化|方法名 or 属性名:getSerialNumberByOsAccountLocalId
废弃版本:N/A|方法名 or 属性名:getSerialNumberByOsAccountLocalId
废弃版本:9
代替接口:osAccount.AccountManager|@ohos.account.osAccount.d.ts| |废弃版本有变化|方法名 or 属性名:getSerialNumberByOsAccountLocalId
废弃版本:N/A|方法名 or 属性名:getSerialNumberByOsAccountLocalId
废弃版本:9|@ohos.account.osAccount.d.ts| +|权限有变化|方法名 or 属性名:getAuthInfo
权限:ohos.permission.ACCESS_USER_IDM|方法名 or 属性名:getAuthInfo
权限:ohos.permission.USE_USER_IDM|@ohos.account.osAccount.d.ts| +|权限有变化|方法名 or 属性名:getAuthInfo
权限:ohos.permission.ACCESS_USER_IDM|方法名 or 属性名:getAuthInfo
权限:ohos.permission.USE_USER_IDM|@ohos.account.osAccount.d.ts| +|权限有变化|方法名 or 属性名:getAuthInfo
权限:ohos.permission.ACCESS_USER_IDM|方法名 or 属性名:getAuthInfo
权限:ohos.permission.USE_USER_IDM|@ohos.account.osAccount.d.ts| |新增(权限)|方法名 or 属性名:isOsAccountVerified
权限:N/A|方法名 or 属性名:isOsAccountVerified
权限:ohos.permission.MANAGE_LOCAL_ACCOUNTS or ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS.|@ohos.account.osAccount.d.ts| +|新增(权限)|方法名 or 属性名:isMainOsAccount
权限:N/A|方法名 or 属性名:isMainOsAccount
权限:ohos.permission.MANAGE_LOCAL_ACCOUNTS.|@ohos.account.osAccount.d.ts| +|新增(权限)|方法名 or 属性名:isMainOsAccount
权限:N/A|方法名 or 属性名:isMainOsAccount
权限:ohos.permission.MANAGE_LOCAL_ACCOUNTS.|@ohos.account.osAccount.d.ts| diff --git a/zh-cn/release-notes/api-diff/monthly-202210/js-apidiff-application.md b/zh-cn/release-notes/api-diff/monthly-202210/js-apidiff-application.md index bb33b523cd351e3022e55f0c344d943e6ecaa308..acf7d65e5d1cbf20e0b798fe146101721584a051 100644 --- a/zh-cn/release-notes/api-diff/monthly-202210/js-apidiff-application.md +++ b/zh-cn/release-notes/api-diff/monthly-202210/js-apidiff-application.md @@ -1,170 +1,20 @@ -| 操作 | 新版本 | 旧版本 | d.ts文件 | +| 操作 | 旧版本 | 新版本 | d.ts文件 | | ---- | ------ | ------ | -------- | -|新增||模块名:ohos.contact
类名:Contact|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Contact
方法名 or 属性名:INVALID_CONTACT_ID|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Contact
方法名 or 属性名:id|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Contact
方法名 or 属性名:key|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Contact
方法名 or 属性名:contactAttributes|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Contact
方法名 or 属性名:emails|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Contact
方法名 or 属性名:events|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Contact
方法名 or 属性名:groups|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Contact
方法名 or 属性名:imAddresses|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Contact
方法名 or 属性名:phoneNumbers|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Contact
方法名 or 属性名:portrait|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Contact
方法名 or 属性名:postalAddresses|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Contact
方法名 or 属性名:relations|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Contact
方法名 or 属性名:sipAddresses|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Contact
方法名 or 属性名:websites|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Contact
方法名 or 属性名:name|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Contact
方法名 or 属性名:nickName|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Contact
方法名 or 属性名:note|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Contact
方法名 or 属性名:organization|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:ContactAttributes|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:ContactAttributes
方法名 or 属性名:attributes|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Attribute|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Attribute
方法名 or 属性名:ATTR_CONTACT_EVENT|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Attribute
方法名 or 属性名:ATTR_EMAIL|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Attribute
方法名 or 属性名:ATTR_GROUP_MEMBERSHIP|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Attribute
方法名 or 属性名:ATTR_IM|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Attribute
方法名 or 属性名:ATTR_NAME|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Attribute
方法名 or 属性名:ATTR_NICKNAME|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Attribute
方法名 or 属性名:ATTR_NOTE|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Attribute
方法名 or 属性名:ATTR_ORGANIZATION|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Attribute
方法名 or 属性名:ATTR_PHONE|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Attribute
方法名 or 属性名:ATTR_PORTRAIT|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Attribute
方法名 or 属性名:ATTR_POSTAL_ADDRESS|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Attribute
方法名 or 属性名:ATTR_RELATION|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Attribute
方法名 or 属性名:ATTR_SIP_ADDRESS|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Attribute
方法名 or 属性名:ATTR_WEBSITE|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Email|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Email
方法名 or 属性名:CUSTOM_LABEL|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Email
方法名 or 属性名:EMAIL_HOME|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Email
方法名 or 属性名:EMAIL_WORK|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Email
方法名 or 属性名:EMAIL_OTHER|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Email
方法名 or 属性名:INVALID_LABEL_ID|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Email
方法名 or 属性名:email|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Email
方法名 or 属性名:labelName|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Email
方法名 or 属性名:displayName|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Email
方法名 or 属性名:labelId|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Event|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Event
方法名 or 属性名:CUSTOM_LABEL|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Event
方法名 or 属性名:EVENT_ANNIVERSARY|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Event
方法名 or 属性名:EVENT_OTHER|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Event
方法名 or 属性名:EVENT_BIRTHDAY|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Event
方法名 or 属性名:INVALID_LABEL_ID|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Event
方法名 or 属性名:eventDate|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Event
方法名 or 属性名:labelName|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Event
方法名 or 属性名:labelId|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Group|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Group
方法名 or 属性名:groupId|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Group
方法名 or 属性名:title|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Holder|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Holder
方法名 or 属性名:bundleName|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Holder
方法名 or 属性名:displayName|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Holder
方法名 or 属性名:holderId|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:ImAddress|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:ImAddress
方法名 or 属性名:CUSTOM_LABEL|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:ImAddress
方法名 or 属性名:IM_AIM|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:ImAddress
方法名 or 属性名:IM_MSN|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:ImAddress
方法名 or 属性名:IM_YAHOO|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:ImAddress
方法名 or 属性名:IM_SKYPE|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:ImAddress
方法名 or 属性名:IM_QQ|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:ImAddress
方法名 or 属性名:IM_ICQ|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:ImAddress
方法名 or 属性名:IM_JABBER|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:ImAddress
方法名 or 属性名:INVALID_LABEL_ID|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:ImAddress
方法名 or 属性名:imAddress|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:ImAddress
方法名 or 属性名:labelName|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:ImAddress
方法名 or 属性名:labelId|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Name|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Name
方法名 or 属性名:familyName|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Name
方法名 or 属性名:familyNamePhonetic|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Name
方法名 or 属性名:fullName|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Name
方法名 or 属性名:givenName|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Name
方法名 or 属性名:givenNamePhonetic|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Name
方法名 or 属性名:middleName|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Name
方法名 or 属性名:middleNamePhonetic|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Name
方法名 or 属性名:namePrefix|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Name
方法名 or 属性名:nameSuffix|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:NickName|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:NickName
方法名 or 属性名:nickName|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Note|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Note
方法名 or 属性名:noteContent|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Organization|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Organization
方法名 or 属性名:name|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Organization
方法名 or 属性名:title|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:PhoneNumber|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:PhoneNumber
方法名 or 属性名:CUSTOM_LABEL|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:PhoneNumber
方法名 or 属性名:NUM_HOME|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:PhoneNumber
方法名 or 属性名:NUM_MOBILE|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:PhoneNumber
方法名 or 属性名:NUM_WORK|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:PhoneNumber
方法名 or 属性名:NUM_FAX_WORK|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:PhoneNumber
方法名 or 属性名:NUM_FAX_HOME|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:PhoneNumber
方法名 or 属性名:NUM_PAGER|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:PhoneNumber
方法名 or 属性名:NUM_OTHER|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:PhoneNumber
方法名 or 属性名:NUM_CALLBACK|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:PhoneNumber
方法名 or 属性名:NUM_CAR|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:PhoneNumber
方法名 or 属性名:NUM_COMPANY_MAIN|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:PhoneNumber
方法名 or 属性名:NUM_ISDN|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:PhoneNumber
方法名 or 属性名:NUM_MAIN|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:PhoneNumber
方法名 or 属性名:NUM_OTHER_FAX|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:PhoneNumber
方法名 or 属性名:NUM_RADIO|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:PhoneNumber
方法名 or 属性名:NUM_TELEX|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:PhoneNumber
方法名 or 属性名:NUM_TTY_TDD|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:PhoneNumber
方法名 or 属性名:NUM_WORK_MOBILE|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:PhoneNumber
方法名 or 属性名:NUM_WORK_PAGER|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:PhoneNumber
方法名 or 属性名:NUM_ASSISTANT|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:PhoneNumber
方法名 or 属性名:NUM_MMS|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:PhoneNumber
方法名 or 属性名:INVALID_LABEL_ID|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:PhoneNumber
方法名 or 属性名:labelName|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:PhoneNumber
方法名 or 属性名:phoneNumber|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:PhoneNumber
方法名 or 属性名:labelId|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Portrait|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Portrait
方法名 or 属性名:uri|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:PostalAddress|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:PostalAddress
方法名 or 属性名:CUSTOM_LABEL|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:PostalAddress
方法名 or 属性名:ADDR_HOME|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:PostalAddress
方法名 or 属性名:ADDR_WORK|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:PostalAddress
方法名 or 属性名:ADDR_OTHER|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:PostalAddress
方法名 or 属性名:INVALID_LABEL_ID|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:PostalAddress
方法名 or 属性名:city|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:PostalAddress
方法名 or 属性名:country|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:PostalAddress
方法名 or 属性名:labelName|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:PostalAddress
方法名 or 属性名:neighborhood|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:PostalAddress
方法名 or 属性名:pobox|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:PostalAddress
方法名 or 属性名:postalAddress|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:PostalAddress
方法名 or 属性名:postcode|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:PostalAddress
方法名 or 属性名:region|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:PostalAddress
方法名 or 属性名:street|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:PostalAddress
方法名 or 属性名:labelId|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Relation|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Relation
方法名 or 属性名:CUSTOM_LABEL|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Relation
方法名 or 属性名:RELATION_ASSISTANT|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Relation
方法名 or 属性名:RELATION_BROTHER|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Relation
方法名 or 属性名:RELATION_CHILD|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Relation
方法名 or 属性名:RELATION_DOMESTIC_PARTNER|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Relation
方法名 or 属性名:RELATION_FATHER|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Relation
方法名 or 属性名:RELATION_FRIEND|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Relation
方法名 or 属性名:RELATION_MANAGER|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Relation
方法名 or 属性名:RELATION_MOTHER|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Relation
方法名 or 属性名:RELATION_PARENT|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Relation
方法名 or 属性名:RELATION_PARTNER|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Relation
方法名 or 属性名:RELATION_REFERRED_BY|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Relation
方法名 or 属性名:RELATION_RELATIVE|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Relation
方法名 or 属性名:RELATION_SISTER|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Relation
方法名 or 属性名:RELATION_SPOUSE|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Relation
方法名 or 属性名:INVALID_LABEL_ID|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Relation
方法名 or 属性名:labelName|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Relation
方法名 or 属性名:relationName|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Relation
方法名 or 属性名:labelId|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:SipAddress|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:SipAddress
方法名 or 属性名:CUSTOM_LABEL|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:SipAddress
方法名 or 属性名:SIP_HOME|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:SipAddress
方法名 or 属性名:SIP_WORK|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:SipAddress
方法名 or 属性名:SIP_OTHER|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:SipAddress
方法名 or 属性名:INVALID_LABEL_ID|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:SipAddress
方法名 or 属性名:labelName|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:SipAddress
方法名 or 属性名:sipAddress|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:SipAddress
方法名 or 属性名:labelId|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Website|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Website
方法名 or 属性名:website|@ohos.contact.d.ts| -|新增||模块名: ohos.telephony.call
类名: AudioDevice
方法名 or 属性名: DEVICE_MIC|@ohos.telephony.call.d.ts| +|新增|NA|方法名 or 属性名:answer
函数:function answer(callId?: number): Promise;|@ohos.telephony.call.d.ts| +|新增|NA|方法名 or 属性名:answer
函数:function answer(callback: AsyncCallback): void;|@ohos.telephony.call.d.ts| +|新增|NA|方法名 or 属性名:hangup
函数:function hangup(callId?: number): Promise;|@ohos.telephony.call.d.ts| +|新增|NA|方法名 or 属性名:hangup
函数:function hangup(callback: AsyncCallback): void;|@ohos.telephony.call.d.ts| +|新增|NA|方法名 or 属性名:reject
函数:function reject(callId?: number, options?: RejectMessageOptions): Promise;|@ohos.telephony.call.d.ts| +|新增|NA|方法名 or 属性名:reject
函数:function reject(callback: AsyncCallback): void;|@ohos.telephony.call.d.ts| +|新增|NA|方法名 or 属性名:reject
函数:function reject(options: RejectMessageOptions, callback: AsyncCallback): void;|@ohos.telephony.call.d.ts| +|新增|NA|方法名 or 属性名:setAudioDevice
函数:function setAudioDevice(device: AudioDevice, options: AudioDeviceOptions, callback: AsyncCallback): void;|@ohos.telephony.call.d.ts| +|新增|NA|方法名 or 属性名:setAudioDevice
函数:function setAudioDevice(device: AudioDevice, options?: AudioDeviceOptions): Promise;|@ohos.telephony.call.d.ts| +|新增|NA|模块名: ohos.telephony.call
类名: AudioDevice
方法名 or 属性名:DEVICE_EARPIECE|@ohos.telephony.call.d.ts| +|新增|NA|模块名: ohos.telephony.call
类名: AudioDeviceOptions|@ohos.telephony.call.d.ts| +|新增|NA|模块名: ohos.telephony.call
类名: AudioDeviceOptions
方法名 or 属性名:bluetoothAddress|@ohos.telephony.call.d.ts| +|新增|NA|模块名: ohos.telephony.call
类名: MmiCodeResults|@ohos.telephony.call.d.ts| +|新增|NA|模块名: ohos.telephony.call
类名: MmiCodeResults
方法名 or 属性名:result|@ohos.telephony.call.d.ts| +|新增|NA|模块名: ohos.telephony.call
类名: MmiCodeResults
方法名 or 属性名:message|@ohos.telephony.call.d.ts| +|新增|NA|模块名: ohos.telephony.call
类名: MmiCodeResult|@ohos.telephony.call.d.ts| +|新增|NA|模块名: ohos.telephony.call
类名: MmiCodeResult
方法名 or 属性名:MMI_CODE_SUCCESS|@ohos.telephony.call.d.ts| +|新增|NA|模块名: ohos.telephony.call
类名: MmiCodeResult
方法名 or 属性名:MMI_CODE_FAILED|@ohos.telephony.call.d.ts| diff --git a/zh-cn/release-notes/api-diff/monthly-202210/js-apidiff-arkui.md b/zh-cn/release-notes/api-diff/monthly-202210/js-apidiff-arkui.md index 8416155c82eb4569b7fdde83ae0bdcfbadad983e..65826ee30382daa1546b955cfd03283a89af3285 100644 --- a/zh-cn/release-notes/api-diff/monthly-202210/js-apidiff-arkui.md +++ b/zh-cn/release-notes/api-diff/monthly-202210/js-apidiff-arkui.md @@ -1,143 +1,229 @@ -| 操作 | 新版本 | 旧版本 | d.ts文件 | +| 操作 | 旧版本 | 新版本 | d.ts文件 | | ---- | ------ | ------ | -------- | -|新增||模块名:ohos.animator
类名:AnimatorResult
方法名 or 属性名:reset|@ohos.animator.d.ts| -|新增||模块名:ohos.animator
类名:Animator
方法名 or 属性名:create|@ohos.animator.d.ts| -|新增||模块名: ohos.promptAction
类名: promptAction|@ohos.promptAction.d.ts| -|新增||模块名: ohos.promptAction
类名: ShowToastOptions|@ohos.promptAction.d.ts| -|新增||模块名: ohos.promptAction
类名: ShowToastOptions
方法名 or 属性名: message|@ohos.promptAction.d.ts| -|新增||模块名: ohos.promptAction
类名: ShowToastOptions
方法名 or 属性名: duration|@ohos.promptAction.d.ts| -|新增||模块名: ohos.promptAction
类名: ShowToastOptions
方法名 or 属性名: bottom|@ohos.promptAction.d.ts| -|新增||模块名: ohos.promptAction
类名: Button|@ohos.promptAction.d.ts| -|新增||模块名: ohos.promptAction
类名: Button
方法名 or 属性名: text|@ohos.promptAction.d.ts| -|新增||模块名: ohos.promptAction
类名: Button
方法名 or 属性名: color|@ohos.promptAction.d.ts| -|新增||模块名: ohos.promptAction
类名: ShowDialogSuccessResponse|@ohos.promptAction.d.ts| -|新增||模块名: ohos.promptAction
类名: ShowDialogSuccessResponse
方法名 or 属性名: index|@ohos.promptAction.d.ts| -|新增||模块名: ohos.promptAction
类名: ShowDialogOptions|@ohos.promptAction.d.ts| -|新增||模块名: ohos.promptAction
类名: ShowDialogOptions
方法名 or 属性名: title|@ohos.promptAction.d.ts| -|新增||模块名: ohos.promptAction
类名: ShowDialogOptions
方法名 or 属性名: message|@ohos.promptAction.d.ts| -|新增||模块名: ohos.promptAction
类名: ShowDialogOptions
方法名 or 属性名: buttons|@ohos.promptAction.d.ts| -|新增||模块名: ohos.promptAction
类名: ActionMenuSuccessResponse|@ohos.promptAction.d.ts| -|新增||模块名: ohos.promptAction
类名: ActionMenuSuccessResponse
方法名 or 属性名: index|@ohos.promptAction.d.ts| -|新增||模块名: ohos.promptAction
类名: ActionMenuOptions|@ohos.promptAction.d.ts| -|新增||模块名: ohos.promptAction
类名: ActionMenuOptions
方法名 or 属性名: title|@ohos.promptAction.d.ts| -|新增||模块名: ohos.promptAction
类名: ActionMenuOptions
方法名 or 属性名: buttons|@ohos.promptAction.d.ts| -|新增||模块名: ohos.promptAction
类名: promptAction
方法名 or 属性名: showToast|@ohos.promptAction.d.ts| -|新增||模块名: ohos.promptAction
类名: promptAction
方法名 or 属性名: showDialog|@ohos.promptAction.d.ts| -|新增||模块名: ohos.promptAction
类名: promptAction
方法名 or 属性名: showDialog|@ohos.promptAction.d.ts| -|新增||模块名: ohos.promptAction
类名: promptAction
方法名 or 属性名: showActionMenu|@ohos.promptAction.d.ts| -|新增||模块名: ohos.promptAction
类名: promptAction
方法名 or 属性名: showActionMenu|@ohos.promptAction.d.ts| -|新增||模块名:ohos.router
类名:RouterOptions|@ohos.router.d.ts| -|新增||模块名:ohos.router
类名:router
方法名 or 属性名:pushUrl|@ohos.router.d.ts| -|新增||模块名:ohos.router
类名:router
方法名 or 属性名:pushUrl|@ohos.router.d.ts| -|新增||模块名:ohos.router
类名:router
方法名 or 属性名:pushUrl|@ohos.router.d.ts| -|新增||模块名:ohos.router
类名:router
方法名 or 属性名:pushUrl|@ohos.router.d.ts| -|新增||模块名:ohos.router
类名:router
方法名 or 属性名:replaceUrl|@ohos.router.d.ts| -|新增||模块名:ohos.router
类名:router
方法名 or 属性名:replaceUrl|@ohos.router.d.ts| -|新增||模块名:ohos.router
类名:router
方法名 or 属性名:replaceUrl|@ohos.router.d.ts| -|新增||模块名:ohos.router
类名:router
方法名 or 属性名:replaceUrl|@ohos.router.d.ts| -|新增||模块名:ohos.router
类名:router
方法名 or 属性名:enableBackPageAlert|@ohos.router.d.ts| -|新增||模块名: common
类名:
方法名 or 属性名:postCardAction|common.d.ts| -|新增||模块名: common
类名: PopupOptions
方法名 or 属性名:showInSubWindow|common.d.ts| -|新增||模块名: common
类名: CustomPopupOptions
方法名 or 属性名:showInSubWindow|common.d.ts| -|新增||模块名: common
类名: LayoutBorderInfo|common.d.ts| -|新增||模块名: common
类名: LayoutBorderInfo
方法名 or 属性名:borderWidth|common.d.ts| -|新增||模块名: common
类名: LayoutBorderInfo
方法名 or 属性名:margin|common.d.ts| -|新增||模块名: common
类名: LayoutBorderInfo
方法名 or 属性名:padding|common.d.ts| -|新增||模块名: common
类名: LayoutInfo|common.d.ts| -|新增||模块名: common
类名: LayoutInfo
方法名 or 属性名:position|common.d.ts| -|新增||模块名: common
类名: LayoutInfo
方法名 or 属性名:constraint|common.d.ts| -|新增||模块名: common
类名: LayoutChild|common.d.ts| -|新增||模块名: common
类名: LayoutChild
方法名 or 属性名:name|common.d.ts| -|新增||模块名: common
类名: LayoutChild
方法名 or 属性名:id|common.d.ts| -|新增||模块名: common
类名: LayoutChild
方法名 or 属性名:constraint|common.d.ts| -|新增||模块名: common
类名: LayoutChild
方法名 or 属性名:borderInfo|common.d.ts| -|新增||模块名: common
类名: LayoutChild
方法名 or 属性名:position|common.d.ts| -|新增||模块名: common
类名: LayoutChild
方法名 or 属性名:measure|common.d.ts| -|新增||模块名: common
类名: LayoutChild
方法名 or 属性名:layout|common.d.ts| -|新增||模块名: common
类名: CustomComponent
方法名 or 属性名:onLayout|common.d.ts| -|新增||模块名: common
类名: CustomComponent
方法名 or 属性名:onMeasure|common.d.ts| -|新增||模块名: common
类名: CustomComponent
方法名 or 属性名:pageTransition|common.d.ts| -|新增||模块名:common_ts_ets_api
类名:AppStorage
方法名 or 属性名:Clear|common_ts_ets_api.d.ts| -|新增||模块名: enums
类名: TitleHeight|enums.d.ts| -|新增||模块名: enums
类名: TitleHeight
方法名 or 属性名: MainOnly|enums.d.ts| -|新增||模块名: enums
类名: TitleHeight
方法名 or 属性名: MainWithSub|enums.d.ts| -|新增||模块名: flow_item
类名: FlowItemInterface|flow_item.d.ts| -|新增||模块名: flow_item
类名: FlowItemInterface
方法名 or 属性名: FlowItemInterface|flow_item.d.ts| -|新增||模块名: flow_item
类名: FlowItemAttribute|flow_item.d.ts| -|新增||方法名 or 属性名:FormComponentInterface
函数:(value: {
id: number;
name: string;
bundle: string;
ability: string;
module: string;
dimension?: FormDimension;
temporary?: boolean;
want?: import('../api/@ohos.application.Want').default;
}): FormComponentAttribute;|form_component.d.ts| -|新增||模块名: navigation
类名: NavigationCommonTitle|navigation.d.ts| -|新增||模块名: navigation
类名: NavigationCommonTitle
方法名 or 属性名:main|navigation.d.ts| -|新增||模块名: navigation
类名: NavigationCommonTitle
方法名 or 属性名:sub|navigation.d.ts| -|新增||模块名: navigation
类名: NavigationCustomTitle|navigation.d.ts| -|新增||模块名: navigation
类名: NavigationCustomTitle
方法名 or 属性名:builder|navigation.d.ts| -|新增||模块名: navigation
类名: NavigationCustomTitle
方法名 or 属性名:height|navigation.d.ts| -|新增||模块名: navigation
类名: NavigationMode|navigation.d.ts| -|新增||模块名: navigation
类名: NavigationMode
方法名 or 属性名:Stack|navigation.d.ts| -|新增||模块名: navigation
类名: NavigationMode
方法名 or 属性名:Split|navigation.d.ts| -|新增||模块名: navigation
类名: NavigationMode
方法名 or 属性名:Auto|navigation.d.ts| -|新增||模块名: navigation
类名: NavBarPosition|navigation.d.ts| -|新增||模块名: navigation
类名: NavBarPosition
方法名 or 属性名:Start|navigation.d.ts| -|新增||模块名: navigation
类名: NavBarPosition
方法名 or 属性名:End|navigation.d.ts| -|新增||模块名:navigation
类名:NavigationAttribute
方法名 or 属性名:navBarWidth|navigation.d.ts| -|新增||模块名:navigation
类名:NavigationAttribute
方法名 or 属性名:navBarPosition|navigation.d.ts| -|新增||模块名:navigation
类名:NavigationAttribute
方法名 or 属性名:mode|navigation.d.ts| -|新增||模块名:navigation
类名:NavigationAttribute
方法名 or 属性名:backButtonIcon|navigation.d.ts| -|新增||模块名:navigation
类名:NavigationAttribute
方法名 or 属性名:hideNavBar|navigation.d.ts| -|新增||方法名 or 属性名:title
函数:title(value: string \| CustomBuilder \| NavigationCommonTitle \| NavigationCustomTitle): NavigationAttribute;|navigation.d.ts| -|新增||模块名:navigation
类名:NavigationAttribute
方法名 or 属性名:onNavBarStateChange|navigation.d.ts| -|新增||模块名: nav_destination
类名: NavDestinationCommonTitle|nav_destination.d.ts| -|新增||模块名: nav_destination
类名: NavDestinationCommonTitle
方法名 or 属性名: main|nav_destination.d.ts| -|新增||模块名: nav_destination
类名: NavDestinationCommonTitle
方法名 or 属性名: sub|nav_destination.d.ts| -|新增||模块名: nav_destination
类名: NavDestinationCustomTitle|nav_destination.d.ts| -|新增||模块名: nav_destination
类名: NavDestinationCustomTitle
方法名 or 属性名: builder|nav_destination.d.ts| -|新增||模块名: nav_destination
类名: NavDestinationCustomTitle
方法名 or 属性名: height|nav_destination.d.ts| -|新增||模块名: nav_destination
类名: NavDestinationInterface|nav_destination.d.ts| -|新增||模块名: nav_destination
类名: NavDestinationInterface
方法名 or 属性名: NavDestinationInterface|nav_destination.d.ts| -|新增||模块名: nav_destination
类名: NavDestinationAttribute|nav_destination.d.ts| -|新增||模块名: nav_destination
类名: NavDestinationAttribute
方法名 or 属性名: title|nav_destination.d.ts| -|新增||模块名: nav_destination
类名: NavDestinationAttribute
方法名 or 属性名: hideTitleBar|nav_destination.d.ts| -|新增||模块名: nav_router
类名: NavRouterInterface|nav_router.d.ts| -|新增||模块名: nav_router
类名: NavRouterInterface
方法名 or 属性名: NavRouterInterface|nav_router.d.ts| -|新增||模块名: nav_router
类名: NavRouterAttribute|nav_router.d.ts| -|新增||模块名: nav_router
类名: NavRouterAttribute
方法名 or 属性名: onStateChange|nav_router.d.ts| -|新增||模块名: water_flow
类名: WaterFlowOptions|water_flow.d.ts| -|新增||模块名: water_flow
类名: WaterFlowOptions
方法名 or 属性名: footer|water_flow.d.ts| -|新增||模块名: water_flow
类名: WaterFlowOptions
方法名 or 属性名: scroller|water_flow.d.ts| -|新增||模块名: water_flow
类名: WaterFlowInterface|water_flow.d.ts| -|新增||模块名: water_flow
类名: WaterFlowInterface
方法名 or 属性名: WaterFlowInterface|water_flow.d.ts| -|新增||模块名: water_flow
类名: WaterFlowAttribute|water_flow.d.ts| -|新增||模块名: water_flow
类名: WaterFlowAttribute
方法名 or 属性名: columnsTemplate|water_flow.d.ts| -|新增||模块名: water_flow
类名: WaterFlowAttribute
方法名 or 属性名: itemConstraintSize|water_flow.d.ts| -|新增||模块名: water_flow
类名: WaterFlowAttribute
方法名 or 属性名: rowsTemplate|water_flow.d.ts| -|新增||模块名: water_flow
类名: WaterFlowAttribute
方法名 or 属性名: columnsGap|water_flow.d.ts| -|新增||模块名: water_flow
类名: WaterFlowAttribute
方法名 or 属性名: rowsGap|water_flow.d.ts| -|新增||模块名: water_flow
类名: WaterFlowAttribute
方法名 or 属性名: layoutDirection|water_flow.d.ts| -|新增||模块名: water_flow
类名: WaterFlowAttribute
方法名 or 属性名: onReachStart|water_flow.d.ts| -|新增||模块名: water_flow
类名: WaterFlowAttribute
方法名 or 属性名: onReachEnd|water_flow.d.ts| -|新增||模块名: web
类名: FullScreenExitHandler|web.d.ts| -|新增||模块名: web
类名: FullScreenExitHandler
方法名 or 属性名:exitFullScreen|web.d.ts| -|新增||模块名: web
类名: ControllerHandler|web.d.ts| -|新增||模块名: web
类名: ControllerHandler
方法名 or 属性名:setWebController|web.d.ts| -|新增||模块名:web
类名:WebController
方法名 or 属性名:getUrl|web.d.ts| -|新增||方法名 or 属性名:controller
函数:controller: WebController \| WebviewController;|web.d.ts| -|新增||方法名 or 属性名:javaScriptProxy
函数:javaScriptProxy(javaScriptProxy: { object: object, name: string, methodList: Array,
controller: WebController \| WebviewController }): WebAttribute;|web.d.ts| -|新增||模块名:web
类名:WebAttribute
方法名 or 属性名:onFullScreenExit|web.d.ts| -|新增||模块名:web
类名:WebAttribute
方法名 or 属性名:onFullScreenEnter|web.d.ts| -|新增||模块名:web
类名:WebAttribute
方法名 or 属性名:onWindowNew|web.d.ts| -|新增||模块名:web
类名:WebAttribute
方法名 or 属性名:onWindowExit|web.d.ts| -|新增||模块名:web
类名:WebAttribute
方法名 or 属性名:multiWindowAccess|web.d.ts| -|新增||模块名:viewmodel
类名:ViewModel
方法名 or 属性名:$t|viewmodel.d.ts| -|新增||模块名:viewmodel
类名:ElementReferences
方法名 or 属性名:ElementReferences|viewmodel.d.ts| -|删除|模块名: ohos.uiAppearance
类名: uiAppearance||@ohos.uiAppearance.d.ts| -|删除|模块名: ohos.uiAppearance
类名: DarkMode||@ohos.uiAppearance.d.ts| -|删除|模块名: ohos.uiAppearance
类名: DarkMode
方法名 or 属性名: ALWAYS_DARK||@ohos.uiAppearance.d.ts| -|删除|模块名: ohos.uiAppearance
类名: DarkMode
方法名 or 属性名: ALWAYS_LIGHT||@ohos.uiAppearance.d.ts| -|删除|模块名: ohos.uiAppearance
类名: uiAppearance
方法名 or 属性名: setDarkMode||@ohos.uiAppearance.d.ts| -|删除|模块名: ohos.uiAppearance
类名: uiAppearance
方法名 or 属性名: setDarkMode||@ohos.uiAppearance.d.ts| -|删除|模块名: ohos.uiAppearance
类名: uiAppearance
方法名 or 属性名: getDarkMode||@ohos.uiAppearance.d.ts| -|删除|模块名:web
类名:WebAttribute
方法名 or 属性名:fileFromUrlAccess||web.d.ts| +|新增|NA|模块名: canvaspattern
类名: CanvasPattern|canvaspattern.d.ts| +|新增|NA|模块名: canvaspattern
类名: CanvasPattern
方法名 or 属性名: setTransform|canvaspattern.d.ts| +|新增|NA|模块名: canvaspattern
类名: Matrix2D|canvaspattern.d.ts| +|新增|NA|模块名: canvaspattern
类名: Matrix2D
方法名 or 属性名: scaleX|canvaspattern.d.ts| +|新增|NA|模块名: canvaspattern
类名: Matrix2D
方法名 or 属性名: rotateY|canvaspattern.d.ts| +|新增|NA|模块名: canvaspattern
类名: Matrix2D
方法名 or 属性名: rotateX|canvaspattern.d.ts| +|新增|NA|模块名: canvaspattern
类名: Matrix2D
方法名 or 属性名: scaleY|canvaspattern.d.ts| +|新增|NA|模块名: canvaspattern
类名: Matrix2D
方法名 or 属性名: translateX|canvaspattern.d.ts| +|新增|NA|模块名: canvaspattern
类名: Matrix2D
方法名 or 属性名: translateY|canvaspattern.d.ts| +|新增|NA|模块名: canvaspattern
类名: Matrix2D
方法名 or 属性名: identity|canvaspattern.d.ts| +|新增|NA|模块名: canvaspattern
类名: Matrix2D
方法名 or 属性名: invert|canvaspattern.d.ts| +|新增|NA|模块名: canvaspattern
类名: Matrix2D
方法名 or 属性名: multiply|canvaspattern.d.ts| +|新增|NA|模块名: canvaspattern
类名: Matrix2D
方法名 or 属性名: rotate|canvaspattern.d.ts| +|新增|NA|模块名: canvaspattern
类名: Matrix2D
方法名 or 属性名: translate|canvaspattern.d.ts| +|新增|NA|模块名: canvaspattern
类名: Matrix2D
方法名 or 属性名: scale|canvaspattern.d.ts| +|新增|NA|模块名: ohos.promptAction
类名: promptAction|@ohos.promptAction.d.ts| +|新增|NA|模块名: ohos.promptAction
类名: ShowToastOptions|@ohos.promptAction.d.ts| +|新增|NA|模块名: ohos.promptAction
类名: ShowToastOptions
方法名 or 属性名: message|@ohos.promptAction.d.ts| +|新增|NA|模块名: ohos.promptAction
类名: ShowToastOptions
方法名 or 属性名: duration|@ohos.promptAction.d.ts| +|新增|NA|模块名: ohos.promptAction
类名: ShowToastOptions
方法名 or 属性名: bottom|@ohos.promptAction.d.ts| +|新增|NA|模块名: ohos.promptAction
类名: Button|@ohos.promptAction.d.ts| +|新增|NA|模块名: ohos.promptAction
类名: Button
方法名 or 属性名: text|@ohos.promptAction.d.ts| +|新增|NA|模块名: ohos.promptAction
类名: Button
方法名 or 属性名: color|@ohos.promptAction.d.ts| +|新增|NA|模块名: ohos.promptAction
类名: ShowDialogSuccessResponse|@ohos.promptAction.d.ts| +|新增|NA|模块名: ohos.promptAction
类名: ShowDialogSuccessResponse
方法名 or 属性名: index|@ohos.promptAction.d.ts| +|新增|NA|模块名: ohos.promptAction
类名: ShowDialogOptions|@ohos.promptAction.d.ts| +|新增|NA|模块名: ohos.promptAction
类名: ShowDialogOptions
方法名 or 属性名: title|@ohos.promptAction.d.ts| +|新增|NA|模块名: ohos.promptAction
类名: ShowDialogOptions
方法名 or 属性名: message|@ohos.promptAction.d.ts| +|新增|NA|模块名: ohos.promptAction
类名: ShowDialogOptions
方法名 or 属性名: buttons|@ohos.promptAction.d.ts| +|新增|NA|模块名: ohos.promptAction
类名: ActionMenuSuccessResponse|@ohos.promptAction.d.ts| +|新增|NA|模块名: ohos.promptAction
类名: ActionMenuSuccessResponse
方法名 or 属性名: index|@ohos.promptAction.d.ts| +|新增|NA|模块名: ohos.promptAction
类名: ActionMenuOptions|@ohos.promptAction.d.ts| +|新增|NA|模块名: ohos.promptAction
类名: ActionMenuOptions
方法名 or 属性名: title|@ohos.promptAction.d.ts| +|新增|NA|模块名: ohos.promptAction
类名: ActionMenuOptions
方法名 or 属性名: buttons|@ohos.promptAction.d.ts| +|新增|NA|模块名: ohos.promptAction
类名: promptAction
方法名 or 属性名: showToast|@ohos.promptAction.d.ts| +|新增|NA|模块名: ohos.promptAction
类名: promptAction
方法名 or 属性名: showDialog|@ohos.promptAction.d.ts| +|新增|NA|模块名: ohos.promptAction
类名: promptAction
方法名 or 属性名: showDialog|@ohos.promptAction.d.ts| +|新增|NA|模块名: ohos.promptAction
类名: promptAction
方法名 or 属性名: showActionMenu|@ohos.promptAction.d.ts| +|新增|NA|模块名: ohos.promptAction
类名: promptAction
方法名 or 属性名: showActionMenu|@ohos.promptAction.d.ts| +|新增|NA|方法名 or 属性名:AbilityComponentInterface
函数:(value: {want: import('../api/@ohos.application.Want').default}): AbilityComponentAttribute;|ability_component.d.ts| +|新增|NA|模块名: common
类名:
方法名 or 属性名:postCardAction|common.d.ts| +|新增|NA|模块名: common
类名: PopupOptions
方法名 or 属性名:showInSubWindow|common.d.ts| +|新增|NA|模块名: common
类名: CustomPopupOptions
方法名 or 属性名:showInSubWindow|common.d.ts| +|新增|NA|模块名: common
类名: LayoutBorderInfo|common.d.ts| +|新增|NA|模块名: common
类名: LayoutBorderInfo
方法名 or 属性名:borderWidth|common.d.ts| +|新增|NA|模块名: common
类名: LayoutBorderInfo
方法名 or 属性名:margin|common.d.ts| +|新增|NA|模块名: common
类名: LayoutBorderInfo
方法名 or 属性名:padding|common.d.ts| +|新增|NA|模块名: common
类名: LayoutInfo|common.d.ts| +|新增|NA|模块名: common
类名: LayoutInfo
方法名 or 属性名:position|common.d.ts| +|新增|NA|模块名: common
类名: LayoutInfo
方法名 or 属性名:constraint|common.d.ts| +|新增|NA|模块名: common
类名: LayoutChild|common.d.ts| +|新增|NA|模块名: common
类名: LayoutChild
方法名 or 属性名:name|common.d.ts| +|新增|NA|模块名: common
类名: LayoutChild
方法名 or 属性名:id|common.d.ts| +|新增|NA|模块名: common
类名: LayoutChild
方法名 or 属性名:constraint|common.d.ts| +|新增|NA|模块名: common
类名: LayoutChild
方法名 or 属性名:borderInfo|common.d.ts| +|新增|NA|模块名: common
类名: LayoutChild
方法名 or 属性名:position|common.d.ts| +|新增|NA|模块名: common
类名: LayoutChild
方法名 or 属性名:measure|common.d.ts| +|新增|NA|模块名: common
类名: LayoutChild
方法名 or 属性名:layout|common.d.ts| +|新增|NA|模块名: common
类名: CustomComponent
方法名 or 属性名:onLayout|common.d.ts| +|新增|NA|模块名: common
类名: CustomComponent
方法名 or 属性名:onMeasure|common.d.ts| +|新增|NA|模块名: common
类名: CustomComponent
方法名 or 属性名:pageTransition|common.d.ts| +|新增|NA|模块名: common
类名: SpecialEvent|common.d.ts| +|新增|NA|模块名: common_ts_ets_api
类名: LocalStorage|common_ts_ets_api.d.ts| +|新增|NA|模块名: common_ts_ets_api
类名: LocalStorage
方法名 or 属性名:ructor(initializingProperties?|common_ts_ets_api.d.ts| +|新增|NA|模块名: common_ts_ets_api
类名: LocalStorage
方法名 or 属性名:GetShared|common_ts_ets_api.d.ts| +|新增|NA|模块名: common_ts_ets_api
类名: LocalStorage
方法名 or 属性名:has|common_ts_ets_api.d.ts| +|新增|NA|模块名: common_ts_ets_api
类名: LocalStorage
方法名 or 属性名:keys|common_ts_ets_api.d.ts| +|新增|NA|模块名: common_ts_ets_api
类名: LocalStorage
方法名 or 属性名:size|common_ts_ets_api.d.ts| +|新增|NA|模块名: common_ts_ets_api
类名: LocalStorage
方法名 or 属性名:get|common_ts_ets_api.d.ts| +|新增|NA|模块名: common_ts_ets_api
类名: LocalStorage
方法名 or 属性名:set|common_ts_ets_api.d.ts| +|新增|NA|模块名: common_ts_ets_api
类名: LocalStorage
方法名 or 属性名:setOrCreate|common_ts_ets_api.d.ts| +|新增|NA|模块名: common_ts_ets_api
类名: LocalStorage
方法名 or 属性名:link|common_ts_ets_api.d.ts| +|新增|NA|模块名: common_ts_ets_api
类名: LocalStorage
方法名 or 属性名:setAndLink|common_ts_ets_api.d.ts| +|新增|NA|模块名: common_ts_ets_api
类名: LocalStorage
方法名 or 属性名:prop|common_ts_ets_api.d.ts| +|新增|NA|模块名: common_ts_ets_api
类名: LocalStorage
方法名 or 属性名:setAndProp|common_ts_ets_api.d.ts| +|新增|NA|模块名: common_ts_ets_api
类名: LocalStorage
方法名 or 属性名:delete|common_ts_ets_api.d.ts| +|新增|NA|模块名: common_ts_ets_api
类名: LocalStorage
方法名 or 属性名:clear|common_ts_ets_api.d.ts| +|新增|NA|模块名: common_ts_ets_api
类名: StateManagement|common_ts_ets_api.d.ts| +|新增|NA|模块名: enums
类名: TitleHeight|enums.d.ts| +|新增|NA|模块名: enums
类名: TitleHeight
方法名 or 属性名: MainOnly|enums.d.ts| +|新增|NA|模块名: enums
类名: TitleHeight
方法名 or 属性名: MainWithSub|enums.d.ts| +|新增|NA|模块名: flow_item
类名: FlowItemInterface|flow_item.d.ts| +|新增|NA|模块名: flow_item
类名: FlowItemInterface
方法名 or 属性名: FlowItemInterface|flow_item.d.ts| +|新增|NA|模块名: flow_item
类名: FlowItemAttribute|flow_item.d.ts| +|新增|NA|方法名 or 属性名:FormComponentInterface
函数:(value: {
id: number;
name: string;
bundle: string;
ability: string;
module: string;
dimension?: FormDimension;
temporary?: boolean;
want?: import('../api/@ohos.application.Want').default;
}): FormComponentAttribute;|form_component.d.ts| +|新增|NA|模块名: grid_row
类名: GutterOption|grid_row.d.ts| +|新增|NA|模块名: grid_row
类名: GutterOption
方法名 or 属性名:x|grid_row.d.ts| +|新增|NA|模块名: grid_row
类名: GutterOption
方法名 or 属性名:y|grid_row.d.ts| +|新增|NA|方法名 or 属性名:gutter
函数:gutter?: Length \| GutterOption;|grid_row.d.ts| +|新增|NA|方法名 or 属性名:GridRowInterface
函数:(option?: GridRowOptions): GridRowAttribute;|grid_row.d.ts| +|新增|NA|模块名: image
类名: ImageAttribute
方法名 or 属性名: onError|image.d.ts| +|新增|NA|模块名: list
类名: StickyStyle|list.d.ts| +|新增|NA|模块名: list
类名: StickyStyle
方法名 or 属性名: None|list.d.ts| +|新增|NA|模块名: list
类名: StickyStyle
方法名 or 属性名: Header|list.d.ts| +|新增|NA|模块名: list
类名: StickyStyle
方法名 or 属性名: Footer|list.d.ts| +|新增|NA|模块名: list
类名: ListAttribute
方法名 or 属性名: sticky|list.d.ts| +|新增|NA|模块名: list_item_group
类名: ListItemGroupOptions|list_item_group.d.ts| +|新增|NA|模块名: list_item_group
类名: ListItemGroupOptions
方法名 or 属性名: header|list_item_group.d.ts| +|新增|NA|模块名: list_item_group
类名: ListItemGroupOptions
方法名 or 属性名: footer|list_item_group.d.ts| +|新增|NA|模块名: list_item_group
类名: ListItemGroupOptions
方法名 or 属性名: space|list_item_group.d.ts| +|新增|NA|模块名: list_item_group
类名: ListItemGroupInterface|list_item_group.d.ts| +|新增|NA|模块名: list_item_group
类名: ListItemGroupInterface
方法名 or 属性名: ListItemGroupInterface|list_item_group.d.ts| +|新增|NA|模块名: list_item_group
类名: ListItemGroupAttribute|list_item_group.d.ts| +|新增|NA|模块名: list_item_group
类名: ListItemGroupAttribute
方法名 or 属性名: divider|list_item_group.d.ts| +|新增|NA|模块名: navigation
类名: NavigationCommonTitle|navigation.d.ts| +|新增|NA|模块名: navigation
类名: NavigationCommonTitle
方法名 or 属性名:main|navigation.d.ts| +|新增|NA|模块名: navigation
类名: NavigationCommonTitle
方法名 or 属性名:sub|navigation.d.ts| +|新增|NA|模块名: navigation
类名: NavigationCustomTitle|navigation.d.ts| +|新增|NA|模块名: navigation
类名: NavigationCustomTitle
方法名 or 属性名:builder|navigation.d.ts| +|新增|NA|模块名: navigation
类名: NavigationCustomTitle
方法名 or 属性名:height|navigation.d.ts| +|新增|NA|模块名: navigation
类名: NavigationMode|navigation.d.ts| +|新增|NA|模块名: navigation
类名: NavigationMode
方法名 or 属性名:Stack|navigation.d.ts| +|新增|NA|模块名: navigation
类名: NavigationMode
方法名 or 属性名:Split|navigation.d.ts| +|新增|NA|模块名: navigation
类名: NavigationMode
方法名 or 属性名:Auto|navigation.d.ts| +|新增|NA|模块名: navigation
类名: NavBarPosition|navigation.d.ts| +|新增|NA|模块名: navigation
类名: NavBarPosition
方法名 or 属性名:Start|navigation.d.ts| +|新增|NA|模块名: navigation
类名: NavBarPosition
方法名 or 属性名:End|navigation.d.ts| +|新增|NA|方法名 or 属性名:title
函数:title(value: string \| CustomBuilder \| NavigationCommonTitle \| NavigationCustomTitle): NavigationAttribute;|navigation.d.ts| +|新增|NA|模块名: nav_destination
类名: NavDestinationCommonTitle|nav_destination.d.ts| +|新增|NA|模块名: nav_destination
类名: NavDestinationCommonTitle
方法名 or 属性名: main|nav_destination.d.ts| +|新增|NA|模块名: nav_destination
类名: NavDestinationCommonTitle
方法名 or 属性名: sub|nav_destination.d.ts| +|新增|NA|模块名: nav_destination
类名: NavDestinationCustomTitle|nav_destination.d.ts| +|新增|NA|模块名: nav_destination
类名: NavDestinationCustomTitle
方法名 or 属性名: builder|nav_destination.d.ts| +|新增|NA|模块名: nav_destination
类名: NavDestinationCustomTitle
方法名 or 属性名: height|nav_destination.d.ts| +|新增|NA|模块名: nav_destination
类名: NavDestinationInterface|nav_destination.d.ts| +|新增|NA|模块名: nav_destination
类名: NavDestinationInterface
方法名 or 属性名: NavDestinationInterface|nav_destination.d.ts| +|新增|NA|模块名: nav_destination
类名: NavDestinationAttribute|nav_destination.d.ts| +|新增|NA|模块名: nav_destination
类名: NavDestinationAttribute
方法名 or 属性名: title|nav_destination.d.ts| +|新增|NA|模块名: nav_destination
类名: NavDestinationAttribute
方法名 or 属性名: hideTitleBar|nav_destination.d.ts| +|新增|NA|模块名: nav_router
类名: NavRouterInterface|nav_router.d.ts| +|新增|NA|模块名: nav_router
类名: NavRouterInterface
方法名 or 属性名: NavRouterInterface|nav_router.d.ts| +|新增|NA|模块名: nav_router
类名: NavRouterAttribute|nav_router.d.ts| +|新增|NA|模块名: nav_router
类名: NavRouterAttribute
方法名 or 属性名: onStateChange|nav_router.d.ts| +|新增|NA|模块名: units
类名: GlobalResource|units.d.ts| +|新增|NA|模块名: water_flow
类名: WaterFlowOptions|water_flow.d.ts| +|新增|NA|模块名: water_flow
类名: WaterFlowOptions
方法名 or 属性名: footer|water_flow.d.ts| +|新增|NA|模块名: water_flow
类名: WaterFlowOptions
方法名 or 属性名: scroller|water_flow.d.ts| +|新增|NA|模块名: water_flow
类名: WaterFlowInterface|water_flow.d.ts| +|新增|NA|模块名: water_flow
类名: WaterFlowInterface
方法名 or 属性名: WaterFlowInterface|water_flow.d.ts| +|新增|NA|模块名: water_flow
类名: WaterFlowAttribute|water_flow.d.ts| +|新增|NA|模块名: water_flow
类名: WaterFlowAttribute
方法名 or 属性名: columnsTemplate|water_flow.d.ts| +|新增|NA|模块名: water_flow
类名: WaterFlowAttribute
方法名 or 属性名: itemConstraintSize|water_flow.d.ts| +|新增|NA|模块名: water_flow
类名: WaterFlowAttribute
方法名 or 属性名: rowsTemplate|water_flow.d.ts| +|新增|NA|模块名: water_flow
类名: WaterFlowAttribute
方法名 or 属性名: columnsGap|water_flow.d.ts| +|新增|NA|模块名: water_flow
类名: WaterFlowAttribute
方法名 or 属性名: rowsGap|water_flow.d.ts| +|新增|NA|模块名: water_flow
类名: WaterFlowAttribute
方法名 or 属性名: layoutDirection|water_flow.d.ts| +|新增|NA|模块名: water_flow
类名: WaterFlowAttribute
方法名 or 属性名: onReachStart|water_flow.d.ts| +|新增|NA|模块名: water_flow
类名: WaterFlowAttribute
方法名 or 属性名: onReachEnd|water_flow.d.ts| +|新增|NA|模块名: web
类名: FullScreenExitHandler|web.d.ts| +|新增|NA|模块名: web
类名: FullScreenExitHandler
方法名 or 属性名:exitFullScreen|web.d.ts| +|新增|NA|模块名: web
类名: SslError|web.d.ts| +|新增|NA|模块名: web
类名: SslError
方法名 or 属性名:Invalid|web.d.ts| +|新增|NA|模块名: web
类名: SslError
方法名 or 属性名:HostMismatch|web.d.ts| +|新增|NA|模块名: web
类名: SslError
方法名 or 属性名:DateInvalid|web.d.ts| +|新增|NA|模块名: web
类名: SslError
方法名 or 属性名:Untrusted|web.d.ts| +|新增|NA|模块名: web
类名: SslErrorHandler|web.d.ts| +|新增|NA|模块名: web
类名: SslErrorHandler
方法名 or 属性名:handleConfirm|web.d.ts| +|新增|NA|模块名: web
类名: SslErrorHandler
方法名 or 属性名:handleCancel|web.d.ts| +|新增|NA|模块名: web
类名: ClientAuthenticationHandler|web.d.ts| +|新增|NA|模块名: web
类名: ClientAuthenticationHandler
方法名 or 属性名:confirm|web.d.ts| +|新增|NA|模块名: web
类名: ClientAuthenticationHandler
方法名 or 属性名:cancel|web.d.ts| +|新增|NA|模块名: web
类名: ClientAuthenticationHandler
方法名 or 属性名:ignore|web.d.ts| +|新增|NA|模块名: web
类名: ControllerHandler|web.d.ts| +|新增|NA|模块名: web
类名: ControllerHandler
方法名 or 属性名:setWebController|web.d.ts| +|新增|NA|方法名 or 属性名:controller
函数:controller: WebController \| WebviewController;|web.d.ts| +|新增|NA|方法名 or 属性名:javaScriptProxy
函数:javaScriptProxy(javaScriptProxy: { object: object, name: string, methodList: Array,
controller: WebController \| WebviewController }): WebAttribute;|web.d.ts| +|新增|NA|方法名 or 属性名:getXComponentSurfaceId
函数:getXComponentSurfaceId(): string;|xcomponent.d.ts| +|新增|NA|方法名 or 属性名:getXComponentContext
函数:getXComponentContext(): Object;|xcomponent.d.ts| +|新增|NA|方法名 or 属性名:setXComponentSurfaceSize
函数:setXComponentSurfaceSize(value: {
surfaceWidth: number;
surfaceHeight: number;
}): void;|xcomponent.d.ts| +|新增|NA|方法名 or 属性名:drawImage
函数:drawImage(image: image.PixelMap, dx: number, dy: number, dw: number, dh: number): void;|viewmodel.d.ts| +|新增|NA|方法名 or 属性名:drawImage
函数:drawImage(
image: image.PixelMap,
sx: number,
sy: number,
sw: number,
sh: number,
dx: number,
dy: number,
dw: number,
dh: number,
): void;|viewmodel.d.ts| +|新增|NA|方法名 or 属性名:getPixelMap
函数:getPixelMap(sx: number, sy: number, sw: number, sh: number): image.PixelMap|viewmodel.d.ts| +|新增|NA|方法名 or 属性名:drawImage
函数:drawImage(image: image.PixelMap, dx: number, dy: number, dWidth: number, dHeight: number): void;|viewmodel.d.ts| +|新增|NA|方法名 or 属性名:drawImage
函数:drawImage(
image: image.PixelMap,
sx: number,
sy: number,
sWidth: number,
sHeight: number,
dx: number,
dy: number,
dWidth: number,
dHeight: number,
): void;|viewmodel.d.ts| +|删除|模块名: ohos.uiAppearance
类名: uiAppearance|NA|@ohos.uiAppearance.d.ts| +|删除|模块名: ohos.uiAppearance
类名: DarkMode|NA|@ohos.uiAppearance.d.ts| +|删除|模块名: ohos.uiAppearance
类名: DarkMode
方法名 or 属性名: ALWAYS_DARK|NA|@ohos.uiAppearance.d.ts| +|删除|模块名: ohos.uiAppearance
类名: DarkMode
方法名 or 属性名: ALWAYS_LIGHT|NA|@ohos.uiAppearance.d.ts| +|删除|模块名: ohos.uiAppearance
类名: uiAppearance
方法名 or 属性名: setDarkMode|NA|@ohos.uiAppearance.d.ts| +|删除|模块名: ohos.uiAppearance
类名: uiAppearance
方法名 or 属性名: setDarkMode|NA|@ohos.uiAppearance.d.ts| +|删除|模块名: ohos.uiAppearance
类名: uiAppearance
方法名 or 属性名: getDarkMode|NA|@ohos.uiAppearance.d.ts| +|删除|模块名: canvas
类名: CanvasPattern|NA|canvas.d.ts| +|删除|模块名: canvas
类名: CanvasPattern
方法名 or 属性名: setTransform|NA|canvas.d.ts| +|删除|模块名: grid_row
类名: GetterOption|NA|grid_row.d.ts| +|删除|模块名: grid_row
类名: GetterOption
方法名 or 属性名:x|NA|grid_row.d.ts| +|删除|模块名: grid_row
类名: GetterOption
方法名 or 属性名:y|NA|grid_row.d.ts| +|删除|模块名: state_management
类名: LocalStorage|NA|state_management.d.ts| +|删除|模块名: state_management
类名: LocalStorage
方法名 or 属性名: ructor(initializingProperties?|NA|state_management.d.ts| +|删除|模块名: state_management
类名: LocalStorage
方法名 or 属性名: GetShared|NA|state_management.d.ts| +|删除|模块名: state_management
类名: LocalStorage
方法名 or 属性名: has|NA|state_management.d.ts| +|删除|模块名: state_management
类名: LocalStorage
方法名 or 属性名: keys|NA|state_management.d.ts| +|删除|模块名: state_management
类名: LocalStorage
方法名 or 属性名: size|NA|state_management.d.ts| +|删除|模块名: state_management
类名: LocalStorage
方法名 or 属性名: get|NA|state_management.d.ts| +|删除|模块名: state_management
类名: LocalStorage
方法名 or 属性名: set|NA|state_management.d.ts| +|删除|模块名: state_management
类名: LocalStorage
方法名 or 属性名: setOrCreate|NA|state_management.d.ts| +|删除|模块名: state_management
类名: LocalStorage
方法名 or 属性名: link|NA|state_management.d.ts| +|删除|模块名: state_management
类名: LocalStorage
方法名 or 属性名: setAndLink|NA|state_management.d.ts| +|删除|模块名: state_management
类名: LocalStorage
方法名 or 属性名: prop|NA|state_management.d.ts| +|删除|模块名: state_management
类名: LocalStorage
方法名 or 属性名: setAndProp|NA|state_management.d.ts| +|删除|模块名: state_management
类名: LocalStorage
方法名 or 属性名: delete|NA|state_management.d.ts| +|删除|模块名: state_management
类名: LocalStorage
方法名 or 属性名: clear|NA|state_management.d.ts| +|删除|模块名:web
类名:WebAttribute
方法名 or 属性名:fileFromUrlAccess|NA|web.d.ts| +|访问级别有变化|类名:SubscribeMessageResponse
访问级别:系统API|类名:SubscribeMessageResponse
访问级别:公开API|featureability.d.ts| +|访问级别有变化|方法名 or 属性名:deviceId
访问级别:系统API|方法名 or 属性名:deviceId
访问级别:公开API|featureability.d.ts| +|访问级别有变化|方法名 or 属性名:bundleName
访问级别:系统API|方法名 or 属性名:bundleName
访问级别:公开API|featureability.d.ts| +|访问级别有变化|方法名 or 属性名:abilityName
访问级别:系统API|方法名 or 属性名:abilityName
访问级别:公开API|featureability.d.ts| +|访问级别有变化|方法名 or 属性名:message
访问级别:系统API|方法名 or 属性名:message
访问级别:公开API|featureability.d.ts| +|访问级别有变化|类名:SendMessageOptions
访问级别:系统API|类名:SendMessageOptions
访问级别:公开API|featureability.d.ts| +|访问级别有变化|方法名 or 属性名:deviceId
访问级别:系统API|方法名 or 属性名:deviceId
访问级别:公开API|featureability.d.ts| +|访问级别有变化|方法名 or 属性名:bundleName
访问级别:系统API|方法名 or 属性名:bundleName
访问级别:公开API|featureability.d.ts| +|访问级别有变化|方法名 or 属性名:abilityName
访问级别:系统API|方法名 or 属性名:abilityName
访问级别:公开API|featureability.d.ts| +|访问级别有变化|方法名 or 属性名:message
访问级别:系统API|方法名 or 属性名:message
访问级别:公开API|featureability.d.ts| +|访问级别有变化|方法名 or 属性名:success
访问级别:系统API|方法名 or 属性名:success
访问级别:公开API|featureability.d.ts| +|访问级别有变化|方法名 or 属性名:fail
访问级别:系统API|方法名 or 属性名:fail
访问级别:公开API|featureability.d.ts| +|访问级别有变化|方法名 or 属性名:complete
访问级别:系统API|方法名 or 属性名:complete
访问级别:公开API|featureability.d.ts| +|访问级别有变化|类名:SubscribeMessageOptions
访问级别:系统API|类名:SubscribeMessageOptions
访问级别:公开API|featureability.d.ts| +|访问级别有变化|方法名 or 属性名:success
访问级别:系统API|方法名 or 属性名:success
访问级别:公开API|featureability.d.ts| +|访问级别有变化|方法名 or 属性名:fail
访问级别:系统API|方法名 or 属性名:fail
访问级别:公开API|featureability.d.ts| +|访问级别有变化|方法名 or 属性名:sendMsg
访问级别:系统API|方法名 or 属性名:sendMsg
访问级别:公开API|featureability.d.ts| +|访问级别有变化|方法名 or 属性名:subscribeMsg
访问级别:系统API|方法名 or 属性名:subscribeMsg
访问级别:公开API|featureability.d.ts| +|访问级别有变化|方法名 or 属性名:unsubscribeMsg
访问级别:系统API|方法名 or 属性名:unsubscribeMsg
访问级别:公开API|featureability.d.ts| |访问级别有变化|方法名 or 属性名:springMotion
访问级别:公开API|方法名 or 属性名:springMotion
访问级别:系统API|@ohos.curves.d.ts| |访问级别有变化|方法名 or 属性名:responsiveSpringMotion
访问级别:公开API|方法名 or 属性名:responsiveSpringMotion
访问级别:系统API|@ohos.curves.d.ts| +|访问级别有变化|方法名 or 属性名:requestFullWindow
访问级别:系统API|方法名 or 属性名:requestFullWindow
访问级别:公开API|@system.app.d.ts| |访问级别有变化|类名:BlurStyle
访问级别:公开API|类名:BlurStyle
访问级别:系统API|common.d.ts| |访问级别有变化|方法名 or 属性名:Thin
访问级别:公开API|方法名 or 属性名:Thin
访问级别:系统API|common.d.ts| |访问级别有变化|方法名 or 属性名:Regular
访问级别:公开API|方法名 or 属性名:Regular
访问级别:系统API|common.d.ts| @@ -150,6 +236,7 @@ |废弃版本有变化|方法名 or 属性名:push
废弃版本:N/A|方法名 or 属性名:push
废弃版本:9
代替接口:ohos.router.router|@ohos.router.d.ts| |废弃版本有变化|方法名 or 属性名:replace
废弃版本:N/A|方法名 or 属性名:replace
废弃版本:9
代替接口:ohos.router.router|@ohos.router.d.ts| |废弃版本有变化|方法名 or 属性名:enableAlertBeforeBackPage
废弃版本:N/A|方法名 or 属性名:enableAlertBeforeBackPage
废弃版本:9
代替接口:ohos.router.router|@ohos.router.d.ts| +|废弃版本有变化|方法名 or 属性名:requestFullWindow
废弃版本:N/A|方法名 or 属性名:requestFullWindow
废弃版本:8
代替接口:startAbility |@system.app.d.ts| |废弃版本有变化|方法名 or 属性名:staticClear
废弃版本:N/A|方法名 or 属性名:staticClear
废弃版本:9
代替接口:AppStorage.Clear |common_ts_ets_api.d.ts| |废弃版本有变化|方法名 or 属性名:subTitle
废弃版本:N/A|方法名 or 属性名:subTitle
废弃版本:9
代替接口:title |navigation.d.ts| |废弃版本有变化|方法名 or 属性名:ructor(message
废弃版本:N/A|方法名 or 属性名:ructor(message
废弃版本:9
代替接口:ohos.web.ConsoleMessage|web.d.ts| @@ -172,9 +259,30 @@ |废弃版本有变化|方法名 or 属性名:accessStep
废弃版本:N/A|方法名 or 属性名:accessStep
废弃版本:9
代替接口:ohos.web.webview.webview.WebviewController|web.d.ts| |废弃版本有变化|方法名 or 属性名:backward
废弃版本:N/A|方法名 or 属性名:backward
废弃版本:9
代替接口:ohos.web.webview.webview.WebviewController|web.d.ts| |废弃版本有变化|方法名 or 属性名:forward
废弃版本:N/A|方法名 or 属性名:forward
废弃版本:9
代替接口:ohos.web.webview.webview.WebviewController|web.d.ts| +|废弃版本有变化|方法名 or 属性名:textZoomAtio
废弃版本:N/A|方法名 or 属性名:textZoomAtio
废弃版本:9|web.d.ts| |起始版本有变化|方法名 or 属性名:extendViewModel
起始版本:|方法名 or 属性名:extendViewModel
起始版本:4|viewmodel.d.ts| +|访问级别有变化|类名:SubscribeMessageResponse
访问级别:系统API|类名:SubscribeMessageResponse
访问级别:公开API|featureability.d.ts| +|访问级别有变化|方法名 or 属性名:deviceId
访问级别:系统API|方法名 or 属性名:deviceId
访问级别:公开API|featureability.d.ts| +|访问级别有变化|方法名 or 属性名:bundleName
访问级别:系统API|方法名 or 属性名:bundleName
访问级别:公开API|featureability.d.ts| +|访问级别有变化|方法名 or 属性名:abilityName
访问级别:系统API|方法名 or 属性名:abilityName
访问级别:公开API|featureability.d.ts| +|访问级别有变化|方法名 or 属性名:message
访问级别:系统API|方法名 or 属性名:message
访问级别:公开API|featureability.d.ts| +|访问级别有变化|类名:SendMessageOptions
访问级别:系统API|类名:SendMessageOptions
访问级别:公开API|featureability.d.ts| +|访问级别有变化|方法名 or 属性名:deviceId
访问级别:系统API|方法名 or 属性名:deviceId
访问级别:公开API|featureability.d.ts| +|访问级别有变化|方法名 or 属性名:bundleName
访问级别:系统API|方法名 or 属性名:bundleName
访问级别:公开API|featureability.d.ts| +|访问级别有变化|方法名 or 属性名:abilityName
访问级别:系统API|方法名 or 属性名:abilityName
访问级别:公开API|featureability.d.ts| +|访问级别有变化|方法名 or 属性名:message
访问级别:系统API|方法名 or 属性名:message
访问级别:公开API|featureability.d.ts| +|访问级别有变化|方法名 or 属性名:success
访问级别:系统API|方法名 or 属性名:success
访问级别:公开API|featureability.d.ts| +|访问级别有变化|方法名 or 属性名:fail
访问级别:系统API|方法名 or 属性名:fail
访问级别:公开API|featureability.d.ts| +|访问级别有变化|方法名 or 属性名:complete
访问级别:系统API|方法名 or 属性名:complete
访问级别:公开API|featureability.d.ts| +|访问级别有变化|类名:SubscribeMessageOptions
访问级别:系统API|类名:SubscribeMessageOptions
访问级别:公开API|featureability.d.ts| +|访问级别有变化|方法名 or 属性名:success
访问级别:系统API|方法名 or 属性名:success
访问级别:公开API|featureability.d.ts| +|访问级别有变化|方法名 or 属性名:fail
访问级别:系统API|方法名 or 属性名:fail
访问级别:公开API|featureability.d.ts| +|访问级别有变化|方法名 or 属性名:sendMsg
访问级别:系统API|方法名 or 属性名:sendMsg
访问级别:公开API|featureability.d.ts| +|访问级别有变化|方法名 or 属性名:subscribeMsg
访问级别:系统API|方法名 or 属性名:subscribeMsg
访问级别:公开API|featureability.d.ts| +|访问级别有变化|方法名 or 属性名:unsubscribeMsg
访问级别:系统API|方法名 or 属性名:unsubscribeMsg
访问级别:公开API|featureability.d.ts| |访问级别有变化|方法名 or 属性名:springMotion
访问级别:公开API|方法名 or 属性名:springMotion
访问级别:系统API|@ohos.curves.d.ts| |访问级别有变化|方法名 or 属性名:responsiveSpringMotion
访问级别:公开API|方法名 or 属性名:responsiveSpringMotion
访问级别:系统API|@ohos.curves.d.ts| +|访问级别有变化|方法名 or 属性名:requestFullWindow
访问级别:系统API|方法名 or 属性名:requestFullWindow
访问级别:公开API|@system.app.d.ts| |访问级别有变化|类名:BlurStyle
访问级别:公开API|类名:BlurStyle
访问级别:系统API|common.d.ts| |访问级别有变化|方法名 or 属性名:Thin
访问级别:公开API|方法名 or 属性名:Thin
访问级别:系统API|common.d.ts| |访问级别有变化|方法名 or 属性名:Regular
访问级别:公开API|方法名 or 属性名:Regular
访问级别:系统API|common.d.ts| diff --git a/zh-cn/release-notes/api-diff/monthly-202210/js-apidiff-battery.md b/zh-cn/release-notes/api-diff/monthly-202210/js-apidiff-battery.md index 9c4a25d62d12749610c579bed9ed9d44c9650bcb..5a3dffc2d374610cd40b604908352ca4c9843daf 100644 --- a/zh-cn/release-notes/api-diff/monthly-202210/js-apidiff-battery.md +++ b/zh-cn/release-notes/api-diff/monthly-202210/js-apidiff-battery.md @@ -1,23 +1,10 @@ -| 操作 | 新版本 | 旧版本 | d.ts文件 | +| 操作 | 旧版本 | 新版本 | d.ts文件 | | ---- | ------ | ------ | -------- | -|新增||模块名:ohos.power
类名:power
方法名 or 属性名:shutdown|@ohos.power.d.ts| -|新增||模块名:ohos.power
类名:power
方法名 or 属性名:reboot|@ohos.power.d.ts| -|新增||模块名:ohos.power
类名:power
方法名 or 属性名:isActive|@ohos.power.d.ts| -|新增||模块名:ohos.power
类名:power
方法名 or 属性名:wakeup|@ohos.power.d.ts| -|新增||模块名:ohos.power
类名:power
方法名 or 属性名:suspend|@ohos.power.d.ts| -|新增||方法名 or 属性名:getPowerMode
函数:function getPowerMode(): DevicePowerMode;|@ohos.power.d.ts| -|新增||模块名:ohos.runningLock
类名:RunningLock
方法名 or 属性名:hold|@ohos.runningLock.d.ts| -|新增||模块名:ohos.runningLock
类名:RunningLock
方法名 or 属性名:isHolding|@ohos.runningLock.d.ts| -|新增||模块名:ohos.runningLock
类名:RunningLock
方法名 or 属性名:unhold|@ohos.runningLock.d.ts| -|新增||模块名:ohos.runningLock
类名:runningLock
方法名 or 属性名:isSupported|@ohos.runningLock.d.ts| -|新增||模块名:ohos.runningLock
类名:runningLock
方法名 or 属性名:create|@ohos.runningLock.d.ts| -|新增||模块名:ohos.runningLock
类名:runningLock
方法名 or 属性名:create|@ohos.runningLock.d.ts| -|新增||模块名:ohos.thermal
类名:thermal
方法名 or 属性名:registerThermalLevelCallback|@ohos.thermal.d.ts| -|新增||模块名:ohos.thermal
类名:thermal
方法名 or 属性名:unregisterThermalLevelCallback|@ohos.thermal.d.ts| -|新增||模块名:ohos.thermal
类名:thermal
方法名 or 属性名:getLevel|@ohos.thermal.d.ts| -|删除|模块名:ohos.power
类名:power
方法名 or 属性名:shutdownDevice||@ohos.power.d.ts| -|删除|模块名:ohos.power
类名:power
方法名 or 属性名:wakeupDevice||@ohos.power.d.ts| -|删除|模块名:ohos.power
类名:power
方法名 or 属性名:suspendDevice||@ohos.power.d.ts| +|新增|NA|方法名 or 属性名:getPowerMode
函数:function getPowerMode(): DevicePowerMode;|@ohos.power.d.ts| +|删除|模块名:ohos.power
类名:power
方法名 or 属性名:shutdownDevice|NA|@ohos.power.d.ts| +|删除|模块名:ohos.power
类名:power
方法名 or 属性名:wakeupDevice|NA|@ohos.power.d.ts| +|删除|模块名:ohos.power
类名:power
方法名 or 属性名:suspendDevice|NA|@ohos.power.d.ts| +|访问级别有变化|类名:brightness
访问级别:公开API|类名:brightness
访问级别:系统API|@ohos.brightness.d.ts| |废弃版本有变化|方法名 or 属性名:rebootDevice
废弃版本:N/A|方法名 or 属性名:rebootDevice
废弃版本:9
代替接口:{@link power|@ohos.power.d.ts| |废弃版本有变化|方法名 or 属性名:isScreenOn
废弃版本:N/A|方法名 or 属性名:isScreenOn
废弃版本:9
代替接口:{@link power|@ohos.power.d.ts| |废弃版本有变化|方法名 or 属性名:isScreenOn
废弃版本:N/A|方法名 or 属性名:isScreenOn
废弃版本:9|@ohos.power.d.ts| @@ -73,3 +60,4 @@ |废弃版本有变化|方法名 or 属性名:getMode
废弃版本:9|方法名 or 属性名:getMode
废弃版本:7|@system.brightness.d.ts| |废弃版本有变化|方法名 or 属性名:setMode
废弃版本:9|方法名 or 属性名:setMode
废弃版本:7|@system.brightness.d.ts| |废弃版本有变化|方法名 or 属性名:setKeepScreenOn
废弃版本:9|方法名 or 属性名:setKeepScreenOn
废弃版本:7|@system.brightness.d.ts| +|访问级别有变化|类名:brightness
访问级别:公开API|类名:brightness
访问级别:系统API|@ohos.brightness.d.ts| diff --git a/zh-cn/release-notes/api-diff/monthly-202210/js-apidiff-bundle.md b/zh-cn/release-notes/api-diff/monthly-202210/js-apidiff-bundle.md index 4ad8dbfa9d61a322d90654751e25ed84578d09c7..00bbbfe263124496413e84a40e6483e240cabed2 100644 --- a/zh-cn/release-notes/api-diff/monthly-202210/js-apidiff-bundle.md +++ b/zh-cn/release-notes/api-diff/monthly-202210/js-apidiff-bundle.md @@ -1,250 +1,229 @@ -| 操作 | 新版本 | 旧版本 | d.ts文件 | +| 操作 | 旧版本 | 新版本 | d.ts文件 | | ---- | ------ | ------ | -------- | -|新增||模块名: ohos.bundle.appControl
类名: appControl|@ohos.bundle.appControl.d.ts| -|新增||模块名: ohos.bundle.appControl
类名: appControl
方法名 or 属性名: setDisposedStatus|@ohos.bundle.appControl.d.ts| -|新增||模块名: ohos.bundle.appControl
类名: appControl
方法名 or 属性名: setDisposedStatus|@ohos.bundle.appControl.d.ts| -|新增||模块名: ohos.bundle.appControl
类名: appControl
方法名 or 属性名: getDisposedStatus|@ohos.bundle.appControl.d.ts| -|新增||模块名: ohos.bundle.appControl
类名: appControl
方法名 or 属性名: getDisposedStatus|@ohos.bundle.appControl.d.ts| -|新增||模块名: ohos.bundle.appControl
类名: appControl
方法名 or 属性名: deleteDisposedStatus|@ohos.bundle.appControl.d.ts| -|新增||模块名: ohos.bundle.appControl
类名: appControl
方法名 or 属性名: deleteDisposedStatus|@ohos.bundle.appControl.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: bundleManager|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: BundleFlag|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: BundleFlag
方法名 or 属性名: GET_BUNDLE_INFO_DEFAULT|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: BundleFlag
方法名 or 属性名: GET_BUNDLE_INFO_WITH_APPLICATION|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: BundleFlag
方法名 or 属性名: GET_BUNDLE_INFO_WITH_HAP_MODULE|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: BundleFlag
方法名 or 属性名: GET_BUNDLE_INFO_WITH_ABILITY|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: BundleFlag
方法名 or 属性名: GET_BUNDLE_INFO_WITH_EXTENSION_ABILITY|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: BundleFlag
方法名 or 属性名: GET_BUNDLE_INFO_WITH_REQUESTED_PERMISSION|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: BundleFlag
方法名 or 属性名: GET_BUNDLE_INFO_WITH_METADATA|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: BundleFlag
方法名 or 属性名: GET_BUNDLE_INFO_WITH_DISABLE|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: BundleFlag
方法名 or 属性名: GET_BUNDLE_INFO_WITH_SIGNATURE_INFO|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: ApplicationFlag|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: ApplicationFlag
方法名 or 属性名: GET_APPLICATION_INFO_DEFAULT|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: ApplicationFlag
方法名 or 属性名: GET_APPLICATION_INFO_WITH_PERMISSION|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: ApplicationFlag
方法名 or 属性名: GET_APPLICATION_INFO_WITH_METADATA|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: ApplicationFlag
方法名 or 属性名: GET_APPLICATION_INFO_WITH_DISABLE|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: AbilityFlag|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: AbilityFlag
方法名 or 属性名: GET_ABILITY_INFO_DEFAULT|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: AbilityFlag
方法名 or 属性名: GET_ABILITY_INFO_WITH_PERMISSION|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: AbilityFlag
方法名 or 属性名: GET_ABILITY_INFO_WITH_APPLICATION|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: AbilityFlag
方法名 or 属性名: GET_ABILITY_INFO_WITH_METADATA|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: AbilityFlag
方法名 or 属性名: GET_ABILITY_INFO_WITH_DISABLE|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: AbilityFlag
方法名 or 属性名: GET_ABILITY_INFO_ONLY_SYSTEM_APP|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: ExtensionAbilityFlag|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: ExtensionAbilityFlag
方法名 or 属性名: GET_EXTENSION_ABILITY_INFO_DEFAULT|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: ExtensionAbilityFlag
方法名 or 属性名: GET_EXTENSION_ABILITY_INFO_WITH_PERMISSION|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: ExtensionAbilityFlag
方法名 or 属性名: GET_EXTENSION_ABILITY_INFO_WITH_APPLICATION|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: ExtensionAbilityFlag
方法名 or 属性名: GET_EXTENSION_ABILITY_INFO_WITH_METADATA|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: ExtensionAbilityType|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: ExtensionAbilityType
方法名 or 属性名: FORM|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: ExtensionAbilityType
方法名 or 属性名: WORK_SCHEDULER|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: ExtensionAbilityType
方法名 or 属性名: INPUT_METHOD|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: ExtensionAbilityType
方法名 or 属性名: SERVICE|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: ExtensionAbilityType
方法名 or 属性名: ACCESSIBILITY|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: ExtensionAbilityType
方法名 or 属性名: DATA_SHARE|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: ExtensionAbilityType
方法名 or 属性名: FILE_SHARE|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: ExtensionAbilityType
方法名 or 属性名: STATIC_SUBSCRIBER|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: ExtensionAbilityType
方法名 or 属性名: WALLPAPER|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: ExtensionAbilityType
方法名 or 属性名: BACKUP|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: ExtensionAbilityType
方法名 or 属性名: WINDOW|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: ExtensionAbilityType
方法名 or 属性名: ENTERPRISE_ADMIN|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: ExtensionAbilityType
方法名 or 属性名: THUMBNAIL|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: ExtensionAbilityType
方法名 or 属性名: PREVIEW|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: ExtensionAbilityType
方法名 or 属性名: UNSPECIFIED|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: PermissionGrantState|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: PermissionGrantState
方法名 or 属性名: PERMISSION_DENIED|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: PermissionGrantState
方法名 or 属性名: PERMISSION_GRANTED|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: SupportWindowMode|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: SupportWindowMode
方法名 or 属性名: FULL_SCREEN|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: SupportWindowMode
方法名 or 属性名: SPLIT|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: SupportWindowMode
方法名 or 属性名: FLOATING|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: LaunchType|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: LaunchType
方法名 or 属性名: SINGLETON|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: LaunchType
方法名 or 属性名: STANDARD|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: LaunchType
方法名 or 属性名: SPECIFIED|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: AbilityType|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: AbilityType
方法名 or 属性名: PAGE|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: AbilityType
方法名 or 属性名: SERVICE|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: AbilityType
方法名 or 属性名: DATA|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: DisplayOrientation|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: DisplayOrientation
方法名 or 属性名: UNSPECIFIED|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: DisplayOrientation
方法名 or 属性名: LANDSCAPE|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: DisplayOrientation
方法名 or 属性名: PORTRAIT|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: DisplayOrientation
方法名 or 属性名: FOLLOW_RECENT|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: DisplayOrientation
方法名 or 属性名: LANDSCAPE_INVERTED|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: DisplayOrientation
方法名 or 属性名: PORTRAIT_INVERTED|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: DisplayOrientation
方法名 or 属性名: AUTO_ROTATION|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: DisplayOrientation
方法名 or 属性名: AUTO_ROTATION_LANDSCAPE|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: DisplayOrientation
方法名 or 属性名: AUTO_ROTATION_PORTRAIT|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: DisplayOrientation
方法名 or 属性名: AUTO_ROTATION_RESTRICTED|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: DisplayOrientation
方法名 or 属性名: AUTO_ROTATION_LANDSCAPE_RESTRICTED|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: DisplayOrientation
方法名 or 属性名: AUTO_ROTATION_PORTRAIT_RESTRICTED|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: DisplayOrientation
方法名 or 属性名: LOCKED|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getBundleInfoForSelf|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getBundleInfoForSelf|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getBundleInfo|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getBundleInfo|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getBundleInfo|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getApplicationInfo|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getApplicationInfo|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getApplicationInfo|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getAllBundleInfo|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getAllBundleInfo|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getAllBundleInfo|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getAllApplicationInfo|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getAllApplicationInfo|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getAllApplicationInfo|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: queryAbilityInfo|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: queryAbilityInfo|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: queryAbilityInfo|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: queryExtensionAbilityInfo|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: queryExtensionAbilityInfo|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: queryExtensionAbilityInfo|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getBundleNameByUid|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getBundleNameByUid|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getBundleArchiveInfo|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getBundleArchiveInfo|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: cleanBundleCacheFiles|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: cleanBundleCacheFiles|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: setApplicationEnabled|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: setApplicationEnabled|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: setAbilityEnabled|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: setAbilityEnabled|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: isApplicationEnabled|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: isApplicationEnabled|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: isAbilityEnabled|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: isAbilityEnabled|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getLaunchWantForBundle|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getLaunchWantForBundle|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getLaunchWantForBundle|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getProfileByAbility|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getProfileByAbility|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getProfileByExtensionAbility|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getProfileByExtensionAbility|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getPermissionDef|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getPermissionDef|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getAbilityLabel|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getAbilityLabel|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getAbilityIcon|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getAbilityIcon|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getApplicationInfoSync|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getApplicationInfoSync|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getBundleInfoSync|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getBundleInfoSync|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleMonitor
类名: bundleMonitor|@ohos.bundle.bundleMonitor.d.ts| -|新增||模块名: ohos.bundle.bundleMonitor
类名: BundleChangedInfo|@ohos.bundle.bundleMonitor.d.ts| -|新增||模块名: ohos.bundle.bundleMonitor
类名: BundleChangedInfo
方法名 or 属性名: bundleName|@ohos.bundle.bundleMonitor.d.ts| -|新增||模块名: ohos.bundle.bundleMonitor
类名: BundleChangedInfo
方法名 or 属性名: userId|@ohos.bundle.bundleMonitor.d.ts| -|新增||模块名: ohos.bundle.bundleMonitor
类名: bundleMonitor
方法名 or 属性名: on_add|@ohos.bundle.bundleMonitor.d.ts| -|新增||模块名: ohos.bundle.bundleMonitor
类名: bundleMonitor
方法名 or 属性名: on_update|@ohos.bundle.bundleMonitor.d.ts| -|新增||模块名: ohos.bundle.bundleMonitor
类名: bundleMonitor
方法名 or 属性名: on_remove|@ohos.bundle.bundleMonitor.d.ts| -|新增||模块名: ohos.bundle.bundleMonitor
类名: bundleMonitor
方法名 or 属性名: off_add|@ohos.bundle.bundleMonitor.d.ts| -|新增||模块名: ohos.bundle.bundleMonitor
类名: bundleMonitor
方法名 or 属性名: off_update|@ohos.bundle.bundleMonitor.d.ts| -|新增||模块名: ohos.bundle.bundleMonitor
类名: bundleMonitor
方法名 or 属性名: off_remove|@ohos.bundle.bundleMonitor.d.ts| -|新增||模块名:ohos.bundle.defaultAppManager
类名:ApplicationType|@ohos.bundle.defaultAppManager.d.ts| -|新增||方法名 or 属性名:BROWSER
函数:BROWSER = "Web Browser"|@ohos.bundle.defaultAppManager.d.ts| -|新增||方法名 or 属性名:IMAGE
函数:IMAGE = "Image Gallery"|@ohos.bundle.defaultAppManager.d.ts| -|新增||方法名 or 属性名:AUDIO
函数:AUDIO = "Audio Player"|@ohos.bundle.defaultAppManager.d.ts| -|新增||方法名 or 属性名:VIDEO
函数:VIDEO = "Video Player"|@ohos.bundle.defaultAppManager.d.ts| -|新增||方法名 or 属性名:PDF
函数:PDF = "PDF Viewer"|@ohos.bundle.defaultAppManager.d.ts| -|新增||方法名 or 属性名:WORD
函数:WORD = "Word Viewer"|@ohos.bundle.defaultAppManager.d.ts| -|新增||方法名 or 属性名:EXCEL
函数:EXCEL = "Excel Viewer"|@ohos.bundle.defaultAppManager.d.ts| -|新增||方法名 or 属性名:PPT
函数:PPT = "PPT Viewer"|@ohos.bundle.defaultAppManager.d.ts| -|新增||模块名: ohos.bundle.distributedBundle
类名: distributedBundle|@ohos.bundle.distributedBundle.d.ts| -|新增||模块名: ohos.bundle.distributedBundle
类名: distributedBundle
方法名 or 属性名: getRemoteAbilityInfo|@ohos.bundle.distributedBundle.d.ts| -|新增||模块名: ohos.bundle.distributedBundle
类名: distributedBundle
方法名 or 属性名: getRemoteAbilityInfo|@ohos.bundle.distributedBundle.d.ts| -|新增||模块名: ohos.bundle.distributedBundle
类名: distributedBundle
方法名 or 属性名: getRemoteAbilityInfo|@ohos.bundle.distributedBundle.d.ts| -|新增||模块名: ohos.bundle.distributedBundle
类名: distributedBundle
方法名 or 属性名: getRemoteAbilityInfo|@ohos.bundle.distributedBundle.d.ts| -|新增||模块名: ohos.bundle.distributedBundle
类名: distributedBundle
方法名 or 属性名: getRemoteAbilityInfo|@ohos.bundle.distributedBundle.d.ts| -|新增||模块名: ohos.bundle.distributedBundle
类名: distributedBundle
方法名 or 属性名: getRemoteAbilityInfo|@ohos.bundle.distributedBundle.d.ts| -|新增||模块名: ohos.bundle.distributedBundle
类名: distributedBundle
方法名 or 属性名: getRemoteAbilityInfo|@ohos.bundle.distributedBundle.d.ts| -|新增||模块名: ohos.bundle.distributedBundle
类名: distributedBundle
方法名 or 属性名: getRemoteAbilityInfo|@ohos.bundle.distributedBundle.d.ts| -|新增||模块名: ohos.bundle.freeInstall
类名: freeInstall|@ohos.bundle.freeInstall.d.ts| -|新增||模块名: ohos.bundle.freeInstall
类名: UpgradeFlag|@ohos.bundle.freeInstall.d.ts| -|新增||模块名: ohos.bundle.freeInstall
类名: UpgradeFlag
方法名 or 属性名: NOT_UPGRADE|@ohos.bundle.freeInstall.d.ts| -|新增||模块名: ohos.bundle.freeInstall
类名: UpgradeFlag
方法名 or 属性名: SINGLE_UPGRADE|@ohos.bundle.freeInstall.d.ts| -|新增||模块名: ohos.bundle.freeInstall
类名: UpgradeFlag
方法名 or 属性名: RELATION_UPGRADE|@ohos.bundle.freeInstall.d.ts| -|新增||模块名: ohos.bundle.freeInstall
类名: BundlePackFlag|@ohos.bundle.freeInstall.d.ts| -|新增||模块名: ohos.bundle.freeInstall
类名: BundlePackFlag
方法名 or 属性名: GET_PACK_INFO_ALL|@ohos.bundle.freeInstall.d.ts| -|新增||模块名: ohos.bundle.freeInstall
类名: BundlePackFlag
方法名 or 属性名: GET_PACKAGES|@ohos.bundle.freeInstall.d.ts| -|新增||模块名: ohos.bundle.freeInstall
类名: BundlePackFlag
方法名 or 属性名: GET_BUNDLE_SUMMARY|@ohos.bundle.freeInstall.d.ts| -|新增||模块名: ohos.bundle.freeInstall
类名: BundlePackFlag
方法名 or 属性名: GET_MODULE_SUMMARY|@ohos.bundle.freeInstall.d.ts| -|新增||模块名: ohos.bundle.freeInstall
类名: freeInstall
方法名 or 属性名: setHapModuleUpgradeFlag|@ohos.bundle.freeInstall.d.ts| -|新增||模块名: ohos.bundle.freeInstall
类名: freeInstall
方法名 or 属性名: setHapModuleUpgradeFlag|@ohos.bundle.freeInstall.d.ts| -|新增||模块名: ohos.bundle.freeInstall
类名: freeInstall
方法名 or 属性名: isHapModuleRemovable|@ohos.bundle.freeInstall.d.ts| -|新增||模块名: ohos.bundle.freeInstall
类名: freeInstall
方法名 or 属性名: isHapModuleRemovable|@ohos.bundle.freeInstall.d.ts| -|新增||模块名: ohos.bundle.freeInstall
类名: freeInstall
方法名 or 属性名: getBundlePackInfo|@ohos.bundle.freeInstall.d.ts| -|新增||模块名: ohos.bundle.freeInstall
类名: freeInstall
方法名 or 属性名: getBundlePackInfo|@ohos.bundle.freeInstall.d.ts| -|新增||模块名: ohos.bundle.freeInstall
类名: freeInstall
方法名 or 属性名: getDispatchInfo|@ohos.bundle.freeInstall.d.ts| -|新增||模块名: ohos.bundle.freeInstall
类名: freeInstall
方法名 or 属性名: getDispatchInfo|@ohos.bundle.freeInstall.d.ts| -|新增||模块名: ohos.bundle.installer
类名: installer|@ohos.bundle.installer.d.ts| -|新增||模块名: ohos.bundle.installer
类名: installer
方法名 or 属性名: getBundleInstaller|@ohos.bundle.installer.d.ts| -|新增||模块名: ohos.bundle.installer
类名: installer
方法名 or 属性名: getBundleInstaller|@ohos.bundle.installer.d.ts| -|新增||模块名: ohos.bundle.installer
类名: BundleInstaller|@ohos.bundle.installer.d.ts| -|新增||模块名: ohos.bundle.installer
类名: BundleInstaller
方法名 or 属性名: install|@ohos.bundle.installer.d.ts| -|新增||模块名: ohos.bundle.installer
类名: BundleInstaller
方法名 or 属性名: uninstall|@ohos.bundle.installer.d.ts| -|新增||模块名: ohos.bundle.installer
类名: BundleInstaller
方法名 or 属性名: recover|@ohos.bundle.installer.d.ts| -|新增||模块名: ohos.bundle.installer
类名: HashParam|@ohos.bundle.installer.d.ts| -|新增||模块名: ohos.bundle.installer
类名: HashParam
方法名 or 属性名: moduleName|@ohos.bundle.installer.d.ts| -|新增||模块名: ohos.bundle.installer
类名: HashParam
方法名 or 属性名: hashValue|@ohos.bundle.installer.d.ts| -|新增||模块名: ohos.bundle.installer
类名: InstallParam|@ohos.bundle.installer.d.ts| -|新增||模块名: ohos.bundle.installer
类名: InstallParam
方法名 or 属性名: userId|@ohos.bundle.installer.d.ts| -|新增||模块名: ohos.bundle.installer
类名: InstallParam
方法名 or 属性名: installFlag|@ohos.bundle.installer.d.ts| -|新增||模块名: ohos.bundle.installer
类名: InstallParam
方法名 or 属性名: isKeepData|@ohos.bundle.installer.d.ts| -|新增||模块名: ohos.bundle.installer
类名: InstallParam
方法名 or 属性名: hashParams|@ohos.bundle.installer.d.ts| -|新增||模块名: ohos.bundle.installer
类名: InstallParam
方法名 or 属性名: crowdtestDeadline|@ohos.bundle.installer.d.ts| -|新增||模块名: ohos.bundle.launcherBundleManager
类名: launcherBundleManager|@ohos.bundle.launcherBundleManager.d.ts| -|新增||模块名: ohos.bundle.launcherBundleManager
类名: launcherBundleManager
方法名 or 属性名: getLauncherAbilityInfo|@ohos.bundle.launcherBundleManager.d.ts| -|新增||模块名: ohos.bundle.launcherBundleManager
类名: launcherBundleManager
方法名 or 属性名: getLauncherAbilityInfo|@ohos.bundle.launcherBundleManager.d.ts| -|新增||模块名: ohos.bundle.launcherBundleManager
类名: launcherBundleManager
方法名 or 属性名: getAllLauncherAbilityInfo|@ohos.bundle.launcherBundleManager.d.ts| -|新增||模块名: ohos.bundle.launcherBundleManager
类名: launcherBundleManager
方法名 or 属性名: getAllLauncherAbilityInfo|@ohos.bundle.launcherBundleManager.d.ts| -|新增||模块名: ohos.bundle.launcherBundleManager
类名: launcherBundleManager
方法名 or 属性名: getShortcutInfo|@ohos.bundle.launcherBundleManager.d.ts| -|新增||模块名: ohos.bundle.launcherBundleManager
类名: launcherBundleManager
方法名 or 属性名: getShortcutInfo|@ohos.bundle.launcherBundleManager.d.ts| -|新增||模块名:ohos.zlib
类名:zlib
方法名 or 属性名:compressFile|@ohos.zlib.d.ts| -|新增||模块名:ohos.zlib
类名:zlib
方法名 or 属性名:compressFile|@ohos.zlib.d.ts| -|新增||模块名:ohos.zlib
类名:zlib
方法名 or 属性名:decompressFile|@ohos.zlib.d.ts| -|新增||模块名:ohos.zlib
类名:zlib
方法名 or 属性名:decompressFile|@ohos.zlib.d.ts| -|新增||模块名:abilityInfo
类名:AbilityInfo
方法名 or 属性名:type|abilityInfo.d.ts| -|新增||模块名:abilityInfo
类名:AbilityInfo
方法名 or 属性名:orientation|abilityInfo.d.ts| -|新增||模块名:abilityInfo
类名:AbilityInfo
方法名 or 属性名:launchType|abilityInfo.d.ts| -|新增||模块名:abilityInfo
类名:AbilityInfo
方法名 or 属性名:supportWindowModes|abilityInfo.d.ts| -|新增||模块名:abilityInfo
类名:AbilityInfo
方法名 or 属性名:windowSize|abilityInfo.d.ts| -|新增||模块名: abilityInfo
类名: WindowSize|abilityInfo.d.ts| -|新增||模块名: abilityInfo
类名: WindowSize
方法名 or 属性名:maxWindowRatio|abilityInfo.d.ts| -|新增||模块名: abilityInfo
类名: WindowSize
方法名 or 属性名:minWindowRatio|abilityInfo.d.ts| -|新增||模块名: abilityInfo
类名: WindowSize
方法名 or 属性名:maxWindowWidth|abilityInfo.d.ts| -|新增||模块名: abilityInfo
类名: WindowSize
方法名 or 属性名:minWindowWidth|abilityInfo.d.ts| -|新增||模块名: abilityInfo
类名: WindowSize
方法名 or 属性名:maxWindowHeight|abilityInfo.d.ts| -|新增||模块名: abilityInfo
类名: WindowSize
方法名 or 属性名:minWindowHeight|abilityInfo.d.ts| -|新增||模块名:applicationInfo
类名:ApplicationInfo
方法名 or 属性名:labelId|applicationInfo.d.ts| -|新增||模块名:applicationInfo
类名:ApplicationInfo
方法名 or 属性名:iconId|applicationInfo.d.ts| -|新增||模块名:bundleInfo
类名:BundleInfo
方法名 or 属性名:hapModulesInfo|bundleInfo.d.ts| -|新增||模块名:bundleInfo
类名:BundleInfo
方法名 or 属性名:permissionGrantStates|bundleInfo.d.ts| -|新增||模块名:bundleInfo
类名:BundleInfo
方法名 or 属性名:signatureInfo|bundleInfo.d.ts| -|新增||模块名: bundleInfo
类名: SignatureInfo|bundleInfo.d.ts| -|新增||模块名: bundleInfo
类名: SignatureInfo
方法名 or 属性名:appId|bundleInfo.d.ts| -|新增||模块名: bundleInfo
类名: SignatureInfo
方法名 or 属性名:fingerprint|bundleInfo.d.ts| -|新增||模块名: dispatchInfo
类名: DispatchInfo
方法名 or 属性名: dispatchAPIVersion|dispatchInfo.d.ts| -|新增||模块名:extensionAbilityInfo
类名:ExtensionAbilityInfo
方法名 or 属性名:extensionAbilityType|extensionAbilityInfo.d.ts| -|新增||模块名:hapModuleInfo
类名:HapModuleInfo
方法名 or 属性名:abilitiesInfo|hapModuleInfo.d.ts| -|新增||模块名:hapModuleInfo
类名:HapModuleInfo
方法名 or 属性名:extensionAbilitiesInfo|hapModuleInfo.d.ts| -|新增||模块名:hapModuleInfo
类名:HapModuleInfo
方法名 or 属性名:moduleSourceDir|hapModuleInfo.d.ts| -|新增||模块名: packInfo
类名: PackageConfig
方法名 or 属性名: deviceTypes|packInfo.d.ts| -|新增||模块名: packInfo
类名: ExtensionAbility|packInfo.d.ts| -|新增||模块名: packInfo
类名: ExtensionAbility
方法名 or 属性名: name|packInfo.d.ts| -|新增||模块名: packInfo
类名: ExtensionAbility
方法名 or 属性名: forms|packInfo.d.ts| -|新增||模块名: packInfo
类名: ModuleConfigInfo
方法名 or 属性名: mainAbility|packInfo.d.ts| -|新增||模块名: packInfo
类名: ModuleConfigInfo
方法名 or 属性名: deviceTypes|packInfo.d.ts| -|新增||模块名: packInfo
类名: ModuleConfigInfo
方法名 or 属性名: extensionAbilities|packInfo.d.ts| -|新增||模块名: packInfo
类名: AbilityFormInfo
方法名 or 属性名: supportDimensions|packInfo.d.ts| -|新增||模块名: packInfo
类名: AbilityFormInfo
方法名 or 属性名: defaultDimension|packInfo.d.ts| -|新增||模块名: permissionDef
类名: PermissionDef|permissionDef.d.ts| -|新增||模块名: permissionDef
类名: PermissionDef
方法名 or 属性名: permissionName|permissionDef.d.ts| -|新增||模块名: permissionDef
类名: PermissionDef
方法名 or 属性名: grantMode|permissionDef.d.ts| -|新增||模块名: permissionDef
类名: PermissionDef
方法名 or 属性名: labelId|permissionDef.d.ts| -|新增||模块名: permissionDef
类名: PermissionDef
方法名 or 属性名: descriptionId|permissionDef.d.ts| -|新增||模块名:shortcutInfo
类名:ShortcutInfo
方法名 or 属性名:moduleName|shortcutInfo.d.ts| -|新增||模块名:shortcutInfo
类名:ShortcutWant
方法名 or 属性名:targetAbility|shortcutInfo.d.ts| +|新增|NA|模块名: ohos.bundle.appControl
类名: appControl|@ohos.bundle.appControl.d.ts| +|新增|NA|模块名: ohos.bundle.appControl
类名: appControl
方法名 or 属性名: setDisposedStatus|@ohos.bundle.appControl.d.ts| +|新增|NA|模块名: ohos.bundle.appControl
类名: appControl
方法名 or 属性名: setDisposedStatus|@ohos.bundle.appControl.d.ts| +|新增|NA|模块名: ohos.bundle.appControl
类名: appControl
方法名 or 属性名: getDisposedStatus|@ohos.bundle.appControl.d.ts| +|新增|NA|模块名: ohos.bundle.appControl
类名: appControl
方法名 or 属性名: getDisposedStatus|@ohos.bundle.appControl.d.ts| +|新增|NA|模块名: ohos.bundle.appControl
类名: appControl
方法名 or 属性名: deleteDisposedStatus|@ohos.bundle.appControl.d.ts| +|新增|NA|模块名: ohos.bundle.appControl
类名: appControl
方法名 or 属性名: deleteDisposedStatus|@ohos.bundle.appControl.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: BundleFlag|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: BundleFlag
方法名 or 属性名: GET_BUNDLE_INFO_DEFAULT|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: BundleFlag
方法名 or 属性名: GET_BUNDLE_INFO_WITH_APPLICATION|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: BundleFlag
方法名 or 属性名: GET_BUNDLE_INFO_WITH_HAP_MODULE|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: BundleFlag
方法名 or 属性名: GET_BUNDLE_INFO_WITH_ABILITY|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: BundleFlag
方法名 or 属性名: GET_BUNDLE_INFO_WITH_EXTENSION_ABILITY|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: BundleFlag
方法名 or 属性名: GET_BUNDLE_INFO_WITH_REQUESTED_PERMISSION|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: BundleFlag
方法名 or 属性名: GET_BUNDLE_INFO_WITH_METADATA|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: BundleFlag
方法名 or 属性名: GET_BUNDLE_INFO_WITH_DISABLE|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: BundleFlag
方法名 or 属性名: GET_BUNDLE_INFO_WITH_SIGNATURE_INFO|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: ApplicationFlag|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: ApplicationFlag
方法名 or 属性名: GET_APPLICATION_INFO_DEFAULT|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: ApplicationFlag
方法名 or 属性名: GET_APPLICATION_INFO_WITH_PERMISSION|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: ApplicationFlag
方法名 or 属性名: GET_APPLICATION_INFO_WITH_METADATA|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: ApplicationFlag
方法名 or 属性名: GET_APPLICATION_INFO_WITH_DISABLE|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: AbilityFlag|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: AbilityFlag
方法名 or 属性名: GET_ABILITY_INFO_DEFAULT|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: AbilityFlag
方法名 or 属性名: GET_ABILITY_INFO_WITH_PERMISSION|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: AbilityFlag
方法名 or 属性名: GET_ABILITY_INFO_WITH_APPLICATION|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: AbilityFlag
方法名 or 属性名: GET_ABILITY_INFO_WITH_METADATA|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: AbilityFlag
方法名 or 属性名: GET_ABILITY_INFO_WITH_DISABLE|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: AbilityFlag
方法名 or 属性名: GET_ABILITY_INFO_ONLY_SYSTEM_APP|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: ExtensionAbilityFlag|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: ExtensionAbilityFlag
方法名 or 属性名: GET_EXTENSION_ABILITY_INFO_DEFAULT|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: ExtensionAbilityFlag
方法名 or 属性名: GET_EXTENSION_ABILITY_INFO_WITH_PERMISSION|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: ExtensionAbilityFlag
方法名 or 属性名: GET_EXTENSION_ABILITY_INFO_WITH_APPLICATION|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: ExtensionAbilityFlag
方法名 or 属性名: GET_EXTENSION_ABILITY_INFO_WITH_METADATA|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: ExtensionAbilityType|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: ExtensionAbilityType
方法名 or 属性名: FORM|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: ExtensionAbilityType
方法名 or 属性名: WORK_SCHEDULER|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: ExtensionAbilityType
方法名 or 属性名: INPUT_METHOD|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: ExtensionAbilityType
方法名 or 属性名: SERVICE|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: ExtensionAbilityType
方法名 or 属性名: ACCESSIBILITY|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: ExtensionAbilityType
方法名 or 属性名: DATA_SHARE|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: ExtensionAbilityType
方法名 or 属性名: FILE_SHARE|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: ExtensionAbilityType
方法名 or 属性名: STATIC_SUBSCRIBER|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: ExtensionAbilityType
方法名 or 属性名: WALLPAPER|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: ExtensionAbilityType
方法名 or 属性名: BACKUP|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: ExtensionAbilityType
方法名 or 属性名: WINDOW|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: ExtensionAbilityType
方法名 or 属性名: ENTERPRISE_ADMIN|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: ExtensionAbilityType
方法名 or 属性名: THUMBNAIL|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: ExtensionAbilityType
方法名 or 属性名: PREVIEW|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: ExtensionAbilityType
方法名 or 属性名: UNSPECIFIED|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: PermissionGrantState|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: PermissionGrantState
方法名 or 属性名: PERMISSION_DENIED|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: PermissionGrantState
方法名 or 属性名: PERMISSION_GRANTED|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: SupportWindowMode|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: SupportWindowMode
方法名 or 属性名: FULL_SCREEN|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: SupportWindowMode
方法名 or 属性名: SPLIT|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: SupportWindowMode
方法名 or 属性名: FLOATING|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: LaunchType|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: LaunchType
方法名 or 属性名: SINGLETON|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: LaunchType
方法名 or 属性名: STANDARD|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: LaunchType
方法名 or 属性名: SPECIFIED|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: AbilityType|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: AbilityType
方法名 or 属性名: PAGE|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: AbilityType
方法名 or 属性名: SERVICE|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: AbilityType
方法名 or 属性名: DATA|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: DisplayOrientation|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: DisplayOrientation
方法名 or 属性名: UNSPECIFIED|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: DisplayOrientation
方法名 or 属性名: LANDSCAPE|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: DisplayOrientation
方法名 or 属性名: PORTRAIT|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: DisplayOrientation
方法名 or 属性名: FOLLOW_RECENT|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: DisplayOrientation
方法名 or 属性名: LANDSCAPE_INVERTED|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: DisplayOrientation
方法名 or 属性名: PORTRAIT_INVERTED|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: DisplayOrientation
方法名 or 属性名: AUTO_ROTATION|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: DisplayOrientation
方法名 or 属性名: AUTO_ROTATION_LANDSCAPE|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: DisplayOrientation
方法名 or 属性名: AUTO_ROTATION_PORTRAIT|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: DisplayOrientation
方法名 or 属性名: AUTO_ROTATION_RESTRICTED|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: DisplayOrientation
方法名 or 属性名: AUTO_ROTATION_LANDSCAPE_RESTRICTED|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: DisplayOrientation
方法名 or 属性名: AUTO_ROTATION_PORTRAIT_RESTRICTED|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: DisplayOrientation
方法名 or 属性名: LOCKED|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getBundleInfoForSelf|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getBundleInfoForSelf|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getBundleInfo|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getBundleInfo|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getBundleInfo|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getApplicationInfo|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getApplicationInfo|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getApplicationInfo|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getAllBundleInfo|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getAllBundleInfo|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getAllBundleInfo|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getAllApplicationInfo|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getAllApplicationInfo|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getAllApplicationInfo|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: queryAbilityInfo|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: queryAbilityInfo|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: queryAbilityInfo|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: queryExtensionAbilityInfo|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: queryExtensionAbilityInfo|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: queryExtensionAbilityInfo|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getBundleNameByUid|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getBundleNameByUid|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getBundleArchiveInfo|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getBundleArchiveInfo|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: cleanBundleCacheFiles|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: cleanBundleCacheFiles|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: setApplicationEnabled|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: setApplicationEnabled|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: setAbilityEnabled|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: setAbilityEnabled|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: isApplicationEnabled|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: isApplicationEnabled|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: isAbilityEnabled|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: isAbilityEnabled|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getLaunchWantForBundle|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getLaunchWantForBundle|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getLaunchWantForBundle|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getProfileByAbility|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getProfileByAbility|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getProfileByExtensionAbility|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getProfileByExtensionAbility|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getPermissionDef|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getPermissionDef|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getAbilityLabel|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getAbilityLabel|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getAbilityIcon|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getAbilityIcon|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getApplicationInfoSync|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getApplicationInfoSync|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getBundleInfoSync|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getBundleInfoSync|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleMonitor
类名: bundleMonitor|@ohos.bundle.bundleMonitor.d.ts| +|新增|NA|模块名: ohos.bundle.bundleMonitor
类名: BundleChangedInfo|@ohos.bundle.bundleMonitor.d.ts| +|新增|NA|模块名: ohos.bundle.bundleMonitor
类名: BundleChangedInfo
方法名 or 属性名: bundleName|@ohos.bundle.bundleMonitor.d.ts| +|新增|NA|模块名: ohos.bundle.bundleMonitor
类名: BundleChangedInfo
方法名 or 属性名: userId|@ohos.bundle.bundleMonitor.d.ts| +|新增|NA|模块名: ohos.bundle.bundleMonitor
类名: bundleMonitor
方法名 or 属性名: on_add|@ohos.bundle.bundleMonitor.d.ts| +|新增|NA|模块名: ohos.bundle.bundleMonitor
类名: bundleMonitor
方法名 or 属性名: on_update|@ohos.bundle.bundleMonitor.d.ts| +|新增|NA|模块名: ohos.bundle.bundleMonitor
类名: bundleMonitor
方法名 or 属性名: on_remove|@ohos.bundle.bundleMonitor.d.ts| +|新增|NA|模块名: ohos.bundle.bundleMonitor
类名: bundleMonitor
方法名 or 属性名: off_add|@ohos.bundle.bundleMonitor.d.ts| +|新增|NA|模块名: ohos.bundle.bundleMonitor
类名: bundleMonitor
方法名 or 属性名: off_update|@ohos.bundle.bundleMonitor.d.ts| +|新增|NA|模块名: ohos.bundle.bundleMonitor
类名: bundleMonitor
方法名 or 属性名: off_remove|@ohos.bundle.bundleMonitor.d.ts| +|新增|NA|方法名 or 属性名:BROWSER
函数:BROWSER = "Web Browser"|@ohos.bundle.defaultAppManager.d.ts| +|新增|NA|方法名 or 属性名:IMAGE
函数:IMAGE = "Image Gallery"|@ohos.bundle.defaultAppManager.d.ts| +|新增|NA|方法名 or 属性名:AUDIO
函数:AUDIO = "Audio Player"|@ohos.bundle.defaultAppManager.d.ts| +|新增|NA|方法名 or 属性名:VIDEO
函数:VIDEO = "Video Player"|@ohos.bundle.defaultAppManager.d.ts| +|新增|NA|方法名 or 属性名:PDF
函数:PDF = "PDF Viewer"|@ohos.bundle.defaultAppManager.d.ts| +|新增|NA|方法名 or 属性名:WORD
函数:WORD = "Word Viewer"|@ohos.bundle.defaultAppManager.d.ts| +|新增|NA|方法名 or 属性名:EXCEL
函数:EXCEL = "Excel Viewer"|@ohos.bundle.defaultAppManager.d.ts| +|新增|NA|方法名 or 属性名:PPT
函数:PPT = "PPT Viewer"|@ohos.bundle.defaultAppManager.d.ts| +|新增|NA|模块名: ohos.bundle.distributedBundle
类名: distributedBundle|@ohos.bundle.distributedBundle.d.ts| +|新增|NA|模块名: ohos.bundle.distributedBundle
类名: distributedBundle
方法名 or 属性名: getRemoteAbilityInfo|@ohos.bundle.distributedBundle.d.ts| +|新增|NA|模块名: ohos.bundle.distributedBundle
类名: distributedBundle
方法名 or 属性名: getRemoteAbilityInfo|@ohos.bundle.distributedBundle.d.ts| +|新增|NA|模块名: ohos.bundle.distributedBundle
类名: distributedBundle
方法名 or 属性名: getRemoteAbilityInfo|@ohos.bundle.distributedBundle.d.ts| +|新增|NA|模块名: ohos.bundle.distributedBundle
类名: distributedBundle
方法名 or 属性名: getRemoteAbilityInfo|@ohos.bundle.distributedBundle.d.ts| +|新增|NA|模块名: ohos.bundle.distributedBundle
类名: distributedBundle
方法名 or 属性名: getRemoteAbilityInfo|@ohos.bundle.distributedBundle.d.ts| +|新增|NA|模块名: ohos.bundle.distributedBundle
类名: distributedBundle
方法名 or 属性名: getRemoteAbilityInfo|@ohos.bundle.distributedBundle.d.ts| +|新增|NA|模块名: ohos.bundle.distributedBundle
类名: distributedBundle
方法名 or 属性名: getRemoteAbilityInfo|@ohos.bundle.distributedBundle.d.ts| +|新增|NA|模块名: ohos.bundle.distributedBundle
类名: distributedBundle
方法名 or 属性名: getRemoteAbilityInfo|@ohos.bundle.distributedBundle.d.ts| +|新增|NA|模块名: ohos.bundle.freeInstall
类名: freeInstall|@ohos.bundle.freeInstall.d.ts| +|新增|NA|模块名: ohos.bundle.freeInstall
类名: UpgradeFlag|@ohos.bundle.freeInstall.d.ts| +|新增|NA|模块名: ohos.bundle.freeInstall
类名: UpgradeFlag
方法名 or 属性名: NOT_UPGRADE|@ohos.bundle.freeInstall.d.ts| +|新增|NA|模块名: ohos.bundle.freeInstall
类名: UpgradeFlag
方法名 or 属性名: SINGLE_UPGRADE|@ohos.bundle.freeInstall.d.ts| +|新增|NA|模块名: ohos.bundle.freeInstall
类名: UpgradeFlag
方法名 or 属性名: RELATION_UPGRADE|@ohos.bundle.freeInstall.d.ts| +|新增|NA|模块名: ohos.bundle.freeInstall
类名: BundlePackFlag|@ohos.bundle.freeInstall.d.ts| +|新增|NA|模块名: ohos.bundle.freeInstall
类名: BundlePackFlag
方法名 or 属性名: GET_PACK_INFO_ALL|@ohos.bundle.freeInstall.d.ts| +|新增|NA|模块名: ohos.bundle.freeInstall
类名: BundlePackFlag
方法名 or 属性名: GET_PACKAGES|@ohos.bundle.freeInstall.d.ts| +|新增|NA|模块名: ohos.bundle.freeInstall
类名: BundlePackFlag
方法名 or 属性名: GET_BUNDLE_SUMMARY|@ohos.bundle.freeInstall.d.ts| +|新增|NA|模块名: ohos.bundle.freeInstall
类名: BundlePackFlag
方法名 or 属性名: GET_MODULE_SUMMARY|@ohos.bundle.freeInstall.d.ts| +|新增|NA|模块名: ohos.bundle.freeInstall
类名: freeInstall
方法名 or 属性名: setHapModuleUpgradeFlag|@ohos.bundle.freeInstall.d.ts| +|新增|NA|模块名: ohos.bundle.freeInstall
类名: freeInstall
方法名 or 属性名: setHapModuleUpgradeFlag|@ohos.bundle.freeInstall.d.ts| +|新增|NA|模块名: ohos.bundle.freeInstall
类名: freeInstall
方法名 or 属性名: isHapModuleRemovable|@ohos.bundle.freeInstall.d.ts| +|新增|NA|模块名: ohos.bundle.freeInstall
类名: freeInstall
方法名 or 属性名: isHapModuleRemovable|@ohos.bundle.freeInstall.d.ts| +|新增|NA|模块名: ohos.bundle.freeInstall
类名: freeInstall
方法名 or 属性名: getBundlePackInfo|@ohos.bundle.freeInstall.d.ts| +|新增|NA|模块名: ohos.bundle.freeInstall
类名: freeInstall
方法名 or 属性名: getBundlePackInfo|@ohos.bundle.freeInstall.d.ts| +|新增|NA|模块名: ohos.bundle.freeInstall
类名: freeInstall
方法名 or 属性名: getDispatchInfo|@ohos.bundle.freeInstall.d.ts| +|新增|NA|模块名: ohos.bundle.freeInstall
类名: freeInstall
方法名 or 属性名: getDispatchInfo|@ohos.bundle.freeInstall.d.ts| +|新增|NA|模块名: ohos.bundle.installer
类名: installer|@ohos.bundle.installer.d.ts| +|新增|NA|模块名: ohos.bundle.installer
类名: installer
方法名 or 属性名: getBundleInstaller|@ohos.bundle.installer.d.ts| +|新增|NA|模块名: ohos.bundle.installer
类名: installer
方法名 or 属性名: getBundleInstaller|@ohos.bundle.installer.d.ts| +|新增|NA|模块名: ohos.bundle.installer
类名: BundleInstaller|@ohos.bundle.installer.d.ts| +|新增|NA|模块名: ohos.bundle.installer
类名: BundleInstaller
方法名 or 属性名: install|@ohos.bundle.installer.d.ts| +|新增|NA|模块名: ohos.bundle.installer
类名: BundleInstaller
方法名 or 属性名: uninstall|@ohos.bundle.installer.d.ts| +|新增|NA|模块名: ohos.bundle.installer
类名: BundleInstaller
方法名 or 属性名: recover|@ohos.bundle.installer.d.ts| +|新增|NA|模块名: ohos.bundle.installer
类名: HashParam|@ohos.bundle.installer.d.ts| +|新增|NA|模块名: ohos.bundle.installer
类名: HashParam
方法名 or 属性名: moduleName|@ohos.bundle.installer.d.ts| +|新增|NA|模块名: ohos.bundle.installer
类名: HashParam
方法名 or 属性名: hashValue|@ohos.bundle.installer.d.ts| +|新增|NA|模块名: ohos.bundle.installer
类名: InstallParam|@ohos.bundle.installer.d.ts| +|新增|NA|模块名: ohos.bundle.installer
类名: InstallParam
方法名 or 属性名: userId|@ohos.bundle.installer.d.ts| +|新增|NA|模块名: ohos.bundle.installer
类名: InstallParam
方法名 or 属性名: installFlag|@ohos.bundle.installer.d.ts| +|新增|NA|模块名: ohos.bundle.installer
类名: InstallParam
方法名 or 属性名: isKeepData|@ohos.bundle.installer.d.ts| +|新增|NA|模块名: ohos.bundle.installer
类名: InstallParam
方法名 or 属性名: hashParams|@ohos.bundle.installer.d.ts| +|新增|NA|模块名: ohos.bundle.installer
类名: InstallParam
方法名 or 属性名: crowdtestDeadline|@ohos.bundle.installer.d.ts| +|新增|NA|模块名: ohos.bundle.launcherBundleManager
类名: launcherBundleManager|@ohos.bundle.launcherBundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.launcherBundleManager
类名: launcherBundleManager
方法名 or 属性名: getLauncherAbilityInfo|@ohos.bundle.launcherBundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.launcherBundleManager
类名: launcherBundleManager
方法名 or 属性名: getLauncherAbilityInfo|@ohos.bundle.launcherBundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.launcherBundleManager
类名: launcherBundleManager
方法名 or 属性名: getAllLauncherAbilityInfo|@ohos.bundle.launcherBundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.launcherBundleManager
类名: launcherBundleManager
方法名 or 属性名: getAllLauncherAbilityInfo|@ohos.bundle.launcherBundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.launcherBundleManager
类名: launcherBundleManager
方法名 or 属性名: getShortcutInfo|@ohos.bundle.launcherBundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.launcherBundleManager
类名: launcherBundleManager
方法名 or 属性名: getShortcutInfo|@ohos.bundle.launcherBundleManager.d.ts| +|新增|NA|模块名: abilityInfo
类名: WindowSize|abilityInfo.d.ts| +|新增|NA|模块名: abilityInfo
类名: WindowSize
方法名 or 属性名:maxWindowRatio|abilityInfo.d.ts| +|新增|NA|模块名: abilityInfo
类名: WindowSize
方法名 or 属性名:minWindowRatio|abilityInfo.d.ts| +|新增|NA|模块名: abilityInfo
类名: WindowSize
方法名 or 属性名:maxWindowWidth|abilityInfo.d.ts| +|新增|NA|模块名: abilityInfo
类名: WindowSize
方法名 or 属性名:minWindowWidth|abilityInfo.d.ts| +|新增|NA|模块名: abilityInfo
类名: WindowSize
方法名 or 属性名:maxWindowHeight|abilityInfo.d.ts| +|新增|NA|模块名: abilityInfo
类名: WindowSize
方法名 or 属性名:minWindowHeight|abilityInfo.d.ts| +|新增|NA|模块名: bundleInfo
类名: SignatureInfo|bundleInfo.d.ts| +|新增|NA|模块名: bundleInfo
类名: SignatureInfo
方法名 or 属性名:appId|bundleInfo.d.ts| +|新增|NA|模块名: bundleInfo
类名: SignatureInfo
方法名 or 属性名:fingerprint|bundleInfo.d.ts| +|新增|NA|模块名: dispatchInfo
类名: DispatchInfo
方法名 or 属性名: dispatchAPIVersion|dispatchInfo.d.ts| +|新增|NA|模块名: packInfo
类名: PackageConfig
方法名 or 属性名: deviceTypes|packInfo.d.ts| +|新增|NA|模块名: packInfo
类名: ExtensionAbility|packInfo.d.ts| +|新增|NA|模块名: packInfo
类名: ExtensionAbility
方法名 or 属性名: name|packInfo.d.ts| +|新增|NA|模块名: packInfo
类名: ExtensionAbility
方法名 or 属性名: forms|packInfo.d.ts| +|新增|NA|模块名: packInfo
类名: ModuleConfigInfo
方法名 or 属性名: mainAbility|packInfo.d.ts| +|新增|NA|模块名: packInfo
类名: ModuleConfigInfo
方法名 or 属性名: deviceTypes|packInfo.d.ts| +|新增|NA|模块名: packInfo
类名: ModuleConfigInfo
方法名 or 属性名: extensionAbilities|packInfo.d.ts| +|新增|NA|模块名: packInfo
类名: AbilityFormInfo
方法名 or 属性名: supportDimensions|packInfo.d.ts| +|新增|NA|模块名: packInfo
类名: AbilityFormInfo
方法名 or 属性名: defaultDimension|packInfo.d.ts| +|新增|NA|模块名: permissionDef
类名: PermissionDef|permissionDef.d.ts| +|新增|NA|模块名: permissionDef
类名: PermissionDef
方法名 or 属性名: permissionName|permissionDef.d.ts| +|新增|NA|模块名: permissionDef
类名: PermissionDef
方法名 or 属性名: grantMode|permissionDef.d.ts| +|新增|NA|模块名: permissionDef
类名: PermissionDef
方法名 or 属性名: labelId|permissionDef.d.ts| +|新增|NA|模块名: permissionDef
类名: PermissionDef
方法名 or 属性名: descriptionId|permissionDef.d.ts| |废弃版本有变化|类名:bundle
废弃版本:N/A|类名:bundle
废弃版本:9
代替接口:ohos.bundle.bundleManager |@ohos.bundle.d.ts| |废弃版本有变化|类名:BundleFlag
废弃版本:N/A|类名:BundleFlag
废弃版本:9
代替接口:ohos.bundle.bundleManager.BundleFlag|@ohos.bundle.d.ts| |废弃版本有变化|类名:ExtensionFlag
废弃版本:N/A|类名:ExtensionFlag
废弃版本:9
代替接口:ohos.bundle.bundleManager.ExtensionAbilityFlag |@ohos.bundle.d.ts| @@ -325,10 +304,6 @@ |废弃版本有变化|方法名 or 属性名:setDisposedStatus
废弃版本:N/A|方法名 or 属性名:setDisposedStatus
废弃版本:9|@ohos.bundle.d.ts| |废弃版本有变化|方法名 or 属性名:getDisposedStatus
废弃版本:N/A|方法名 or 属性名:getDisposedStatus
废弃版本:9
代替接口:ohos.bundle.appControl|@ohos.bundle.d.ts| |废弃版本有变化|方法名 or 属性名:getDisposedStatus
废弃版本:N/A|方法名 or 属性名:getDisposedStatus
废弃版本:9|@ohos.bundle.d.ts| -|废弃版本有变化|方法名 or 属性名:getApplicationInfoSync
废弃版本:N/A|方法名 or 属性名:getApplicationInfoSync
废弃版本:9
代替接口:ohos.bundle.appControl|@ohos.bundle.d.ts| -|废弃版本有变化|方法名 or 属性名:getApplicationInfoSync
废弃版本:N/A|方法名 or 属性名:getApplicationInfoSync
废弃版本:9|@ohos.bundle.d.ts| -|废弃版本有变化|方法名 or 属性名:getBundleInfoSync
废弃版本:N/A|方法名 or 属性名:getBundleInfoSync
废弃版本:9
代替接口:ohos.bundle.appControl|@ohos.bundle.d.ts| -|废弃版本有变化|方法名 or 属性名:getBundleInfoSync
废弃版本:N/A|方法名 or 属性名:getBundleInfoSync
废弃版本:9|@ohos.bundle.d.ts| |废弃版本有变化|方法名 or 属性名:getLauncherAbilityInfos
废弃版本:N/A|方法名 or 属性名:getLauncherAbilityInfos
废弃版本:9
代替接口:ohos.bundle.launcherBundleManager|@ohos.bundle.innerBundleManager.d.ts| |废弃版本有变化|方法名 or 属性名:getLauncherAbilityInfos
废弃版本:N/A|方法名 or 属性名:getLauncherAbilityInfos
废弃版本:9|@ohos.bundle.innerBundleManager.d.ts| |废弃版本有变化|方法名 or 属性名:on_BundleStatusChange
废弃版本:N/A|方法名 or 属性名:on_BundleStatusChange
废弃版本:9
代替接口:ohos.bundle.bundleMonitor|@ohos.bundle.innerBundleManager.d.ts| @@ -375,11 +350,11 @@ |废弃版本有变化|类名:RemoteAbilityInfo
废弃版本:N/A|类名:RemoteAbilityInfo
废弃版本:9
代替接口:ohos.bundle.distributedBundle.RemoteAbilityInfo |remoteAbilityInfo.d.ts| |废弃版本有变化|类名:ShortcutWant
废弃版本:N/A|类名:ShortcutWant
废弃版本:9
代替接口:ohos.bundle.launcherBundleManager.ShortcutWant |shortcutInfo.d.ts| |废弃版本有变化|类名:ShortcutInfo
废弃版本:N/A|类名:ShortcutInfo
废弃版本:9
代替接口:ohos.bundle.launcherBundleManager.ShortcutInfo |shortcutInfo.d.ts| -|新增(错误码)||方法名 or 属性名:isDefaultApplication
错误码内容:401,801|@ohos.bundle.defaultAppManager.d.ts| -|新增(错误码)||方法名 or 属性名:isDefaultApplication
错误码内容:401,801|@ohos.bundle.defaultAppManager.d.ts| -|新增(错误码)||方法名 or 属性名:getDefaultApplication
错误码内容:201,401,801,17700004,17700023,17700025|@ohos.bundle.defaultAppManager.d.ts| -|新增(错误码)||方法名 or 属性名:getDefaultApplication
错误码内容:201,401,801,17700004,17700023,17700025|@ohos.bundle.defaultAppManager.d.ts| -|新增(错误码)||方法名 or 属性名:setDefaultApplication
错误码内容:201,401,801,17700004,17700025,17700028|@ohos.bundle.defaultAppManager.d.ts| -|新增(错误码)||方法名 or 属性名:setDefaultApplication
错误码内容:201,401,801,17700004,17700025,17700028|@ohos.bundle.defaultAppManager.d.ts| -|新增(错误码)||方法名 or 属性名:resetDefaultApplication
错误码内容:201,401,801,17700004,17700025|@ohos.bundle.defaultAppManager.d.ts| -|新增(错误码)||方法名 or 属性名:resetDefaultApplication
错误码内容:201,401,801,17700004,17700025|@ohos.bundle.defaultAppManager.d.ts| +|新增(错误码)|NA|方法名 or 属性名:isDefaultApplication
错误码内容:401,801|@ohos.bundle.defaultAppManager.d.ts| +|新增(错误码)|NA|方法名 or 属性名:isDefaultApplication
错误码内容:401,801|@ohos.bundle.defaultAppManager.d.ts| +|新增(错误码)|NA|方法名 or 属性名:getDefaultApplication
错误码内容:201,401,801,17700004,17700023,17700025|@ohos.bundle.defaultAppManager.d.ts| +|新增(错误码)|NA|方法名 or 属性名:getDefaultApplication
错误码内容:201,401,801,17700004,17700023,17700025|@ohos.bundle.defaultAppManager.d.ts| +|新增(错误码)|NA|方法名 or 属性名:setDefaultApplication
错误码内容:201,401,801,17700004,17700025,17700028|@ohos.bundle.defaultAppManager.d.ts| +|新增(错误码)|NA|方法名 or 属性名:setDefaultApplication
错误码内容:201,401,801,17700004,17700025,17700028|@ohos.bundle.defaultAppManager.d.ts| +|新增(错误码)|NA|方法名 or 属性名:resetDefaultApplication
错误码内容:201,401,801,17700004,17700025|@ohos.bundle.defaultAppManager.d.ts| +|新增(错误码)|NA|方法名 or 属性名:resetDefaultApplication
错误码内容:201,401,801,17700004,17700025|@ohos.bundle.defaultAppManager.d.ts| diff --git a/zh-cn/release-notes/api-diff/monthly-202210/js-apidiff-communication.md b/zh-cn/release-notes/api-diff/monthly-202210/js-apidiff-communication.md index fe3d7b6f6cb4b56ed3854db3573726b3ed8f3939..bd59bb0e46af98f8ac784c4dc2ea9bcc13e51e17 100644 --- a/zh-cn/release-notes/api-diff/monthly-202210/js-apidiff-communication.md +++ b/zh-cn/release-notes/api-diff/monthly-202210/js-apidiff-communication.md @@ -1,698 +1,672 @@ -| 操作 | 新版本 | 旧版本 | d.ts文件 | +| 操作 | 旧版本 | 新版本 | d.ts文件 | | ---- | ------ | ------ | -------- | -|新增||模块名: ohos.net.connection
类名: NetHandle
方法名 or 属性名: bindSocket|@ohos.net.connection.d.ts| -|新增||模块名: ohos.net.connection
类名: NetHandle
方法名 or 属性名: bindSocket|@ohos.net.connection.d.ts| -|新增||模块名: ohos.net.ethernet
类名: ethernet|@ohos.net.ethernet.d.ts| -|新增||模块名: ohos.net.ethernet
类名: ethernet
方法名 or 属性名: getIfaceConfig|@ohos.net.ethernet.d.ts| -|新增||模块名: ohos.net.ethernet
类名: ethernet
方法名 or 属性名: getIfaceConfig|@ohos.net.ethernet.d.ts| -|新增||模块名: ohos.net.ethernet
类名: ethernet
方法名 or 属性名: setIfaceConfig|@ohos.net.ethernet.d.ts| -|新增||模块名: ohos.net.ethernet
类名: ethernet
方法名 or 属性名: setIfaceConfig|@ohos.net.ethernet.d.ts| -|新增||模块名: ohos.net.ethernet
类名: ethernet
方法名 or 属性名: isIfaceActive|@ohos.net.ethernet.d.ts| -|新增||模块名: ohos.net.ethernet
类名: ethernet
方法名 or 属性名: isIfaceActive|@ohos.net.ethernet.d.ts| -|新增||模块名: ohos.net.ethernet
类名: ethernet
方法名 or 属性名: getAllActiveIfaces|@ohos.net.ethernet.d.ts| -|新增||模块名: ohos.net.ethernet
类名: ethernet
方法名 or 属性名: getAllActiveIfaces|@ohos.net.ethernet.d.ts| -|新增||模块名: ohos.net.ethernet
类名: InterfaceConfiguration|@ohos.net.ethernet.d.ts| -|新增||模块名: ohos.net.ethernet
类名: InterfaceConfiguration
方法名 or 属性名: mode|@ohos.net.ethernet.d.ts| -|新增||模块名: ohos.net.ethernet
类名: InterfaceConfiguration
方法名 or 属性名: ipAddr|@ohos.net.ethernet.d.ts| -|新增||模块名: ohos.net.ethernet
类名: InterfaceConfiguration
方法名 or 属性名: route|@ohos.net.ethernet.d.ts| -|新增||模块名: ohos.net.ethernet
类名: InterfaceConfiguration
方法名 or 属性名: gateway|@ohos.net.ethernet.d.ts| -|新增||模块名: ohos.net.ethernet
类名: InterfaceConfiguration
方法名 or 属性名: netMask|@ohos.net.ethernet.d.ts| -|新增||模块名: ohos.net.ethernet
类名: InterfaceConfiguration
方法名 or 属性名: dnsServers|@ohos.net.ethernet.d.ts| -|新增||模块名: ohos.net.ethernet
类名: IPSetMode|@ohos.net.ethernet.d.ts| -|新增||模块名: ohos.net.ethernet
类名: IPSetMode
方法名 or 属性名: STATIC|@ohos.net.ethernet.d.ts| -|新增||模块名: ohos.net.ethernet
类名: IPSetMode
方法名 or 属性名: DHCP|@ohos.net.ethernet.d.ts| -|新增||模块名: ohos.net.http
类名: HttpRequestOptions
方法名 or 属性名: expectDataType|@ohos.net.http.d.ts| -|新增||模块名: ohos.net.http
类名: HttpRequestOptions
方法名 or 属性名: usingCache|@ohos.net.http.d.ts| -|新增||模块名: ohos.net.http
类名: HttpRequestOptions
方法名 or 属性名: priority|@ohos.net.http.d.ts| -|新增||模块名: ohos.net.http
类名: HttpRequestOptions
方法名 or 属性名: usingProtocol|@ohos.net.http.d.ts| -|新增||模块名: ohos.net.http
类名: HttpProtocol|@ohos.net.http.d.ts| -|新增||模块名: ohos.net.http
类名: HttpProtocol
方法名 or 属性名: HTTP1_1|@ohos.net.http.d.ts| -|新增||模块名: ohos.net.http
类名: HttpProtocol
方法名 or 属性名: HTTP2|@ohos.net.http.d.ts| -|新增||模块名: ohos.net.http
类名: HttpDataType|@ohos.net.http.d.ts| -|新增||模块名: ohos.net.http
类名: HttpDataType
方法名 or 属性名: STRING|@ohos.net.http.d.ts| -|新增||模块名: ohos.net.http
类名: HttpDataType
方法名 or 属性名: OBJECT|@ohos.net.http.d.ts| -|新增||模块名: ohos.net.http
类名: HttpDataType
方法名 or 属性名: ARRAY_BUFFER|@ohos.net.http.d.ts| -|新增||模块名: ohos.net.http
类名: HttpResponse
方法名 or 属性名: resultType|@ohos.net.http.d.ts| -|新增||模块名: ohos.net.http
类名: http
方法名 or 属性名: createHttpResponseCache|@ohos.net.http.d.ts| -|新增||模块名: ohos.net.http
类名: HttpResponseCache|@ohos.net.http.d.ts| -|新增||模块名: ohos.net.http
类名: HttpResponseCache
方法名 or 属性名: flush|@ohos.net.http.d.ts| -|新增||模块名: ohos.net.http
类名: HttpResponseCache
方法名 or 属性名: flush|@ohos.net.http.d.ts| -|新增||模块名: ohos.net.http
类名: HttpResponseCache
方法名 or 属性名: delete|@ohos.net.http.d.ts| -|新增||模块名: ohos.net.http
类名: HttpResponseCache
方法名 or 属性名: delete|@ohos.net.http.d.ts| -|新增||模块名: ohos.net.socket
类名: socket
方法名 or 属性名:constructTLSSocketInstance|@ohos.net.socket.d.ts| -|新增||方法名 or 属性名:socketLinger
函数:socketLinger?: {on: boolean, linger: number};|@ohos.net.socket.d.ts| -|新增||模块名: ohos.net.socket
类名: TLSSocket|@ohos.net.socket.d.ts| -|新增||模块名: ohos.net.socket
类名: TLSSocket
方法名 or 属性名:getCertificate|@ohos.net.socket.d.ts| -|新增||模块名: ohos.net.socket
类名: TLSSocket
方法名 or 属性名:getCertificate|@ohos.net.socket.d.ts| -|新增||模块名: ohos.net.socket
类名: TLSSocket
方法名 or 属性名:getRemoteCertificate|@ohos.net.socket.d.ts| -|新增||模块名: ohos.net.socket
类名: TLSSocket
方法名 or 属性名:getRemoteCertificate|@ohos.net.socket.d.ts| -|新增||模块名: ohos.net.socket
类名: TLSSocket
方法名 or 属性名:getProtocol|@ohos.net.socket.d.ts| -|新增||模块名: ohos.net.socket
类名: TLSSocket
方法名 or 属性名:getProtocol|@ohos.net.socket.d.ts| -|新增||模块名: ohos.net.socket
类名: TLSSocket
方法名 or 属性名:getCipherSuite|@ohos.net.socket.d.ts| -|新增||模块名: ohos.net.socket
类名: TLSSocket
方法名 or 属性名:getCipherSuite|@ohos.net.socket.d.ts| -|新增||模块名: ohos.net.socket
类名: TLSSocket
方法名 or 属性名:getSignatureAlgorithms|@ohos.net.socket.d.ts| -|新增||模块名: ohos.net.socket
类名: TLSSocket
方法名 or 属性名:getSignatureAlgorithms|@ohos.net.socket.d.ts| -|新增||模块名: ohos.net.socket
类名: TLSSocket
方法名 or 属性名:connect|@ohos.net.socket.d.ts| -|新增||模块名: ohos.net.socket
类名: TLSSocket
方法名 or 属性名:connect|@ohos.net.socket.d.ts| -|新增||模块名: ohos.net.socket
类名: TLSSocket
方法名 or 属性名:send|@ohos.net.socket.d.ts| -|新增||模块名: ohos.net.socket
类名: TLSSocket
方法名 or 属性名:send|@ohos.net.socket.d.ts| -|新增||模块名: ohos.net.socket
类名: TLSSecureOptions|@ohos.net.socket.d.ts| -|新增||模块名: ohos.net.socket
类名: TLSSecureOptions
方法名 or 属性名:ca|@ohos.net.socket.d.ts| -|新增||模块名: ohos.net.socket
类名: TLSSecureOptions
方法名 or 属性名:cert|@ohos.net.socket.d.ts| -|新增||模块名: ohos.net.socket
类名: TLSSecureOptions
方法名 or 属性名:key|@ohos.net.socket.d.ts| -|新增||模块名: ohos.net.socket
类名: TLSSecureOptions
方法名 or 属性名:passwd|@ohos.net.socket.d.ts| -|新增||模块名: ohos.net.socket
类名: TLSSecureOptions
方法名 or 属性名:protocols|@ohos.net.socket.d.ts| -|新增||模块名: ohos.net.socket
类名: TLSSecureOptions
方法名 or 属性名:useRemoteCipherPrefer|@ohos.net.socket.d.ts| -|新增||模块名: ohos.net.socket
类名: TLSSecureOptions
方法名 or 属性名:signatureAlgorithms|@ohos.net.socket.d.ts| -|新增||模块名: ohos.net.socket
类名: TLSSecureOptions
方法名 or 属性名:cipherSuite|@ohos.net.socket.d.ts| -|新增||模块名: ohos.net.socket
类名: TLSConnectOptions|@ohos.net.socket.d.ts| -|新增||模块名: ohos.net.socket
类名: TLSConnectOptions
方法名 or 属性名:address|@ohos.net.socket.d.ts| -|新增||模块名: ohos.net.socket
类名: TLSConnectOptions
方法名 or 属性名:secureOptions|@ohos.net.socket.d.ts| -|新增||模块名: ohos.net.socket
类名: TLSConnectOptions
方法名 or 属性名:ALPNProtocols|@ohos.net.socket.d.ts| -|新增||模块名: ohos.net.socket
类名: Protocol|@ohos.net.socket.d.ts| -|新增||模块名: ohos.net.socket
类名: Protocol
方法名 or 属性名:TLSv12|@ohos.net.socket.d.ts| -|新增||模块名: ohos.net.socket
类名: Protocol
方法名 or 属性名:TLSv13|@ohos.net.socket.d.ts| -|新增||模块名: ohos.nfc.tag
类名: TnfType|@ohos.nfc.tag.d.ts| -|新增||模块名: ohos.nfc.tag
类名: TnfType
方法名 or 属性名:TNF_EMPTY|@ohos.nfc.tag.d.ts| -|新增||模块名: ohos.nfc.tag
类名: TnfType
方法名 or 属性名:TNF_WELL_KNOWN|@ohos.nfc.tag.d.ts| -|新增||模块名: ohos.nfc.tag
类名: TnfType
方法名 or 属性名:TNF_MEDIA|@ohos.nfc.tag.d.ts| -|新增||模块名: ohos.nfc.tag
类名: TnfType
方法名 or 属性名:TNF_ABSOLUTE_URI|@ohos.nfc.tag.d.ts| -|新增||模块名: ohos.nfc.tag
类名: TnfType
方法名 or 属性名:TNF_EXT_APP|@ohos.nfc.tag.d.ts| -|新增||模块名: ohos.nfc.tag
类名: TnfType
方法名 or 属性名:TNF_UNKNOWN|@ohos.nfc.tag.d.ts| -|新增||模块名: ohos.nfc.tag
类名: TnfType
方法名 or 属性名:TNF_UNCHANGED|@ohos.nfc.tag.d.ts| -|新增||模块名: ohos.nfc.tag
类名: NfcForumType|@ohos.nfc.tag.d.ts| -|新增||模块名: ohos.nfc.tag
类名: NfcForumType
方法名 or 属性名:NFC_FORUM_TYPE_1|@ohos.nfc.tag.d.ts| -|新增||模块名: ohos.nfc.tag
类名: NfcForumType
方法名 or 属性名:NFC_FORUM_TYPE_2|@ohos.nfc.tag.d.ts| -|新增||模块名: ohos.nfc.tag
类名: NfcForumType
方法名 or 属性名:NFC_FORUM_TYPE_3|@ohos.nfc.tag.d.ts| -|新增||模块名: ohos.nfc.tag
类名: NfcForumType
方法名 or 属性名:NFC_FORUM_TYPE_4|@ohos.nfc.tag.d.ts| -|新增||模块名: ohos.nfc.tag
类名: NfcForumType
方法名 or 属性名:MIFARE_CLASSIC|@ohos.nfc.tag.d.ts| -|新增||模块名:ohos.nfc.tag
类名:tag
方法名 or 属性名:RTD_TEXT|@ohos.nfc.tag.d.ts| -|新增||模块名:ohos.nfc.tag
类名:tag
方法名 or 属性名:RTD_URI|@ohos.nfc.tag.d.ts| -|新增||模块名: ohos.nfc.tag
类名: MifareClassicType|@ohos.nfc.tag.d.ts| -|新增||模块名: ohos.nfc.tag
类名: MifareClassicType
方法名 or 属性名:TYPE_UNKNOWN|@ohos.nfc.tag.d.ts| -|新增||模块名: ohos.nfc.tag
类名: MifareClassicType
方法名 or 属性名:TYPE_CLASSIC|@ohos.nfc.tag.d.ts| -|新增||模块名: ohos.nfc.tag
类名: MifareClassicType
方法名 or 属性名:TYPE_PLUS|@ohos.nfc.tag.d.ts| -|新增||模块名: ohos.nfc.tag
类名: MifareClassicType
方法名 or 属性名:TYPE_PRO|@ohos.nfc.tag.d.ts| -|新增||模块名: ohos.nfc.tag
类名: MifareClassicSize|@ohos.nfc.tag.d.ts| -|新增||模块名: ohos.nfc.tag
类名: MifareClassicSize
方法名 or 属性名:MC_SIZE_MINI|@ohos.nfc.tag.d.ts| -|新增||模块名: ohos.nfc.tag
类名: MifareClassicSize
方法名 or 属性名:MC_SIZE_1K|@ohos.nfc.tag.d.ts| -|新增||模块名: ohos.nfc.tag
类名: MifareClassicSize
方法名 or 属性名:MC_SIZE_2K|@ohos.nfc.tag.d.ts| -|新增||模块名: ohos.nfc.tag
类名: MifareClassicSize
方法名 or 属性名:MC_SIZE_4K|@ohos.nfc.tag.d.ts| -|新增||模块名: ohos.nfc.tag
类名: MifareUltralightType|@ohos.nfc.tag.d.ts| -|新增||模块名: ohos.nfc.tag
类名: MifareUltralightType
方法名 or 属性名:TYPE_UNKNOWN|@ohos.nfc.tag.d.ts| -|新增||模块名: ohos.nfc.tag
类名: MifareUltralightType
方法名 or 属性名:TYPE_ULTRALIGHT|@ohos.nfc.tag.d.ts| -|新增||模块名: ohos.nfc.tag
类名: MifareUltralightType
方法名 or 属性名:TYPE_ULTRALIGHT_C|@ohos.nfc.tag.d.ts| -|新增||模块名:ohos.nfc.tag
类名:tag
方法名 or 属性名:getIsoDep|@ohos.nfc.tag.d.ts| -|新增||模块名:ohos.nfc.tag
类名:tag
方法名 or 属性名:getNdef|@ohos.nfc.tag.d.ts| -|新增||模块名:ohos.nfc.tag
类名:tag
方法名 or 属性名:getMifareClassic|@ohos.nfc.tag.d.ts| -|新增||模块名:ohos.nfc.tag
类名:tag
方法名 or 属性名:getMifareUltralight|@ohos.nfc.tag.d.ts| -|新增||模块名:ohos.nfc.tag
类名:tag
方法名 or 属性名:getNdefFormatable|@ohos.nfc.tag.d.ts| -|新增||模块名:ohos.nfc.tag
类名:tag
方法名 or 属性名:getTagInfo|@ohos.nfc.tag.d.ts| -|新增||方法名 or 属性名:uid
函数:uid: number[];|@ohos.nfc.tag.d.ts| -|新增||模块名: ohos.nfc.tag
类名: NdefRecord|@ohos.nfc.tag.d.ts| -|新增||模块名: ohos.nfc.tag
类名: NdefRecord
方法名 or 属性名:tnf|@ohos.nfc.tag.d.ts| -|新增||模块名: ohos.nfc.tag
类名: NdefRecord
方法名 or 属性名:rtdType|@ohos.nfc.tag.d.ts| -|新增||模块名: ohos.nfc.tag
类名: NdefRecord
方法名 or 属性名:id|@ohos.nfc.tag.d.ts| -|新增||模块名: ohos.nfc.tag
类名: NdefRecord
方法名 or 属性名:payload|@ohos.nfc.tag.d.ts| -|新增||模块名: ohos.rpc
类名: ErrorCode|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: ErrorCode
方法名 or 属性名:CHECK_PARAM_ERROR|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: ErrorCode
方法名 or 属性名:OS_MMAP_ERROR|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: ErrorCode
方法名 or 属性名:OS_IOCTL_ERROR|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: ErrorCode
方法名 or 属性名:WRITE_TO_ASHMEM_ERROR|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: ErrorCode
方法名 or 属性名:READ_FROM_ASHMEM_ERROR|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: ErrorCode
方法名 or 属性名:ONLY_PROXY_OBJECT_PERMITTED_ERROR|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: ErrorCode
方法名 or 属性名:ONLY_REMOTE_OBJECT_PERMITTED_ERROR|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: ErrorCode
方法名 or 属性名:COMMUNICATION_ERROR|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: ErrorCode
方法名 or 属性名:PROXY_OR_REMOTE_OBJECT_INVALID_ERROR|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: ErrorCode
方法名 or 属性名:WRITE_DATA_TO_MESSAGE_SEQUENCE_ERROR|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: ErrorCode
方法名 or 属性名:READ_DATA_FROM_MESSAGE_SEQUENCE_ERROR|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: ErrorCode
方法名 or 属性名:PARCEL_MEMORY_ALLOC_ERROR|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: ErrorCode
方法名 or 属性名:CALL_JS_METHOD_ERROR|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: ErrorCode
方法名 or 属性名:OS_DUP_ERROR|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:create|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:reclaim|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:writeRemoteObject|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readRemoteObject|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:writeInterfaceToken|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readInterfaceToken|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:getSize|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:getCapacity|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:setSize|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:setCapacity|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:getWritableBytes|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:getReadableBytes|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:getReadPosition|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:getWritePosition|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:rewindRead|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:rewindWrite|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:writeNoException|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readException|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:writeByte|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:writeShort|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:writeInt|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:writeLong|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:writeFloat|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:writeDouble|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:writeBoolean|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:writeChar|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:writeString|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:writeParcelable|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:writeByteArray|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:writeShortArray|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:writeIntArray|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:writeLongArray|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:writeFloatArray|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:writeDoubleArray|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:writeBooleanArray|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:writeCharArray|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:writeStringArray|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:writeParcelableArray|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:writeRemoteObjectArray|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readByte|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readShort|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readInt|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readLong|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readFloat|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readDouble|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readBoolean|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readChar|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readString|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readParcelable|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readByteArray|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readByteArray|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readShortArray|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readShortArray|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readIntArray|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readIntArray|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readLongArray|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readLongArray|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readFloatArray|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readFloatArray|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readDoubleArray|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readDoubleArray|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readBooleanArray|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readBooleanArray|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readCharArray|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readCharArray|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readStringArray|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readStringArray|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readParcelableArray|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readRemoteObjectArray|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readRemoteObjectArray|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:closeFileDescriptor|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:dupFileDescriptor|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:containFileDescriptors|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:writeFileDescriptor|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readFileDescriptor|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:writeAshmem|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readAshmem|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:getRawDataCapacity|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:writeRawData|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readRawData|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: Parcelable|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: Parcelable
方法名 or 属性名:marshalling|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: Parcelable
方法名 or 属性名:unmarshalling|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: RequestResult|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: RequestResult
方法名 or 属性名:errCode|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: RequestResult
方法名 or 属性名:code|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: RequestResult
方法名 or 属性名:data|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: RequestResult
方法名 or 属性名:reply|@ohos.rpc.d.ts| -|新增||模块名:ohos.rpc
类名:IRemoteObject
方法名 or 属性名:getLocalInterface|@ohos.rpc.d.ts| -|新增||模块名:ohos.rpc
类名:IRemoteObject
方法名 or 属性名:sendMessageRequest|@ohos.rpc.d.ts| -|新增||模块名:ohos.rpc
类名:IRemoteObject
方法名 or 属性名:sendMessageRequest|@ohos.rpc.d.ts| -|新增||模块名:ohos.rpc
类名:IRemoteObject
方法名 or 属性名:registerDeathRecipient|@ohos.rpc.d.ts| -|新增||模块名:ohos.rpc
类名:IRemoteObject
方法名 or 属性名:unregisterDeathRecipient|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageOption
方法名 or 属性名:ructor(async?|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageOption
方法名 or 属性名:isAsync|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageOption
方法名 or 属性名:setAsync|@ohos.rpc.d.ts| -|新增||模块名:ohos.rpc
类名:RemoteObject
方法名 or 属性名:getLocalInterface|@ohos.rpc.d.ts| -|新增||模块名:ohos.rpc
类名:RemoteObject
方法名 or 属性名:getDescriptor|@ohos.rpc.d.ts| -|新增||模块名:ohos.rpc
类名:RemoteObject
方法名 or 属性名:onRemoteMessageRequest|@ohos.rpc.d.ts| -|新增||模块名:ohos.rpc
类名:RemoteObject
方法名 or 属性名:sendMessageRequest|@ohos.rpc.d.ts| -|新增||模块名:ohos.rpc
类名:RemoteObject
方法名 or 属性名:sendMessageRequest|@ohos.rpc.d.ts| -|新增||模块名:ohos.rpc
类名:RemoteObject
方法名 or 属性名:modifyLocalInterface|@ohos.rpc.d.ts| -|新增||模块名:ohos.rpc
类名:RemoteProxy
方法名 or 属性名:getLocalInterface|@ohos.rpc.d.ts| -|新增||模块名:ohos.rpc
类名:RemoteProxy
方法名 or 属性名:registerDeathRecipient|@ohos.rpc.d.ts| -|新增||模块名:ohos.rpc
类名:RemoteProxy
方法名 or 属性名:unregisterDeathRecipient|@ohos.rpc.d.ts| -|新增||模块名:ohos.rpc
类名:RemoteProxy
方法名 or 属性名:getDescriptor|@ohos.rpc.d.ts| -|新增||模块名:ohos.rpc
类名:RemoteProxy
方法名 or 属性名:sendMessageRequest|@ohos.rpc.d.ts| -|新增||模块名:ohos.rpc
类名:RemoteProxy
方法名 or 属性名:sendMessageRequest|@ohos.rpc.d.ts| -|新增||模块名:ohos.rpc
类名:IPCSkeleton
方法名 or 属性名:flushCmdBuffer|@ohos.rpc.d.ts| -|新增||模块名:ohos.rpc
类名:IPCSkeleton
方法名 or 属性名:restoreCallingIdentity|@ohos.rpc.d.ts| -|新增||模块名:ohos.rpc
类名:Ashmem
方法名 or 属性名:create|@ohos.rpc.d.ts| -|新增||模块名:ohos.rpc
类名:Ashmem
方法名 or 属性名:create|@ohos.rpc.d.ts| -|新增||模块名:ohos.rpc
类名:Ashmem
方法名 or 属性名:mapTypedAshmem|@ohos.rpc.d.ts| -|新增||模块名:ohos.rpc
类名:Ashmem
方法名 or 属性名:mapReadWriteAshmem|@ohos.rpc.d.ts| -|新增||模块名:ohos.rpc
类名:Ashmem
方法名 or 属性名:mapReadonlyAshmem|@ohos.rpc.d.ts| -|新增||模块名:ohos.rpc
类名:Ashmem
方法名 or 属性名:setProtectionType|@ohos.rpc.d.ts| -|新增||模块名:ohos.rpc
类名:Ashmem
方法名 or 属性名:writeAshmem|@ohos.rpc.d.ts| -|新增||模块名:ohos.rpc
类名:Ashmem
方法名 or 属性名:readAshmem|@ohos.rpc.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: enableWifi|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: disableWifi|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: isWifiActive|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: scan|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: getScanResults|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: getScanResults|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: getScanResultsSync|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: addDeviceConfig|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: addDeviceConfig|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: addCandidateConfig|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: addCandidateConfig|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: removeCandidateConfig|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: removeCandidateConfig|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: getCandidateConfigs|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: connectToCandidateConfig|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: connectToNetwork|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: connectToDevice|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: disconnect|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: getSignalLevel|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: getLinkedInfo|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: getLinkedInfo|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: isConnected|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: getSupportedFeatures|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: isFeatureSupported|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: getDeviceMacAddress|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: getIpInfo|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: getCountryCode|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: reassociate|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: reconnect|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: getDeviceConfigs|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: updateNetwork|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: disableNetwork|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: removeAllNetwork|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: removeDevice|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: enableHotspot|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: disableHotspot|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: isHotspotDualBandSupported|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: isHotspotActive|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: setHotspotConfig|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: getHotspotConfig|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: getStations|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: getP2pLinkedInfo|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: getP2pLinkedInfo|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: getCurrentGroup|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: getCurrentGroup|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: getP2pPeerDevices|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: getP2pPeerDevices|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: getP2pLocalDevice|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: getP2pLocalDevice|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: createGroup|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: removeGroup|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: p2pConnect|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: p2pDisconnect|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: startDiscoverDevices|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: stopDiscoverDevices|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: deletePersistentGroup|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: getP2pGroups|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: getP2pGroups|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: setDeviceName|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: on_wifiStateChange|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: off_wifiStateChange|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: on_wifiConnectionChange|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: off_wifiConnectionChange|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: on_wifiScanStateChange|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: off_wifiScanStateChange|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: on_wifiRssiChange|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: off_wifiRssiChange|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: on_streamChange|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: off_streamChange|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: on_deviceConfigChange|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: off_deviceConfigChange|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: on_hotspotStateChange|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: off_hotspotStateChange|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: on_hotspotStaJoin|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: off_hotspotStaJoin|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: on_hotspotStaLeave|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: off_hotspotStaLeave|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: on_p2pStateChange|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: off_p2pStateChange|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: on_p2pConnectionChange|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: off_p2pConnectionChange|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: on_p2pDeviceChange|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: off_p2pDeviceChange|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: on_p2pPeerDeviceChange|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: off_p2pPeerDeviceChange|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: on_p2pPersistentGroupChange|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: off_p2pPersistentGroupChange|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: on_p2pDiscoveryChange|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: off_p2pDiscoveryChange|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: EapMethod|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: EapMethod
方法名 or 属性名: EAP_NONE|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: EapMethod
方法名 or 属性名: EAP_PEAP|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: EapMethod
方法名 or 属性名: EAP_TLS|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: EapMethod
方法名 or 属性名: EAP_TTLS|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: EapMethod
方法名 or 属性名: EAP_PWD|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: EapMethod
方法名 or 属性名: EAP_SIM|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: EapMethod
方法名 or 属性名: EAP_AKA|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: EapMethod
方法名 or 属性名: EAP_AKA_PRIME|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: EapMethod
方法名 or 属性名: EAP_UNAUTH_TLS|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: Phase2Method|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: Phase2Method
方法名 or 属性名: PHASE2_NONE|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: Phase2Method
方法名 or 属性名: PHASE2_PAP|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: Phase2Method
方法名 or 属性名: PHASE2_MSCHAP|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: Phase2Method
方法名 or 属性名: PHASE2_MSCHAPV2|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: Phase2Method
方法名 or 属性名: PHASE2_GTC|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: Phase2Method
方法名 or 属性名: PHASE2_SIM|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: Phase2Method
方法名 or 属性名: PHASE2_AKA|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: Phase2Method
方法名 or 属性名: PHASE2_AKA_PRIME|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiEapConfig|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiEapConfig
方法名 or 属性名: eapMethod|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiEapConfig
方法名 or 属性名: phase2Method|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiEapConfig
方法名 or 属性名: identity|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiEapConfig
方法名 or 属性名: anonymousIdentity|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiEapConfig
方法名 or 属性名: password|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiEapConfig
方法名 or 属性名: caCertAliases|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiEapConfig
方法名 or 属性名: caPath|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiEapConfig
方法名 or 属性名: clientCertAliases|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiEapConfig
方法名 or 属性名: altSubjectMatch|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiEapConfig
方法名 or 属性名: domainSuffixMatch|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiEapConfig
方法名 or 属性名: realm|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiEapConfig
方法名 or 属性名: plmn|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiEapConfig
方法名 or 属性名: eapSubId|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiDeviceConfig|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiDeviceConfig
方法名 or 属性名: ssid|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiDeviceConfig
方法名 or 属性名: bssid|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiDeviceConfig
方法名 or 属性名: preSharedKey|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiDeviceConfig
方法名 or 属性名: isHiddenSsid|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiDeviceConfig
方法名 or 属性名: securityType|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiDeviceConfig
方法名 or 属性名: creatorUid|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiDeviceConfig
方法名 or 属性名: disableReason|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiDeviceConfig
方法名 or 属性名: netId|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiDeviceConfig
方法名 or 属性名: randomMacType|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiDeviceConfig
方法名 or 属性名: randomMacAddr|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiDeviceConfig
方法名 or 属性名: ipType|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiDeviceConfig
方法名 or 属性名: staticIp|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiDeviceConfig
方法名 or 属性名: eapConfig|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: IpConfig|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: IpConfig
方法名 or 属性名: ipAddress|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: IpConfig
方法名 or 属性名: gateway|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: IpConfig
方法名 or 属性名: prefixLength|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: IpConfig
方法名 or 属性名: dnsServers|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: IpConfig
方法名 or 属性名: domains|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiInfoElem|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiInfoElem
方法名 or 属性名: eid|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiInfoElem
方法名 or 属性名: content|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiChannelWidth|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiChannelWidth
方法名 or 属性名: WIDTH_20MHZ|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiChannelWidth
方法名 or 属性名: WIDTH_40MHZ|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiChannelWidth
方法名 or 属性名: WIDTH_80MHZ|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiChannelWidth
方法名 or 属性名: WIDTH_160MHZ|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiChannelWidth
方法名 or 属性名: WIDTH_80MHZ_PLUS|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiChannelWidth
方法名 or 属性名: WIDTH_INVALID|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiScanInfo|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiScanInfo
方法名 or 属性名: ssid|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiScanInfo
方法名 or 属性名: bssid|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiScanInfo
方法名 or 属性名: capabilities|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiScanInfo
方法名 or 属性名: securityType|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiScanInfo
方法名 or 属性名: rssi|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiScanInfo
方法名 or 属性名: band|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiScanInfo
方法名 or 属性名: frequency|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiScanInfo
方法名 or 属性名: channelWidth|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiScanInfo
方法名 or 属性名: centerFrequency0|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiScanInfo
方法名 or 属性名: centerFrequency1|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiScanInfo
方法名 or 属性名: infoElems|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiScanInfo
方法名 or 属性名: timestamp|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiSecurityType|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiSecurityType
方法名 or 属性名: WIFI_SEC_TYPE_INVALID|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiSecurityType
方法名 or 属性名: WIFI_SEC_TYPE_OPEN|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiSecurityType
方法名 or 属性名: WIFI_SEC_TYPE_WEP|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiSecurityType
方法名 or 属性名: WIFI_SEC_TYPE_PSK|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiSecurityType
方法名 or 属性名: WIFI_SEC_TYPE_SAE|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiSecurityType
方法名 or 属性名: WIFI_SEC_TYPE_EAP|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiSecurityType
方法名 or 属性名: WIFI_SEC_TYPE_EAP_SUITE_B|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiSecurityType
方法名 or 属性名: WIFI_SEC_TYPE_OWE|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiSecurityType
方法名 or 属性名: WIFI_SEC_TYPE_WAPI_CERT|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiSecurityType
方法名 or 属性名: WIFI_SEC_TYPE_WAPI_PSK|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiLinkedInfo|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiLinkedInfo
方法名 or 属性名: ssid|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiLinkedInfo
方法名 or 属性名: bssid|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiLinkedInfo
方法名 or 属性名: networkId|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiLinkedInfo
方法名 or 属性名: rssi|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiLinkedInfo
方法名 or 属性名: band|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiLinkedInfo
方法名 or 属性名: linkSpeed|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiLinkedInfo
方法名 or 属性名: frequency|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiLinkedInfo
方法名 or 属性名: isHidden|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiLinkedInfo
方法名 or 属性名: isRestricted|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiLinkedInfo
方法名 or 属性名: chload|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiLinkedInfo
方法名 or 属性名: snr|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiLinkedInfo
方法名 or 属性名: macType|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiLinkedInfo
方法名 or 属性名: macAddress|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiLinkedInfo
方法名 or 属性名: ipAddress|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiLinkedInfo
方法名 or 属性名: suppState|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiLinkedInfo
方法名 or 属性名: connState|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: IpInfo|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: IpInfo
方法名 or 属性名: ipAddress|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: IpInfo
方法名 or 属性名: gateway|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: IpInfo
方法名 or 属性名: netmask|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: IpInfo
方法名 or 属性名: primaryDns|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: IpInfo
方法名 or 属性名: secondDns|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: IpInfo
方法名 or 属性名: serverIp|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: IpInfo
方法名 or 属性名: leaseDuration|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: HotspotConfig|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: HotspotConfig
方法名 or 属性名: ssid|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: HotspotConfig
方法名 or 属性名: securityType|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: HotspotConfig
方法名 or 属性名: band|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: HotspotConfig
方法名 or 属性名: preSharedKey|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: HotspotConfig
方法名 or 属性名: maxConn|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: StationInfo|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: StationInfo
方法名 or 属性名: name|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: StationInfo
方法名 or 属性名: macAddress|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: StationInfo
方法名 or 属性名: ipAddress|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: IpType|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: IpType
方法名 or 属性名: STATIC|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: IpType
方法名 or 属性名: DHCP|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: IpType
方法名 or 属性名: UNKNOWN|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: SuppState|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: SuppState
方法名 or 属性名: DISCONNECTED|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: SuppState
方法名 or 属性名: INTERFACE_DISABLED|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: SuppState
方法名 or 属性名: INACTIVE|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: SuppState
方法名 or 属性名: SCANNING|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: SuppState
方法名 or 属性名: AUTHENTICATING|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: SuppState
方法名 or 属性名: ASSOCIATING|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: SuppState
方法名 or 属性名: ASSOCIATED|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: SuppState
方法名 or 属性名: FOUR_WAY_HANDSHAKE|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: SuppState
方法名 or 属性名: GROUP_HANDSHAKE|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: SuppState
方法名 or 属性名: COMPLETED|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: SuppState
方法名 or 属性名: UNINITIALIZED|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: SuppState
方法名 or 属性名: INVALID|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: ConnState|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: ConnState
方法名 or 属性名: SCANNING|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: ConnState
方法名 or 属性名: CONNECTING|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: ConnState
方法名 or 属性名: AUTHENTICATING|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: ConnState
方法名 or 属性名: OBTAINING_IPADDR|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: ConnState
方法名 or 属性名: CONNECTED|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: ConnState
方法名 or 属性名: DISCONNECTING|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: ConnState
方法名 or 属性名: DISCONNECTED|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: ConnState
方法名 or 属性名: UNKNOWN|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiP2pDevice|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiP2pDevice
方法名 or 属性名: deviceName|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiP2pDevice
方法名 or 属性名: deviceAddress|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiP2pDevice
方法名 or 属性名: primaryDeviceType|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiP2pDevice
方法名 or 属性名: deviceStatus|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiP2pDevice
方法名 or 属性名: groupCapabilities|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiP2PConfig|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiP2PConfig
方法名 or 属性名: deviceAddress|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiP2PConfig
方法名 or 属性名: netId|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiP2PConfig
方法名 or 属性名: passphrase|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiP2PConfig
方法名 or 属性名: groupName|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiP2PConfig
方法名 or 属性名: goBand|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiP2pGroupInfo|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiP2pGroupInfo
方法名 or 属性名: isP2pGo|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiP2pGroupInfo
方法名 or 属性名: ownerInfo|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiP2pGroupInfo
方法名 or 属性名: passphrase|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiP2pGroupInfo
方法名 or 属性名: interface|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiP2pGroupInfo
方法名 or 属性名: groupName|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiP2pGroupInfo
方法名 or 属性名: networkId|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiP2pGroupInfo
方法名 or 属性名: frequency|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiP2pGroupInfo
方法名 or 属性名: clientDevices|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiP2pGroupInfo
方法名 or 属性名: goIpAddress|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: P2pConnectState|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: P2pConnectState
方法名 or 属性名: DISCONNECTED|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: P2pConnectState
方法名 or 属性名: CONNECTED|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiP2pLinkedInfo|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiP2pLinkedInfo
方法名 or 属性名: connectState|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiP2pLinkedInfo
方法名 or 属性名: isGroupOwner|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiP2pLinkedInfo
方法名 or 属性名: groupOwnerAddr|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: P2pDeviceStatus|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: P2pDeviceStatus
方法名 or 属性名: CONNECTED|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: P2pDeviceStatus
方法名 or 属性名: INVITED|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: P2pDeviceStatus
方法名 or 属性名: FAILED|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: P2pDeviceStatus
方法名 or 属性名: AVAILABLE|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: P2pDeviceStatus
方法名 or 属性名: UNAVAILABLE|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: GroupOwnerBand|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: GroupOwnerBand
方法名 or 属性名: GO_BAND_AUTO|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: GroupOwnerBand
方法名 or 属性名: GO_BAND_2GHZ|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: GroupOwnerBand
方法名 or 属性名: GO_BAND_5GHZ|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManagerExt
类名: wifiManagerExt|@ohos.wifiManagerExt.d.ts| -|新增||模块名: ohos.wifiManagerExt
类名: wifiManagerExt
方法名 or 属性名: enableHotspot|@ohos.wifiManagerExt.d.ts| -|新增||模块名: ohos.wifiManagerExt
类名: wifiManagerExt
方法名 or 属性名: disableHotspot|@ohos.wifiManagerExt.d.ts| -|新增||模块名: ohos.wifiManagerExt
类名: wifiManagerExt
方法名 or 属性名: getSupportedPowerMode|@ohos.wifiManagerExt.d.ts| -|新增||模块名: ohos.wifiManagerExt
类名: wifiManagerExt
方法名 or 属性名: getSupportedPowerMode|@ohos.wifiManagerExt.d.ts| -|新增||模块名: ohos.wifiManagerExt
类名: wifiManagerExt
方法名 or 属性名: getPowerMode|@ohos.wifiManagerExt.d.ts| -|新增||模块名: ohos.wifiManagerExt
类名: wifiManagerExt
方法名 or 属性名: getPowerMode|@ohos.wifiManagerExt.d.ts| -|新增||模块名: ohos.wifiManagerExt
类名: wifiManagerExt
方法名 or 属性名: setPowerMode|@ohos.wifiManagerExt.d.ts| -|新增||模块名: ohos.wifiManagerExt
类名: PowerMode|@ohos.wifiManagerExt.d.ts| -|新增||模块名: ohos.wifiManagerExt
类名: PowerMode
方法名 or 属性名: SLEEPING|@ohos.wifiManagerExt.d.ts| -|新增||模块名: ohos.wifiManagerExt
类名: PowerMode
方法名 or 属性名: GENERAL|@ohos.wifiManagerExt.d.ts| -|新增||模块名: ohos.wifiManagerExt
类名: PowerMode
方法名 or 属性名: THROUGH_WALL|@ohos.wifiManagerExt.d.ts| -|新增||方法名 or 属性名:getHistoricalBytes
函数:getHistoricalBytes(): number[];|nfctech.d.ts| -|新增||方法名 or 属性名:getHiLayerResponse
函数:getHiLayerResponse(): number[];|nfctech.d.ts| -|新增||方法名 or 属性名:getNdefRecords
函数:getNdefRecords(): tag.NdefRecord[];|nfctech.d.ts| -|新增||方法名 or 属性名:makeUriRecord
函数:makeUriRecord(uri: string): tag.NdefRecord;|nfctech.d.ts| -|新增||方法名 or 属性名:makeTextRecord
函数:makeTextRecord(text: string, locale: string): tag.NdefRecord;|nfctech.d.ts| -|新增||方法名 or 属性名:makeMimeRecord
函数:makeMimeRecord(mimeType: string, mimeData: number[]): tag.NdefRecord;|nfctech.d.ts| -|新增||方法名 or 属性名:makeExternalRecord
函数:makeExternalRecord(domainName: string, serviceName: string, externalData: number[]): tag.NdefRecord;|nfctech.d.ts| -|新增||模块名:nfctech
类名:NdefMessage
方法名 or 属性名:messageToBytes|nfctech.d.ts| -|新增||方法名 or 属性名:createNdefMessage
函数:createNdefMessage(data: number[]): NdefMessage;|nfctech.d.ts| -|新增||方法名 or 属性名:createNdefMessage
函数:createNdefMessage(ndefRecords: tag.NdefRecord[]): NdefMessage;|nfctech.d.ts| -|新增||方法名 or 属性名:getNdefTagType
函数:getNdefTagType(): tag.NfcForumType;|nfctech.d.ts| -|新增||方法名 or 属性名:isNdefWritable
函数:isNdefWritable(): boolean;|nfctech.d.ts| -|新增||方法名 or 属性名:writeNdef
函数:writeNdef(msg: NdefMessage): Promise;|nfctech.d.ts| -|新增||方法名 or 属性名:writeNdef
函数:writeNdef(msg: NdefMessage, callback: AsyncCallback): void;|nfctech.d.ts| -|新增||方法名 or 属性名:canSetReadOnly
函数:canSetReadOnly(): boolean;|nfctech.d.ts| -|新增||方法名 or 属性名:setReadOnly
函数:setReadOnly(): Promise;|nfctech.d.ts| -|新增||方法名 or 属性名:setReadOnly
函数:setReadOnly(callback: AsyncCallback): void;|nfctech.d.ts| -|新增||方法名 or 属性名:getNdefTagTypeString
函数:getNdefTagTypeString(type: tag.NfcForumType): string;|nfctech.d.ts| -|新增||方法名 or 属性名:authenticateSector
函数:authenticateSector(sectorIndex: number, key: number[], isKeyA: boolean): Promise;|nfctech.d.ts| -|新增||方法名 or 属性名:authenticateSector
函数:authenticateSector(sectorIndex: number, key: number[], isKeyA: boolean, callback: AsyncCallback): void;|nfctech.d.ts| -|新增||方法名 or 属性名:readSingleBlock
函数:readSingleBlock(blockIndex: number): Promise;|nfctech.d.ts| -|新增||方法名 or 属性名:readSingleBlock
函数:readSingleBlock(blockIndex: number, callback: AsyncCallback): void;|nfctech.d.ts| -|新增||方法名 or 属性名:writeSingleBlock
函数:writeSingleBlock(blockIndex: number, data: number[]): Promise;|nfctech.d.ts| -|新增||方法名 or 属性名:writeSingleBlock
函数:writeSingleBlock(blockIndex: number, data: number[], callback: AsyncCallback): void;|nfctech.d.ts| -|新增||方法名 or 属性名:incrementBlock
函数:incrementBlock(blockIndex: number, value: number): Promise;|nfctech.d.ts| -|新增||方法名 or 属性名:incrementBlock
函数:incrementBlock(blockIndex: number, value: number, callback: AsyncCallback): void;|nfctech.d.ts| -|新增||方法名 or 属性名:decrementBlock
函数:decrementBlock(blockIndex: number, value: number): Promise;|nfctech.d.ts| -|新增||方法名 or 属性名:decrementBlock
函数:decrementBlock(blockIndex: number, value: number, callback: AsyncCallback): void;|nfctech.d.ts| -|新增||方法名 or 属性名:transferToBlock
函数:transferToBlock(blockIndex: number): Promise;|nfctech.d.ts| -|新增||方法名 or 属性名:transferToBlock
函数:transferToBlock(blockIndex: number, callback: AsyncCallback): void;|nfctech.d.ts| -|新增||方法名 or 属性名:restoreFromBlock
函数:restoreFromBlock(blockIndex: number): Promise;|nfctech.d.ts| -|新增||方法名 or 属性名:restoreFromBlock
函数:restoreFromBlock(blockIndex: number, callback: AsyncCallback): void;|nfctech.d.ts| -|新增||方法名 or 属性名:getType
函数:getType(): tag.MifareClassicType;|nfctech.d.ts| -|新增||方法名 or 属性名:readMultiplePages
函数:readMultiplePages(pageIndex: number): Promise;|nfctech.d.ts| -|新增||方法名 or 属性名:readMultiplePages
函数:readMultiplePages(pageIndex: number, callback: AsyncCallback): void;|nfctech.d.ts| -|新增||模块名:nfctech
类名:MifareUltralightTag
方法名 or 属性名:writeSinglePage|nfctech.d.ts| -|新增||模块名:nfctech
类名:MifareUltralightTag
方法名 or 属性名:writeSinglePage|nfctech.d.ts| -|新增||方法名 or 属性名:getType
函数:getType(): tag.MifareUltralightType;|nfctech.d.ts| -|新增||方法名 or 属性名:format
函数:format(message: NdefMessage): Promise;|nfctech.d.ts| -|新增||方法名 or 属性名:format
函数:format(message: NdefMessage, callback: AsyncCallback): void;|nfctech.d.ts| -|新增||方法名 or 属性名:formatReadOnly
函数:formatReadOnly(message: NdefMessage): Promise;|nfctech.d.ts| -|新增||方法名 or 属性名:formatReadOnly
函数:formatReadOnly(message: NdefMessage, callback: AsyncCallback): void;|nfctech.d.ts| -|删除|模块名:ohos.nfc.tag
类名:tag
方法名 or 属性名:getIsoDepTag||@ohos.nfc.tag.d.ts| -|删除|模块名:ohos.nfc.tag
类名:tag
方法名 or 属性名:getNdefTag||@ohos.nfc.tag.d.ts| -|删除|模块名:ohos.nfc.tag
类名:tag
方法名 or 属性名:getMifareClassicTag||@ohos.nfc.tag.d.ts| -|删除|模块名:ohos.nfc.tag
类名:tag
方法名 or 属性名:getMifareUltralightTag||@ohos.nfc.tag.d.ts| -|删除|模块名:ohos.nfc.tag
类名:tag
方法名 or 属性名:getNdefFormatableTag||@ohos.nfc.tag.d.ts| -|删除|模块名:ohos.rpc
类名:IRemoteObject
方法名 or 属性名:sendRequestAsync||@ohos.rpc.d.ts| -|删除|模块名:ohos.rpc
类名:RemoteObject
方法名 or 属性名:onRemoteRequestEx||@ohos.rpc.d.ts| -|删除|模块名:ohos.rpc
类名:RemoteObject
方法名 or 属性名:sendRequestAsync||@ohos.rpc.d.ts| -|删除|模块名:ohos.rpc
类名:RemoteProxy
方法名 or 属性名:sendRequestAsync||@ohos.rpc.d.ts| -|删除|模块名:ohos.wifi
类名:wifi
方法名 or 属性名:getScanInfosSync||@ohos.wifi.d.ts| -|删除|模块名:ohos.wifi
类名:wifi
方法名 or 属性名:addCandidateConfig||@ohos.wifi.d.ts| -|删除|模块名:ohos.wifi
类名:wifi
方法名 or 属性名:addCandidateConfig||@ohos.wifi.d.ts| -|删除|模块名:ohos.wifi
类名:wifi
方法名 or 属性名:removeCandidateConfig||@ohos.wifi.d.ts| -|删除|模块名:ohos.wifi
类名:wifi
方法名 or 属性名:removeCandidateConfig||@ohos.wifi.d.ts| -|删除|模块名:ohos.wifi
类名:wifi
方法名 or 属性名:getCandidateConfigs||@ohos.wifi.d.ts| -|删除|模块名:ohos.wifi
类名:wifi
方法名 or 属性名:connectToCandidateConfig||@ohos.wifi.d.ts| -|删除|模块名:ohos.wifi
类名:wifi
方法名 or 属性名:getP2pLocalDevice||@ohos.wifi.d.ts| -|删除|模块名:ohos.wifi
类名:wifi
方法名 or 属性名:getP2pLocalDevice||@ohos.wifi.d.ts| -|删除|模块名:ohos.wifi
类名:wifi
方法名 or 属性名:getP2pGroups||@ohos.wifi.d.ts| -|删除|模块名:ohos.wifi
类名:wifi
方法名 or 属性名:getP2pGroups||@ohos.wifi.d.ts| -|删除|模块名:ohos.wifi
类名:wifi
方法名 or 属性名:on_deviceConfigChange||@ohos.wifi.d.ts| -|删除|模块名:ohos.wifi
类名:wifi
方法名 or 属性名:off_deviceConfigChange||@ohos.wifi.d.ts| -|删除|模块名: ohos.wifi
类名: EapMethod||@ohos.wifi.d.ts| -|删除|模块名: ohos.wifi
类名: EapMethod
方法名 or 属性名:EAP_NONE||@ohos.wifi.d.ts| -|删除|模块名: ohos.wifi
类名: EapMethod
方法名 or 属性名:EAP_PEAP||@ohos.wifi.d.ts| -|删除|模块名: ohos.wifi
类名: EapMethod
方法名 or 属性名:EAP_TLS||@ohos.wifi.d.ts| -|删除|模块名: ohos.wifi
类名: EapMethod
方法名 or 属性名:EAP_TTLS||@ohos.wifi.d.ts| -|删除|模块名: ohos.wifi
类名: EapMethod
方法名 or 属性名:EAP_PWD||@ohos.wifi.d.ts| -|删除|模块名: ohos.wifi
类名: EapMethod
方法名 or 属性名:EAP_SIM||@ohos.wifi.d.ts| -|删除|模块名: ohos.wifi
类名: EapMethod
方法名 or 属性名:EAP_AKA||@ohos.wifi.d.ts| -|删除|模块名: ohos.wifi
类名: EapMethod
方法名 or 属性名:EAP_AKA_PRIME||@ohos.wifi.d.ts| -|删除|模块名: ohos.wifi
类名: EapMethod
方法名 or 属性名:EAP_UNAUTH_TLS||@ohos.wifi.d.ts| -|删除|模块名: ohos.wifi
类名: Phase2Method||@ohos.wifi.d.ts| -|删除|模块名: ohos.wifi
类名: Phase2Method
方法名 or 属性名:PHASE2_NONE||@ohos.wifi.d.ts| -|删除|模块名: ohos.wifi
类名: Phase2Method
方法名 or 属性名:PHASE2_PAP||@ohos.wifi.d.ts| -|删除|模块名: ohos.wifi
类名: Phase2Method
方法名 or 属性名:PHASE2_MSCHAP||@ohos.wifi.d.ts| -|删除|模块名: ohos.wifi
类名: Phase2Method
方法名 or 属性名:PHASE2_MSCHAPV2||@ohos.wifi.d.ts| -|删除|模块名: ohos.wifi
类名: Phase2Method
方法名 or 属性名:PHASE2_GTC||@ohos.wifi.d.ts| -|删除|模块名: ohos.wifi
类名: Phase2Method
方法名 or 属性名:PHASE2_SIM||@ohos.wifi.d.ts| -|删除|模块名: ohos.wifi
类名: Phase2Method
方法名 or 属性名:PHASE2_AKA||@ohos.wifi.d.ts| -|删除|模块名: ohos.wifi
类名: Phase2Method
方法名 or 属性名:PHASE2_AKA_PRIME||@ohos.wifi.d.ts| -|删除|模块名: ohos.wifi
类名: WifiEapConfig||@ohos.wifi.d.ts| -|删除|模块名: ohos.wifi
类名: WifiEapConfig
方法名 or 属性名:eapMethod||@ohos.wifi.d.ts| -|删除|模块名: ohos.wifi
类名: WifiEapConfig
方法名 or 属性名:phase2Method||@ohos.wifi.d.ts| -|删除|模块名: ohos.wifi
类名: WifiEapConfig
方法名 or 属性名:identity||@ohos.wifi.d.ts| -|删除|模块名: ohos.wifi
类名: WifiEapConfig
方法名 or 属性名:anonymousIdentity||@ohos.wifi.d.ts| -|删除|模块名: ohos.wifi
类名: WifiEapConfig
方法名 or 属性名:password||@ohos.wifi.d.ts| -|删除|模块名: ohos.wifi
类名: WifiEapConfig
方法名 or 属性名:caCertAliases||@ohos.wifi.d.ts| -|删除|模块名: ohos.wifi
类名: WifiEapConfig
方法名 or 属性名:caPath||@ohos.wifi.d.ts| -|删除|模块名: ohos.wifi
类名: WifiEapConfig
方法名 or 属性名:clientCertAliases||@ohos.wifi.d.ts| -|删除|模块名: ohos.wifi
类名: WifiEapConfig
方法名 or 属性名:altSubjectMatch||@ohos.wifi.d.ts| -|删除|模块名: ohos.wifi
类名: WifiEapConfig
方法名 or 属性名:domainSuffixMatch||@ohos.wifi.d.ts| -|删除|模块名: ohos.wifi
类名: WifiEapConfig
方法名 or 属性名:realm||@ohos.wifi.d.ts| -|删除|模块名: ohos.wifi
类名: WifiEapConfig
方法名 or 属性名:plmn||@ohos.wifi.d.ts| -|删除|模块名: ohos.wifi
类名: WifiEapConfig
方法名 or 属性名:eapSubId||@ohos.wifi.d.ts| -|删除|模块名:ohos.wifi
类名:WifiDeviceConfig
方法名 or 属性名:eapConfig||@ohos.wifi.d.ts| -|删除|模块名: ohos.wifi
类名: WifiInfoElem||@ohos.wifi.d.ts| -|删除|模块名: ohos.wifi
类名: WifiInfoElem
方法名 or 属性名:eid||@ohos.wifi.d.ts| -|删除|模块名: ohos.wifi
类名: WifiInfoElem
方法名 or 属性名:content||@ohos.wifi.d.ts| -|删除|模块名: ohos.wifi
类名: WifiChannelWidth||@ohos.wifi.d.ts| -|删除|模块名: ohos.wifi
类名: WifiChannelWidth
方法名 or 属性名:WIDTH_20MHZ||@ohos.wifi.d.ts| -|删除|模块名: ohos.wifi
类名: WifiChannelWidth
方法名 or 属性名:WIDTH_40MHZ||@ohos.wifi.d.ts| -|删除|模块名: ohos.wifi
类名: WifiChannelWidth
方法名 or 属性名:WIDTH_80MHZ||@ohos.wifi.d.ts| -|删除|模块名: ohos.wifi
类名: WifiChannelWidth
方法名 or 属性名:WIDTH_160MHZ||@ohos.wifi.d.ts| -|删除|模块名: ohos.wifi
类名: WifiChannelWidth
方法名 or 属性名:WIDTH_80MHZ_PLUS||@ohos.wifi.d.ts| -|删除|模块名: ohos.wifi
类名: WifiChannelWidth
方法名 or 属性名:WIDTH_INVALID||@ohos.wifi.d.ts| -|删除|模块名:ohos.wifi
类名:WifiScanInfo
方法名 or 属性名:centerFrequency0||@ohos.wifi.d.ts| -|删除|模块名:ohos.wifi
类名:WifiScanInfo
方法名 or 属性名:centerFrequency1||@ohos.wifi.d.ts| -|删除|模块名:ohos.wifi
类名:WifiScanInfo
方法名 or 属性名:infoElems||@ohos.wifi.d.ts| -|删除|模块名:ohos.wifi
类名:WifiSecurityType
方法名 or 属性名:WIFI_SEC_TYPE_EAP||@ohos.wifi.d.ts| -|删除|模块名:ohos.wifi
类名:WifiSecurityType
方法名 or 属性名:WIFI_SEC_TYPE_EAP_SUITE_B||@ohos.wifi.d.ts| -|删除|模块名:ohos.wifi
类名:WifiSecurityType
方法名 or 属性名:WIFI_SEC_TYPE_OWE||@ohos.wifi.d.ts| -|删除|模块名:ohos.wifi
类名:WifiSecurityType
方法名 or 属性名:WIFI_SEC_TYPE_WAPI_CERT||@ohos.wifi.d.ts| -|删除|模块名:ohos.wifi
类名:WifiSecurityType
方法名 or 属性名:WIFI_SEC_TYPE_WAPI_PSK||@ohos.wifi.d.ts| -|删除|模块名:ohos.wifi
类名:WifiLinkedInfo
方法名 or 属性名:macType||@ohos.wifi.d.ts| -|删除|模块名: nfctech
类名: NdefRecord||nfctech.d.ts| -|删除|模块名: nfctech
类名: NdefRecord
方法名 or 属性名:tnf||nfctech.d.ts| -|删除|模块名: nfctech
类名: NdefRecord
方法名 or 属性名:rtdType||nfctech.d.ts| -|删除|模块名: nfctech
类名: NdefRecord
方法名 or 属性名:id||nfctech.d.ts| -|删除|模块名: nfctech
类名: NdefRecord
方法名 or 属性名:payload||nfctech.d.ts| -|删除|模块名: nfctech
类名: TnfType||nfctech.d.ts| -|删除|模块名: nfctech
类名: TnfType
方法名 or 属性名:TNF_EMPTY||nfctech.d.ts| -|删除|模块名: nfctech
类名: TnfType
方法名 or 属性名:TNF_WELL_KNOWN||nfctech.d.ts| -|删除|模块名: nfctech
类名: TnfType
方法名 or 属性名:TNF_MEDIA||nfctech.d.ts| -|删除|模块名: nfctech
类名: TnfType
方法名 or 属性名:TNF_ABSOLUTE_URI||nfctech.d.ts| -|删除|模块名: nfctech
类名: TnfType
方法名 or 属性名:TNF_EXT_APP||nfctech.d.ts| -|删除|模块名: nfctech
类名: TnfType
方法名 or 属性名:TNF_UNKNOWN||nfctech.d.ts| -|删除|模块名: nfctech
类名: TnfType
方法名 or 属性名:TNF_UNCHANGED||nfctech.d.ts| -|删除|模块名: nfctech
类名: RtdType||nfctech.d.ts| -|删除|模块名: nfctech
类名: RtdType
方法名 or 属性名:RTD_TEXT||nfctech.d.ts| -|删除|模块名: nfctech
类名: RtdType
方法名 or 属性名:RTD_URI||nfctech.d.ts| -|删除|模块名:nfctech
类名:NdefMessage
方法名 or 属性名:messageToString||nfctech.d.ts| -|删除|模块名: nfctech
类名: NfcForumType||nfctech.d.ts| -|删除|模块名: nfctech
类名: NfcForumType
方法名 or 属性名:NFC_FORUM_TYPE_1||nfctech.d.ts| -|删除|模块名: nfctech
类名: NfcForumType
方法名 or 属性名:NFC_FORUM_TYPE_2||nfctech.d.ts| -|删除|模块名: nfctech
类名: NfcForumType
方法名 or 属性名:NFC_FORUM_TYPE_3||nfctech.d.ts| -|删除|模块名: nfctech
类名: NfcForumType
方法名 or 属性名:NFC_FORUM_TYPE_4||nfctech.d.ts| -|删除|模块名: nfctech
类名: NfcForumType
方法名 or 属性名:MIFARE_CLASSIC||nfctech.d.ts| -|删除|模块名: nfctech
类名: MifareClassicType||nfctech.d.ts| -|删除|模块名: nfctech
类名: MifareClassicType
方法名 or 属性名:TYPE_UNKNOWN||nfctech.d.ts| -|删除|模块名: nfctech
类名: MifareClassicType
方法名 or 属性名:TYPE_CLASSIC||nfctech.d.ts| -|删除|模块名: nfctech
类名: MifareClassicType
方法名 or 属性名:TYPE_PLUS||nfctech.d.ts| -|删除|模块名: nfctech
类名: MifareClassicType
方法名 or 属性名:TYPE_PRO||nfctech.d.ts| -|删除|模块名: nfctech
类名: MifareTagSize||nfctech.d.ts| -|删除|模块名: nfctech
类名: MifareTagSize
方法名 or 属性名:MC_SIZE_MINI||nfctech.d.ts| -|删除|模块名: nfctech
类名: MifareTagSize
方法名 or 属性名:MC_SIZE_1K||nfctech.d.ts| -|删除|模块名: nfctech
类名: MifareTagSize
方法名 or 属性名:MC_SIZE_2K||nfctech.d.ts| -|删除|模块名: nfctech
类名: MifareTagSize
方法名 or 属性名:MC_SIZE_4K||nfctech.d.ts| -|删除|模块名: nfctech
类名: MifareUltralightType||nfctech.d.ts| -|删除|模块名: nfctech
类名: MifareUltralightType
方法名 or 属性名:TYPE_UNKOWN||nfctech.d.ts| -|删除|模块名: nfctech
类名: MifareUltralightType
方法名 or 属性名:TYPE_ULTRALIGHT||nfctech.d.ts| -|删除|模块名: nfctech
类名: MifareUltralightType
方法名 or 属性名:TYPE_ULTRALIGHT_C||nfctech.d.ts| -|删除|模块名:nfctech
类名:MifareUltralightTag
方法名 or 属性名:writeSinglePages||nfctech.d.ts| -|删除|模块名:nfctech
类名:MifareUltralightTag
方法名 or 属性名:writeSinglePages||nfctech.d.ts| +|新增|NA|模块名: ohos.net.connection
类名: connection
方法名 or 属性名: getDefaultNetSync|@ohos.net.connection.d.ts| +|新增|NA|模块名: ohos.net.connection
类名: NetHandle
方法名 or 属性名: bindSocket|@ohos.net.connection.d.ts| +|新增|NA|模块名: ohos.net.connection
类名: NetHandle
方法名 or 属性名: bindSocket|@ohos.net.connection.d.ts| +|新增|NA|模块名: ohos.net.ethernet
类名: ethernet|@ohos.net.ethernet.d.ts| +|新增|NA|模块名: ohos.net.ethernet
类名: ethernet
方法名 or 属性名: getIfaceConfig|@ohos.net.ethernet.d.ts| +|新增|NA|模块名: ohos.net.ethernet
类名: ethernet
方法名 or 属性名: getIfaceConfig|@ohos.net.ethernet.d.ts| +|新增|NA|模块名: ohos.net.ethernet
类名: ethernet
方法名 or 属性名: setIfaceConfig|@ohos.net.ethernet.d.ts| +|新增|NA|模块名: ohos.net.ethernet
类名: ethernet
方法名 or 属性名: setIfaceConfig|@ohos.net.ethernet.d.ts| +|新增|NA|模块名: ohos.net.ethernet
类名: ethernet
方法名 or 属性名: isIfaceActive|@ohos.net.ethernet.d.ts| +|新增|NA|模块名: ohos.net.ethernet
类名: ethernet
方法名 or 属性名: isIfaceActive|@ohos.net.ethernet.d.ts| +|新增|NA|模块名: ohos.net.ethernet
类名: ethernet
方法名 or 属性名: getAllActiveIfaces|@ohos.net.ethernet.d.ts| +|新增|NA|模块名: ohos.net.ethernet
类名: ethernet
方法名 or 属性名: getAllActiveIfaces|@ohos.net.ethernet.d.ts| +|新增|NA|模块名: ohos.net.ethernet
类名: InterfaceConfiguration|@ohos.net.ethernet.d.ts| +|新增|NA|模块名: ohos.net.ethernet
类名: InterfaceConfiguration
方法名 or 属性名: mode|@ohos.net.ethernet.d.ts| +|新增|NA|模块名: ohos.net.ethernet
类名: InterfaceConfiguration
方法名 or 属性名: ipAddr|@ohos.net.ethernet.d.ts| +|新增|NA|模块名: ohos.net.ethernet
类名: InterfaceConfiguration
方法名 or 属性名: route|@ohos.net.ethernet.d.ts| +|新增|NA|模块名: ohos.net.ethernet
类名: InterfaceConfiguration
方法名 or 属性名: gateway|@ohos.net.ethernet.d.ts| +|新增|NA|模块名: ohos.net.ethernet
类名: InterfaceConfiguration
方法名 or 属性名: netMask|@ohos.net.ethernet.d.ts| +|新增|NA|模块名: ohos.net.ethernet
类名: InterfaceConfiguration
方法名 or 属性名: dnsServers|@ohos.net.ethernet.d.ts| +|新增|NA|模块名: ohos.net.ethernet
类名: IPSetMode|@ohos.net.ethernet.d.ts| +|新增|NA|模块名: ohos.net.ethernet
类名: IPSetMode
方法名 or 属性名: STATIC|@ohos.net.ethernet.d.ts| +|新增|NA|模块名: ohos.net.ethernet
类名: IPSetMode
方法名 or 属性名: DHCP|@ohos.net.ethernet.d.ts| +|新增|NA|模块名: ohos.net.http
类名: HttpRequestOptions
方法名 or 属性名: expectDataType|@ohos.net.http.d.ts| +|新增|NA|模块名: ohos.net.http
类名: HttpRequestOptions
方法名 or 属性名: usingCache|@ohos.net.http.d.ts| +|新增|NA|模块名: ohos.net.http
类名: HttpRequestOptions
方法名 or 属性名: priority|@ohos.net.http.d.ts| +|新增|NA|模块名: ohos.net.http
类名: HttpRequestOptions
方法名 or 属性名: usingProtocol|@ohos.net.http.d.ts| +|新增|NA|模块名: ohos.net.http
类名: HttpProtocol|@ohos.net.http.d.ts| +|新增|NA|模块名: ohos.net.http
类名: HttpProtocol
方法名 or 属性名: HTTP1_1|@ohos.net.http.d.ts| +|新增|NA|模块名: ohos.net.http
类名: HttpProtocol
方法名 or 属性名: HTTP2|@ohos.net.http.d.ts| +|新增|NA|模块名: ohos.net.http
类名: HttpDataType|@ohos.net.http.d.ts| +|新增|NA|模块名: ohos.net.http
类名: HttpDataType
方法名 or 属性名: STRING|@ohos.net.http.d.ts| +|新增|NA|模块名: ohos.net.http
类名: HttpDataType
方法名 or 属性名: OBJECT|@ohos.net.http.d.ts| +|新增|NA|模块名: ohos.net.http
类名: HttpDataType
方法名 or 属性名: ARRAY_BUFFER|@ohos.net.http.d.ts| +|新增|NA|模块名: ohos.net.http
类名: HttpResponse
方法名 or 属性名: resultType|@ohos.net.http.d.ts| +|新增|NA|模块名: ohos.net.http
类名: http
方法名 or 属性名: createHttpResponseCache|@ohos.net.http.d.ts| +|新增|NA|模块名: ohos.net.http
类名: HttpResponseCache|@ohos.net.http.d.ts| +|新增|NA|模块名: ohos.net.http
类名: HttpResponseCache
方法名 or 属性名: flush|@ohos.net.http.d.ts| +|新增|NA|模块名: ohos.net.http
类名: HttpResponseCache
方法名 or 属性名: flush|@ohos.net.http.d.ts| +|新增|NA|模块名: ohos.net.http
类名: HttpResponseCache
方法名 or 属性名: delete|@ohos.net.http.d.ts| +|新增|NA|模块名: ohos.net.http
类名: HttpResponseCache
方法名 or 属性名: delete|@ohos.net.http.d.ts| +|新增|NA|模块名: ohos.net.socket
类名: socket
方法名 or 属性名:constructTLSSocketInstance|@ohos.net.socket.d.ts| +|新增|NA|方法名 or 属性名:socketLinger
函数:socketLinger?: {on: boolean, linger: number};|@ohos.net.socket.d.ts| +|新增|NA|模块名: ohos.net.socket
类名: TLSSocket|@ohos.net.socket.d.ts| +|新增|NA|模块名: ohos.net.socket
类名: TLSSocket
方法名 or 属性名:getCertificate|@ohos.net.socket.d.ts| +|新增|NA|模块名: ohos.net.socket
类名: TLSSocket
方法名 or 属性名:getCertificate|@ohos.net.socket.d.ts| +|新增|NA|模块名: ohos.net.socket
类名: TLSSocket
方法名 or 属性名:getRemoteCertificate|@ohos.net.socket.d.ts| +|新增|NA|模块名: ohos.net.socket
类名: TLSSocket
方法名 or 属性名:getRemoteCertificate|@ohos.net.socket.d.ts| +|新增|NA|模块名: ohos.net.socket
类名: TLSSocket
方法名 or 属性名:getProtocol|@ohos.net.socket.d.ts| +|新增|NA|模块名: ohos.net.socket
类名: TLSSocket
方法名 or 属性名:getProtocol|@ohos.net.socket.d.ts| +|新增|NA|模块名: ohos.net.socket
类名: TLSSocket
方法名 or 属性名:getCipherSuite|@ohos.net.socket.d.ts| +|新增|NA|模块名: ohos.net.socket
类名: TLSSocket
方法名 or 属性名:getCipherSuite|@ohos.net.socket.d.ts| +|新增|NA|模块名: ohos.net.socket
类名: TLSSocket
方法名 or 属性名:getSignatureAlgorithms|@ohos.net.socket.d.ts| +|新增|NA|模块名: ohos.net.socket
类名: TLSSocket
方法名 or 属性名:getSignatureAlgorithms|@ohos.net.socket.d.ts| +|新增|NA|模块名: ohos.net.socket
类名: TLSSocket
方法名 or 属性名:connect|@ohos.net.socket.d.ts| +|新增|NA|模块名: ohos.net.socket
类名: TLSSocket
方法名 or 属性名:connect|@ohos.net.socket.d.ts| +|新增|NA|模块名: ohos.net.socket
类名: TLSSocket
方法名 or 属性名:send|@ohos.net.socket.d.ts| +|新增|NA|模块名: ohos.net.socket
类名: TLSSocket
方法名 or 属性名:send|@ohos.net.socket.d.ts| +|新增|NA|模块名: ohos.net.socket
类名: TLSSecureOptions|@ohos.net.socket.d.ts| +|新增|NA|模块名: ohos.net.socket
类名: TLSSecureOptions
方法名 or 属性名:ca|@ohos.net.socket.d.ts| +|新增|NA|模块名: ohos.net.socket
类名: TLSSecureOptions
方法名 or 属性名:cert|@ohos.net.socket.d.ts| +|新增|NA|模块名: ohos.net.socket
类名: TLSSecureOptions
方法名 or 属性名:key|@ohos.net.socket.d.ts| +|新增|NA|模块名: ohos.net.socket
类名: TLSSecureOptions
方法名 or 属性名:passwd|@ohos.net.socket.d.ts| +|新增|NA|模块名: ohos.net.socket
类名: TLSSecureOptions
方法名 or 属性名:protocols|@ohos.net.socket.d.ts| +|新增|NA|模块名: ohos.net.socket
类名: TLSSecureOptions
方法名 or 属性名:useRemoteCipherPrefer|@ohos.net.socket.d.ts| +|新增|NA|模块名: ohos.net.socket
类名: TLSSecureOptions
方法名 or 属性名:signatureAlgorithms|@ohos.net.socket.d.ts| +|新增|NA|模块名: ohos.net.socket
类名: TLSSecureOptions
方法名 or 属性名:cipherSuite|@ohos.net.socket.d.ts| +|新增|NA|模块名: ohos.net.socket
类名: TLSConnectOptions|@ohos.net.socket.d.ts| +|新增|NA|模块名: ohos.net.socket
类名: TLSConnectOptions
方法名 or 属性名:address|@ohos.net.socket.d.ts| +|新增|NA|模块名: ohos.net.socket
类名: TLSConnectOptions
方法名 or 属性名:secureOptions|@ohos.net.socket.d.ts| +|新增|NA|模块名: ohos.net.socket
类名: TLSConnectOptions
方法名 or 属性名:ALPNProtocols|@ohos.net.socket.d.ts| +|新增|NA|模块名: ohos.net.socket
类名: Protocol|@ohos.net.socket.d.ts| +|新增|NA|模块名: ohos.net.socket
类名: Protocol
方法名 or 属性名:TLSv12|@ohos.net.socket.d.ts| +|新增|NA|模块名: ohos.net.socket
类名: Protocol
方法名 or 属性名:TLSv13|@ohos.net.socket.d.ts| +|新增|NA|模块名: ohos.nfc.tag
类名: TnfType|@ohos.nfc.tag.d.ts| +|新增|NA|模块名: ohos.nfc.tag
类名: TnfType
方法名 or 属性名:TNF_EMPTY|@ohos.nfc.tag.d.ts| +|新增|NA|模块名: ohos.nfc.tag
类名: TnfType
方法名 or 属性名:TNF_WELL_KNOWN|@ohos.nfc.tag.d.ts| +|新增|NA|模块名: ohos.nfc.tag
类名: TnfType
方法名 or 属性名:TNF_MEDIA|@ohos.nfc.tag.d.ts| +|新增|NA|模块名: ohos.nfc.tag
类名: TnfType
方法名 or 属性名:TNF_ABSOLUTE_URI|@ohos.nfc.tag.d.ts| +|新增|NA|模块名: ohos.nfc.tag
类名: TnfType
方法名 or 属性名:TNF_EXT_APP|@ohos.nfc.tag.d.ts| +|新增|NA|模块名: ohos.nfc.tag
类名: TnfType
方法名 or 属性名:TNF_UNKNOWN|@ohos.nfc.tag.d.ts| +|新增|NA|模块名: ohos.nfc.tag
类名: TnfType
方法名 or 属性名:TNF_UNCHANGED|@ohos.nfc.tag.d.ts| +|新增|NA|模块名: ohos.nfc.tag
类名: NfcForumType|@ohos.nfc.tag.d.ts| +|新增|NA|模块名: ohos.nfc.tag
类名: NfcForumType
方法名 or 属性名:NFC_FORUM_TYPE_1|@ohos.nfc.tag.d.ts| +|新增|NA|模块名: ohos.nfc.tag
类名: NfcForumType
方法名 or 属性名:NFC_FORUM_TYPE_2|@ohos.nfc.tag.d.ts| +|新增|NA|模块名: ohos.nfc.tag
类名: NfcForumType
方法名 or 属性名:NFC_FORUM_TYPE_3|@ohos.nfc.tag.d.ts| +|新增|NA|模块名: ohos.nfc.tag
类名: NfcForumType
方法名 or 属性名:NFC_FORUM_TYPE_4|@ohos.nfc.tag.d.ts| +|新增|NA|模块名: ohos.nfc.tag
类名: NfcForumType
方法名 or 属性名:MIFARE_CLASSIC|@ohos.nfc.tag.d.ts| +|新增|NA|模块名: ohos.nfc.tag
类名: MifareClassicType|@ohos.nfc.tag.d.ts| +|新增|NA|模块名: ohos.nfc.tag
类名: MifareClassicType
方法名 or 属性名:TYPE_UNKNOWN|@ohos.nfc.tag.d.ts| +|新增|NA|模块名: ohos.nfc.tag
类名: MifareClassicType
方法名 or 属性名:TYPE_CLASSIC|@ohos.nfc.tag.d.ts| +|新增|NA|模块名: ohos.nfc.tag
类名: MifareClassicType
方法名 or 属性名:TYPE_PLUS|@ohos.nfc.tag.d.ts| +|新增|NA|模块名: ohos.nfc.tag
类名: MifareClassicType
方法名 or 属性名:TYPE_PRO|@ohos.nfc.tag.d.ts| +|新增|NA|模块名: ohos.nfc.tag
类名: MifareClassicSize|@ohos.nfc.tag.d.ts| +|新增|NA|模块名: ohos.nfc.tag
类名: MifareClassicSize
方法名 or 属性名:MC_SIZE_MINI|@ohos.nfc.tag.d.ts| +|新增|NA|模块名: ohos.nfc.tag
类名: MifareClassicSize
方法名 or 属性名:MC_SIZE_1K|@ohos.nfc.tag.d.ts| +|新增|NA|模块名: ohos.nfc.tag
类名: MifareClassicSize
方法名 or 属性名:MC_SIZE_2K|@ohos.nfc.tag.d.ts| +|新增|NA|模块名: ohos.nfc.tag
类名: MifareClassicSize
方法名 or 属性名:MC_SIZE_4K|@ohos.nfc.tag.d.ts| +|新增|NA|模块名: ohos.nfc.tag
类名: MifareUltralightType|@ohos.nfc.tag.d.ts| +|新增|NA|模块名: ohos.nfc.tag
类名: MifareUltralightType
方法名 or 属性名:TYPE_UNKNOWN|@ohos.nfc.tag.d.ts| +|新增|NA|模块名: ohos.nfc.tag
类名: MifareUltralightType
方法名 or 属性名:TYPE_ULTRALIGHT|@ohos.nfc.tag.d.ts| +|新增|NA|模块名: ohos.nfc.tag
类名: MifareUltralightType
方法名 or 属性名:TYPE_ULTRALIGHT_C|@ohos.nfc.tag.d.ts| +|新增|NA|方法名 or 属性名:uid
函数:uid: number[];|@ohos.nfc.tag.d.ts| +|新增|NA|模块名: ohos.nfc.tag
类名: NdefRecord|@ohos.nfc.tag.d.ts| +|新增|NA|模块名: ohos.nfc.tag
类名: NdefRecord
方法名 or 属性名:tnf|@ohos.nfc.tag.d.ts| +|新增|NA|模块名: ohos.nfc.tag
类名: NdefRecord
方法名 or 属性名:rtdType|@ohos.nfc.tag.d.ts| +|新增|NA|模块名: ohos.nfc.tag
类名: NdefRecord
方法名 or 属性名:id|@ohos.nfc.tag.d.ts| +|新增|NA|模块名: ohos.nfc.tag
类名: NdefRecord
方法名 or 属性名:payload|@ohos.nfc.tag.d.ts| +|新增|NA|模块名: ohos.rpc
类名: ErrorCode|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: ErrorCode
方法名 or 属性名:CHECK_PARAM_ERROR|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: ErrorCode
方法名 or 属性名:OS_MMAP_ERROR|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: ErrorCode
方法名 or 属性名:OS_IOCTL_ERROR|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: ErrorCode
方法名 or 属性名:WRITE_TO_ASHMEM_ERROR|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: ErrorCode
方法名 or 属性名:READ_FROM_ASHMEM_ERROR|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: ErrorCode
方法名 or 属性名:ONLY_PROXY_OBJECT_PERMITTED_ERROR|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: ErrorCode
方法名 or 属性名:ONLY_REMOTE_OBJECT_PERMITTED_ERROR|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: ErrorCode
方法名 or 属性名:COMMUNICATION_ERROR|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: ErrorCode
方法名 or 属性名:PROXY_OR_REMOTE_OBJECT_INVALID_ERROR|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: ErrorCode
方法名 or 属性名:WRITE_DATA_TO_MESSAGE_SEQUENCE_ERROR|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: ErrorCode
方法名 or 属性名:READ_DATA_FROM_MESSAGE_SEQUENCE_ERROR|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: ErrorCode
方法名 or 属性名:PARCEL_MEMORY_ALLOC_ERROR|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: ErrorCode
方法名 or 属性名:CALL_JS_METHOD_ERROR|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: ErrorCode
方法名 or 属性名:OS_DUP_ERROR|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:create|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:reclaim|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:writeRemoteObject|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readRemoteObject|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:writeInterfaceToken|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readInterfaceToken|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:getSize|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:getCapacity|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:setSize|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:setCapacity|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:getWritableBytes|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:getReadableBytes|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:getReadPosition|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:getWritePosition|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:rewindRead|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:rewindWrite|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:writeNoException|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readException|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:writeByte|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:writeShort|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:writeInt|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:writeLong|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:writeFloat|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:writeDouble|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:writeBoolean|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:writeChar|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:writeString|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:writeParcelable|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:writeByteArray|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:writeShortArray|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:writeIntArray|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:writeLongArray|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:writeFloatArray|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:writeDoubleArray|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:writeBooleanArray|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:writeCharArray|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:writeStringArray|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:writeParcelableArray|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:writeRemoteObjectArray|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readByte|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readShort|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readInt|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readLong|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readFloat|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readDouble|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readBoolean|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readChar|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readString|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readParcelable|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readByteArray|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readByteArray|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readShortArray|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readShortArray|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readIntArray|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readIntArray|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readLongArray|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readLongArray|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readFloatArray|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readFloatArray|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readDoubleArray|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readDoubleArray|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readBooleanArray|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readBooleanArray|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readCharArray|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readCharArray|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readStringArray|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readStringArray|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readParcelableArray|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readRemoteObjectArray|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readRemoteObjectArray|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:closeFileDescriptor|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:dupFileDescriptor|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:containFileDescriptors|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:writeFileDescriptor|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readFileDescriptor|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:writeAshmem|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readAshmem|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:getRawDataCapacity|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:writeRawData|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readRawData|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: Parcelable|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: Parcelable
方法名 or 属性名:marshalling|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: Parcelable
方法名 or 属性名:unmarshalling|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: RequestResult|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: RequestResult
方法名 or 属性名:errCode|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: RequestResult
方法名 or 属性名:code|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: RequestResult
方法名 or 属性名:data|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: RequestResult
方法名 or 属性名:reply|@ohos.rpc.d.ts| +|新增|NA|方法名 or 属性名:TF_SYNC
函数:TF_SYNC: number;|@ohos.rpc.d.ts| +|新增|NA|方法名 or 属性名:TF_ASYNC
函数:TF_ASYNC: number;|@ohos.rpc.d.ts| +|新增|NA|方法名 or 属性名:TF_ACCEPT_FDS
函数:TF_ACCEPT_FDS: number;|@ohos.rpc.d.ts| +|新增|NA|方法名 or 属性名:TF_WAIT_TIME
函数:TF_WAIT_TIME: number;|@ohos.rpc.d.ts| +|新增|NA|方法名 or 属性名:ructor(syncFlags?
函数:constructor(syncFlags?: number, waitTime?: number);|@ohos.rpc.d.ts| +|新增|NA|方法名 or 属性名:PING_TRANSACTION
函数:PING_TRANSACTION: number;|@ohos.rpc.d.ts| +|新增|NA|方法名 or 属性名:DUMP_TRANSACTION
函数:DUMP_TRANSACTION: number;|@ohos.rpc.d.ts| +|新增|NA|方法名 or 属性名:INTERFACE_TRANSACTION
函数:INTERFACE_TRANSACTION: number;|@ohos.rpc.d.ts| +|新增|NA|方法名 or 属性名:MIN_TRANSACTION_ID
函数:MIN_TRANSACTION_ID: number;|@ohos.rpc.d.ts| +|新增|NA|方法名 or 属性名:MAX_TRANSACTION_ID
函数:MAX_TRANSACTION_ID: number;|@ohos.rpc.d.ts| +|新增|NA|方法名 or 属性名:PROT_EXEC
函数:PROT_EXEC: number;|@ohos.rpc.d.ts| +|新增|NA|方法名 or 属性名:PROT_NONE
函数:PROT_NONE: number;|@ohos.rpc.d.ts| +|新增|NA|方法名 or 属性名:PROT_READ
函数:PROT_READ: number;|@ohos.rpc.d.ts| +|新增|NA|方法名 or 属性名:PROT_WRITE
函数:PROT_WRITE: number;|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: enableWifi|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: disableWifi|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: isWifiActive|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: scan|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: getScanResults|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: getScanResults|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: getScanResultsSync|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: addDeviceConfig|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: addDeviceConfig|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: addCandidateConfig|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: addCandidateConfig|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: removeCandidateConfig|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: removeCandidateConfig|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: getCandidateConfigs|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: connectToCandidateConfig|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: connectToNetwork|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: connectToDevice|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: disconnect|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: getSignalLevel|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: getLinkedInfo|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: getLinkedInfo|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: isConnected|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: getSupportedFeatures|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: isFeatureSupported|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: getDeviceMacAddress|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: getIpInfo|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: getCountryCode|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: reassociate|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: reconnect|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: getDeviceConfigs|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: updateNetwork|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: disableNetwork|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: removeAllNetwork|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: removeDevice|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: enableHotspot|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: disableHotspot|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: isHotspotDualBandSupported|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: isHotspotActive|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: setHotspotConfig|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: getHotspotConfig|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: getStations|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: getP2pLinkedInfo|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: getP2pLinkedInfo|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: getCurrentGroup|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: getCurrentGroup|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: getP2pPeerDevices|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: getP2pPeerDevices|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: getP2pLocalDevice|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: getP2pLocalDevice|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: createGroup|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: removeGroup|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: p2pConnect|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: p2pDisconnect|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: startDiscoverDevices|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: stopDiscoverDevices|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: deletePersistentGroup|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: getP2pGroups|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: getP2pGroups|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: setDeviceName|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: on_wifiStateChange|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: off_wifiStateChange|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: on_wifiConnectionChange|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: off_wifiConnectionChange|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: on_wifiScanStateChange|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: off_wifiScanStateChange|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: on_wifiRssiChange|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: off_wifiRssiChange|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: on_streamChange|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: off_streamChange|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: on_deviceConfigChange|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: off_deviceConfigChange|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: on_hotspotStateChange|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: off_hotspotStateChange|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: on_hotspotStaJoin|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: off_hotspotStaJoin|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: on_hotspotStaLeave|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: off_hotspotStaLeave|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: on_p2pStateChange|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: off_p2pStateChange|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: on_p2pConnectionChange|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: off_p2pConnectionChange|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: on_p2pDeviceChange|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: off_p2pDeviceChange|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: on_p2pPeerDeviceChange|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: off_p2pPeerDeviceChange|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: on_p2pPersistentGroupChange|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: off_p2pPersistentGroupChange|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: on_p2pDiscoveryChange|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: off_p2pDiscoveryChange|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: EapMethod|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: EapMethod
方法名 or 属性名: EAP_NONE|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: EapMethod
方法名 or 属性名: EAP_PEAP|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: EapMethod
方法名 or 属性名: EAP_TLS|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: EapMethod
方法名 or 属性名: EAP_TTLS|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: EapMethod
方法名 or 属性名: EAP_PWD|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: EapMethod
方法名 or 属性名: EAP_SIM|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: EapMethod
方法名 or 属性名: EAP_AKA|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: EapMethod
方法名 or 属性名: EAP_AKA_PRIME|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: EapMethod
方法名 or 属性名: EAP_UNAUTH_TLS|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: Phase2Method|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: Phase2Method
方法名 or 属性名: PHASE2_NONE|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: Phase2Method
方法名 or 属性名: PHASE2_PAP|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: Phase2Method
方法名 or 属性名: PHASE2_MSCHAP|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: Phase2Method
方法名 or 属性名: PHASE2_MSCHAPV2|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: Phase2Method
方法名 or 属性名: PHASE2_GTC|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: Phase2Method
方法名 or 属性名: PHASE2_SIM|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: Phase2Method
方法名 or 属性名: PHASE2_AKA|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: Phase2Method
方法名 or 属性名: PHASE2_AKA_PRIME|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiEapConfig|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiEapConfig
方法名 or 属性名: eapMethod|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiEapConfig
方法名 or 属性名: phase2Method|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiEapConfig
方法名 or 属性名: identity|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiEapConfig
方法名 or 属性名: anonymousIdentity|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiEapConfig
方法名 or 属性名: password|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiEapConfig
方法名 or 属性名: caCertAliases|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiEapConfig
方法名 or 属性名: caPath|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiEapConfig
方法名 or 属性名: clientCertAliases|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiEapConfig
方法名 or 属性名: altSubjectMatch|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiEapConfig
方法名 or 属性名: domainSuffixMatch|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiEapConfig
方法名 or 属性名: realm|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiEapConfig
方法名 or 属性名: plmn|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiEapConfig
方法名 or 属性名: eapSubId|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiDeviceConfig|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiDeviceConfig
方法名 or 属性名: ssid|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiDeviceConfig
方法名 or 属性名: bssid|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiDeviceConfig
方法名 or 属性名: preSharedKey|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiDeviceConfig
方法名 or 属性名: isHiddenSsid|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiDeviceConfig
方法名 or 属性名: securityType|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiDeviceConfig
方法名 or 属性名: creatorUid|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiDeviceConfig
方法名 or 属性名: disableReason|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiDeviceConfig
方法名 or 属性名: netId|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiDeviceConfig
方法名 or 属性名: randomMacType|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiDeviceConfig
方法名 or 属性名: randomMacAddr|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiDeviceConfig
方法名 or 属性名: ipType|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiDeviceConfig
方法名 or 属性名: staticIp|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiDeviceConfig
方法名 or 属性名: eapConfig|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: IpConfig|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: IpConfig
方法名 or 属性名: ipAddress|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: IpConfig
方法名 or 属性名: gateway|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: IpConfig
方法名 or 属性名: prefixLength|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: IpConfig
方法名 or 属性名: dnsServers|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: IpConfig
方法名 or 属性名: domains|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiInfoElem|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiInfoElem
方法名 or 属性名: eid|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiInfoElem
方法名 or 属性名: content|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiChannelWidth|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiChannelWidth
方法名 or 属性名: WIDTH_20MHZ|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiChannelWidth
方法名 or 属性名: WIDTH_40MHZ|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiChannelWidth
方法名 or 属性名: WIDTH_80MHZ|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiChannelWidth
方法名 or 属性名: WIDTH_160MHZ|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiChannelWidth
方法名 or 属性名: WIDTH_80MHZ_PLUS|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiChannelWidth
方法名 or 属性名: WIDTH_INVALID|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiScanInfo|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiScanInfo
方法名 or 属性名: ssid|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiScanInfo
方法名 or 属性名: bssid|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiScanInfo
方法名 or 属性名: capabilities|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiScanInfo
方法名 or 属性名: securityType|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiScanInfo
方法名 or 属性名: rssi|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiScanInfo
方法名 or 属性名: band|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiScanInfo
方法名 or 属性名: frequency|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiScanInfo
方法名 or 属性名: channelWidth|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiScanInfo
方法名 or 属性名: centerFrequency0|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiScanInfo
方法名 or 属性名: centerFrequency1|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiScanInfo
方法名 or 属性名: infoElems|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiScanInfo
方法名 or 属性名: timestamp|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiSecurityType|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiSecurityType
方法名 or 属性名: WIFI_SEC_TYPE_INVALID|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiSecurityType
方法名 or 属性名: WIFI_SEC_TYPE_OPEN|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiSecurityType
方法名 or 属性名: WIFI_SEC_TYPE_WEP|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiSecurityType
方法名 or 属性名: WIFI_SEC_TYPE_PSK|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiSecurityType
方法名 or 属性名: WIFI_SEC_TYPE_SAE|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiSecurityType
方法名 or 属性名: WIFI_SEC_TYPE_EAP|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiSecurityType
方法名 or 属性名: WIFI_SEC_TYPE_EAP_SUITE_B|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiSecurityType
方法名 or 属性名: WIFI_SEC_TYPE_OWE|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiSecurityType
方法名 or 属性名: WIFI_SEC_TYPE_WAPI_CERT|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiSecurityType
方法名 or 属性名: WIFI_SEC_TYPE_WAPI_PSK|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiLinkedInfo|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiLinkedInfo
方法名 or 属性名: ssid|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiLinkedInfo
方法名 or 属性名: bssid|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiLinkedInfo
方法名 or 属性名: networkId|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiLinkedInfo
方法名 or 属性名: rssi|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiLinkedInfo
方法名 or 属性名: band|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiLinkedInfo
方法名 or 属性名: linkSpeed|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiLinkedInfo
方法名 or 属性名: frequency|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiLinkedInfo
方法名 or 属性名: isHidden|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiLinkedInfo
方法名 or 属性名: isRestricted|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiLinkedInfo
方法名 or 属性名: chload|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiLinkedInfo
方法名 or 属性名: snr|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiLinkedInfo
方法名 or 属性名: macType|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiLinkedInfo
方法名 or 属性名: macAddress|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiLinkedInfo
方法名 or 属性名: ipAddress|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiLinkedInfo
方法名 or 属性名: suppState|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiLinkedInfo
方法名 or 属性名: connState|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: IpInfo|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: IpInfo
方法名 or 属性名: ipAddress|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: IpInfo
方法名 or 属性名: gateway|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: IpInfo
方法名 or 属性名: netmask|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: IpInfo
方法名 or 属性名: primaryDns|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: IpInfo
方法名 or 属性名: secondDns|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: IpInfo
方法名 or 属性名: serverIp|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: IpInfo
方法名 or 属性名: leaseDuration|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: HotspotConfig|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: HotspotConfig
方法名 or 属性名: ssid|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: HotspotConfig
方法名 or 属性名: securityType|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: HotspotConfig
方法名 or 属性名: band|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: HotspotConfig
方法名 or 属性名: preSharedKey|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: HotspotConfig
方法名 or 属性名: maxConn|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: StationInfo|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: StationInfo
方法名 or 属性名: name|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: StationInfo
方法名 or 属性名: macAddress|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: StationInfo
方法名 or 属性名: ipAddress|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: IpType|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: IpType
方法名 or 属性名: STATIC|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: IpType
方法名 or 属性名: DHCP|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: IpType
方法名 or 属性名: UNKNOWN|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: SuppState|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: SuppState
方法名 or 属性名: DISCONNECTED|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: SuppState
方法名 or 属性名: INTERFACE_DISABLED|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: SuppState
方法名 or 属性名: INACTIVE|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: SuppState
方法名 or 属性名: SCANNING|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: SuppState
方法名 or 属性名: AUTHENTICATING|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: SuppState
方法名 or 属性名: ASSOCIATING|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: SuppState
方法名 or 属性名: ASSOCIATED|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: SuppState
方法名 or 属性名: FOUR_WAY_HANDSHAKE|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: SuppState
方法名 or 属性名: GROUP_HANDSHAKE|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: SuppState
方法名 or 属性名: COMPLETED|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: SuppState
方法名 or 属性名: UNINITIALIZED|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: SuppState
方法名 or 属性名: INVALID|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: ConnState|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: ConnState
方法名 or 属性名: SCANNING|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: ConnState
方法名 or 属性名: CONNECTING|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: ConnState
方法名 or 属性名: AUTHENTICATING|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: ConnState
方法名 or 属性名: OBTAINING_IPADDR|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: ConnState
方法名 or 属性名: CONNECTED|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: ConnState
方法名 or 属性名: DISCONNECTING|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: ConnState
方法名 or 属性名: DISCONNECTED|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: ConnState
方法名 or 属性名: UNKNOWN|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiP2pDevice|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiP2pDevice
方法名 or 属性名: deviceName|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiP2pDevice
方法名 or 属性名: deviceAddress|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiP2pDevice
方法名 or 属性名: primaryDeviceType|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiP2pDevice
方法名 or 属性名: deviceStatus|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiP2pDevice
方法名 or 属性名: groupCapabilities|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiP2PConfig|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiP2PConfig
方法名 or 属性名: deviceAddress|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiP2PConfig
方法名 or 属性名: netId|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiP2PConfig
方法名 or 属性名: passphrase|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiP2PConfig
方法名 or 属性名: groupName|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiP2PConfig
方法名 or 属性名: goBand|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiP2pGroupInfo|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiP2pGroupInfo
方法名 or 属性名: isP2pGo|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiP2pGroupInfo
方法名 or 属性名: ownerInfo|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiP2pGroupInfo
方法名 or 属性名: passphrase|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiP2pGroupInfo
方法名 or 属性名: interface|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiP2pGroupInfo
方法名 or 属性名: groupName|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiP2pGroupInfo
方法名 or 属性名: networkId|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiP2pGroupInfo
方法名 or 属性名: frequency|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiP2pGroupInfo
方法名 or 属性名: clientDevices|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiP2pGroupInfo
方法名 or 属性名: goIpAddress|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: P2pConnectState|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: P2pConnectState
方法名 or 属性名: DISCONNECTED|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: P2pConnectState
方法名 or 属性名: CONNECTED|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiP2pLinkedInfo|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiP2pLinkedInfo
方法名 or 属性名: connectState|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiP2pLinkedInfo
方法名 or 属性名: isGroupOwner|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiP2pLinkedInfo
方法名 or 属性名: groupOwnerAddr|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: P2pDeviceStatus|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: P2pDeviceStatus
方法名 or 属性名: CONNECTED|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: P2pDeviceStatus
方法名 or 属性名: INVITED|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: P2pDeviceStatus
方法名 or 属性名: FAILED|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: P2pDeviceStatus
方法名 or 属性名: AVAILABLE|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: P2pDeviceStatus
方法名 or 属性名: UNAVAILABLE|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: GroupOwnerBand|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: GroupOwnerBand
方法名 or 属性名: GO_BAND_AUTO|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: GroupOwnerBand
方法名 or 属性名: GO_BAND_2GHZ|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: GroupOwnerBand
方法名 or 属性名: GO_BAND_5GHZ|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManagerExt
类名: wifiManagerExt|@ohos.wifiManagerExt.d.ts| +|新增|NA|模块名: ohos.wifiManagerExt
类名: wifiManagerExt
方法名 or 属性名: enableHotspot|@ohos.wifiManagerExt.d.ts| +|新增|NA|模块名: ohos.wifiManagerExt
类名: wifiManagerExt
方法名 or 属性名: disableHotspot|@ohos.wifiManagerExt.d.ts| +|新增|NA|模块名: ohos.wifiManagerExt
类名: wifiManagerExt
方法名 or 属性名: getSupportedPowerMode|@ohos.wifiManagerExt.d.ts| +|新增|NA|模块名: ohos.wifiManagerExt
类名: wifiManagerExt
方法名 or 属性名: getSupportedPowerMode|@ohos.wifiManagerExt.d.ts| +|新增|NA|模块名: ohos.wifiManagerExt
类名: wifiManagerExt
方法名 or 属性名: getPowerMode|@ohos.wifiManagerExt.d.ts| +|新增|NA|模块名: ohos.wifiManagerExt
类名: wifiManagerExt
方法名 or 属性名: getPowerMode|@ohos.wifiManagerExt.d.ts| +|新增|NA|模块名: ohos.wifiManagerExt
类名: wifiManagerExt
方法名 or 属性名: setPowerMode|@ohos.wifiManagerExt.d.ts| +|新增|NA|模块名: ohos.wifiManagerExt
类名: PowerMode|@ohos.wifiManagerExt.d.ts| +|新增|NA|模块名: ohos.wifiManagerExt
类名: PowerMode
方法名 or 属性名: SLEEPING|@ohos.wifiManagerExt.d.ts| +|新增|NA|模块名: ohos.wifiManagerExt
类名: PowerMode
方法名 or 属性名: GENERAL|@ohos.wifiManagerExt.d.ts| +|新增|NA|模块名: ohos.wifiManagerExt
类名: PowerMode
方法名 or 属性名: THROUGH_WALL|@ohos.wifiManagerExt.d.ts| +|新增|NA|方法名 or 属性名:getHistoricalBytes
函数:getHistoricalBytes(): number[];|nfctech.d.ts| +|新增|NA|方法名 or 属性名:getHiLayerResponse
函数:getHiLayerResponse(): number[];|nfctech.d.ts| +|新增|NA|方法名 or 属性名:getNdefRecords
函数:getNdefRecords(): tag.NdefRecord[];|nfctech.d.ts| +|新增|NA|方法名 or 属性名:makeUriRecord
函数:makeUriRecord(uri: string): tag.NdefRecord;|nfctech.d.ts| +|新增|NA|方法名 or 属性名:makeTextRecord
函数:makeTextRecord(text: string, locale: string): tag.NdefRecord;|nfctech.d.ts| +|新增|NA|方法名 or 属性名:makeMimeRecord
函数:makeMimeRecord(mimeType: string, mimeData: number[]): tag.NdefRecord;|nfctech.d.ts| +|新增|NA|方法名 or 属性名:makeExternalRecord
函数:makeExternalRecord(domainName: string, serviceName: string, externalData: number[]): tag.NdefRecord;|nfctech.d.ts| +|新增|NA|方法名 or 属性名:createNdefMessage
函数:createNdefMessage(data: number[]): NdefMessage;|nfctech.d.ts| +|新增|NA|方法名 or 属性名:createNdefMessage
函数:createNdefMessage(ndefRecords: tag.NdefRecord[]): NdefMessage;|nfctech.d.ts| +|新增|NA|方法名 or 属性名:getNdefTagType
函数:getNdefTagType(): tag.NfcForumType;|nfctech.d.ts| +|新增|NA|方法名 or 属性名:isNdefWritable
函数:isNdefWritable(): boolean;|nfctech.d.ts| +|新增|NA|方法名 or 属性名:writeNdef
函数:writeNdef(msg: NdefMessage): Promise;|nfctech.d.ts| +|新增|NA|方法名 or 属性名:writeNdef
函数:writeNdef(msg: NdefMessage, callback: AsyncCallback): void;|nfctech.d.ts| +|新增|NA|方法名 or 属性名:canSetReadOnly
函数:canSetReadOnly(): boolean;|nfctech.d.ts| +|新增|NA|方法名 or 属性名:setReadOnly
函数:setReadOnly(): Promise;|nfctech.d.ts| +|新增|NA|方法名 or 属性名:setReadOnly
函数:setReadOnly(callback: AsyncCallback): void;|nfctech.d.ts| +|新增|NA|方法名 or 属性名:getNdefTagTypeString
函数:getNdefTagTypeString(type: tag.NfcForumType): string;|nfctech.d.ts| +|新增|NA|方法名 or 属性名:authenticateSector
函数:authenticateSector(sectorIndex: number, key: number[], isKeyA: boolean): Promise;|nfctech.d.ts| +|新增|NA|方法名 or 属性名:authenticateSector
函数:authenticateSector(sectorIndex: number, key: number[], isKeyA: boolean, callback: AsyncCallback): void;|nfctech.d.ts| +|新增|NA|方法名 or 属性名:readSingleBlock
函数:readSingleBlock(blockIndex: number): Promise;|nfctech.d.ts| +|新增|NA|方法名 or 属性名:readSingleBlock
函数:readSingleBlock(blockIndex: number, callback: AsyncCallback): void;|nfctech.d.ts| +|新增|NA|方法名 or 属性名:writeSingleBlock
函数:writeSingleBlock(blockIndex: number, data: number[]): Promise;|nfctech.d.ts| +|新增|NA|方法名 or 属性名:writeSingleBlock
函数:writeSingleBlock(blockIndex: number, data: number[], callback: AsyncCallback): void;|nfctech.d.ts| +|新增|NA|方法名 or 属性名:incrementBlock
函数:incrementBlock(blockIndex: number, value: number): Promise;|nfctech.d.ts| +|新增|NA|方法名 or 属性名:incrementBlock
函数:incrementBlock(blockIndex: number, value: number, callback: AsyncCallback): void;|nfctech.d.ts| +|新增|NA|方法名 or 属性名:decrementBlock
函数:decrementBlock(blockIndex: number, value: number): Promise;|nfctech.d.ts| +|新增|NA|方法名 or 属性名:decrementBlock
函数:decrementBlock(blockIndex: number, value: number, callback: AsyncCallback): void;|nfctech.d.ts| +|新增|NA|方法名 or 属性名:transferToBlock
函数:transferToBlock(blockIndex: number): Promise;|nfctech.d.ts| +|新增|NA|方法名 or 属性名:transferToBlock
函数:transferToBlock(blockIndex: number, callback: AsyncCallback): void;|nfctech.d.ts| +|新增|NA|方法名 or 属性名:restoreFromBlock
函数:restoreFromBlock(blockIndex: number): Promise;|nfctech.d.ts| +|新增|NA|方法名 or 属性名:restoreFromBlock
函数:restoreFromBlock(blockIndex: number, callback: AsyncCallback): void;|nfctech.d.ts| +|新增|NA|方法名 or 属性名:getType
函数:getType(): tag.MifareClassicType;|nfctech.d.ts| +|新增|NA|方法名 or 属性名:readMultiplePages
函数:readMultiplePages(pageIndex: number): Promise;|nfctech.d.ts| +|新增|NA|方法名 or 属性名:readMultiplePages
函数:readMultiplePages(pageIndex: number, callback: AsyncCallback): void;|nfctech.d.ts| +|新增|NA|方法名 or 属性名:getType
函数:getType(): tag.MifareUltralightType;|nfctech.d.ts| +|新增|NA|方法名 or 属性名:format
函数:format(message: NdefMessage): Promise;|nfctech.d.ts| +|新增|NA|方法名 or 属性名:format
函数:format(message: NdefMessage, callback: AsyncCallback): void;|nfctech.d.ts| +|新增|NA|方法名 or 属性名:formatReadOnly
函数:formatReadOnly(message: NdefMessage): Promise;|nfctech.d.ts| +|新增|NA|方法名 or 属性名:formatReadOnly
函数:formatReadOnly(message: NdefMessage, callback: AsyncCallback): void;|nfctech.d.ts| +|删除|模块名:ohos.nfc.tag
类名:tag
方法名 or 属性名:getIsoDepTag|NA|@ohos.nfc.tag.d.ts| +|删除|模块名:ohos.nfc.tag
类名:tag
方法名 or 属性名:getNdefTag|NA|@ohos.nfc.tag.d.ts| +|删除|模块名:ohos.nfc.tag
类名:tag
方法名 or 属性名:getMifareClassicTag|NA|@ohos.nfc.tag.d.ts| +|删除|模块名:ohos.nfc.tag
类名:tag
方法名 or 属性名:getMifareUltralightTag|NA|@ohos.nfc.tag.d.ts| +|删除|模块名:ohos.nfc.tag
类名:tag
方法名 or 属性名:getNdefFormatableTag|NA|@ohos.nfc.tag.d.ts| +|删除|模块名:ohos.rpc
类名:IRemoteObject|NA|@ohos.rpc.d.ts| +|删除|模块名:ohos.rpc
类名:IRemoteObject
方法名 or 属性名:sendRequestAsync|NA|@ohos.rpc.d.ts| +|删除|模块名:ohos.rpc
类名:RemoteObject
方法名 or 属性名:sendRequestAsync|NA|@ohos.rpc.d.ts| +|删除|模块名:ohos.rpc
类名:RemoteProxy
方法名 or 属性名:sendRequestAsync|NA|@ohos.rpc.d.ts| +|删除|模块名:ohos.wifi
类名:wifi
方法名 or 属性名:getScanInfosSync|NA|@ohos.wifi.d.ts| +|删除|模块名:ohos.wifi
类名:wifi
方法名 or 属性名:addCandidateConfig|NA|@ohos.wifi.d.ts| +|删除|模块名:ohos.wifi
类名:wifi
方法名 or 属性名:addCandidateConfig|NA|@ohos.wifi.d.ts| +|删除|模块名:ohos.wifi
类名:wifi
方法名 or 属性名:removeCandidateConfig|NA|@ohos.wifi.d.ts| +|删除|模块名:ohos.wifi
类名:wifi
方法名 or 属性名:removeCandidateConfig|NA|@ohos.wifi.d.ts| +|删除|模块名:ohos.wifi
类名:wifi
方法名 or 属性名:getCandidateConfigs|NA|@ohos.wifi.d.ts| +|删除|模块名:ohos.wifi
类名:wifi
方法名 or 属性名:connectToCandidateConfig|NA|@ohos.wifi.d.ts| +|删除|模块名:ohos.wifi
类名:wifi
方法名 or 属性名:getP2pLocalDevice|NA|@ohos.wifi.d.ts| +|删除|模块名:ohos.wifi
类名:wifi
方法名 or 属性名:getP2pLocalDevice|NA|@ohos.wifi.d.ts| +|删除|模块名:ohos.wifi
类名:wifi
方法名 or 属性名:getP2pGroups|NA|@ohos.wifi.d.ts| +|删除|模块名:ohos.wifi
类名:wifi
方法名 or 属性名:getP2pGroups|NA|@ohos.wifi.d.ts| +|删除|模块名:ohos.wifi
类名:wifi
方法名 or 属性名:on_deviceConfigChange|NA|@ohos.wifi.d.ts| +|删除|模块名:ohos.wifi
类名:wifi
方法名 or 属性名:off_deviceConfigChange|NA|@ohos.wifi.d.ts| +|删除|模块名: ohos.wifi
类名: EapMethod|NA|@ohos.wifi.d.ts| +|删除|模块名: ohos.wifi
类名: EapMethod
方法名 or 属性名:EAP_NONE|NA|@ohos.wifi.d.ts| +|删除|模块名: ohos.wifi
类名: EapMethod
方法名 or 属性名:EAP_PEAP|NA|@ohos.wifi.d.ts| +|删除|模块名: ohos.wifi
类名: EapMethod
方法名 or 属性名:EAP_TLS|NA|@ohos.wifi.d.ts| +|删除|模块名: ohos.wifi
类名: EapMethod
方法名 or 属性名:EAP_TTLS|NA|@ohos.wifi.d.ts| +|删除|模块名: ohos.wifi
类名: EapMethod
方法名 or 属性名:EAP_PWD|NA|@ohos.wifi.d.ts| +|删除|模块名: ohos.wifi
类名: EapMethod
方法名 or 属性名:EAP_SIM|NA|@ohos.wifi.d.ts| +|删除|模块名: ohos.wifi
类名: EapMethod
方法名 or 属性名:EAP_AKA|NA|@ohos.wifi.d.ts| +|删除|模块名: ohos.wifi
类名: EapMethod
方法名 or 属性名:EAP_AKA_PRIME|NA|@ohos.wifi.d.ts| +|删除|模块名: ohos.wifi
类名: EapMethod
方法名 or 属性名:EAP_UNAUTH_TLS|NA|@ohos.wifi.d.ts| +|删除|模块名: ohos.wifi
类名: Phase2Method|NA|@ohos.wifi.d.ts| +|删除|模块名: ohos.wifi
类名: Phase2Method
方法名 or 属性名:PHASE2_NONE|NA|@ohos.wifi.d.ts| +|删除|模块名: ohos.wifi
类名: Phase2Method
方法名 or 属性名:PHASE2_PAP|NA|@ohos.wifi.d.ts| +|删除|模块名: ohos.wifi
类名: Phase2Method
方法名 or 属性名:PHASE2_MSCHAP|NA|@ohos.wifi.d.ts| +|删除|模块名: ohos.wifi
类名: Phase2Method
方法名 or 属性名:PHASE2_MSCHAPV2|NA|@ohos.wifi.d.ts| +|删除|模块名: ohos.wifi
类名: Phase2Method
方法名 or 属性名:PHASE2_GTC|NA|@ohos.wifi.d.ts| +|删除|模块名: ohos.wifi
类名: Phase2Method
方法名 or 属性名:PHASE2_SIM|NA|@ohos.wifi.d.ts| +|删除|模块名: ohos.wifi
类名: Phase2Method
方法名 or 属性名:PHASE2_AKA|NA|@ohos.wifi.d.ts| +|删除|模块名: ohos.wifi
类名: Phase2Method
方法名 or 属性名:PHASE2_AKA_PRIME|NA|@ohos.wifi.d.ts| +|删除|模块名: ohos.wifi
类名: WifiEapConfig|NA|@ohos.wifi.d.ts| +|删除|模块名: ohos.wifi
类名: WifiEapConfig
方法名 or 属性名:eapMethod|NA|@ohos.wifi.d.ts| +|删除|模块名: ohos.wifi
类名: WifiEapConfig
方法名 or 属性名:phase2Method|NA|@ohos.wifi.d.ts| +|删除|模块名: ohos.wifi
类名: WifiEapConfig
方法名 or 属性名:identity|NA|@ohos.wifi.d.ts| +|删除|模块名: ohos.wifi
类名: WifiEapConfig
方法名 or 属性名:anonymousIdentity|NA|@ohos.wifi.d.ts| +|删除|模块名: ohos.wifi
类名: WifiEapConfig
方法名 or 属性名:password|NA|@ohos.wifi.d.ts| +|删除|模块名: ohos.wifi
类名: WifiEapConfig
方法名 or 属性名:caCertAliases|NA|@ohos.wifi.d.ts| +|删除|模块名: ohos.wifi
类名: WifiEapConfig
方法名 or 属性名:caPath|NA|@ohos.wifi.d.ts| +|删除|模块名: ohos.wifi
类名: WifiEapConfig
方法名 or 属性名:clientCertAliases|NA|@ohos.wifi.d.ts| +|删除|模块名: ohos.wifi
类名: WifiEapConfig
方法名 or 属性名:altSubjectMatch|NA|@ohos.wifi.d.ts| +|删除|模块名: ohos.wifi
类名: WifiEapConfig
方法名 or 属性名:domainSuffixMatch|NA|@ohos.wifi.d.ts| +|删除|模块名: ohos.wifi
类名: WifiEapConfig
方法名 or 属性名:realm|NA|@ohos.wifi.d.ts| +|删除|模块名: ohos.wifi
类名: WifiEapConfig
方法名 or 属性名:plmn|NA|@ohos.wifi.d.ts| +|删除|模块名: ohos.wifi
类名: WifiEapConfig
方法名 or 属性名:eapSubId|NA|@ohos.wifi.d.ts| +|删除|模块名:ohos.wifi
类名:WifiDeviceConfig
方法名 or 属性名:eapConfig|NA|@ohos.wifi.d.ts| +|删除|模块名: ohos.wifi
类名: WifiInfoElem|NA|@ohos.wifi.d.ts| +|删除|模块名: ohos.wifi
类名: WifiInfoElem
方法名 or 属性名:eid|NA|@ohos.wifi.d.ts| +|删除|模块名: ohos.wifi
类名: WifiInfoElem
方法名 or 属性名:content|NA|@ohos.wifi.d.ts| +|删除|模块名: ohos.wifi
类名: WifiChannelWidth|NA|@ohos.wifi.d.ts| +|删除|模块名: ohos.wifi
类名: WifiChannelWidth
方法名 or 属性名:WIDTH_20MHZ|NA|@ohos.wifi.d.ts| +|删除|模块名: ohos.wifi
类名: WifiChannelWidth
方法名 or 属性名:WIDTH_40MHZ|NA|@ohos.wifi.d.ts| +|删除|模块名: ohos.wifi
类名: WifiChannelWidth
方法名 or 属性名:WIDTH_80MHZ|NA|@ohos.wifi.d.ts| +|删除|模块名: ohos.wifi
类名: WifiChannelWidth
方法名 or 属性名:WIDTH_160MHZ|NA|@ohos.wifi.d.ts| +|删除|模块名: ohos.wifi
类名: WifiChannelWidth
方法名 or 属性名:WIDTH_80MHZ_PLUS|NA|@ohos.wifi.d.ts| +|删除|模块名: ohos.wifi
类名: WifiChannelWidth
方法名 or 属性名:WIDTH_INVALID|NA|@ohos.wifi.d.ts| +|删除|模块名:ohos.wifi
类名:WifiScanInfo
方法名 or 属性名:centerFrequency0|NA|@ohos.wifi.d.ts| +|删除|模块名:ohos.wifi
类名:WifiScanInfo
方法名 or 属性名:centerFrequency1|NA|@ohos.wifi.d.ts| +|删除|模块名:ohos.wifi
类名:WifiScanInfo
方法名 or 属性名:infoElems|NA|@ohos.wifi.d.ts| +|删除|模块名:ohos.wifi
类名:WifiSecurityType
方法名 or 属性名:WIFI_SEC_TYPE_EAP|NA|@ohos.wifi.d.ts| +|删除|模块名:ohos.wifi
类名:WifiSecurityType
方法名 or 属性名:WIFI_SEC_TYPE_EAP_SUITE_B|NA|@ohos.wifi.d.ts| +|删除|模块名:ohos.wifi
类名:WifiSecurityType
方法名 or 属性名:WIFI_SEC_TYPE_OWE|NA|@ohos.wifi.d.ts| +|删除|模块名:ohos.wifi
类名:WifiSecurityType
方法名 or 属性名:WIFI_SEC_TYPE_WAPI_CERT|NA|@ohos.wifi.d.ts| +|删除|模块名:ohos.wifi
类名:WifiSecurityType
方法名 or 属性名:WIFI_SEC_TYPE_WAPI_PSK|NA|@ohos.wifi.d.ts| +|删除|模块名:ohos.wifi
类名:WifiLinkedInfo
方法名 or 属性名:macType|NA|@ohos.wifi.d.ts| +|删除|模块名: nfctech
类名: NdefRecord|NA|nfctech.d.ts| +|删除|模块名: nfctech
类名: NdefRecord
方法名 or 属性名:tnf|NA|nfctech.d.ts| +|删除|模块名: nfctech
类名: NdefRecord
方法名 or 属性名:rtdType|NA|nfctech.d.ts| +|删除|模块名: nfctech
类名: NdefRecord
方法名 or 属性名:id|NA|nfctech.d.ts| +|删除|模块名: nfctech
类名: NdefRecord
方法名 or 属性名:payload|NA|nfctech.d.ts| +|删除|模块名: nfctech
类名: TnfType|NA|nfctech.d.ts| +|删除|模块名: nfctech
类名: TnfType
方法名 or 属性名:TNF_EMPTY|NA|nfctech.d.ts| +|删除|模块名: nfctech
类名: TnfType
方法名 or 属性名:TNF_WELL_KNOWN|NA|nfctech.d.ts| +|删除|模块名: nfctech
类名: TnfType
方法名 or 属性名:TNF_MEDIA|NA|nfctech.d.ts| +|删除|模块名: nfctech
类名: TnfType
方法名 or 属性名:TNF_ABSOLUTE_URI|NA|nfctech.d.ts| +|删除|模块名: nfctech
类名: TnfType
方法名 or 属性名:TNF_EXT_APP|NA|nfctech.d.ts| +|删除|模块名: nfctech
类名: TnfType
方法名 or 属性名:TNF_UNKNOWN|NA|nfctech.d.ts| +|删除|模块名: nfctech
类名: TnfType
方法名 or 属性名:TNF_UNCHANGED|NA|nfctech.d.ts| +|删除|模块名: nfctech
类名: RtdType|NA|nfctech.d.ts| +|删除|模块名: nfctech
类名: RtdType
方法名 or 属性名:RTD_TEXT|NA|nfctech.d.ts| +|删除|模块名: nfctech
类名: RtdType
方法名 or 属性名:RTD_URI|NA|nfctech.d.ts| +|删除|模块名:nfctech
类名:NdefMessage
方法名 or 属性名:messageToString|NA|nfctech.d.ts| +|删除|模块名: nfctech
类名: NfcForumType|NA|nfctech.d.ts| +|删除|模块名: nfctech
类名: NfcForumType
方法名 or 属性名:NFC_FORUM_TYPE_1|NA|nfctech.d.ts| +|删除|模块名: nfctech
类名: NfcForumType
方法名 or 属性名:NFC_FORUM_TYPE_2|NA|nfctech.d.ts| +|删除|模块名: nfctech
类名: NfcForumType
方法名 or 属性名:NFC_FORUM_TYPE_3|NA|nfctech.d.ts| +|删除|模块名: nfctech
类名: NfcForumType
方法名 or 属性名:NFC_FORUM_TYPE_4|NA|nfctech.d.ts| +|删除|模块名: nfctech
类名: NfcForumType
方法名 or 属性名:MIFARE_CLASSIC|NA|nfctech.d.ts| +|删除|模块名: nfctech
类名: MifareClassicType|NA|nfctech.d.ts| +|删除|模块名: nfctech
类名: MifareClassicType
方法名 or 属性名:TYPE_UNKNOWN|NA|nfctech.d.ts| +|删除|模块名: nfctech
类名: MifareClassicType
方法名 or 属性名:TYPE_CLASSIC|NA|nfctech.d.ts| +|删除|模块名: nfctech
类名: MifareClassicType
方法名 or 属性名:TYPE_PLUS|NA|nfctech.d.ts| +|删除|模块名: nfctech
类名: MifareClassicType
方法名 or 属性名:TYPE_PRO|NA|nfctech.d.ts| +|删除|模块名: nfctech
类名: MifareTagSize|NA|nfctech.d.ts| +|删除|模块名: nfctech
类名: MifareTagSize
方法名 or 属性名:MC_SIZE_MINI|NA|nfctech.d.ts| +|删除|模块名: nfctech
类名: MifareTagSize
方法名 or 属性名:MC_SIZE_1K|NA|nfctech.d.ts| +|删除|模块名: nfctech
类名: MifareTagSize
方法名 or 属性名:MC_SIZE_2K|NA|nfctech.d.ts| +|删除|模块名: nfctech
类名: MifareTagSize
方法名 or 属性名:MC_SIZE_4K|NA|nfctech.d.ts| +|删除|模块名: nfctech
类名: MifareUltralightType|NA|nfctech.d.ts| +|删除|模块名: nfctech
类名: MifareUltralightType
方法名 or 属性名:TYPE_UNKOWN|NA|nfctech.d.ts| +|删除|模块名: nfctech
类名: MifareUltralightType
方法名 or 属性名:TYPE_ULTRALIGHT|NA|nfctech.d.ts| +|删除|模块名: nfctech
类名: MifareUltralightType
方法名 or 属性名:TYPE_ULTRALIGHT_C|NA|nfctech.d.ts| +|删除|模块名:nfctech
类名:MifareUltralightTag
方法名 or 属性名:writeSinglePages|NA|nfctech.d.ts| +|删除|模块名:nfctech
类名:MifareUltralightTag
方法名 or 属性名:writeSinglePages|NA|nfctech.d.ts| |废弃版本有变化|类名:MessageParcel
废弃版本:N/A|类名:MessageParcel
废弃版本:9
代替接口:ohos.rpc.MessageSequence |@ohos.rpc.d.ts| |废弃版本有变化|类名:Sequenceable
废弃版本:N/A|类名:Sequenceable
废弃版本:9
代替接口:ohos.rpc.Parcelable |@ohos.rpc.d.ts| |废弃版本有变化|类名:SendRequestResult
废弃版本:N/A|类名:SendRequestResult
废弃版本:9
代替接口:ohos.rpc.RequestResult |@ohos.rpc.d.ts| @@ -704,6 +678,7 @@ |废弃版本有变化|方法名 or 属性名:getInterfaceDescriptor
废弃版本:N/A|方法名 or 属性名:getInterfaceDescriptor
废弃版本:9
代替接口:ohos.rpc.IRemoteObject|@ohos.rpc.d.ts| |废弃版本有变化|方法名 or 属性名:queryLocalInterface
废弃版本:N/A|方法名 or 属性名:queryLocalInterface
废弃版本:9
代替接口:ohos.rpc.RemoteObject|@ohos.rpc.d.ts| |废弃版本有变化|方法名 or 属性名:getInterfaceDescriptor
废弃版本:N/A|方法名 or 属性名:getInterfaceDescriptor
废弃版本:9
代替接口:ohos.rpc.RemoteObject|@ohos.rpc.d.ts| +|废弃版本有变化|方法名 or 属性名:onRemoteRequest
废弃版本:N/A|方法名 or 属性名:onRemoteRequest
废弃版本:9|@ohos.rpc.d.ts| |废弃版本有变化|方法名 or 属性名:sendRequest
废弃版本:N/A|方法名 or 属性名:sendRequest
废弃版本:9
代替接口:ohos.rpc.RemoteObject|@ohos.rpc.d.ts| |废弃版本有变化|方法名 or 属性名:attachLocalInterface
废弃版本:N/A|方法名 or 属性名:attachLocalInterface
废弃版本:9
代替接口:ohos.rpc.RemoteObject|@ohos.rpc.d.ts| |废弃版本有变化|方法名 or 属性名:queryLocalInterface
废弃版本:N/A|方法名 or 属性名:queryLocalInterface
废弃版本:9
代替接口:ohos.rpc.RemoteProxy|@ohos.rpc.d.ts| @@ -830,8 +805,8 @@ |删除(权限)|方法名 or 属性名:isEmulatedTag
权限:ohos.permission.NFC_TAG|方法名 or 属性名:isEmulatedTag
权限:N/A|nfctech.d.ts| |删除(权限)|方法名 or 属性名:getBlockIndex
权限:ohos.permission.NFC_TAG|方法名 or 属性名:getBlockIndex
权限:N/A|nfctech.d.ts| |删除(权限)|方法名 or 属性名:getSectorIndex
权限:ohos.permission.NFC_TAG|方法名 or 属性名:getSectorIndex
权限:N/A|nfctech.d.ts| -|新增(错误码)||方法名 or 属性名:isExtendedApduSupported
错误码内容:201,401,3100201|nfctech.d.ts| -|新增(错误码)||方法名 or 属性名:readNdef
错误码内容:201,401,3100201|nfctech.d.ts| -|新增(错误码)||方法名 or 属性名:getBlockCountInSector
错误码内容:401|nfctech.d.ts| -|新增(错误码)||方法名 or 属性名:getBlockIndex
错误码内容:401|nfctech.d.ts| -|新增(错误码)||方法名 or 属性名:getSectorIndex
错误码内容:401|nfctech.d.ts| +|新增(错误码)|NA|方法名 or 属性名:isExtendedApduSupported
错误码内容:201,401,3100201|nfctech.d.ts| +|新增(错误码)|NA|方法名 or 属性名:readNdef
错误码内容:201,401,3100201|nfctech.d.ts| +|新增(错误码)|NA|方法名 or 属性名:getBlockCountInSector
错误码内容:401|nfctech.d.ts| +|新增(错误码)|NA|方法名 or 属性名:getBlockIndex
错误码内容:401|nfctech.d.ts| +|新增(错误码)|NA|方法名 or 属性名:getSectorIndex
错误码内容:401|nfctech.d.ts| diff --git a/zh-cn/release-notes/api-diff/monthly-202210/js-apidiff-compiler-and-runtime.md b/zh-cn/release-notes/api-diff/monthly-202210/js-apidiff-compiler-and-runtime.md index 071d3a1616624518f04c5e8d9cc26730f1c35752..fa9429c04a7a1d5b7b830bde0419606bea007e07 100644 --- a/zh-cn/release-notes/api-diff/monthly-202210/js-apidiff-compiler-and-runtime.md +++ b/zh-cn/release-notes/api-diff/monthly-202210/js-apidiff-compiler-and-runtime.md @@ -1,120 +1,122 @@ -| 操作 | 新版本 | 旧版本 | d.ts文件 | +| 操作 | 旧版本 | 新版本 | d.ts文件 | | ---- | ------ | ------ | -------- | -|新增||模块名:ohos.convertxml
类名:ConvertXML
方法名 or 属性名:convertToJSObject|@ohos.convertxml.d.ts| -|新增||模块名: ohos.process
类名: ProcessManager|@ohos.process.d.ts| -|新增||模块名: ohos.process
类名: ProcessManager
方法名 or 属性名:isAppUid|@ohos.process.d.ts| -|新增||模块名: ohos.process
类名: ProcessManager
方法名 or 属性名:getUidForName|@ohos.process.d.ts| -|新增||模块名: ohos.process
类名: ProcessManager
方法名 or 属性名:getThreadPriority|@ohos.process.d.ts| -|新增||模块名: ohos.process
类名: ProcessManager
方法名 or 属性名:getSystemConfig|@ohos.process.d.ts| -|新增||模块名: ohos.process
类名: ProcessManager
方法名 or 属性名:getEnvironmentVar|@ohos.process.d.ts| -|新增||模块名: ohos.process
类名: ProcessManager
方法名 or 属性名:exit|@ohos.process.d.ts| -|新增||模块名: ohos.process
类名: ProcessManager
方法名 or 属性名:kill|@ohos.process.d.ts| -|新增||模块名:ohos.uri
类名:URI
方法名 or 属性名:equalsTo|@ohos.uri.d.ts| -|新增||模块名: ohos.url
类名: URLParams|@ohos.url.d.ts| -|新增||模块名: ohos.url
类名: URLParams
方法名 or 属性名:ructor(init?|@ohos.url.d.ts| -|新增||模块名: ohos.url
类名: URLParams
方法名 or 属性名:append|@ohos.url.d.ts| -|新增||模块名: ohos.url
类名: URLParams
方法名 or 属性名:delete|@ohos.url.d.ts| -|新增||模块名: ohos.url
类名: URLParams
方法名 or 属性名:getAll|@ohos.url.d.ts| -|新增||模块名: ohos.url
类名: URLParams
方法名 or 属性名:entries|@ohos.url.d.ts| -|新增||模块名: ohos.url
类名: URLParams
方法名 or 属性名:forEach|@ohos.url.d.ts| -|新增||模块名: ohos.url
类名: URLParams
方法名 or 属性名:get|@ohos.url.d.ts| -|新增||模块名: ohos.url
类名: URLParams
方法名 or 属性名:has|@ohos.url.d.ts| -|新增||模块名: ohos.url
类名: URLParams
方法名 or 属性名:set|@ohos.url.d.ts| -|新增||模块名: ohos.url
类名: URLParams
方法名 or 属性名:sort|@ohos.url.d.ts| -|新增||模块名: ohos.url
类名: URLParams
方法名 or 属性名:keys|@ohos.url.d.ts| -|新增||模块名: ohos.url
类名: URLParams
方法名 or 属性名:values|@ohos.url.d.ts| -|新增||模块名: ohos.url
类名: URLParams
方法名 or 属性名:[Symbol.iterator]|@ohos.url.d.ts| -|新增||模块名: ohos.url
类名: URLParams
方法名 or 属性名:toString|@ohos.url.d.ts| -|新增||模块名:ohos.url
类名:URL
方法名 or 属性名:parseURL|@ohos.url.d.ts| -|新增||模块名:ohos.util
类名:util
方法名 or 属性名:format|@ohos.util.d.ts| -|新增||模块名:ohos.util
类名:util
方法名 or 属性名:errnoToString|@ohos.util.d.ts| -|新增||模块名:ohos.util
类名:TextDecoder
方法名 or 属性名:create|@ohos.util.d.ts| -|新增||方法名 or 属性名:encodeInto
函数:encodeInto(input?: string): Uint8Array;|@ohos.util.d.ts| -|新增||模块名:ohos.util
类名:TextEncoder
方法名 or 属性名:encodeIntoUint8Array|@ohos.util.d.ts| -|新增||模块名:ohos.util
类名:RationalNumber
方法名 or 属性名:parseRationalNumber|@ohos.util.d.ts| -|新增||模块名:ohos.util
类名:RationalNumber
方法名 or 属性名:compare|@ohos.util.d.ts| -|新增||模块名:ohos.util
类名:RationalNumber
方法名 or 属性名:getCommonFactor|@ohos.util.d.ts| -|新增||模块名: ohos.util
类名: LRUCache|@ohos.util.d.ts| -|新增||模块名: ohos.util
类名: LRUCache
方法名 or 属性名:ructor(capacity?|@ohos.util.d.ts| -|新增||模块名: ohos.util
类名: LRUCache
方法名 or 属性名:updateCapacity|@ohos.util.d.ts| -|新增||模块名: ohos.util
类名: LRUCache
方法名 or 属性名:toString|@ohos.util.d.ts| -|新增||模块名: ohos.util
类名: LRUCache
方法名 or 属性名:length|@ohos.util.d.ts| -|新增||模块名: ohos.util
类名: LRUCache
方法名 or 属性名:getCapacity|@ohos.util.d.ts| -|新增||模块名: ohos.util
类名: LRUCache
方法名 or 属性名:clear|@ohos.util.d.ts| -|新增||模块名: ohos.util
类名: LRUCache
方法名 or 属性名:getCreateCount|@ohos.util.d.ts| -|新增||模块名: ohos.util
类名: LRUCache
方法名 or 属性名:getMissCount|@ohos.util.d.ts| -|新增||模块名: ohos.util
类名: LRUCache
方法名 or 属性名:getRemovalCount|@ohos.util.d.ts| -|新增||模块名: ohos.util
类名: LRUCache
方法名 or 属性名:getMatchCount|@ohos.util.d.ts| -|新增||模块名: ohos.util
类名: LRUCache
方法名 or 属性名:getPutCount|@ohos.util.d.ts| -|新增||模块名: ohos.util
类名: LRUCache
方法名 or 属性名:isEmpty|@ohos.util.d.ts| -|新增||模块名: ohos.util
类名: LRUCache
方法名 or 属性名:get|@ohos.util.d.ts| -|新增||模块名: ohos.util
类名: LRUCache
方法名 or 属性名:put|@ohos.util.d.ts| -|新增||模块名: ohos.util
类名: LRUCache
方法名 or 属性名:values|@ohos.util.d.ts| -|新增||模块名: ohos.util
类名: LRUCache
方法名 or 属性名:keys|@ohos.util.d.ts| -|新增||模块名: ohos.util
类名: LRUCache
方法名 or 属性名:remove|@ohos.util.d.ts| -|新增||模块名: ohos.util
类名: LRUCache
方法名 or 属性名:afterRemoval|@ohos.util.d.ts| -|新增||模块名: ohos.util
类名: LRUCache
方法名 or 属性名:contains|@ohos.util.d.ts| -|新增||模块名: ohos.util
类名: LRUCache
方法名 or 属性名:createDefault|@ohos.util.d.ts| -|新增||模块名: ohos.util
类名: LRUCache
方法名 or 属性名:entries|@ohos.util.d.ts| -|新增||模块名: ohos.util
类名: LRUCache
方法名 or 属性名:[Symbol.iterator]|@ohos.util.d.ts| -|新增||模块名: ohos.util
类名: ScopeHelper|@ohos.util.d.ts| -|新增||模块名: ohos.util
类名: ScopeHelper
方法名 or 属性名:ructor(lowerObj|@ohos.util.d.ts| -|新增||模块名: ohos.util
类名: ScopeHelper
方法名 or 属性名:toString|@ohos.util.d.ts| -|新增||模块名: ohos.util
类名: ScopeHelper
方法名 or 属性名:intersect|@ohos.util.d.ts| -|新增||模块名: ohos.util
类名: ScopeHelper
方法名 or 属性名:intersect|@ohos.util.d.ts| -|新增||模块名: ohos.util
类名: ScopeHelper
方法名 or 属性名:getUpper|@ohos.util.d.ts| -|新增||模块名: ohos.util
类名: ScopeHelper
方法名 or 属性名:getLower|@ohos.util.d.ts| -|新增||模块名: ohos.util
类名: ScopeHelper
方法名 or 属性名:expand|@ohos.util.d.ts| -|新增||模块名: ohos.util
类名: ScopeHelper
方法名 or 属性名:expand|@ohos.util.d.ts| -|新增||模块名: ohos.util
类名: ScopeHelper
方法名 or 属性名:expand|@ohos.util.d.ts| -|新增||模块名: ohos.util
类名: ScopeHelper
方法名 or 属性名:contains|@ohos.util.d.ts| -|新增||模块名: ohos.util
类名: ScopeHelper
方法名 or 属性名:contains|@ohos.util.d.ts| -|新增||模块名: ohos.util
类名: ScopeHelper
方法名 or 属性名:clamp|@ohos.util.d.ts| -|新增||模块名: ohos.util
类名: Base64Helper|@ohos.util.d.ts| -|新增||模块名: ohos.util
类名: Base64Helper
方法名 or 属性名:encodeSync|@ohos.util.d.ts| -|新增||模块名: ohos.util
类名: Base64Helper
方法名 or 属性名:encodeToStringSync|@ohos.util.d.ts| -|新增||模块名: ohos.util
类名: Base64Helper
方法名 or 属性名:decodeSync|@ohos.util.d.ts| -|新增||模块名: ohos.util
类名: Base64Helper
方法名 or 属性名:encode|@ohos.util.d.ts| -|新增||模块名: ohos.util
类名: Base64Helper
方法名 or 属性名:encodeToString|@ohos.util.d.ts| -|新增||模块名: ohos.util
类名: Base64Helper
方法名 or 属性名:decode|@ohos.util.d.ts| -|新增||模块名: ohos.worker
类名: WorkerEventListener|@ohos.worker.d.ts| -|新增||模块名: ohos.worker
类名: WorkerEventListener
方法名 or 属性名:WorkerEventListener|@ohos.worker.d.ts| -|新增||模块名: ohos.worker
类名: WorkerEventTarget|@ohos.worker.d.ts| -|新增||模块名: ohos.worker
类名: WorkerEventTarget
方法名 or 属性名:addEventListener|@ohos.worker.d.ts| -|新增||模块名: ohos.worker
类名: WorkerEventTarget
方法名 or 属性名:dispatchEvent|@ohos.worker.d.ts| -|新增||模块名: ohos.worker
类名: WorkerEventTarget
方法名 or 属性名:removeEventListener|@ohos.worker.d.ts| -|新增||模块名: ohos.worker
类名: WorkerEventTarget
方法名 or 属性名:removeAllListener|@ohos.worker.d.ts| -|新增||模块名: ohos.worker
类名: GlobalScope|@ohos.worker.d.ts| -|新增||模块名: ohos.worker
类名: GlobalScope
方法名 or 属性名:name|@ohos.worker.d.ts| -|新增||模块名: ohos.worker
类名: GlobalScope
方法名 or 属性名:onerror|@ohos.worker.d.ts| -|新增||模块名: ohos.worker
类名: GlobalScope
方法名 or 属性名:self|@ohos.worker.d.ts| -|新增||模块名: ohos.worker
类名: ThreadWorkerGlobalScope|@ohos.worker.d.ts| -|新增||模块名: ohos.worker
类名: ThreadWorkerGlobalScope
方法名 or 属性名:onmessage|@ohos.worker.d.ts| -|新增||模块名: ohos.worker
类名: ThreadWorkerGlobalScope
方法名 or 属性名:onmessageerror|@ohos.worker.d.ts| -|新增||模块名: ohos.worker
类名: ThreadWorkerGlobalScope
方法名 or 属性名:close|@ohos.worker.d.ts| -|新增||模块名: ohos.worker
类名: ThreadWorkerGlobalScope
方法名 or 属性名:postMessage|@ohos.worker.d.ts| -|新增||模块名: ohos.worker
类名: ThreadWorkerGlobalScope
方法名 or 属性名:postMessage|@ohos.worker.d.ts| -|新增||模块名: ohos.worker
类名: ThreadWorker|@ohos.worker.d.ts| -|新增||模块名: ohos.worker
类名: ThreadWorker
方法名 or 属性名:ructor(scriptURL|@ohos.worker.d.ts| -|新增||模块名: ohos.worker
类名: ThreadWorker
方法名 or 属性名:onexit|@ohos.worker.d.ts| -|新增||模块名: ohos.worker
类名: ThreadWorker
方法名 or 属性名:onerror|@ohos.worker.d.ts| -|新增||模块名: ohos.worker
类名: ThreadWorker
方法名 or 属性名:onmessage|@ohos.worker.d.ts| -|新增||模块名: ohos.worker
类名: ThreadWorker
方法名 or 属性名:onmessageerror|@ohos.worker.d.ts| -|新增||模块名: ohos.worker
类名: ThreadWorker
方法名 or 属性名:postMessage|@ohos.worker.d.ts| -|新增||模块名: ohos.worker
类名: ThreadWorker
方法名 or 属性名:postMessage|@ohos.worker.d.ts| -|新增||模块名: ohos.worker
类名: ThreadWorker
方法名 or 属性名:on|@ohos.worker.d.ts| -|新增||模块名: ohos.worker
类名: ThreadWorker
方法名 or 属性名:once|@ohos.worker.d.ts| -|新增||模块名: ohos.worker
类名: ThreadWorker
方法名 or 属性名:off|@ohos.worker.d.ts| -|新增||模块名: ohos.worker
类名: ThreadWorker
方法名 or 属性名:terminate|@ohos.worker.d.ts| -|新增||模块名: ohos.worker
类名: ThreadWorker
方法名 or 属性名:addEventListener|@ohos.worker.d.ts| -|新增||模块名: ohos.worker
类名: ThreadWorker
方法名 or 属性名:dispatchEvent|@ohos.worker.d.ts| -|新增||模块名: ohos.worker
类名: ThreadWorker
方法名 or 属性名:removeEventListener|@ohos.worker.d.ts| -|新增||模块名: ohos.worker
类名: ThreadWorker
方法名 or 属性名:removeAllListener|@ohos.worker.d.ts| -|新增||模块名: ohos.worker
类名: worker
方法名 or 属性名:workerPort|@ohos.worker.d.ts| -|删除|模块名:ohos.worker
类名:Worker
方法名 or 属性名:addEventListener||@ohos.worker.d.ts| -|删除|模块名:ohos.worker
类名:Worker
方法名 or 属性名:dispatchEvent||@ohos.worker.d.ts| -|删除|模块名:ohos.worker
类名:Worker
方法名 or 属性名:removeEventListener||@ohos.worker.d.ts| -|删除|模块名:ohos.worker
类名:Worker
方法名 or 属性名:removeAllListener||@ohos.worker.d.ts| +|新增|NA|方法名 or 属性名:readBigInt64BE
函数:readBigInt64BE(offset?: number): bigint;|@ohos.buffer.d.ts| +|新增|NA|方法名 or 属性名:readBigInt64LE
函数:readBigInt64LE(offset?: number): bigint;|@ohos.buffer.d.ts| +|新增|NA|方法名 or 属性名:readBigUInt64BE
函数:readBigUInt64BE(offset?: number): bigint;|@ohos.buffer.d.ts| +|新增|NA|方法名 or 属性名:readBigUInt64LE
函数:readBigUInt64LE(offset?: number): bigint;|@ohos.buffer.d.ts| +|新增|NA|方法名 or 属性名:subarray
函数:subarray(start?: number, end?: number): Buffer;|@ohos.buffer.d.ts| +|新增|NA|方法名 or 属性名:writeBigInt64BE
函数:writeBigInt64BE(value: bigint, offset?: number): number;|@ohos.buffer.d.ts| +|新增|NA|方法名 or 属性名:writeBigInt64LE
函数:writeBigInt64LE(value: bigint, offset?: number): number;|@ohos.buffer.d.ts| +|新增|NA|方法名 or 属性名:writeBigUInt64BE
函数:writeBigUInt64BE(value: bigint, offset?: number): number;|@ohos.buffer.d.ts| +|新增|NA|方法名 or 属性名:writeBigUInt64LE
函数:writeBigUInt64LE(value: bigint, offset?: number): number;|@ohos.buffer.d.ts| +|新增|NA|方法名 or 属性名:ructor(sources
函数:constructor(sources: string[] \| ArrayBuffer[] \| TypedArray[] \| DataView[] \| Blob[] , options?: Object);|@ohos.buffer.d.ts| +|新增|NA|模块名: ohos.process
类名: ProcessManager|@ohos.process.d.ts| +|新增|NA|模块名: ohos.process
类名: ProcessManager
方法名 or 属性名:isAppUid|@ohos.process.d.ts| +|新增|NA|模块名: ohos.process
类名: ProcessManager
方法名 or 属性名:getUidForName|@ohos.process.d.ts| +|新增|NA|模块名: ohos.process
类名: ProcessManager
方法名 or 属性名:getThreadPriority|@ohos.process.d.ts| +|新增|NA|模块名: ohos.process
类名: ProcessManager
方法名 or 属性名:getSystemConfig|@ohos.process.d.ts| +|新增|NA|模块名: ohos.process
类名: ProcessManager
方法名 or 属性名:getEnvironmentVar|@ohos.process.d.ts| +|新增|NA|模块名: ohos.process
类名: ProcessManager
方法名 or 属性名:exit|@ohos.process.d.ts| +|新增|NA|模块名: ohos.process
类名: ProcessManager
方法名 or 属性名:kill|@ohos.process.d.ts| +|新增|NA|模块名: ohos.url
类名: URLParams|@ohos.url.d.ts| +|新增|NA|模块名: ohos.url
类名: URLParams
方法名 or 属性名:ructor(init?|@ohos.url.d.ts| +|新增|NA|模块名: ohos.url
类名: URLParams
方法名 or 属性名:append|@ohos.url.d.ts| +|新增|NA|模块名: ohos.url
类名: URLParams
方法名 or 属性名:delete|@ohos.url.d.ts| +|新增|NA|模块名: ohos.url
类名: URLParams
方法名 or 属性名:getAll|@ohos.url.d.ts| +|新增|NA|模块名: ohos.url
类名: URLParams
方法名 or 属性名:entries|@ohos.url.d.ts| +|新增|NA|模块名: ohos.url
类名: URLParams
方法名 or 属性名:forEach|@ohos.url.d.ts| +|新增|NA|模块名: ohos.url
类名: URLParams
方法名 or 属性名:get|@ohos.url.d.ts| +|新增|NA|模块名: ohos.url
类名: URLParams
方法名 or 属性名:has|@ohos.url.d.ts| +|新增|NA|模块名: ohos.url
类名: URLParams
方法名 or 属性名:set|@ohos.url.d.ts| +|新增|NA|模块名: ohos.url
类名: URLParams
方法名 or 属性名:sort|@ohos.url.d.ts| +|新增|NA|模块名: ohos.url
类名: URLParams
方法名 or 属性名:keys|@ohos.url.d.ts| +|新增|NA|模块名: ohos.url
类名: URLParams
方法名 or 属性名:values|@ohos.url.d.ts| +|新增|NA|模块名: ohos.url
类名: URLParams
方法名 or 属性名:[Symbol.iterator]|@ohos.url.d.ts| +|新增|NA|模块名: ohos.url
类名: URLParams
方法名 or 属性名:toString|@ohos.url.d.ts| +|新增|NA|方法名 or 属性名:encodeInto
函数:encodeInto(input?: string): Uint8Array;|@ohos.util.d.ts| +|新增|NA|模块名: ohos.util
类名: LRUCache|@ohos.util.d.ts| +|新增|NA|模块名: ohos.util
类名: LRUCache
方法名 or 属性名:ructor(capacity?|@ohos.util.d.ts| +|新增|NA|模块名: ohos.util
类名: LRUCache
方法名 or 属性名:updateCapacity|@ohos.util.d.ts| +|新增|NA|模块名: ohos.util
类名: LRUCache
方法名 or 属性名:toString|@ohos.util.d.ts| +|新增|NA|模块名: ohos.util
类名: LRUCache
方法名 or 属性名:length|@ohos.util.d.ts| +|新增|NA|模块名: ohos.util
类名: LRUCache
方法名 or 属性名:getCapacity|@ohos.util.d.ts| +|新增|NA|模块名: ohos.util
类名: LRUCache
方法名 or 属性名:clear|@ohos.util.d.ts| +|新增|NA|模块名: ohos.util
类名: LRUCache
方法名 or 属性名:getCreateCount|@ohos.util.d.ts| +|新增|NA|模块名: ohos.util
类名: LRUCache
方法名 or 属性名:getMissCount|@ohos.util.d.ts| +|新增|NA|模块名: ohos.util
类名: LRUCache
方法名 or 属性名:getRemovalCount|@ohos.util.d.ts| +|新增|NA|模块名: ohos.util
类名: LRUCache
方法名 or 属性名:getMatchCount|@ohos.util.d.ts| +|新增|NA|模块名: ohos.util
类名: LRUCache
方法名 or 属性名:getPutCount|@ohos.util.d.ts| +|新增|NA|模块名: ohos.util
类名: LRUCache
方法名 or 属性名:isEmpty|@ohos.util.d.ts| +|新增|NA|模块名: ohos.util
类名: LRUCache
方法名 or 属性名:get|@ohos.util.d.ts| +|新增|NA|模块名: ohos.util
类名: LRUCache
方法名 or 属性名:put|@ohos.util.d.ts| +|新增|NA|模块名: ohos.util
类名: LRUCache
方法名 or 属性名:values|@ohos.util.d.ts| +|新增|NA|模块名: ohos.util
类名: LRUCache
方法名 or 属性名:keys|@ohos.util.d.ts| +|新增|NA|模块名: ohos.util
类名: LRUCache
方法名 or 属性名:remove|@ohos.util.d.ts| +|新增|NA|模块名: ohos.util
类名: LRUCache
方法名 or 属性名:afterRemoval|@ohos.util.d.ts| +|新增|NA|模块名: ohos.util
类名: LRUCache
方法名 or 属性名:contains|@ohos.util.d.ts| +|新增|NA|模块名: ohos.util
类名: LRUCache
方法名 or 属性名:createDefault|@ohos.util.d.ts| +|新增|NA|模块名: ohos.util
类名: LRUCache
方法名 or 属性名:entries|@ohos.util.d.ts| +|新增|NA|模块名: ohos.util
类名: LRUCache
方法名 or 属性名:[Symbol.iterator]|@ohos.util.d.ts| +|新增|NA|模块名: ohos.util
类名: ScopeHelper|@ohos.util.d.ts| +|新增|NA|模块名: ohos.util
类名: ScopeHelper
方法名 or 属性名:ructor(lowerObj|@ohos.util.d.ts| +|新增|NA|模块名: ohos.util
类名: ScopeHelper
方法名 or 属性名:toString|@ohos.util.d.ts| +|新增|NA|模块名: ohos.util
类名: ScopeHelper
方法名 or 属性名:intersect|@ohos.util.d.ts| +|新增|NA|模块名: ohos.util
类名: ScopeHelper
方法名 or 属性名:intersect|@ohos.util.d.ts| +|新增|NA|模块名: ohos.util
类名: ScopeHelper
方法名 or 属性名:getUpper|@ohos.util.d.ts| +|新增|NA|模块名: ohos.util
类名: ScopeHelper
方法名 or 属性名:getLower|@ohos.util.d.ts| +|新增|NA|模块名: ohos.util
类名: ScopeHelper
方法名 or 属性名:expand|@ohos.util.d.ts| +|新增|NA|模块名: ohos.util
类名: ScopeHelper
方法名 or 属性名:expand|@ohos.util.d.ts| +|新增|NA|模块名: ohos.util
类名: ScopeHelper
方法名 or 属性名:expand|@ohos.util.d.ts| +|新增|NA|模块名: ohos.util
类名: ScopeHelper
方法名 or 属性名:contains|@ohos.util.d.ts| +|新增|NA|模块名: ohos.util
类名: ScopeHelper
方法名 or 属性名:contains|@ohos.util.d.ts| +|新增|NA|模块名: ohos.util
类名: ScopeHelper
方法名 or 属性名:clamp|@ohos.util.d.ts| +|新增|NA|模块名: ohos.util
类名: Base64Helper|@ohos.util.d.ts| +|新增|NA|模块名: ohos.util
类名: Base64Helper
方法名 or 属性名:encodeSync|@ohos.util.d.ts| +|新增|NA|模块名: ohos.util
类名: Base64Helper
方法名 or 属性名:encodeToStringSync|@ohos.util.d.ts| +|新增|NA|模块名: ohos.util
类名: Base64Helper
方法名 or 属性名:decodeSync|@ohos.util.d.ts| +|新增|NA|模块名: ohos.util
类名: Base64Helper
方法名 or 属性名:encode|@ohos.util.d.ts| +|新增|NA|模块名: ohos.util
类名: Base64Helper
方法名 or 属性名:encodeToString|@ohos.util.d.ts| +|新增|NA|模块名: ohos.util
类名: Base64Helper
方法名 or 属性名:decode|@ohos.util.d.ts| +|新增|NA|模块名: ohos.worker
类名: WorkerEventListener|@ohos.worker.d.ts| +|新增|NA|模块名: ohos.worker
类名: WorkerEventListener
方法名 or 属性名:WorkerEventListener|@ohos.worker.d.ts| +|新增|NA|模块名: ohos.worker
类名: WorkerEventTarget|@ohos.worker.d.ts| +|新增|NA|模块名: ohos.worker
类名: WorkerEventTarget
方法名 or 属性名:addEventListener|@ohos.worker.d.ts| +|新增|NA|模块名: ohos.worker
类名: WorkerEventTarget
方法名 or 属性名:dispatchEvent|@ohos.worker.d.ts| +|新增|NA|模块名: ohos.worker
类名: WorkerEventTarget
方法名 or 属性名:removeEventListener|@ohos.worker.d.ts| +|新增|NA|模块名: ohos.worker
类名: WorkerEventTarget
方法名 or 属性名:removeAllListener|@ohos.worker.d.ts| +|新增|NA|模块名: ohos.worker
类名: GlobalScope|@ohos.worker.d.ts| +|新增|NA|模块名: ohos.worker
类名: GlobalScope
方法名 or 属性名:name|@ohos.worker.d.ts| +|新增|NA|模块名: ohos.worker
类名: GlobalScope
方法名 or 属性名:onerror|@ohos.worker.d.ts| +|新增|NA|模块名: ohos.worker
类名: GlobalScope
方法名 or 属性名:self|@ohos.worker.d.ts| +|新增|NA|方法名 or 属性名:onmessage
函数:onmessage?: (this: DedicatedWorkerGlobalScope, ev: MessageEvent) => void;|@ohos.worker.d.ts| +|新增|NA|方法名 or 属性名:onmessageerror
函数:onmessageerror?: (this: DedicatedWorkerGlobalScope, ev: MessageEvent) => void;|@ohos.worker.d.ts| +|新增|NA|方法名 or 属性名:postMessage
函数:postMessage(messageObject: Object, transfer: ArrayBuffer[]): void;|@ohos.worker.d.ts| +|新增|NA|模块名: ohos.worker
类名: ThreadWorkerGlobalScope|@ohos.worker.d.ts| +|新增|NA|模块名: ohos.worker
类名: ThreadWorkerGlobalScope
方法名 or 属性名:onmessage|@ohos.worker.d.ts| +|新增|NA|模块名: ohos.worker
类名: ThreadWorkerGlobalScope
方法名 or 属性名:onmessageerror|@ohos.worker.d.ts| +|新增|NA|模块名: ohos.worker
类名: ThreadWorkerGlobalScope
方法名 or 属性名:close|@ohos.worker.d.ts| +|新增|NA|模块名: ohos.worker
类名: ThreadWorkerGlobalScope
方法名 or 属性名:postMessage|@ohos.worker.d.ts| +|新增|NA|模块名: ohos.worker
类名: ThreadWorkerGlobalScope
方法名 or 属性名:postMessage|@ohos.worker.d.ts| +|新增|NA|模块名: ohos.worker
类名: ThreadWorker|@ohos.worker.d.ts| +|新增|NA|模块名: ohos.worker
类名: ThreadWorker
方法名 or 属性名:ructor(scriptURL|@ohos.worker.d.ts| +|新增|NA|模块名: ohos.worker
类名: ThreadWorker
方法名 or 属性名:onexit|@ohos.worker.d.ts| +|新增|NA|模块名: ohos.worker
类名: ThreadWorker
方法名 or 属性名:onerror|@ohos.worker.d.ts| +|新增|NA|模块名: ohos.worker
类名: ThreadWorker
方法名 or 属性名:onmessage|@ohos.worker.d.ts| +|新增|NA|模块名: ohos.worker
类名: ThreadWorker
方法名 or 属性名:onmessageerror|@ohos.worker.d.ts| +|新增|NA|模块名: ohos.worker
类名: ThreadWorker
方法名 or 属性名:postMessage|@ohos.worker.d.ts| +|新增|NA|模块名: ohos.worker
类名: ThreadWorker
方法名 or 属性名:postMessage|@ohos.worker.d.ts| +|新增|NA|模块名: ohos.worker
类名: ThreadWorker
方法名 or 属性名:on|@ohos.worker.d.ts| +|新增|NA|模块名: ohos.worker
类名: ThreadWorker
方法名 or 属性名:once|@ohos.worker.d.ts| +|新增|NA|模块名: ohos.worker
类名: ThreadWorker
方法名 or 属性名:off|@ohos.worker.d.ts| +|新增|NA|模块名: ohos.worker
类名: ThreadWorker
方法名 or 属性名:terminate|@ohos.worker.d.ts| +|新增|NA|模块名: ohos.worker
类名: ThreadWorker
方法名 or 属性名:addEventListener|@ohos.worker.d.ts| +|新增|NA|模块名: ohos.worker
类名: ThreadWorker
方法名 or 属性名:dispatchEvent|@ohos.worker.d.ts| +|新增|NA|模块名: ohos.worker
类名: ThreadWorker
方法名 or 属性名:removeEventListener|@ohos.worker.d.ts| +|新增|NA|模块名: ohos.worker
类名: ThreadWorker
方法名 or 属性名:removeAllListener|@ohos.worker.d.ts| +|新增|NA|方法名 or 属性名:onmessage
函数:onmessage?: (event: MessageEvent) => void;|@ohos.worker.d.ts| +|新增|NA|方法名 or 属性名:onmessageerror
函数:onmessageerror?: (event: MessageEvent) => void;|@ohos.worker.d.ts| +|新增|NA|模块名: ohos.worker
类名: worker
方法名 or 属性名:workerPort|@ohos.worker.d.ts| +|访问级别有变化|类名:ChildProcess
访问级别:公开API|类名:ChildProcess
访问级别:系统API|@ohos.process.d.ts| |废弃版本有变化|方法名 or 属性名:convert
废弃版本:N/A|方法名 or 属性名:convert
废弃版本:9
代替接口:ohos.convertxml.ConvertXML.convertToJSObject |@ohos.convertxml.d.ts| |废弃版本有变化|方法名 or 属性名:isAppUid
废弃版本:N/A|方法名 or 属性名:isAppUid
废弃版本:9
代替接口:ohos.process.ProcessManager.isAppUid |@ohos.process.d.ts| |废弃版本有变化|方法名 or 属性名:getUidForName
废弃版本:N/A|方法名 or 属性名:getUidForName
废弃版本:9
代替接口:ohos.process.ProcessManager.getUidForName |@ohos.process.d.ts| @@ -200,14 +202,12 @@ |废弃版本有变化|方法名 or 属性名:name
废弃版本:N/A|方法名 or 属性名:name
废弃版本:9
代替接口:ohos.worker.GlobalScope.name |@ohos.worker.d.ts| |废弃版本有变化|方法名 or 属性名:onerror
废弃版本:N/A|方法名 or 属性名:onerror
废弃版本:9
代替接口:ohos.worker.GlobalScope.onerror |@ohos.worker.d.ts| |废弃版本有变化|类名:DedicatedWorkerGlobalScope
废弃版本:N/A|类名:DedicatedWorkerGlobalScope
废弃版本:9
代替接口:ohos.worker.ThreadWorkerGlobalScope |@ohos.worker.d.ts| -|废弃版本有变化|方法名 or 属性名:onmessage
废弃版本:N/A|方法名 or 属性名:onmessage
废弃版本:9
代替接口:ohos.worker.ThreadWorkerGlobalScope.onmessage |@ohos.worker.d.ts| -|废弃版本有变化|方法名 or 属性名:onmessageerror
废弃版本:N/A|方法名 or 属性名:onmessageerror
废弃版本:9
代替接口:ohos.worker.ThreadWorkerGlobalScope.onmessageerror |@ohos.worker.d.ts| |废弃版本有变化|方法名 or 属性名:close
废弃版本:N/A|方法名 or 属性名:close
废弃版本:9
代替接口:ohos.worker.ThreadWorkerGlobalScope.close |@ohos.worker.d.ts| +|废弃版本有变化|方法名 or 属性名:postMessage
废弃版本:N/A|方法名 or 属性名:postMessage
废弃版本:9
代替接口:ohos.worker.ThreadWorkerGlobalScope.postMessage |@ohos.worker.d.ts| +|废弃版本有变化|方法名 or 属性名:postMessage
废弃版本:N/A|方法名 or 属性名:postMessage
废弃版本:9|@ohos.worker.d.ts| |废弃版本有变化|方法名 or 属性名:ructor(scriptURL
废弃版本:N/A|方法名 or 属性名:ructor(scriptURL
废弃版本:9
代替接口:ohos.worker.ThreadWorker.constructor |@ohos.worker.d.ts| |废弃版本有变化|方法名 or 属性名:onexit
废弃版本:N/A|方法名 or 属性名:onexit
废弃版本:9
代替接口:ohos.worker.ThreadWorker.onexit |@ohos.worker.d.ts| |废弃版本有变化|方法名 or 属性名:onerror
废弃版本:N/A|方法名 or 属性名:onerror
废弃版本:9
代替接口:ohos.worker.ThreadWorker.onerror |@ohos.worker.d.ts| -|废弃版本有变化|方法名 or 属性名:onmessage
废弃版本:N/A|方法名 or 属性名:onmessage
废弃版本:9
代替接口:ohos.worker.ThreadWorker.onmessage |@ohos.worker.d.ts| -|废弃版本有变化|方法名 or 属性名:onmessageerror
废弃版本:N/A|方法名 or 属性名:onmessageerror
废弃版本:9
代替接口:ohos.worker.ThreadWorker.onmessageerror |@ohos.worker.d.ts| |废弃版本有变化|方法名 or 属性名:postMessage
废弃版本:N/A|方法名 or 属性名:postMessage
废弃版本:9
代替接口:ohos.worker.ThreadWorker.postMessage |@ohos.worker.d.ts| |废弃版本有变化|方法名 or 属性名:postMessage
废弃版本:N/A|方法名 or 属性名:postMessage
废弃版本:9|@ohos.worker.d.ts| |废弃版本有变化|方法名 or 属性名:on
废弃版本:N/A|方法名 or 属性名:on
废弃版本:9
代替接口:ohos.worker.ThreadWorker.on |@ohos.worker.d.ts| @@ -219,3 +219,4 @@ |起始版本有变化|类名:Scope
起始版本:7|类名:Scope
起始版本:8|@ohos.util.d.ts| |起始版本有变化|类名:Base64
起始版本:7|类名:Base64
起始版本:8|@ohos.util.d.ts| |起始版本有变化|类名:types
起始版本:7|类名:types
起始版本:8|@ohos.util.d.ts| +|访问级别有变化|类名:ChildProcess
访问级别:公开API|类名:ChildProcess
访问级别:系统API|@ohos.process.d.ts| diff --git a/zh-cn/release-notes/api-diff/monthly-202210/js-apidiff-customization.md b/zh-cn/release-notes/api-diff/monthly-202210/js-apidiff-customization.md index 3a20cd0948d85b457e1e14514ed2cedfe4ea4a75..6e9717408cd60102927bae5aef8175b757029258 100644 --- a/zh-cn/release-notes/api-diff/monthly-202210/js-apidiff-customization.md +++ b/zh-cn/release-notes/api-diff/monthly-202210/js-apidiff-customization.md @@ -1,24 +1,20 @@ -| 操作 | 新版本 | 旧版本 | d.ts文件 | +| 操作 | 旧版本 | 新版本 | d.ts文件 | | ---- | ------ | ------ | -------- | -|新增||模块名: ohos.EnterpriseAdminExtensionAbility
类名: EnterpriseAdminExtensionAbility
方法名 or 属性名: onBundleAdded|@ohos.EnterpriseAdminExtensionAbility.d.ts| -|新增||模块名: ohos.EnterpriseAdminExtensionAbility
类名: EnterpriseAdminExtensionAbility
方法名 or 属性名: onBundleRemoved|@ohos.EnterpriseAdminExtensionAbility.d.ts| -|新增||模块名: ohos.enterpriseDeviceManager
类名: ManagedEvent|@ohos.enterpriseDeviceManager.d.ts| -|新增||模块名: ohos.enterpriseDeviceManager
类名: ManagedEvent
方法名 or 属性名:MANAGED_EVENT_BUNDLE_ADDED|@ohos.enterpriseDeviceManager.d.ts| -|新增||模块名: ohos.enterpriseDeviceManager
类名: ManagedEvent
方法名 or 属性名:MANAGED_EVENT_BUNDLE_REMOVED|@ohos.enterpriseDeviceManager.d.ts| -|新增||方法名 or 属性名:enableAdmin
函数:function enableAdmin(admin: Want, enterpriseInfo: EnterpriseInfo, type: AdminType, callback: AsyncCallback): void;|@ohos.enterpriseDeviceManager.d.ts| -|新增||方法名 or 属性名:enableAdmin
函数:function enableAdmin(admin: Want, enterpriseInfo: EnterpriseInfo, type: AdminType, userId: number, callback: AsyncCallback): void;|@ohos.enterpriseDeviceManager.d.ts| -|新增||方法名 or 属性名:enableAdmin
函数:function enableAdmin(admin: Want, enterpriseInfo: EnterpriseInfo, type: AdminType, userId?: number): Promise;|@ohos.enterpriseDeviceManager.d.ts| -|新增||方法名 or 属性名:disableAdmin
函数:function disableAdmin(admin: Want, callback: AsyncCallback): void;|@ohos.enterpriseDeviceManager.d.ts| -|新增||方法名 or 属性名:disableAdmin
函数:function disableAdmin(admin: Want, userId: number, callback: AsyncCallback): void;|@ohos.enterpriseDeviceManager.d.ts| -|新增||方法名 or 属性名:disableAdmin
函数:function disableAdmin(admin: Want, userId?: number): Promise;|@ohos.enterpriseDeviceManager.d.ts| -|新增||方法名 or 属性名:disableSuperAdmin
函数:function disableSuperAdmin(bundleName: String, callback: AsyncCallback): void;|@ohos.enterpriseDeviceManager.d.ts| -|新增||方法名 or 属性名:disableSuperAdmin
函数:function disableSuperAdmin(bundleName: String): Promise;|@ohos.enterpriseDeviceManager.d.ts| -|新增||方法名 or 属性名:setEnterpriseInfo
函数:function setEnterpriseInfo(admin: Want, enterpriseInfo: EnterpriseInfo, callback: AsyncCallback): void;|@ohos.enterpriseDeviceManager.d.ts| -|新增||方法名 or 属性名:setEnterpriseInfo
函数:function setEnterpriseInfo(admin: Want, enterpriseInfo: EnterpriseInfo): Promise;|@ohos.enterpriseDeviceManager.d.ts| -|新增||模块名:ohos.enterpriseDeviceManager
类名:enterpriseDeviceManager
方法名 or 属性名:subscribeManagedEvent|@ohos.enterpriseDeviceManager.d.ts| -|新增||模块名:ohos.enterpriseDeviceManager
类名:enterpriseDeviceManager
方法名 or 属性名:subscribeManagedEvent|@ohos.enterpriseDeviceManager.d.ts| -|新增||模块名:ohos.enterpriseDeviceManager
类名:enterpriseDeviceManager
方法名 or 属性名:unsubscribeManagedEvent|@ohos.enterpriseDeviceManager.d.ts| -|新增||模块名:ohos.enterpriseDeviceManager
类名:enterpriseDeviceManager
方法名 or 属性名:unsubscribeManagedEvent|@ohos.enterpriseDeviceManager.d.ts| +|新增|NA|模块名: ohos.EnterpriseAdminExtensionAbility
类名: EnterpriseAdminExtensionAbility
方法名 or 属性名: onBundleAdded|@ohos.EnterpriseAdminExtensionAbility.d.ts| +|新增|NA|模块名: ohos.EnterpriseAdminExtensionAbility
类名: EnterpriseAdminExtensionAbility
方法名 or 属性名: onBundleRemoved|@ohos.EnterpriseAdminExtensionAbility.d.ts| +|新增|NA|模块名: ohos.enterpriseDeviceManager
类名: ManagedEvent|@ohos.enterpriseDeviceManager.d.ts| +|新增|NA|模块名: ohos.enterpriseDeviceManager
类名: ManagedEvent
方法名 or 属性名:MANAGED_EVENT_BUNDLE_ADDED|@ohos.enterpriseDeviceManager.d.ts| +|新增|NA|模块名: ohos.enterpriseDeviceManager
类名: ManagedEvent
方法名 or 属性名:MANAGED_EVENT_BUNDLE_REMOVED|@ohos.enterpriseDeviceManager.d.ts| +|新增|NA|方法名 or 属性名:enableAdmin
函数:function enableAdmin(admin: Want, enterpriseInfo: EnterpriseInfo, type: AdminType, callback: AsyncCallback): void;|@ohos.enterpriseDeviceManager.d.ts| +|新增|NA|方法名 or 属性名:enableAdmin
函数:function enableAdmin(admin: Want, enterpriseInfo: EnterpriseInfo, type: AdminType, userId: number, callback: AsyncCallback): void;|@ohos.enterpriseDeviceManager.d.ts| +|新增|NA|方法名 or 属性名:enableAdmin
函数:function enableAdmin(admin: Want, enterpriseInfo: EnterpriseInfo, type: AdminType, userId?: number): Promise;|@ohos.enterpriseDeviceManager.d.ts| +|新增|NA|方法名 or 属性名:disableAdmin
函数:function disableAdmin(admin: Want, callback: AsyncCallback): void;|@ohos.enterpriseDeviceManager.d.ts| +|新增|NA|方法名 or 属性名:disableAdmin
函数:function disableAdmin(admin: Want, userId: number, callback: AsyncCallback): void;|@ohos.enterpriseDeviceManager.d.ts| +|新增|NA|方法名 or 属性名:disableAdmin
函数:function disableAdmin(admin: Want, userId?: number): Promise;|@ohos.enterpriseDeviceManager.d.ts| +|新增|NA|方法名 or 属性名:disableSuperAdmin
函数:function disableSuperAdmin(bundleName: String, callback: AsyncCallback): void;|@ohos.enterpriseDeviceManager.d.ts| +|新增|NA|方法名 or 属性名:disableSuperAdmin
函数:function disableSuperAdmin(bundleName: String): Promise;|@ohos.enterpriseDeviceManager.d.ts| +|新增|NA|方法名 or 属性名:setEnterpriseInfo
函数:function setEnterpriseInfo(admin: Want, enterpriseInfo: EnterpriseInfo, callback: AsyncCallback): void;|@ohos.enterpriseDeviceManager.d.ts| +|新增|NA|方法名 or 属性名:setEnterpriseInfo
函数:function setEnterpriseInfo(admin: Want, enterpriseInfo: EnterpriseInfo): Promise;|@ohos.enterpriseDeviceManager.d.ts| |model有变化|方法名 or 属性名:isAdminEnabled
model:|方法名 or 属性名:isAdminEnabled
model:@stagemodelonly|@ohos.enterpriseDeviceManager.d.ts| |model有变化|方法名 or 属性名:isAdminEnabled
model:|方法名 or 属性名:isAdminEnabled
model:@stagemodelonly|@ohos.enterpriseDeviceManager.d.ts| |model有变化|方法名 or 属性名:isAdminEnabled
model:|方法名 or 属性名:isAdminEnabled
model:@stagemodelonly|@ohos.enterpriseDeviceManager.d.ts| @@ -40,17 +36,17 @@ |访问级别有变化|方法名 or 属性名:setDateTime
访问级别:公开API|方法名 or 属性名:setDateTime
访问级别:系统API|DeviceSettingsManager.d.ts| |权限有变化|方法名 or 属性名:setDateTime
权限:ohos.permission.EDM_MANAGE_DATETIME|方法名 or 属性名:setDateTime
权限:ohos.permission.ENTERPRISE_SET_DATETIME|DeviceSettingsManager.d.ts| |权限有变化|方法名 or 属性名:setDateTime
权限:ohos.permission.EDM_MANAGE_DATETIME|方法名 or 属性名:setDateTime
权限:ohos.permission.ENTERPRISE_SET_DATETIME|DeviceSettingsManager.d.ts| -|新增(错误码)||方法名 or 属性名:getOneCfgFile
错误码内容:401|@ohos.configPolicy.d.ts| -|新增(错误码)||方法名 or 属性名:getCfgFiles
错误码内容:401|@ohos.configPolicy.d.ts| -|新增(错误码)||方法名 or 属性名:getCfgDirList
错误码内容:401|@ohos.configPolicy.d.ts| -|新增(错误码)||方法名 or 属性名:isAdminEnabled
错误码内容:401|@ohos.enterpriseDeviceManager.d.ts| -|新增(错误码)||方法名 or 属性名:isAdminEnabled
错误码内容:401|@ohos.enterpriseDeviceManager.d.ts| -|新增(错误码)||方法名 or 属性名:isAdminEnabled
错误码内容:401|@ohos.enterpriseDeviceManager.d.ts| -|新增(错误码)||方法名 or 属性名:getEnterpriseInfo
错误码内容:9200001,401|@ohos.enterpriseDeviceManager.d.ts| -|新增(错误码)||方法名 or 属性名:getEnterpriseInfo
错误码内容:9200001,401|@ohos.enterpriseDeviceManager.d.ts| -|新增(错误码)||方法名 or 属性名:isSuperAdmin
错误码内容:401|@ohos.enterpriseDeviceManager.d.ts| -|新增(错误码)||方法名 or 属性名:isSuperAdmin
错误码内容:401|@ohos.enterpriseDeviceManager.d.ts| -|新增(错误码)||方法名 or 属性名:setDateTime
错误码内容:9200001,9200002,201,401|DeviceSettingsManager.d.ts| +|新增(错误码)|NA|方法名 or 属性名:getOneCfgFile
错误码内容:401|@ohos.configPolicy.d.ts| +|新增(错误码)|NA|方法名 or 属性名:getCfgFiles
错误码内容:401|@ohos.configPolicy.d.ts| +|新增(错误码)|NA|方法名 or 属性名:getCfgDirList
错误码内容:401|@ohos.configPolicy.d.ts| +|新增(错误码)|NA|方法名 or 属性名:isAdminEnabled
错误码内容:401|@ohos.enterpriseDeviceManager.d.ts| +|新增(错误码)|NA|方法名 or 属性名:isAdminEnabled
错误码内容:401|@ohos.enterpriseDeviceManager.d.ts| +|新增(错误码)|NA|方法名 or 属性名:isAdminEnabled
错误码内容:401|@ohos.enterpriseDeviceManager.d.ts| +|新增(错误码)|NA|方法名 or 属性名:getEnterpriseInfo
错误码内容:9200001,401|@ohos.enterpriseDeviceManager.d.ts| +|新增(错误码)|NA|方法名 or 属性名:getEnterpriseInfo
错误码内容:9200001,401|@ohos.enterpriseDeviceManager.d.ts| +|新增(错误码)|NA|方法名 or 属性名:isSuperAdmin
错误码内容:401|@ohos.enterpriseDeviceManager.d.ts| +|新增(错误码)|NA|方法名 or 属性名:isSuperAdmin
错误码内容:401|@ohos.enterpriseDeviceManager.d.ts| +|新增(错误码)|NA|方法名 or 属性名:setDateTime
错误码内容:9200001,9200002,201,401|DeviceSettingsManager.d.ts| |访问级别有变化|类名:configPolicy
访问级别:公开API|类名:configPolicy
访问级别:系统API|@ohos.configPolicy.d.ts| |访问级别有变化|方法名 or 属性名:isAdminEnabled
访问级别:公开API|方法名 or 属性名:isAdminEnabled
访问级别:系统API|@ohos.enterpriseDeviceManager.d.ts| |访问级别有变化|方法名 or 属性名:isAdminEnabled
访问级别:公开API|方法名 or 属性名:isAdminEnabled
访问级别:系统API|@ohos.enterpriseDeviceManager.d.ts| diff --git a/zh-cn/release-notes/api-diff/monthly-202210/js-apidiff-dfx.md b/zh-cn/release-notes/api-diff/monthly-202210/js-apidiff-dfx.md index 1bad38d6607de642d809d35fea37b6218677cf73..5852c48af019aae39bbfe937f456248ff023b8ef 100644 --- a/zh-cn/release-notes/api-diff/monthly-202210/js-apidiff-dfx.md +++ b/zh-cn/release-notes/api-diff/monthly-202210/js-apidiff-dfx.md @@ -1,96 +1,89 @@ -| 操作 | 新版本 | 旧版本 | d.ts文件 | +| 操作 | 旧版本 | 新版本 | d.ts文件 | | ---- | ------ | ------ | -------- | -|新增||模块名:ohos.faultLogger
类名:FaultLogger
方法名 or 属性名:query|@ohos.faultLogger.d.ts| -|新增||模块名:ohos.faultLogger
类名:FaultLogger
方法名 or 属性名:query|@ohos.faultLogger.d.ts| -|新增||模块名:ohos.hichecker
类名:hichecker
方法名 or 属性名:addCheckRule|@ohos.hichecker.d.ts| -|新增||模块名:ohos.hichecker
类名:hichecker
方法名 or 属性名:removeCheckRule|@ohos.hichecker.d.ts| -|新增||模块名:ohos.hichecker
类名:hichecker
方法名 or 属性名:containsCheckRule|@ohos.hichecker.d.ts| -|新增||模块名:ohos.hidebug
类名:hidebug
方法名 or 属性名:startJsCpuProfiling|@ohos.hidebug.d.ts| -|新增||模块名:ohos.hidebug
类名:hidebug
方法名 or 属性名:stopJsCpuProfiling|@ohos.hidebug.d.ts| -|新增||模块名:ohos.hidebug
类名:hidebug
方法名 or 属性名:dumpJsHeapData|@ohos.hidebug.d.ts| -|新增||方法名 or 属性名:getServiceDump
函数:function getServiceDump(serviceid : number, fd : number, args : Array) : void;|@ohos.hidebug.d.ts| -|新增||方法名 or 属性名:onQuery
函数:onQuery: (infos: SysEventInfo[]) => void;|@ohos.hiSysEvent.d.ts| -|新增||方法名 or 属性名:addWatcher
函数:function addWatcher(watcher: Watcher): void;|@ohos.hiSysEvent.d.ts| -|新增||方法名 or 属性名:removeWatcher
函数:function removeWatcher(watcher: Watcher): void;|@ohos.hiSysEvent.d.ts| -|新增||方法名 or 属性名:query
函数:function query(queryArg: QueryArg, rules: QueryRule[], querier: Querier): void;|@ohos.hiSysEvent.d.ts| -|新增||模块名: ohos.hiviewdfx.hiAppEvent
类名: hiAppEvent|@ohos.hiviewdfx.hiAppEvent.d.ts| -|新增||模块名: ohos.hiviewdfx.hiAppEvent
类名: EventType|@ohos.hiviewdfx.hiAppEvent.d.ts| -|新增||模块名: ohos.hiviewdfx.hiAppEvent
类名: EventType
方法名 or 属性名: FAULT|@ohos.hiviewdfx.hiAppEvent.d.ts| -|新增||模块名: ohos.hiviewdfx.hiAppEvent
类名: EventType
方法名 or 属性名: STATISTIC|@ohos.hiviewdfx.hiAppEvent.d.ts| -|新增||模块名: ohos.hiviewdfx.hiAppEvent
类名: EventType
方法名 or 属性名: SECURITY|@ohos.hiviewdfx.hiAppEvent.d.ts| -|新增||模块名: ohos.hiviewdfx.hiAppEvent
类名: EventType
方法名 or 属性名: BEHAVIOR|@ohos.hiviewdfx.hiAppEvent.d.ts| -|新增||模块名: ohos.hiviewdfx.hiAppEvent
类名: Event|@ohos.hiviewdfx.hiAppEvent.d.ts| -|新增||模块名: ohos.hiviewdfx.hiAppEvent
类名: Event
方法名 or 属性名: USER_LOGIN|@ohos.hiviewdfx.hiAppEvent.d.ts| -|新增||模块名: ohos.hiviewdfx.hiAppEvent
类名: Event
方法名 or 属性名: USER_LOGOUT|@ohos.hiviewdfx.hiAppEvent.d.ts| -|新增||模块名: ohos.hiviewdfx.hiAppEvent
类名: Event
方法名 or 属性名: DISTRIBUTED_SERVICE_START|@ohos.hiviewdfx.hiAppEvent.d.ts| -|新增||模块名: ohos.hiviewdfx.hiAppEvent
类名: Param|@ohos.hiviewdfx.hiAppEvent.d.ts| -|新增||模块名: ohos.hiviewdfx.hiAppEvent
类名: Param
方法名 or 属性名: USER_ID|@ohos.hiviewdfx.hiAppEvent.d.ts| -|新增||模块名: ohos.hiviewdfx.hiAppEvent
类名: Param
方法名 or 属性名: DISTRIBUTED_SERVICE_NAME|@ohos.hiviewdfx.hiAppEvent.d.ts| -|新增||模块名: ohos.hiviewdfx.hiAppEvent
类名: Param
方法名 or 属性名: DISTRIBUTED_SERVICE_INSTANCE_ID|@ohos.hiviewdfx.hiAppEvent.d.ts| -|新增||模块名: ohos.hiviewdfx.hiAppEvent
类名: hiAppEvent
方法名 or 属性名: configure|@ohos.hiviewdfx.hiAppEvent.d.ts| -|新增||模块名: ohos.hiviewdfx.hiAppEvent
类名: ConfigOption|@ohos.hiviewdfx.hiAppEvent.d.ts| -|新增||模块名: ohos.hiviewdfx.hiAppEvent
类名: ConfigOption
方法名 or 属性名: disable|@ohos.hiviewdfx.hiAppEvent.d.ts| -|新增||模块名: ohos.hiviewdfx.hiAppEvent
类名: ConfigOption
方法名 or 属性名: maxStorage|@ohos.hiviewdfx.hiAppEvent.d.ts| -|新增||模块名: ohos.hiviewdfx.hiAppEvent
类名: AppEventInfo|@ohos.hiviewdfx.hiAppEvent.d.ts| -|新增||模块名: ohos.hiviewdfx.hiAppEvent
类名: AppEventInfo
方法名 or 属性名: domain|@ohos.hiviewdfx.hiAppEvent.d.ts| -|新增||模块名: ohos.hiviewdfx.hiAppEvent
类名: AppEventInfo
方法名 or 属性名: name|@ohos.hiviewdfx.hiAppEvent.d.ts| -|新增||模块名: ohos.hiviewdfx.hiAppEvent
类名: AppEventInfo
方法名 or 属性名: eventType|@ohos.hiviewdfx.hiAppEvent.d.ts| -|新增||模块名: ohos.hiviewdfx.hiAppEvent
类名: AppEventInfo
方法名 or 属性名: params|@ohos.hiviewdfx.hiAppEvent.d.ts| -|新增||模块名: ohos.hiviewdfx.hiAppEvent
类名: hiAppEvent
方法名 or 属性名: write|@ohos.hiviewdfx.hiAppEvent.d.ts| -|新增||模块名: ohos.hiviewdfx.hiAppEvent
类名: hiAppEvent
方法名 or 属性名: write|@ohos.hiviewdfx.hiAppEvent.d.ts| -|新增||模块名: ohos.hiviewdfx.hiAppEvent
类名: AppEventPackage|@ohos.hiviewdfx.hiAppEvent.d.ts| -|新增||模块名: ohos.hiviewdfx.hiAppEvent
类名: AppEventPackage
方法名 or 属性名: packageId|@ohos.hiviewdfx.hiAppEvent.d.ts| -|新增||模块名: ohos.hiviewdfx.hiAppEvent
类名: AppEventPackage
方法名 or 属性名: row|@ohos.hiviewdfx.hiAppEvent.d.ts| -|新增||模块名: ohos.hiviewdfx.hiAppEvent
类名: AppEventPackage
方法名 or 属性名: size|@ohos.hiviewdfx.hiAppEvent.d.ts| -|新增||模块名: ohos.hiviewdfx.hiAppEvent
类名: AppEventPackage
方法名 or 属性名: data|@ohos.hiviewdfx.hiAppEvent.d.ts| -|新增||模块名: ohos.hiviewdfx.hiAppEvent
类名: AppEventPackageHolder|@ohos.hiviewdfx.hiAppEvent.d.ts| -|新增||模块名: ohos.hiviewdfx.hiAppEvent
类名: AppEventPackageHolder
方法名 or 属性名: ructor(watcherName|@ohos.hiviewdfx.hiAppEvent.d.ts| -|新增||模块名: ohos.hiviewdfx.hiAppEvent
类名: AppEventPackageHolder
方法名 or 属性名: setSize|@ohos.hiviewdfx.hiAppEvent.d.ts| -|新增||模块名: ohos.hiviewdfx.hiAppEvent
类名: AppEventPackageHolder
方法名 or 属性名: takeNext|@ohos.hiviewdfx.hiAppEvent.d.ts| -|新增||模块名: ohos.hiviewdfx.hiAppEvent
类名: TriggerCondition|@ohos.hiviewdfx.hiAppEvent.d.ts| -|新增||模块名: ohos.hiviewdfx.hiAppEvent
类名: TriggerCondition
方法名 or 属性名: row|@ohos.hiviewdfx.hiAppEvent.d.ts| -|新增||模块名: ohos.hiviewdfx.hiAppEvent
类名: TriggerCondition
方法名 or 属性名: size|@ohos.hiviewdfx.hiAppEvent.d.ts| -|新增||模块名: ohos.hiviewdfx.hiAppEvent
类名: TriggerCondition
方法名 or 属性名: timeOut|@ohos.hiviewdfx.hiAppEvent.d.ts| -|新增||模块名: ohos.hiviewdfx.hiAppEvent
类名: AppEventFilter|@ohos.hiviewdfx.hiAppEvent.d.ts| -|新增||模块名: ohos.hiviewdfx.hiAppEvent
类名: AppEventFilter
方法名 or 属性名: domain|@ohos.hiviewdfx.hiAppEvent.d.ts| -|新增||模块名: ohos.hiviewdfx.hiAppEvent
类名: AppEventFilter
方法名 or 属性名: eventTypes|@ohos.hiviewdfx.hiAppEvent.d.ts| -|新增||模块名: ohos.hiviewdfx.hiAppEvent
类名: Watcher|@ohos.hiviewdfx.hiAppEvent.d.ts| -|新增||模块名: ohos.hiviewdfx.hiAppEvent
类名: Watcher
方法名 or 属性名: name|@ohos.hiviewdfx.hiAppEvent.d.ts| -|新增||模块名: ohos.hiviewdfx.hiAppEvent
类名: Watcher
方法名 or 属性名: triggerCondition|@ohos.hiviewdfx.hiAppEvent.d.ts| -|新增||模块名: ohos.hiviewdfx.hiAppEvent
类名: Watcher
方法名 or 属性名: appEventFilters|@ohos.hiviewdfx.hiAppEvent.d.ts| -|新增||模块名: ohos.hiviewdfx.hiAppEvent
类名: Watcher
方法名 or 属性名: onTrigger|@ohos.hiviewdfx.hiAppEvent.d.ts| -|新增||模块名: ohos.hiviewdfx.hiAppEvent
类名: hiAppEvent
方法名 or 属性名: addWatcher|@ohos.hiviewdfx.hiAppEvent.d.ts| -|新增||模块名: ohos.hiviewdfx.hiAppEvent
类名: hiAppEvent
方法名 or 属性名: removeWatcher|@ohos.hiviewdfx.hiAppEvent.d.ts| -|新增||模块名: ohos.hiviewdfx.hiAppEvent
类名: hiAppEvent
方法名 or 属性名: clearData|@ohos.hiviewdfx.hiAppEvent.d.ts| -|删除|模块名: ohos.hiAppEvent
类名: AppEventInfo||@ohos.hiAppEvent.d.ts| -|删除|模块名: ohos.hiAppEvent
类名: AppEventInfo
方法名 or 属性名:domain||@ohos.hiAppEvent.d.ts| -|删除|模块名: ohos.hiAppEvent
类名: AppEventInfo
方法名 or 属性名:name||@ohos.hiAppEvent.d.ts| -|删除|模块名: ohos.hiAppEvent
类名: AppEventInfo
方法名 or 属性名:eventType||@ohos.hiAppEvent.d.ts| -|删除|模块名: ohos.hiAppEvent
类名: AppEventInfo
方法名 or 属性名:params||@ohos.hiAppEvent.d.ts| -|删除|模块名: ohos.hiAppEvent
类名: AppEventPackage||@ohos.hiAppEvent.d.ts| -|删除|模块名: ohos.hiAppEvent
类名: AppEventPackage
方法名 or 属性名:packageId||@ohos.hiAppEvent.d.ts| -|删除|模块名: ohos.hiAppEvent
类名: AppEventPackage
方法名 or 属性名:row||@ohos.hiAppEvent.d.ts| -|删除|模块名: ohos.hiAppEvent
类名: AppEventPackage
方法名 or 属性名:size||@ohos.hiAppEvent.d.ts| -|删除|模块名: ohos.hiAppEvent
类名: AppEventPackage
方法名 or 属性名:data||@ohos.hiAppEvent.d.ts| -|删除|模块名: ohos.hiAppEvent
类名: AppEventPackageHolder||@ohos.hiAppEvent.d.ts| -|删除|模块名: ohos.hiAppEvent
类名: AppEventPackageHolder
方法名 or 属性名:ructor(watcherName||@ohos.hiAppEvent.d.ts| -|删除|模块名: ohos.hiAppEvent
类名: AppEventPackageHolder
方法名 or 属性名:setSize||@ohos.hiAppEvent.d.ts| -|删除|模块名: ohos.hiAppEvent
类名: AppEventPackageHolder
方法名 or 属性名:takeNext||@ohos.hiAppEvent.d.ts| -|删除|模块名: ohos.hiAppEvent
类名: TriggerCondition||@ohos.hiAppEvent.d.ts| -|删除|模块名: ohos.hiAppEvent
类名: TriggerCondition
方法名 or 属性名:row||@ohos.hiAppEvent.d.ts| -|删除|模块名: ohos.hiAppEvent
类名: TriggerCondition
方法名 or 属性名:size||@ohos.hiAppEvent.d.ts| -|删除|模块名: ohos.hiAppEvent
类名: TriggerCondition
方法名 or 属性名:timeOut||@ohos.hiAppEvent.d.ts| -|删除|模块名: ohos.hiAppEvent
类名: AppEventFilter||@ohos.hiAppEvent.d.ts| -|删除|模块名: ohos.hiAppEvent
类名: AppEventFilter
方法名 or 属性名:domain||@ohos.hiAppEvent.d.ts| -|删除|模块名: ohos.hiAppEvent
类名: AppEventFilter
方法名 or 属性名:eventTypes||@ohos.hiAppEvent.d.ts| -|删除|模块名: ohos.hiAppEvent
类名: Watcher||@ohos.hiAppEvent.d.ts| -|删除|模块名: ohos.hiAppEvent
类名: Watcher
方法名 or 属性名:name||@ohos.hiAppEvent.d.ts| -|删除|模块名: ohos.hiAppEvent
类名: Watcher
方法名 or 属性名:triggerCondition||@ohos.hiAppEvent.d.ts| -|删除|模块名: ohos.hiAppEvent
类名: Watcher
方法名 or 属性名:appEventFilters||@ohos.hiAppEvent.d.ts| -|删除|模块名: ohos.hiAppEvent
类名: Watcher
方法名 or 属性名:onTrigger||@ohos.hiAppEvent.d.ts| -|删除|模块名:ohos.hiAppEvent
类名:hiAppEvent
方法名 or 属性名:addWatcher||@ohos.hiAppEvent.d.ts| -|删除|模块名:ohos.hiAppEvent
类名:hiAppEvent
方法名 or 属性名:removeWatcher||@ohos.hiAppEvent.d.ts| -|删除|模块名:ohos.hiAppEvent
类名:hiAppEvent
方法名 or 属性名:clearData||@ohos.hiAppEvent.d.ts| +|新增|NA|方法名 or 属性名:getServiceDump
函数:function getServiceDump(serviceid : number, fd : number, args : Array) : void;|@ohos.hidebug.d.ts| +|新增|NA|方法名 or 属性名:onQuery
函数:onQuery: (infos: SysEventInfo[]) => void;|@ohos.hiSysEvent.d.ts| +|新增|NA|方法名 or 属性名:addWatcher
函数:function addWatcher(watcher: Watcher): void;|@ohos.hiSysEvent.d.ts| +|新增|NA|方法名 or 属性名:removeWatcher
函数:function removeWatcher(watcher: Watcher): void;|@ohos.hiSysEvent.d.ts| +|新增|NA|方法名 or 属性名:query
函数:function query(queryArg: QueryArg, rules: QueryRule[], querier: Querier): void;|@ohos.hiSysEvent.d.ts| +|新增|NA|方法名 or 属性名:begin
函数:function begin(name: string, flags?: number): HiTraceId;|@ohos.hiTraceChain.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: hiAppEvent|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: EventType|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: EventType
方法名 or 属性名: FAULT|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: EventType
方法名 or 属性名: STATISTIC|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: EventType
方法名 or 属性名: SECURITY|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: EventType
方法名 or 属性名: BEHAVIOR|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: Event|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: Event
方法名 or 属性名: USER_LOGIN|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: Event
方法名 or 属性名: USER_LOGOUT|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: Event
方法名 or 属性名: DISTRIBUTED_SERVICE_START|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: Param|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: Param
方法名 or 属性名: USER_ID|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: Param
方法名 or 属性名: DISTRIBUTED_SERVICE_NAME|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: Param
方法名 or 属性名: DISTRIBUTED_SERVICE_INSTANCE_ID|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: hiAppEvent
方法名 or 属性名: configure|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: ConfigOption|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: ConfigOption
方法名 or 属性名: disable|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: ConfigOption
方法名 or 属性名: maxStorage|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: AppEventInfo|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: AppEventInfo
方法名 or 属性名: domain|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: AppEventInfo
方法名 or 属性名: name|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: AppEventInfo
方法名 or 属性名: eventType|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: AppEventInfo
方法名 or 属性名: params|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: hiAppEvent
方法名 or 属性名: write|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: hiAppEvent
方法名 or 属性名: write|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: AppEventPackage|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: AppEventPackage
方法名 or 属性名: packageId|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: AppEventPackage
方法名 or 属性名: row|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: AppEventPackage
方法名 or 属性名: size|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: AppEventPackage
方法名 or 属性名: data|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: AppEventPackageHolder|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: AppEventPackageHolder
方法名 or 属性名: ructor(watcherName|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: AppEventPackageHolder
方法名 or 属性名: setSize|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: AppEventPackageHolder
方法名 or 属性名: takeNext|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: TriggerCondition|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: TriggerCondition
方法名 or 属性名: row|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: TriggerCondition
方法名 or 属性名: size|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: TriggerCondition
方法名 or 属性名: timeOut|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: AppEventFilter|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: AppEventFilter
方法名 or 属性名: domain|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: AppEventFilter
方法名 or 属性名: eventTypes|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: Watcher|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: Watcher
方法名 or 属性名: name|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: Watcher
方法名 or 属性名: triggerCondition|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: Watcher
方法名 or 属性名: appEventFilters|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: Watcher
方法名 or 属性名: onTrigger|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: hiAppEvent
方法名 or 属性名: addWatcher|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: hiAppEvent
方法名 or 属性名: removeWatcher|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: hiAppEvent
方法名 or 属性名: clearData|@ohos.hiviewdfx.hiAppEvent.d.ts| +|删除|模块名: ohos.hiAppEvent
类名: AppEventInfo|NA|@ohos.hiAppEvent.d.ts| +|删除|模块名: ohos.hiAppEvent
类名: AppEventInfo
方法名 or 属性名:domain|NA|@ohos.hiAppEvent.d.ts| +|删除|模块名: ohos.hiAppEvent
类名: AppEventInfo
方法名 or 属性名:name|NA|@ohos.hiAppEvent.d.ts| +|删除|模块名: ohos.hiAppEvent
类名: AppEventInfo
方法名 or 属性名:eventType|NA|@ohos.hiAppEvent.d.ts| +|删除|模块名: ohos.hiAppEvent
类名: AppEventInfo
方法名 or 属性名:params|NA|@ohos.hiAppEvent.d.ts| +|删除|模块名: ohos.hiAppEvent
类名: AppEventPackage|NA|@ohos.hiAppEvent.d.ts| +|删除|模块名: ohos.hiAppEvent
类名: AppEventPackage
方法名 or 属性名:packageId|NA|@ohos.hiAppEvent.d.ts| +|删除|模块名: ohos.hiAppEvent
类名: AppEventPackage
方法名 or 属性名:row|NA|@ohos.hiAppEvent.d.ts| +|删除|模块名: ohos.hiAppEvent
类名: AppEventPackage
方法名 or 属性名:size|NA|@ohos.hiAppEvent.d.ts| +|删除|模块名: ohos.hiAppEvent
类名: AppEventPackage
方法名 or 属性名:data|NA|@ohos.hiAppEvent.d.ts| +|删除|模块名: ohos.hiAppEvent
类名: AppEventPackageHolder|NA|@ohos.hiAppEvent.d.ts| +|删除|模块名: ohos.hiAppEvent
类名: AppEventPackageHolder
方法名 or 属性名:ructor(watcherName|NA|@ohos.hiAppEvent.d.ts| +|删除|模块名: ohos.hiAppEvent
类名: AppEventPackageHolder
方法名 or 属性名:setSize|NA|@ohos.hiAppEvent.d.ts| +|删除|模块名: ohos.hiAppEvent
类名: AppEventPackageHolder
方法名 or 属性名:takeNext|NA|@ohos.hiAppEvent.d.ts| +|删除|模块名: ohos.hiAppEvent
类名: TriggerCondition|NA|@ohos.hiAppEvent.d.ts| +|删除|模块名: ohos.hiAppEvent
类名: TriggerCondition
方法名 or 属性名:row|NA|@ohos.hiAppEvent.d.ts| +|删除|模块名: ohos.hiAppEvent
类名: TriggerCondition
方法名 or 属性名:size|NA|@ohos.hiAppEvent.d.ts| +|删除|模块名: ohos.hiAppEvent
类名: TriggerCondition
方法名 or 属性名:timeOut|NA|@ohos.hiAppEvent.d.ts| +|删除|模块名: ohos.hiAppEvent
类名: AppEventFilter|NA|@ohos.hiAppEvent.d.ts| +|删除|模块名: ohos.hiAppEvent
类名: AppEventFilter
方法名 or 属性名:domain|NA|@ohos.hiAppEvent.d.ts| +|删除|模块名: ohos.hiAppEvent
类名: AppEventFilter
方法名 or 属性名:eventTypes|NA|@ohos.hiAppEvent.d.ts| +|删除|模块名: ohos.hiAppEvent
类名: Watcher|NA|@ohos.hiAppEvent.d.ts| +|删除|模块名: ohos.hiAppEvent
类名: Watcher
方法名 or 属性名:name|NA|@ohos.hiAppEvent.d.ts| +|删除|模块名: ohos.hiAppEvent
类名: Watcher
方法名 or 属性名:triggerCondition|NA|@ohos.hiAppEvent.d.ts| +|删除|模块名: ohos.hiAppEvent
类名: Watcher
方法名 or 属性名:appEventFilters|NA|@ohos.hiAppEvent.d.ts| +|删除|模块名: ohos.hiAppEvent
类名: Watcher
方法名 or 属性名:onTrigger|NA|@ohos.hiAppEvent.d.ts| +|删除|模块名:ohos.hiAppEvent
类名:hiAppEvent
方法名 or 属性名:addWatcher|NA|@ohos.hiAppEvent.d.ts| +|删除|模块名:ohos.hiAppEvent
类名:hiAppEvent
方法名 or 属性名:removeWatcher|NA|@ohos.hiAppEvent.d.ts| +|删除|模块名:ohos.hiAppEvent
类名:hiAppEvent
方法名 or 属性名:clearData|NA|@ohos.hiAppEvent.d.ts| |废弃版本有变化|方法名 or 属性名:querySelfFaultLog
废弃版本:N/A|方法名 or 属性名:querySelfFaultLog
废弃版本:9
代替接口:ohos.faultlogger/FaultLogger|@ohos.faultLogger.d.ts| |废弃版本有变化|方法名 or 属性名:querySelfFaultLog
废弃版本:N/A|方法名 or 属性名:querySelfFaultLog
废弃版本:9
代替接口:ohos.faultlogger/FaultLogger|@ohos.faultLogger.d.ts| |废弃版本有变化|类名:hiAppEvent
废弃版本:N/A|类名:hiAppEvent
废弃版本:9
代替接口:ohos.hiviewdfx.hiAppEvent |@ohos.hiAppEvent.d.ts| diff --git a/zh-cn/release-notes/api-diff/monthly-202210/js-apidiff-distributed-data.md b/zh-cn/release-notes/api-diff/monthly-202210/js-apidiff-distributed-data.md index 3d1de04c00d28dd2ec60bd3ca33143fa7c8514a2..e2ff6c64d17c327b002b4649a49f472e86501c1f 100644 --- a/zh-cn/release-notes/api-diff/monthly-202210/js-apidiff-distributed-data.md +++ b/zh-cn/release-notes/api-diff/monthly-202210/js-apidiff-distributed-data.md @@ -1,339 +1,335 @@ -| 操作 | 新版本 | 旧版本 | d.ts文件 | +| 操作 | 旧版本 | 新版本 | d.ts文件 | | ---- | ------ | ------ | -------- | -|新增||模块名:ohos.data.distributedDataObject
类名:distributedDataObject
方法名 or 属性名:create|@ohos.data.distributedDataObject.d.ts| -|新增||模块名: ohos.data.distributedDataObject
类名: DistributedObjectV9|@ohos.data.distributedDataObject.d.ts| -|新增||模块名: ohos.data.distributedDataObject
类名: DistributedObjectV9
方法名 or 属性名:setSessionId|@ohos.data.distributedDataObject.d.ts| -|新增||模块名: ohos.data.distributedDataObject
类名: DistributedObjectV9
方法名 or 属性名:setSessionId|@ohos.data.distributedDataObject.d.ts| -|新增||模块名: ohos.data.distributedDataObject
类名: DistributedObjectV9
方法名 or 属性名:setSessionId|@ohos.data.distributedDataObject.d.ts| -|新增||模块名: ohos.data.distributedDataObject
类名: DistributedObjectV9
方法名 or 属性名:on_change|@ohos.data.distributedDataObject.d.ts| -|新增||模块名: ohos.data.distributedDataObject
类名: DistributedObjectV9
方法名 or 属性名:off_change|@ohos.data.distributedDataObject.d.ts| -|新增||模块名: ohos.data.distributedDataObject
类名: DistributedObjectV9
方法名 or 属性名:on_status|@ohos.data.distributedDataObject.d.ts| -|新增||模块名: ohos.data.distributedDataObject
类名: DistributedObjectV9
方法名 or 属性名:off_status|@ohos.data.distributedDataObject.d.ts| -|新增||模块名: ohos.data.distributedDataObject
类名: DistributedObjectV9
方法名 or 属性名:save|@ohos.data.distributedDataObject.d.ts| -|新增||模块名: ohos.data.distributedDataObject
类名: DistributedObjectV9
方法名 or 属性名:save|@ohos.data.distributedDataObject.d.ts| -|新增||模块名: ohos.data.distributedDataObject
类名: DistributedObjectV9
方法名 or 属性名:revokeSave|@ohos.data.distributedDataObject.d.ts| -|新增||模块名: ohos.data.distributedDataObject
类名: DistributedObjectV9
方法名 or 属性名:revokeSave|@ohos.data.distributedDataObject.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: distributedKVStore|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: KVManagerConfig|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: KVManagerConfig
方法名 or 属性名: bundleName|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: KVManagerConfig
方法名 or 属性名: context|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: Constants|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: Constants
方法名 or 属性名: MAX_KEY_LENGTH|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: Constants
方法名 or 属性名: MAX_VALUE_LENGTH|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: Constants
方法名 or 属性名: MAX_KEY_LENGTH_DEVICE|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: Constants
方法名 or 属性名: MAX_STORE_ID_LENGTH|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: Constants
方法名 or 属性名: MAX_QUERY_LENGTH|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: Constants
方法名 or 属性名: MAX_BATCH_SIZE|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: ValueType|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: ValueType
方法名 or 属性名: STRING|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: ValueType
方法名 or 属性名: INTEGER|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: ValueType
方法名 or 属性名: FLOAT|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: ValueType
方法名 or 属性名: BYTE_ARRAY|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: ValueType
方法名 or 属性名: BOOLEAN|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: ValueType
方法名 or 属性名: DOUBLE|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: Value|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: Value
方法名 or 属性名: type|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: Value
方法名 or 属性名: value|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: Entry|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: Entry
方法名 or 属性名: key|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: Entry
方法名 or 属性名: value|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: ChangeNotification|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: ChangeNotification
方法名 or 属性名: insertEntries|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: ChangeNotification
方法名 or 属性名: updateEntries|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: ChangeNotification
方法名 or 属性名: deleteEntries|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: ChangeNotification
方法名 or 属性名: deviceId|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SyncMode|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SyncMode
方法名 or 属性名: PULL_ONLY|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SyncMode
方法名 or 属性名: PUSH_ONLY|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SyncMode
方法名 or 属性名: PUSH_PULL|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SubscribeType|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SubscribeType
方法名 or 属性名: SUBSCRIBE_TYPE_LOCAL|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SubscribeType
方法名 or 属性名: SUBSCRIBE_TYPE_REMOTE|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SubscribeType
方法名 or 属性名: SUBSCRIBE_TYPE_ALL|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: KVStoreType|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: KVStoreType
方法名 or 属性名: DEVICE_COLLABORATION|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: KVStoreType
方法名 or 属性名: SINGLE_VERSION|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SecurityLevel|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SecurityLevel
方法名 or 属性名: S1|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SecurityLevel
方法名 or 属性名: S2|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SecurityLevel
方法名 or 属性名: S3|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SecurityLevel
方法名 or 属性名: S4|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: Options|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: Options
方法名 or 属性名: createIfMissing|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: Options
方法名 or 属性名: encrypt|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: Options
方法名 or 属性名: backup|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: Options
方法名 or 属性名: autoSync|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: Options
方法名 or 属性名: kvStoreType|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: Options
方法名 or 属性名: securityLevel|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: Options
方法名 or 属性名: schema|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: Schema|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: Schema
方法名 or 属性名: root|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: Schema
方法名 or 属性名: indexes|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: Schema
方法名 or 属性名: mode|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: Schema
方法名 or 属性名: skip|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: FieldNode|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: FieldNode
方法名 or 属性名: ructor(name|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: FieldNode
方法名 or 属性名: appendChild|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: FieldNode
方法名 or 属性名: default|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: FieldNode
方法名 or 属性名: nullable|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: FieldNode
方法名 or 属性名: type|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: KVStoreResultSet|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: KVStoreResultSet
方法名 or 属性名: getCount|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: KVStoreResultSet
方法名 or 属性名: getPosition|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: KVStoreResultSet
方法名 or 属性名: moveToFirst|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: KVStoreResultSet
方法名 or 属性名: moveToLast|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: KVStoreResultSet
方法名 or 属性名: moveToNext|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: KVStoreResultSet
方法名 or 属性名: moveToPrevious|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: KVStoreResultSet
方法名 or 属性名: move|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: KVStoreResultSet
方法名 or 属性名: moveToPosition|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: KVStoreResultSet
方法名 or 属性名: isFirst|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: KVStoreResultSet
方法名 or 属性名: isLast|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: KVStoreResultSet
方法名 or 属性名: isBeforeFirst|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: KVStoreResultSet
方法名 or 属性名: isAfterLast|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: KVStoreResultSet
方法名 or 属性名: getEntry|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: Query|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: Query
方法名 or 属性名: reset|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: Query
方法名 or 属性名: equalTo|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: Query
方法名 or 属性名: notEqualTo|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: Query
方法名 or 属性名: greaterThan|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: Query
方法名 or 属性名: lessThan|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: Query
方法名 or 属性名: greaterThanOrEqualTo|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: Query
方法名 or 属性名: lessThanOrEqualTo|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: Query
方法名 or 属性名: isNull|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: Query
方法名 or 属性名: inNumber|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: Query
方法名 or 属性名: inString|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: Query
方法名 or 属性名: notInNumber|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: Query
方法名 or 属性名: notInString|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: Query
方法名 or 属性名: like|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: Query
方法名 or 属性名: unlike|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: Query
方法名 or 属性名: and|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: Query
方法名 or 属性名: or|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: Query
方法名 or 属性名: orderByAsc|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: Query
方法名 or 属性名: orderByDesc|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: Query
方法名 or 属性名: limit|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: Query
方法名 or 属性名: isNotNull|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: Query
方法名 or 属性名: beginGroup|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: Query
方法名 or 属性名: endGroup|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: Query
方法名 or 属性名: prefixKey|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: Query
方法名 or 属性名: setSuggestIndex|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: Query
方法名 or 属性名: deviceId|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: Query
方法名 or 属性名: getSqlLike|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SingleKVStore|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: put|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: put|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: putBatch|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: putBatch|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: putBatch|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: putBatch|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: delete|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: delete|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: delete|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: delete|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: deleteBatch|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: deleteBatch|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: removeDeviceData|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: removeDeviceData|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: get|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: get|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: getEntries|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: getEntries|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: getEntries|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: getEntries|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: getResultSet|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: getResultSet|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: getResultSet|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: getResultSet|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: getResultSet|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: getResultSet|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: closeResultSet|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: closeResultSet|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: getResultSize|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: getResultSize|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: backup|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: backup|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: restore|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: restore|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: deleteBackup|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: deleteBackup|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: startTransaction|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: startTransaction|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: commit|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: commit|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: rollback|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: rollback|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: enableSync|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: enableSync|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: setSyncRange|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: setSyncRange|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: setSyncParam|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: setSyncParam|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: sync|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: sync|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: on_dataChange|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: on_syncComplete|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: off_dataChange|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: off_syncComplete|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: getSecurityLevel|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: getSecurityLevel|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: DeviceKVStore|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法名 or 属性名: get|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法名 or 属性名: get|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法名 or 属性名: getEntries|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法名 or 属性名: getEntries|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法名 or 属性名: getEntries|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法名 or 属性名: getEntries|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法名 or 属性名: getResultSet|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法名 or 属性名: getResultSet|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法名 or 属性名: getResultSet|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法名 or 属性名: getResultSet|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法名 or 属性名: getResultSet|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法名 or 属性名: getResultSet|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法名 or 属性名: getResultSize|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法名 or 属性名: getResultSize|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: distributedKVStore
方法名 or 属性名: createKVManager|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: distributedKVStore
方法名 or 属性名: createKVManager|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: KVManager|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: KVManager
方法名 or 属性名: getKVStore|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: KVManager
方法名 or 属性名: getKVStore|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: KVManager
方法名 or 属性名: closeKVStore|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: KVManager
方法名 or 属性名: closeKVStore|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: KVManager
方法名 or 属性名: deleteKVStore|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: KVManager
方法名 or 属性名: deleteKVStore|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: KVManager
方法名 or 属性名: getAllKVStoreId|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: KVManager
方法名 or 属性名: getAllKVStoreId|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: KVManager
方法名 or 属性名: on_distributedDataServiceDie|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: KVManager
方法名 or 属性名: off_distributedDataServiceDie|@ohos.data.distributedKVStore.d.ts| -|新增||模块名:ohos.data.rdb
类名:rdb
方法名 or 属性名:getRdbStoreV9|@ohos.data.rdb.d.ts| -|新增||模块名:ohos.data.rdb
类名:rdb
方法名 or 属性名:getRdbStoreV9|@ohos.data.rdb.d.ts| -|新增||模块名:ohos.data.rdb
类名:rdb
方法名 or 属性名:deleteRdbStoreV9|@ohos.data.rdb.d.ts| -|新增||模块名:ohos.data.rdb
类名:rdb
方法名 or 属性名:deleteRdbStoreV9|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: SecurityLevel|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: SecurityLevel
方法名 or 属性名:S1|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: SecurityLevel
方法名 or 属性名:S2|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: SecurityLevel
方法名 or 属性名:S3|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: SecurityLevel
方法名 or 属性名:S4|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbStoreV9|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:insert|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:insert|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:batchInsert|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:batchInsert|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:update|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:update|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:update|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:update|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:delete|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:delete|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:delete|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:delete|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:query|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:query|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:query|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:query|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:remoteQuery|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:remoteQuery|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:querySql|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:querySql|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:executeSql|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:executeSql|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:beginTransaction|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:commit|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:rollBack|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:backup|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:backup|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:restore|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:restore|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:setDistributedTables|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:setDistributedTables|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:obtainDistributedTableName|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:obtainDistributedTableName|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:sync|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:sync|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:on_dataChange|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:off_dataChange|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: StoreConfigV9|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: StoreConfigV9
方法名 or 属性名:name|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: StoreConfigV9
方法名 or 属性名:securityLevel|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: StoreConfigV9
方法名 or 属性名:encrypt|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbPredicatesV9|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法名 or 属性名:ructor(name|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法名 or 属性名:inDevices|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法名 or 属性名:inAllDevices|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法名 or 属性名:equalTo|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法名 or 属性名:notEqualTo|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法名 or 属性名:beginWrap|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法名 or 属性名:endWrap|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法名 or 属性名:or|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法名 or 属性名:and|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法名 or 属性名:contains|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法名 or 属性名:beginsWith|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法名 or 属性名:endsWith|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法名 or 属性名:isNull|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法名 or 属性名:isNotNull|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法名 or 属性名:like|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法名 or 属性名:glob|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法名 or 属性名:between|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法名 or 属性名:notBetween|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法名 or 属性名:greaterThan|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法名 or 属性名:lessThan|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法名 or 属性名:greaterThanOrEqualTo|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法名 or 属性名:lessThanOrEqualTo|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法名 or 属性名:orderByAsc|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法名 or 属性名:orderByDesc|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法名 or 属性名:distinct|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法名 or 属性名:limitAs|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法名 or 属性名:offsetAs|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法名 or 属性名:groupBy|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法名 or 属性名:indexedBy|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法名 or 属性名:in|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法名 or 属性名:notIn|@ohos.data.rdb.d.ts| -|新增||模块名: resultSet
类名: ResultSetV9|resultSet.d.ts| -|新增||模块名: resultSet
类名: ResultSetV9
方法名 or 属性名:columnNames|resultSet.d.ts| -|新增||模块名: resultSet
类名: ResultSetV9
方法名 or 属性名:columnCount|resultSet.d.ts| -|新增||模块名: resultSet
类名: ResultSetV9
方法名 or 属性名:rowCount|resultSet.d.ts| -|新增||模块名: resultSet
类名: ResultSetV9
方法名 or 属性名:rowIndex|resultSet.d.ts| -|新增||模块名: resultSet
类名: ResultSetV9
方法名 or 属性名:isAtFirstRow|resultSet.d.ts| -|新增||模块名: resultSet
类名: ResultSetV9
方法名 or 属性名:isAtLastRow|resultSet.d.ts| -|新增||模块名: resultSet
类名: ResultSetV9
方法名 or 属性名:isEnded|resultSet.d.ts| -|新增||模块名: resultSet
类名: ResultSetV9
方法名 or 属性名:isStarted|resultSet.d.ts| -|新增||模块名: resultSet
类名: ResultSetV9
方法名 or 属性名:isClosed|resultSet.d.ts| -|新增||模块名: resultSet
类名: ResultSetV9
方法名 or 属性名:getColumnIndex|resultSet.d.ts| -|新增||模块名: resultSet
类名: ResultSetV9
方法名 or 属性名:getColumnName|resultSet.d.ts| -|新增||模块名: resultSet
类名: ResultSetV9
方法名 or 属性名:goTo|resultSet.d.ts| -|新增||模块名: resultSet
类名: ResultSetV9
方法名 or 属性名:goToRow|resultSet.d.ts| -|新增||模块名: resultSet
类名: ResultSetV9
方法名 or 属性名:goToFirstRow|resultSet.d.ts| -|新增||模块名: resultSet
类名: ResultSetV9
方法名 or 属性名:goToLastRow|resultSet.d.ts| -|新增||模块名: resultSet
类名: ResultSetV9
方法名 or 属性名:goToNextRow|resultSet.d.ts| -|新增||模块名: resultSet
类名: ResultSetV9
方法名 or 属性名:goToPreviousRow|resultSet.d.ts| -|新增||模块名: resultSet
类名: ResultSetV9
方法名 or 属性名:getBlob|resultSet.d.ts| -|新增||模块名: resultSet
类名: ResultSetV9
方法名 or 属性名:getString|resultSet.d.ts| -|新增||模块名: resultSet
类名: ResultSetV9
方法名 or 属性名:getLong|resultSet.d.ts| -|新增||模块名: resultSet
类名: ResultSetV9
方法名 or 属性名:getDouble|resultSet.d.ts| -|新增||模块名: resultSet
类名: ResultSetV9
方法名 or 属性名:isColumnNull|resultSet.d.ts| -|新增||模块名: resultSet
类名: ResultSetV9
方法名 or 属性名:close|resultSet.d.ts| -|删除|模块名:ohos.data.distributedData
类名:KVManagerConfig
方法名 or 属性名:context||@ohos.data.distributedData.d.ts| -|删除|模块名:ohos.data.distributedData
类名:KVStore
方法名 or 属性名:backup||@ohos.data.distributedData.d.ts| -|删除|模块名:ohos.data.distributedData
类名:KVStore
方法名 or 属性名:backup||@ohos.data.distributedData.d.ts| -|删除|模块名:ohos.data.distributedData
类名:KVStore
方法名 or 属性名:restore||@ohos.data.distributedData.d.ts| -|删除|模块名:ohos.data.distributedData
类名:KVStore
方法名 or 属性名:restore||@ohos.data.distributedData.d.ts| -|删除|模块名:ohos.data.distributedData
类名:KVStore
方法名 or 属性名:deleteBackup||@ohos.data.distributedData.d.ts| -|删除|模块名:ohos.data.distributedData
类名:KVStore
方法名 or 属性名:deleteBackup||@ohos.data.distributedData.d.ts| -|删除|模块名:ohos.data.distributedData
类名:KVStore
方法名 or 属性名:off_syncComplete||@ohos.data.distributedData.d.ts| -|删除|模块名:ohos.data.distributedData
类名:SingleKVStore
方法名 or 属性名:on_dataChange||@ohos.data.distributedData.d.ts| -|删除|模块名:ohos.data.distributedData
类名:SingleKVStore
方法名 or 属性名:off_dataChange||@ohos.data.distributedData.d.ts| -|删除|模块名:ohos.data.distributedData
类名:DeviceKVStore
方法名 or 属性名:on_dataChange||@ohos.data.distributedData.d.ts| -|删除|模块名:ohos.data.distributedData
类名:DeviceKVStore
方法名 or 属性名:off_dataChange||@ohos.data.distributedData.d.ts| -|删除|模块名:ohos.data.distributedDataObject
类名:DistributedObject
方法名 or 属性名:save||@ohos.data.distributedDataObject.d.ts| -|删除|模块名:ohos.data.distributedDataObject
类名:DistributedObject
方法名 or 属性名:save||@ohos.data.distributedDataObject.d.ts| -|删除|模块名:ohos.data.distributedDataObject
类名:DistributedObject
方法名 or 属性名:revokeSave||@ohos.data.distributedDataObject.d.ts| -|删除|模块名:ohos.data.distributedDataObject
类名:DistributedObject
方法名 or 属性名:revokeSave||@ohos.data.distributedDataObject.d.ts| -|删除|模块名:ohos.data.rdb
类名:RdbStore
方法名 or 属性名:remoteQuery||@ohos.data.rdb.d.ts| -|删除|模块名:ohos.data.rdb
类名:RdbStore
方法名 or 属性名:remoteQuery||@ohos.data.rdb.d.ts| -|删除|模块名:ohos.data.rdb
类名:RdbStore
方法名 or 属性名:backup||@ohos.data.rdb.d.ts| -|删除|模块名:ohos.data.rdb
类名:RdbStore
方法名 or 属性名:backup||@ohos.data.rdb.d.ts| -|删除|模块名:ohos.data.rdb
类名:RdbStore
方法名 or 属性名:restore||@ohos.data.rdb.d.ts| -|删除|模块名:ohos.data.rdb
类名:RdbStore
方法名 or 属性名:restore||@ohos.data.rdb.d.ts| -|删除|模块名:ohos.data.rdb
类名:StoreConfig
方法名 or 属性名:encrypt||@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.distributedDataObject
类名: DistributedObjectV9|@ohos.data.distributedDataObject.d.ts| +|新增|NA|模块名: ohos.data.distributedDataObject
类名: DistributedObjectV9
方法名 or 属性名:setSessionId|@ohos.data.distributedDataObject.d.ts| +|新增|NA|模块名: ohos.data.distributedDataObject
类名: DistributedObjectV9
方法名 or 属性名:setSessionId|@ohos.data.distributedDataObject.d.ts| +|新增|NA|模块名: ohos.data.distributedDataObject
类名: DistributedObjectV9
方法名 or 属性名:setSessionId|@ohos.data.distributedDataObject.d.ts| +|新增|NA|模块名: ohos.data.distributedDataObject
类名: DistributedObjectV9
方法名 or 属性名:on_change|@ohos.data.distributedDataObject.d.ts| +|新增|NA|模块名: ohos.data.distributedDataObject
类名: DistributedObjectV9
方法名 or 属性名:off_change|@ohos.data.distributedDataObject.d.ts| +|新增|NA|模块名: ohos.data.distributedDataObject
类名: DistributedObjectV9
方法名 or 属性名:on_status|@ohos.data.distributedDataObject.d.ts| +|新增|NA|模块名: ohos.data.distributedDataObject
类名: DistributedObjectV9
方法名 or 属性名:off_status|@ohos.data.distributedDataObject.d.ts| +|新增|NA|模块名: ohos.data.distributedDataObject
类名: DistributedObjectV9
方法名 or 属性名:save|@ohos.data.distributedDataObject.d.ts| +|新增|NA|模块名: ohos.data.distributedDataObject
类名: DistributedObjectV9
方法名 or 属性名:save|@ohos.data.distributedDataObject.d.ts| +|新增|NA|模块名: ohos.data.distributedDataObject
类名: DistributedObjectV9
方法名 or 属性名:revokeSave|@ohos.data.distributedDataObject.d.ts| +|新增|NA|模块名: ohos.data.distributedDataObject
类名: DistributedObjectV9
方法名 or 属性名:revokeSave|@ohos.data.distributedDataObject.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: distributedKVStore|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: KVManagerConfig|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: KVManagerConfig
方法名 or 属性名: bundleName|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: KVManagerConfig
方法名 or 属性名: context|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Constants|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Constants
方法名 or 属性名: MAX_KEY_LENGTH|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Constants
方法名 or 属性名: MAX_VALUE_LENGTH|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Constants
方法名 or 属性名: MAX_KEY_LENGTH_DEVICE|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Constants
方法名 or 属性名: MAX_STORE_ID_LENGTH|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Constants
方法名 or 属性名: MAX_QUERY_LENGTH|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Constants
方法名 or 属性名: MAX_BATCH_SIZE|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: ValueType|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: ValueType
方法名 or 属性名: STRING|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: ValueType
方法名 or 属性名: INTEGER|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: ValueType
方法名 or 属性名: FLOAT|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: ValueType
方法名 or 属性名: BYTE_ARRAY|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: ValueType
方法名 or 属性名: BOOLEAN|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: ValueType
方法名 or 属性名: DOUBLE|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Value|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Value
方法名 or 属性名: type|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Value
方法名 or 属性名: value|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Entry|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Entry
方法名 or 属性名: key|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Entry
方法名 or 属性名: value|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: ChangeNotification|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: ChangeNotification
方法名 or 属性名: insertEntries|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: ChangeNotification
方法名 or 属性名: updateEntries|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: ChangeNotification
方法名 or 属性名: deleteEntries|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: ChangeNotification
方法名 or 属性名: deviceId|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SyncMode|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SyncMode
方法名 or 属性名: PULL_ONLY|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SyncMode
方法名 or 属性名: PUSH_ONLY|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SyncMode
方法名 or 属性名: PUSH_PULL|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SubscribeType|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SubscribeType
方法名 or 属性名: SUBSCRIBE_TYPE_LOCAL|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SubscribeType
方法名 or 属性名: SUBSCRIBE_TYPE_REMOTE|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SubscribeType
方法名 or 属性名: SUBSCRIBE_TYPE_ALL|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: KVStoreType|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: KVStoreType
方法名 or 属性名: DEVICE_COLLABORATION|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: KVStoreType
方法名 or 属性名: SINGLE_VERSION|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SecurityLevel|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SecurityLevel
方法名 or 属性名: S1|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SecurityLevel
方法名 or 属性名: S2|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SecurityLevel
方法名 or 属性名: S3|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SecurityLevel
方法名 or 属性名: S4|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Options|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Options
方法名 or 属性名: createIfMissing|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Options
方法名 or 属性名: encrypt|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Options
方法名 or 属性名: backup|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Options
方法名 or 属性名: autoSync|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Options
方法名 or 属性名: kvStoreType|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Options
方法名 or 属性名: securityLevel|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Options
方法名 or 属性名: schema|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Schema|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Schema
方法名 or 属性名: root|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Schema
方法名 or 属性名: indexes|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Schema
方法名 or 属性名: mode|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Schema
方法名 or 属性名: skip|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: FieldNode|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: FieldNode
方法名 or 属性名: ructor(name|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: FieldNode
方法名 or 属性名: appendChild|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: FieldNode
方法名 or 属性名: default|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: FieldNode
方法名 or 属性名: nullable|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: FieldNode
方法名 or 属性名: type|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: KVStoreResultSet|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: KVStoreResultSet
方法名 or 属性名: getCount|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: KVStoreResultSet
方法名 or 属性名: getPosition|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: KVStoreResultSet
方法名 or 属性名: moveToFirst|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: KVStoreResultSet
方法名 or 属性名: moveToLast|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: KVStoreResultSet
方法名 or 属性名: moveToNext|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: KVStoreResultSet
方法名 or 属性名: moveToPrevious|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: KVStoreResultSet
方法名 or 属性名: move|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: KVStoreResultSet
方法名 or 属性名: moveToPosition|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: KVStoreResultSet
方法名 or 属性名: isFirst|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: KVStoreResultSet
方法名 or 属性名: isLast|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: KVStoreResultSet
方法名 or 属性名: isBeforeFirst|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: KVStoreResultSet
方法名 or 属性名: isAfterLast|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: KVStoreResultSet
方法名 or 属性名: getEntry|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Query|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Query
方法名 or 属性名: reset|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Query
方法名 or 属性名: equalTo|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Query
方法名 or 属性名: notEqualTo|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Query
方法名 or 属性名: greaterThan|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Query
方法名 or 属性名: lessThan|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Query
方法名 or 属性名: greaterThanOrEqualTo|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Query
方法名 or 属性名: lessThanOrEqualTo|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Query
方法名 or 属性名: isNull|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Query
方法名 or 属性名: inNumber|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Query
方法名 or 属性名: inString|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Query
方法名 or 属性名: notInNumber|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Query
方法名 or 属性名: notInString|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Query
方法名 or 属性名: like|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Query
方法名 or 属性名: unlike|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Query
方法名 or 属性名: and|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Query
方法名 or 属性名: or|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Query
方法名 or 属性名: orderByAsc|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Query
方法名 or 属性名: orderByDesc|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Query
方法名 or 属性名: limit|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Query
方法名 or 属性名: isNotNull|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Query
方法名 or 属性名: beginGroup|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Query
方法名 or 属性名: endGroup|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Query
方法名 or 属性名: prefixKey|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Query
方法名 or 属性名: setSuggestIndex|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Query
方法名 or 属性名: deviceId|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Query
方法名 or 属性名: getSqlLike|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: put|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: put|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: putBatch|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: putBatch|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: putBatch|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: putBatch|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: delete|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: delete|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: delete|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: delete|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: deleteBatch|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: deleteBatch|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: removeDeviceData|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: removeDeviceData|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: get|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: get|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: getEntries|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: getEntries|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: getEntries|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: getEntries|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: getResultSet|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: getResultSet|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: getResultSet|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: getResultSet|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: getResultSet|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: getResultSet|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: closeResultSet|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: closeResultSet|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: getResultSize|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: getResultSize|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: backup|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: backup|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: restore|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: restore|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: deleteBackup|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: deleteBackup|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: startTransaction|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: startTransaction|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: commit|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: commit|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: rollback|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: rollback|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: enableSync|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: enableSync|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: setSyncRange|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: setSyncRange|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: setSyncParam|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: setSyncParam|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: sync|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: sync|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: on_dataChange|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: on_syncComplete|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: off_dataChange|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: off_syncComplete|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: getSecurityLevel|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: getSecurityLevel|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: DeviceKVStore|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法名 or 属性名: get|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法名 or 属性名: get|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法名 or 属性名: getEntries|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法名 or 属性名: getEntries|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法名 or 属性名: getEntries|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法名 or 属性名: getEntries|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法名 or 属性名: getResultSet|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法名 or 属性名: getResultSet|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法名 or 属性名: getResultSet|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法名 or 属性名: getResultSet|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法名 or 属性名: getResultSet|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法名 or 属性名: getResultSet|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法名 or 属性名: getResultSize|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法名 or 属性名: getResultSize|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: distributedKVStore
方法名 or 属性名: createKVManager|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: distributedKVStore
方法名 or 属性名: createKVManager|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: KVManager|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: KVManager
方法名 or 属性名: getKVStore|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: KVManager
方法名 or 属性名: getKVStore|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: KVManager
方法名 or 属性名: closeKVStore|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: KVManager
方法名 or 属性名: closeKVStore|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: KVManager
方法名 or 属性名: deleteKVStore|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: KVManager
方法名 or 属性名: deleteKVStore|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: KVManager
方法名 or 属性名: getAllKVStoreId|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: KVManager
方法名 or 属性名: getAllKVStoreId|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: KVManager
方法名 or 属性名: on_distributedDataServiceDie|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: KVManager
方法名 or 属性名: off_distributedDataServiceDie|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: SecurityLevel|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: SecurityLevel
方法名 or 属性名:S1|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: SecurityLevel
方法名 or 属性名:S2|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: SecurityLevel
方法名 or 属性名:S3|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: SecurityLevel
方法名 or 属性名:S4|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbStoreV9|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:insert|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:insert|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:batchInsert|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:batchInsert|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:update|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:update|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:update|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:update|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:delete|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:delete|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:delete|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:delete|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:query|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:query|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:query|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:query|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:remoteQuery|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:remoteQuery|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:querySql|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:querySql|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:executeSql|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:executeSql|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:beginTransaction|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:commit|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:rollBack|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:backup|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:backup|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:restore|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:restore|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:setDistributedTables|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:setDistributedTables|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:obtainDistributedTableName|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:obtainDistributedTableName|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:sync|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:sync|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:on_dataChange|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:off_dataChange|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: StoreConfigV9|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: StoreConfigV9
方法名 or 属性名:name|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: StoreConfigV9
方法名 or 属性名:securityLevel|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: StoreConfigV9
方法名 or 属性名:encrypt|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbPredicatesV9|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法名 or 属性名:ructor(name|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法名 or 属性名:inDevices|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法名 or 属性名:inAllDevices|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法名 or 属性名:equalTo|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法名 or 属性名:notEqualTo|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法名 or 属性名:beginWrap|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法名 or 属性名:endWrap|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法名 or 属性名:or|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法名 or 属性名:and|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法名 or 属性名:contains|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法名 or 属性名:beginsWith|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法名 or 属性名:endsWith|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法名 or 属性名:isNull|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法名 or 属性名:isNotNull|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法名 or 属性名:like|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法名 or 属性名:glob|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法名 or 属性名:between|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法名 or 属性名:notBetween|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法名 or 属性名:greaterThan|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法名 or 属性名:lessThan|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法名 or 属性名:greaterThanOrEqualTo|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法名 or 属性名:lessThanOrEqualTo|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法名 or 属性名:orderByAsc|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法名 or 属性名:orderByDesc|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法名 or 属性名:distinct|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法名 or 属性名:limitAs|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法名 or 属性名:offsetAs|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法名 or 属性名:groupBy|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法名 or 属性名:indexedBy|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法名 or 属性名:in|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法名 or 属性名:notIn|@ohos.data.rdb.d.ts| +|新增|NA|模块名: resultSet
类名: ResultSetV9|resultSet.d.ts| +|新增|NA|模块名: resultSet
类名: ResultSetV9
方法名 or 属性名:columnNames|resultSet.d.ts| +|新增|NA|模块名: resultSet
类名: ResultSetV9
方法名 or 属性名:columnCount|resultSet.d.ts| +|新增|NA|模块名: resultSet
类名: ResultSetV9
方法名 or 属性名:rowCount|resultSet.d.ts| +|新增|NA|模块名: resultSet
类名: ResultSetV9
方法名 or 属性名:rowIndex|resultSet.d.ts| +|新增|NA|模块名: resultSet
类名: ResultSetV9
方法名 or 属性名:isAtFirstRow|resultSet.d.ts| +|新增|NA|模块名: resultSet
类名: ResultSetV9
方法名 or 属性名:isAtLastRow|resultSet.d.ts| +|新增|NA|模块名: resultSet
类名: ResultSetV9
方法名 or 属性名:isEnded|resultSet.d.ts| +|新增|NA|模块名: resultSet
类名: ResultSetV9
方法名 or 属性名:isStarted|resultSet.d.ts| +|新增|NA|模块名: resultSet
类名: ResultSetV9
方法名 or 属性名:isClosed|resultSet.d.ts| +|新增|NA|模块名: resultSet
类名: ResultSetV9
方法名 or 属性名:getColumnIndex|resultSet.d.ts| +|新增|NA|模块名: resultSet
类名: ResultSetV9
方法名 or 属性名:getColumnName|resultSet.d.ts| +|新增|NA|模块名: resultSet
类名: ResultSetV9
方法名 or 属性名:goTo|resultSet.d.ts| +|新增|NA|模块名: resultSet
类名: ResultSetV9
方法名 or 属性名:goToRow|resultSet.d.ts| +|新增|NA|模块名: resultSet
类名: ResultSetV9
方法名 or 属性名:goToFirstRow|resultSet.d.ts| +|新增|NA|模块名: resultSet
类名: ResultSetV9
方法名 or 属性名:goToLastRow|resultSet.d.ts| +|新增|NA|模块名: resultSet
类名: ResultSetV9
方法名 or 属性名:goToNextRow|resultSet.d.ts| +|新增|NA|模块名: resultSet
类名: ResultSetV9
方法名 or 属性名:goToPreviousRow|resultSet.d.ts| +|新增|NA|模块名: resultSet
类名: ResultSetV9
方法名 or 属性名:getBlob|resultSet.d.ts| +|新增|NA|模块名: resultSet
类名: ResultSetV9
方法名 or 属性名:getString|resultSet.d.ts| +|新增|NA|模块名: resultSet
类名: ResultSetV9
方法名 or 属性名:getLong|resultSet.d.ts| +|新增|NA|模块名: resultSet
类名: ResultSetV9
方法名 or 属性名:getDouble|resultSet.d.ts| +|新增|NA|模块名: resultSet
类名: ResultSetV9
方法名 or 属性名:isColumnNull|resultSet.d.ts| +|新增|NA|模块名: resultSet
类名: ResultSetV9
方法名 or 属性名:close|resultSet.d.ts| +|删除|模块名:ohos.data.distributedData
类名:KVManagerConfig
方法名 or 属性名:context|NA|@ohos.data.distributedData.d.ts| +|删除|模块名:ohos.data.distributedData
类名:KVStore
方法名 or 属性名:backup|NA|@ohos.data.distributedData.d.ts| +|删除|模块名:ohos.data.distributedData
类名:KVStore
方法名 or 属性名:backup|NA|@ohos.data.distributedData.d.ts| +|删除|模块名:ohos.data.distributedData
类名:KVStore
方法名 or 属性名:restore|NA|@ohos.data.distributedData.d.ts| +|删除|模块名:ohos.data.distributedData
类名:KVStore
方法名 or 属性名:restore|NA|@ohos.data.distributedData.d.ts| +|删除|模块名:ohos.data.distributedData
类名:KVStore
方法名 or 属性名:deleteBackup|NA|@ohos.data.distributedData.d.ts| +|删除|模块名:ohos.data.distributedData
类名:KVStore
方法名 or 属性名:deleteBackup|NA|@ohos.data.distributedData.d.ts| +|删除|模块名:ohos.data.distributedData
类名:KVStore
方法名 or 属性名:off_syncComplete|NA|@ohos.data.distributedData.d.ts| +|删除|模块名:ohos.data.distributedData
类名:SingleKVStore
方法名 or 属性名:on_dataChange|NA|@ohos.data.distributedData.d.ts| +|删除|模块名:ohos.data.distributedData
类名:SingleKVStore
方法名 or 属性名:off_dataChange|NA|@ohos.data.distributedData.d.ts| +|删除|模块名:ohos.data.distributedData
类名:DeviceKVStore
方法名 or 属性名:on_dataChange|NA|@ohos.data.distributedData.d.ts| +|删除|模块名:ohos.data.distributedData
类名:DeviceKVStore
方法名 or 属性名:off_dataChange|NA|@ohos.data.distributedData.d.ts| +|删除|模块名:ohos.data.distributedDataObject
类名:DistributedObject
方法名 or 属性名:save|NA|@ohos.data.distributedDataObject.d.ts| +|删除|模块名:ohos.data.distributedDataObject
类名:DistributedObject
方法名 or 属性名:save|NA|@ohos.data.distributedDataObject.d.ts| +|删除|模块名:ohos.data.distributedDataObject
类名:DistributedObject
方法名 or 属性名:revokeSave|NA|@ohos.data.distributedDataObject.d.ts| +|删除|模块名:ohos.data.distributedDataObject
类名:DistributedObject
方法名 or 属性名:revokeSave|NA|@ohos.data.distributedDataObject.d.ts| +|删除|模块名:ohos.data.rdb
类名:RdbStore
方法名 or 属性名:remoteQuery|NA|@ohos.data.rdb.d.ts| +|删除|模块名:ohos.data.rdb
类名:RdbStore
方法名 or 属性名:remoteQuery|NA|@ohos.data.rdb.d.ts| +|删除|模块名:ohos.data.rdb
类名:RdbStore
方法名 or 属性名:backup|NA|@ohos.data.rdb.d.ts| +|删除|模块名:ohos.data.rdb
类名:RdbStore
方法名 or 属性名:backup|NA|@ohos.data.rdb.d.ts| +|删除|模块名:ohos.data.rdb
类名:RdbStore
方法名 or 属性名:restore|NA|@ohos.data.rdb.d.ts| +|删除|模块名:ohos.data.rdb
类名:RdbStore
方法名 or 属性名:restore|NA|@ohos.data.rdb.d.ts| |model有变化|类名:dataShare
model:|类名:dataShare
model:@StageModelOnly|@ohos.data.dataShare.d.ts| +|model有变化|方法名 or 属性名:createDataShareHelper
model:|方法名 or 属性名:createDataShareHelper
model:@StageModelOnly|@ohos.data.dataShare.d.ts| +|model有变化|方法名 or 属性名:createDataShareHelper
model:|方法名 or 属性名:createDataShareHelper
model:@StageModelOnly|@ohos.data.dataShare.d.ts| |访问级别有变化|类名:dataShare
访问级别:公开API|类名:dataShare
访问级别:系统API|@ohos.data.dataShare.d.ts| |废弃版本有变化|类名:distributedData
废弃版本:N/A|类名:distributedData
废弃版本:9
代替接口:ohos.data.distributedKVStore |@ohos.data.distributedData.d.ts| |废弃版本有变化|类名:KVManagerConfig
废弃版本:N/A|类名:KVManagerConfig
废弃版本:9
代替接口:ohos.data.distributedKVStore.KVManagerConfig |@ohos.data.distributedData.d.ts| diff --git a/zh-cn/release-notes/api-diff/monthly-202210/js-apidiff-distributed-hardware.md b/zh-cn/release-notes/api-diff/monthly-202210/js-apidiff-distributed-hardware.md index a51c9cf666c95920991c99d183a8d51046b0ecf2..6893b7a86c19d4f33fec8492f7ce3fc2b3ea827c 100644 --- a/zh-cn/release-notes/api-diff/monthly-202210/js-apidiff-distributed-hardware.md +++ b/zh-cn/release-notes/api-diff/monthly-202210/js-apidiff-distributed-hardware.md @@ -1,5 +1,5 @@ -| 操作 | 新版本 | 旧版本 | d.ts文件 | +| 操作 | 旧版本 | 新版本 | d.ts文件 | | ---- | ------ | ------ | -------- | -|新增||模块名: ohos.distributedHardware.deviceManager
类名: DeviceManager
方法名 or 属性名: setUserOperation|@ohos.distributedHardware.deviceManager.d.ts| -|新增||模块名: ohos.distributedHardware.deviceManager
类名: DeviceManager
方法名 or 属性名: on_uiStateChange|@ohos.distributedHardware.deviceManager.d.ts| -|新增||模块名: ohos.distributedHardware.deviceManager
类名: DeviceManager
方法名 or 属性名: off_uiStateChange|@ohos.distributedHardware.deviceManager.d.ts| +|新增|NA|模块名: ohos.distributedHardware.deviceManager
类名: DeviceManager
方法名 or 属性名: setUserOperation|@ohos.distributedHardware.deviceManager.d.ts| +|新增|NA|模块名: ohos.distributedHardware.deviceManager
类名: DeviceManager
方法名 or 属性名: on_uiStateChange|@ohos.distributedHardware.deviceManager.d.ts| +|新增|NA|模块名: ohos.distributedHardware.deviceManager
类名: DeviceManager
方法名 or 属性名: off_uiStateChange|@ohos.distributedHardware.deviceManager.d.ts| diff --git a/zh-cn/release-notes/api-diff/monthly-202210/js-apidiff-file-management.md b/zh-cn/release-notes/api-diff/monthly-202210/js-apidiff-file-management.md index e6046286e2909563be52ac0e96cc15cf23b85493..7df264bb91f60f7a636c617a4371a756d71cc943 100644 --- a/zh-cn/release-notes/api-diff/monthly-202210/js-apidiff-file-management.md +++ b/zh-cn/release-notes/api-diff/monthly-202210/js-apidiff-file-management.md @@ -1,294 +1,168 @@ -| 操作 | 新版本 | 旧版本 | d.ts文件 | +| 操作 | 旧版本 | 新版本 | d.ts文件 | | ---- | ------ | ------ | -------- | -|新增||模块名: ohos.filemanagement.userFileManager
类名: userFileManager|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: userFileManager
方法名 or 属性名: getUserFileMgr|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: FileType|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: FileType
方法名 or 属性名: IMAGE|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: FileType
方法名 or 属性名: VIDEO|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: FileType
方法名 or 属性名: AUDIO|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: FileAsset|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: FileAsset
方法名 or 属性名: uri|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: FileAsset
方法名 or 属性名: fileType|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: FileAsset
方法名 or 属性名: displayName|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: FileAsset
方法名 or 属性名: get|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: FileAsset
方法名 or 属性名: set|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: FileAsset
方法名 or 属性名: commitModify|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: FileAsset
方法名 or 属性名: commitModify|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: FileAsset
方法名 or 属性名: open|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: FileAsset
方法名 or 属性名: open|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: FileAsset
方法名 or 属性名: close|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: FileAsset
方法名 or 属性名: close|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: FileAsset
方法名 or 属性名: getThumbnail|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: FileAsset
方法名 or 属性名: getThumbnail|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: FileAsset
方法名 or 属性名: getThumbnail|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: FileAsset
方法名 or 属性名: favorite|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: FileAsset
方法名 or 属性名: favorite|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: AudioKey|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: AudioKey
方法名 or 属性名: URI|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: AudioKey
方法名 or 属性名: DISPLAY_NAME|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: AudioKey
方法名 or 属性名: DATE_ADDED|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: AudioKey
方法名 or 属性名: DATE_MODIFIED|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: AudioKey
方法名 or 属性名: TITLE|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: AudioKey
方法名 or 属性名: ARTIST|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: AudioKey
方法名 or 属性名: AUDIOALBUM|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: AudioKey
方法名 or 属性名: DURATION|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: AudioKey
方法名 or 属性名: FAVORITE|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: ImageVideoKey|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: ImageVideoKey
方法名 or 属性名: URI|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: ImageVideoKey
方法名 or 属性名: FILE_TYPE|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: ImageVideoKey
方法名 or 属性名: DISPLAY_NAME|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: ImageVideoKey
方法名 or 属性名: DATE_ADDED|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: ImageVideoKey
方法名 or 属性名: DATE_MODIFIED|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: ImageVideoKey
方法名 or 属性名: TITLE|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: ImageVideoKey
方法名 or 属性名: DURATION|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: ImageVideoKey
方法名 or 属性名: WIDTH|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: ImageVideoKey
方法名 or 属性名: HEIGHT|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: ImageVideoKey
方法名 or 属性名: DATE_TAKEN|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: ImageVideoKey
方法名 or 属性名: ORIENTATION|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: ImageVideoKey
方法名 or 属性名: FAVORITE|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: AlbumKey|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: AlbumKey
方法名 or 属性名: URI|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: AlbumKey
方法名 or 属性名: FILE_TYPE|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: AlbumKey
方法名 or 属性名: ALBUM_NAME|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: AlbumKey
方法名 or 属性名: DATE_ADDED|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: AlbumKey
方法名 or 属性名: DATE_MODIFIED|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: FetchOptions|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: FetchOptions
方法名 or 属性名: fetchColumns|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: FetchOptions
方法名 or 属性名: predicates|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: AlbumFetchOptions|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: AlbumFetchOptions
方法名 or 属性名: predicates|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: FetchResult|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: FetchResult
方法名 or 属性名: getCount|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: FetchResult
方法名 or 属性名: isAfterLast|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: FetchResult
方法名 or 属性名: close|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: FetchResult
方法名 or 属性名: getFirstObject|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: FetchResult
方法名 or 属性名: getFirstObject|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: FetchResult
方法名 or 属性名: getNextObject|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: FetchResult
方法名 or 属性名: getNextObject|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: FetchResult
方法名 or 属性名: getLastObject|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: FetchResult
方法名 or 属性名: getLastObject|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: FetchResult
方法名 or 属性名: getPositionObject|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: FetchResult
方法名 or 属性名: getPositionObject|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: AbsAlbum|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: AbsAlbum
方法名 or 属性名: albumName|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: AbsAlbum
方法名 or 属性名: albumUri|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: AbsAlbum
方法名 or 属性名: dateModified|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: AbsAlbum
方法名 or 属性名: count|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: AbsAlbum
方法名 or 属性名: coverUri|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: AbsAlbum
方法名 or 属性名: getPhotoAssets|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: AbsAlbum
方法名 or 属性名: getPhotoAssets|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: Album|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: Album
方法名 or 属性名: commitModify|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: Album
方法名 or 属性名: commitModify|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: UserFileManager|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法名 or 属性名: getPhotoAssets|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法名 or 属性名: getPhotoAssets|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法名 or 属性名: createPhotoAsset|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法名 or 属性名: createPhotoAsset|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法名 or 属性名: createPhotoAsset|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法名 or 属性名: getPhotoAlbums|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法名 or 属性名: getPhotoAlbums|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法名 or 属性名: getPrivateAlbum|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法名 or 属性名: getPrivateAlbum|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法名 or 属性名: getAudioAssets|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法名 or 属性名: getAudioAssets|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法名 or 属性名: delete|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法名 or 属性名: delete|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法名 or 属性名: on_deviceChange|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法名 or 属性名: on_albumChange|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法名 or 属性名: on_imageChange|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法名 or 属性名: on_audioChange|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法名 or 属性名: on_videoChange|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法名 or 属性名: on_remoteFileChange|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法名 or 属性名: off_deviceChange|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法名 or 属性名: off_albumChange|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法名 or 属性名: off_imageChange|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法名 or 属性名: off_audioChange|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法名 or 属性名: off_videoChange|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法名 or 属性名: off_remoteFileChange|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法名 or 属性名: getActivePeers|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法名 or 属性名: getActivePeers|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法名 or 属性名: getAllPeers|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法名 or 属性名: getAllPeers|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法名 or 属性名: release|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法名 or 属性名: release|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: PeerInfo|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: PeerInfo
方法名 or 属性名: deviceName|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: PeerInfo
方法名 or 属性名: networkId|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: PeerInfo
方法名 or 属性名: isOnline|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: PrivateAlbumType|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: PrivateAlbumType
方法名 or 属性名: TYPE_FAVORITE|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: PrivateAlbumType
方法名 or 属性名: TYPE_TRASH|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: PrivateAlbum|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: PrivateAlbum
方法名 or 属性名: delete|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: PrivateAlbum
方法名 or 属性名: delete|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: PrivateAlbum
方法名 or 属性名: recover|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: PrivateAlbum
方法名 or 属性名: recover|@ohos.filemanagement.userFileManager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: userfile_manager||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: userfile_manager
方法名 or 属性名: getUserFileMgr||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: userfile_manager
方法名 or 属性名: getUserFileMgr||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: MediaType||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: MediaType
方法名 or 属性名: FILE||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: MediaType
方法名 or 属性名: IMAGE||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: MediaType
方法名 or 属性名: VIDEO||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: MediaType
方法名 or 属性名: AUDIO||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: FileAsset||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: FileAsset
方法名 or 属性名: uri||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: FileAsset
方法名 or 属性名: mediaType||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: FileAsset
方法名 or 属性名: displayName||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: FileAsset
方法名 or 属性名: isDirectory||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: FileAsset
方法名 or 属性名: isDirectory||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: FileAsset
方法名 or 属性名: commitModify||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: FileAsset
方法名 or 属性名: commitModify||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: FileAsset
方法名 or 属性名: open||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: FileAsset
方法名 or 属性名: open||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: FileAsset
方法名 or 属性名: close||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: FileAsset
方法名 or 属性名: close||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: FileAsset
方法名 or 属性名: getThumbnail||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: FileAsset
方法名 or 属性名: getThumbnail||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: FileAsset
方法名 or 属性名: getThumbnail||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: FileAsset
方法名 or 属性名: favorite||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: FileAsset
方法名 or 属性名: favorite||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: FileAsset
方法名 or 属性名: isFavorite||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: FileAsset
方法名 or 属性名: isFavorite||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: FileAsset
方法名 or 属性名: trash||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: FileAsset
方法名 or 属性名: trash||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: FileAsset
方法名 or 属性名: isTrash||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: FileAsset
方法名 or 属性名: isTrash||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: FileKey||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: FileKey
方法名 or 属性名: URI||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: FileKey
方法名 or 属性名: RELATIVE_PATH||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: FileKey
方法名 or 属性名: DISPLAY_NAME||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: FileKey
方法名 or 属性名: DATE_ADDED||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: FileKey
方法名 or 属性名: DATE_MODIFIED||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: FileKey
方法名 or 属性名: TITLE||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: AudioKey||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: AudioKey
方法名 or 属性名: URI||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: AudioKey
方法名 or 属性名: RELATIVE_PATH||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: AudioKey
方法名 or 属性名: DISPLAY_NAME||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: AudioKey
方法名 or 属性名: DATE_ADDED||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: AudioKey
方法名 or 属性名: DATE_MODIFIED||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: AudioKey
方法名 or 属性名: TITLE||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: AudioKey
方法名 or 属性名: ARTIST||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: AudioKey
方法名 or 属性名: AUDIOALBUM||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: AudioKey
方法名 or 属性名: DURATION||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: ImageVideoKey||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: ImageVideoKey
方法名 or 属性名: URI||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: ImageVideoKey
方法名 or 属性名: RELATIVE_PATH||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: ImageVideoKey
方法名 or 属性名: DISPLAY_NAME||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: ImageVideoKey
方法名 or 属性名: DATE_ADDED||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: ImageVideoKey
方法名 or 属性名: DATE_MODIFIED||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: ImageVideoKey
方法名 or 属性名: TITLE||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: ImageVideoKey
方法名 or 属性名: DURATION||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: ImageVideoKey
方法名 or 属性名: WIDTH||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: ImageVideoKey
方法名 or 属性名: HEIGHT||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: ImageVideoKey
方法名 or 属性名: DATE_TAKEN||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: AlbumKey||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: AlbumKey
方法名 or 属性名: URI||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: AlbumKey
方法名 or 属性名: RELATIVE_PATH||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: AlbumKey
方法名 or 属性名: DISPLAY_NAME||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: AlbumKey
方法名 or 属性名: DATE_ADDED||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: AlbumKey
方法名 or 属性名: DATE_MODIFIED||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: MediaFetchOptions||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: MediaFetchOptions
方法名 or 属性名: selections||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: MediaFetchOptions
方法名 or 属性名: selectionArgs||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: FetchFileResult||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: FetchFileResult
方法名 or 属性名: getCount||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: FetchFileResult
方法名 or 属性名: isAfterLast||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: FetchFileResult
方法名 or 属性名: close||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: FetchFileResult
方法名 or 属性名: getFirstObject||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: FetchFileResult
方法名 or 属性名: getFirstObject||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: FetchFileResult
方法名 or 属性名: getNextObject||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: FetchFileResult
方法名 or 属性名: getNextObject||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: FetchFileResult
方法名 or 属性名: getLastObject||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: FetchFileResult
方法名 or 属性名: getLastObject||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: FetchFileResult
方法名 or 属性名: getPositionObject||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: FetchFileResult
方法名 or 属性名: getPositionObject||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: Album||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: Album
方法名 or 属性名: albumName||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: Album
方法名 or 属性名: albumUri||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: Album
方法名 or 属性名: dateModified||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: Album
方法名 or 属性名: count||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: Album
方法名 or 属性名: relativePath||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: Album
方法名 or 属性名: coverUri||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: Album
方法名 or 属性名: commitModify||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: Album
方法名 or 属性名: commitModify||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: Album
方法名 or 属性名: getFileAssets||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: Album
方法名 or 属性名: getFileAssets||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: Album
方法名 or 属性名: getFileAssets||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: DirectoryType||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: DirectoryType
方法名 or 属性名: DIR_CAMERA||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: DirectoryType
方法名 or 属性名: DIR_VIDEO||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: DirectoryType
方法名 or 属性名: DIR_IMAGE||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: DirectoryType
方法名 or 属性名: DIR_AUDIO||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: DirectoryType
方法名 or 属性名: DIR_DOCUMENTS||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: DirectoryType
方法名 or 属性名: DIR_DOWNLOAD||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: UserFileManager||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: UserFileManager
方法名 or 属性名: getPublicDirectory||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: UserFileManager
方法名 or 属性名: getPublicDirectory||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: UserFileManager
方法名 or 属性名: getFileAssets||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: UserFileManager
方法名 or 属性名: getFileAssets||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: UserFileManager
方法名 or 属性名: on_deviceChange||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: UserFileManager
方法名 or 属性名: on_albumChange||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: UserFileManager
方法名 or 属性名: on_imageChange||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: UserFileManager
方法名 or 属性名: on_audioChange||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: UserFileManager
方法名 or 属性名: on_videoChange||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: UserFileManager
方法名 or 属性名: on_fileChange||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: UserFileManager
方法名 or 属性名: on_remoteFileChange||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: UserFileManager
方法名 or 属性名: off_deviceChange||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: UserFileManager
方法名 or 属性名: off_albumChange||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: UserFileManager
方法名 or 属性名: off_imageChange||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: UserFileManager
方法名 or 属性名: off_audioChange||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: UserFileManager
方法名 or 属性名: off_videoChange||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: UserFileManager
方法名 or 属性名: off_fileChange||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: UserFileManager
方法名 or 属性名: off_remoteFileChange||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: UserFileManager
方法名 or 属性名: createAsset||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: UserFileManager
方法名 or 属性名: createAsset||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: UserFileManager
方法名 or 属性名: deleteAsset||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: UserFileManager
方法名 or 属性名: deleteAsset||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: UserFileManager
方法名 or 属性名: getAlbums||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: UserFileManager
方法名 or 属性名: getAlbums||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: UserFileManager
方法名 or 属性名: getPrivateAlbum||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: UserFileManager
方法名 or 属性名: getPrivateAlbum||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: UserFileManager
方法名 or 属性名: getActivePeers||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: UserFileManager
方法名 or 属性名: getActivePeers||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: UserFileManager
方法名 or 属性名: getAllPeers||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: UserFileManager
方法名 or 属性名: getAllPeers||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: UserFileManager
方法名 or 属性名: release||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: UserFileManager
方法名 or 属性名: release||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: Size||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: Size
方法名 or 属性名: width||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: Size
方法名 or 属性名: height||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: PeerInfo||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: PeerInfo
方法名 or 属性名: deviceName||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: PeerInfo
方法名 or 属性名: networkId||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: PeerInfo
方法名 or 属性名: isOnline||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: VirtualAlbumType||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: VirtualAlbumType
方法名 or 属性名: TYPE_FAVORITE||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: VirtualAlbumType
方法名 or 属性名: TYPE_TRASH||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: VirtualAlbum||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: VirtualAlbum
方法名 or 属性名: getFileAssets||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: VirtualAlbum
方法名 or 属性名: getFileAssets||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.fileManager
类名: filemanager||@ohos.fileManager.d.ts| -|删除|模块名: ohos.fileManager
类名: filemanager
方法名 or 属性名: listFile||@ohos.fileManager.d.ts| -|删除|模块名: ohos.fileManager
类名: filemanager
方法名 or 属性名: listFile||@ohos.fileManager.d.ts| -|删除|模块名: ohos.fileManager
类名: filemanager
方法名 or 属性名: listFile||@ohos.fileManager.d.ts| -|删除|模块名: ohos.fileManager
类名: filemanager
方法名 or 属性名: getRoot||@ohos.fileManager.d.ts| -|删除|模块名: ohos.fileManager
类名: filemanager
方法名 or 属性名: getRoot||@ohos.fileManager.d.ts| -|删除|模块名: ohos.fileManager
类名: filemanager
方法名 or 属性名: getRoot||@ohos.fileManager.d.ts| -|删除|模块名: ohos.fileManager
类名: filemanager
方法名 or 属性名: createFile||@ohos.fileManager.d.ts| -|删除|模块名: ohos.fileManager
类名: filemanager
方法名 or 属性名: createFile||@ohos.fileManager.d.ts| -|删除|模块名: ohos.fileManager
类名: filemanager
方法名 or 属性名: createFile||@ohos.fileManager.d.ts| -|删除|模块名: ohos.fileManager
类名: FileInfo||@ohos.fileManager.d.ts| -|删除|模块名: ohos.fileManager
类名: FileInfo
方法名 or 属性名: name||@ohos.fileManager.d.ts| -|删除|模块名: ohos.fileManager
类名: FileInfo
方法名 or 属性名: path||@ohos.fileManager.d.ts| -|删除|模块名: ohos.fileManager
类名: FileInfo
方法名 or 属性名: type||@ohos.fileManager.d.ts| -|删除|模块名: ohos.fileManager
类名: FileInfo
方法名 or 属性名: size||@ohos.fileManager.d.ts| -|删除|模块名: ohos.fileManager
类名: FileInfo
方法名 or 属性名: addedTime||@ohos.fileManager.d.ts| -|删除|模块名: ohos.fileManager
类名: FileInfo
方法名 or 属性名: modifiedTime||@ohos.fileManager.d.ts| -|删除|模块名: ohos.fileManager
类名: DevInfo||@ohos.fileManager.d.ts| -|删除|模块名: ohos.fileManager
类名: DevInfo
方法名 or 属性名: name||@ohos.fileManager.d.ts| +|新增|NA|方法名 or 属性名:SUPPORTS_READ
函数:const SUPPORTS_READ = 0b1;|@ohos.fileExtensionInfo.d.ts| +|新增|NA|方法名 or 属性名:SUPPORTS_WRITE
函数:const SUPPORTS_WRITE = 0b10;|@ohos.fileExtensionInfo.d.ts| +|新增|NA|方法名 or 属性名:REPRESENTS_FILE
函数:const REPRESENTS_FILE = 0b1;|@ohos.fileExtensionInfo.d.ts| +|新增|NA|方法名 or 属性名:REPRESENTS_DIR
函数:const REPRESENTS_DIR = 0b10;|@ohos.fileExtensionInfo.d.ts| +|新增|NA|方法名 or 属性名:SUPPORTS_READ
函数:const SUPPORTS_READ = 0b100;|@ohos.fileExtensionInfo.d.ts| +|新增|NA|方法名 or 属性名:SUPPORTS_WRITE
函数:const SUPPORTS_WRITE = 0b1000;|@ohos.fileExtensionInfo.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: userFileManager|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: userFileManager
方法名 or 属性名: getUserFileMgr|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: FileType|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: FileType
方法名 or 属性名: IMAGE|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: FileType
方法名 or 属性名: VIDEO|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: FileType
方法名 or 属性名: AUDIO|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: FileAsset|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: FileAsset
方法名 or 属性名: uri|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: FileAsset
方法名 or 属性名: fileType|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: FileAsset
方法名 or 属性名: displayName|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: FileAsset
方法名 or 属性名: get|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: FileAsset
方法名 or 属性名: set|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: FileAsset
方法名 or 属性名: commitModify|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: FileAsset
方法名 or 属性名: commitModify|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: FileAsset
方法名 or 属性名: open|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: FileAsset
方法名 or 属性名: open|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: FileAsset
方法名 or 属性名: close|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: FileAsset
方法名 or 属性名: close|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: FileAsset
方法名 or 属性名: getThumbnail|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: FileAsset
方法名 or 属性名: getThumbnail|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: FileAsset
方法名 or 属性名: getThumbnail|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: FileAsset
方法名 or 属性名: favorite|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: FileAsset
方法名 or 属性名: favorite|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: AudioKey|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: AudioKey
方法名 or 属性名: URI|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: AudioKey
方法名 or 属性名: DISPLAY_NAME|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: AudioKey
方法名 or 属性名: DATE_ADDED|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: AudioKey
方法名 or 属性名: DATE_MODIFIED|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: AudioKey
方法名 or 属性名: TITLE|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: AudioKey
方法名 or 属性名: ARTIST|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: AudioKey
方法名 or 属性名: AUDIOALBUM|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: AudioKey
方法名 or 属性名: DURATION|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: AudioKey
方法名 or 属性名: FAVORITE|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: ImageVideoKey|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: ImageVideoKey
方法名 or 属性名: URI|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: ImageVideoKey
方法名 or 属性名: FILE_TYPE|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: ImageVideoKey
方法名 or 属性名: DISPLAY_NAME|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: ImageVideoKey
方法名 or 属性名: DATE_ADDED|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: ImageVideoKey
方法名 or 属性名: DATE_MODIFIED|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: ImageVideoKey
方法名 or 属性名: TITLE|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: ImageVideoKey
方法名 or 属性名: DURATION|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: ImageVideoKey
方法名 or 属性名: WIDTH|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: ImageVideoKey
方法名 or 属性名: HEIGHT|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: ImageVideoKey
方法名 or 属性名: DATE_TAKEN|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: ImageVideoKey
方法名 or 属性名: ORIENTATION|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: ImageVideoKey
方法名 or 属性名: FAVORITE|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: AlbumKey|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: AlbumKey
方法名 or 属性名: URI|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: AlbumKey
方法名 or 属性名: FILE_TYPE|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: AlbumKey
方法名 or 属性名: ALBUM_NAME|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: AlbumKey
方法名 or 属性名: DATE_ADDED|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: AlbumKey
方法名 or 属性名: DATE_MODIFIED|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: FetchOptions|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: FetchOptions
方法名 or 属性名: fetchColumns|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: FetchOptions
方法名 or 属性名: predicates|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: AlbumFetchOptions|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: AlbumFetchOptions
方法名 or 属性名: predicates|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: FetchResult|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: FetchResult
方法名 or 属性名: getCount|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: FetchResult
方法名 or 属性名: isAfterLast|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: FetchResult
方法名 or 属性名: close|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: FetchResult
方法名 or 属性名: getFirstObject|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: FetchResult
方法名 or 属性名: getFirstObject|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: FetchResult
方法名 or 属性名: getNextObject|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: FetchResult
方法名 or 属性名: getNextObject|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: FetchResult
方法名 or 属性名: getLastObject|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: FetchResult
方法名 or 属性名: getLastObject|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: FetchResult
方法名 or 属性名: getPositionObject|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: FetchResult
方法名 or 属性名: getPositionObject|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: AbsAlbum|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: AbsAlbum
方法名 or 属性名: albumName|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: AbsAlbum
方法名 or 属性名: albumUri|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: AbsAlbum
方法名 or 属性名: dateModified|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: AbsAlbum
方法名 or 属性名: count|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: AbsAlbum
方法名 or 属性名: coverUri|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: AbsAlbum
方法名 or 属性名: getPhotoAssets|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: AbsAlbum
方法名 or 属性名: getPhotoAssets|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: Album|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: Album
方法名 or 属性名: commitModify|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: Album
方法名 or 属性名: commitModify|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: UserFileManager|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法名 or 属性名: getPhotoAssets|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法名 or 属性名: getPhotoAssets|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法名 or 属性名: createPhotoAsset|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法名 or 属性名: createPhotoAsset|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法名 or 属性名: createPhotoAsset|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法名 or 属性名: getPhotoAlbums|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法名 or 属性名: getPhotoAlbums|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法名 or 属性名: getPrivateAlbum|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法名 or 属性名: getPrivateAlbum|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法名 or 属性名: getAudioAssets|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法名 or 属性名: getAudioAssets|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法名 or 属性名: delete|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法名 or 属性名: delete|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法名 or 属性名: on_deviceChange|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法名 or 属性名: on_albumChange|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法名 or 属性名: on_imageChange|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法名 or 属性名: on_audioChange|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法名 or 属性名: on_videoChange|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法名 or 属性名: on_remoteFileChange|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法名 or 属性名: off_deviceChange|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法名 or 属性名: off_albumChange|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法名 or 属性名: off_imageChange|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法名 or 属性名: off_audioChange|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法名 or 属性名: off_videoChange|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法名 or 属性名: off_remoteFileChange|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法名 or 属性名: getActivePeers|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法名 or 属性名: getActivePeers|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法名 or 属性名: getAllPeers|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法名 or 属性名: getAllPeers|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法名 or 属性名: release|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法名 or 属性名: release|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: PeerInfo|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: PeerInfo
方法名 or 属性名: deviceName|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: PeerInfo
方法名 or 属性名: networkId|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: PeerInfo
方法名 or 属性名: isOnline|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: PrivateAlbumType|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: PrivateAlbumType
方法名 or 属性名: TYPE_FAVORITE|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: PrivateAlbumType
方法名 or 属性名: TYPE_TRASH|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: PrivateAlbum|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: PrivateAlbum
方法名 or 属性名: delete|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: PrivateAlbum
方法名 or 属性名: delete|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: PrivateAlbum
方法名 or 属性名: recover|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: PrivateAlbum
方法名 or 属性名: recover|@ohos.filemanagement.userFileManager.d.ts| +|删除|模块名:ohos.data.fileAccess
类名:FileInfo
方法名 or 属性名:mimetype|NA|@ohos.data.fileAccess.d.ts| +|删除|模块名: ohos.fileio
类名: Filter|NA|@ohos.fileio.d.ts| +|删除|模块名: ohos.fileio
类名: Filter
方法名 or 属性名: suffix|NA|@ohos.fileio.d.ts| +|删除|模块名: ohos.fileio
类名: Filter
方法名 or 属性名: displayName|NA|@ohos.fileio.d.ts| +|删除|模块名: ohos.fileio
类名: Filter
方法名 or 属性名: mimeType|NA|@ohos.fileio.d.ts| +|删除|模块名: ohos.fileio
类名: Filter
方法名 or 属性名: fileSizeOver|NA|@ohos.fileio.d.ts| +|删除|模块名: ohos.fileio
类名: Filter
方法名 or 属性名: lastModifiedAfter|NA|@ohos.fileio.d.ts| +|删除|模块名: ohos.fileio
类名: Filter
方法名 or 属性名: excludeMedia|NA|@ohos.fileio.d.ts| +|删除|模块名: ohos.fileManager
类名: filemanager|NA|@ohos.fileManager.d.ts| +|删除|模块名: ohos.fileManager
类名: filemanager
方法名 or 属性名: listFile|NA|@ohos.fileManager.d.ts| +|删除|模块名: ohos.fileManager
类名: filemanager
方法名 or 属性名: listFile|NA|@ohos.fileManager.d.ts| +|删除|模块名: ohos.fileManager
类名: filemanager
方法名 or 属性名: getRoot|NA|@ohos.fileManager.d.ts| +|删除|模块名: ohos.fileManager
类名: filemanager
方法名 or 属性名: getRoot|NA|@ohos.fileManager.d.ts| +|删除|模块名: ohos.fileManager
类名: filemanager
方法名 or 属性名: createFile|NA|@ohos.fileManager.d.ts| +|删除|模块名: ohos.fileManager
类名: filemanager
方法名 or 属性名: createFile|NA|@ohos.fileManager.d.ts| +|删除|模块名: ohos.fileManager
类名: FileInfo|NA|@ohos.fileManager.d.ts| +|删除|模块名: ohos.fileManager
类名: FileInfo
方法名 or 属性名: name|NA|@ohos.fileManager.d.ts| +|删除|模块名: ohos.fileManager
类名: FileInfo
方法名 or 属性名: path|NA|@ohos.fileManager.d.ts| +|删除|模块名: ohos.fileManager
类名: FileInfo
方法名 or 属性名: type|NA|@ohos.fileManager.d.ts| +|删除|模块名: ohos.fileManager
类名: FileInfo
方法名 or 属性名: size|NA|@ohos.fileManager.d.ts| +|删除|模块名: ohos.fileManager
类名: FileInfo
方法名 or 属性名: addedTime|NA|@ohos.fileManager.d.ts| +|删除|模块名: ohos.fileManager
类名: FileInfo
方法名 or 属性名: modifiedTime|NA|@ohos.fileManager.d.ts| +|删除|模块名: ohos.fileManager
类名: DevInfo|NA|@ohos.fileManager.d.ts| +|删除|模块名: ohos.fileManager
类名: DevInfo
方法名 or 属性名: name|NA|@ohos.fileManager.d.ts| +|访问级别有变化|类名:OPENFLAGS
访问级别:公开API|类名:OPENFLAGS
访问级别:系统API|@ohos.data.fileAccess.d.ts| +|访问级别有变化|方法名 or 属性名:READ
访问级别:公开API|方法名 or 属性名:READ
访问级别:系统API|@ohos.data.fileAccess.d.ts| +|访问级别有变化|方法名 or 属性名:WRITE
访问级别:公开API|方法名 or 属性名:WRITE
访问级别:系统API|@ohos.data.fileAccess.d.ts| +|访问级别有变化|方法名 or 属性名:WRITE_READ
访问级别:公开API|方法名 or 属性名:WRITE_READ
访问级别:系统API|@ohos.data.fileAccess.d.ts| |权限有变化|方法名 or 属性名:getFileAccessAbilityInfo
权限:ohos.permission.FILE_ACCESS_MANAGER|方法名 or 属性名:getFileAccessAbilityInfo
权限:ohos.permission.FILE_ACCESS_MANAGER and ohos.permission.GET_BUNDLE_INFO_PRIVILEGED|@ohos.data.fileAccess.d.ts| |权限有变化|方法名 or 属性名:getFileAccessAbilityInfo
权限:ohos.permission.FILE_ACCESS_MANAGER|方法名 or 属性名:getFileAccessAbilityInfo
权限:ohos.permission.FILE_ACCESS_MANAGER and ohos.permission.GET_BUNDLE_INFO_PRIVILEGED|@ohos.data.fileAccess.d.ts| |权限有变化|方法名 or 属性名:createFileAccessHelper
权限:ohos.permission.FILE_ACCESS_MANAGER|方法名 or 属性名:createFileAccessHelper
权限:ohos.permission.FILE_ACCESS_MANAGER and ohos.permission.GET_BUNDLE_INFO_PRIVILEGED|@ohos.data.fileAccess.d.ts| |权限有变化|方法名 or 属性名:createFileAccessHelper
权限:ohos.permission.FILE_ACCESS_MANAGER|方法名 or 属性名:createFileAccessHelper
权限:ohos.permission.FILE_ACCESS_MANAGER and ohos.permission.GET_BUNDLE_INFO_PRIVILEGED|@ohos.data.fileAccess.d.ts| +|访问级别有变化|类名:OPENFLAGS
访问级别:公开API|类名:OPENFLAGS
访问级别:系统API|@ohos.data.fileAccess.d.ts| +|访问级别有变化|方法名 or 属性名:READ
访问级别:公开API|方法名 or 属性名:READ
访问级别:系统API|@ohos.data.fileAccess.d.ts| +|访问级别有变化|方法名 or 属性名:WRITE
访问级别:公开API|方法名 or 属性名:WRITE
访问级别:系统API|@ohos.data.fileAccess.d.ts| +|访问级别有变化|方法名 or 属性名:WRITE_READ
访问级别:公开API|方法名 or 属性名:WRITE_READ
访问级别:系统API|@ohos.data.fileAccess.d.ts| diff --git a/zh-cn/release-notes/api-diff/monthly-202210/js-apidiff-geolocation.md b/zh-cn/release-notes/api-diff/monthly-202210/js-apidiff-geolocation.md index 3bdaadbe48dbe969a5e6ddf033fd0b4630a4c7ce..a3ee9ca64cbb86c7ae443a90fddb5519a69b8175 100644 --- a/zh-cn/release-notes/api-diff/monthly-202210/js-apidiff-geolocation.md +++ b/zh-cn/release-notes/api-diff/monthly-202210/js-apidiff-geolocation.md @@ -1,173 +1,173 @@ -| 操作 | 新版本 | 旧版本 | d.ts文件 | +| 操作 | 旧版本 | 新版本 | d.ts文件 | | ---- | ------ | ------ | -------- | -|新增||模块名: ohos.geoLocationManager
类名: geoLocationManager|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: geoLocationManager
方法名 or 属性名: on_countryCodeChange|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: geoLocationManager
方法名 or 属性名: off_countryCodeChange|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: geoLocationManager
方法名 or 属性名: enableLocation|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: geoLocationManager
方法名 or 属性名: enableLocation|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: geoLocationManager
方法名 or 属性名: disableLocation|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: geoLocationManager
方法名 or 属性名: disableLocation|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: geoLocationManager
方法名 or 属性名: getCountryCode|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: geoLocationManager
方法名 or 属性名: getCountryCode|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: geoLocationManager
方法名 or 属性名: enableLocationMock|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: geoLocationManager
方法名 or 属性名: enableLocationMock|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: geoLocationManager
方法名 or 属性名: disableLocationMock|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: geoLocationManager
方法名 or 属性名: disableLocationMock|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: geoLocationManager
方法名 or 属性名: setMockedLocations|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: geoLocationManager
方法名 or 属性名: setMockedLocations|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: geoLocationManager
方法名 or 属性名: enableReverseGeocodingMock|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: geoLocationManager
方法名 or 属性名: enableReverseGeocodingMock|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: geoLocationManager
方法名 or 属性名: disableReverseGeocodingMock|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: geoLocationManager
方法名 or 属性名: disableReverseGeocodingMock|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: geoLocationManager
方法名 or 属性名: setReverseGeocodingMockInfo|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: geoLocationManager
方法名 or 属性名: setReverseGeocodingMockInfo|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: geoLocationManager
方法名 or 属性名: isLocationPrivacyConfirmed|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: geoLocationManager
方法名 or 属性名: isLocationPrivacyConfirmed|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: geoLocationManager
方法名 or 属性名: setLocationPrivacyConfirmStatus|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: geoLocationManager
方法名 or 属性名: setLocationPrivacyConfirmStatus|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: ReverseGeocodingMockInfo|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: ReverseGeocodingMockInfo
方法名 or 属性名: location|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: ReverseGeocodingMockInfo
方法名 or 属性名: geoAddress|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: LocationMockConfig|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: LocationMockConfig
方法名 or 属性名: timeInterval|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: LocationMockConfig
方法名 or 属性名: locations|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: SatelliteStatusInfo|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: SatelliteStatusInfo
方法名 or 属性名: satellitesNumber|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: SatelliteStatusInfo
方法名 or 属性名: satelliteIds|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: SatelliteStatusInfo
方法名 or 属性名: carrierToNoiseDensitys|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: SatelliteStatusInfo
方法名 or 属性名: altitudes|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: SatelliteStatusInfo
方法名 or 属性名: azimuths|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: SatelliteStatusInfo
方法名 or 属性名: carrierFrequencies|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: CachedGnssLocationsRequest|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: CachedGnssLocationsRequest
方法名 or 属性名: reportingPeriodSec|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: CachedGnssLocationsRequest
方法名 or 属性名: wakeUpCacheQueueFull|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: GeofenceRequest|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: GeofenceRequest
方法名 or 属性名: priority|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: GeofenceRequest
方法名 or 属性名: scenario|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: GeofenceRequest
方法名 or 属性名: geofence|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: Geofence|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: Geofence
方法名 or 属性名: latitude|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: Geofence
方法名 or 属性名: longitude|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: Geofence
方法名 or 属性名: radius|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: Geofence
方法名 or 属性名: expiration|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: ReverseGeoCodeRequest|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: ReverseGeoCodeRequest
方法名 or 属性名: locale|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: ReverseGeoCodeRequest
方法名 or 属性名: latitude|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: ReverseGeoCodeRequest
方法名 or 属性名: longitude|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: ReverseGeoCodeRequest
方法名 or 属性名: maxItems|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: GeoCodeRequest|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: GeoCodeRequest
方法名 or 属性名: locale|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: GeoCodeRequest
方法名 or 属性名: description|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: GeoCodeRequest
方法名 or 属性名: maxItems|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: GeoCodeRequest
方法名 or 属性名: minLatitude|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: GeoCodeRequest
方法名 or 属性名: minLongitude|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: GeoCodeRequest
方法名 or 属性名: maxLatitude|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: GeoCodeRequest
方法名 or 属性名: maxLongitude|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: GeoAddress|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: GeoAddress
方法名 or 属性名: latitude|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: GeoAddress
方法名 or 属性名: longitude|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: GeoAddress
方法名 or 属性名: locale|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: GeoAddress
方法名 or 属性名: placeName|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: GeoAddress
方法名 or 属性名: countryCode|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: GeoAddress
方法名 or 属性名: countryName|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: GeoAddress
方法名 or 属性名: administrativeArea|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: GeoAddress
方法名 or 属性名: subAdministrativeArea|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: GeoAddress
方法名 or 属性名: locality|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: GeoAddress
方法名 or 属性名: subLocality|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: GeoAddress
方法名 or 属性名: roadName|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: GeoAddress
方法名 or 属性名: subRoadName|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: GeoAddress
方法名 or 属性名: premises|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: GeoAddress
方法名 or 属性名: postalCode|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: GeoAddress
方法名 or 属性名: phoneNumber|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: GeoAddress
方法名 or 属性名: addressUrl|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: GeoAddress
方法名 or 属性名: descriptions|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: GeoAddress
方法名 or 属性名: descriptionsSize|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: GeoAddress
方法名 or 属性名: isFromMock|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: LocationRequest|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: LocationRequest
方法名 or 属性名: priority|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: LocationRequest
方法名 or 属性名: scenario|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: LocationRequest
方法名 or 属性名: timeInterval|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: LocationRequest
方法名 or 属性名: distanceInterval|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: LocationRequest
方法名 or 属性名: maxAccuracy|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: CurrentLocationRequest|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: CurrentLocationRequest
方法名 or 属性名: priority|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: CurrentLocationRequest
方法名 or 属性名: scenario|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: CurrentLocationRequest
方法名 or 属性名: maxAccuracy|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: CurrentLocationRequest
方法名 or 属性名: timeoutMs|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: Location|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: Location
方法名 or 属性名: latitude|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: Location
方法名 or 属性名: longitude|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: Location
方法名 or 属性名: altitude|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: Location
方法名 or 属性名: accuracy|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: Location
方法名 or 属性名: speed|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: Location
方法名 or 属性名: timeStamp|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: Location
方法名 or 属性名: direction|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: Location
方法名 or 属性名: timeSinceBoot|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: Location
方法名 or 属性名: additions|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: Location
方法名 or 属性名: additionSize|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: Location
方法名 or 属性名: isFromMock|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: LocationRequestPriority|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: LocationRequestPriority
方法名 or 属性名: UNSET|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: LocationRequestPriority
方法名 or 属性名: ACCURACY|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: LocationRequestPriority
方法名 or 属性名: LOW_POWER|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: LocationRequestPriority
方法名 or 属性名: FIRST_FIX|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: LocationRequestScenario|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: LocationRequestScenario
方法名 or 属性名: UNSET|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: LocationRequestScenario
方法名 or 属性名: NAVIGATION|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: LocationRequestScenario
方法名 or 属性名: TRAJECTORY_TRACKING|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: LocationRequestScenario
方法名 or 属性名: CAR_HAILING|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: LocationRequestScenario
方法名 or 属性名: DAILY_LIFE_SERVICE|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: LocationRequestScenario
方法名 or 属性名: NO_POWER|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: LocationPrivacyType|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: LocationPrivacyType
方法名 or 属性名: OTHERS|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: LocationPrivacyType
方法名 or 属性名: STARTUP|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: LocationPrivacyType
方法名 or 属性名: CORE_LOCATION|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: LocationCommand|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: LocationCommand
方法名 or 属性名: scenario|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: LocationCommand
方法名 or 属性名: command|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: CountryCode|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: CountryCode
方法名 or 属性名: country|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: CountryCode
方法名 or 属性名: type|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: CountryCodeType|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: CountryCodeType
方法名 or 属性名: COUNTRY_CODE_FROM_LOCALE|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: CountryCodeType
方法名 or 属性名: COUNTRY_CODE_FROM_SIM|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: CountryCodeType
方法名 or 属性名: COUNTRY_CODE_FROM_LOCATION|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: CountryCodeType
方法名 or 属性名: COUNTRY_CODE_FROM_NETWORK|@ohos.geoLocationManager.d.ts| -|删除|模块名:ohos.geolocation
类名:geolocation
方法名 or 属性名:on_countryCodeChange||@ohos.geolocation.d.ts| -|删除|模块名:ohos.geolocation
类名:geolocation
方法名 or 属性名:off_countryCodeChange||@ohos.geolocation.d.ts| -|删除|模块名:ohos.geolocation
类名:geolocation
方法名 or 属性名:getCountryCode||@ohos.geolocation.d.ts| -|删除|模块名:ohos.geolocation
类名:geolocation
方法名 or 属性名:getCountryCode||@ohos.geolocation.d.ts| -|删除|模块名:ohos.geolocation
类名:geolocation
方法名 or 属性名:enableLocationMock||@ohos.geolocation.d.ts| -|删除|模块名:ohos.geolocation
类名:geolocation
方法名 or 属性名:enableLocationMock||@ohos.geolocation.d.ts| -|删除|模块名:ohos.geolocation
类名:geolocation
方法名 or 属性名:disableLocationMock||@ohos.geolocation.d.ts| -|删除|模块名:ohos.geolocation
类名:geolocation
方法名 or 属性名:disableLocationMock||@ohos.geolocation.d.ts| -|删除|模块名:ohos.geolocation
类名:geolocation
方法名 or 属性名:setMockedLocations||@ohos.geolocation.d.ts| -|删除|模块名:ohos.geolocation
类名:geolocation
方法名 or 属性名:setMockedLocations||@ohos.geolocation.d.ts| -|删除|模块名:ohos.geolocation
类名:geolocation
方法名 or 属性名:enableReverseGeocodingMock||@ohos.geolocation.d.ts| -|删除|模块名:ohos.geolocation
类名:geolocation
方法名 or 属性名:enableReverseGeocodingMock||@ohos.geolocation.d.ts| -|删除|模块名:ohos.geolocation
类名:geolocation
方法名 or 属性名:disableReverseGeocodingMock||@ohos.geolocation.d.ts| -|删除|模块名:ohos.geolocation
类名:geolocation
方法名 or 属性名:disableReverseGeocodingMock||@ohos.geolocation.d.ts| -|删除|模块名:ohos.geolocation
类名:geolocation
方法名 or 属性名:setReverseGeocodingMockInfo||@ohos.geolocation.d.ts| -|删除|模块名:ohos.geolocation
类名:geolocation
方法名 or 属性名:setReverseGeocodingMockInfo||@ohos.geolocation.d.ts| -|删除|模块名: ohos.geolocation
类名: ReverseGeocodingMockInfo||@ohos.geolocation.d.ts| -|删除|模块名: ohos.geolocation
类名: ReverseGeocodingMockInfo
方法名 or 属性名:location||@ohos.geolocation.d.ts| -|删除|模块名: ohos.geolocation
类名: ReverseGeocodingMockInfo
方法名 or 属性名:geoAddress||@ohos.geolocation.d.ts| -|删除|模块名: ohos.geolocation
类名: LocationMockConfig||@ohos.geolocation.d.ts| -|删除|模块名: ohos.geolocation
类名: LocationMockConfig
方法名 or 属性名:timeInterval||@ohos.geolocation.d.ts| -|删除|模块名: ohos.geolocation
类名: LocationMockConfig
方法名 or 属性名:locations||@ohos.geolocation.d.ts| -|删除|模块名:ohos.geolocation
类名:geolocation
方法名 or 属性名:isLocationPrivacyConfirmed||@ohos.geolocation.d.ts| -|删除|模块名:ohos.geolocation
类名:geolocation
方法名 or 属性名:isLocationPrivacyConfirmed||@ohos.geolocation.d.ts| -|删除|模块名:ohos.geolocation
类名:geolocation
方法名 or 属性名:setLocationPrivacyConfirmStatus||@ohos.geolocation.d.ts| -|删除|模块名:ohos.geolocation
类名:geolocation
方法名 or 属性名:setLocationPrivacyConfirmStatus||@ohos.geolocation.d.ts| -|删除|模块名: ohos.geolocation
类名: GeoAddress
方法名 or 属性名:isFromMock||@ohos.geolocation.d.ts| -|删除|模块名: ohos.geolocation
类名: Location
方法名 or 属性名:isFromMock||@ohos.geolocation.d.ts| -|删除|模块名: ohos.geolocation
类名: GeoLocationErrorCode
方法名 or 属性名:NOT_SUPPORTED||@ohos.geolocation.d.ts| -|删除|模块名: ohos.geolocation
类名: GeoLocationErrorCode
方法名 or 属性名:QUERY_COUNTRY_CODE_ERROR||@ohos.geolocation.d.ts| -|删除|模块名: ohos.geolocation
类名: CountryCode||@ohos.geolocation.d.ts| -|删除|模块名: ohos.geolocation
类名: CountryCode
方法名 or 属性名:country||@ohos.geolocation.d.ts| -|删除|模块名: ohos.geolocation
类名: CountryCode
方法名 or 属性名:type||@ohos.geolocation.d.ts| -|删除|模块名: ohos.geolocation
类名: CountryCodeType||@ohos.geolocation.d.ts| -|删除|模块名: ohos.geolocation
类名: CountryCodeType
方法名 or 属性名:COUNTRY_CODE_FROM_LOCALE||@ohos.geolocation.d.ts| -|删除|模块名: ohos.geolocation
类名: CountryCodeType
方法名 or 属性名:COUNTRY_CODE_FROM_SIM||@ohos.geolocation.d.ts| -|删除|模块名: ohos.geolocation
类名: CountryCodeType
方法名 or 属性名:COUNTRY_CODE_FROM_LOCATION||@ohos.geolocation.d.ts| -|删除|模块名: ohos.geolocation
类名: CountryCodeType
方法名 or 属性名:COUNTRY_CODE_FROM_NETWORK||@ohos.geolocation.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: geoLocationManager|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: geoLocationManager
方法名 or 属性名: on_countryCodeChange|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: geoLocationManager
方法名 or 属性名: off_countryCodeChange|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: geoLocationManager
方法名 or 属性名: enableLocation|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: geoLocationManager
方法名 or 属性名: enableLocation|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: geoLocationManager
方法名 or 属性名: disableLocation|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: geoLocationManager
方法名 or 属性名: disableLocation|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: geoLocationManager
方法名 or 属性名: getCountryCode|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: geoLocationManager
方法名 or 属性名: getCountryCode|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: geoLocationManager
方法名 or 属性名: enableLocationMock|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: geoLocationManager
方法名 or 属性名: enableLocationMock|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: geoLocationManager
方法名 or 属性名: disableLocationMock|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: geoLocationManager
方法名 or 属性名: disableLocationMock|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: geoLocationManager
方法名 or 属性名: setMockedLocations|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: geoLocationManager
方法名 or 属性名: setMockedLocations|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: geoLocationManager
方法名 or 属性名: enableReverseGeocodingMock|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: geoLocationManager
方法名 or 属性名: enableReverseGeocodingMock|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: geoLocationManager
方法名 or 属性名: disableReverseGeocodingMock|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: geoLocationManager
方法名 or 属性名: disableReverseGeocodingMock|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: geoLocationManager
方法名 or 属性名: setReverseGeocodingMockInfo|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: geoLocationManager
方法名 or 属性名: setReverseGeocodingMockInfo|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: geoLocationManager
方法名 or 属性名: isLocationPrivacyConfirmed|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: geoLocationManager
方法名 or 属性名: isLocationPrivacyConfirmed|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: geoLocationManager
方法名 or 属性名: setLocationPrivacyConfirmStatus|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: geoLocationManager
方法名 or 属性名: setLocationPrivacyConfirmStatus|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: ReverseGeocodingMockInfo|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: ReverseGeocodingMockInfo
方法名 or 属性名: location|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: ReverseGeocodingMockInfo
方法名 or 属性名: geoAddress|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: LocationMockConfig|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: LocationMockConfig
方法名 or 属性名: timeInterval|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: LocationMockConfig
方法名 or 属性名: locations|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: SatelliteStatusInfo|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: SatelliteStatusInfo
方法名 or 属性名: satellitesNumber|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: SatelliteStatusInfo
方法名 or 属性名: satelliteIds|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: SatelliteStatusInfo
方法名 or 属性名: carrierToNoiseDensitys|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: SatelliteStatusInfo
方法名 or 属性名: altitudes|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: SatelliteStatusInfo
方法名 or 属性名: azimuths|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: SatelliteStatusInfo
方法名 or 属性名: carrierFrequencies|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: CachedGnssLocationsRequest|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: CachedGnssLocationsRequest
方法名 or 属性名: reportingPeriodSec|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: CachedGnssLocationsRequest
方法名 or 属性名: wakeUpCacheQueueFull|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: GeofenceRequest|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: GeofenceRequest
方法名 or 属性名: priority|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: GeofenceRequest
方法名 or 属性名: scenario|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: GeofenceRequest
方法名 or 属性名: geofence|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: Geofence|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: Geofence
方法名 or 属性名: latitude|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: Geofence
方法名 or 属性名: longitude|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: Geofence
方法名 or 属性名: radius|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: Geofence
方法名 or 属性名: expiration|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: ReverseGeoCodeRequest|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: ReverseGeoCodeRequest
方法名 or 属性名: locale|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: ReverseGeoCodeRequest
方法名 or 属性名: latitude|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: ReverseGeoCodeRequest
方法名 or 属性名: longitude|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: ReverseGeoCodeRequest
方法名 or 属性名: maxItems|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: GeoCodeRequest|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: GeoCodeRequest
方法名 or 属性名: locale|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: GeoCodeRequest
方法名 or 属性名: description|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: GeoCodeRequest
方法名 or 属性名: maxItems|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: GeoCodeRequest
方法名 or 属性名: minLatitude|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: GeoCodeRequest
方法名 or 属性名: minLongitude|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: GeoCodeRequest
方法名 or 属性名: maxLatitude|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: GeoCodeRequest
方法名 or 属性名: maxLongitude|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: GeoAddress|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: GeoAddress
方法名 or 属性名: latitude|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: GeoAddress
方法名 or 属性名: longitude|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: GeoAddress
方法名 or 属性名: locale|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: GeoAddress
方法名 or 属性名: placeName|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: GeoAddress
方法名 or 属性名: countryCode|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: GeoAddress
方法名 or 属性名: countryName|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: GeoAddress
方法名 or 属性名: administrativeArea|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: GeoAddress
方法名 or 属性名: subAdministrativeArea|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: GeoAddress
方法名 or 属性名: locality|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: GeoAddress
方法名 or 属性名: subLocality|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: GeoAddress
方法名 or 属性名: roadName|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: GeoAddress
方法名 or 属性名: subRoadName|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: GeoAddress
方法名 or 属性名: premises|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: GeoAddress
方法名 or 属性名: postalCode|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: GeoAddress
方法名 or 属性名: phoneNumber|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: GeoAddress
方法名 or 属性名: addressUrl|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: GeoAddress
方法名 or 属性名: descriptions|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: GeoAddress
方法名 or 属性名: descriptionsSize|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: GeoAddress
方法名 or 属性名: isFromMock|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: LocationRequest|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: LocationRequest
方法名 or 属性名: priority|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: LocationRequest
方法名 or 属性名: scenario|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: LocationRequest
方法名 or 属性名: timeInterval|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: LocationRequest
方法名 or 属性名: distanceInterval|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: LocationRequest
方法名 or 属性名: maxAccuracy|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: CurrentLocationRequest|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: CurrentLocationRequest
方法名 or 属性名: priority|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: CurrentLocationRequest
方法名 or 属性名: scenario|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: CurrentLocationRequest
方法名 or 属性名: maxAccuracy|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: CurrentLocationRequest
方法名 or 属性名: timeoutMs|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: Location|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: Location
方法名 or 属性名: latitude|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: Location
方法名 or 属性名: longitude|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: Location
方法名 or 属性名: altitude|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: Location
方法名 or 属性名: accuracy|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: Location
方法名 or 属性名: speed|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: Location
方法名 or 属性名: timeStamp|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: Location
方法名 or 属性名: direction|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: Location
方法名 or 属性名: timeSinceBoot|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: Location
方法名 or 属性名: additions|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: Location
方法名 or 属性名: additionSize|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: Location
方法名 or 属性名: isFromMock|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: LocationRequestPriority|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: LocationRequestPriority
方法名 or 属性名: UNSET|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: LocationRequestPriority
方法名 or 属性名: ACCURACY|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: LocationRequestPriority
方法名 or 属性名: LOW_POWER|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: LocationRequestPriority
方法名 or 属性名: FIRST_FIX|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: LocationRequestScenario|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: LocationRequestScenario
方法名 or 属性名: UNSET|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: LocationRequestScenario
方法名 or 属性名: NAVIGATION|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: LocationRequestScenario
方法名 or 属性名: TRAJECTORY_TRACKING|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: LocationRequestScenario
方法名 or 属性名: CAR_HAILING|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: LocationRequestScenario
方法名 or 属性名: DAILY_LIFE_SERVICE|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: LocationRequestScenario
方法名 or 属性名: NO_POWER|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: LocationPrivacyType|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: LocationPrivacyType
方法名 or 属性名: OTHERS|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: LocationPrivacyType
方法名 or 属性名: STARTUP|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: LocationPrivacyType
方法名 or 属性名: CORE_LOCATION|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: LocationCommand|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: LocationCommand
方法名 or 属性名: scenario|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: LocationCommand
方法名 or 属性名: command|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: CountryCode|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: CountryCode
方法名 or 属性名: country|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: CountryCode
方法名 or 属性名: type|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: CountryCodeType|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: CountryCodeType
方法名 or 属性名: COUNTRY_CODE_FROM_LOCALE|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: CountryCodeType
方法名 or 属性名: COUNTRY_CODE_FROM_SIM|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: CountryCodeType
方法名 or 属性名: COUNTRY_CODE_FROM_LOCATION|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: CountryCodeType
方法名 or 属性名: COUNTRY_CODE_FROM_NETWORK|@ohos.geoLocationManager.d.ts| +|删除|模块名:ohos.geolocation
类名:geolocation
方法名 or 属性名:on_countryCodeChange|NA|@ohos.geolocation.d.ts| +|删除|模块名:ohos.geolocation
类名:geolocation
方法名 or 属性名:off_countryCodeChange|NA|@ohos.geolocation.d.ts| +|删除|模块名:ohos.geolocation
类名:geolocation
方法名 or 属性名:getCountryCode|NA|@ohos.geolocation.d.ts| +|删除|模块名:ohos.geolocation
类名:geolocation
方法名 or 属性名:getCountryCode|NA|@ohos.geolocation.d.ts| +|删除|模块名:ohos.geolocation
类名:geolocation
方法名 or 属性名:enableLocationMock|NA|@ohos.geolocation.d.ts| +|删除|模块名:ohos.geolocation
类名:geolocation
方法名 or 属性名:enableLocationMock|NA|@ohos.geolocation.d.ts| +|删除|模块名:ohos.geolocation
类名:geolocation
方法名 or 属性名:disableLocationMock|NA|@ohos.geolocation.d.ts| +|删除|模块名:ohos.geolocation
类名:geolocation
方法名 or 属性名:disableLocationMock|NA|@ohos.geolocation.d.ts| +|删除|模块名:ohos.geolocation
类名:geolocation
方法名 or 属性名:setMockedLocations|NA|@ohos.geolocation.d.ts| +|删除|模块名:ohos.geolocation
类名:geolocation
方法名 or 属性名:setMockedLocations|NA|@ohos.geolocation.d.ts| +|删除|模块名:ohos.geolocation
类名:geolocation
方法名 or 属性名:enableReverseGeocodingMock|NA|@ohos.geolocation.d.ts| +|删除|模块名:ohos.geolocation
类名:geolocation
方法名 or 属性名:enableReverseGeocodingMock|NA|@ohos.geolocation.d.ts| +|删除|模块名:ohos.geolocation
类名:geolocation
方法名 or 属性名:disableReverseGeocodingMock|NA|@ohos.geolocation.d.ts| +|删除|模块名:ohos.geolocation
类名:geolocation
方法名 or 属性名:disableReverseGeocodingMock|NA|@ohos.geolocation.d.ts| +|删除|模块名:ohos.geolocation
类名:geolocation
方法名 or 属性名:setReverseGeocodingMockInfo|NA|@ohos.geolocation.d.ts| +|删除|模块名:ohos.geolocation
类名:geolocation
方法名 or 属性名:setReverseGeocodingMockInfo|NA|@ohos.geolocation.d.ts| +|删除|模块名: ohos.geolocation
类名: ReverseGeocodingMockInfo|NA|@ohos.geolocation.d.ts| +|删除|模块名: ohos.geolocation
类名: ReverseGeocodingMockInfo
方法名 or 属性名:location|NA|@ohos.geolocation.d.ts| +|删除|模块名: ohos.geolocation
类名: ReverseGeocodingMockInfo
方法名 or 属性名:geoAddress|NA|@ohos.geolocation.d.ts| +|删除|模块名: ohos.geolocation
类名: LocationMockConfig|NA|@ohos.geolocation.d.ts| +|删除|模块名: ohos.geolocation
类名: LocationMockConfig
方法名 or 属性名:timeInterval|NA|@ohos.geolocation.d.ts| +|删除|模块名: ohos.geolocation
类名: LocationMockConfig
方法名 or 属性名:locations|NA|@ohos.geolocation.d.ts| +|删除|模块名:ohos.geolocation
类名:geolocation
方法名 or 属性名:isLocationPrivacyConfirmed|NA|@ohos.geolocation.d.ts| +|删除|模块名:ohos.geolocation
类名:geolocation
方法名 or 属性名:isLocationPrivacyConfirmed|NA|@ohos.geolocation.d.ts| +|删除|模块名:ohos.geolocation
类名:geolocation
方法名 or 属性名:setLocationPrivacyConfirmStatus|NA|@ohos.geolocation.d.ts| +|删除|模块名:ohos.geolocation
类名:geolocation
方法名 or 属性名:setLocationPrivacyConfirmStatus|NA|@ohos.geolocation.d.ts| +|删除|模块名: ohos.geolocation
类名: GeoAddress
方法名 or 属性名:isFromMock|NA|@ohos.geolocation.d.ts| +|删除|模块名: ohos.geolocation
类名: Location
方法名 or 属性名:isFromMock|NA|@ohos.geolocation.d.ts| +|删除|模块名: ohos.geolocation
类名: GeoLocationErrorCode
方法名 or 属性名:NOT_SUPPORTED|NA|@ohos.geolocation.d.ts| +|删除|模块名: ohos.geolocation
类名: GeoLocationErrorCode
方法名 or 属性名:QUERY_COUNTRY_CODE_ERROR|NA|@ohos.geolocation.d.ts| +|删除|模块名: ohos.geolocation
类名: CountryCode|NA|@ohos.geolocation.d.ts| +|删除|模块名: ohos.geolocation
类名: CountryCode
方法名 or 属性名:country|NA|@ohos.geolocation.d.ts| +|删除|模块名: ohos.geolocation
类名: CountryCode
方法名 or 属性名:type|NA|@ohos.geolocation.d.ts| +|删除|模块名: ohos.geolocation
类名: CountryCodeType|NA|@ohos.geolocation.d.ts| +|删除|模块名: ohos.geolocation
类名: CountryCodeType
方法名 or 属性名:COUNTRY_CODE_FROM_LOCALE|NA|@ohos.geolocation.d.ts| +|删除|模块名: ohos.geolocation
类名: CountryCodeType
方法名 or 属性名:COUNTRY_CODE_FROM_SIM|NA|@ohos.geolocation.d.ts| +|删除|模块名: ohos.geolocation
类名: CountryCodeType
方法名 or 属性名:COUNTRY_CODE_FROM_LOCATION|NA|@ohos.geolocation.d.ts| +|删除|模块名: ohos.geolocation
类名: CountryCodeType
方法名 or 属性名:COUNTRY_CODE_FROM_NETWORK|NA|@ohos.geolocation.d.ts| diff --git a/zh-cn/release-notes/api-diff/monthly-202210/js-apidiff-global.md b/zh-cn/release-notes/api-diff/monthly-202210/js-apidiff-global.md index 1405d898d5569c8b02b8467e8bf19adf4b287ee0..41a3216b8dd3f37a31e1081ea11ea2f7714a7682 100644 --- a/zh-cn/release-notes/api-diff/monthly-202210/js-apidiff-global.md +++ b/zh-cn/release-notes/api-diff/monthly-202210/js-apidiff-global.md @@ -1,68 +1,121 @@ -| 操作 | 新版本 | 旧版本 | d.ts文件 | +| 操作 | 旧版本 | 新版本 | d.ts文件 | | ---- | ------ | ------ | -------- | -|新增||模块名: ohos.i18n
类名: System|@ohos.i18n.d.ts| -|新增||模块名: ohos.i18n
类名: System
方法名 or 属性名:getDisplayCountry|@ohos.i18n.d.ts| -|新增||模块名: ohos.i18n
类名: System
方法名 or 属性名:getDisplayLanguage|@ohos.i18n.d.ts| -|新增||模块名: ohos.i18n
类名: System
方法名 or 属性名:getSystemLanguages|@ohos.i18n.d.ts| -|新增||模块名: ohos.i18n
类名: System
方法名 or 属性名:getSystemCountries|@ohos.i18n.d.ts| -|新增||模块名: ohos.i18n
类名: System
方法名 or 属性名:isSuggested|@ohos.i18n.d.ts| -|新增||模块名: ohos.i18n
类名: System
方法名 or 属性名:getSystemLanguage|@ohos.i18n.d.ts| -|新增||模块名: ohos.i18n
类名: System
方法名 or 属性名:setSystemLanguage|@ohos.i18n.d.ts| -|新增||模块名: ohos.i18n
类名: System
方法名 or 属性名:getSystemRegion|@ohos.i18n.d.ts| -|新增||模块名: ohos.i18n
类名: System
方法名 or 属性名:setSystemRegion|@ohos.i18n.d.ts| -|新增||模块名: ohos.i18n
类名: System
方法名 or 属性名:getSystemLocale|@ohos.i18n.d.ts| -|新增||模块名: ohos.i18n
类名: System
方法名 or 属性名:setSystemLocale|@ohos.i18n.d.ts| -|新增||模块名: ohos.i18n
类名: System
方法名 or 属性名:is24HourClock|@ohos.i18n.d.ts| -|新增||模块名: ohos.i18n
类名: System
方法名 or 属性名:set24HourClock|@ohos.i18n.d.ts| -|新增||模块名: ohos.i18n
类名: System
方法名 or 属性名:addPreferredLanguage|@ohos.i18n.d.ts| -|新增||模块名: ohos.i18n
类名: System
方法名 or 属性名:removePreferredLanguage|@ohos.i18n.d.ts| -|新增||模块名: ohos.i18n
类名: System
方法名 or 属性名:getPreferredLanguageList|@ohos.i18n.d.ts| -|新增||模块名: ohos.i18n
类名: System
方法名 or 属性名:getFirstPreferredLanguage|@ohos.i18n.d.ts| -|新增||模块名: ohos.i18n
类名: System
方法名 or 属性名:getAppPreferredLanguage|@ohos.i18n.d.ts| -|新增||模块名: ohos.i18n
类名: System
方法名 or 属性名:setUsingLocalDigit|@ohos.i18n.d.ts| -|新增||模块名: ohos.i18n
类名: System
方法名 or 属性名:getUsingLocalDigit|@ohos.i18n.d.ts| -|新增||模块名:ohos.resourceManager
类名:ResourceManager
方法名 or 属性名:getStringValue|@ohos.resourceManager.d.ts| -|新增||模块名:ohos.resourceManager
类名:ResourceManager
方法名 or 属性名:getStringValue|@ohos.resourceManager.d.ts| -|新增||模块名:ohos.resourceManager
类名:ResourceManager
方法名 or 属性名:getStringArrayValue|@ohos.resourceManager.d.ts| -|新增||模块名:ohos.resourceManager
类名:ResourceManager
方法名 or 属性名:getStringArrayValue|@ohos.resourceManager.d.ts| -|新增||模块名:ohos.resourceManager
类名:ResourceManager
方法名 or 属性名:getMediaContent|@ohos.resourceManager.d.ts| -|新增||模块名:ohos.resourceManager
类名:ResourceManager
方法名 or 属性名:getMediaContent|@ohos.resourceManager.d.ts| -|新增||模块名:ohos.resourceManager
类名:ResourceManager
方法名 or 属性名:getMediaContentBase64|@ohos.resourceManager.d.ts| -|新增||模块名:ohos.resourceManager
类名:ResourceManager
方法名 or 属性名:getMediaContentBase64|@ohos.resourceManager.d.ts| -|新增||模块名:ohos.resourceManager
类名:ResourceManager
方法名 or 属性名:getPluralStringValue|@ohos.resourceManager.d.ts| -|新增||模块名:ohos.resourceManager
类名:ResourceManager
方法名 or 属性名:getPluralStringValue|@ohos.resourceManager.d.ts| -|新增||模块名:ohos.resourceManager
类名:ResourceManager
方法名 or 属性名:getStringValue|@ohos.resourceManager.d.ts| -|新增||模块名:ohos.resourceManager
类名:ResourceManager
方法名 or 属性名:getStringValue|@ohos.resourceManager.d.ts| -|新增||模块名:ohos.resourceManager
类名:ResourceManager
方法名 or 属性名:getStringArrayValue|@ohos.resourceManager.d.ts| -|新增||模块名:ohos.resourceManager
类名:ResourceManager
方法名 or 属性名:getStringArrayValue|@ohos.resourceManager.d.ts| -|新增||模块名:ohos.resourceManager
类名:ResourceManager
方法名 or 属性名:getPluralStringValue|@ohos.resourceManager.d.ts| -|新增||模块名:ohos.resourceManager
类名:ResourceManager
方法名 or 属性名:getPluralStringValue|@ohos.resourceManager.d.ts| -|新增||模块名:ohos.resourceManager
类名:ResourceManager
方法名 or 属性名:getMediaContent|@ohos.resourceManager.d.ts| -|新增||模块名:ohos.resourceManager
类名:ResourceManager
方法名 or 属性名:getMediaContent|@ohos.resourceManager.d.ts| -|新增||模块名:ohos.resourceManager
类名:ResourceManager
方法名 or 属性名:getMediaContentBase64|@ohos.resourceManager.d.ts| -|新增||模块名:ohos.resourceManager
类名:ResourceManager
方法名 or 属性名:getMediaContentBase64|@ohos.resourceManager.d.ts| -|新增||模块名:ohos.resourceManager
类名:ResourceManager
方法名 or 属性名:getRawFileContent|@ohos.resourceManager.d.ts| -|新增||模块名:ohos.resourceManager
类名:ResourceManager
方法名 or 属性名:getRawFileContent|@ohos.resourceManager.d.ts| -|新增||模块名:ohos.resourceManager
类名:ResourceManager
方法名 or 属性名:getRawFd|@ohos.resourceManager.d.ts| -|新增||模块名:ohos.resourceManager
类名:ResourceManager
方法名 or 属性名:getRawFd|@ohos.resourceManager.d.ts| -|新增||模块名:ohos.resourceManager
类名:ResourceManager
方法名 or 属性名:closeRawFd|@ohos.resourceManager.d.ts| -|新增||模块名:ohos.resourceManager
类名:ResourceManager
方法名 or 属性名:closeRawFd|@ohos.resourceManager.d.ts| -|删除|模块名:ohos.i18n
类名:i18n
方法名 or 属性名:getSystemLanguages||@ohos.i18n.d.ts| -|删除|模块名:ohos.i18n
类名:i18n
方法名 or 属性名:getSystemCountries||@ohos.i18n.d.ts| -|删除|模块名:ohos.i18n
类名:i18n
方法名 or 属性名:isSuggested||@ohos.i18n.d.ts| -|删除|模块名:ohos.i18n
类名:i18n
方法名 or 属性名:setSystemLanguage||@ohos.i18n.d.ts| -|删除|模块名:ohos.i18n
类名:i18n
方法名 or 属性名:setSystemRegion||@ohos.i18n.d.ts| -|删除|模块名:ohos.i18n
类名:i18n
方法名 or 属性名:setSystemLocale||@ohos.i18n.d.ts| -|删除|模块名:ohos.i18n
类名:i18n
方法名 or 属性名:getAppPreferredLanguage||@ohos.i18n.d.ts| -|删除|模块名:ohos.i18n
类名:i18n
方法名 or 属性名:setUsingLocalDigit||@ohos.i18n.d.ts| -|删除|模块名:ohos.i18n
类名:i18n
方法名 or 属性名:getUsingLocalDigit||@ohos.i18n.d.ts| -|删除|模块名: ohos.resourceManager
类名: AsyncCallback||@ohos.resourceManager.d.ts| -|删除|模块名: ohos.resourceManager
类名: AsyncCallback
方法名 or 属性名:AsyncCallback||@ohos.resourceManager.d.ts| +|新增|NA|模块名: ohos.i18n
类名: System|@ohos.i18n.d.ts| +|新增|NA|模块名: ohos.i18n
类名: System
方法名 or 属性名:getDisplayCountry|@ohos.i18n.d.ts| +|新增|NA|模块名: ohos.i18n
类名: System
方法名 or 属性名:getDisplayLanguage|@ohos.i18n.d.ts| +|新增|NA|模块名: ohos.i18n
类名: System
方法名 or 属性名:getSystemLanguages|@ohos.i18n.d.ts| +|新增|NA|模块名: ohos.i18n
类名: System
方法名 or 属性名:getSystemCountries|@ohos.i18n.d.ts| +|新增|NA|模块名: ohos.i18n
类名: System
方法名 or 属性名:isSuggested|@ohos.i18n.d.ts| +|新增|NA|模块名: ohos.i18n
类名: System
方法名 or 属性名:getSystemLanguage|@ohos.i18n.d.ts| +|新增|NA|模块名: ohos.i18n
类名: System
方法名 or 属性名:setSystemLanguage|@ohos.i18n.d.ts| +|新增|NA|模块名: ohos.i18n
类名: System
方法名 or 属性名:getSystemRegion|@ohos.i18n.d.ts| +|新增|NA|模块名: ohos.i18n
类名: System
方法名 or 属性名:setSystemRegion|@ohos.i18n.d.ts| +|新增|NA|模块名: ohos.i18n
类名: System
方法名 or 属性名:getSystemLocale|@ohos.i18n.d.ts| +|新增|NA|模块名: ohos.i18n
类名: System
方法名 or 属性名:setSystemLocale|@ohos.i18n.d.ts| +|新增|NA|模块名: ohos.i18n
类名: System
方法名 or 属性名:is24HourClock|@ohos.i18n.d.ts| +|新增|NA|模块名: ohos.i18n
类名: System
方法名 or 属性名:set24HourClock|@ohos.i18n.d.ts| +|新增|NA|模块名: ohos.i18n
类名: System
方法名 or 属性名:addPreferredLanguage|@ohos.i18n.d.ts| +|新增|NA|模块名: ohos.i18n
类名: System
方法名 or 属性名:removePreferredLanguage|@ohos.i18n.d.ts| +|新增|NA|模块名: ohos.i18n
类名: System
方法名 or 属性名:getPreferredLanguageList|@ohos.i18n.d.ts| +|新增|NA|模块名: ohos.i18n
类名: System
方法名 or 属性名:getFirstPreferredLanguage|@ohos.i18n.d.ts| +|新增|NA|模块名: ohos.i18n
类名: System
方法名 or 属性名:getAppPreferredLanguage|@ohos.i18n.d.ts| +|新增|NA|模块名: ohos.i18n
类名: System
方法名 or 属性名:setUsingLocalDigit|@ohos.i18n.d.ts| +|新增|NA|模块名: ohos.i18n
类名: System
方法名 or 属性名:getUsingLocalDigit|@ohos.i18n.d.ts| +|新增|NA|模块名: ohos.i18n
类名: I18NUtil|@ohos.i18n.d.ts| +|新增|NA|模块名: ohos.i18n
类名: I18NUtil
方法名 or 属性名:unitConvert|@ohos.i18n.d.ts| +|新增|NA|模块名: ohos.i18n
类名: I18NUtil
方法名 or 属性名:getDateOrder|@ohos.i18n.d.ts| +|新增|NA|方法名 or 属性名:type
函数:type?: string;|@ohos.i18n.d.ts| +|新增|NA|模块名: ohos.i18n
类名: Unicode|@ohos.i18n.d.ts| +|新增|NA|模块名: ohos.i18n
类名: Unicode
方法名 or 属性名:isDigit|@ohos.i18n.d.ts| +|新增|NA|模块名: ohos.i18n
类名: Unicode
方法名 or 属性名:isSpaceChar|@ohos.i18n.d.ts| +|新增|NA|模块名: ohos.i18n
类名: Unicode
方法名 or 属性名:isWhitespace|@ohos.i18n.d.ts| +|新增|NA|模块名: ohos.i18n
类名: Unicode
方法名 or 属性名:isRTL|@ohos.i18n.d.ts| +|新增|NA|模块名: ohos.i18n
类名: Unicode
方法名 or 属性名:isIdeograph|@ohos.i18n.d.ts| +|新增|NA|模块名: ohos.i18n
类名: Unicode
方法名 or 属性名:isLetter|@ohos.i18n.d.ts| +|新增|NA|模块名: ohos.i18n
类名: Unicode
方法名 or 属性名:isLowerCase|@ohos.i18n.d.ts| +|新增|NA|模块名: ohos.i18n
类名: Unicode
方法名 or 属性名:isUpperCase|@ohos.i18n.d.ts| +|新增|NA|模块名: ohos.i18n
类名: Unicode
方法名 or 属性名:getType|@ohos.i18n.d.ts| +|新增|NA|方法名 or 属性名:calendar
函数:calendar?: string;|@ohos.intl.d.ts| +|新增|NA|方法名 or 属性名:collation
函数:collation?: string;|@ohos.intl.d.ts| +|新增|NA|方法名 or 属性名:hourCycle
函数:hourCycle?: string;|@ohos.intl.d.ts| +|新增|NA|方法名 or 属性名:numberingSystem
函数:numberingSystem?: string;|@ohos.intl.d.ts| +|新增|NA|方法名 or 属性名:numeric
函数:numeric?: boolean;|@ohos.intl.d.ts| +|新增|NA|方法名 or 属性名:caseFirst
函数:caseFirst?: string;|@ohos.intl.d.ts| +|新增|NA|方法名 or 属性名:locale
函数:locale?: string|@ohos.intl.d.ts| +|新增|NA|方法名 or 属性名:dateStyle
函数:dateStyle?: string|@ohos.intl.d.ts| +|新增|NA|方法名 or 属性名:timeStyle
函数:timeStyle?: string|@ohos.intl.d.ts| +|新增|NA|方法名 or 属性名:hourCycle
函数:hourCycle?: string|@ohos.intl.d.ts| +|新增|NA|方法名 or 属性名:timeZone
函数:timeZone?: string|@ohos.intl.d.ts| +|新增|NA|方法名 or 属性名:numberingSystem
函数:numberingSystem?: string|@ohos.intl.d.ts| +|新增|NA|方法名 or 属性名:hour12
函数:hour12?: boolean|@ohos.intl.d.ts| +|新增|NA|方法名 or 属性名:weekday
函数:weekday?: string|@ohos.intl.d.ts| +|新增|NA|方法名 or 属性名:era
函数:era?: string|@ohos.intl.d.ts| +|新增|NA|方法名 or 属性名:year
函数:year?: string|@ohos.intl.d.ts| +|新增|NA|方法名 or 属性名:month
函数:month?: string|@ohos.intl.d.ts| +|新增|NA|方法名 or 属性名:day
函数:day?: string|@ohos.intl.d.ts| +|新增|NA|方法名 or 属性名:hour
函数:hour?: string|@ohos.intl.d.ts| +|新增|NA|方法名 or 属性名:minute
函数:minute?: string|@ohos.intl.d.ts| +|新增|NA|方法名 or 属性名:second
函数:second?: string|@ohos.intl.d.ts| +|新增|NA|方法名 or 属性名:timeZoneName
函数:timeZoneName?: string|@ohos.intl.d.ts| +|新增|NA|方法名 or 属性名:dayPeriod
函数:dayPeriod?: string|@ohos.intl.d.ts| +|新增|NA|方法名 or 属性名:localeMatcher
函数:localeMatcher?: string|@ohos.intl.d.ts| +|新增|NA|方法名 or 属性名:formatMatcher
函数:formatMatcher?: string|@ohos.intl.d.ts| +|新增|NA|方法名 or 属性名:currency
函数:currency?: string|@ohos.intl.d.ts| +|新增|NA|方法名 or 属性名:currencySign
函数:currencySign?: string|@ohos.intl.d.ts| +|新增|NA|方法名 or 属性名:currencyDisplay
函数:currencyDisplay?: string|@ohos.intl.d.ts| +|新增|NA|方法名 or 属性名:unit
函数:unit?: string|@ohos.intl.d.ts| +|新增|NA|方法名 or 属性名:unitDisplay
函数:unitDisplay?: string|@ohos.intl.d.ts| +|新增|NA|方法名 or 属性名:unitUsage
函数:unitUsage?: string|@ohos.intl.d.ts| +|新增|NA|方法名 or 属性名:signDisplay
函数:signDisplay?: string|@ohos.intl.d.ts| +|新增|NA|方法名 or 属性名:compactDisplay
函数:compactDisplay?: string|@ohos.intl.d.ts| +|新增|NA|方法名 or 属性名:notation
函数:notation?: string|@ohos.intl.d.ts| +|新增|NA|方法名 or 属性名:style
函数:style?: string|@ohos.intl.d.ts| +|新增|NA|方法名 or 属性名:useGrouping
函数:useGrouping?: boolean|@ohos.intl.d.ts| +|新增|NA|方法名 or 属性名:minimumIntegerDigits
函数:minimumIntegerDigits?: number|@ohos.intl.d.ts| +|新增|NA|方法名 or 属性名:minimumFractionDigits
函数:minimumFractionDigits?: number|@ohos.intl.d.ts| +|新增|NA|方法名 or 属性名:maximumFractionDigits
函数:maximumFractionDigits?: number|@ohos.intl.d.ts| +|新增|NA|方法名 or 属性名:minimumSignificantDigits
函数:minimumSignificantDigits?: number|@ohos.intl.d.ts| +|新增|NA|方法名 or 属性名:maximumSignificantDigits
函数:maximumSignificantDigits?: number|@ohos.intl.d.ts| +|新增|NA|方法名 or 属性名:localeMatcher
函数:localeMatcher?: string;|@ohos.intl.d.ts| +|新增|NA|方法名 or 属性名:usage
函数:usage?: string;|@ohos.intl.d.ts| +|新增|NA|方法名 or 属性名:sensitivity
函数:sensitivity?: string;|@ohos.intl.d.ts| +|新增|NA|方法名 or 属性名:ignorePunctuation
函数:ignorePunctuation?: boolean;|@ohos.intl.d.ts| +|新增|NA|方法名 or 属性名:minimumIntegerDigits
函数:minimumIntegerDigits?: number;|@ohos.intl.d.ts| +|新增|NA|方法名 or 属性名:minimumFractionDigits
函数:minimumFractionDigits?: number;|@ohos.intl.d.ts| +|新增|NA|方法名 or 属性名:maximumFractionDigits
函数:maximumFractionDigits?: number;|@ohos.intl.d.ts| +|新增|NA|方法名 or 属性名:minimumSignificantDigits
函数:minimumSignificantDigits?: number;|@ohos.intl.d.ts| +|新增|NA|方法名 or 属性名:maximumSignificantDigits
函数:maximumSignificantDigits?: number;|@ohos.intl.d.ts| +|新增|NA|方法名 or 属性名:numeric
函数:numeric?: string;|@ohos.intl.d.ts| +|新增|NA|方法名 or 属性名:style
函数:style?: string;|@ohos.intl.d.ts| +|删除|模块名:ohos.i18n
类名:i18n
方法名 or 属性名:getSystemLanguages|NA|@ohos.i18n.d.ts| +|删除|模块名:ohos.i18n
类名:i18n
方法名 or 属性名:getSystemCountries|NA|@ohos.i18n.d.ts| +|删除|模块名:ohos.i18n
类名:i18n
方法名 or 属性名:isSuggested|NA|@ohos.i18n.d.ts| +|删除|模块名:ohos.i18n
类名:i18n
方法名 or 属性名:setSystemLanguage|NA|@ohos.i18n.d.ts| +|删除|模块名:ohos.i18n
类名:i18n
方法名 or 属性名:setSystemRegion|NA|@ohos.i18n.d.ts| +|删除|模块名:ohos.i18n
类名:i18n
方法名 or 属性名:setSystemLocale|NA|@ohos.i18n.d.ts| +|删除|模块名:ohos.i18n
类名:Util
方法名 or 属性名:getDateOrder|NA|@ohos.i18n.d.ts| +|删除|模块名:ohos.i18n
类名:i18n
方法名 or 属性名:getAppPreferredLanguage|NA|@ohos.i18n.d.ts| +|删除|模块名:ohos.i18n
类名:i18n
方法名 or 属性名:setUsingLocalDigit|NA|@ohos.i18n.d.ts| +|删除|模块名:ohos.i18n
类名:i18n
方法名 or 属性名:getUsingLocalDigit|NA|@ohos.i18n.d.ts| +|删除|模块名: ohos.resourceManager
类名: AsyncCallback|NA|@ohos.resourceManager.d.ts| +|删除|模块名: ohos.resourceManager
类名: AsyncCallback
方法名 or 属性名:AsyncCallback|NA|@ohos.resourceManager.d.ts| |废弃版本有变化|方法名 or 属性名:getDisplayCountry
废弃版本:N/A|方法名 or 属性名:getDisplayCountry
废弃版本:9
代替接口:ohos.System.getDisplayCountry |@ohos.i18n.d.ts| |废弃版本有变化|方法名 or 属性名:getDisplayLanguage
废弃版本:N/A|方法名 or 属性名:getDisplayLanguage
废弃版本:9
代替接口:ohos.System.getDisplayLanguage |@ohos.i18n.d.ts| |废弃版本有变化|方法名 or 属性名:getSystemLanguage
废弃版本:N/A|方法名 or 属性名:getSystemLanguage
废弃版本:9
代替接口:ohos.System.getSystemLanguage |@ohos.i18n.d.ts| |废弃版本有变化|方法名 or 属性名:getSystemRegion
废弃版本:N/A|方法名 or 属性名:getSystemRegion
废弃版本:9
代替接口:ohos.System.getSystemRegion |@ohos.i18n.d.ts| |废弃版本有变化|方法名 or 属性名:getSystemLocale
废弃版本:N/A|方法名 or 属性名:getSystemLocale
废弃版本:9
代替接口:ohos.System.getSystemLocale |@ohos.i18n.d.ts| +|废弃版本有变化|类名:Util
废弃版本:N/A|类名:Util
废弃版本:9
代替接口:I18NUitl |@ohos.i18n.d.ts| +|废弃版本有变化|方法名 or 属性名:unitConvert
废弃版本:N/A|方法名 or 属性名:unitConvert
废弃版本:9
代替接口:I18NUtil.unitConvert |@ohos.i18n.d.ts| +|废弃版本有变化|类名:Character
废弃版本:N/A|类名:Character
废弃版本:9
代替接口:Unicode |@ohos.i18n.d.ts| +|废弃版本有变化|方法名 or 属性名:isDigit
废弃版本:N/A|方法名 or 属性名:isDigit
废弃版本:9
代替接口:Unicode.isDigit |@ohos.i18n.d.ts| +|废弃版本有变化|方法名 or 属性名:isSpaceChar
废弃版本:N/A|方法名 or 属性名:isSpaceChar
废弃版本:9
代替接口:Unicode.isSpaceChar |@ohos.i18n.d.ts| +|废弃版本有变化|方法名 or 属性名:isWhitespace
废弃版本:N/A|方法名 or 属性名:isWhitespace
废弃版本:9
代替接口:Unicode.isWhitespace |@ohos.i18n.d.ts| +|废弃版本有变化|方法名 or 属性名:isRTL
废弃版本:N/A|方法名 or 属性名:isRTL
废弃版本:9
代替接口:Unicode.isRTL |@ohos.i18n.d.ts| +|废弃版本有变化|方法名 or 属性名:isIdeograph
废弃版本:N/A|方法名 or 属性名:isIdeograph
废弃版本:9
代替接口:Unicode.isIdeograph |@ohos.i18n.d.ts| +|废弃版本有变化|方法名 or 属性名:isLetter
废弃版本:N/A|方法名 or 属性名:isLetter
废弃版本:9
代替接口:Unicode.isLetter |@ohos.i18n.d.ts| +|废弃版本有变化|方法名 or 属性名:isLowerCase
废弃版本:N/A|方法名 or 属性名:isLowerCase
废弃版本:9
代替接口:Unicode.isLowerCase |@ohos.i18n.d.ts| +|废弃版本有变化|方法名 or 属性名:isUpperCase
废弃版本:N/A|方法名 or 属性名:isUpperCase
废弃版本:9
代替接口:Unicode.isUpperCase |@ohos.i18n.d.ts| +|废弃版本有变化|方法名 or 属性名:getType
废弃版本:N/A|方法名 or 属性名:getType
废弃版本:9
代替接口:Unicode.getType |@ohos.i18n.d.ts| |废弃版本有变化|方法名 or 属性名:is24HourClock
废弃版本:N/A|方法名 or 属性名:is24HourClock
废弃版本:9
代替接口:ohos.System.is24HourClock |@ohos.i18n.d.ts| |废弃版本有变化|方法名 or 属性名:set24HourClock
废弃版本:N/A|方法名 or 属性名:set24HourClock
废弃版本:9
代替接口:ohos.System.set24HourClock |@ohos.i18n.d.ts| |废弃版本有变化|方法名 or 属性名:addPreferredLanguage
废弃版本:N/A|方法名 or 属性名:addPreferredLanguage
废弃版本:9
代替接口:ohos.System.addPreferredLanguage |@ohos.i18n.d.ts| @@ -85,22 +138,22 @@ |废弃版本有变化|方法名 or 属性名:getRawFileDescriptor
废弃版本:N/A|方法名 or 属性名:getRawFileDescriptor
废弃版本:9
代替接口:ohos.resourceManager.getRawFd |@ohos.resourceManager.d.ts| |废弃版本有变化|方法名 or 属性名:closeRawFileDescriptor
废弃版本:N/A|方法名 or 属性名:closeRawFileDescriptor
废弃版本:9
代替接口:ohos.resourceManager.closeRawFd |@ohos.resourceManager.d.ts| |废弃版本有变化|方法名 or 属性名:closeRawFileDescriptor
废弃版本:N/A|方法名 or 属性名:closeRawFileDescriptor
废弃版本:9
代替接口:ohos.resourceManager.closeRawFd |@ohos.resourceManager.d.ts| -|新增(错误码)||方法名 or 属性名:getStringByName
错误码内容:401,9001003,9001004,9001006|@ohos.resourceManager.d.ts| -|新增(错误码)||方法名 or 属性名:getStringByName
错误码内容:401,9001003,9001004,9001006|@ohos.resourceManager.d.ts| -|新增(错误码)||方法名 or 属性名:getStringArrayByName
错误码内容:401,9001003,9001004,9001006|@ohos.resourceManager.d.ts| -|新增(错误码)||方法名 or 属性名:getStringArrayByName
错误码内容:401,9001003,9001004,9001006|@ohos.resourceManager.d.ts| -|新增(错误码)||方法名 or 属性名:getMediaByName
错误码内容:401,9001003,9001004|@ohos.resourceManager.d.ts| -|新增(错误码)||方法名 or 属性名:getMediaByName
错误码内容:401,9001003,9001004|@ohos.resourceManager.d.ts| -|新增(错误码)||方法名 or 属性名:getMediaBase64ByName
错误码内容:401,9001003,9001004|@ohos.resourceManager.d.ts| -|新增(错误码)||方法名 or 属性名:getMediaBase64ByName
错误码内容:401,9001003,9001004|@ohos.resourceManager.d.ts| -|新增(错误码)||方法名 or 属性名:getPluralStringByName
错误码内容:401,9001003,9001004,9001006|@ohos.resourceManager.d.ts| -|新增(错误码)||方法名 or 属性名:getPluralStringByName
错误码内容:401,9001003,9001004,9001006|@ohos.resourceManager.d.ts| -|新增(错误码)||方法名 or 属性名:getStringSync
错误码内容:401,9001001,9001002,9001006|@ohos.resourceManager.d.ts| -|新增(错误码)||方法名 or 属性名:getStringSync
错误码内容:401,9001001,9001002,9001006|@ohos.resourceManager.d.ts| -|新增(错误码)||方法名 or 属性名:getStringByNameSync
错误码内容:401,9001003,9001004,9001006|@ohos.resourceManager.d.ts| -|新增(错误码)||方法名 or 属性名:getBoolean
错误码内容:401,9001001,9001002,9001006|@ohos.resourceManager.d.ts| -|新增(错误码)||方法名 or 属性名:getBoolean
错误码内容:401,9001001,9001002,9001006|@ohos.resourceManager.d.ts| -|新增(错误码)||方法名 or 属性名:getBooleanByName
错误码内容:401,9001003,9001004,9001006|@ohos.resourceManager.d.ts| -|新增(错误码)||方法名 or 属性名:getNumber
错误码内容:401,9001001,9001002,9001006|@ohos.resourceManager.d.ts| -|新增(错误码)||方法名 or 属性名:getNumber
错误码内容:401,9001001,9001002,9001006|@ohos.resourceManager.d.ts| -|新增(错误码)||方法名 or 属性名:getNumberByName
错误码内容:401,9001003,9001004,9001006|@ohos.resourceManager.d.ts| +|新增(错误码)|NA|方法名 or 属性名:getStringByName
错误码内容:401,9001003,9001004,9001006|@ohos.resourceManager.d.ts| +|新增(错误码)|NA|方法名 or 属性名:getStringByName
错误码内容:401,9001003,9001004,9001006|@ohos.resourceManager.d.ts| +|新增(错误码)|NA|方法名 or 属性名:getStringArrayByName
错误码内容:401,9001003,9001004,9001006|@ohos.resourceManager.d.ts| +|新增(错误码)|NA|方法名 or 属性名:getStringArrayByName
错误码内容:401,9001003,9001004,9001006|@ohos.resourceManager.d.ts| +|新增(错误码)|NA|方法名 or 属性名:getMediaByName
错误码内容:401,9001003,9001004|@ohos.resourceManager.d.ts| +|新增(错误码)|NA|方法名 or 属性名:getMediaByName
错误码内容:401,9001003,9001004|@ohos.resourceManager.d.ts| +|新增(错误码)|NA|方法名 or 属性名:getMediaBase64ByName
错误码内容:401,9001003,9001004|@ohos.resourceManager.d.ts| +|新增(错误码)|NA|方法名 or 属性名:getMediaBase64ByName
错误码内容:401,9001003,9001004|@ohos.resourceManager.d.ts| +|新增(错误码)|NA|方法名 or 属性名:getPluralStringByName
错误码内容:401,9001003,9001004,9001006|@ohos.resourceManager.d.ts| +|新增(错误码)|NA|方法名 or 属性名:getPluralStringByName
错误码内容:401,9001003,9001004,9001006|@ohos.resourceManager.d.ts| +|新增(错误码)|NA|方法名 or 属性名:getStringSync
错误码内容:401,9001001,9001002,9001006|@ohos.resourceManager.d.ts| +|新增(错误码)|NA|方法名 or 属性名:getStringSync
错误码内容:401,9001001,9001002,9001006|@ohos.resourceManager.d.ts| +|新增(错误码)|NA|方法名 or 属性名:getStringByNameSync
错误码内容:401,9001003,9001004,9001006|@ohos.resourceManager.d.ts| +|新增(错误码)|NA|方法名 or 属性名:getBoolean
错误码内容:401,9001001,9001002,9001006|@ohos.resourceManager.d.ts| +|新增(错误码)|NA|方法名 or 属性名:getBoolean
错误码内容:401,9001001,9001002,9001006|@ohos.resourceManager.d.ts| +|新增(错误码)|NA|方法名 or 属性名:getBooleanByName
错误码内容:401,9001003,9001004,9001006|@ohos.resourceManager.d.ts| +|新增(错误码)|NA|方法名 or 属性名:getNumber
错误码内容:401,9001001,9001002,9001006|@ohos.resourceManager.d.ts| +|新增(错误码)|NA|方法名 or 属性名:getNumber
错误码内容:401,9001001,9001002,9001006|@ohos.resourceManager.d.ts| +|新增(错误码)|NA|方法名 or 属性名:getNumberByName
错误码内容:401,9001003,9001004,9001006|@ohos.resourceManager.d.ts| diff --git a/zh-cn/release-notes/api-diff/monthly-202210/js-apidiff-graphic.md b/zh-cn/release-notes/api-diff/monthly-202210/js-apidiff-graphic.md new file mode 100644 index 0000000000000000000000000000000000000000..cb6bf067895a789d2fc648d614698548199e8159 --- /dev/null +++ b/zh-cn/release-notes/api-diff/monthly-202210/js-apidiff-graphic.md @@ -0,0 +1,379 @@ +| 操作 | 旧版本 | 新版本 | d.ts文件 | +| ---- | ------ | ------ | -------- | +|新增|NA|方法名 or 属性名:READ_BUFFER
函数:readonly READ_BUFFER: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:UNPACK_ROW_LENGTH
函数:readonly UNPACK_ROW_LENGTH: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:UNPACK_SKIP_ROWS
函数:readonly UNPACK_SKIP_ROWS: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:UNPACK_SKIP_PIXELS
函数:readonly UNPACK_SKIP_PIXELS: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:PACK_ROW_LENGTH
函数:readonly PACK_ROW_LENGTH: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:PACK_SKIP_ROWS
函数:readonly PACK_SKIP_ROWS: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:PACK_SKIP_PIXELS
函数:readonly PACK_SKIP_PIXELS: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:COLOR
函数:readonly COLOR: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:DEPTH
函数:readonly DEPTH: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:STENCIL
函数:readonly STENCIL: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:RED
函数:readonly RED: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:RGB8
函数:readonly RGB8: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:RGBA8
函数:readonly RGBA8: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:RGB10_A2
函数:readonly RGB10_A2: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:TEXTURE_BINDING_3D
函数:readonly TEXTURE_BINDING_3D: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:UNPACK_SKIP_IMAGES
函数:readonly UNPACK_SKIP_IMAGES: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:UNPACK_IMAGE_HEIGHT
函数:readonly UNPACK_IMAGE_HEIGHT: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:TEXTURE_3D
函数:readonly TEXTURE_3D: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:TEXTURE_WRAP_R
函数:readonly TEXTURE_WRAP_R: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:MAX_3D_TEXTURE_SIZE
函数:readonly MAX_3D_TEXTURE_SIZE: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:UNSIGNED_INT_2_10_10_10_REV
函数:readonly UNSIGNED_INT_2_10_10_10_REV: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:MAX_ELEMENTS_VERTICES
函数:readonly MAX_ELEMENTS_VERTICES: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:MAX_ELEMENTS_INDICES
函数:readonly MAX_ELEMENTS_INDICES: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:TEXTURE_MIN_LOD
函数:readonly TEXTURE_MIN_LOD: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:TEXTURE_MAX_LOD
函数:readonly TEXTURE_MAX_LOD: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:TEXTURE_BASE_LEVEL
函数:readonly TEXTURE_BASE_LEVEL: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:TEXTURE_MAX_LEVEL
函数:readonly TEXTURE_MAX_LEVEL: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:MIN
函数:readonly MIN: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:MAX
函数:readonly MAX: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:DEPTH_COMPONENT24
函数:readonly DEPTH_COMPONENT24: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:MAX_TEXTURE_LOD_BIAS
函数:readonly MAX_TEXTURE_LOD_BIAS: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:TEXTURE_COMPARE_MODE
函数:readonly TEXTURE_COMPARE_MODE: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:TEXTURE_COMPARE_FUNC
函数:readonly TEXTURE_COMPARE_FUNC: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:CURRENT_QUERY
函数:readonly CURRENT_QUERY: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:QUERY_RESULT
函数:readonly QUERY_RESULT: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:QUERY_RESULT_AVAILABLE
函数:readonly QUERY_RESULT_AVAILABLE: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:STREAM_READ
函数:readonly STREAM_READ: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:STREAM_COPY
函数:readonly STREAM_COPY: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:STATIC_READ
函数:readonly STATIC_READ: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:STATIC_COPY
函数:readonly STATIC_COPY: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:DYNAMIC_READ
函数:readonly DYNAMIC_READ: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:DYNAMIC_COPY
函数:readonly DYNAMIC_COPY: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:MAX_DRAW_BUFFERS
函数:readonly MAX_DRAW_BUFFERS: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:DRAW_BUFFER0
函数:readonly DRAW_BUFFER0: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:DRAW_BUFFER1
函数:readonly DRAW_BUFFER1: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:DRAW_BUFFER2
函数:readonly DRAW_BUFFER2: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:DRAW_BUFFER3
函数:readonly DRAW_BUFFER3: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:DRAW_BUFFER4
函数:readonly DRAW_BUFFER4: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:DRAW_BUFFER5
函数:readonly DRAW_BUFFER5: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:DRAW_BUFFER6
函数:readonly DRAW_BUFFER6: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:DRAW_BUFFER7
函数:readonly DRAW_BUFFER7: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:DRAW_BUFFER8
函数:readonly DRAW_BUFFER8: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:DRAW_BUFFER9
函数:readonly DRAW_BUFFER9: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:DRAW_BUFFER10
函数:readonly DRAW_BUFFER10: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:DRAW_BUFFER11
函数:readonly DRAW_BUFFER11: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:DRAW_BUFFER12
函数:readonly DRAW_BUFFER12: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:DRAW_BUFFER13
函数:readonly DRAW_BUFFER13: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:DRAW_BUFFER14
函数:readonly DRAW_BUFFER14: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:DRAW_BUFFER15
函数:readonly DRAW_BUFFER15: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:MAX_FRAGMENT_UNIFORM_COMPONENTS
函数:readonly MAX_FRAGMENT_UNIFORM_COMPONENTS: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:MAX_VERTEX_UNIFORM_COMPONENTS
函数:readonly MAX_VERTEX_UNIFORM_COMPONENTS: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:SAMPLER_3D
函数:readonly SAMPLER_3D: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:SAMPLER_2D_SHADOW
函数:readonly SAMPLER_2D_SHADOW: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:FRAGMENT_SHADER_DERIVATIVE_HINT
函数:readonly FRAGMENT_SHADER_DERIVATIVE_HINT: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:PIXEL_PACK_BUFFER
函数:readonly PIXEL_PACK_BUFFER: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:PIXEL_UNPACK_BUFFER
函数:readonly PIXEL_UNPACK_BUFFER: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:PIXEL_PACK_BUFFER_BINDING
函数:readonly PIXEL_PACK_BUFFER_BINDING: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:PIXEL_UNPACK_BUFFER_BINDING
函数:readonly PIXEL_UNPACK_BUFFER_BINDING: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:FLOAT_MAT2x3
函数:readonly FLOAT_MAT2x3: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:FLOAT_MAT2x4
函数:readonly FLOAT_MAT2x4: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:FLOAT_MAT3x2
函数:readonly FLOAT_MAT3x2: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:FLOAT_MAT3x4
函数:readonly FLOAT_MAT3x4: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:FLOAT_MAT4x2
函数:readonly FLOAT_MAT4x2: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:FLOAT_MAT4x3
函数:readonly FLOAT_MAT4x3: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:SRGB
函数:readonly SRGB: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:SRGB8
函数:readonly SRGB8: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:SRGB8_ALPHA8
函数:readonly SRGB8_ALPHA8: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:COMPARE_REF_TO_TEXTURE
函数:readonly COMPARE_REF_TO_TEXTURE: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:RGBA32F
函数:readonly RGBA32F: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:RGB32F
函数:readonly RGB32F: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:RGBA16F
函数:readonly RGBA16F: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:RGB16F
函数:readonly RGB16F: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:VERTEX_ATTRIB_ARRAY_INTEGER
函数:readonly VERTEX_ATTRIB_ARRAY_INTEGER: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:MAX_ARRAY_TEXTURE_LAYERS
函数:readonly MAX_ARRAY_TEXTURE_LAYERS: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:MIN_PROGRAM_TEXEL_OFFSET
函数:readonly MIN_PROGRAM_TEXEL_OFFSET: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:MAX_PROGRAM_TEXEL_OFFSET
函数:readonly MAX_PROGRAM_TEXEL_OFFSET: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:MAX_VARYING_COMPONENTS
函数:readonly MAX_VARYING_COMPONENTS: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:TEXTURE_2D_ARRAY
函数:readonly TEXTURE_2D_ARRAY: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:TEXTURE_BINDING_2D_ARRAY
函数:readonly TEXTURE_BINDING_2D_ARRAY: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:R11F_G11F_B10F
函数:readonly R11F_G11F_B10F: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:UNSIGNED_INT_10F_11F_11F_REV
函数:readonly UNSIGNED_INT_10F_11F_11F_REV: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:RGB9_E5
函数:readonly RGB9_E5: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:UNSIGNED_INT_5_9_9_9_REV
函数:readonly UNSIGNED_INT_5_9_9_9_REV: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:TRANSFORM_FEEDBACK_BUFFER_MODE
函数:readonly TRANSFORM_FEEDBACK_BUFFER_MODE: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS
函数:readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:TRANSFORM_FEEDBACK_VARYINGS
函数:readonly TRANSFORM_FEEDBACK_VARYINGS: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:TRANSFORM_FEEDBACK_BUFFER_START
函数:readonly TRANSFORM_FEEDBACK_BUFFER_START: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:TRANSFORM_FEEDBACK_BUFFER_SIZE
函数:readonly TRANSFORM_FEEDBACK_BUFFER_SIZE: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN
函数:readonly TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:RASTERIZER_DISCARD
函数:readonly RASTERIZER_DISCARD: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS
函数:readonly MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS
函数:readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:INTERLEAVED_ATTRIBS
函数:readonly INTERLEAVED_ATTRIBS: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:SEPARATE_ATTRIBS
函数:readonly SEPARATE_ATTRIBS: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:TRANSFORM_FEEDBACK_BUFFER
函数:readonly TRANSFORM_FEEDBACK_BUFFER: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:TRANSFORM_FEEDBACK_BUFFER_BINDING
函数:readonly TRANSFORM_FEEDBACK_BUFFER_BINDING: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:RGBA32UI
函数:readonly RGBA32UI: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:RGB32UI
函数:readonly RGB32UI: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:RGBA16UI
函数:readonly RGBA16UI: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:RGB16UI
函数:readonly RGB16UI: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:RGBA8UI
函数:readonly RGBA8UI: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:RGB8UI
函数:readonly RGB8UI: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:RGBA32I
函数:readonly RGBA32I: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:RGB32I
函数:readonly RGB32I: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:RGBA16I
函数:readonly RGBA16I: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:RGB16I
函数:readonly RGB16I: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:RGBA8I
函数:readonly RGBA8I: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:RGB8I
函数:readonly RGB8I: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:RED_INTEGER
函数:readonly RED_INTEGER: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:RGB_INTEGER
函数:readonly RGB_INTEGER: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:RGBA_INTEGER
函数:readonly RGBA_INTEGER: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:SAMPLER_2D_ARRAY
函数:readonly SAMPLER_2D_ARRAY: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:SAMPLER_2D_ARRAY_SHADOW
函数:readonly SAMPLER_2D_ARRAY_SHADOW: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:SAMPLER_CUBE_SHADOW
函数:readonly SAMPLER_CUBE_SHADOW: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:UNSIGNED_INT_VEC2
函数:readonly UNSIGNED_INT_VEC2: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:UNSIGNED_INT_VEC3
函数:readonly UNSIGNED_INT_VEC3: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:UNSIGNED_INT_VEC4
函数:readonly UNSIGNED_INT_VEC4: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:INT_SAMPLER_2D
函数:readonly INT_SAMPLER_2D: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:INT_SAMPLER_3D
函数:readonly INT_SAMPLER_3D: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:INT_SAMPLER_CUBE
函数:readonly INT_SAMPLER_CUBE: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:INT_SAMPLER_2D_ARRAY
函数:readonly INT_SAMPLER_2D_ARRAY: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:UNSIGNED_INT_SAMPLER_2D
函数:readonly UNSIGNED_INT_SAMPLER_2D: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:UNSIGNED_INT_SAMPLER_3D
函数:readonly UNSIGNED_INT_SAMPLER_3D: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:UNSIGNED_INT_SAMPLER_CUBE
函数:readonly UNSIGNED_INT_SAMPLER_CUBE: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:UNSIGNED_INT_SAMPLER_2D_ARRAY
函数:readonly UNSIGNED_INT_SAMPLER_2D_ARRAY: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:DEPTH_COMPONENT32F
函数:readonly DEPTH_COMPONENT32F: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:DEPTH32F_STENCIL8
函数:readonly DEPTH32F_STENCIL8: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:FLOAT_32_UNSIGNED_INT_24_8_REV
函数:readonly FLOAT_32_UNSIGNED_INT_24_8_REV: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING
函数:readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE
函数:readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:FRAMEBUFFER_ATTACHMENT_RED_SIZE
函数:readonly FRAMEBUFFER_ATTACHMENT_RED_SIZE: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:FRAMEBUFFER_ATTACHMENT_GREEN_SIZE
函数:readonly FRAMEBUFFER_ATTACHMENT_GREEN_SIZE: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:FRAMEBUFFER_ATTACHMENT_BLUE_SIZE
函数:readonly FRAMEBUFFER_ATTACHMENT_BLUE_SIZE: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE
函数:readonly FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE
函数:readonly FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE
函数:readonly FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:FRAMEBUFFER_DEFAULT
函数:readonly FRAMEBUFFER_DEFAULT: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:UNSIGNED_INT_24_8
函数:readonly UNSIGNED_INT_24_8: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:DEPTH24_STENCIL8
函数:readonly DEPTH24_STENCIL8: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:UNSIGNED_NORMALIZED
函数:readonly UNSIGNED_NORMALIZED: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:DRAW_FRAMEBUFFER_BINDING
函数:readonly DRAW_FRAMEBUFFER_BINDING: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:READ_FRAMEBUFFER
函数:readonly READ_FRAMEBUFFER: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:DRAW_FRAMEBUFFER
函数:readonly DRAW_FRAMEBUFFER: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:READ_FRAMEBUFFER_BINDING
函数:readonly READ_FRAMEBUFFER_BINDING: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:RENDERBUFFER_SAMPLES
函数:readonly RENDERBUFFER_SAMPLES: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER
函数:readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:MAX_COLOR_ATTACHMENTS
函数:readonly MAX_COLOR_ATTACHMENTS: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:COLOR_ATTACHMENT1
函数:readonly COLOR_ATTACHMENT1: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:COLOR_ATTACHMENT2
函数:readonly COLOR_ATTACHMENT2: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:COLOR_ATTACHMENT3
函数:readonly COLOR_ATTACHMENT3: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:COLOR_ATTACHMENT4
函数:readonly COLOR_ATTACHMENT4: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:COLOR_ATTACHMENT5
函数:readonly COLOR_ATTACHMENT5: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:COLOR_ATTACHMENT6
函数:readonly COLOR_ATTACHMENT6: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:COLOR_ATTACHMENT7
函数:readonly COLOR_ATTACHMENT7: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:COLOR_ATTACHMENT8
函数:readonly COLOR_ATTACHMENT8: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:COLOR_ATTACHMENT9
函数:readonly COLOR_ATTACHMENT9: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:COLOR_ATTACHMENT10
函数:readonly COLOR_ATTACHMENT10: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:COLOR_ATTACHMENT11
函数:readonly COLOR_ATTACHMENT11: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:COLOR_ATTACHMENT12
函数:readonly COLOR_ATTACHMENT12: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:COLOR_ATTACHMENT13
函数:readonly COLOR_ATTACHMENT13: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:COLOR_ATTACHMENT14
函数:readonly COLOR_ATTACHMENT14: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:COLOR_ATTACHMENT15
函数:readonly COLOR_ATTACHMENT15: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:FRAMEBUFFER_INCOMPLETE_MULTISAMPLE
函数:readonly FRAMEBUFFER_INCOMPLETE_MULTISAMPLE: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:MAX_SAMPLES
函数:readonly MAX_SAMPLES: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:HALF_FLOAT
函数:readonly HALF_FLOAT: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:RG
函数:readonly RG: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:RG_INTEGER
函数:readonly RG_INTEGER: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:R8
函数:readonly R8: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:RG8
函数:readonly RG8: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:R16F
函数:readonly R16F: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:R32F
函数:readonly R32F: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:RG16F
函数:readonly RG16F: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:RG32F
函数:readonly RG32F: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:R8I
函数:readonly R8I: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:R8UI
函数:readonly R8UI: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:R16I
函数:readonly R16I: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:R16UI
函数:readonly R16UI: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:R32I
函数:readonly R32I: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:R32UI
函数:readonly R32UI: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:RG8I
函数:readonly RG8I: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:RG8UI
函数:readonly RG8UI: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:RG16I
函数:readonly RG16I: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:RG16UI
函数:readonly RG16UI: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:RG32I
函数:readonly RG32I: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:RG32UI
函数:readonly RG32UI: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:VERTEX_ARRAY_BINDING
函数:readonly VERTEX_ARRAY_BINDING: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:R8_SNORM
函数:readonly R8_SNORM: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:RG8_SNORM
函数:readonly RG8_SNORM: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:RGB8_SNORM
函数:readonly RGB8_SNORM: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:RGBA8_SNORM
函数:readonly RGBA8_SNORM: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:SIGNED_NORMALIZED
函数:readonly SIGNED_NORMALIZED: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:COPY_READ_BUFFER
函数:readonly COPY_READ_BUFFER: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:COPY_WRITE_BUFFER
函数:readonly COPY_WRITE_BUFFER: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:COPY_READ_BUFFER_BINDING
函数:readonly COPY_READ_BUFFER_BINDING: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:COPY_WRITE_BUFFER_BINDING
函数:readonly COPY_WRITE_BUFFER_BINDING: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:UNIFORM_BUFFER
函数:readonly UNIFORM_BUFFER: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:UNIFORM_BUFFER_BINDING
函数:readonly UNIFORM_BUFFER_BINDING: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:UNIFORM_BUFFER_START
函数:readonly UNIFORM_BUFFER_START: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:UNIFORM_BUFFER_SIZE
函数:readonly UNIFORM_BUFFER_SIZE: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:MAX_VERTEX_UNIFORM_BLOCKS
函数:readonly MAX_VERTEX_UNIFORM_BLOCKS: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:MAX_FRAGMENT_UNIFORM_BLOCKS
函数:readonly MAX_FRAGMENT_UNIFORM_BLOCKS: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:MAX_COMBINED_UNIFORM_BLOCKS
函数:readonly MAX_COMBINED_UNIFORM_BLOCKS: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:MAX_UNIFORM_BUFFER_BINDINGS
函数:readonly MAX_UNIFORM_BUFFER_BINDINGS: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:MAX_UNIFORM_BLOCK_SIZE
函数:readonly MAX_UNIFORM_BLOCK_SIZE: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS
函数:readonly MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS
函数:readonly MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:UNIFORM_BUFFER_OFFSET_ALIGNMENT
函数:readonly UNIFORM_BUFFER_OFFSET_ALIGNMENT: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:ACTIVE_UNIFORM_BLOCKS
函数:readonly ACTIVE_UNIFORM_BLOCKS: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:UNIFORM_TYPE
函数:readonly UNIFORM_TYPE: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:UNIFORM_SIZE
函数:readonly UNIFORM_SIZE: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:UNIFORM_BLOCK_INDEX
函数:readonly UNIFORM_BLOCK_INDEX: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:UNIFORM_OFFSET
函数:readonly UNIFORM_OFFSET: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:UNIFORM_ARRAY_STRIDE
函数:readonly UNIFORM_ARRAY_STRIDE: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:UNIFORM_MATRIX_STRIDE
函数:readonly UNIFORM_MATRIX_STRIDE: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:UNIFORM_IS_ROW_MAJOR
函数:readonly UNIFORM_IS_ROW_MAJOR: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:UNIFORM_BLOCK_BINDING
函数:readonly UNIFORM_BLOCK_BINDING: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:UNIFORM_BLOCK_DATA_SIZE
函数:readonly UNIFORM_BLOCK_DATA_SIZE: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:UNIFORM_BLOCK_ACTIVE_UNIFORMS
函数:readonly UNIFORM_BLOCK_ACTIVE_UNIFORMS: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES
函数:readonly UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER
函数:readonly UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER
函数:readonly UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:INVALID_INDEX
函数:readonly INVALID_INDEX: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:MAX_VERTEX_OUTPUT_COMPONENTS
函数:readonly MAX_VERTEX_OUTPUT_COMPONENTS: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:MAX_FRAGMENT_INPUT_COMPONENTS
函数:readonly MAX_FRAGMENT_INPUT_COMPONENTS: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:MAX_SERVER_WAIT_TIMEOUT
函数:readonly MAX_SERVER_WAIT_TIMEOUT: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:OBJECT_TYPE
函数:readonly OBJECT_TYPE: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:SYNC_CONDITION
函数:readonly SYNC_CONDITION: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:SYNC_STATUS
函数:readonly SYNC_STATUS: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:SYNC_FLAGS
函数:readonly SYNC_FLAGS: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:SYNC_FENCE
函数:readonly SYNC_FENCE: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:SYNC_GPU_COMMANDS_COMPLETE
函数:readonly SYNC_GPU_COMMANDS_COMPLETE: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:UNSIGNALED
函数:readonly UNSIGNALED: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:SIGNALED
函数:readonly SIGNALED: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:ALREADY_SIGNALED
函数:readonly ALREADY_SIGNALED: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:TIMEOUT_EXPIRED
函数:readonly TIMEOUT_EXPIRED: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:CONDITION_SATISFIED
函数:readonly CONDITION_SATISFIED: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:WAIT_FAILED
函数:readonly WAIT_FAILED: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:SYNC_FLUSH_COMMANDS_BIT
函数:readonly SYNC_FLUSH_COMMANDS_BIT: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:VERTEX_ATTRIB_ARRAY_DIVISOR
函数:readonly VERTEX_ATTRIB_ARRAY_DIVISOR: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:ANY_SAMPLES_PASSED
函数:readonly ANY_SAMPLES_PASSED: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:ANY_SAMPLES_PASSED_CONSERVATIVE
函数:readonly ANY_SAMPLES_PASSED_CONSERVATIVE: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:SAMPLER_BINDING
函数:readonly SAMPLER_BINDING: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:RGB10_A2UI
函数:readonly RGB10_A2UI: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:INT_2_10_10_10_REV
函数:readonly INT_2_10_10_10_REV: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:TRANSFORM_FEEDBACK
函数:readonly TRANSFORM_FEEDBACK: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:TRANSFORM_FEEDBACK_PAUSED
函数:readonly TRANSFORM_FEEDBACK_PAUSED: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:TRANSFORM_FEEDBACK_ACTIVE
函数:readonly TRANSFORM_FEEDBACK_ACTIVE: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:TRANSFORM_FEEDBACK_BINDING
函数:readonly TRANSFORM_FEEDBACK_BINDING: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:TEXTURE_IMMUTABLE_FORMAT
函数:readonly TEXTURE_IMMUTABLE_FORMAT: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:MAX_ELEMENT_INDEX
函数:readonly MAX_ELEMENT_INDEX: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:TEXTURE_IMMUTABLE_LEVELS
函数:readonly TEXTURE_IMMUTABLE_LEVELS: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:MAX_CLIENT_WAIT_TIMEOUT_WEBGL
函数:readonly MAX_CLIENT_WAIT_TIMEOUT_WEBGL: webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:copyBufferSubData
函数:copyBufferSubData(readTarget: webgl.GLenum, writeTarget: webgl.GLenum, readOffset: webgl.GLintptr, writeOffset: webgl.GLintptr, size: webgl.GLsizeiptr): void;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:getBufferSubData
函数:getBufferSubData(target: webgl.GLenum, srcByteOffset: webgl.GLintptr, dstBuffer: ArrayBufferView, dstOffset?: webgl.GLuint, length?: webgl.GLuint): void;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:blitFramebuffer
函数:blitFramebuffer(srcX0: webgl.GLint, srcY0: webgl.GLint, srcX1: webgl.GLint, srcY1: webgl.GLint, dstX0: webgl.GLint, dstY0: webgl.GLint, dstX1: webgl.GLint, dstY1: webgl.GLint, mask: webgl.GLbitfield, filter: webgl.GLenum): void;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:framebufferTextureLayer
函数:framebufferTextureLayer(target: webgl.GLenum, attachment: webgl.GLenum, texture: webgl.WebGLTexture \| null, level: webgl.GLint, layer: webgl.GLint): void;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:invalidateFramebuffer
函数:invalidateFramebuffer(target: webgl.GLenum, attachments: webgl.GLenum[]): void;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:invalidateSubFramebuffer
函数:invalidateSubFramebuffer(target: webgl.GLenum, attachments: webgl.GLenum[], x: webgl.GLint, y: webgl.GLint, width: webgl.GLsizei, height: webgl.GLsizei): void;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:readBuffer
函数:readBuffer(src: webgl.GLenum): void;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:getInternalformatParameter
函数:getInternalformatParameter(target: webgl.GLenum, internalformat: webgl.GLenum, pname: webgl.GLenum): any;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:renderbufferStorageMultisample
函数:renderbufferStorageMultisample(target: webgl.GLenum, samples: webgl.GLsizei, internalformat: webgl.GLenum, width: webgl.GLsizei, height: webgl.GLsizei): void;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:texStorage2D
函数:texStorage2D(target: webgl.GLenum, levels: webgl.GLsizei, internalformat: webgl.GLenum, width: webgl.GLsizei, height: webgl.GLsizei): void;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:texStorage3D
函数:texStorage3D(target: webgl.GLenum, levels: webgl.GLsizei, internalformat: webgl.GLenum, width: webgl.GLsizei, height: webgl.GLsizei, depth: webgl.GLsizei): void;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:texImage3D
函数:texImage3D(target: webgl.GLenum, level: webgl.GLint, internalformat: webgl.GLint, width: webgl.GLsizei, height: webgl.GLsizei, depth: webgl.GLsizei, border: webgl.GLint, format: webgl.GLenum, type: webgl.GLenum, pboOffset: webgl.GLintptr): void;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:texImage3D
函数:texImage3D(target: webgl.GLenum, level: webgl.GLint, internalformat: webgl.GLint, width: webgl.GLsizei, height: webgl.GLsizei, depth: webgl.GLsizei, border: webgl.GLint, format: webgl.GLenum, type: webgl.GLenum, source: webgl.TexImageSource): void;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:texImage3D
函数:texImage3D(target: webgl.GLenum, level: webgl.GLint, internalformat: webgl.GLint, width: webgl.GLsizei, height: webgl.GLsizei, depth: webgl.GLsizei, border: webgl.GLint, format: webgl.GLenum, type: webgl.GLenum, srcData: ArrayBufferView \| null): void;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:texImage3D
函数:texImage3D(target: webgl.GLenum, level: webgl.GLint, internalformat: webgl.GLint, width: webgl.GLsizei, height: webgl.GLsizei, depth: webgl.GLsizei, border: webgl.GLint, format: webgl.GLenum, type: webgl.GLenum, srcData: ArrayBufferView, srcOffset: webgl.GLuint): void;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:texSubImage3D
函数:texSubImage3D(target: webgl.GLenum, level: webgl.GLint, xoffset: webgl.GLint, yoffset: webgl.GLint, zoffset: webgl.GLint, width: webgl.GLsizei, height: webgl.GLsizei, depth: webgl.GLsizei, format: webgl.GLenum, type: webgl.GLenum, pboOffset: webgl.GLintptr): void;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:texSubImage3D
函数:texSubImage3D(target: webgl.GLenum, level: webgl.GLint, xoffset: webgl.GLint, yoffset: webgl.GLint, zoffset: webgl.GLint, width: webgl.GLsizei, height: webgl.GLsizei, depth: webgl.GLsizei, format: webgl.GLenum, type: webgl.GLenum, source: webgl.TexImageSource): void;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:texSubImage3D
函数:texSubImage3D(target: webgl.GLenum, level: webgl.GLint, xoffset: webgl.GLint, yoffset: webgl.GLint, zoffset: webgl.GLint, width: webgl.GLsizei, height: webgl.GLsizei, depth: webgl.GLsizei, format: webgl.GLenum, type: webgl.GLenum, srcData: ArrayBufferView \| null, srcOffset?: webgl.GLuint): void;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:copyTexSubImage3D
函数:copyTexSubImage3D(target: webgl.GLenum, level: webgl.GLint, xoffset: webgl.GLint, yoffset: webgl.GLint, zoffset: webgl.GLint, x: webgl.GLint, y: webgl.GLint, width: webgl.GLsizei, height: webgl.GLsizei): void;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:compressedTexImage3D
函数:compressedTexImage3D(target: webgl.GLenum, level: webgl.GLint, internalformat: webgl.GLenum, width: webgl.GLsizei, height: webgl.GLsizei, depth: webgl.GLsizei, border: webgl.GLint, imageSize: webgl.GLsizei, offset: webgl.GLintptr): void;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:compressedTexImage3D
函数:compressedTexImage3D(target: webgl.GLenum, level: webgl.GLint, internalformat: webgl.GLenum, width: webgl.GLsizei, height: webgl.GLsizei, depth: webgl.GLsizei, border: webgl.GLint, srcData: ArrayBufferView, srcOffset?: webgl.GLuint, srcLengthOverride?: webgl.GLuint): void;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:compressedTexSubImage3D
函数:compressedTexSubImage3D(target: webgl.GLenum, level: webgl.GLint, xoffset: webgl.GLint, yoffset: webgl.GLint, zoffset: webgl.GLint, width: webgl.GLsizei, height: webgl.GLsizei, depth: webgl.GLsizei, format: webgl.GLenum, imageSize: webgl.GLsizei, offset: webgl.GLintptr): void;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:compressedTexSubImage3D
函数:compressedTexSubImage3D(target: webgl.GLenum, level: webgl.GLint, xoffset: webgl.GLint, yoffset: webgl.GLint, zoffset: webgl.GLint, width: webgl.GLsizei, height: webgl.GLsizei, depth: webgl.GLsizei, format: webgl.GLenum, srcData: ArrayBufferView, srcOffset?: webgl.GLuint, srcLengthOverride?: webgl.GLuint): void;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:getFragDataLocation
函数:getFragDataLocation(program: webgl.WebGLProgram, name: string): webgl.GLint;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:uniform1ui
函数:uniform1ui(location: webgl.WebGLUniformLocation \| null, v0: webgl.GLuint): void;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:uniform2ui
函数:uniform2ui(location: webgl.WebGLUniformLocation \| null, v0: webgl.GLuint, v1: webgl.GLuint): void;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:uniform3ui
函数:uniform3ui(location: webgl.WebGLUniformLocation \| null, v0: webgl.GLuint, v1: webgl.GLuint, v2: webgl.GLuint): void;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:uniform4ui
函数:uniform4ui(location: webgl.WebGLUniformLocation \| null, v0: webgl.GLuint, v1: webgl.GLuint, v2: webgl.GLuint, v3: webgl.GLuint): void;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:uniform1uiv
函数:uniform1uiv(location: webgl.WebGLUniformLocation \| null, data: Uint32List, srcOffset?: webgl.GLuint, srcLength?: webgl.GLuint): void;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:uniform2uiv
函数:uniform2uiv(location: webgl.WebGLUniformLocation \| null, data: Uint32List, srcOffset?: webgl.GLuint, srcLength?: webgl.GLuint): void;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:uniform3uiv
函数:uniform3uiv(location: webgl.WebGLUniformLocation \| null, data: Uint32List, srcOffset?: webgl.GLuint, srcLength?: webgl.GLuint): void;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:uniform4uiv
函数:uniform4uiv(location: webgl.WebGLUniformLocation \| null, data: Uint32List, srcOffset?: webgl.GLuint, srcLength?: webgl.GLuint): void;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:uniformMatrix3x2fv
函数:uniformMatrix3x2fv(location: webgl.WebGLUniformLocation \| null, transpose: webgl.GLboolean, data: webgl.Float32List, srcOffset?: webgl.GLuint, srcLength?: webgl.GLuint): void;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:uniformMatrix4x2fv
函数:uniformMatrix4x2fv(location: webgl.WebGLUniformLocation \| null, transpose: webgl.GLboolean, data: webgl.Float32List, srcOffset?: webgl.GLuint, srcLength?: webgl.GLuint): void;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:uniformMatrix2x3fv
函数:uniformMatrix2x3fv(location: webgl.WebGLUniformLocation \| null, transpose: webgl.GLboolean, data: webgl.Float32List, srcOffset?: webgl.GLuint, srcLength?: webgl.GLuint): void;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:uniformMatrix4x3fv
函数:uniformMatrix4x3fv(location: webgl.WebGLUniformLocation \| null, transpose: webgl.GLboolean, data: webgl.Float32List, srcOffset?: webgl.GLuint, srcLength?: webgl.GLuint): void;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:uniformMatrix2x4fv
函数:uniformMatrix2x4fv(location: webgl.WebGLUniformLocation \| null, transpose: webgl.GLboolean, data: webgl.Float32List, srcOffset?: webgl.GLuint, srcLength?: webgl.GLuint): void;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:uniformMatrix3x4fv
函数:uniformMatrix3x4fv(location: webgl.WebGLUniformLocation \| null, transpose: webgl.GLboolean, data: webgl.Float32List, srcOffset?: webgl.GLuint, srcLength?: webgl.GLuint): void;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:vertexAttribI4i
函数:vertexAttribI4i(index: webgl.GLuint, x: webgl.GLint, y: webgl.GLint, z: webgl.GLint, w: webgl.GLint): void;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:vertexAttribI4iv
函数:vertexAttribI4iv(index: webgl.GLuint, values: webgl.Int32List): void;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:vertexAttribI4ui
函数:vertexAttribI4ui(index: webgl.GLuint, x: webgl.GLuint, y: webgl.GLuint, z: webgl.GLuint, w: webgl.GLuint): void;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:vertexAttribI4uiv
函数:vertexAttribI4uiv(index: webgl.GLuint, values: Uint32List): void;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:vertexAttribIPointer
函数:vertexAttribIPointer(index: webgl.GLuint, size: webgl.GLint, type: webgl.GLenum, stride: webgl.GLsizei, offset: webgl.GLintptr): void;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:vertexAttribDivisor
函数:vertexAttribDivisor(index: webgl.GLuint, divisor: webgl.GLuint): void;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:drawArraysInstanced
函数:drawArraysInstanced(mode: webgl.GLenum, first: webgl.GLint, count: webgl.GLsizei, instanceCount: webgl.GLsizei): void;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:drawElementsInstanced
函数:drawElementsInstanced(mode: webgl.GLenum, count: webgl.GLsizei, type: webgl.GLenum, offset: webgl.GLintptr, instanceCount: webgl.GLsizei): void;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:drawRangeElements
函数:drawRangeElements(mode: webgl.GLenum, start: webgl.GLuint, end: webgl.GLuint, count: webgl.GLsizei, type: webgl.GLenum, offset: webgl.GLintptr): void;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:drawBuffers
函数:drawBuffers(buffers: webgl.GLenum[]): void;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:clearBufferfv
函数:clearBufferfv(buffer: webgl.GLenum, drawbuffer: webgl.GLint, values: webgl.Float32List, srcOffset?: webgl.GLuint): void;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:clearBufferiv
函数:clearBufferiv(buffer: webgl.GLenum, drawbuffer: webgl.GLint, values: webgl.Int32List, srcOffset?: webgl.GLuint): void;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:clearBufferuiv
函数:clearBufferuiv(buffer: webgl.GLenum, drawbuffer: webgl.GLint, values: Uint32List, srcOffset?: webgl.GLuint): void;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:clearBufferfi
函数:clearBufferfi(buffer: webgl.GLenum, drawbuffer: webgl.GLint, depth: webgl.GLfloat, stencil: webgl.GLint): void;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:isQuery
函数:isQuery(query: WebGLQuery \| null): webgl.GLboolean;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:beginQuery
函数:beginQuery(target: webgl.GLenum, query: WebGLQuery): void;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:endQuery
函数:endQuery(target: webgl.GLenum): void;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:getQuery
函数:getQuery(target: webgl.GLenum, pname: webgl.GLenum): WebGLQuery \| null;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:getQueryParameter
函数:getQueryParameter(query: WebGLQuery, pname: webgl.GLenum): any;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:isSampler
函数:isSampler(sampler: WebGLSampler \| null): webgl.GLboolean;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:bindSampler
函数:bindSampler(unit: webgl.GLuint, sampler: WebGLSampler \| null): void;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:samplerParameteri
函数:samplerParameteri(sampler: WebGLSampler, pname: webgl.GLenum, param: webgl.GLint): void;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:samplerParameterf
函数:samplerParameterf(sampler: WebGLSampler, pname: webgl.GLenum, param: webgl.GLfloat): void;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:getSamplerParameter
函数:getSamplerParameter(sampler: WebGLSampler, pname: webgl.GLenum): any;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:fenceSync
函数:fenceSync(condition: webgl.GLenum, flags: webgl.GLbitfield): WebGLSync \| null;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:isSync
函数:isSync(sync: WebGLSync \| null): webgl.GLboolean;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:clientWaitSync
函数:clientWaitSync(sync: WebGLSync, flags: webgl.GLbitfield, timeout: GLuint64 ): webgl.GLenum;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:waitSync
函数:waitSync(sync: WebGLSync, flags: webgl.GLbitfield, timeout: GLint64): void;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:getSyncParameter
函数:getSyncParameter(sync: WebGLSync, pname: webgl.GLenum): any;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:isTransformFeedback
函数:isTransformFeedback(tf: WebGLTransformFeedback \| null): webgl.GLboolean;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:bindTransformFeedback
函数:bindTransformFeedback(target: webgl.GLenum, tf: WebGLTransformFeedback \| null): void;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:beginTransformFeedback
函数:beginTransformFeedback(primitiveMode: webgl.GLenum): void;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:transformFeedbackVaryings
函数:transformFeedbackVaryings(program: webgl.WebGLProgram, varyings: string[], bufferMode: webgl.GLenum): void;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:getTransformFeedbackVarying
函数:getTransformFeedbackVarying(program: webgl.WebGLProgram, index: webgl.GLuint): webgl.WebGLActiveInfo \| null;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:bindBufferBase
函数:bindBufferBase(target: webgl.GLenum, index: webgl.GLuint, buffer: webgl.WebGLBuffer \| null): void;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:bindBufferRange
函数:bindBufferRange(target: webgl.GLenum, index: webgl.GLuint, buffer: webgl.WebGLBuffer \| null, offset: webgl.GLintptr, size: webgl.GLsizeiptr): void;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:getIndexedParameter
函数:getIndexedParameter(target: webgl.GLenum, index: webgl.GLuint): any;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:getUniformIndices
函数:getUniformIndices(program: webgl.WebGLProgram, uniformNames: string[]): webgl.GLuint[] \| null;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:getActiveUniforms
函数:getActiveUniforms(program: webgl.WebGLProgram, uniformIndices: webgl.GLuint[], pname: webgl.GLenum): any;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:getUniformBlockIndex
函数:getUniformBlockIndex(program: webgl.WebGLProgram, uniformBlockName: string): webgl.GLuint;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:getActiveUniformBlockParameter
函数:getActiveUniformBlockParameter(program: webgl.WebGLProgram, uniformBlockIndex: webgl.GLuint, pname: webgl.GLenum): any;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:getActiveUniformBlockName
函数:getActiveUniformBlockName(program: webgl.WebGLProgram, uniformBlockIndex: webgl.GLuint): string \| null;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:uniformBlockBinding
函数:uniformBlockBinding(program: webgl.WebGLProgram, uniformBlockIndex: webgl.GLuint, uniformBlockBinding: webgl.GLuint): void;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:isVertexArray
函数:isVertexArray(vertexArray: WebGLVertexArrayObject \| null): webgl.GLboolean;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:bufferData
函数:bufferData(target: webgl.GLenum, size: webgl.GLsizeiptr, usage: webgl.GLenum): void;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:bufferData
函数:bufferData(target: webgl.GLenum, srcData: BufferSource \| null, usage: webgl.GLenum): void;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:bufferSubData
函数:bufferSubData(target: webgl.GLenum, dstByteOffset: webgl.GLintptr, srcData: BufferSource): void;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:bufferData
函数:bufferData(target: webgl.GLenum, srcData: ArrayBufferView, usage: webgl.GLenum, srcOffset: webgl.GLuint, length?: webgl.GLuint): void;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:bufferSubData
函数:bufferSubData(target: webgl.GLenum, dstByteOffset: webgl.GLintptr, srcData: ArrayBufferView, srcOffset: webgl.GLuint, length?: webgl.GLuint): void;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:texImage2D
函数:texImage2D(target: webgl.GLenum, level: webgl.GLint, internalformat: webgl.GLint, width: webgl.GLsizei, height: webgl.GLsizei, border: webgl.GLint, format: webgl.GLenum, type: webgl.GLenum, pixels: ArrayBufferView \| null): void;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:texImage2D
函数:texImage2D(target: webgl.GLenum, level: webgl.GLint, internalformat: webgl.GLint, format: webgl.GLenum, type: webgl.GLenum, source: webgl.TexImageSource): void;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:texSubImage2D
函数:texSubImage2D(target: webgl.GLenum, level: webgl.GLint, xoffset: webgl.GLint, yoffset: webgl.GLint, width: webgl.GLsizei, height: webgl.GLsizei, format: webgl.GLenum, type: webgl.GLenum, pixels: ArrayBufferView \| null): void;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:texSubImage2D
函数:texSubImage2D(target: webgl.GLenum, level: webgl.GLint, xoffset: webgl.GLint, yoffset: webgl.GLint, format: webgl.GLenum, type: webgl.GLenum, source: webgl.TexImageSource): void;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:texImage2D
函数:texImage2D(target: webgl.GLenum, level: webgl.GLint, internalformat: webgl.GLint, width: webgl.GLsizei, height: webgl.GLsizei, border: webgl.GLint, format: webgl.GLenum, type: webgl.GLenum, pboOffset: webgl.GLintptr): void;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:texImage2D
函数:texImage2D(target: webgl.GLenum, level: webgl.GLint, internalformat: webgl.GLint, width: webgl.GLsizei, height: webgl.GLsizei, border: webgl.GLint, format: webgl.GLenum, type: webgl.GLenum, source: webgl.TexImageSource): void;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:texImage2D
函数:texImage2D(target: webgl.GLenum, level: webgl.GLint, internalformat: webgl.GLint, width: webgl.GLsizei, height: webgl.GLsizei, border: webgl.GLint, format: webgl.GLenum, type: webgl.GLenum, srcData: ArrayBufferView, srcOffset: webgl.GLuint): void;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:texSubImage2D
函数:texSubImage2D(target: webgl.GLenum, level: webgl.GLint, xoffset: webgl.GLint, yoffset: webgl.GLint, width: webgl.GLsizei, height: webgl.GLsizei, format: webgl.GLenum, type: webgl.GLenum, pboOffset: webgl.GLintptr): void;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:texSubImage2D
函数:texSubImage2D(target: webgl.GLenum, level: webgl.GLint, xoffset: webgl.GLint, yoffset: webgl.GLint, width: webgl.GLsizei, height: webgl.GLsizei, format: webgl.GLenum, type: webgl.GLenum, source: webgl.TexImageSource): void;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:texSubImage2D
函数:texSubImage2D(target: webgl.GLenum, level: webgl.GLint, xoffset: webgl.GLint, yoffset: webgl.GLint, width: webgl.GLsizei, height: webgl.GLsizei, format: webgl.GLenum, type: webgl.GLenum, srcData: ArrayBufferView, srcOffset: webgl.GLuint): void;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:compressedTexImage2D
函数:compressedTexImage2D(target: webgl.GLenum, level: webgl.GLint, internalformat: webgl.GLenum, width: webgl.GLsizei, height: webgl.GLsizei, border: webgl.GLint, imageSize: webgl.GLsizei, offset: webgl.GLintptr): void;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:compressedTexImage2D
函数:compressedTexImage2D(target: webgl.GLenum, level: webgl.GLint, internalformat: webgl.GLenum, width: webgl.GLsizei, height: webgl.GLsizei, border: webgl.GLint, srcData: ArrayBufferView, srcOffset?: webgl.GLuint, srcLengthOverride?: webgl.GLuint): void;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:compressedTexSubImage2D
函数:compressedTexSubImage2D(target: webgl.GLenum, level: webgl.GLint, xoffset: webgl.GLint, yoffset: webgl.GLint, width: webgl.GLsizei, height: webgl.GLsizei, format: webgl.GLenum, imageSize: webgl.GLsizei, offset: webgl.GLintptr): void;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:compressedTexSubImage2D
函数:compressedTexSubImage2D(target: webgl.GLenum, level: webgl.GLint, xoffset: webgl.GLint, yoffset: webgl.GLint, width: webgl.GLsizei, height: webgl.GLsizei, format: webgl.GLenum, srcData: ArrayBufferView, srcOffset?: webgl.GLuint, srcLengthOverride?: webgl.GLuint): void;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:uniform1fv
函数:uniform1fv(location: webgl.WebGLUniformLocation \| null, data: webgl.Float32List, srcOffset?: webgl.GLuint, srcLength?: webgl.GLuint): void;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:uniform2fv
函数:uniform2fv(location: webgl.WebGLUniformLocation \| null, data: webgl.Float32List, srcOffset?: webgl.GLuint, srcLength?: webgl.GLuint): void;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:uniform3fv
函数:uniform3fv(location: webgl.WebGLUniformLocation \| null, data: webgl.Float32List, srcOffset?: webgl.GLuint, srcLength?: webgl.GLuint): void;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:uniform4fv
函数:uniform4fv(location: webgl.WebGLUniformLocation \| null, data: webgl.Float32List, srcOffset?: webgl.GLuint, srcLength?: webgl.GLuint): void;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:uniform1iv
函数:uniform1iv(location: webgl.WebGLUniformLocation \| null, data: webgl.Int32List, srcOffset?: webgl.GLuint, srcLength?: webgl.GLuint): void;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:uniform2iv
函数:uniform2iv(location: webgl.WebGLUniformLocation \| null, data: webgl.Int32List, srcOffset?: webgl.GLuint, srcLength?: webgl.GLuint): void;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:uniform3iv
函数:uniform3iv(location: webgl.WebGLUniformLocation \| null, data: webgl.Int32List, srcOffset?: webgl.GLuint, srcLength?: webgl.GLuint): void;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:uniform4iv
函数:uniform4iv(location: webgl.WebGLUniformLocation \| null, data: webgl.Int32List, srcOffset?: webgl.GLuint, srcLength?: webgl.GLuint): void;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:uniformMatrix2fv
函数:uniformMatrix2fv(location: webgl.WebGLUniformLocation \| null, transpose: webgl.GLboolean, data: webgl.Float32List, srcOffset?: webgl.GLuint, srcLength?: webgl.GLuint): void;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:uniformMatrix3fv
函数:uniformMatrix3fv(location: webgl.WebGLUniformLocation \| null, transpose: webgl.GLboolean, data: webgl.Float32List, srcOffset?: webgl.GLuint, srcLength?: webgl.GLuint): void;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:uniformMatrix4fv
函数:uniformMatrix4fv(location: webgl.WebGLUniformLocation \| null, transpose: webgl.GLboolean, data: webgl.Float32List, srcOffset?: webgl.GLuint, srcLength?: webgl.GLuint): void;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:readPixels
函数:readPixels(x: webgl.GLint, y: webgl.GLint, width: webgl.GLsizei, height: webgl.GLsizei, format: webgl.GLenum, type: webgl.GLenum, dstData: ArrayBufferView \| null): void;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:readPixels
函数:readPixels(x: webgl.GLint, y: webgl.GLint, width: webgl.GLsizei, height: webgl.GLsizei, format: webgl.GLenum, type: webgl.GLenum, offset: webgl.GLintptr): void;|webgl2.d.ts| +|新增|NA|方法名 or 属性名:readPixels
函数:readPixels(x: webgl.GLint, y: webgl.GLint, width: webgl.GLsizei, height: webgl.GLsizei, format: webgl.GLenum, type: webgl.GLenum, dstData: ArrayBufferView, dstOffset: webgl.GLuint): void;|webgl2.d.ts| diff --git a/zh-cn/release-notes/api-diff/monthly-202210/js-apidiff-misc.md b/zh-cn/release-notes/api-diff/monthly-202210/js-apidiff-misc.md index 7ecb45b6fef335a35b0068b63323f11096d73c80..b3a0099198680800f2d5000bb91d56fd9f0025a8 100644 --- a/zh-cn/release-notes/api-diff/monthly-202210/js-apidiff-misc.md +++ b/zh-cn/release-notes/api-diff/monthly-202210/js-apidiff-misc.md @@ -1,170 +1,99 @@ -| 操作 | 新版本 | 旧版本 | d.ts文件 | +| 操作 | 旧版本 | 新版本 | d.ts文件 | | ---- | ------ | ------ | -------- | -|新增||模块名:ohos.inputmethod
类名:inputMethod
方法名 or 属性名:EXCEPTION_PERMISSION|@ohos.inputmethod.d.ts| -|新增||模块名:ohos.inputmethod
类名:inputMethod
方法名 or 属性名:EXCEPTION_PARAMCHECK|@ohos.inputmethod.d.ts| -|新增||模块名:ohos.inputmethod
类名:inputMethod
方法名 or 属性名:EXCEPTION_UNSUPPORTED|@ohos.inputmethod.d.ts| -|新增||模块名:ohos.inputmethod
类名:inputMethod
方法名 or 属性名:EXCEPTION_PACKAGEMANAGER|@ohos.inputmethod.d.ts| -|新增||模块名:ohos.inputmethod
类名:inputMethod
方法名 or 属性名:EXCEPTION_IMENGINE|@ohos.inputmethod.d.ts| -|新增||模块名:ohos.inputmethod
类名:inputMethod
方法名 or 属性名:EXCEPTION_IMCLIENT|@ohos.inputmethod.d.ts| -|新增||模块名:ohos.inputmethod
类名:inputMethod
方法名 or 属性名:EXCEPTION_KEYEVENT|@ohos.inputmethod.d.ts| -|新增||模块名:ohos.inputmethod
类名:inputMethod
方法名 or 属性名:EXCEPTION_CONFPERSIST|@ohos.inputmethod.d.ts| -|新增||模块名:ohos.inputmethod
类名:inputMethod
方法名 or 属性名:EXCEPTION_CONTROLLER|@ohos.inputmethod.d.ts| -|新增||模块名:ohos.inputmethod
类名:inputMethod
方法名 or 属性名:EXCEPTION_SETTINGS|@ohos.inputmethod.d.ts| -|新增||模块名:ohos.inputmethod
类名:inputMethod
方法名 or 属性名:EXCEPTION_IMMS|@ohos.inputmethod.d.ts| -|新增||模块名:ohos.inputmethod
类名:inputMethod
方法名 or 属性名:EXCEPTION_OTHERS|@ohos.inputmethod.d.ts| -|新增||模块名:ohos.inputmethod
类名:inputMethod
方法名 or 属性名:getSetting|@ohos.inputmethod.d.ts| -|新增||模块名:ohos.inputmethod
类名:inputMethod
方法名 or 属性名:getController|@ohos.inputmethod.d.ts| -|新增||模块名:ohos.inputmethod
类名:inputMethod
方法名 or 属性名:switchCurrentInputMethodSubtype|@ohos.inputmethod.d.ts| -|新增||模块名:ohos.inputmethod
类名:inputMethod
方法名 or 属性名:switchCurrentInputMethodSubtype|@ohos.inputmethod.d.ts| -|新增||模块名:ohos.inputmethod
类名:inputMethod
方法名 or 属性名:getCurrentInputMethodSubtype|@ohos.inputmethod.d.ts| -|新增||模块名:ohos.inputmethod
类名:inputMethod
方法名 or 属性名:switchCurrentInputMethodAndSubtype|@ohos.inputmethod.d.ts| -|新增||模块名:ohos.inputmethod
类名:inputMethod
方法名 or 属性名:switchCurrentInputMethodAndSubtype|@ohos.inputmethod.d.ts| -|新增||模块名:ohos.inputmethod
类名:InputMethodSetting
方法名 or 属性名:on_imeChange|@ohos.inputmethod.d.ts| -|新增||模块名:ohos.inputmethod
类名:InputMethodSetting
方法名 or 属性名:off_imeChange|@ohos.inputmethod.d.ts| -|新增||模块名:ohos.inputmethod
类名:InputMethodSetting
方法名 or 属性名:listInputMethodSubtype|@ohos.inputmethod.d.ts| -|新增||模块名:ohos.inputmethod
类名:InputMethodSetting
方法名 or 属性名:listInputMethodSubtype|@ohos.inputmethod.d.ts| -|新增||模块名:ohos.inputmethod
类名:InputMethodSetting
方法名 or 属性名:listCurrentInputMethodSubtype|@ohos.inputmethod.d.ts| -|新增||模块名:ohos.inputmethod
类名:InputMethodSetting
方法名 or 属性名:listCurrentInputMethodSubtype|@ohos.inputmethod.d.ts| -|新增||模块名:ohos.inputmethod
类名:InputMethodSetting
方法名 or 属性名:getInputMethods|@ohos.inputmethod.d.ts| -|新增||模块名:ohos.inputmethod
类名:InputMethodSetting
方法名 or 属性名:getInputMethods|@ohos.inputmethod.d.ts| -|新增||模块名:ohos.inputmethod
类名:InputMethodSetting
方法名 or 属性名:showOptionalInputMethods|@ohos.inputmethod.d.ts| -|新增||模块名:ohos.inputmethod
类名:InputMethodSetting
方法名 or 属性名:showOptionalInputMethods|@ohos.inputmethod.d.ts| -|新增||模块名:ohos.inputmethod
类名:InputMethodController
方法名 or 属性名:stopInputSession|@ohos.inputmethod.d.ts| -|新增||模块名:ohos.inputmethod
类名:InputMethodController
方法名 or 属性名:stopInputSession|@ohos.inputmethod.d.ts| -|新增||模块名:ohos.inputmethod
类名:InputMethodProperty
方法名 or 属性名:name|@ohos.inputmethod.d.ts| -|新增||模块名:ohos.inputmethod
类名:InputMethodProperty
方法名 or 属性名:id|@ohos.inputmethod.d.ts| -|新增||模块名:ohos.inputmethod
类名:InputMethodProperty
方法名 or 属性名:label|@ohos.inputmethod.d.ts| -|新增||模块名:ohos.inputmethod
类名:InputMethodProperty
方法名 or 属性名:icon|@ohos.inputmethod.d.ts| -|新增||模块名:ohos.inputmethod
类名:InputMethodProperty
方法名 or 属性名:iconId|@ohos.inputmethod.d.ts| -|新增||模块名:ohos.inputmethod
类名:InputMethodProperty
方法名 or 属性名:extra|@ohos.inputmethod.d.ts| -|新增||模块名:ohos.inputmethodengine
类名:inputMethodEngine
方法名 or 属性名:getInputMethodAbility|@ohos.inputmethodengine.d.ts| -|新增||模块名:ohos.inputmethodengine
类名:inputMethodEngine
方法名 or 属性名:getKeyboardDelegate|@ohos.inputmethodengine.d.ts| -|新增||模块名:ohos.inputmethodengine
类名:KeyboardController
方法名 or 属性名:hide|@ohos.inputmethodengine.d.ts| -|新增||模块名:ohos.inputmethodengine
类名:KeyboardController
方法名 or 属性名:hide|@ohos.inputmethodengine.d.ts| -|新增||模块名: ohos.inputmethodengine
类名: InputMethodAbility|@ohos.inputmethodengine.d.ts| -|新增||模块名: ohos.inputmethodengine
类名: InputMethodAbility
方法名 or 属性名:on_inputStart|@ohos.inputmethodengine.d.ts| -|新增||模块名: ohos.inputmethodengine
类名: InputMethodAbility
方法名 or 属性名:off_inputStart|@ohos.inputmethodengine.d.ts| -|新增||模块名: ohos.inputmethodengine
类名: InputMethodAbility
方法名 or 属性名:on_inputStop|@ohos.inputmethodengine.d.ts| -|新增||模块名: ohos.inputmethodengine
类名: InputMethodAbility
方法名 or 属性名:off_inputStop|@ohos.inputmethodengine.d.ts| -|新增||模块名: ohos.inputmethodengine
类名: InputMethodAbility
方法名 or 属性名:on_setCallingWindow|@ohos.inputmethodengine.d.ts| -|新增||模块名: ohos.inputmethodengine
类名: InputMethodAbility
方法名 or 属性名:off_setCallingWindow|@ohos.inputmethodengine.d.ts| -|新增||模块名: ohos.inputmethodengine
类名: InputMethodAbility
方法名 or 属性名:on_keyboardShow|@ohos.inputmethodengine.d.ts| -|新增||模块名: ohos.inputmethodengine
类名: InputMethodAbility
方法名 or 属性名:on_keyboardHide|@ohos.inputmethodengine.d.ts| -|新增||模块名: ohos.inputmethodengine
类名: InputMethodAbility
方法名 or 属性名:off_keyboardShow|@ohos.inputmethodengine.d.ts| -|新增||模块名: ohos.inputmethodengine
类名: InputMethodAbility
方法名 or 属性名:off_keyboardHide|@ohos.inputmethodengine.d.ts| -|新增||模块名: ohos.inputmethodengine
类名: InputMethodAbility
方法名 or 属性名:on_setSubtype|@ohos.inputmethodengine.d.ts| -|新增||模块名: ohos.inputmethodengine
类名: InputMethodAbility
方法名 or 属性名:off|@ohos.inputmethodengine.d.ts| -|新增||模块名: ohos.inputmethodengine
类名: InputClient|@ohos.inputmethodengine.d.ts| -|新增||模块名: ohos.inputmethodengine
类名: InputClient
方法名 or 属性名:sendKeyFunction|@ohos.inputmethodengine.d.ts| -|新增||模块名: ohos.inputmethodengine
类名: InputClient
方法名 or 属性名:sendKeyFunction|@ohos.inputmethodengine.d.ts| -|新增||模块名: ohos.inputmethodengine
类名: InputClient
方法名 or 属性名:deleteForward|@ohos.inputmethodengine.d.ts| -|新增||模块名: ohos.inputmethodengine
类名: InputClient
方法名 or 属性名:deleteForward|@ohos.inputmethodengine.d.ts| -|新增||模块名: ohos.inputmethodengine
类名: InputClient
方法名 or 属性名:deleteBackward|@ohos.inputmethodengine.d.ts| -|新增||模块名: ohos.inputmethodengine
类名: InputClient
方法名 or 属性名:deleteBackward|@ohos.inputmethodengine.d.ts| -|新增||模块名: ohos.inputmethodengine
类名: InputClient
方法名 or 属性名:insertText|@ohos.inputmethodengine.d.ts| -|新增||模块名: ohos.inputmethodengine
类名: InputClient
方法名 or 属性名:insertText|@ohos.inputmethodengine.d.ts| -|新增||模块名: ohos.inputmethodengine
类名: InputClient
方法名 or 属性名:getForward|@ohos.inputmethodengine.d.ts| -|新增||模块名: ohos.inputmethodengine
类名: InputClient
方法名 or 属性名:getForward|@ohos.inputmethodengine.d.ts| -|新增||模块名: ohos.inputmethodengine
类名: InputClient
方法名 or 属性名:getBackward|@ohos.inputmethodengine.d.ts| -|新增||模块名: ohos.inputmethodengine
类名: InputClient
方法名 or 属性名:getBackward|@ohos.inputmethodengine.d.ts| -|新增||模块名: ohos.inputmethodengine
类名: InputClient
方法名 or 属性名:getEditorAttribute|@ohos.inputmethodengine.d.ts| -|新增||模块名: ohos.inputmethodengine
类名: InputClient
方法名 or 属性名:getEditorAttribute|@ohos.inputmethodengine.d.ts| -|新增||模块名: ohos.inputmethodengine
类名: InputClient
方法名 or 属性名:moveCursor|@ohos.inputmethodengine.d.ts| -|新增||模块名: ohos.inputmethodengine
类名: InputClient
方法名 or 属性名:moveCursor|@ohos.inputmethodengine.d.ts| -|新增||模块名:ohos.inputmethodextensioncontext
类名:InputMethodExtensionContext
方法名 or 属性名:destroy|@ohos.inputmethodextensioncontext.d.ts| -|新增||模块名:ohos.inputmethodextensioncontext
类名:InputMethodExtensionContext
方法名 or 属性名:destroy|@ohos.inputmethodextensioncontext.d.ts| -|新增||模块名: ohos.inputMethodSubtype
类名: InputMethodSubtype|@ohos.inputMethodSubtype.d.ts| -|新增||模块名: ohos.inputMethodSubtype
类名: InputMethodSubtype
方法名 or 属性名: label|@ohos.inputMethodSubtype.d.ts| -|新增||模块名: ohos.inputMethodSubtype
类名: InputMethodSubtype
方法名 or 属性名: name|@ohos.inputMethodSubtype.d.ts| -|新增||模块名: ohos.inputMethodSubtype
类名: InputMethodSubtype
方法名 or 属性名: id|@ohos.inputMethodSubtype.d.ts| -|新增||模块名: ohos.inputMethodSubtype
类名: InputMethodSubtype
方法名 or 属性名: mode|@ohos.inputMethodSubtype.d.ts| -|新增||模块名: ohos.inputMethodSubtype
类名: InputMethodSubtype
方法名 or 属性名: locale|@ohos.inputMethodSubtype.d.ts| -|新增||模块名: ohos.inputMethodSubtype
类名: InputMethodSubtype
方法名 or 属性名: language|@ohos.inputMethodSubtype.d.ts| -|新增||模块名: ohos.inputMethodSubtype
类名: InputMethodSubtype
方法名 or 属性名: icon|@ohos.inputMethodSubtype.d.ts| -|新增||模块名: ohos.inputMethodSubtype
类名: InputMethodSubtype
方法名 or 属性名: iconId|@ohos.inputMethodSubtype.d.ts| -|新增||模块名: ohos.inputMethodSubtype
类名: InputMethodSubtype
方法名 or 属性名: extra|@ohos.inputMethodSubtype.d.ts| -|新增||方法名 or 属性名:createData
函数:function createData(mimeType: string, value: ValueType): PasteData;|@ohos.pasteboard.d.ts| -|新增||方法名 or 属性名:createRecord
函数:function createRecord(mimeType: string, value: ValueType): PasteDataRecord;|@ohos.pasteboard.d.ts| -|新增||模块名:ohos.pasteboard
类名:PasteDataRecord
方法名 or 属性名:convertToTextV9|@ohos.pasteboard.d.ts| -|新增||模块名:ohos.pasteboard
类名:PasteDataRecord
方法名 or 属性名:convertToTextV9|@ohos.pasteboard.d.ts| -|新增||方法名 or 属性名:addRecord
函数:addRecord(mimeType: string, value: ValueType): void;|@ohos.pasteboard.d.ts| -|新增||模块名:ohos.pasteboard
类名:PasteData
方法名 or 属性名:getRecord|@ohos.pasteboard.d.ts| -|新增||模块名:ohos.pasteboard
类名:PasteData
方法名 or 属性名:hasType|@ohos.pasteboard.d.ts| -|新增||模块名:ohos.pasteboard
类名:PasteData
方法名 or 属性名:removeRecord|@ohos.pasteboard.d.ts| -|新增||模块名:ohos.pasteboard
类名:PasteData
方法名 or 属性名:replaceRecord|@ohos.pasteboard.d.ts| -|新增||模块名:ohos.pasteboard
类名:SystemPasteboard
方法名 or 属性名:clearData|@ohos.pasteboard.d.ts| -|新增||模块名:ohos.pasteboard
类名:SystemPasteboard
方法名 or 属性名:clearData|@ohos.pasteboard.d.ts| -|新增||模块名:ohos.pasteboard
类名:SystemPasteboard
方法名 or 属性名:getData|@ohos.pasteboard.d.ts| -|新增||模块名:ohos.pasteboard
类名:SystemPasteboard
方法名 or 属性名:getData|@ohos.pasteboard.d.ts| -|新增||模块名:ohos.pasteboard
类名:SystemPasteboard
方法名 or 属性名:hasData|@ohos.pasteboard.d.ts| -|新增||模块名:ohos.pasteboard
类名:SystemPasteboard
方法名 or 属性名:hasData|@ohos.pasteboard.d.ts| -|新增||模块名:ohos.pasteboard
类名:SystemPasteboard
方法名 or 属性名:setData|@ohos.pasteboard.d.ts| -|新增||模块名:ohos.pasteboard
类名:SystemPasteboard
方法名 or 属性名:setData|@ohos.pasteboard.d.ts| -|新增||模块名:ohos.request
类名:request
方法名 or 属性名:EXCEPTION_PERMISSION|@ohos.request.d.ts| -|新增||模块名:ohos.request
类名:request
方法名 or 属性名:EXCEPTION_PARAMCHECK|@ohos.request.d.ts| -|新增||模块名:ohos.request
类名:request
方法名 or 属性名:EXCEPTION_UNSUPPORTED|@ohos.request.d.ts| -|新增||模块名:ohos.request
类名:request
方法名 or 属性名:EXCEPTION_FILEIO|@ohos.request.d.ts| -|新增||模块名:ohos.request
类名:request
方法名 or 属性名:EXCEPTION_FILEPATH|@ohos.request.d.ts| -|新增||模块名:ohos.request
类名:request
方法名 or 属性名:EXCEPTION_SERVICE|@ohos.request.d.ts| -|新增||模块名:ohos.request
类名:request
方法名 or 属性名:EXCEPTION_OTHERS|@ohos.request.d.ts| -|新增||模块名:ohos.request
类名:request
方法名 or 属性名:ERROR_OFFLINE|@ohos.request.d.ts| -|新增||模块名:ohos.request
类名:request
方法名 or 属性名:ERROR_UNSUPPORTED_NETWORK_TYPE|@ohos.request.d.ts| -|新增||模块名:ohos.request
类名:request
方法名 or 属性名:downloadFile|@ohos.request.d.ts| -|新增||模块名:ohos.request
类名:request
方法名 or 属性名:downloadFile|@ohos.request.d.ts| -|新增||模块名:ohos.request
类名:request
方法名 or 属性名:uploadFile|@ohos.request.d.ts| -|新增||模块名:ohos.request
类名:request
方法名 or 属性名:uploadFile|@ohos.request.d.ts| -|新增||模块名:ohos.request
类名:DownloadTask
方法名 or 属性名:delete|@ohos.request.d.ts| -|新增||模块名:ohos.request
类名:DownloadTask
方法名 or 属性名:delete|@ohos.request.d.ts| -|新增||模块名:ohos.request
类名:DownloadTask
方法名 or 属性名:suspend|@ohos.request.d.ts| -|新增||模块名:ohos.request
类名:DownloadTask
方法名 or 属性名:suspend|@ohos.request.d.ts| -|新增||模块名:ohos.request
类名:DownloadTask
方法名 or 属性名:restore|@ohos.request.d.ts| -|新增||模块名:ohos.request
类名:DownloadTask
方法名 or 属性名:restore|@ohos.request.d.ts| -|新增||模块名:ohos.request
类名:DownloadTask
方法名 or 属性名:getTaskInfo|@ohos.request.d.ts| -|新增||模块名:ohos.request
类名:DownloadTask
方法名 or 属性名:getTaskInfo|@ohos.request.d.ts| -|新增||模块名:ohos.request
类名:DownloadTask
方法名 or 属性名:getTaskMimeType|@ohos.request.d.ts| -|新增||模块名:ohos.request
类名:DownloadTask
方法名 or 属性名:getTaskMimeType|@ohos.request.d.ts| -|新增||模块名:ohos.request
类名:UploadTask
方法名 or 属性名:delete|@ohos.request.d.ts| -|新增||模块名:ohos.request
类名:UploadTask
方法名 or 属性名:delete|@ohos.request.d.ts| -|新增||模块名:ohos.screenLock
类名:screenLock
方法名 or 属性名:isLocked|@ohos.screenLock.d.ts| -|新增||模块名:ohos.screenLock
类名:screenLock
方法名 or 属性名:isSecure|@ohos.screenLock.d.ts| -|新增||模块名:ohos.screenLock
类名:screenLock
方法名 or 属性名:unlock|@ohos.screenLock.d.ts| -|新增||模块名:ohos.screenLock
类名:screenLock
方法名 or 属性名:unlock|@ohos.screenLock.d.ts| -|新增||模块名:ohos.screenLock
类名:screenLock
方法名 or 属性名:lock|@ohos.screenLock.d.ts| -|新增||模块名:ohos.screenLock
类名:screenLock
方法名 or 属性名:lock|@ohos.screenLock.d.ts| -|新增||模块名:ohos.wallpaper
类名:wallpaper
方法名 or 属性名:getColorsSync|@ohos.wallpaper.d.ts| -|新增||模块名:ohos.wallpaper
类名:wallpaper
方法名 or 属性名:getIdSync|@ohos.wallpaper.d.ts| -|新增||模块名:ohos.wallpaper
类名:wallpaper
方法名 or 属性名:getFileSync|@ohos.wallpaper.d.ts| -|新增||模块名:ohos.wallpaper
类名:wallpaper
方法名 or 属性名:getMinHeightSync|@ohos.wallpaper.d.ts| -|新增||模块名:ohos.wallpaper
类名:wallpaper
方法名 or 属性名:getMinWidthSync|@ohos.wallpaper.d.ts| -|新增||模块名:ohos.wallpaper
类名:wallpaper
方法名 or 属性名:isChangeAllowed|@ohos.wallpaper.d.ts| -|新增||模块名:ohos.wallpaper
类名:wallpaper
方法名 or 属性名:isUserChangeAllowed|@ohos.wallpaper.d.ts| -|新增||模块名:ohos.wallpaper
类名:wallpaper
方法名 or 属性名:restore|@ohos.wallpaper.d.ts| -|新增||模块名:ohos.wallpaper
类名:wallpaper
方法名 or 属性名:restore|@ohos.wallpaper.d.ts| -|新增||模块名:ohos.wallpaper
类名:wallpaper
方法名 or 属性名:setImage|@ohos.wallpaper.d.ts| -|新增||模块名:ohos.wallpaper
类名:wallpaper
方法名 or 属性名:setImage|@ohos.wallpaper.d.ts| -|新增||模块名:ohos.wallpaper
类名:wallpaper
方法名 or 属性名:getImage|@ohos.wallpaper.d.ts| -|新增||模块名:ohos.wallpaper
类名:wallpaper
方法名 or 属性名:getImage|@ohos.wallpaper.d.ts| -|删除|模块名: ohos.inputmethodengine
类名: InputMethodEngine
方法名 or 属性名:on_inputStop||@ohos.inputmethodengine.d.ts| -|删除|模块名: ohos.inputmethodengine
类名: InputMethodEngine
方法名 or 属性名:off_inputStop||@ohos.inputmethodengine.d.ts| -|删除|模块名: ohos.inputmethodengine
类名: InputMethodEngine
方法名 or 属性名:on_setCallingWindow||@ohos.inputmethodengine.d.ts| -|删除|模块名: ohos.inputmethodengine
类名: InputMethodEngine
方法名 or 属性名:off_setCallingWindow||@ohos.inputmethodengine.d.ts| -|删除|模块名:ohos.inputmethodengine
类名:TextInputClient
方法名 or 属性名:moveCursor||@ohos.inputmethodengine.d.ts| -|删除|模块名:ohos.inputmethodengine
类名:TextInputClient
方法名 or 属性名:moveCursor||@ohos.inputmethodengine.d.ts| -|删除|模块名:ohos.inputmethodextensioncontext
类名:InputMethodExtensionContext
方法名 or 属性名:startAbility||@ohos.inputmethodextensioncontext.d.ts| -|删除|模块名:ohos.inputmethodextensioncontext
类名:InputMethodExtensionContext
方法名 or 属性名:startAbility||@ohos.inputmethodextensioncontext.d.ts| -|删除|模块名:ohos.inputmethodextensioncontext
类名:InputMethodExtensionContext
方法名 or 属性名:startAbility||@ohos.inputmethodextensioncontext.d.ts| -|删除|模块名:ohos.inputmethodextensioncontext
类名:InputMethodExtensionContext
方法名 or 属性名:terminateSelf||@ohos.inputmethodextensioncontext.d.ts| -|删除|模块名:ohos.inputmethodextensioncontext
类名:InputMethodExtensionContext
方法名 or 属性名:terminateSelf||@ohos.inputmethodextensioncontext.d.ts| -|删除|模块名:ohos.pasteboard
类名:pasteboard
方法名 or 属性名:createPixelMapData||@ohos.pasteboard.d.ts| -|删除|模块名:ohos.pasteboard
类名:pasteboard
方法名 or 属性名:createPixelMapRecord||@ohos.pasteboard.d.ts| -|删除|模块名:ohos.pasteboard
类名:PasteData
方法名 or 属性名:addPixelMapRecord||@ohos.pasteboard.d.ts| -|删除|模块名:ohos.screenLock
类名:screenLock
方法名 or 属性名:lockScreen||@ohos.screenLock.d.ts| -|删除|模块名:ohos.screenLock
类名:screenLock
方法名 or 属性名:lockScreen||@ohos.screenLock.d.ts| -|删除|模块名:ohos.wallpaper
类名:wallpaper
方法名 or 属性名:screenshotLiveWallpaper||@ohos.wallpaper.d.ts| -|删除|模块名:ohos.wallpaper
类名:wallpaper
方法名 or 属性名:screenshotLiveWallpaper||@ohos.wallpaper.d.ts| +|新增|NA|模块名: ohos.inputmethodengine
类名: InputMethodAbility|@ohos.inputmethodengine.d.ts| +|新增|NA|模块名: ohos.inputmethodengine
类名: InputMethodAbility
方法名 or 属性名:on_inputStart|@ohos.inputmethodengine.d.ts| +|新增|NA|模块名: ohos.inputmethodengine
类名: InputMethodAbility
方法名 or 属性名:off_inputStart|@ohos.inputmethodengine.d.ts| +|新增|NA|模块名: ohos.inputmethodengine
类名: InputMethodAbility
方法名 or 属性名:on_inputStop|@ohos.inputmethodengine.d.ts| +|新增|NA|模块名: ohos.inputmethodengine
类名: InputMethodAbility
方法名 or 属性名:off_inputStop|@ohos.inputmethodengine.d.ts| +|新增|NA|模块名: ohos.inputmethodengine
类名: InputMethodAbility
方法名 or 属性名:on_setCallingWindow|@ohos.inputmethodengine.d.ts| +|新增|NA|模块名: ohos.inputmethodengine
类名: InputMethodAbility
方法名 or 属性名:off_setCallingWindow|@ohos.inputmethodengine.d.ts| +|新增|NA|模块名: ohos.inputmethodengine
类名: InputMethodAbility
方法名 or 属性名:on_keyboardShow|@ohos.inputmethodengine.d.ts| +|新增|NA|模块名: ohos.inputmethodengine
类名: InputMethodAbility
方法名 or 属性名:on_keyboardHide|@ohos.inputmethodengine.d.ts| +|新增|NA|模块名: ohos.inputmethodengine
类名: InputMethodAbility
方法名 or 属性名:off_keyboardShow|@ohos.inputmethodengine.d.ts| +|新增|NA|模块名: ohos.inputmethodengine
类名: InputMethodAbility
方法名 or 属性名:off_keyboardHide|@ohos.inputmethodengine.d.ts| +|新增|NA|模块名: ohos.inputmethodengine
类名: InputMethodAbility
方法名 or 属性名:on_setSubtype|@ohos.inputmethodengine.d.ts| +|新增|NA|模块名: ohos.inputmethodengine
类名: InputMethodAbility
方法名 or 属性名:off|@ohos.inputmethodengine.d.ts| +|新增|NA|模块名: ohos.inputmethodengine
类名: InputClient|@ohos.inputmethodengine.d.ts| +|新增|NA|模块名: ohos.inputmethodengine
类名: InputClient
方法名 or 属性名:sendKeyFunction|@ohos.inputmethodengine.d.ts| +|新增|NA|模块名: ohos.inputmethodengine
类名: InputClient
方法名 or 属性名:sendKeyFunction|@ohos.inputmethodengine.d.ts| +|新增|NA|模块名: ohos.inputmethodengine
类名: InputClient
方法名 or 属性名:deleteForward|@ohos.inputmethodengine.d.ts| +|新增|NA|模块名: ohos.inputmethodengine
类名: InputClient
方法名 or 属性名:deleteForward|@ohos.inputmethodengine.d.ts| +|新增|NA|模块名: ohos.inputmethodengine
类名: InputClient
方法名 or 属性名:deleteBackward|@ohos.inputmethodengine.d.ts| +|新增|NA|模块名: ohos.inputmethodengine
类名: InputClient
方法名 or 属性名:deleteBackward|@ohos.inputmethodengine.d.ts| +|新增|NA|模块名: ohos.inputmethodengine
类名: InputClient
方法名 or 属性名:insertText|@ohos.inputmethodengine.d.ts| +|新增|NA|模块名: ohos.inputmethodengine
类名: InputClient
方法名 or 属性名:insertText|@ohos.inputmethodengine.d.ts| +|新增|NA|模块名: ohos.inputmethodengine
类名: InputClient
方法名 or 属性名:getForward|@ohos.inputmethodengine.d.ts| +|新增|NA|模块名: ohos.inputmethodengine
类名: InputClient
方法名 or 属性名:getForward|@ohos.inputmethodengine.d.ts| +|新增|NA|模块名: ohos.inputmethodengine
类名: InputClient
方法名 or 属性名:getBackward|@ohos.inputmethodengine.d.ts| +|新增|NA|模块名: ohos.inputmethodengine
类名: InputClient
方法名 or 属性名:getBackward|@ohos.inputmethodengine.d.ts| +|新增|NA|模块名: ohos.inputmethodengine
类名: InputClient
方法名 or 属性名:getEditorAttribute|@ohos.inputmethodengine.d.ts| +|新增|NA|模块名: ohos.inputmethodengine
类名: InputClient
方法名 or 属性名:getEditorAttribute|@ohos.inputmethodengine.d.ts| +|新增|NA|模块名: ohos.inputmethodengine
类名: InputClient
方法名 or 属性名:moveCursor|@ohos.inputmethodengine.d.ts| +|新增|NA|模块名: ohos.inputmethodengine
类名: InputClient
方法名 or 属性名:moveCursor|@ohos.inputmethodengine.d.ts| +|新增|NA|模块名: ohos.inputMethodSubtype
类名: InputMethodSubtype|@ohos.inputMethodSubtype.d.ts| +|新增|NA|模块名: ohos.inputMethodSubtype
类名: InputMethodSubtype
方法名 or 属性名: label|@ohos.inputMethodSubtype.d.ts| +|新增|NA|模块名: ohos.inputMethodSubtype
类名: InputMethodSubtype
方法名 or 属性名: name|@ohos.inputMethodSubtype.d.ts| +|新增|NA|模块名: ohos.inputMethodSubtype
类名: InputMethodSubtype
方法名 or 属性名: id|@ohos.inputMethodSubtype.d.ts| +|新增|NA|模块名: ohos.inputMethodSubtype
类名: InputMethodSubtype
方法名 or 属性名: mode|@ohos.inputMethodSubtype.d.ts| +|新增|NA|模块名: ohos.inputMethodSubtype
类名: InputMethodSubtype
方法名 or 属性名: locale|@ohos.inputMethodSubtype.d.ts| +|新增|NA|模块名: ohos.inputMethodSubtype
类名: InputMethodSubtype
方法名 or 属性名: language|@ohos.inputMethodSubtype.d.ts| +|新增|NA|模块名: ohos.inputMethodSubtype
类名: InputMethodSubtype
方法名 or 属性名: icon|@ohos.inputMethodSubtype.d.ts| +|新增|NA|模块名: ohos.inputMethodSubtype
类名: InputMethodSubtype
方法名 or 属性名: iconId|@ohos.inputMethodSubtype.d.ts| +|新增|NA|模块名: ohos.inputMethodSubtype
类名: InputMethodSubtype
方法名 or 属性名: extra|@ohos.inputMethodSubtype.d.ts| +|新增|NA|模块名: ohos.pasteboard
类名: ShareOption|@ohos.pasteboard.d.ts| +|新增|NA|模块名: ohos.pasteboard
类名: ShareOption
方法名 or 属性名:InApp|@ohos.pasteboard.d.ts| +|新增|NA|模块名: ohos.pasteboard
类名: ShareOption
方法名 or 属性名:LocalDevice|@ohos.pasteboard.d.ts| +|新增|NA|模块名: ohos.pasteboard
类名: ShareOption
方法名 or 属性名:CrossDevice|@ohos.pasteboard.d.ts| +|新增|NA|模块名: ohos.pasteboard
类名: PasteDataProperty
方法名 or 属性名:shareOption|@ohos.pasteboard.d.ts| +|新增|NA|模块名: ohos.request
类名: TaskState|@ohos.request.d.ts| +|新增|NA|模块名: ohos.request
类名: TaskState
方法名 or 属性名:path|@ohos.request.d.ts| +|新增|NA|模块名: ohos.request
类名: TaskState
方法名 or 属性名:responseCode|@ohos.request.d.ts| +|新增|NA|模块名: ohos.request
类名: TaskState
方法名 or 属性名:message|@ohos.request.d.ts| +|新增|NA|模块名: ohos.screenLock
类名: SystemEvent|@ohos.screenLock.d.ts| +|新增|NA|模块名: ohos.screenLock
类名: SystemEvent
方法名 or 属性名:eventType|@ohos.screenLock.d.ts| +|新增|NA|模块名: ohos.screenLock
类名: SystemEvent
方法名 or 属性名:params|@ohos.screenLock.d.ts| +|新增|NA|方法名 or 属性名:getCurrentTime
函数:function getCurrentTime(isNano: boolean, callback: AsyncCallback): void;|@ohos.systemTime.d.ts| +|新增|NA|方法名 or 属性名:getCurrentTime
函数:function getCurrentTime(callback: AsyncCallback): void;|@ohos.systemTime.d.ts| +|新增|NA|方法名 or 属性名:getRealActiveTime
函数:function getRealActiveTime(isNano: boolean, callback: AsyncCallback): void;|@ohos.systemTime.d.ts| +|新增|NA|方法名 or 属性名:getRealActiveTime
函数:function getRealActiveTime(callback: AsyncCallback): void;|@ohos.systemTime.d.ts| +|新增|NA|方法名 or 属性名:getRealTime
函数:function getRealTime(isNano: boolean, callback: AsyncCallback): void;|@ohos.systemTime.d.ts| +|新增|NA|方法名 or 属性名:getRealTime
函数:function getRealTime(callback: AsyncCallback): void;|@ohos.systemTime.d.ts| +|删除|模块名:ohos.inputmethodextensioncontext
类名:InputMethodExtensionContext
方法名 or 属性名:startAbility|NA|@ohos.inputmethodextensioncontext.d.ts| +|删除|模块名:ohos.inputmethodextensioncontext
类名:InputMethodExtensionContext
方法名 or 属性名:startAbility|NA|@ohos.inputmethodextensioncontext.d.ts| +|删除|模块名:ohos.inputmethodextensioncontext
类名:InputMethodExtensionContext
方法名 or 属性名:startAbility|NA|@ohos.inputmethodextensioncontext.d.ts| +|删除|模块名:ohos.inputmethodextensioncontext
类名:InputMethodExtensionContext
方法名 or 属性名:terminateSelf|NA|@ohos.inputmethodextensioncontext.d.ts| +|删除|模块名:ohos.inputmethodextensioncontext
类名:InputMethodExtensionContext
方法名 or 属性名:terminateSelf|NA|@ohos.inputmethodextensioncontext.d.ts| +|删除|模块名:ohos.pasteboard
类名:pasteboard
方法名 or 属性名:createPixelMapData|NA|@ohos.pasteboard.d.ts| +|删除|模块名:ohos.pasteboard
类名:pasteboard
方法名 or 属性名:createPixelMapRecord|NA|@ohos.pasteboard.d.ts| +|删除|模块名:ohos.pasteboard
类名:PasteData
方法名 or 属性名:addPixelMapRecord|NA|@ohos.pasteboard.d.ts| +|删除|模块名:ohos.screenLock
类名:screenLock
方法名 or 属性名:on_beginWakeUp|NA|@ohos.screenLock.d.ts| +|删除|模块名:ohos.screenLock
类名:screenLock
方法名 or 属性名:on_endWakeUp|NA|@ohos.screenLock.d.ts| +|删除|模块名:ohos.screenLock
类名:screenLock
方法名 or 属性名:on_beginScreenOn|NA|@ohos.screenLock.d.ts| +|删除|模块名:ohos.screenLock
类名:screenLock
方法名 or 属性名:on_endScreenOn|NA|@ohos.screenLock.d.ts| +|删除|模块名:ohos.screenLock
类名:screenLock
方法名 or 属性名:on_beginScreenOff|NA|@ohos.screenLock.d.ts| +|删除|模块名:ohos.screenLock
类名:screenLock
方法名 or 属性名:on_endScreenOff|NA|@ohos.screenLock.d.ts| +|删除|模块名:ohos.screenLock
类名:screenLock
方法名 or 属性名:on_unlockScreen|NA|@ohos.screenLock.d.ts| +|删除|模块名:ohos.screenLock
类名:screenLock
方法名 or 属性名:on_beginExitAnimation|NA|@ohos.screenLock.d.ts| +|删除|模块名:ohos.screenLock
类名:screenLock
方法名 or 属性名:on_beginSleep|NA|@ohos.screenLock.d.ts| +|删除|模块名:ohos.screenLock
类名:screenLock
方法名 or 属性名:on_endSleep|NA|@ohos.screenLock.d.ts| +|删除|模块名:ohos.screenLock
类名:screenLock
方法名 or 属性名:on_changeUser|NA|@ohos.screenLock.d.ts| +|删除|模块名:ohos.screenLock
类名:screenLock
方法名 or 属性名:on_screenlockEnabled|NA|@ohos.screenLock.d.ts| +|删除|模块名:ohos.screenLock
类名:screenLock
方法名 or 属性名:off_beginWakeUp|NA|@ohos.screenLock.d.ts| +|删除|模块名:ohos.screenLock
类名:screenLock
方法名 or 属性名:off_endWakeUp|NA|@ohos.screenLock.d.ts| +|删除|模块名:ohos.screenLock
类名:screenLock
方法名 or 属性名:off_beginScreenOn|NA|@ohos.screenLock.d.ts| +|删除|模块名:ohos.screenLock
类名:screenLock
方法名 or 属性名:off_endScreenOn|NA|@ohos.screenLock.d.ts| +|删除|模块名:ohos.screenLock
类名:screenLock
方法名 or 属性名:off_beginScreenOff|NA|@ohos.screenLock.d.ts| +|删除|模块名:ohos.screenLock
类名:screenLock
方法名 or 属性名:off_endScreenOff|NA|@ohos.screenLock.d.ts| +|删除|模块名:ohos.screenLock
类名:screenLock
方法名 or 属性名:off_unlockScreen|NA|@ohos.screenLock.d.ts| +|删除|模块名:ohos.screenLock
类名:screenLock
方法名 or 属性名:off_beginExitAnimation|NA|@ohos.screenLock.d.ts| +|删除|模块名:ohos.screenLock
类名:screenLock
方法名 or 属性名:off_screenlockEnabled|NA|@ohos.screenLock.d.ts| +|删除|模块名:ohos.screenLock
类名:screenLock
方法名 or 属性名:off_beginSleep|NA|@ohos.screenLock.d.ts| +|删除|模块名:ohos.screenLock
类名:screenLock
方法名 or 属性名:off_endSleep|NA|@ohos.screenLock.d.ts| +|删除|模块名:ohos.screenLock
类名:screenLock
方法名 or 属性名:off_changeUser|NA|@ohos.screenLock.d.ts| +|删除|模块名:ohos.wallpaper
类名:wallpaper
方法名 or 属性名:screenshotLiveWallpaper|NA|@ohos.wallpaper.d.ts| +|删除|模块名:ohos.wallpaper
类名:wallpaper
方法名 or 属性名:screenshotLiveWallpaper|NA|@ohos.wallpaper.d.ts| |model有变化|方法名 or 属性名:switchInputMethod
model:@StageModelOnly|方法名 or 属性名:switchInputMethod
model:|@ohos.inputmethod.d.ts| |model有变化|方法名 or 属性名:switchInputMethod
model:@StageModelOnly|方法名 or 属性名:switchInputMethod
model:|@ohos.inputmethod.d.ts| -|model有变化|方法名 or 属性名:getCurrentInputMethod
model:@StageModelOnly|方法名 or 属性名:getCurrentInputMethod
model:|@ohos.inputmethod.d.ts| |model有变化|类名:InputMethodExtensionAbility
model:@StageModelOnly|类名:InputMethodExtensionAbility
model:|@ohos.inputmethodextensionability.d.ts| |model有变化|方法名 or 属性名:context
model:@StageModelOnly|方法名 or 属性名:context
model:|@ohos.inputmethodextensionability.d.ts| |model有变化|方法名 or 属性名:onCreate
model:@StageModelOnly|方法名 or 属性名:onCreate
model:|@ohos.inputmethodextensionability.d.ts| @@ -318,9 +247,8 @@ |起始版本有变化|方法名 or 属性名:getFile
起始版本:9|方法名 or 属性名:getFile
起始版本:8|@ohos.wallpaper.d.ts| |起始版本有变化|方法名 or 属性名:on_colorChange
起始版本:7|方法名 or 属性名:on_colorChange
起始版本:9|@ohos.wallpaper.d.ts| |起始版本有变化|方法名 or 属性名:off_colorChange
起始版本:7|方法名 or 属性名:off_colorChange
起始版本:9|@ohos.wallpaper.d.ts| -|新增(错误码)||方法名 or 属性名:setProperty
错误码内容:401|@ohos.pasteboard.d.ts| -|新增(错误码)||方法名 or 属性名:on_update
错误码内容:401|@ohos.pasteboard.d.ts| -|新增(错误码)||方法名 or 属性名:off_update
错误码内容:401|@ohos.pasteboard.d.ts| +|新增(错误码)|NA|方法名 or 属性名:on_update
错误码内容:401|@ohos.pasteboard.d.ts| +|新增(错误码)|NA|方法名 or 属性名:off_update
错误码内容:401|@ohos.pasteboard.d.ts| |新增(权限)|方法名 or 属性名:switchInputMethod
权限:N/A|方法名 or 属性名:switchInputMethod
权限:ohos.permission.CONNECT_IME_ABILITY|@ohos.inputmethod.d.ts| |新增(权限)|方法名 or 属性名:switchInputMethod
权限:N/A|方法名 or 属性名:switchInputMethod
权限:ohos.permission.CONNECT_IME_ABILITY|@ohos.inputmethod.d.ts| |新增(权限)|方法名 or 属性名:showSoftKeyboard
权限:N/A|方法名 or 属性名:showSoftKeyboard
权限:ohos.permission.CONNECT_IME_ABILITY|@ohos.inputmethod.d.ts| diff --git a/zh-cn/release-notes/api-diff/monthly-202210/js-apidiff-multi-modal-input.md b/zh-cn/release-notes/api-diff/monthly-202210/js-apidiff-multi-modal-input.md index 8e123ccc431a57cc51be14800ae80e8c45441cc9..731ae4c9b560e15bd24a085cbbc89f70551e2463 100644 --- a/zh-cn/release-notes/api-diff/monthly-202210/js-apidiff-multi-modal-input.md +++ b/zh-cn/release-notes/api-diff/monthly-202210/js-apidiff-multi-modal-input.md @@ -1,15 +1,62 @@ -| 操作 | 新版本 | 旧版本 | d.ts文件 | +| 操作 | 旧版本 | 新版本 | d.ts文件 | | ---- | ------ | ------ | -------- | -|新增||模块名:ohos.multimodalInput.inputDevice
类名:inputDevice
方法名 or 属性名:getDeviceList|@ohos.multimodalInput.inputDevice.d.ts| -|新增||模块名:ohos.multimodalInput.inputDevice
类名:inputDevice
方法名 or 属性名:getDeviceList|@ohos.multimodalInput.inputDevice.d.ts| -|新增||模块名:ohos.multimodalInput.inputDevice
类名:inputDevice
方法名 or 属性名:getDeviceInfo|@ohos.multimodalInput.inputDevice.d.ts| -|新增||模块名:ohos.multimodalInput.inputDevice
类名:inputDevice
方法名 or 属性名:getDeviceInfo|@ohos.multimodalInput.inputDevice.d.ts| -|新增||模块名:ohos.multimodalInput.inputDeviceCooperate
类名:EventMsg|@ohos.multimodalInput.inputDeviceCooperate.d.ts| -|新增||模块名:ohos.multimodalInput.inputDeviceCooperate
类名:EventMsg
方法名 or 属性名:MSG_COOPERATE_INFO_START|@ohos.multimodalInput.inputDeviceCooperate.d.ts| -|新增||模块名:ohos.multimodalInput.inputDeviceCooperate
类名:EventMsg
方法名 or 属性名:MSG_COOPERATE_INFO_SUCCESS|@ohos.multimodalInput.inputDeviceCooperate.d.ts| -|新增||模块名:ohos.multimodalInput.inputDeviceCooperate
类名:EventMsg
方法名 or 属性名:MSG_COOPERATE_INFO_FAIL|@ohos.multimodalInput.inputDeviceCooperate.d.ts| -|新增||模块名:ohos.multimodalInput.inputDeviceCooperate
类名:EventMsg
方法名 or 属性名:MSG_COOPERATE_STATE_ON|@ohos.multimodalInput.inputDeviceCooperate.d.ts| -|新增||模块名:ohos.multimodalInput.inputDeviceCooperate
类名:EventMsg
方法名 or 属性名:MSG_COOPERATE_STATE_OFF|@ohos.multimodalInput.inputDeviceCooperate.d.ts| +|新增|NA|模块名: ohos.multimodalInput.inputDeviceCooperate
类名: inputDeviceCooperate|@ohos.multimodalInput.inputDeviceCooperate.d.ts| +|新增|NA|模块名: ohos.multimodalInput.inputDeviceCooperate
类名: EventMsg|@ohos.multimodalInput.inputDeviceCooperate.d.ts| +|新增|NA|模块名: ohos.multimodalInput.inputDeviceCooperate
类名: EventMsg
方法名 or 属性名: MSG_COOPERATE_INFO_START|@ohos.multimodalInput.inputDeviceCooperate.d.ts| +|新增|NA|模块名: ohos.multimodalInput.inputDeviceCooperate
类名: EventMsg
方法名 or 属性名: MSG_COOPERATE_INFO_SUCCESS|@ohos.multimodalInput.inputDeviceCooperate.d.ts| +|新增|NA|模块名: ohos.multimodalInput.inputDeviceCooperate
类名: EventMsg
方法名 or 属性名: MSG_COOPERATE_INFO_FAIL|@ohos.multimodalInput.inputDeviceCooperate.d.ts| +|新增|NA|模块名: ohos.multimodalInput.inputDeviceCooperate
类名: EventMsg
方法名 or 属性名: MSG_COOPERATE_STATE_ON|@ohos.multimodalInput.inputDeviceCooperate.d.ts| +|新增|NA|模块名: ohos.multimodalInput.inputDeviceCooperate
类名: EventMsg
方法名 or 属性名: MSG_COOPERATE_STATE_OFF|@ohos.multimodalInput.inputDeviceCooperate.d.ts| +|新增|NA|模块名: ohos.multimodalInput.inputDeviceCooperate
类名: inputDeviceCooperate
方法名 or 属性名: enable|@ohos.multimodalInput.inputDeviceCooperate.d.ts| +|新增|NA|模块名: ohos.multimodalInput.inputDeviceCooperate
类名: inputDeviceCooperate
方法名 or 属性名: enable|@ohos.multimodalInput.inputDeviceCooperate.d.ts| +|新增|NA|模块名: ohos.multimodalInput.inputDeviceCooperate
类名: inputDeviceCooperate
方法名 or 属性名: start|@ohos.multimodalInput.inputDeviceCooperate.d.ts| +|新增|NA|模块名: ohos.multimodalInput.inputDeviceCooperate
类名: inputDeviceCooperate
方法名 or 属性名: start|@ohos.multimodalInput.inputDeviceCooperate.d.ts| +|新增|NA|模块名: ohos.multimodalInput.inputDeviceCooperate
类名: inputDeviceCooperate
方法名 or 属性名: stop|@ohos.multimodalInput.inputDeviceCooperate.d.ts| +|新增|NA|模块名: ohos.multimodalInput.inputDeviceCooperate
类名: inputDeviceCooperate
方法名 or 属性名: stop|@ohos.multimodalInput.inputDeviceCooperate.d.ts| +|新增|NA|模块名: ohos.multimodalInput.inputDeviceCooperate
类名: inputDeviceCooperate
方法名 or 属性名: getState|@ohos.multimodalInput.inputDeviceCooperate.d.ts| +|新增|NA|模块名: ohos.multimodalInput.inputDeviceCooperate
类名: inputDeviceCooperate
方法名 or 属性名: getState|@ohos.multimodalInput.inputDeviceCooperate.d.ts| +|新增|NA|模块名: ohos.multimodalInput.inputDeviceCooperate
类名: inputDeviceCooperate
方法名 or 属性名: on_cooperation|@ohos.multimodalInput.inputDeviceCooperate.d.ts| +|新增|NA|模块名: ohos.multimodalInput.inputDeviceCooperate
类名: inputDeviceCooperate
方法名 or 属性名: off_cooperation|@ohos.multimodalInput.inputDeviceCooperate.d.ts| +|新增|NA|模块名: ohos.multimodalInput.pointer
类名: PointerStyle|@ohos.multimodalInput.pointer.d.ts| +|新增|NA|模块名: ohos.multimodalInput.pointer
类名: PointerStyle
方法名 or 属性名:DEFAULT|@ohos.multimodalInput.pointer.d.ts| +|新增|NA|模块名: ohos.multimodalInput.pointer
类名: PointerStyle
方法名 or 属性名:EAST|@ohos.multimodalInput.pointer.d.ts| +|新增|NA|模块名: ohos.multimodalInput.pointer
类名: PointerStyle
方法名 or 属性名:WEST|@ohos.multimodalInput.pointer.d.ts| +|新增|NA|模块名: ohos.multimodalInput.pointer
类名: PointerStyle
方法名 or 属性名:SOUTH|@ohos.multimodalInput.pointer.d.ts| +|新增|NA|模块名: ohos.multimodalInput.pointer
类名: PointerStyle
方法名 or 属性名:NORTH|@ohos.multimodalInput.pointer.d.ts| +|新增|NA|模块名: ohos.multimodalInput.pointer
类名: PointerStyle
方法名 or 属性名:WEST_EAST|@ohos.multimodalInput.pointer.d.ts| +|新增|NA|模块名: ohos.multimodalInput.pointer
类名: PointerStyle
方法名 or 属性名:NORTH_SOUTH|@ohos.multimodalInput.pointer.d.ts| +|新增|NA|模块名: ohos.multimodalInput.pointer
类名: PointerStyle
方法名 or 属性名:NORTH_EAST|@ohos.multimodalInput.pointer.d.ts| +|新增|NA|模块名: ohos.multimodalInput.pointer
类名: PointerStyle
方法名 or 属性名:NORTH_WEST|@ohos.multimodalInput.pointer.d.ts| +|新增|NA|模块名: ohos.multimodalInput.pointer
类名: PointerStyle
方法名 or 属性名:SOUTH_EAST|@ohos.multimodalInput.pointer.d.ts| +|新增|NA|模块名: ohos.multimodalInput.pointer
类名: PointerStyle
方法名 or 属性名:SOUTH_WEST|@ohos.multimodalInput.pointer.d.ts| +|新增|NA|模块名: ohos.multimodalInput.pointer
类名: PointerStyle
方法名 or 属性名:NORTH_EAST_SOUTH_WEST|@ohos.multimodalInput.pointer.d.ts| +|新增|NA|模块名: ohos.multimodalInput.pointer
类名: PointerStyle
方法名 or 属性名:NORTH_WEST_SOUTH_EAST|@ohos.multimodalInput.pointer.d.ts| +|新增|NA|模块名: ohos.multimodalInput.pointer
类名: PointerStyle
方法名 or 属性名:CROSS|@ohos.multimodalInput.pointer.d.ts| +|新增|NA|模块名: ohos.multimodalInput.pointer
类名: PointerStyle
方法名 or 属性名:CURSOR_COPY|@ohos.multimodalInput.pointer.d.ts| +|新增|NA|模块名: ohos.multimodalInput.pointer
类名: PointerStyle
方法名 or 属性名:CURSOR_FORBID|@ohos.multimodalInput.pointer.d.ts| +|新增|NA|模块名: ohos.multimodalInput.pointer
类名: PointerStyle
方法名 or 属性名:COLOR_SUCKER|@ohos.multimodalInput.pointer.d.ts| +|新增|NA|模块名: ohos.multimodalInput.pointer
类名: PointerStyle
方法名 or 属性名:HAND_GRABBING|@ohos.multimodalInput.pointer.d.ts| +|新增|NA|模块名: ohos.multimodalInput.pointer
类名: PointerStyle
方法名 or 属性名:HAND_OPEN|@ohos.multimodalInput.pointer.d.ts| +|新增|NA|模块名: ohos.multimodalInput.pointer
类名: PointerStyle
方法名 or 属性名:HAND_POINTING|@ohos.multimodalInput.pointer.d.ts| +|新增|NA|模块名: ohos.multimodalInput.pointer
类名: PointerStyle
方法名 or 属性名:HELP|@ohos.multimodalInput.pointer.d.ts| +|新增|NA|模块名: ohos.multimodalInput.pointer
类名: PointerStyle
方法名 or 属性名:MOVE|@ohos.multimodalInput.pointer.d.ts| +|新增|NA|模块名: ohos.multimodalInput.pointer
类名: PointerStyle
方法名 or 属性名:RESIZE_LEFT_RIGHT|@ohos.multimodalInput.pointer.d.ts| +|新增|NA|模块名: ohos.multimodalInput.pointer
类名: PointerStyle
方法名 or 属性名:RESIZE_UP_DOWN|@ohos.multimodalInput.pointer.d.ts| +|新增|NA|模块名: ohos.multimodalInput.pointer
类名: PointerStyle
方法名 or 属性名:SCREENSHOT_CHOOSE|@ohos.multimodalInput.pointer.d.ts| +|新增|NA|模块名: ohos.multimodalInput.pointer
类名: PointerStyle
方法名 or 属性名:SCREENSHOT_CURSOR|@ohos.multimodalInput.pointer.d.ts| +|新增|NA|模块名: ohos.multimodalInput.pointer
类名: PointerStyle
方法名 or 属性名:TEXT_CURSOR|@ohos.multimodalInput.pointer.d.ts| +|新增|NA|模块名: ohos.multimodalInput.pointer
类名: PointerStyle
方法名 or 属性名:ZOOM_IN|@ohos.multimodalInput.pointer.d.ts| +|新增|NA|模块名: ohos.multimodalInput.pointer
类名: PointerStyle
方法名 or 属性名:ZOOM_OUT|@ohos.multimodalInput.pointer.d.ts| +|新增|NA|模块名: ohos.multimodalInput.pointer
类名: PointerStyle
方法名 or 属性名:MIDDLE_BTN_EAST|@ohos.multimodalInput.pointer.d.ts| +|新增|NA|模块名: ohos.multimodalInput.pointer
类名: PointerStyle
方法名 or 属性名:MIDDLE_BTN_WEST|@ohos.multimodalInput.pointer.d.ts| +|新增|NA|模块名: ohos.multimodalInput.pointer
类名: PointerStyle
方法名 or 属性名:MIDDLE_BTN_SOUTH|@ohos.multimodalInput.pointer.d.ts| +|新增|NA|模块名: ohos.multimodalInput.pointer
类名: PointerStyle
方法名 or 属性名:MIDDLE_BTN_NORTH|@ohos.multimodalInput.pointer.d.ts| +|新增|NA|模块名: ohos.multimodalInput.pointer
类名: PointerStyle
方法名 or 属性名:MIDDLE_BTN_NORTH_SOUTH|@ohos.multimodalInput.pointer.d.ts| +|新增|NA|模块名: ohos.multimodalInput.pointer
类名: PointerStyle
方法名 or 属性名:MIDDLE_BTN_NORTH_EAST|@ohos.multimodalInput.pointer.d.ts| +|新增|NA|模块名: ohos.multimodalInput.pointer
类名: PointerStyle
方法名 or 属性名:MIDDLE_BTN_NORTH_WEST|@ohos.multimodalInput.pointer.d.ts| +|新增|NA|模块名: ohos.multimodalInput.pointer
类名: PointerStyle
方法名 or 属性名:MIDDLE_BTN_SOUTH_EAST|@ohos.multimodalInput.pointer.d.ts| +|新增|NA|模块名: ohos.multimodalInput.pointer
类名: PointerStyle
方法名 or 属性名:MIDDLE_BTN_SOUTH_WEST|@ohos.multimodalInput.pointer.d.ts| +|新增|NA|模块名: ohos.multimodalInput.pointer
类名: PointerStyle
方法名 or 属性名:MIDDLE_BTN_NORTH_SOUTH_WEST_EAST|@ohos.multimodalInput.pointer.d.ts| |废弃版本有变化|方法名 or 属性名:getDeviceIds
废弃版本:N/A|方法名 or 属性名:getDeviceIds
废弃版本:9
代替接口:ohos.multimodalInput.inputDevice|@ohos.multimodalInput.inputDevice.d.ts| |废弃版本有变化|方法名 or 属性名:getDeviceIds
废弃版本:N/A|方法名 or 属性名:getDeviceIds
废弃版本:9
代替接口:ohos.multimodalInput.inputDevice|@ohos.multimodalInput.inputDevice.d.ts| |废弃版本有变化|方法名 or 属性名:getDevice
废弃版本:N/A|方法名 or 属性名:getDevice
废弃版本:9
代替接口:ohos.multimodalInput.inputDevice|@ohos.multimodalInput.inputDevice.d.ts| diff --git a/zh-cn/release-notes/api-diff/monthly-202210/js-apidiff-multimedia.md b/zh-cn/release-notes/api-diff/monthly-202210/js-apidiff-multimedia.md index bc91f8b4b4a841517604fb072e912da994c4eadd..cdf86689f62015e10ce17f4141faa98ca3e179a2 100644 --- a/zh-cn/release-notes/api-diff/monthly-202210/js-apidiff-multimedia.md +++ b/zh-cn/release-notes/api-diff/monthly-202210/js-apidiff-multimedia.md @@ -1,574 +1,465 @@ -| 操作 | 新版本 | 旧版本 | d.ts文件 | +| 操作 | 旧版本 | 新版本 | d.ts文件 | | ---- | ------ | ------ | -------- | -|新增||模块名:ohos.multimedia.audio
类名:audio|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: AudioErrors|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: AudioErrors
方法名 or 属性名:ERROR_INVALID_PARAM|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: AudioErrors
方法名 or 属性名:ERROR_NO_MEMORY|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: AudioErrors
方法名 or 属性名:ERROR_ILLEGAL_STATE|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: AudioErrors
方法名 or 属性名:ERROR_UNSUPPORTED|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: AudioErrors
方法名 or 属性名:ERROR_TIMEOUT|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: AudioErrors
方法名 or 属性名:ERROR_STREAM_LIMIT|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: AudioErrors
方法名 or 属性名:ERROR_SYSTEM|@ohos.multimedia.audio.d.ts| -|新增||模块名:ohos.multimedia.audio
类名:audio
方法名 or 属性名:DEFAULT_VOLUME_GROUP_ID|@ohos.multimedia.audio.d.ts| -|新增||模块名:ohos.multimedia.audio
类名:audio
方法名 or 属性名:DEFAULT_INTERRUPT_GROUP_ID|@ohos.multimedia.audio.d.ts| -|新增||模块名:ohos.multimedia.audio
类名:audio
方法名 or 属性名:createTonePlayer|@ohos.multimedia.audio.d.ts| -|新增||模块名:ohos.multimedia.audio
类名:audio
方法名 or 属性名:createTonePlayer|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: CommunicationDeviceType|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: CommunicationDeviceType
方法名 or 属性名:SPEAKER|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: StreamUsage
方法名 or 属性名:STREAM_USAGE_VOICE_ASSISTANT|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: InterruptRequestType|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: InterruptRequestType
方法名 or 属性名:INTERRUPT_REQUEST_TYPE_DEFAULT|@ohos.multimedia.audio.d.ts| -|新增||模块名:ohos.multimedia.audio
类名:InterruptMode|@ohos.multimedia.audio.d.ts| -|新增||模块名:ohos.multimedia.audio
类名:InterruptMode
方法名 or 属性名:SHARE_MODE|@ohos.multimedia.audio.d.ts| -|新增||模块名:ohos.multimedia.audio
类名:InterruptMode
方法名 or 属性名:INDEPENDENT_MODE|@ohos.multimedia.audio.d.ts| -|新增||模块名:ohos.multimedia.audio
类名:AudioManager
方法名 or 属性名:getVolumeManager|@ohos.multimedia.audio.d.ts| -|新增||方法名 or 属性名:getStreamManager
函数:getStreamManager(): AudioStreamManager;|@ohos.multimedia.audio.d.ts| -|新增||方法名 or 属性名:getRoutingManager
函数:getRoutingManager(): AudioRoutingManager;|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: InterruptRequestResultType|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: InterruptRequestResultType
方法名 or 属性名:INTERRUPT_REQUEST_GRANT|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: InterruptRequestResultType
方法名 or 属性名:INTERRUPT_REQUEST_REJECT|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: InterruptResult|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: InterruptResult
方法名 or 属性名:requestResult|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: InterruptResult
方法名 or 属性名:interruptNode|@ohos.multimedia.audio.d.ts| -|新增||模块名:ohos.multimedia.audio
类名:AudioRoutingManager
方法名 or 属性名:setCommunicationDevice|@ohos.multimedia.audio.d.ts| -|新增||模块名:ohos.multimedia.audio
类名:AudioRoutingManager
方法名 or 属性名:setCommunicationDevice|@ohos.multimedia.audio.d.ts| -|新增||模块名:ohos.multimedia.audio
类名:AudioRoutingManager
方法名 or 属性名:isCommunicationDeviceActive|@ohos.multimedia.audio.d.ts| -|新增||模块名:ohos.multimedia.audio
类名:AudioRoutingManager
方法名 or 属性名:isCommunicationDeviceActive|@ohos.multimedia.audio.d.ts| -|新增||模块名:ohos.multimedia.audio
类名:AudioRoutingManager
方法名 or 属性名:selectInputDevice|@ohos.multimedia.audio.d.ts| -|新增||模块名:ohos.multimedia.audio
类名:AudioRoutingManager
方法名 or 属性名:selectInputDevice|@ohos.multimedia.audio.d.ts| -|新增||方法名 or 属性名:off_audioRendererChange
函数:off(type: "audioRendererChange"): void;|@ohos.multimedia.audio.d.ts| -|新增||方法名 or 属性名:off_audioCapturerChange
函数:off(type: "audioCapturerChange"): void;|@ohos.multimedia.audio.d.ts| -|新增||模块名:ohos.multimedia.audio
类名:AudioStreamManager
方法名 or 属性名:isActive|@ohos.multimedia.audio.d.ts| -|新增||模块名:ohos.multimedia.audio
类名:AudioStreamManager
方法名 or 属性名:isActive|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: AudioVolumeManager|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: AudioVolumeManager
方法名 or 属性名:getVolumeGroupInfos|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: AudioVolumeManager
方法名 or 属性名:getVolumeGroupInfos|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: AudioVolumeManager
方法名 or 属性名:getVolumeGroupManager|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: AudioVolumeManager
方法名 or 属性名:getVolumeGroupManager|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: AudioVolumeManager
方法名 or 属性名:on_volumeChange|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: AudioVolumeGroupManager|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: AudioVolumeGroupManager
方法名 or 属性名:setVolume|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: AudioVolumeGroupManager
方法名 or 属性名:setVolume|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: AudioVolumeGroupManager
方法名 or 属性名:getVolume|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: AudioVolumeGroupManager
方法名 or 属性名:getVolume|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: AudioVolumeGroupManager
方法名 or 属性名:getMinVolume|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: AudioVolumeGroupManager
方法名 or 属性名:getMinVolume|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: AudioVolumeGroupManager
方法名 or 属性名:getMaxVolume|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: AudioVolumeGroupManager
方法名 or 属性名:getMaxVolume|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: AudioVolumeGroupManager
方法名 or 属性名:mute|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: AudioVolumeGroupManager
方法名 or 属性名:mute|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: AudioVolumeGroupManager
方法名 or 属性名:isMute|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: AudioVolumeGroupManager
方法名 or 属性名:isMute|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: AudioVolumeGroupManager
方法名 or 属性名:setRingerMode|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: AudioVolumeGroupManager
方法名 or 属性名:setRingerMode|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: AudioVolumeGroupManager
方法名 or 属性名:getRingerMode|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: AudioVolumeGroupManager
方法名 or 属性名:getRingerMode|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: AudioVolumeGroupManager
方法名 or 属性名:on_ringerModeChange|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: AudioVolumeGroupManager
方法名 or 属性名:setMicrophoneMute|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: AudioVolumeGroupManager
方法名 or 属性名:setMicrophoneMute|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: AudioVolumeGroupManager
方法名 or 属性名:isMicrophoneMute|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: AudioVolumeGroupManager
方法名 or 属性名:isMicrophoneMute|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: AudioVolumeGroupManager
方法名 or 属性名:on_micStateChange|@ohos.multimedia.audio.d.ts| -|新增||模块名:ohos.multimedia.audio
类名:ConnectType
方法名 or 属性名:CONNECT_TYPE_LOCAL|@ohos.multimedia.audio.d.ts| -|新增||模块名:ohos.multimedia.audio
类名:ConnectType
方法名 or 属性名:CONNECT_TYPE_DISTRIBUTED|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: MicStateChangeEvent|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: MicStateChangeEvent
方法名 or 属性名:mute|@ohos.multimedia.audio.d.ts| -|新增||模块名:ohos.multimedia.audio
类名:AudioRenderer
方法名 or 属性名:getAudioStreamId|@ohos.multimedia.audio.d.ts| -|新增||模块名:ohos.multimedia.audio
类名:AudioRenderer
方法名 or 属性名:getAudioStreamId|@ohos.multimedia.audio.d.ts| -|新增||模块名:ohos.multimedia.audio
类名:AudioRenderer
方法名 or 属性名:setVolume|@ohos.multimedia.audio.d.ts| -|新增||模块名:ohos.multimedia.audio
类名:AudioRenderer
方法名 or 属性名:setVolume|@ohos.multimedia.audio.d.ts| -|新增||模块名:ohos.multimedia.audio
类名:AudioRenderer
方法名 or 属性名:on_audioInterrupt|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: SourceType
方法名 or 属性名:SOURCE_TYPE_VOICE_RECOGNITION|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: AudioCapturer
方法名 or 属性名:getAudioStreamId|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: AudioCapturer
方法名 or 属性名:getAudioStreamId|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: ToneType|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: ToneType
方法名 or 属性名:TONE_TYPE_DIAL_0|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: ToneType
方法名 or 属性名:TONE_TYPE_DIAL_1|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: ToneType
方法名 or 属性名:TONE_TYPE_DIAL_2|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: ToneType
方法名 or 属性名:TONE_TYPE_DIAL_3|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: ToneType
方法名 or 属性名:TONE_TYPE_DIAL_4|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: ToneType
方法名 or 属性名:TONE_TYPE_DIAL_5|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: ToneType
方法名 or 属性名:TONE_TYPE_DIAL_6|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: ToneType
方法名 or 属性名:TONE_TYPE_DIAL_7|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: ToneType
方法名 or 属性名:TONE_TYPE_DIAL_8|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: ToneType
方法名 or 属性名:TONE_TYPE_DIAL_9|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: ToneType
方法名 or 属性名:TONE_TYPE_DIAL_S|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: ToneType
方法名 or 属性名:TONE_TYPE_DIAL_P|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: ToneType
方法名 or 属性名:TONE_TYPE_DIAL_A|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: ToneType
方法名 or 属性名:TONE_TYPE_DIAL_B|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: ToneType
方法名 or 属性名:TONE_TYPE_DIAL_C|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: ToneType
方法名 or 属性名:TONE_TYPE_DIAL_D|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: ToneType
方法名 or 属性名:TONE_TYPE_COMMON_SUPERVISORY_DIAL|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: ToneType
方法名 or 属性名:TONE_TYPE_COMMON_SUPERVISORY_BUSY|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: ToneType
方法名 or 属性名:TONE_TYPE_COMMON_SUPERVISORY_CONGESTION|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: ToneType
方法名 or 属性名:TONE_TYPE_COMMON_SUPERVISORY_RADIO_ACK|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: ToneType
方法名 or 属性名:TONE_TYPE_COMMON_SUPERVISORY_RADIO_NOT_AVAILABLE|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: ToneType
方法名 or 属性名:TONE_TYPE_COMMON_SUPERVISORY_CALL_WAITING|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: ToneType
方法名 or 属性名:TONE_TYPE_COMMON_SUPERVISORY_RINGTONE|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: ToneType
方法名 or 属性名:TONE_TYPE_COMMON_PROPRIETARY_BEEP|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: ToneType
方法名 or 属性名:TONE_TYPE_COMMON_PROPRIETARY_ACK|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: ToneType
方法名 or 属性名:TONE_TYPE_COMMON_PROPRIETARY_PROMPT|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: ToneType
方法名 or 属性名:TONE_TYPE_COMMON_PROPRIETARY_DOUBLE_BEEP|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: TonePlayer|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: TonePlayer
方法名 or 属性名:load|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: TonePlayer
方法名 or 属性名:load|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: TonePlayer
方法名 or 属性名:start|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: TonePlayer
方法名 or 属性名:start|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: TonePlayer
方法名 or 属性名:stop|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: TonePlayer
方法名 or 属性名:stop|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: TonePlayer
方法名 or 属性名:release|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: TonePlayer
方法名 or 属性名:release|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: avSession|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: avSession
方法名 or 属性名: createAVSession|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: avSession
方法名 or 属性名: createAVSession|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: avSession
方法名 or 属性名: getAllSessionDescriptors|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: avSession
方法名 or 属性名: getAllSessionDescriptors|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: avSession
方法名 or 属性名: createController|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: avSession
方法名 or 属性名: createController|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: avSession
方法名 or 属性名: castAudio|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: avSession
方法名 or 属性名: castAudio|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: SessionToken|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: SessionToken
方法名 or 属性名: sessionId|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: SessionToken
方法名 or 属性名: pid|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: SessionToken
方法名 or 属性名: uid|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: avSession
方法名 or 属性名: on_sessionCreate|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: avSession
方法名 or 属性名: on_sessionDestroy|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: avSession
方法名 or 属性名: on_topSessionChange|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: avSession
方法名 or 属性名: off_sessionCreate|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: avSession
方法名 or 属性名: off_sessionDestroy|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: avSession
方法名 or 属性名: off_topSessionChange|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: avSession
方法名 or 属性名: on_sessionServiceDie|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: avSession
方法名 or 属性名: off_sessionServiceDie|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: avSession
方法名 or 属性名: sendSystemAVKeyEvent|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: avSession
方法名 or 属性名: sendSystemAVKeyEvent|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: avSession
方法名 or 属性名: sendSystemControlCommand|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: avSession
方法名 or 属性名: sendSystemControlCommand|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSession|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: sessionId|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: setAVMetadata|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: setAVMetadata|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: setAVPlaybackState|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: setAVPlaybackState|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: setLaunchAbility|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: setLaunchAbility|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: getController|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: getController|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: getOutputDevice|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: getOutputDevice|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: on_play|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: on_pause|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: on_stop|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: on_playNext|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: on_playPrevious|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: on_fastForward|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: on_rewind|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: off_play|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: off_pause|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: off_stop|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: off_playNext|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: off_playPrevious|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: off_fastForward|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: off_rewind|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: on_seek|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: off_seek|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: on_setSpeed|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: off_setSpeed|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: on_setLoopMode|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: off_setLoopMode|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: on_toggleFavorite|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: off_toggleFavorite|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: on_handleKeyEvent|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: off_handleKeyEvent|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: on_outputDeviceChange|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: off_outputDeviceChange|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: activate|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: activate|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: deactivate|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: deactivate|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: destroy|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: destroy|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVMetadata|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVMetadata
方法名 or 属性名: assetId|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVMetadata
方法名 or 属性名: title|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVMetadata
方法名 or 属性名: artist|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVMetadata
方法名 or 属性名: author|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVMetadata
方法名 or 属性名: album|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVMetadata
方法名 or 属性名: writer|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVMetadata
方法名 or 属性名: composer|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVMetadata
方法名 or 属性名: duration|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVMetadata
方法名 or 属性名: mediaImage|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVMetadata
方法名 or 属性名: publishDate|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVMetadata
方法名 or 属性名: subtitle|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVMetadata
方法名 or 属性名: description|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVMetadata
方法名 or 属性名: lyric|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVMetadata
方法名 or 属性名: previousAssetId|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVMetadata
方法名 or 属性名: nextAssetId|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVPlaybackState|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVPlaybackState
方法名 or 属性名: state|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVPlaybackState
方法名 or 属性名: speed|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVPlaybackState
方法名 or 属性名: position|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVPlaybackState
方法名 or 属性名: bufferedTime|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVPlaybackState
方法名 or 属性名: loopMode|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVPlaybackState
方法名 or 属性名: isFavorite|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: PlaybackPosition|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: PlaybackPosition
方法名 or 属性名: elapsedTime|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: PlaybackPosition
方法名 or 属性名: updateTime|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: OutputDeviceInfo|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: OutputDeviceInfo
方法名 or 属性名: isRemote|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: OutputDeviceInfo
方法名 or 属性名: audioDeviceId|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: OutputDeviceInfo
方法名 or 属性名: deviceName|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: LoopMode|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: LoopMode
方法名 or 属性名: LOOP_MODE_SEQUENCE|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: LoopMode
方法名 or 属性名: LOOP_MODE_SINGLE|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: LoopMode
方法名 or 属性名: LOOP_MODE_LIST|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: LoopMode
方法名 or 属性名: LOOP_MODE_SHUFFLE|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: PlaybackState|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: PlaybackState
方法名 or 属性名: PLAYBACK_STATE_INITIAL|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: PlaybackState
方法名 or 属性名: PLAYBACK_STATE_PREPARE|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: PlaybackState
方法名 or 属性名: PLAYBACK_STATE_PLAY|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: PlaybackState
方法名 or 属性名: PLAYBACK_STATE_PAUSE|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: PlaybackState
方法名 or 属性名: PLAYBACK_STATE_FAST_FORWARD|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: PlaybackState
方法名 or 属性名: PLAYBACK_STATE_REWIND|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: PlaybackState
方法名 or 属性名: PLAYBACK_STATE_STOP|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSessionDescriptor|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSessionDescriptor
方法名 or 属性名: sessionId|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSessionDescriptor
方法名 or 属性名: type|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSessionDescriptor
方法名 or 属性名: sessionTag|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSessionDescriptor
方法名 or 属性名: elementName|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSessionDescriptor
方法名 or 属性名: isActive|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSessionDescriptor
方法名 or 属性名: isTopSession|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSessionDescriptor
方法名 or 属性名: outputDevice|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSessionController|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSessionController
方法名 or 属性名: sessionId|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSessionController
方法名 or 属性名: getAVPlaybackState|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSessionController
方法名 or 属性名: getAVPlaybackState|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSessionController
方法名 or 属性名: getAVMetadata|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSessionController
方法名 or 属性名: getAVMetadata|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSessionController
方法名 or 属性名: getOutputDevice|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSessionController
方法名 or 属性名: getOutputDevice|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSessionController
方法名 or 属性名: sendAVKeyEvent|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSessionController
方法名 or 属性名: sendAVKeyEvent|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSessionController
方法名 or 属性名: getLaunchAbility|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSessionController
方法名 or 属性名: getLaunchAbility|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSessionController
方法名 or 属性名: getRealPlaybackPositionSync|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSessionController
方法名 or 属性名: isActive|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSessionController
方法名 or 属性名: isActive|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSessionController
方法名 or 属性名: destroy|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSessionController
方法名 or 属性名: destroy|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSessionController
方法名 or 属性名: getValidCommands|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSessionController
方法名 or 属性名: getValidCommands|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSessionController
方法名 or 属性名: sendControlCommand|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSessionController
方法名 or 属性名: sendControlCommand|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSessionController
方法名 or 属性名: on_metadataChange|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSessionController
方法名 or 属性名: off_metadataChange|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSessionController
方法名 or 属性名: on_playbackStateChange|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSessionController
方法名 or 属性名: off_playbackStateChange|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSessionController
方法名 or 属性名: on_sessionDestroy|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSessionController
方法名 or 属性名: off_sessionDestroy|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSessionController
方法名 or 属性名: on_activeStateChange|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSessionController
方法名 or 属性名: off_activeStateChange|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSessionController
方法名 or 属性名: on_validCommandChange|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSessionController
方法名 or 属性名: off_validCommandChange|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSessionController
方法名 or 属性名: on_outputDeviceChange|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSessionController
方法名 or 属性名: off_outputDeviceChange|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVControlCommand|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVControlCommand
方法名 or 属性名: command|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVControlCommand
方法名 or 属性名: parameter|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSessionErrorCode|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSessionErrorCode
方法名 or 属性名: ERR_CODE_SERVICE_EXCEPTION|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSessionErrorCode
方法名 or 属性名: ERR_CODE_SESSION_NOT_EXIST|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSessionErrorCode
方法名 or 属性名: ERR_CODE_CONTROLLER_NOT_EXIST|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSessionErrorCode
方法名 or 属性名: ERR_CODE_REMOTE_CONNECTION_ERR|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSessionErrorCode
方法名 or 属性名: ERR_CODE_COMMAND_INVALID|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSessionErrorCode
方法名 or 属性名: ERR_CODE_SESSION_INACTIVE|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSessionErrorCode
方法名 or 属性名: ERR_CODE_MESSAGE_OVERLOAD|@ohos.multimedia.avsession.d.ts| -|新增||方法名 or 属性名:CAMERA_STATUS_DISAPPEAR
函数:CAMERA_STATUS_DISAPPEAR = 1|@ohos.multimedia.camera.d.ts| -|新增||方法名 or 属性名:CAMERA_STATUS_AVAILABLE
函数:CAMERA_STATUS_AVAILABLE = 2|@ohos.multimedia.camera.d.ts| -|新增||方法名 or 属性名:CAMERA_STATUS_UNAVAILABLE
函数:CAMERA_STATUS_UNAVAILABLE = 3|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: Profile|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: Profile
方法名 or 属性名:format|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: Profile
方法名 or 属性名:size|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: FrameRateRange|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: FrameRateRange
方法名 or 属性名:min|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: FrameRateRange
方法名 or 属性名:max|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: VideoProfile|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: VideoProfile
方法名 or 属性名:frameRateRange|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: CameraOutputCapability|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: CameraOutputCapability
方法名 or 属性名:previewProfiles|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: CameraOutputCapability
方法名 or 属性名:photoProfiles|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: CameraOutputCapability
方法名 or 属性名:videoProfiles|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: CameraOutputCapability
方法名 or 属性名:supportedMetadataObjectTypes|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CameraManager
方法名 or 属性名:getSupportedCameras|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CameraManager
方法名 or 属性名:getSupportedCameras|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CameraManager
方法名 or 属性名:getSupportedOutputCapability|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CameraManager
方法名 or 属性名:getSupportedOutputCapability|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CameraManager
方法名 or 属性名:isCameraMuted|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CameraManager
方法名 or 属性名:isCameraMuteSupported|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CameraManager
方法名 or 属性名:muteCamera|@ohos.multimedia.camera.d.ts| -|新增||方法名 or 属性名:createCameraInput
函数:createCameraInput(camera: CameraDevice, callback: AsyncCallback): void;|@ohos.multimedia.camera.d.ts| -|新增||方法名 or 属性名:createCameraInput
函数:createCameraInput(camera: CameraDevice): Promise;|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CameraManager
方法名 or 属性名:createPreviewOutput|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CameraManager
方法名 or 属性名:createPreviewOutput|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CameraManager
方法名 or 属性名:createPhotoOutput|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CameraManager
方法名 or 属性名:createPhotoOutput|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CameraManager
方法名 or 属性名:createVideoOutput|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CameraManager
方法名 or 属性名:createVideoOutput|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CameraManager
方法名 or 属性名:createMetadataOutput|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CameraManager
方法名 or 属性名:createMetadataOutput|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CameraManager
方法名 or 属性名:createCaptureSession|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CameraManager
方法名 or 属性名:createCaptureSession|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CameraManager
方法名 or 属性名:on_cameraMute|@ohos.multimedia.camera.d.ts| -|新增||方法名 or 属性名:camera
函数:camera: CameraDevice;|@ohos.multimedia.camera.d.ts| -|新增||方法名 or 属性名:CAMERA_POSITION_BACK
函数:CAMERA_POSITION_BACK = 1|@ohos.multimedia.camera.d.ts| -|新增||方法名 or 属性名:CAMERA_POSITION_FRONT
函数:CAMERA_POSITION_FRONT = 2|@ohos.multimedia.camera.d.ts| -|新增||方法名 or 属性名:CAMERA_TYPE_WIDE_ANGLE
函数:CAMERA_TYPE_WIDE_ANGLE = 1|@ohos.multimedia.camera.d.ts| -|新增||方法名 or 属性名:CAMERA_TYPE_ULTRA_WIDE
函数:CAMERA_TYPE_ULTRA_WIDE = 2|@ohos.multimedia.camera.d.ts| -|新增||方法名 or 属性名:CAMERA_TYPE_TELEPHOTO
函数:CAMERA_TYPE_TELEPHOTO = 3|@ohos.multimedia.camera.d.ts| -|新增||方法名 or 属性名:CAMERA_TYPE_TRUE_DEPTH
函数:CAMERA_TYPE_TRUE_DEPTH = 4|@ohos.multimedia.camera.d.ts| -|新增||方法名 or 属性名:CAMERA_CONNECTION_USB_PLUGIN
函数:CAMERA_CONNECTION_USB_PLUGIN = 1|@ohos.multimedia.camera.d.ts| -|新增||方法名 or 属性名:CAMERA_CONNECTION_REMOTE
函数:CAMERA_CONNECTION_REMOTE = 2|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: CameraDevice|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: CameraDevice
方法名 or 属性名:cameraId|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: CameraDevice
方法名 or 属性名:cameraPosition|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: CameraDevice
方法名 or 属性名:cameraType|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: CameraDevice
方法名 or 属性名:connectionType|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: Point|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: Point
方法名 or 属性名:x|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: Point
方法名 or 属性名:y|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CameraInput
方法名 or 属性名:open|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CameraInput
方法名 or 属性名:open|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CameraInput
方法名 or 属性名:close|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CameraInput
方法名 or 属性名:close|@ohos.multimedia.camera.d.ts| -|新增||方法名 or 属性名:on_error
函数:on(type: 'error', camera: CameraDevice, callback: ErrorCallback): void;|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: CameraInputErrorCode
方法名 or 属性名:ERROR_NO_PERMISSION|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: CameraInputErrorCode
方法名 or 属性名:ERROR_DEVICE_PREEMPTED|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: CameraInputErrorCode
方法名 or 属性名:ERROR_DEVICE_DISCONNECTED|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: CameraInputErrorCode
方法名 or 属性名:ERROR_DEVICE_IN_USE|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: CameraInputErrorCode
方法名 or 属性名:ERROR_DRIVER_ERROR|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: CameraFormat|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: CameraFormat
方法名 or 属性名:CAMERA_FORMAT_RGBA_8888|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: CameraFormat
方法名 or 属性名:CAMERA_FORMAT_YUV_420_SP|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: CameraFormat
方法名 or 属性名:CAMERA_FORMAT_JPEG|@ohos.multimedia.camera.d.ts| -|新增||方法名 or 属性名:FLASH_MODE_OPEN
函数:FLASH_MODE_OPEN = 1|@ohos.multimedia.camera.d.ts| -|新增||方法名 or 属性名:FLASH_MODE_AUTO
函数:FLASH_MODE_AUTO = 2|@ohos.multimedia.camera.d.ts| -|新增||方法名 or 属性名:FLASH_MODE_ALWAYS_OPEN
函数:FLASH_MODE_ALWAYS_OPEN = 3|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: ExposureMode|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: ExposureMode
方法名 or 属性名:EXPOSURE_MODE_LOCKED|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: ExposureMode
方法名 or 属性名:EXPOSURE_MODE_AUTO|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: ExposureMode
方法名 or 属性名:EXPOSURE_MODE_CONTINUOUS_AUTO|@ohos.multimedia.camera.d.ts| -|新增||方法名 or 属性名:FOCUS_MODE_CONTINUOUS_AUTO
函数:FOCUS_MODE_CONTINUOUS_AUTO = 1|@ohos.multimedia.camera.d.ts| -|新增||方法名 or 属性名:FOCUS_MODE_AUTO
函数:FOCUS_MODE_AUTO = 2|@ohos.multimedia.camera.d.ts| -|新增||方法名 or 属性名:FOCUS_MODE_LOCKED
函数:FOCUS_MODE_LOCKED = 3|@ohos.multimedia.camera.d.ts| -|新增||方法名 or 属性名:FOCUS_STATE_FOCUSED
函数:FOCUS_STATE_FOCUSED = 1|@ohos.multimedia.camera.d.ts| -|新增||方法名 or 属性名:FOCUS_STATE_UNFOCUSED
函数:FOCUS_STATE_UNFOCUSED = 2|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: VideoStabilizationMode|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: VideoStabilizationMode
方法名 or 属性名:OFF|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: VideoStabilizationMode
方法名 or 属性名:LOW|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: VideoStabilizationMode
方法名 or 属性名:MIDDLE|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: VideoStabilizationMode
方法名 or 属性名:HIGH|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: VideoStabilizationMode
方法名 or 属性名:AUTO|@ohos.multimedia.camera.d.ts| -|新增||方法名 or 属性名:addOutput
函数:addOutput(cameraOutput: CameraOutput, callback: AsyncCallback): void;|@ohos.multimedia.camera.d.ts| -|新增||方法名 or 属性名:addOutput
函数:addOutput(cameraOutput: CameraOutput): Promise;|@ohos.multimedia.camera.d.ts| -|新增||方法名 or 属性名:removeOutput
函数:removeOutput(cameraOutput: CameraOutput, callback: AsyncCallback): void;|@ohos.multimedia.camera.d.ts| -|新增||方法名 or 属性名:removeOutput
函数:removeOutput(cameraOutput: CameraOutput): Promise;|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CaptureSession
方法名 or 属性名:hasFlash|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CaptureSession
方法名 or 属性名:hasFlash|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CaptureSession
方法名 or 属性名:isFlashModeSupported|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CaptureSession
方法名 or 属性名:isFlashModeSupported|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CaptureSession
方法名 or 属性名:getFlashMode|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CaptureSession
方法名 or 属性名:getFlashMode|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CaptureSession
方法名 or 属性名:setFlashMode|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CaptureSession
方法名 or 属性名:setFlashMode|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CaptureSession
方法名 or 属性名:isExposureModeSupported|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CaptureSession
方法名 or 属性名:isExposureModeSupported|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CaptureSession
方法名 or 属性名:getExposureMode|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CaptureSession
方法名 or 属性名:getExposureMode|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CaptureSession
方法名 or 属性名:setExposureMode|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CaptureSession
方法名 or 属性名:setExposureMode|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CaptureSession
方法名 or 属性名:getMeteringPoint|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CaptureSession
方法名 or 属性名:getMeteringPoint|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CaptureSession
方法名 or 属性名:setMeteringPoint|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CaptureSession
方法名 or 属性名:setMeteringPoint|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CaptureSession
方法名 or 属性名:getExposureBiasRange|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CaptureSession
方法名 or 属性名:getExposureBiasRange|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CaptureSession
方法名 or 属性名:setExposureBias|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CaptureSession
方法名 or 属性名:setExposureBias|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CaptureSession
方法名 or 属性名:getExposureValue|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CaptureSession
方法名 or 属性名:getExposureValue|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CaptureSession
方法名 or 属性名:isFocusModeSupported|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CaptureSession
方法名 or 属性名:isFocusModeSupported|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CaptureSession
方法名 or 属性名:getFocusMode|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CaptureSession
方法名 or 属性名:getFocusMode|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CaptureSession
方法名 or 属性名:setFocusMode|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CaptureSession
方法名 or 属性名:setFocusMode|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CaptureSession
方法名 or 属性名:setFocusPoint|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CaptureSession
方法名 or 属性名:setFocusPoint|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CaptureSession
方法名 or 属性名:getFocusPoint|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CaptureSession
方法名 or 属性名:getFocusPoint|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CaptureSession
方法名 or 属性名:getFocalLength|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CaptureSession
方法名 or 属性名:getFocalLength|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CaptureSession
方法名 or 属性名:getZoomRatioRange|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CaptureSession
方法名 or 属性名:getZoomRatioRange|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CaptureSession
方法名 or 属性名:getZoomRatio|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CaptureSession
方法名 or 属性名:getZoomRatio|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CaptureSession
方法名 or 属性名:setZoomRatio|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CaptureSession
方法名 or 属性名:setZoomRatio|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CaptureSession
方法名 or 属性名:isVideoStabilizationModeSupported|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CaptureSession
方法名 or 属性名:isVideoStabilizationModeSupported|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CaptureSession
方法名 or 属性名:getActiveVideoStabilizationMode|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CaptureSession
方法名 or 属性名:getActiveVideoStabilizationMode|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CaptureSession
方法名 or 属性名:setVideoStabilizationMode|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CaptureSession
方法名 or 属性名:setVideoStabilizationMode|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CaptureSession
方法名 or 属性名:on_focusStateChange|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: CaptureSessionErrorCode
方法名 or 属性名:ERROR_INSUFFICIENT_RESOURCES|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: CaptureSessionErrorCode
方法名 or 属性名:ERROR_TIMEOUT|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: CameraOutput|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: CameraOutput
方法名 or 属性名:release|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: CameraOutput
方法名 or 属性名:release|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:PreviewOutput
方法名 or 属性名:start|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:PreviewOutput
方法名 or 属性名:start|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:PreviewOutput
方法名 or 属性名:stop|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:PreviewOutput
方法名 or 属性名:stop|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: Location|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: Location
方法名 or 属性名:latitude|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: Location
方法名 or 属性名:longitude|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: Location
方法名 or 属性名:altitude|@ohos.multimedia.camera.d.ts| -|新增||方法名 or 属性名:QUALITY_LEVEL_MEDIUM
函数:QUALITY_LEVEL_MEDIUM = 1|@ohos.multimedia.camera.d.ts| -|新增||方法名 or 属性名:QUALITY_LEVEL_LOW
函数:QUALITY_LEVEL_LOW = 2|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: PhotoCaptureSetting
方法名 or 属性名:location|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: PhotoCaptureSetting
方法名 or 属性名:mirror|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:PhotoOutput
方法名 or 属性名:isMirrorSupported|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:PhotoOutput
方法名 or 属性名:isMirrorSupported|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: PhotoOutputErrorCode
方法名 or 属性名:ERROR_DRIVER_ERROR|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: PhotoOutputErrorCode
方法名 or 属性名:ERROR_INSUFFICIENT_RESOURCES|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: PhotoOutputErrorCode
方法名 or 属性名:ERROR_TIMEOUT|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: VideoOutputErrorCode
方法名 or 属性名:ERROR_DRIVER_ERROR|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: MetadataObjectType|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: MetadataObjectType
方法名 or 属性名:FACE_DETECTION|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: Rect|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: Rect
方法名 or 属性名:topLeftX|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: Rect
方法名 or 属性名:topLeftY|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: Rect
方法名 or 属性名:width|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: Rect
方法名 or 属性名:height|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: MetadataObject|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: MetadataObject
方法名 or 属性名:getType|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: MetadataObject
方法名 or 属性名:getType|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: MetadataObject
方法名 or 属性名:getTimestamp|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: MetadataObject
方法名 or 属性名:getTimestamp|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: MetadataObject
方法名 or 属性名:getBoundingBox|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: MetadataObject
方法名 or 属性名:getBoundingBox|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: MetadataFaceObject|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: MetadataOutput|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: MetadataOutput
方法名 or 属性名:start|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: MetadataOutput
方法名 or 属性名:start|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: MetadataOutput
方法名 or 属性名:stop|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: MetadataOutput
方法名 or 属性名:stop|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: MetadataOutput
方法名 or 属性名:on_metadataObjectsAvailable|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: MetadataOutput
方法名 or 属性名:on_error|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: MetadataOutputErrorCode|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: MetadataOutputErrorCode
方法名 or 属性名:ERROR_UNKNOWN|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: MetadataOutputErrorCode
方法名 or 属性名:ERROR_INSUFFICIENT_RESOURCES|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: MetadataOutputError|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: MetadataOutputError
方法名 or 属性名:code|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.image
类名:image|@ohos.multimedia.image.d.ts| -|新增||模块名: ohos.multimedia.image
类名: PixelMapFormat
方法名 or 属性名:RGB_888|@ohos.multimedia.image.d.ts| -|新增||模块名: ohos.multimedia.image
类名: PixelMapFormat
方法名 or 属性名:ALPHA_8|@ohos.multimedia.image.d.ts| -|新增||模块名: ohos.multimedia.image
类名: PixelMapFormat
方法名 or 属性名:RGBA_F16|@ohos.multimedia.image.d.ts| -|新增||模块名: ohos.multimedia.image
类名: PixelMapFormat
方法名 or 属性名:NV21|@ohos.multimedia.image.d.ts| -|新增||模块名: ohos.multimedia.image
类名: PixelMapFormat
方法名 or 属性名:NV12|@ohos.multimedia.image.d.ts| -|新增||模块名: ohos.multimedia.image
类名: PropertyKey
方法名 or 属性名:DATE_TIME_ORIGINAL|@ohos.multimedia.image.d.ts| -|新增||模块名: ohos.multimedia.image
类名: PropertyKey
方法名 or 属性名:EXPOSURE_TIME|@ohos.multimedia.image.d.ts| -|新增||模块名: ohos.multimedia.image
类名: PropertyKey
方法名 or 属性名:SCENE_TYPE|@ohos.multimedia.image.d.ts| -|新增||模块名: ohos.multimedia.image
类名: PropertyKey
方法名 or 属性名:ISO_SPEED_RATINGS|@ohos.multimedia.image.d.ts| -|新增||模块名: ohos.multimedia.image
类名: PropertyKey
方法名 or 属性名:F_NUMBER|@ohos.multimedia.image.d.ts| -|新增||模块名: ohos.multimedia.image
类名: ImageInfo
方法名 or 属性名:density|@ohos.multimedia.image.d.ts| -|新增||模块名: ohos.multimedia.image
类名: PackingOption
方法名 or 属性名:bufferSize|@ohos.multimedia.image.d.ts| -|新增||模块名: ohos.multimedia.image
类名: DecodingOptions
方法名 or 属性名:fitDensity|@ohos.multimedia.image.d.ts| -|新增||模块名:ohos.multimedia.image
类名:image
方法名 or 属性名:createImageCreator|@ohos.multimedia.image.d.ts| -|新增||模块名: ohos.multimedia.image
类名: ImageCreator|@ohos.multimedia.image.d.ts| -|新增||模块名: ohos.multimedia.image
类名: ImageCreator
方法名 or 属性名:capacity|@ohos.multimedia.image.d.ts| -|新增||模块名: ohos.multimedia.image
类名: ImageCreator
方法名 or 属性名:format|@ohos.multimedia.image.d.ts| -|新增||模块名: ohos.multimedia.image
类名: ImageCreator
方法名 or 属性名:dequeueImage|@ohos.multimedia.image.d.ts| -|新增||模块名: ohos.multimedia.image
类名: ImageCreator
方法名 or 属性名:dequeueImage|@ohos.multimedia.image.d.ts| -|新增||模块名: ohos.multimedia.image
类名: ImageCreator
方法名 or 属性名:queueImage|@ohos.multimedia.image.d.ts| -|新增||模块名: ohos.multimedia.image
类名: ImageCreator
方法名 or 属性名:queueImage|@ohos.multimedia.image.d.ts| -|新增||模块名: ohos.multimedia.image
类名: ImageCreator
方法名 or 属性名:on_imageRelease|@ohos.multimedia.image.d.ts| -|新增||模块名: ohos.multimedia.image
类名: ImageCreator
方法名 or 属性名:release|@ohos.multimedia.image.d.ts| -|新增||模块名: ohos.multimedia.image
类名: ImageCreator
方法名 or 属性名:release|@ohos.multimedia.image.d.ts| -|新增||方法名 or 属性名:audioSourceType
函数:audioSourceType?: AudioSourceType;|@ohos.multimedia.media.d.ts| -|删除|模块名: ohos.multimedia.audio
类名: FocusType||@ohos.multimedia.audio.d.ts| -|删除|模块名: ohos.multimedia.audio
类名: FocusType
方法名 or 属性名:FOCUS_TYPE_RECORDING||@ohos.multimedia.audio.d.ts| -|删除|模块名:ohos.multimedia.audio
类名:AudioManager
方法名 or 属性名:getVolumeGroups||@ohos.multimedia.audio.d.ts| -|删除|模块名:ohos.multimedia.audio
类名:AudioManager
方法名 or 属性名:getVolumeGroups||@ohos.multimedia.audio.d.ts| -|删除|模块名:ohos.multimedia.audio
类名:AudioManager
方法名 or 属性名:getGroupManager||@ohos.multimedia.audio.d.ts| -|删除|模块名:ohos.multimedia.audio
类名:AudioManager
方法名 or 属性名:getGroupManager||@ohos.multimedia.audio.d.ts| -|删除|模块名:ohos.multimedia.audio
类名:AudioManager
方法名 or 属性名:requestIndependentInterrupt||@ohos.multimedia.audio.d.ts| -|删除|模块名:ohos.multimedia.audio
类名:AudioManager
方法名 or 属性名:requestIndependentInterrupt||@ohos.multimedia.audio.d.ts| -|删除|模块名:ohos.multimedia.audio
类名:AudioManager
方法名 or 属性名:abandonIndependentInterrupt||@ohos.multimedia.audio.d.ts| -|删除|模块名:ohos.multimedia.audio
类名:AudioManager
方法名 or 属性名:abandonIndependentInterrupt||@ohos.multimedia.audio.d.ts| -|删除|模块名:ohos.multimedia.audio
类名:AudioManager
方法名 or 属性名:on_independentInterrupt||@ohos.multimedia.audio.d.ts| -|删除|模块名:ohos.multimedia.audio
类名:AudioManager
方法名 or 属性名:off_independentInterrupt||@ohos.multimedia.audio.d.ts| -|删除|模块名: ohos.multimedia.audio
类名: AudioGroupManager||@ohos.multimedia.audio.d.ts| -|删除|模块名: ohos.multimedia.audio
类名: AudioGroupManager
方法名 or 属性名:setVolume||@ohos.multimedia.audio.d.ts| -|删除|模块名: ohos.multimedia.audio
类名: AudioGroupManager
方法名 or 属性名:setVolume||@ohos.multimedia.audio.d.ts| -|删除|模块名: ohos.multimedia.audio
类名: AudioGroupManager
方法名 or 属性名:getVolume||@ohos.multimedia.audio.d.ts| -|删除|模块名: ohos.multimedia.audio
类名: AudioGroupManager
方法名 or 属性名:getVolume||@ohos.multimedia.audio.d.ts| -|删除|模块名: ohos.multimedia.audio
类名: AudioGroupManager
方法名 or 属性名:getMinVolume||@ohos.multimedia.audio.d.ts| -|删除|模块名: ohos.multimedia.audio
类名: AudioGroupManager
方法名 or 属性名:getMinVolume||@ohos.multimedia.audio.d.ts| -|删除|模块名: ohos.multimedia.audio
类名: AudioGroupManager
方法名 or 属性名:getMaxVolume||@ohos.multimedia.audio.d.ts| -|删除|模块名: ohos.multimedia.audio
类名: AudioGroupManager
方法名 or 属性名:getMaxVolume||@ohos.multimedia.audio.d.ts| -|删除|模块名: ohos.multimedia.audio
类名: AudioGroupManager
方法名 or 属性名:mute||@ohos.multimedia.audio.d.ts| -|删除|模块名: ohos.multimedia.audio
类名: AudioGroupManager
方法名 or 属性名:mute||@ohos.multimedia.audio.d.ts| -|删除|模块名: ohos.multimedia.audio
类名: AudioGroupManager
方法名 or 属性名:isMute||@ohos.multimedia.audio.d.ts| -|删除|模块名: ohos.multimedia.audio
类名: AudioGroupManager
方法名 or 属性名:isMute||@ohos.multimedia.audio.d.ts| -|删除|模块名:ohos.multimedia.audio
类名:AudioRenderer
方法名 or 属性名:on_interrupt||@ohos.multimedia.audio.d.ts| -|删除|模块名:ohos.multimedia.camera
类名:CameraManager
方法名 or 属性名:getCameras||@ohos.multimedia.camera.d.ts| -|删除|模块名:ohos.multimedia.camera
类名:CameraManager
方法名 or 属性名:getCameras||@ohos.multimedia.camera.d.ts| -|删除|模块名: ohos.multimedia.camera
类名: Camera||@ohos.multimedia.camera.d.ts| -|删除|模块名: ohos.multimedia.camera
类名: Camera
方法名 or 属性名:cameraId||@ohos.multimedia.camera.d.ts| -|删除|模块名: ohos.multimedia.camera
类名: Camera
方法名 or 属性名:cameraPosition||@ohos.multimedia.camera.d.ts| -|删除|模块名: ohos.multimedia.camera
类名: Camera
方法名 or 属性名:cameraType||@ohos.multimedia.camera.d.ts| -|删除|模块名: ohos.multimedia.camera
类名: Camera
方法名 or 属性名:connectionType||@ohos.multimedia.camera.d.ts| -|删除|模块名:ohos.multimedia.camera
类名:CameraInput
方法名 or 属性名:getCameraId||@ohos.multimedia.camera.d.ts| -|删除|模块名:ohos.multimedia.camera
类名:CameraInput
方法名 or 属性名:getCameraId||@ohos.multimedia.camera.d.ts| -|删除|模块名:ohos.multimedia.camera
类名:CameraInput
方法名 or 属性名:hasFlash||@ohos.multimedia.camera.d.ts| -|删除|模块名:ohos.multimedia.camera
类名:CameraInput
方法名 or 属性名:hasFlash||@ohos.multimedia.camera.d.ts| -|删除|模块名:ohos.multimedia.camera
类名:CameraInput
方法名 or 属性名:isFlashModeSupported||@ohos.multimedia.camera.d.ts| -|删除|模块名:ohos.multimedia.camera
类名:CameraInput
方法名 or 属性名:isFlashModeSupported||@ohos.multimedia.camera.d.ts| -|删除|模块名:ohos.multimedia.camera
类名:CameraInput
方法名 or 属性名:getFlashMode||@ohos.multimedia.camera.d.ts| -|删除|模块名:ohos.multimedia.camera
类名:CameraInput
方法名 or 属性名:getFlashMode||@ohos.multimedia.camera.d.ts| -|删除|模块名:ohos.multimedia.camera
类名:CameraInput
方法名 or 属性名:setFlashMode||@ohos.multimedia.camera.d.ts| -|删除|模块名:ohos.multimedia.camera
类名:CameraInput
方法名 or 属性名:setFlashMode||@ohos.multimedia.camera.d.ts| -|删除|模块名:ohos.multimedia.camera
类名:CameraInput
方法名 or 属性名:isFocusModeSupported||@ohos.multimedia.camera.d.ts| -|删除|模块名:ohos.multimedia.camera
类名:CameraInput
方法名 or 属性名:isFocusModeSupported||@ohos.multimedia.camera.d.ts| -|删除|模块名:ohos.multimedia.camera
类名:CameraInput
方法名 or 属性名:getFocusMode||@ohos.multimedia.camera.d.ts| -|删除|模块名:ohos.multimedia.camera
类名:CameraInput
方法名 or 属性名:getFocusMode||@ohos.multimedia.camera.d.ts| -|删除|模块名:ohos.multimedia.camera
类名:CameraInput
方法名 or 属性名:setFocusMode||@ohos.multimedia.camera.d.ts| -|删除|模块名:ohos.multimedia.camera
类名:CameraInput
方法名 or 属性名:setFocusMode||@ohos.multimedia.camera.d.ts| -|删除|模块名:ohos.multimedia.camera
类名:CameraInput
方法名 or 属性名:getZoomRatioRange||@ohos.multimedia.camera.d.ts| -|删除|模块名:ohos.multimedia.camera
类名:CameraInput
方法名 or 属性名:getZoomRatioRange||@ohos.multimedia.camera.d.ts| -|删除|模块名:ohos.multimedia.camera
类名:CameraInput
方法名 or 属性名:getZoomRatio||@ohos.multimedia.camera.d.ts| -|删除|模块名:ohos.multimedia.camera
类名:CameraInput
方法名 or 属性名:getZoomRatio||@ohos.multimedia.camera.d.ts| -|删除|模块名:ohos.multimedia.camera
类名:CameraInput
方法名 or 属性名:setZoomRatio||@ohos.multimedia.camera.d.ts| -|删除|模块名:ohos.multimedia.camera
类名:CameraInput
方法名 or 属性名:setZoomRatio||@ohos.multimedia.camera.d.ts| -|删除|模块名:ohos.multimedia.camera
类名:CameraInput
方法名 or 属性名:on_focusStateChange||@ohos.multimedia.camera.d.ts| -|删除|模块名: ohos.multimedia.camera
类名: camera
方法名 or 属性名:createCaptureSession||@ohos.multimedia.camera.d.ts| -|删除|模块名: ohos.multimedia.camera
类名: camera
方法名 or 属性名:createCaptureSession||@ohos.multimedia.camera.d.ts| -|删除|模块名: ohos.multimedia.camera
类名: camera
方法名 or 属性名:createPreviewOutput||@ohos.multimedia.camera.d.ts| -|删除|模块名: ohos.multimedia.camera
类名: camera
方法名 or 属性名:createPreviewOutput||@ohos.multimedia.camera.d.ts| -|删除|模块名:ohos.multimedia.camera
类名:PreviewOutput
方法名 or 属性名:release||@ohos.multimedia.camera.d.ts| -|删除|模块名:ohos.multimedia.camera
类名:PreviewOutput
方法名 or 属性名:release||@ohos.multimedia.camera.d.ts| -|删除|模块名: ohos.multimedia.camera
类名: camera
方法名 or 属性名:createPhotoOutput||@ohos.multimedia.camera.d.ts| -|删除|模块名: ohos.multimedia.camera
类名: camera
方法名 or 属性名:createPhotoOutput||@ohos.multimedia.camera.d.ts| -|删除|模块名:ohos.multimedia.camera
类名:PhotoOutput
方法名 or 属性名:release||@ohos.multimedia.camera.d.ts| -|删除|模块名:ohos.multimedia.camera
类名:PhotoOutput
方法名 or 属性名:release||@ohos.multimedia.camera.d.ts| -|删除|模块名: ohos.multimedia.camera
类名: camera
方法名 or 属性名:createVideoOutput||@ohos.multimedia.camera.d.ts| -|删除|模块名: ohos.multimedia.camera
类名: camera
方法名 or 属性名:createVideoOutput||@ohos.multimedia.camera.d.ts| -|删除|模块名: ohos.multimedia.camera
类名: VideoOutput
方法名 or 属性名:release||@ohos.multimedia.camera.d.ts| -|删除|模块名: ohos.multimedia.camera
类名: VideoOutput
方法名 or 属性名:release||@ohos.multimedia.camera.d.ts| -|删除|模块名: ohos.multimedia.media
类名: VideoPlayer
方法名 or 属性名:selectBitrate||@ohos.multimedia.media.d.ts| -|删除|模块名: ohos.multimedia.media
类名: VideoPlayer
方法名 or 属性名:selectBitrate||@ohos.multimedia.media.d.ts| -|删除|模块名: ohos.multimedia.media
类名: VideoPlayer
方法名 or 属性名:on_availableBitratesCollect||@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioErrors|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioErrors
方法名 or 属性名:ERROR_INVALID_PARAM|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioErrors
方法名 or 属性名:ERROR_NO_MEMORY|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioErrors
方法名 or 属性名:ERROR_ILLEGAL_STATE|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioErrors
方法名 or 属性名:ERROR_UNSUPPORTED|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioErrors
方法名 or 属性名:ERROR_TIMEOUT|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioErrors
方法名 or 属性名:ERROR_STREAM_LIMIT|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioErrors
方法名 or 属性名:ERROR_SYSTEM|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: CommunicationDeviceType|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: CommunicationDeviceType
方法名 or 属性名:SPEAKER|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: StreamUsage
方法名 or 属性名:STREAM_USAGE_VOICE_ASSISTANT|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: InterruptRequestType|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: InterruptRequestType
方法名 or 属性名:INTERRUPT_REQUEST_TYPE_DEFAULT|@ohos.multimedia.audio.d.ts| +|新增|NA|方法名 or 属性名:getStreamManager
函数:getStreamManager(): AudioStreamManager;|@ohos.multimedia.audio.d.ts| +|新增|NA|方法名 or 属性名:getRoutingManager
函数:getRoutingManager(): AudioRoutingManager;|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: InterruptRequestResultType|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: InterruptRequestResultType
方法名 or 属性名:INTERRUPT_REQUEST_GRANT|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: InterruptRequestResultType
方法名 or 属性名:INTERRUPT_REQUEST_REJECT|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: InterruptResult|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: InterruptResult
方法名 or 属性名:requestResult|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: InterruptResult
方法名 or 属性名:interruptNode|@ohos.multimedia.audio.d.ts| +|新增|NA|方法名 or 属性名:off_audioRendererChange
函数:off(type: "audioRendererChange"): void;|@ohos.multimedia.audio.d.ts| +|新增|NA|方法名 or 属性名:off_audioCapturerChange
函数:off(type: "audioCapturerChange"): void;|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioVolumeManager|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioVolumeManager
方法名 or 属性名:getVolumeGroupInfos|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioVolumeManager
方法名 or 属性名:getVolumeGroupInfos|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioVolumeManager
方法名 or 属性名:getVolumeGroupManager|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioVolumeManager
方法名 or 属性名:getVolumeGroupManager|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioVolumeManager
方法名 or 属性名:on_volumeChange|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioVolumeGroupManager|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioVolumeGroupManager
方法名 or 属性名:setVolume|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioVolumeGroupManager
方法名 or 属性名:setVolume|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioVolumeGroupManager
方法名 or 属性名:getVolume|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioVolumeGroupManager
方法名 or 属性名:getVolume|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioVolumeGroupManager
方法名 or 属性名:getMinVolume|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioVolumeGroupManager
方法名 or 属性名:getMinVolume|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioVolumeGroupManager
方法名 or 属性名:getMaxVolume|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioVolumeGroupManager
方法名 or 属性名:getMaxVolume|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioVolumeGroupManager
方法名 or 属性名:mute|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioVolumeGroupManager
方法名 or 属性名:mute|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioVolumeGroupManager
方法名 or 属性名:isMute|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioVolumeGroupManager
方法名 or 属性名:isMute|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioVolumeGroupManager
方法名 or 属性名:setRingerMode|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioVolumeGroupManager
方法名 or 属性名:setRingerMode|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioVolumeGroupManager
方法名 or 属性名:getRingerMode|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioVolumeGroupManager
方法名 or 属性名:getRingerMode|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioVolumeGroupManager
方法名 or 属性名:on_ringerModeChange|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioVolumeGroupManager
方法名 or 属性名:setMicrophoneMute|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioVolumeGroupManager
方法名 or 属性名:setMicrophoneMute|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioVolumeGroupManager
方法名 or 属性名:isMicrophoneMute|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioVolumeGroupManager
方法名 or 属性名:isMicrophoneMute|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioVolumeGroupManager
方法名 or 属性名:on_micStateChange|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: ConnectType|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: ConnectType
方法名 or 属性名:CONNECT_TYPE_LOCAL|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: ConnectType
方法名 or 属性名:CONNECT_TYPE_DISTRIBUTED|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: VolumeGroupInfo|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: VolumeGroupInfo
方法名 or 属性名:networkId|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: VolumeGroupInfo
方法名 or 属性名:groupId|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: VolumeGroupInfo
方法名 or 属性名:mappingId|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: VolumeGroupInfo
方法名 or 属性名:groupName|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: VolumeGroupInfo
方法名 or 属性名:type|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: VolumeEvent
方法名 or 属性名:volumeGroupId|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: VolumeEvent
方法名 or 属性名:networkId|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: MicStateChangeEvent|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: MicStateChangeEvent
方法名 or 属性名:mute|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: SourceType
方法名 or 属性名:SOURCE_TYPE_VOICE_RECOGNITION|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioCapturer
方法名 or 属性名:getAudioStreamId|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioCapturer
方法名 or 属性名:getAudioStreamId|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: ToneType|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: ToneType
方法名 or 属性名:TONE_TYPE_DIAL_0|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: ToneType
方法名 or 属性名:TONE_TYPE_DIAL_1|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: ToneType
方法名 or 属性名:TONE_TYPE_DIAL_2|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: ToneType
方法名 or 属性名:TONE_TYPE_DIAL_3|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: ToneType
方法名 or 属性名:TONE_TYPE_DIAL_4|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: ToneType
方法名 or 属性名:TONE_TYPE_DIAL_5|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: ToneType
方法名 or 属性名:TONE_TYPE_DIAL_6|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: ToneType
方法名 or 属性名:TONE_TYPE_DIAL_7|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: ToneType
方法名 or 属性名:TONE_TYPE_DIAL_8|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: ToneType
方法名 or 属性名:TONE_TYPE_DIAL_9|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: ToneType
方法名 or 属性名:TONE_TYPE_DIAL_S|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: ToneType
方法名 or 属性名:TONE_TYPE_DIAL_P|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: ToneType
方法名 or 属性名:TONE_TYPE_DIAL_A|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: ToneType
方法名 or 属性名:TONE_TYPE_DIAL_B|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: ToneType
方法名 or 属性名:TONE_TYPE_DIAL_C|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: ToneType
方法名 or 属性名:TONE_TYPE_DIAL_D|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: ToneType
方法名 or 属性名:TONE_TYPE_COMMON_SUPERVISORY_DIAL|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: ToneType
方法名 or 属性名:TONE_TYPE_COMMON_SUPERVISORY_BUSY|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: ToneType
方法名 or 属性名:TONE_TYPE_COMMON_SUPERVISORY_CONGESTION|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: ToneType
方法名 or 属性名:TONE_TYPE_COMMON_SUPERVISORY_RADIO_ACK|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: ToneType
方法名 or 属性名:TONE_TYPE_COMMON_SUPERVISORY_RADIO_NOT_AVAILABLE|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: ToneType
方法名 or 属性名:TONE_TYPE_COMMON_SUPERVISORY_CALL_WAITING|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: ToneType
方法名 or 属性名:TONE_TYPE_COMMON_SUPERVISORY_RINGTONE|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: ToneType
方法名 or 属性名:TONE_TYPE_COMMON_PROPRIETARY_BEEP|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: ToneType
方法名 or 属性名:TONE_TYPE_COMMON_PROPRIETARY_ACK|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: ToneType
方法名 or 属性名:TONE_TYPE_COMMON_PROPRIETARY_PROMPT|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: ToneType
方法名 or 属性名:TONE_TYPE_COMMON_PROPRIETARY_DOUBLE_BEEP|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: TonePlayer|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: TonePlayer
方法名 or 属性名:load|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: TonePlayer
方法名 or 属性名:load|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: TonePlayer
方法名 or 属性名:start|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: TonePlayer
方法名 or 属性名:start|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: TonePlayer
方法名 or 属性名:stop|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: TonePlayer
方法名 or 属性名:stop|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: TonePlayer
方法名 or 属性名:release|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: TonePlayer
方法名 or 属性名:release|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: avSession|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: avSession
方法名 or 属性名: createAVSession|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: avSession
方法名 or 属性名: createAVSession|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: avSession
方法名 or 属性名: getAllSessionDescriptors|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: avSession
方法名 or 属性名: getAllSessionDescriptors|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: avSession
方法名 or 属性名: createController|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: avSession
方法名 or 属性名: createController|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: avSession
方法名 or 属性名: castAudio|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: avSession
方法名 or 属性名: castAudio|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: SessionToken|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: SessionToken
方法名 or 属性名: sessionId|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: SessionToken
方法名 or 属性名: pid|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: SessionToken
方法名 or 属性名: uid|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: avSession
方法名 or 属性名: on_sessionCreate|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: avSession
方法名 or 属性名: on_sessionDestroy|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: avSession
方法名 or 属性名: on_topSessionChange|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: avSession
方法名 or 属性名: off_sessionCreate|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: avSession
方法名 or 属性名: off_sessionDestroy|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: avSession
方法名 or 属性名: off_topSessionChange|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: avSession
方法名 or 属性名: on_sessionServiceDie|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: avSession
方法名 or 属性名: off_sessionServiceDie|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: avSession
方法名 or 属性名: sendSystemAVKeyEvent|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: avSession
方法名 or 属性名: sendSystemAVKeyEvent|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: avSession
方法名 or 属性名: sendSystemControlCommand|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: avSession
方法名 or 属性名: sendSystemControlCommand|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSession|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: sessionId|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: setAVMetadata|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: setAVMetadata|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: setAVPlaybackState|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: setAVPlaybackState|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: setLaunchAbility|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: setLaunchAbility|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: getController|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: getController|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: getOutputDevice|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: getOutputDevice|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: on_play|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: on_pause|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: on_stop|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: on_playNext|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: on_playPrevious|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: on_fastForward|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: on_rewind|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: off_play|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: off_pause|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: off_stop|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: off_playNext|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: off_playPrevious|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: off_fastForward|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: off_rewind|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: on_seek|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: off_seek|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: on_setSpeed|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: off_setSpeed|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: on_setLoopMode|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: off_setLoopMode|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: on_toggleFavorite|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: off_toggleFavorite|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: on_handleKeyEvent|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: off_handleKeyEvent|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: on_outputDeviceChange|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: off_outputDeviceChange|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: activate|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: activate|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: deactivate|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: deactivate|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: destroy|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: destroy|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVMetadata|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVMetadata
方法名 or 属性名: assetId|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVMetadata
方法名 or 属性名: title|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVMetadata
方法名 or 属性名: artist|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVMetadata
方法名 or 属性名: author|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVMetadata
方法名 or 属性名: album|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVMetadata
方法名 or 属性名: writer|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVMetadata
方法名 or 属性名: composer|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVMetadata
方法名 or 属性名: duration|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVMetadata
方法名 or 属性名: mediaImage|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVMetadata
方法名 or 属性名: publishDate|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVMetadata
方法名 or 属性名: subtitle|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVMetadata
方法名 or 属性名: description|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVMetadata
方法名 or 属性名: lyric|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVMetadata
方法名 or 属性名: previousAssetId|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVMetadata
方法名 or 属性名: nextAssetId|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVPlaybackState|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVPlaybackState
方法名 or 属性名: state|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVPlaybackState
方法名 or 属性名: speed|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVPlaybackState
方法名 or 属性名: position|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVPlaybackState
方法名 or 属性名: bufferedTime|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVPlaybackState
方法名 or 属性名: loopMode|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVPlaybackState
方法名 or 属性名: isFavorite|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: PlaybackPosition|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: PlaybackPosition
方法名 or 属性名: elapsedTime|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: PlaybackPosition
方法名 or 属性名: updateTime|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: OutputDeviceInfo|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: OutputDeviceInfo
方法名 or 属性名: isRemote|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: OutputDeviceInfo
方法名 or 属性名: audioDeviceId|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: OutputDeviceInfo
方法名 or 属性名: deviceName|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: LoopMode|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: LoopMode
方法名 or 属性名: LOOP_MODE_SEQUENCE|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: LoopMode
方法名 or 属性名: LOOP_MODE_SINGLE|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: LoopMode
方法名 or 属性名: LOOP_MODE_LIST|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: LoopMode
方法名 or 属性名: LOOP_MODE_SHUFFLE|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: PlaybackState|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: PlaybackState
方法名 or 属性名: PLAYBACK_STATE_INITIAL|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: PlaybackState
方法名 or 属性名: PLAYBACK_STATE_PREPARE|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: PlaybackState
方法名 or 属性名: PLAYBACK_STATE_PLAY|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: PlaybackState
方法名 or 属性名: PLAYBACK_STATE_PAUSE|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: PlaybackState
方法名 or 属性名: PLAYBACK_STATE_FAST_FORWARD|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: PlaybackState
方法名 or 属性名: PLAYBACK_STATE_REWIND|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: PlaybackState
方法名 or 属性名: PLAYBACK_STATE_STOP|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionDescriptor|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionDescriptor
方法名 or 属性名: sessionId|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionDescriptor
方法名 or 属性名: type|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionDescriptor
方法名 or 属性名: sessionTag|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionDescriptor
方法名 or 属性名: elementName|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionDescriptor
方法名 or 属性名: isActive|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionDescriptor
方法名 or 属性名: isTopSession|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionDescriptor
方法名 or 属性名: outputDevice|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionController|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionController
方法名 or 属性名: sessionId|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionController
方法名 or 属性名: getAVPlaybackState|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionController
方法名 or 属性名: getAVPlaybackState|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionController
方法名 or 属性名: getAVMetadata|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionController
方法名 or 属性名: getAVMetadata|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionController
方法名 or 属性名: getOutputDevice|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionController
方法名 or 属性名: getOutputDevice|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionController
方法名 or 属性名: sendAVKeyEvent|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionController
方法名 or 属性名: sendAVKeyEvent|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionController
方法名 or 属性名: getLaunchAbility|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionController
方法名 or 属性名: getLaunchAbility|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionController
方法名 or 属性名: getRealPlaybackPositionSync|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionController
方法名 or 属性名: isActive|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionController
方法名 or 属性名: isActive|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionController
方法名 or 属性名: destroy|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionController
方法名 or 属性名: destroy|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionController
方法名 or 属性名: getValidCommands|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionController
方法名 or 属性名: getValidCommands|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionController
方法名 or 属性名: sendControlCommand|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionController
方法名 or 属性名: sendControlCommand|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionController
方法名 or 属性名: on_metadataChange|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionController
方法名 or 属性名: off_metadataChange|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionController
方法名 or 属性名: on_playbackStateChange|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionController
方法名 or 属性名: off_playbackStateChange|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionController
方法名 or 属性名: on_sessionDestroy|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionController
方法名 or 属性名: off_sessionDestroy|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionController
方法名 or 属性名: on_activeStateChange|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionController
方法名 or 属性名: off_activeStateChange|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionController
方法名 or 属性名: on_validCommandChange|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionController
方法名 or 属性名: off_validCommandChange|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionController
方法名 or 属性名: on_outputDeviceChange|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionController
方法名 or 属性名: off_outputDeviceChange|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVControlCommand|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVControlCommand
方法名 or 属性名: command|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVControlCommand
方法名 or 属性名: parameter|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionErrorCode|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionErrorCode
方法名 or 属性名: ERR_CODE_SERVICE_EXCEPTION|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionErrorCode
方法名 or 属性名: ERR_CODE_SESSION_NOT_EXIST|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionErrorCode
方法名 or 属性名: ERR_CODE_CONTROLLER_NOT_EXIST|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionErrorCode
方法名 or 属性名: ERR_CODE_REMOTE_CONNECTION_ERR|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionErrorCode
方法名 or 属性名: ERR_CODE_COMMAND_INVALID|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionErrorCode
方法名 or 属性名: ERR_CODE_SESSION_INACTIVE|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionErrorCode
方法名 or 属性名: ERR_CODE_MESSAGE_OVERLOAD|@ohos.multimedia.avsession.d.ts| +|新增|NA|方法名 or 属性名:CAMERA_STATUS_DISAPPEAR
函数:CAMERA_STATUS_DISAPPEAR = 1|@ohos.multimedia.camera.d.ts| +|新增|NA|方法名 or 属性名:CAMERA_STATUS_AVAILABLE
函数:CAMERA_STATUS_AVAILABLE = 2|@ohos.multimedia.camera.d.ts| +|新增|NA|方法名 or 属性名:CAMERA_STATUS_UNAVAILABLE
函数:CAMERA_STATUS_UNAVAILABLE = 3|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: Profile|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: Profile
方法名 or 属性名:format|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: Profile
方法名 or 属性名:size|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: FrameRateRange|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: FrameRateRange
方法名 or 属性名:min|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: FrameRateRange
方法名 or 属性名:max|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: VideoProfile|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: VideoProfile
方法名 or 属性名:frameRateRange|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CameraOutputCapability|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CameraOutputCapability
方法名 or 属性名:previewProfiles|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CameraOutputCapability
方法名 or 属性名:photoProfiles|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CameraOutputCapability
方法名 or 属性名:videoProfiles|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CameraOutputCapability
方法名 or 属性名:supportedMetadataObjectTypes|@ohos.multimedia.camera.d.ts| +|新增|NA|方法名 or 属性名:createCameraInput
函数:createCameraInput(camera: CameraDevice, callback: AsyncCallback): void;|@ohos.multimedia.camera.d.ts| +|新增|NA|方法名 or 属性名:createCameraInput
函数:createCameraInput(camera: CameraDevice): Promise;|@ohos.multimedia.camera.d.ts| +|新增|NA|方法名 or 属性名:camera
函数:camera: CameraDevice;|@ohos.multimedia.camera.d.ts| +|新增|NA|方法名 or 属性名:CAMERA_POSITION_BACK
函数:CAMERA_POSITION_BACK = 1|@ohos.multimedia.camera.d.ts| +|新增|NA|方法名 or 属性名:CAMERA_POSITION_FRONT
函数:CAMERA_POSITION_FRONT = 2|@ohos.multimedia.camera.d.ts| +|新增|NA|方法名 or 属性名:CAMERA_TYPE_WIDE_ANGLE
函数:CAMERA_TYPE_WIDE_ANGLE = 1|@ohos.multimedia.camera.d.ts| +|新增|NA|方法名 or 属性名:CAMERA_TYPE_ULTRA_WIDE
函数:CAMERA_TYPE_ULTRA_WIDE = 2|@ohos.multimedia.camera.d.ts| +|新增|NA|方法名 or 属性名:CAMERA_TYPE_TELEPHOTO
函数:CAMERA_TYPE_TELEPHOTO = 3|@ohos.multimedia.camera.d.ts| +|新增|NA|方法名 or 属性名:CAMERA_TYPE_TRUE_DEPTH
函数:CAMERA_TYPE_TRUE_DEPTH = 4|@ohos.multimedia.camera.d.ts| +|新增|NA|方法名 or 属性名:CAMERA_CONNECTION_USB_PLUGIN
函数:CAMERA_CONNECTION_USB_PLUGIN = 1|@ohos.multimedia.camera.d.ts| +|新增|NA|方法名 or 属性名:CAMERA_CONNECTION_REMOTE
函数:CAMERA_CONNECTION_REMOTE = 2|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CameraDevice|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CameraDevice
方法名 or 属性名:cameraId|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CameraDevice
方法名 or 属性名:cameraPosition|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CameraDevice
方法名 or 属性名:cameraType|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CameraDevice
方法名 or 属性名:connectionType|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: Point|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: Point
方法名 or 属性名:x|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: Point
方法名 or 属性名:y|@ohos.multimedia.camera.d.ts| +|新增|NA|方法名 or 属性名:on_error
函数:on(type: 'error', camera: CameraDevice, callback: ErrorCallback): void;|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CameraInputErrorCode
方法名 or 属性名:ERROR_NO_PERMISSION|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CameraInputErrorCode
方法名 or 属性名:ERROR_DEVICE_PREEMPTED|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CameraInputErrorCode
方法名 or 属性名:ERROR_DEVICE_DISCONNECTED|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CameraInputErrorCode
方法名 or 属性名:ERROR_DEVICE_IN_USE|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CameraInputErrorCode
方法名 or 属性名:ERROR_DRIVER_ERROR|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CameraFormat|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CameraFormat
方法名 or 属性名:CAMERA_FORMAT_RGBA_8888|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CameraFormat
方法名 or 属性名:CAMERA_FORMAT_YUV_420_SP|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CameraFormat
方法名 or 属性名:CAMERA_FORMAT_JPEG|@ohos.multimedia.camera.d.ts| +|新增|NA|方法名 or 属性名:FLASH_MODE_OPEN
函数:FLASH_MODE_OPEN = 1|@ohos.multimedia.camera.d.ts| +|新增|NA|方法名 or 属性名:FLASH_MODE_AUTO
函数:FLASH_MODE_AUTO = 2|@ohos.multimedia.camera.d.ts| +|新增|NA|方法名 or 属性名:FLASH_MODE_ALWAYS_OPEN
函数:FLASH_MODE_ALWAYS_OPEN = 3|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: ExposureMode|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: ExposureMode
方法名 or 属性名:EXPOSURE_MODE_LOCKED|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: ExposureMode
方法名 or 属性名:EXPOSURE_MODE_AUTO|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: ExposureMode
方法名 or 属性名:EXPOSURE_MODE_CONTINUOUS_AUTO|@ohos.multimedia.camera.d.ts| +|新增|NA|方法名 or 属性名:FOCUS_MODE_CONTINUOUS_AUTO
函数:FOCUS_MODE_CONTINUOUS_AUTO = 1|@ohos.multimedia.camera.d.ts| +|新增|NA|方法名 or 属性名:FOCUS_MODE_AUTO
函数:FOCUS_MODE_AUTO = 2|@ohos.multimedia.camera.d.ts| +|新增|NA|方法名 or 属性名:FOCUS_MODE_LOCKED
函数:FOCUS_MODE_LOCKED = 3|@ohos.multimedia.camera.d.ts| +|新增|NA|方法名 or 属性名:FOCUS_STATE_FOCUSED
函数:FOCUS_STATE_FOCUSED = 1|@ohos.multimedia.camera.d.ts| +|新增|NA|方法名 or 属性名:FOCUS_STATE_UNFOCUSED
函数:FOCUS_STATE_UNFOCUSED = 2|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: VideoStabilizationMode|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: VideoStabilizationMode
方法名 or 属性名:OFF|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: VideoStabilizationMode
方法名 or 属性名:LOW|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: VideoStabilizationMode
方法名 or 属性名:MIDDLE|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: VideoStabilizationMode
方法名 or 属性名:HIGH|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: VideoStabilizationMode
方法名 or 属性名:AUTO|@ohos.multimedia.camera.d.ts| +|新增|NA|方法名 or 属性名:addOutput
函数:addOutput(cameraOutput: CameraOutput, callback: AsyncCallback): void;|@ohos.multimedia.camera.d.ts| +|新增|NA|方法名 or 属性名:addOutput
函数:addOutput(cameraOutput: CameraOutput): Promise;|@ohos.multimedia.camera.d.ts| +|新增|NA|方法名 or 属性名:removeOutput
函数:removeOutput(cameraOutput: CameraOutput, callback: AsyncCallback): void;|@ohos.multimedia.camera.d.ts| +|新增|NA|方法名 or 属性名:removeOutput
函数:removeOutput(cameraOutput: CameraOutput): Promise;|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CaptureSessionErrorCode
方法名 or 属性名:ERROR_INSUFFICIENT_RESOURCES|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CaptureSessionErrorCode
方法名 or 属性名:ERROR_TIMEOUT|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CameraOutput|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CameraOutput
方法名 or 属性名:release|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CameraOutput
方法名 or 属性名:release|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: Location|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: Location
方法名 or 属性名:latitude|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: Location
方法名 or 属性名:longitude|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: Location
方法名 or 属性名:altitude|@ohos.multimedia.camera.d.ts| +|新增|NA|方法名 or 属性名:QUALITY_LEVEL_MEDIUM
函数:QUALITY_LEVEL_MEDIUM = 1|@ohos.multimedia.camera.d.ts| +|新增|NA|方法名 or 属性名:QUALITY_LEVEL_LOW
函数:QUALITY_LEVEL_LOW = 2|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: PhotoCaptureSetting
方法名 or 属性名:location|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: PhotoCaptureSetting
方法名 or 属性名:mirror|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: PhotoOutputErrorCode
方法名 or 属性名:ERROR_DRIVER_ERROR|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: PhotoOutputErrorCode
方法名 or 属性名:ERROR_INSUFFICIENT_RESOURCES|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: PhotoOutputErrorCode
方法名 or 属性名:ERROR_TIMEOUT|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: VideoOutputErrorCode
方法名 or 属性名:ERROR_DRIVER_ERROR|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: MetadataObjectType|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: MetadataObjectType
方法名 or 属性名:FACE_DETECTION|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: Rect|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: Rect
方法名 or 属性名:topLeftX|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: Rect
方法名 or 属性名:topLeftY|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: Rect
方法名 or 属性名:width|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: Rect
方法名 or 属性名:height|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: MetadataObject|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: MetadataObject
方法名 or 属性名:getType|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: MetadataObject
方法名 or 属性名:getType|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: MetadataObject
方法名 or 属性名:getTimestamp|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: MetadataObject
方法名 or 属性名:getTimestamp|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: MetadataObject
方法名 or 属性名:getBoundingBox|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: MetadataObject
方法名 or 属性名:getBoundingBox|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: MetadataFaceObject|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: MetadataOutput|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: MetadataOutput
方法名 or 属性名:start|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: MetadataOutput
方法名 or 属性名:start|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: MetadataOutput
方法名 or 属性名:stop|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: MetadataOutput
方法名 or 属性名:stop|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: MetadataOutput
方法名 or 属性名:on_metadataObjectsAvailable|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: MetadataOutput
方法名 or 属性名:on_error|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: MetadataOutputErrorCode|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: MetadataOutputErrorCode
方法名 or 属性名:ERROR_UNKNOWN|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: MetadataOutputErrorCode
方法名 or 属性名:ERROR_INSUFFICIENT_RESOURCES|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: MetadataOutputError|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: MetadataOutputError
方法名 or 属性名:code|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: PixelMapFormat
方法名 or 属性名:RGB_888|@ohos.multimedia.image.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: PixelMapFormat
方法名 or 属性名:ALPHA_8|@ohos.multimedia.image.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: PixelMapFormat
方法名 or 属性名:RGBA_F16|@ohos.multimedia.image.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: PixelMapFormat
方法名 or 属性名:NV21|@ohos.multimedia.image.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: PixelMapFormat
方法名 or 属性名:NV12|@ohos.multimedia.image.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: PropertyKey
方法名 or 属性名:DATE_TIME_ORIGINAL|@ohos.multimedia.image.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: PropertyKey
方法名 or 属性名:EXPOSURE_TIME|@ohos.multimedia.image.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: PropertyKey
方法名 or 属性名:SCENE_TYPE|@ohos.multimedia.image.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: PropertyKey
方法名 or 属性名:ISO_SPEED_RATINGS|@ohos.multimedia.image.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: PropertyKey
方法名 or 属性名:F_NUMBER|@ohos.multimedia.image.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: ImageInfo
方法名 or 属性名:density|@ohos.multimedia.image.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: PackingOption
方法名 or 属性名:bufferSize|@ohos.multimedia.image.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: DecodingOptions
方法名 or 属性名:fitDensity|@ohos.multimedia.image.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: ImageCreator|@ohos.multimedia.image.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: ImageCreator
方法名 or 属性名:capacity|@ohos.multimedia.image.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: ImageCreator
方法名 or 属性名:format|@ohos.multimedia.image.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: ImageCreator
方法名 or 属性名:dequeueImage|@ohos.multimedia.image.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: ImageCreator
方法名 or 属性名:dequeueImage|@ohos.multimedia.image.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: ImageCreator
方法名 or 属性名:queueImage|@ohos.multimedia.image.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: ImageCreator
方法名 or 属性名:queueImage|@ohos.multimedia.image.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: ImageCreator
方法名 or 属性名:on_imageRelease|@ohos.multimedia.image.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: ImageCreator
方法名 or 属性名:release|@ohos.multimedia.image.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: ImageCreator
方法名 or 属性名:release|@ohos.multimedia.image.d.ts| +|新增|NA|方法名 or 属性名:audioSourceType
函数:audioSourceType?: AudioSourceType;|@ohos.multimedia.media.d.ts| +|删除|模块名: ohos.multimedia.audio
类名: FocusType|NA|@ohos.multimedia.audio.d.ts| +|删除|模块名: ohos.multimedia.audio
类名: FocusType
方法名 or 属性名:FOCUS_TYPE_RECORDING|NA|@ohos.multimedia.audio.d.ts| +|删除|模块名:ohos.multimedia.audio
类名:AudioManager
方法名 or 属性名:requestIndependentInterrupt|NA|@ohos.multimedia.audio.d.ts| +|删除|模块名:ohos.multimedia.audio
类名:AudioManager
方法名 or 属性名:requestIndependentInterrupt|NA|@ohos.multimedia.audio.d.ts| +|删除|模块名:ohos.multimedia.audio
类名:AudioManager
方法名 or 属性名:abandonIndependentInterrupt|NA|@ohos.multimedia.audio.d.ts| +|删除|模块名:ohos.multimedia.audio
类名:AudioManager
方法名 or 属性名:abandonIndependentInterrupt|NA|@ohos.multimedia.audio.d.ts| +|删除|模块名:ohos.multimedia.audio
类名:AudioManager
方法名 or 属性名:on_independentInterrupt|NA|@ohos.multimedia.audio.d.ts| +|删除|模块名:ohos.multimedia.audio
类名:AudioManager
方法名 or 属性名:off_independentInterrupt|NA|@ohos.multimedia.audio.d.ts| +|删除|模块名:ohos.multimedia.audio
类名:AudioRenderer
方法名 or 属性名:on_interrupt|NA|@ohos.multimedia.audio.d.ts| +|删除|模块名:ohos.multimedia.camera
类名:CameraManager
方法名 or 属性名:getCameras|NA|@ohos.multimedia.camera.d.ts| +|删除|模块名:ohos.multimedia.camera
类名:CameraManager
方法名 or 属性名:getCameras|NA|@ohos.multimedia.camera.d.ts| +|删除|模块名: ohos.multimedia.camera
类名: Camera|NA|@ohos.multimedia.camera.d.ts| +|删除|模块名: ohos.multimedia.camera
类名: Camera
方法名 or 属性名:cameraId|NA|@ohos.multimedia.camera.d.ts| +|删除|模块名: ohos.multimedia.camera
类名: Camera
方法名 or 属性名:cameraPosition|NA|@ohos.multimedia.camera.d.ts| +|删除|模块名: ohos.multimedia.camera
类名: Camera
方法名 or 属性名:cameraType|NA|@ohos.multimedia.camera.d.ts| +|删除|模块名: ohos.multimedia.camera
类名: Camera
方法名 or 属性名:connectionType|NA|@ohos.multimedia.camera.d.ts| +|删除|模块名:ohos.multimedia.camera
类名:CameraInput
方法名 or 属性名:getCameraId|NA|@ohos.multimedia.camera.d.ts| +|删除|模块名:ohos.multimedia.camera
类名:CameraInput
方法名 or 属性名:getCameraId|NA|@ohos.multimedia.camera.d.ts| +|删除|模块名:ohos.multimedia.camera
类名:CameraInput
方法名 or 属性名:hasFlash|NA|@ohos.multimedia.camera.d.ts| +|删除|模块名:ohos.multimedia.camera
类名:CameraInput
方法名 or 属性名:hasFlash|NA|@ohos.multimedia.camera.d.ts| +|删除|模块名:ohos.multimedia.camera
类名:CameraInput
方法名 or 属性名:isFlashModeSupported|NA|@ohos.multimedia.camera.d.ts| +|删除|模块名:ohos.multimedia.camera
类名:CameraInput
方法名 or 属性名:isFlashModeSupported|NA|@ohos.multimedia.camera.d.ts| +|删除|模块名:ohos.multimedia.camera
类名:CameraInput
方法名 or 属性名:getFlashMode|NA|@ohos.multimedia.camera.d.ts| +|删除|模块名:ohos.multimedia.camera
类名:CameraInput
方法名 or 属性名:getFlashMode|NA|@ohos.multimedia.camera.d.ts| +|删除|模块名:ohos.multimedia.camera
类名:CameraInput
方法名 or 属性名:setFlashMode|NA|@ohos.multimedia.camera.d.ts| +|删除|模块名:ohos.multimedia.camera
类名:CameraInput
方法名 or 属性名:setFlashMode|NA|@ohos.multimedia.camera.d.ts| +|删除|模块名:ohos.multimedia.camera
类名:CameraInput
方法名 or 属性名:isFocusModeSupported|NA|@ohos.multimedia.camera.d.ts| +|删除|模块名:ohos.multimedia.camera
类名:CameraInput
方法名 or 属性名:isFocusModeSupported|NA|@ohos.multimedia.camera.d.ts| +|删除|模块名:ohos.multimedia.camera
类名:CameraInput
方法名 or 属性名:getFocusMode|NA|@ohos.multimedia.camera.d.ts| +|删除|模块名:ohos.multimedia.camera
类名:CameraInput
方法名 or 属性名:getFocusMode|NA|@ohos.multimedia.camera.d.ts| +|删除|模块名:ohos.multimedia.camera
类名:CameraInput
方法名 or 属性名:setFocusMode|NA|@ohos.multimedia.camera.d.ts| +|删除|模块名:ohos.multimedia.camera
类名:CameraInput
方法名 or 属性名:setFocusMode|NA|@ohos.multimedia.camera.d.ts| +|删除|模块名:ohos.multimedia.camera
类名:CameraInput
方法名 or 属性名:getZoomRatioRange|NA|@ohos.multimedia.camera.d.ts| +|删除|模块名:ohos.multimedia.camera
类名:CameraInput
方法名 or 属性名:getZoomRatioRange|NA|@ohos.multimedia.camera.d.ts| +|删除|模块名:ohos.multimedia.camera
类名:CameraInput
方法名 or 属性名:getZoomRatio|NA|@ohos.multimedia.camera.d.ts| +|删除|模块名:ohos.multimedia.camera
类名:CameraInput
方法名 or 属性名:getZoomRatio|NA|@ohos.multimedia.camera.d.ts| +|删除|模块名:ohos.multimedia.camera
类名:CameraInput
方法名 or 属性名:setZoomRatio|NA|@ohos.multimedia.camera.d.ts| +|删除|模块名:ohos.multimedia.camera
类名:CameraInput
方法名 or 属性名:setZoomRatio|NA|@ohos.multimedia.camera.d.ts| +|删除|模块名:ohos.multimedia.camera
类名:CameraInput
方法名 or 属性名:on_focusStateChange|NA|@ohos.multimedia.camera.d.ts| +|删除|模块名: ohos.multimedia.camera
类名: camera
方法名 or 属性名:createCaptureSession|NA|@ohos.multimedia.camera.d.ts| +|删除|模块名: ohos.multimedia.camera
类名: camera
方法名 or 属性名:createCaptureSession|NA|@ohos.multimedia.camera.d.ts| +|删除|模块名: ohos.multimedia.camera
类名: camera
方法名 or 属性名:createPreviewOutput|NA|@ohos.multimedia.camera.d.ts| +|删除|模块名: ohos.multimedia.camera
类名: camera
方法名 or 属性名:createPreviewOutput|NA|@ohos.multimedia.camera.d.ts| +|删除|模块名:ohos.multimedia.camera
类名:PreviewOutput
方法名 or 属性名:release|NA|@ohos.multimedia.camera.d.ts| +|删除|模块名:ohos.multimedia.camera
类名:PreviewOutput
方法名 or 属性名:release|NA|@ohos.multimedia.camera.d.ts| +|删除|模块名: ohos.multimedia.camera
类名: camera
方法名 or 属性名:createPhotoOutput|NA|@ohos.multimedia.camera.d.ts| +|删除|模块名: ohos.multimedia.camera
类名: camera
方法名 or 属性名:createPhotoOutput|NA|@ohos.multimedia.camera.d.ts| +|删除|模块名:ohos.multimedia.camera
类名:PhotoOutput
方法名 or 属性名:release|NA|@ohos.multimedia.camera.d.ts| +|删除|模块名:ohos.multimedia.camera
类名:PhotoOutput
方法名 or 属性名:release|NA|@ohos.multimedia.camera.d.ts| +|删除|模块名: ohos.multimedia.camera
类名: camera
方法名 or 属性名:createVideoOutput|NA|@ohos.multimedia.camera.d.ts| +|删除|模块名: ohos.multimedia.camera
类名: camera
方法名 or 属性名:createVideoOutput|NA|@ohos.multimedia.camera.d.ts| +|删除|模块名: ohos.multimedia.camera
类名: VideoOutput
方法名 or 属性名:release|NA|@ohos.multimedia.camera.d.ts| +|删除|模块名: ohos.multimedia.camera
类名: VideoOutput
方法名 or 属性名:release|NA|@ohos.multimedia.camera.d.ts| +|删除|模块名: ohos.multimedia.media
类名: VideoPlayer
方法名 or 属性名:selectBitrate|NA|@ohos.multimedia.media.d.ts| +|删除|模块名: ohos.multimedia.media
类名: VideoPlayer
方法名 or 属性名:selectBitrate|NA|@ohos.multimedia.media.d.ts| +|删除|模块名: ohos.multimedia.media
类名: VideoPlayer
方法名 or 属性名:on_availableBitratesCollect|NA|@ohos.multimedia.media.d.ts| |访问级别有变化|方法名 or 属性名:createVideoRecorder
访问级别:公开API|方法名 or 属性名:createVideoRecorder
访问级别:系统API|@ohos.multimedia.media.d.ts| |访问级别有变化|方法名 or 属性名:createVideoRecorder
访问级别:公开API|方法名 or 属性名:createVideoRecorder
访问级别:系统API|@ohos.multimedia.media.d.ts| |访问级别有变化|类名:VideoRecorder
访问级别:公开API|类名:VideoRecorder
访问级别:系统API|@ohos.multimedia.media.d.ts| @@ -660,186 +551,29 @@ |废弃版本有变化|方法名 or 属性名:streamUsage
废弃版本:N/A|方法名 or 属性名:streamUsage
废弃版本:9|@ohos.multimedia.audio.d.ts| |废弃版本有变化|方法名 or 属性名:contentType
废弃版本:N/A|方法名 or 属性名:contentType
废弃版本:9|@ohos.multimedia.audio.d.ts| |废弃版本有变化|方法名 or 属性名:pauseWhenDucked
废弃版本:N/A|方法名 or 属性名:pauseWhenDucked
废弃版本:9|@ohos.multimedia.audio.d.ts| -|废弃版本有变化|类名:mediaLibrary
废弃版本:9|类名:mediaLibrary
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:getMediaLibrary
废弃版本:9|方法名 or 属性名:getMediaLibrary
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:getMediaLibrary
废弃版本:9|方法名 or 属性名:getMediaLibrary
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|类名:MediaType
废弃版本:9|类名:MediaType
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:FILE
废弃版本:9|方法名 or 属性名:FILE
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:IMAGE
废弃版本:9|方法名 or 属性名:IMAGE
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:VIDEO
废弃版本:9|方法名 or 属性名:VIDEO
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:AUDIO
废弃版本:9|方法名 or 属性名:AUDIO
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|类名:FileAsset
废弃版本:9|类名:FileAsset
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:id
废弃版本:9|方法名 or 属性名:id
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:uri
废弃版本:9|方法名 or 属性名:uri
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:mimeType
废弃版本:9|方法名 or 属性名:mimeType
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:mediaType
废弃版本:9|方法名 or 属性名:mediaType
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:displayName
废弃版本:9|方法名 or 属性名:displayName
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:title
废弃版本:9|方法名 or 属性名:title
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:relativePath
废弃版本:9|方法名 or 属性名:relativePath
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:parent
废弃版本:9|方法名 or 属性名:parent
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:size
废弃版本:9|方法名 or 属性名:size
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:dateAdded
废弃版本:9|方法名 or 属性名:dateAdded
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:dateModified
废弃版本:9|方法名 or 属性名:dateModified
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:dateTaken
废弃版本:9|方法名 or 属性名:dateTaken
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:artist
废弃版本:9|方法名 or 属性名:artist
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:audioAlbum
废弃版本:9|方法名 or 属性名:audioAlbum
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:width
废弃版本:9|方法名 or 属性名:width
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:height
废弃版本:9|方法名 or 属性名:height
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:orientation
废弃版本:9|方法名 or 属性名:orientation
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:duration
废弃版本:9|方法名 or 属性名:duration
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:albumId
废弃版本:9|方法名 or 属性名:albumId
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:albumUri
废弃版本:9|方法名 or 属性名:albumUri
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:albumName
废弃版本:9|方法名 or 属性名:albumName
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:isDirectory
废弃版本:9|方法名 or 属性名:isDirectory
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:isDirectory
废弃版本:9|方法名 or 属性名:isDirectory
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:commitModify
废弃版本:9|方法名 or 属性名:commitModify
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:commitModify
废弃版本:9|方法名 or 属性名:commitModify
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:open
废弃版本:9|方法名 or 属性名:open
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:open
废弃版本:9|方法名 or 属性名:open
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:close
废弃版本:9|方法名 or 属性名:close
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:close
废弃版本:9|方法名 or 属性名:close
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:getThumbnail
废弃版本:9|方法名 or 属性名:getThumbnail
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:getThumbnail
废弃版本:9|方法名 or 属性名:getThumbnail
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:getThumbnail
废弃版本:9|方法名 or 属性名:getThumbnail
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:favorite
废弃版本:9|方法名 or 属性名:favorite
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:favorite
废弃版本:9|方法名 or 属性名:favorite
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:isFavorite
废弃版本:9|方法名 or 属性名:isFavorite
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:isFavorite
废弃版本:9|方法名 or 属性名:isFavorite
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:trash
废弃版本:9|方法名 or 属性名:trash
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:trash
废弃版本:9|方法名 or 属性名:trash
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:isTrash
废弃版本:9|方法名 or 属性名:isTrash
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:isTrash
废弃版本:9|方法名 or 属性名:isTrash
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|类名:FileKey
废弃版本:9|类名:FileKey
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:ID
废弃版本:9|方法名 or 属性名:ID
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:RELATIVE_PATH
废弃版本:9|方法名 or 属性名:RELATIVE_PATH
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:DISPLAY_NAME
废弃版本:9|方法名 or 属性名:DISPLAY_NAME
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:PARENT
废弃版本:9|方法名 or 属性名:PARENT
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:MIME_TYPE
废弃版本:9|方法名 or 属性名:MIME_TYPE
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:MEDIA_TYPE
废弃版本:9|方法名 or 属性名:MEDIA_TYPE
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:SIZE
废弃版本:9|方法名 or 属性名:SIZE
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:DATE_ADDED
废弃版本:9|方法名 or 属性名:DATE_ADDED
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:DATE_MODIFIED
废弃版本:9|方法名 or 属性名:DATE_MODIFIED
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:DATE_TAKEN
废弃版本:9|方法名 or 属性名:DATE_TAKEN
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:TITLE
废弃版本:9|方法名 or 属性名:TITLE
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:ARTIST
废弃版本:9|方法名 or 属性名:ARTIST
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:AUDIOALBUM
废弃版本:9|方法名 or 属性名:AUDIOALBUM
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:DURATION
废弃版本:9|方法名 or 属性名:DURATION
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:WIDTH
废弃版本:9|方法名 or 属性名:WIDTH
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:HEIGHT
废弃版本:9|方法名 or 属性名:HEIGHT
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:ORIENTATION
废弃版本:9|方法名 or 属性名:ORIENTATION
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:ALBUM_ID
废弃版本:9|方法名 or 属性名:ALBUM_ID
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:ALBUM_NAME
废弃版本:9|方法名 or 属性名:ALBUM_NAME
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|类名:MediaFetchOptions
废弃版本:9|类名:MediaFetchOptions
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:selections
废弃版本:9|方法名 or 属性名:selections
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:selectionArgs
废弃版本:9|方法名 or 属性名:selectionArgs
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:order
废弃版本:9|方法名 or 属性名:order
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:uri
废弃版本:9|方法名 or 属性名:uri
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:networkId
废弃版本:9|方法名 or 属性名:networkId
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:extendArgs
废弃版本:9|方法名 or 属性名:extendArgs
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|类名:FetchFileResult
废弃版本:9|类名:FetchFileResult
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:getCount
废弃版本:9|方法名 or 属性名:getCount
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:isAfterLast
废弃版本:9|方法名 or 属性名:isAfterLast
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:close
废弃版本:9|方法名 or 属性名:close
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:getFirstObject
废弃版本:9|方法名 or 属性名:getFirstObject
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:getFirstObject
废弃版本:9|方法名 or 属性名:getFirstObject
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:getNextObject
废弃版本:9|方法名 or 属性名:getNextObject
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:getNextObject
废弃版本:9|方法名 or 属性名:getNextObject
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:getLastObject
废弃版本:9|方法名 or 属性名:getLastObject
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:getLastObject
废弃版本:9|方法名 or 属性名:getLastObject
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:getPositionObject
废弃版本:9|方法名 or 属性名:getPositionObject
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:getPositionObject
废弃版本:9|方法名 or 属性名:getPositionObject
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:getAllObject
废弃版本:9|方法名 or 属性名:getAllObject
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:getAllObject
废弃版本:9|方法名 or 属性名:getAllObject
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|类名:Album
废弃版本:9|类名:Album
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:albumId
废弃版本:9|方法名 or 属性名:albumId
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:albumName
废弃版本:9|方法名 or 属性名:albumName
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:albumUri
废弃版本:9|方法名 or 属性名:albumUri
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:dateModified
废弃版本:9|方法名 or 属性名:dateModified
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:count
废弃版本:9|方法名 or 属性名:count
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:relativePath
废弃版本:9|方法名 or 属性名:relativePath
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:coverUri
废弃版本:9|方法名 or 属性名:coverUri
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:commitModify
废弃版本:9|方法名 or 属性名:commitModify
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:commitModify
废弃版本:9|方法名 or 属性名:commitModify
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:getFileAssets
废弃版本:9|方法名 or 属性名:getFileAssets
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:getFileAssets
废弃版本:9|方法名 or 属性名:getFileAssets
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:getFileAssets
废弃版本:9|方法名 or 属性名:getFileAssets
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|类名:DirectoryType
废弃版本:9|类名:DirectoryType
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:DIR_CAMERA
废弃版本:9|方法名 or 属性名:DIR_CAMERA
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:DIR_VIDEO
废弃版本:9|方法名 or 属性名:DIR_VIDEO
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:DIR_IMAGE
废弃版本:9|方法名 or 属性名:DIR_IMAGE
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:DIR_AUDIO
废弃版本:9|方法名 or 属性名:DIR_AUDIO
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:DIR_DOCUMENTS
废弃版本:9|方法名 or 属性名:DIR_DOCUMENTS
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:DIR_DOWNLOAD
废弃版本:9|方法名 or 属性名:DIR_DOWNLOAD
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|类名:MediaLibrary
废弃版本:9|类名:MediaLibrary
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:getPublicDirectory
废弃版本:9|方法名 or 属性名:getPublicDirectory
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:getPublicDirectory
废弃版本:9|方法名 or 属性名:getPublicDirectory
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:getFileAssets
废弃版本:9|方法名 or 属性名:getFileAssets
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:getFileAssets
废弃版本:9|方法名 or 属性名:getFileAssets
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:on_deviceChange
废弃版本:9|方法名 or 属性名:on_deviceChange
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:on_albumChange
废弃版本:9|方法名 or 属性名:on_albumChange
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:on_imageChange
废弃版本:9|方法名 or 属性名:on_imageChange
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:on_audioChange
废弃版本:9|方法名 or 属性名:on_audioChange
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:on_videoChange
废弃版本:9|方法名 or 属性名:on_videoChange
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:on_fileChange
废弃版本:9|方法名 or 属性名:on_fileChange
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:on_remoteFileChange
废弃版本:9|方法名 or 属性名:on_remoteFileChange
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:off_deviceChange
废弃版本:9|方法名 or 属性名:off_deviceChange
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:off_albumChange
废弃版本:9|方法名 or 属性名:off_albumChange
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:off_imageChange
废弃版本:9|方法名 or 属性名:off_imageChange
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:off_audioChange
废弃版本:9|方法名 or 属性名:off_audioChange
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:off_videoChange
废弃版本:9|方法名 or 属性名:off_videoChange
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:off_fileChange
废弃版本:9|方法名 or 属性名:off_fileChange
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:off_remoteFileChange
废弃版本:9|方法名 or 属性名:off_remoteFileChange
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:createAsset
废弃版本:9|方法名 or 属性名:createAsset
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:createAsset
废弃版本:9|方法名 or 属性名:createAsset
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:deleteAsset
废弃版本:9|方法名 or 属性名:deleteAsset
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:deleteAsset
废弃版本:9|方法名 or 属性名:deleteAsset
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:getAlbums
废弃版本:9|方法名 or 属性名:getAlbums
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:getAlbums
废弃版本:9|方法名 or 属性名:getAlbums
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:getActivePeers
废弃版本:9|方法名 or 属性名:getActivePeers
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:getActivePeers
废弃版本:9|方法名 or 属性名:getActivePeers
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:getAllPeers
废弃版本:9|方法名 or 属性名:getAllPeers
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:getAllPeers
废弃版本:9|方法名 or 属性名:getAllPeers
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:release
废弃版本:9|方法名 or 属性名:release
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:release
废弃版本:9|方法名 or 属性名:release
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|类名:Size
废弃版本:9|类名:Size
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:width
废弃版本:9|方法名 or 属性名:width
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:height
废弃版本:9|方法名 or 属性名:height
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|类名:PeerInfo
废弃版本:9|类名:PeerInfo
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:deviceName
废弃版本:9|方法名 or 属性名:deviceName
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:networkId
废弃版本:9|方法名 or 属性名:networkId
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:deviceType
废弃版本:9|方法名 or 属性名:deviceType
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:isOnline
废弃版本:9|方法名 or 属性名:isOnline
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|类名:DeviceType
废弃版本:9|类名:DeviceType
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:TYPE_UNKNOWN
废弃版本:9|方法名 or 属性名:TYPE_UNKNOWN
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:TYPE_LAPTOP
废弃版本:9|方法名 or 属性名:TYPE_LAPTOP
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:TYPE_PHONE
废弃版本:9|方法名 or 属性名:TYPE_PHONE
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:TYPE_TABLET
废弃版本:9|方法名 or 属性名:TYPE_TABLET
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:TYPE_WATCH
废弃版本:9|方法名 or 属性名:TYPE_WATCH
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:TYPE_CAR
废弃版本:9|方法名 or 属性名:TYPE_CAR
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|废弃版本有变化|方法名 or 属性名:TYPE_TV
废弃版本:9|方法名 or 属性名:TYPE_TV
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|新增(错误码)||方法名 or 属性名:on_deviceChange
错误码内容:401,6800101|@ohos.multimedia.audio.d.ts| -|新增(错误码)||方法名 or 属性名:off_deviceChange
错误码内容:401,6800101|@ohos.multimedia.audio.d.ts| -|新增(错误码)||方法名 or 属性名:on_audioRendererChange
错误码内容:401,6800101|@ohos.multimedia.audio.d.ts| -|新增(错误码)||方法名 or 属性名:on_audioCapturerChange
错误码内容:401,6800101|@ohos.multimedia.audio.d.ts| -|新增(错误码)||方法名 or 属性名:createVideoRecorder
错误码内容:5400101|@ohos.multimedia.media.d.ts| -|新增(错误码)||方法名 or 属性名:createVideoRecorder
错误码内容:5400101|@ohos.multimedia.media.d.ts| -|新增(错误码)||方法名 or 属性名:prepare
错误码内容:201,401,5400102,5400105|@ohos.multimedia.media.d.ts| -|新增(错误码)||方法名 or 属性名:prepare
错误码内容:201,401,5400102,5400105|@ohos.multimedia.media.d.ts| -|新增(错误码)||方法名 or 属性名:getInputSurface
错误码内容:5400102,5400103,5400105|@ohos.multimedia.media.d.ts| -|新增(错误码)||方法名 or 属性名:getInputSurface
错误码内容:5400102,5400103,5400105|@ohos.multimedia.media.d.ts| -|新增(错误码)||方法名 or 属性名:start
错误码内容:5400102,5400103,5400105|@ohos.multimedia.media.d.ts| -|新增(错误码)||方法名 or 属性名:start
错误码内容:5400102,5400103,5400105|@ohos.multimedia.media.d.ts| -|新增(错误码)||方法名 or 属性名:pause
错误码内容:5400102,5400103,5400105|@ohos.multimedia.media.d.ts| -|新增(错误码)||方法名 or 属性名:pause
错误码内容:5400102,5400103,5400105|@ohos.multimedia.media.d.ts| -|新增(错误码)||方法名 or 属性名:resume
错误码内容:5400102,5400103,5400105|@ohos.multimedia.media.d.ts| -|新增(错误码)||方法名 or 属性名:resume
错误码内容:5400102,5400103,5400105|@ohos.multimedia.media.d.ts| -|新增(错误码)||方法名 or 属性名:stop
错误码内容:5400102,5400103,5400105|@ohos.multimedia.media.d.ts| -|新增(错误码)||方法名 or 属性名:stop
错误码内容:5400102,5400103,5400105|@ohos.multimedia.media.d.ts| -|新增(错误码)||方法名 or 属性名:release
错误码内容:5400105|@ohos.multimedia.media.d.ts| -|新增(错误码)||方法名 or 属性名:release
错误码内容:5400105|@ohos.multimedia.media.d.ts| -|新增(错误码)||方法名 or 属性名:reset
错误码内容:5400103,5400105|@ohos.multimedia.media.d.ts| -|新增(错误码)||方法名 or 属性名:reset
错误码内容:5400103,5400105|@ohos.multimedia.media.d.ts| -|新增(错误码)||方法名 or 属性名:on_error
错误码内容:5400103,5400105|@ohos.multimedia.media.d.ts| +|新增(错误码)|NA|方法名 or 属性名:on_deviceChange
错误码内容:401,6800101|@ohos.multimedia.audio.d.ts| +|新增(错误码)|NA|方法名 or 属性名:off_deviceChange
错误码内容:401,6800101|@ohos.multimedia.audio.d.ts| +|新增(错误码)|NA|方法名 or 属性名:on_audioRendererChange
错误码内容:401,6800101|@ohos.multimedia.audio.d.ts| +|新增(错误码)|NA|方法名 or 属性名:on_audioCapturerChange
错误码内容:401,6800101|@ohos.multimedia.audio.d.ts| +|新增(错误码)|NA|方法名 or 属性名:createVideoRecorder
错误码内容:5400101|@ohos.multimedia.media.d.ts| +|新增(错误码)|NA|方法名 or 属性名:createVideoRecorder
错误码内容:5400101|@ohos.multimedia.media.d.ts| +|新增(错误码)|NA|方法名 or 属性名:prepare
错误码内容:201,401,5400102,5400105|@ohos.multimedia.media.d.ts| +|新增(错误码)|NA|方法名 or 属性名:prepare
错误码内容:201,401,5400102,5400105|@ohos.multimedia.media.d.ts| +|新增(错误码)|NA|方法名 or 属性名:getInputSurface
错误码内容:5400102,5400103,5400105|@ohos.multimedia.media.d.ts| +|新增(错误码)|NA|方法名 or 属性名:getInputSurface
错误码内容:5400102,5400103,5400105|@ohos.multimedia.media.d.ts| +|新增(错误码)|NA|方法名 or 属性名:start
错误码内容:5400102,5400103,5400105|@ohos.multimedia.media.d.ts| +|新增(错误码)|NA|方法名 or 属性名:start
错误码内容:5400102,5400103,5400105|@ohos.multimedia.media.d.ts| +|新增(错误码)|NA|方法名 or 属性名:pause
错误码内容:5400102,5400103,5400105|@ohos.multimedia.media.d.ts| +|新增(错误码)|NA|方法名 or 属性名:pause
错误码内容:5400102,5400103,5400105|@ohos.multimedia.media.d.ts| +|新增(错误码)|NA|方法名 or 属性名:resume
错误码内容:5400102,5400103,5400105|@ohos.multimedia.media.d.ts| +|新增(错误码)|NA|方法名 or 属性名:resume
错误码内容:5400102,5400103,5400105|@ohos.multimedia.media.d.ts| +|新增(错误码)|NA|方法名 or 属性名:stop
错误码内容:5400102,5400103,5400105|@ohos.multimedia.media.d.ts| +|新增(错误码)|NA|方法名 or 属性名:stop
错误码内容:5400102,5400103,5400105|@ohos.multimedia.media.d.ts| +|新增(错误码)|NA|方法名 or 属性名:release
错误码内容:5400105|@ohos.multimedia.media.d.ts| +|新增(错误码)|NA|方法名 or 属性名:release
错误码内容:5400105|@ohos.multimedia.media.d.ts| +|新增(错误码)|NA|方法名 or 属性名:reset
错误码内容:5400103,5400105|@ohos.multimedia.media.d.ts| +|新增(错误码)|NA|方法名 or 属性名:reset
错误码内容:5400103,5400105|@ohos.multimedia.media.d.ts| +|新增(错误码)|NA|方法名 or 属性名:on_error
错误码内容:5400103,5400105|@ohos.multimedia.media.d.ts| |访问级别有变化|方法名 or 属性名:createVideoRecorder
访问级别:公开API|方法名 or 属性名:createVideoRecorder
访问级别:系统API|@ohos.multimedia.media.d.ts| |访问级别有变化|方法名 or 属性名:createVideoRecorder
访问级别:公开API|方法名 or 属性名:createVideoRecorder
访问级别:系统API|@ohos.multimedia.media.d.ts| |访问级别有变化|类名:VideoRecorder
访问级别:公开API|类名:VideoRecorder
访问级别:系统API|@ohos.multimedia.media.d.ts| diff --git a/zh-cn/release-notes/api-diff/monthly-202210/js-apidiff-notification.md b/zh-cn/release-notes/api-diff/monthly-202210/js-apidiff-notification.md index 73aceb883093cacaf20b0532cd17b24e4d6b4ff9..120a4a58a1b5cf5cdace65408071c3236c38b1c8 100644 --- a/zh-cn/release-notes/api-diff/monthly-202210/js-apidiff-notification.md +++ b/zh-cn/release-notes/api-diff/monthly-202210/js-apidiff-notification.md @@ -1,378 +1,385 @@ -| 操作 | 新版本 | 旧版本 | d.ts文件 | +| 操作 | 旧版本 | 新版本 | d.ts文件 | | ---- | ------ | ------ | -------- | -|新增||模块名: ohos.commonEventManager
类名: commonEventManager|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: commonEventManager
方法名 or 属性名: publish|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: commonEventManager
方法名 or 属性名: publish|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: commonEventManager
方法名 or 属性名: publishAsUser|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: commonEventManager
方法名 or 属性名: publishAsUser|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: commonEventManager
方法名 or 属性名: createSubscriber|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: commonEventManager
方法名 or 属性名: createSubscriber|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: commonEventManager
方法名 or 属性名: subscribe|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: commonEventManager
方法名 or 属性名: unsubscribe|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BOOT_COMPLETED|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_LOCKED_BOOT_COMPLETED|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_SHUTDOWN|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BATTERY_CHANGED|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BATTERY_LOW|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BATTERY_OKAY|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_POWER_CONNECTED|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_POWER_DISCONNECTED|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_SCREEN_OFF|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_SCREEN_ON|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_THERMAL_LEVEL_CHANGED|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_USER_PRESENT|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_TIME_TICK|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_TIME_CHANGED|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_DATE_CHANGED|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_TIMEZONE_CHANGED|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_CLOSE_SYSTEM_DIALOGS|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_PACKAGE_ADDED|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_PACKAGE_REPLACED|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_MY_PACKAGE_REPLACED|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_PACKAGE_REMOVED|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BUNDLE_REMOVED|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_PACKAGE_FULLY_REMOVED|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_PACKAGE_CHANGED|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_PACKAGE_RESTARTED|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_PACKAGE_DATA_CLEARED|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_PACKAGE_CACHE_CLEARED|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_PACKAGES_SUSPENDED|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_PACKAGES_UNSUSPENDED|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_MY_PACKAGE_SUSPENDED|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_MY_PACKAGE_UNSUSPENDED|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_UID_REMOVED|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_PACKAGE_FIRST_LAUNCH|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_PACKAGE_NEEDS_VERIFICATION|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_PACKAGE_VERIFIED|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_EXTERNAL_APPLICATIONS_AVAILABLE|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_EXTERNAL_APPLICATIONS_UNAVAILABLE|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_CONFIGURATION_CHANGED|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_LOCALE_CHANGED|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_MANAGE_PACKAGE_STORAGE|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_DRIVE_MODE|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_HOME_MODE|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_OFFICE_MODE|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_USER_STARTED|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_USER_BACKGROUND|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_USER_FOREGROUND|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_USER_SWITCHED|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_USER_STARTING|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_USER_UNLOCKED|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_USER_STOPPING|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_USER_STOPPED|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_DISTRIBUTED_ACCOUNT_LOGIN|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_DISTRIBUTED_ACCOUNT_LOGOUT|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_DISTRIBUTED_ACCOUNT_TOKEN_INVALID|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_DISTRIBUTED_ACCOUNT_LOGOFF|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_WIFI_POWER_STATE|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_WIFI_SCAN_FINISHED|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_WIFI_RSSI_VALUE|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_WIFI_CONN_STATE|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_WIFI_HOTSPOT_STATE|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_WIFI_AP_STA_JOIN|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_WIFI_AP_STA_LEAVE|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_WIFI_MPLINK_STATE_CHANGE|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_WIFI_P2P_CONN_STATE|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_WIFI_P2P_STATE_CHANGED|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_WIFI_P2P_PEERS_STATE_CHANGED|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_WIFI_P2P_PEERS_DISCOVERY_STATE_CHANGED|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_WIFI_P2P_CURRENT_DEVICE_STATE_CHANGED|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_WIFI_P2P_GROUP_STATE_CHANGED|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_HANDSFREE_AG_CONNECT_STATE_UPDATE|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_HANDSFREE_AG_CURRENT_DEVICE_UPDATE|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_HANDSFREE_AG_AUDIO_STATE_UPDATE|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_A2DPSOURCE_CONNECT_STATE_UPDATE|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_A2DPSOURCE_CURRENT_DEVICE_UPDATE|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_A2DPSOURCE_PLAYING_STATE_UPDATE|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_A2DPSOURCE_AVRCP_CONNECT_STATE_UPDATE|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_A2DPSOURCE_CODEC_VALUE_UPDATE|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_DISCOVERED|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_CLASS_VALUE_UPDATE|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_ACL_CONNECTED|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_ACL_DISCONNECTED|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_NAME_UPDATE|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_PAIR_STATE|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_BATTERY_VALUE_UPDATE|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_SDP_RESULT|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_UUID_VALUE|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_PAIRING_REQ|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_PAIRING_CANCEL|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_CONNECT_REQ|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_CONNECT_REPLY|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_CONNECT_CANCEL|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_HANDSFREEUNIT_CONNECT_STATE_UPDATE|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_HANDSFREEUNIT_AUDIO_STATE_UPDATE|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_HANDSFREEUNIT_AG_COMMON_EVENT|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_HANDSFREEUNIT_AG_CALL_STATE_UPDATE|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_HOST_STATE_UPDATE|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_HOST_REQ_DISCOVERABLE|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_HOST_REQ_ENABLE|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_HOST_REQ_DISABLE|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_HOST_SCAN_MODE_UPDATE|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_HOST_DISCOVERY_STARTED|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_HOST_DISCOVERY_FINISHED|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_HOST_NAME_UPDATE|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_A2DPSINK_CONNECT_STATE_UPDATE|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_A2DPSINK_PLAYING_STATE_UPDATE|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_A2DPSINK_AUDIO_STATE_UPDATE|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_NFC_ACTION_ADAPTER_STATE_CHANGED|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_NFC_ACTION_RF_FIELD_ON_DETECTED|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_NFC_ACTION_RF_FIELD_OFF_DETECTED|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_DISCHARGING|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_CHARGING|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_DEVICE_IDLE_MODE_CHANGED|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_POWER_SAVE_MODE_CHANGED|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_USER_ADDED|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_USER_REMOVED|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_ABILITY_ADDED|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_ABILITY_REMOVED|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_ABILITY_UPDATED|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_LOCATION_MODE_STATE_CHANGED|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_IVI_SLEEP|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_IVI_PAUSE|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_IVI_STANDBY|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_IVI_LASTMODE_SAVE|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_IVI_VOLTAGE_ABNORMAL|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_IVI_HIGH_TEMPERATURE|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_IVI_EXTREME_TEMPERATURE|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_IVI_TEMPERATURE_ABNORMAL|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_IVI_VOLTAGE_RECOVERY|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_IVI_TEMPERATURE_RECOVERY|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_IVI_ACTIVE|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_USB_STATE|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_USB_PORT_CHANGED|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_USB_DEVICE_ATTACHED|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_USB_DEVICE_DETACHED|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_USB_ACCESSORY_ATTACHED|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_USB_ACCESSORY_DETACHED|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_DISK_REMOVED|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_DISK_UNMOUNTED|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_DISK_MOUNTED|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_DISK_BAD_REMOVAL|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_DISK_UNMOUNTABLE|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_DISK_EJECT|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_VOLUME_REMOVED|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_VOLUME_UNMOUNTED|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_VOLUME_MOUNTED|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_VOLUME_BAD_REMOVAL|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_VOLUME_EJECT|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_VISIBLE_ACCOUNTS_UPDATED|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_ACCOUNT_DELETED|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_FOUNDATION_READY|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_AIRPLANE_MODE_CHANGED|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_SPLIT_SCREEN|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_SLOT_CHANGE|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_SPN_INFO_CHANGED|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_QUICK_FIX_APPLY_RESULT|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: publish|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: publish|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: publish|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: publish|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: publishAsBundle|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: publishAsBundle|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: cancel|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: cancel|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: cancel|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: cancelAsBundle|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: cancelAsBundle|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: cancelAll|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: cancelAll|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: addSlot|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: addSlot|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: addSlot|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: addSlot|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: addSlots|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: addSlots|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: getSlot|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: getSlot|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: getSlots|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: getSlots|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: removeSlot|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: removeSlot|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: removeAllSlots|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: removeAllSlots|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: setNotificationEnable|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: setNotificationEnable|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: isNotificationEnabled|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: isNotificationEnabled|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: isNotificationEnabled|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: isNotificationEnabled|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: isNotificationEnabled|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: isNotificationEnabled|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: displayBadge|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: displayBadge|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: isBadgeDisplayed|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: isBadgeDisplayed|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: setSlotByBundle|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: setSlotByBundle|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: getSlotsByBundle|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: getSlotsByBundle|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: getSlotNumByBundle|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: getSlotNumByBundle|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: getAllActiveNotifications|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: getAllActiveNotifications|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: getActiveNotificationCount|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: getActiveNotificationCount|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: getActiveNotifications|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: getActiveNotifications|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: cancelGroup|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: cancelGroup|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: removeGroupByBundle|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: removeGroupByBundle|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: setDoNotDisturbDate|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: setDoNotDisturbDate|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: setDoNotDisturbDate|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: setDoNotDisturbDate|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: getDoNotDisturbDate|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: getDoNotDisturbDate|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: getDoNotDisturbDate|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: getDoNotDisturbDate|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: supportDoNotDisturbMode|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: supportDoNotDisturbMode|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: isSupportTemplate|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: isSupportTemplate|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: requestEnableNotification|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: requestEnableNotification|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: setDistributedEnable|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: setDistributedEnable|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: isDistributedEnabled|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: isDistributedEnabled|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: setDistributedEnableByBundle|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: setDistributedEnableByBundle|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: isDistributedEnabledByBundle|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: isDistributedEnabledByBundle|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: getDeviceRemindType|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: getDeviceRemindType|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: setNotificationEnableSlot|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: setNotificationEnableSlot|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: isNotificationSlotEnabled|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: isNotificationSlotEnabled|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: setSyncNotificationEnabledWithoutApp|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: setSyncNotificationEnabledWithoutApp|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: getSyncNotificationEnabledWithoutApp|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: getSyncNotificationEnabledWithoutApp|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: SlotType|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: SlotType
方法名 or 属性名: UNKNOWN_TYPE|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: SlotType
方法名 or 属性名: SOCIAL_COMMUNICATION|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: SlotType
方法名 or 属性名: SERVICE_INFORMATION|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: SlotType
方法名 or 属性名: CONTENT_INFORMATION|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: SlotType
方法名 or 属性名: OTHER_TYPES|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: ContentType|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: ContentType
方法名 or 属性名: NOTIFICATION_CONTENT_BASIC_TEXT|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: ContentType
方法名 or 属性名: NOTIFICATION_CONTENT_LONG_TEXT|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: ContentType
方法名 or 属性名: NOTIFICATION_CONTENT_PICTURE|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: ContentType
方法名 or 属性名: NOTIFICATION_CONTENT_CONVERSATION|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: ContentType
方法名 or 属性名: NOTIFICATION_CONTENT_MULTILINE|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: SlotLevel|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: SlotLevel
方法名 or 属性名: LEVEL_NONE|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: SlotLevel
方法名 or 属性名: LEVEL_MIN|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: SlotLevel
方法名 or 属性名: LEVEL_LOW|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: SlotLevel
方法名 or 属性名: LEVEL_DEFAULT|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: SlotLevel
方法名 or 属性名: LEVEL_HIGH|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: BundleOption|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: BundleOption
方法名 or 属性名: bundle|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: BundleOption
方法名 or 属性名: uid|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: NotificationKey|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: NotificationKey
方法名 or 属性名: id|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: NotificationKey
方法名 or 属性名: label|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: DoNotDisturbType|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: DoNotDisturbType
方法名 or 属性名: TYPE_NONE|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: DoNotDisturbType
方法名 or 属性名: TYPE_ONCE|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: DoNotDisturbType
方法名 or 属性名: TYPE_DAILY|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: DoNotDisturbType
方法名 or 属性名: TYPE_CLEARLY|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: DoNotDisturbDate|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: DoNotDisturbDate
方法名 or 属性名: type|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: DoNotDisturbDate
方法名 or 属性名: begin|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: DoNotDisturbDate
方法名 or 属性名: end|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: DeviceRemindType|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: DeviceRemindType
方法名 or 属性名: IDLE_DONOT_REMIND|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: DeviceRemindType
方法名 or 属性名: IDLE_REMIND|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: DeviceRemindType
方法名 or 属性名: ACTIVE_DONOT_REMIND|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: DeviceRemindType
方法名 or 属性名: ACTIVE_REMIND|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: SourceType|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: SourceType
方法名 or 属性名: TYPE_NORMAL|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: SourceType
方法名 or 属性名: TYPE_CONTINUOUS|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: SourceType
方法名 or 属性名: TYPE_TIMER|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: RemoveReason|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: RemoveReason
方法名 or 属性名: CLICK_REASON_REMOVE|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: RemoveReason
方法名 or 属性名: CANCEL_REASON_REMOVE|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationSubscribe
类名: notificationSubscribe|@ohos.notificationSubscribe.d.ts| -|新增||模块名: ohos.notificationSubscribe
类名: notificationSubscribe
方法名 or 属性名: subscribe|@ohos.notificationSubscribe.d.ts| -|新增||模块名: ohos.notificationSubscribe
类名: notificationSubscribe
方法名 or 属性名: subscribe|@ohos.notificationSubscribe.d.ts| -|新增||模块名: ohos.notificationSubscribe
类名: notificationSubscribe
方法名 or 属性名: subscribe|@ohos.notificationSubscribe.d.ts| -|新增||模块名: ohos.notificationSubscribe
类名: notificationSubscribe
方法名 or 属性名: unsubscribe|@ohos.notificationSubscribe.d.ts| -|新增||模块名: ohos.notificationSubscribe
类名: notificationSubscribe
方法名 or 属性名: unsubscribe|@ohos.notificationSubscribe.d.ts| -|新增||模块名: ohos.notificationSubscribe
类名: notificationSubscribe
方法名 or 属性名: remove|@ohos.notificationSubscribe.d.ts| -|新增||模块名: ohos.notificationSubscribe
类名: notificationSubscribe
方法名 or 属性名: remove|@ohos.notificationSubscribe.d.ts| -|新增||模块名: ohos.notificationSubscribe
类名: notificationSubscribe
方法名 or 属性名: remove|@ohos.notificationSubscribe.d.ts| -|新增||模块名: ohos.notificationSubscribe
类名: notificationSubscribe
方法名 or 属性名: remove|@ohos.notificationSubscribe.d.ts| -|新增||模块名: ohos.notificationSubscribe
类名: notificationSubscribe
方法名 or 属性名: removeAll|@ohos.notificationSubscribe.d.ts| -|新增||模块名: ohos.notificationSubscribe
类名: notificationSubscribe
方法名 or 属性名: removeAll|@ohos.notificationSubscribe.d.ts| -|新增||模块名: ohos.notificationSubscribe
类名: notificationSubscribe
方法名 or 属性名: removeAll|@ohos.notificationSubscribe.d.ts| -|新增||模块名: ohos.notificationSubscribe
类名: notificationSubscribe
方法名 or 属性名: removeAll|@ohos.notificationSubscribe.d.ts| -|新增||模块名: ohos.notificationSubscribe
类名: notificationSubscribe
方法名 or 属性名: removeAll|@ohos.notificationSubscribe.d.ts| -|新增||模块名: ohos.reminderAgentManager
类名: reminderAgentManager|@ohos.reminderAgentManager.d.ts| -|新增||模块名: ohos.reminderAgentManager
类名: reminderAgentManager
方法名 or 属性名: publishReminder|@ohos.reminderAgentManager.d.ts| -|新增||模块名: ohos.reminderAgentManager
类名: reminderAgentManager
方法名 or 属性名: publishReminder|@ohos.reminderAgentManager.d.ts| -|新增||模块名: ohos.reminderAgentManager
类名: reminderAgentManager
方法名 or 属性名: cancelReminder|@ohos.reminderAgentManager.d.ts| -|新增||模块名: ohos.reminderAgentManager
类名: reminderAgentManager
方法名 or 属性名: cancelReminder|@ohos.reminderAgentManager.d.ts| -|新增||模块名: ohos.reminderAgentManager
类名: reminderAgentManager
方法名 or 属性名: getValidReminders|@ohos.reminderAgentManager.d.ts| -|新增||模块名: ohos.reminderAgentManager
类名: reminderAgentManager
方法名 or 属性名: getValidReminders|@ohos.reminderAgentManager.d.ts| -|新增||模块名: ohos.reminderAgentManager
类名: reminderAgentManager
方法名 or 属性名: cancelAllReminders|@ohos.reminderAgentManager.d.ts| -|新增||模块名: ohos.reminderAgentManager
类名: reminderAgentManager
方法名 or 属性名: cancelAllReminders|@ohos.reminderAgentManager.d.ts| -|新增||模块名: ohos.reminderAgentManager
类名: reminderAgentManager
方法名 or 属性名: addNotificationSlot|@ohos.reminderAgentManager.d.ts| -|新增||模块名: ohos.reminderAgentManager
类名: reminderAgentManager
方法名 or 属性名: addNotificationSlot|@ohos.reminderAgentManager.d.ts| -|新增||模块名: ohos.reminderAgentManager
类名: reminderAgentManager
方法名 or 属性名: removeNotificationSlot|@ohos.reminderAgentManager.d.ts| -|新增||模块名: ohos.reminderAgentManager
类名: reminderAgentManager
方法名 or 属性名: removeNotificationSlot|@ohos.reminderAgentManager.d.ts| -|新增||模块名: ohos.reminderAgentManager
类名: ActionButtonType|@ohos.reminderAgentManager.d.ts| -|新增||模块名: ohos.reminderAgentManager
类名: ActionButtonType
方法名 or 属性名: ACTION_BUTTON_TYPE_CLOSE|@ohos.reminderAgentManager.d.ts| -|新增||模块名: ohos.reminderAgentManager
类名: ActionButtonType
方法名 or 属性名: ACTION_BUTTON_TYPE_SNOOZE|@ohos.reminderAgentManager.d.ts| -|新增||模块名: ohos.reminderAgentManager
类名: ReminderType|@ohos.reminderAgentManager.d.ts| -|新增||模块名: ohos.reminderAgentManager
类名: ReminderType
方法名 or 属性名: REMINDER_TYPE_TIMER|@ohos.reminderAgentManager.d.ts| -|新增||模块名: ohos.reminderAgentManager
类名: ReminderType
方法名 or 属性名: REMINDER_TYPE_CALENDAR|@ohos.reminderAgentManager.d.ts| -|新增||模块名: ohos.reminderAgentManager
类名: ReminderType
方法名 or 属性名: REMINDER_TYPE_ALARM|@ohos.reminderAgentManager.d.ts| -|新增||模块名: ohos.reminderAgentManager
类名: ActionButton|@ohos.reminderAgentManager.d.ts| -|新增||模块名: ohos.reminderAgentManager
类名: ActionButton
方法名 or 属性名: title|@ohos.reminderAgentManager.d.ts| -|新增||模块名: ohos.reminderAgentManager
类名: ActionButton
方法名 or 属性名: type|@ohos.reminderAgentManager.d.ts| -|新增||模块名: ohos.reminderAgentManager
类名: WantAgent|@ohos.reminderAgentManager.d.ts| -|新增||模块名: ohos.reminderAgentManager
类名: WantAgent
方法名 or 属性名: pkgName|@ohos.reminderAgentManager.d.ts| -|新增||模块名: ohos.reminderAgentManager
类名: WantAgent
方法名 or 属性名: abilityName|@ohos.reminderAgentManager.d.ts| -|新增||模块名: ohos.reminderAgentManager
类名: MaxScreenWantAgent|@ohos.reminderAgentManager.d.ts| -|新增||模块名: ohos.reminderAgentManager
类名: MaxScreenWantAgent
方法名 or 属性名: pkgName|@ohos.reminderAgentManager.d.ts| -|新增||模块名: ohos.reminderAgentManager
类名: MaxScreenWantAgent
方法名 or 属性名: abilityName|@ohos.reminderAgentManager.d.ts| -|新增||模块名: ohos.reminderAgentManager
类名: ReminderRequest|@ohos.reminderAgentManager.d.ts| -|新增||模块名: ohos.reminderAgentManager
类名: ReminderRequest
方法名 or 属性名: reminderType|@ohos.reminderAgentManager.d.ts| -|新增||模块名: ohos.reminderAgentManager
类名: ReminderRequest
方法名 or 属性名: actionButton|@ohos.reminderAgentManager.d.ts| -|新增||模块名: ohos.reminderAgentManager
类名: ReminderRequest
方法名 or 属性名: wantAgent|@ohos.reminderAgentManager.d.ts| -|新增||模块名: ohos.reminderAgentManager
类名: ReminderRequest
方法名 or 属性名: maxScreenWantAgent|@ohos.reminderAgentManager.d.ts| -|新增||模块名: ohos.reminderAgentManager
类名: ReminderRequest
方法名 or 属性名: ringDuration|@ohos.reminderAgentManager.d.ts| -|新增||模块名: ohos.reminderAgentManager
类名: ReminderRequest
方法名 or 属性名: snoozeTimes|@ohos.reminderAgentManager.d.ts| -|新增||模块名: ohos.reminderAgentManager
类名: ReminderRequest
方法名 or 属性名: timeInterval|@ohos.reminderAgentManager.d.ts| -|新增||模块名: ohos.reminderAgentManager
类名: ReminderRequest
方法名 or 属性名: title|@ohos.reminderAgentManager.d.ts| -|新增||模块名: ohos.reminderAgentManager
类名: ReminderRequest
方法名 or 属性名: content|@ohos.reminderAgentManager.d.ts| -|新增||模块名: ohos.reminderAgentManager
类名: ReminderRequest
方法名 or 属性名: expiredContent|@ohos.reminderAgentManager.d.ts| -|新增||模块名: ohos.reminderAgentManager
类名: ReminderRequest
方法名 or 属性名: snoozeContent|@ohos.reminderAgentManager.d.ts| -|新增||模块名: ohos.reminderAgentManager
类名: ReminderRequest
方法名 or 属性名: notificationId|@ohos.reminderAgentManager.d.ts| -|新增||模块名: ohos.reminderAgentManager
类名: ReminderRequest
方法名 or 属性名: slotType|@ohos.reminderAgentManager.d.ts| -|新增||模块名: ohos.reminderAgentManager
类名: ReminderRequestCalendar|@ohos.reminderAgentManager.d.ts| -|新增||模块名: ohos.reminderAgentManager
类名: ReminderRequestCalendar
方法名 or 属性名: dateTime|@ohos.reminderAgentManager.d.ts| -|新增||模块名: ohos.reminderAgentManager
类名: ReminderRequestCalendar
方法名 or 属性名: repeatMonths|@ohos.reminderAgentManager.d.ts| -|新增||模块名: ohos.reminderAgentManager
类名: ReminderRequestCalendar
方法名 or 属性名: repeatDays|@ohos.reminderAgentManager.d.ts| -|新增||模块名: ohos.reminderAgentManager
类名: ReminderRequestAlarm|@ohos.reminderAgentManager.d.ts| -|新增||模块名: ohos.reminderAgentManager
类名: ReminderRequestAlarm
方法名 or 属性名: hour|@ohos.reminderAgentManager.d.ts| -|新增||模块名: ohos.reminderAgentManager
类名: ReminderRequestAlarm
方法名 or 属性名: minute|@ohos.reminderAgentManager.d.ts| -|新增||模块名: ohos.reminderAgentManager
类名: ReminderRequestAlarm
方法名 or 属性名: daysOfWeek|@ohos.reminderAgentManager.d.ts| -|新增||模块名: ohos.reminderAgentManager
类名: ReminderRequestTimer|@ohos.reminderAgentManager.d.ts| -|新增||模块名: ohos.reminderAgentManager
类名: ReminderRequestTimer
方法名 or 属性名: triggerTimeInSeconds|@ohos.reminderAgentManager.d.ts| -|新增||模块名: ohos.reminderAgentManager
类名: LocalDateTime|@ohos.reminderAgentManager.d.ts| -|新增||模块名: ohos.reminderAgentManager
类名: LocalDateTime
方法名 or 属性名: year|@ohos.reminderAgentManager.d.ts| -|新增||模块名: ohos.reminderAgentManager
类名: LocalDateTime
方法名 or 属性名: month|@ohos.reminderAgentManager.d.ts| -|新增||模块名: ohos.reminderAgentManager
类名: LocalDateTime
方法名 or 属性名: day|@ohos.reminderAgentManager.d.ts| -|新增||模块名: ohos.reminderAgentManager
类名: LocalDateTime
方法名 or 属性名: hour|@ohos.reminderAgentManager.d.ts| -|新增||模块名: ohos.reminderAgentManager
类名: LocalDateTime
方法名 or 属性名: minute|@ohos.reminderAgentManager.d.ts| -|新增||模块名: ohos.reminderAgentManager
类名: LocalDateTime
方法名 or 属性名: second|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: commonEventManager|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: commonEventManager
方法名 or 属性名: publish|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: commonEventManager
方法名 or 属性名: publish|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: commonEventManager
方法名 or 属性名: publishAsUser|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: commonEventManager
方法名 or 属性名: publishAsUser|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: commonEventManager
方法名 or 属性名: createSubscriber|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: commonEventManager
方法名 or 属性名: createSubscriber|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: commonEventManager
方法名 or 属性名: subscribe|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: commonEventManager
方法名 or 属性名: unsubscribe|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BOOT_COMPLETED|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_LOCKED_BOOT_COMPLETED|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_SHUTDOWN|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BATTERY_CHANGED|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BATTERY_LOW|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BATTERY_OKAY|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_POWER_CONNECTED|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_POWER_DISCONNECTED|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_SCREEN_OFF|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_SCREEN_ON|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_THERMAL_LEVEL_CHANGED|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_USER_PRESENT|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_TIME_TICK|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_TIME_CHANGED|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_DATE_CHANGED|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_TIMEZONE_CHANGED|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_CLOSE_SYSTEM_DIALOGS|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_PACKAGE_ADDED|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_PACKAGE_REPLACED|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_MY_PACKAGE_REPLACED|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_PACKAGE_REMOVED|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BUNDLE_REMOVED|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_PACKAGE_FULLY_REMOVED|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_PACKAGE_CHANGED|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_PACKAGE_RESTARTED|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_PACKAGE_DATA_CLEARED|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_PACKAGE_CACHE_CLEARED|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_PACKAGES_SUSPENDED|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_PACKAGES_UNSUSPENDED|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_MY_PACKAGE_SUSPENDED|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_MY_PACKAGE_UNSUSPENDED|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_UID_REMOVED|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_PACKAGE_FIRST_LAUNCH|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_PACKAGE_NEEDS_VERIFICATION|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_PACKAGE_VERIFIED|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_EXTERNAL_APPLICATIONS_AVAILABLE|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_EXTERNAL_APPLICATIONS_UNAVAILABLE|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_CONFIGURATION_CHANGED|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_LOCALE_CHANGED|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_MANAGE_PACKAGE_STORAGE|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_DRIVE_MODE|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_HOME_MODE|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_OFFICE_MODE|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_USER_STARTED|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_USER_BACKGROUND|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_USER_FOREGROUND|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_USER_SWITCHED|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_USER_STARTING|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_USER_UNLOCKED|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_USER_STOPPING|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_USER_STOPPED|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_DISTRIBUTED_ACCOUNT_LOGIN|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_DISTRIBUTED_ACCOUNT_LOGOUT|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_DISTRIBUTED_ACCOUNT_TOKEN_INVALID|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_DISTRIBUTED_ACCOUNT_LOGOFF|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_WIFI_POWER_STATE|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_WIFI_SCAN_FINISHED|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_WIFI_RSSI_VALUE|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_WIFI_CONN_STATE|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_WIFI_HOTSPOT_STATE|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_WIFI_AP_STA_JOIN|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_WIFI_AP_STA_LEAVE|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_WIFI_MPLINK_STATE_CHANGE|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_WIFI_P2P_CONN_STATE|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_WIFI_P2P_STATE_CHANGED|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_WIFI_P2P_PEERS_STATE_CHANGED|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_WIFI_P2P_PEERS_DISCOVERY_STATE_CHANGED|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_WIFI_P2P_CURRENT_DEVICE_STATE_CHANGED|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_WIFI_P2P_GROUP_STATE_CHANGED|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_HANDSFREE_AG_CONNECT_STATE_UPDATE|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_HANDSFREE_AG_CURRENT_DEVICE_UPDATE|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_HANDSFREE_AG_AUDIO_STATE_UPDATE|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_A2DPSOURCE_CONNECT_STATE_UPDATE|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_A2DPSOURCE_CURRENT_DEVICE_UPDATE|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_A2DPSOURCE_PLAYING_STATE_UPDATE|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_A2DPSOURCE_AVRCP_CONNECT_STATE_UPDATE|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_A2DPSOURCE_CODEC_VALUE_UPDATE|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_DISCOVERED|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_CLASS_VALUE_UPDATE|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_ACL_CONNECTED|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_ACL_DISCONNECTED|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_NAME_UPDATE|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_PAIR_STATE|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_BATTERY_VALUE_UPDATE|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_SDP_RESULT|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_UUID_VALUE|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_PAIRING_REQ|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_PAIRING_CANCEL|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_CONNECT_REQ|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_CONNECT_REPLY|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_CONNECT_CANCEL|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_HANDSFREEUNIT_CONNECT_STATE_UPDATE|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_HANDSFREEUNIT_AUDIO_STATE_UPDATE|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_HANDSFREEUNIT_AG_COMMON_EVENT|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_HANDSFREEUNIT_AG_CALL_STATE_UPDATE|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_HOST_STATE_UPDATE|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_HOST_REQ_DISCOVERABLE|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_HOST_REQ_ENABLE|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_HOST_REQ_DISABLE|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_HOST_SCAN_MODE_UPDATE|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_HOST_DISCOVERY_STARTED|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_HOST_DISCOVERY_FINISHED|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_HOST_NAME_UPDATE|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_A2DPSINK_CONNECT_STATE_UPDATE|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_A2DPSINK_PLAYING_STATE_UPDATE|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_A2DPSINK_AUDIO_STATE_UPDATE|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_NFC_ACTION_ADAPTER_STATE_CHANGED|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_NFC_ACTION_RF_FIELD_ON_DETECTED|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_NFC_ACTION_RF_FIELD_OFF_DETECTED|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_DISCHARGING|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_CHARGING|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_DEVICE_IDLE_MODE_CHANGED|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_POWER_SAVE_MODE_CHANGED|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_USER_ADDED|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_USER_REMOVED|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_ABILITY_ADDED|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_ABILITY_REMOVED|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_ABILITY_UPDATED|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_LOCATION_MODE_STATE_CHANGED|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_IVI_SLEEP|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_IVI_PAUSE|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_IVI_STANDBY|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_IVI_LASTMODE_SAVE|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_IVI_VOLTAGE_ABNORMAL|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_IVI_HIGH_TEMPERATURE|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_IVI_EXTREME_TEMPERATURE|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_IVI_TEMPERATURE_ABNORMAL|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_IVI_VOLTAGE_RECOVERY|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_IVI_TEMPERATURE_RECOVERY|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_IVI_ACTIVE|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_USB_STATE|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_USB_PORT_CHANGED|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_USB_DEVICE_ATTACHED|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_USB_DEVICE_DETACHED|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_USB_ACCESSORY_ATTACHED|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_USB_ACCESSORY_DETACHED|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_DISK_REMOVED|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_DISK_UNMOUNTED|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_DISK_MOUNTED|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_DISK_BAD_REMOVAL|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_DISK_UNMOUNTABLE|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_DISK_EJECT|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_VOLUME_REMOVED|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_VOLUME_UNMOUNTED|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_VOLUME_MOUNTED|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_VOLUME_BAD_REMOVAL|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_VOLUME_EJECT|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_VISIBLE_ACCOUNTS_UPDATED|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_ACCOUNT_DELETED|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_FOUNDATION_READY|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_AIRPLANE_MODE_CHANGED|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_SPLIT_SCREEN|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_SLOT_CHANGE|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_SPN_INFO_CHANGED|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_QUICK_FIX_APPLY_RESULT|@ohos.commonEventManager.d.ts| +|新增|NA|方法名 or 属性名:remove
函数:function remove(bundle: BundleOption, notificationKey: NotificationKey, reason: RemoveReason, callback: AsyncCallback): void;|@ohos.notification.d.ts| +|新增|NA|方法名 or 属性名:remove
函数:function remove(bundle: BundleOption, notificationKey: NotificationKey, reason: RemoveReason): Promise;|@ohos.notification.d.ts| +|新增|NA|方法名 or 属性名:remove
函数:function remove(hashCode: string, reason: RemoveReason, callback: AsyncCallback): void;|@ohos.notification.d.ts| +|新增|NA|方法名 or 属性名:remove
函数:function remove(hashCode: string, reason: RemoveReason): Promise;|@ohos.notification.d.ts| +|新增|NA|模块名: ohos.notification
类名: RemoveReason|@ohos.notification.d.ts| +|新增|NA|模块名: ohos.notification
类名: RemoveReason
方法名 or 属性名:CLICK_REASON_REMOVE|@ohos.notification.d.ts| +|新增|NA|模块名: ohos.notification
类名: RemoveReason
方法名 or 属性名:CANCEL_REASON_REMOVE|@ohos.notification.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: publish|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: publish|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: publish|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: publish|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: publishAsBundle|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: publishAsBundle|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: cancel|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: cancel|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: cancel|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: cancelAsBundle|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: cancelAsBundle|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: cancelAll|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: cancelAll|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: addSlot|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: addSlot|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: addSlot|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: addSlot|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: addSlots|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: addSlots|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: getSlot|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: getSlot|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: getSlots|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: getSlots|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: removeSlot|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: removeSlot|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: removeAllSlots|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: removeAllSlots|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: setNotificationEnable|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: setNotificationEnable|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: isNotificationEnabled|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: isNotificationEnabled|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: isNotificationEnabled|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: isNotificationEnabled|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: isNotificationEnabled|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: isNotificationEnabled|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: displayBadge|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: displayBadge|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: isBadgeDisplayed|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: isBadgeDisplayed|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: setSlotByBundle|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: setSlotByBundle|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: getSlotsByBundle|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: getSlotsByBundle|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: getSlotNumByBundle|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: getSlotNumByBundle|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: getAllActiveNotifications|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: getAllActiveNotifications|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: getActiveNotificationCount|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: getActiveNotificationCount|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: getActiveNotifications|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: getActiveNotifications|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: cancelGroup|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: cancelGroup|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: removeGroupByBundle|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: removeGroupByBundle|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: setDoNotDisturbDate|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: setDoNotDisturbDate|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: setDoNotDisturbDate|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: setDoNotDisturbDate|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: getDoNotDisturbDate|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: getDoNotDisturbDate|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: getDoNotDisturbDate|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: getDoNotDisturbDate|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: supportDoNotDisturbMode|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: supportDoNotDisturbMode|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: isSupportTemplate|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: isSupportTemplate|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: requestEnableNotification|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: requestEnableNotification|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: setDistributedEnable|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: setDistributedEnable|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: isDistributedEnabled|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: isDistributedEnabled|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: setDistributedEnableByBundle|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: setDistributedEnableByBundle|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: isDistributedEnabledByBundle|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: isDistributedEnabledByBundle|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: getDeviceRemindType|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: getDeviceRemindType|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: setNotificationEnableSlot|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: setNotificationEnableSlot|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: isNotificationSlotEnabled|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: isNotificationSlotEnabled|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: setSyncNotificationEnabledWithoutApp|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: setSyncNotificationEnabledWithoutApp|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: getSyncNotificationEnabledWithoutApp|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: getSyncNotificationEnabledWithoutApp|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: SlotType|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: SlotType
方法名 or 属性名: UNKNOWN_TYPE|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: SlotType
方法名 or 属性名: SOCIAL_COMMUNICATION|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: SlotType
方法名 or 属性名: SERVICE_INFORMATION|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: SlotType
方法名 or 属性名: CONTENT_INFORMATION|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: SlotType
方法名 or 属性名: OTHER_TYPES|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: ContentType|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: ContentType
方法名 or 属性名: NOTIFICATION_CONTENT_BASIC_TEXT|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: ContentType
方法名 or 属性名: NOTIFICATION_CONTENT_LONG_TEXT|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: ContentType
方法名 or 属性名: NOTIFICATION_CONTENT_PICTURE|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: ContentType
方法名 or 属性名: NOTIFICATION_CONTENT_CONVERSATION|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: ContentType
方法名 or 属性名: NOTIFICATION_CONTENT_MULTILINE|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: SlotLevel|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: SlotLevel
方法名 or 属性名: LEVEL_NONE|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: SlotLevel
方法名 or 属性名: LEVEL_MIN|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: SlotLevel
方法名 or 属性名: LEVEL_LOW|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: SlotLevel
方法名 or 属性名: LEVEL_DEFAULT|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: SlotLevel
方法名 or 属性名: LEVEL_HIGH|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: BundleOption|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: BundleOption
方法名 or 属性名: bundle|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: BundleOption
方法名 or 属性名: uid|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: NotificationKey|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: NotificationKey
方法名 or 属性名: id|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: NotificationKey
方法名 or 属性名: label|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: DoNotDisturbType|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: DoNotDisturbType
方法名 or 属性名: TYPE_NONE|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: DoNotDisturbType
方法名 or 属性名: TYPE_ONCE|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: DoNotDisturbType
方法名 or 属性名: TYPE_DAILY|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: DoNotDisturbType
方法名 or 属性名: TYPE_CLEARLY|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: DoNotDisturbDate|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: DoNotDisturbDate
方法名 or 属性名: type|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: DoNotDisturbDate
方法名 or 属性名: begin|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: DoNotDisturbDate
方法名 or 属性名: end|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: DeviceRemindType|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: DeviceRemindType
方法名 or 属性名: IDLE_DONOT_REMIND|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: DeviceRemindType
方法名 or 属性名: IDLE_REMIND|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: DeviceRemindType
方法名 or 属性名: ACTIVE_DONOT_REMIND|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: DeviceRemindType
方法名 or 属性名: ACTIVE_REMIND|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: SourceType|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: SourceType
方法名 or 属性名: TYPE_NORMAL|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: SourceType
方法名 or 属性名: TYPE_CONTINUOUS|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: SourceType
方法名 or 属性名: TYPE_TIMER|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: RemoveReason|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: RemoveReason
方法名 or 属性名: CLICK_REASON_REMOVE|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: RemoveReason
方法名 or 属性名: CANCEL_REASON_REMOVE|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationSubscribe
类名: notificationSubscribe|@ohos.notificationSubscribe.d.ts| +|新增|NA|模块名: ohos.notificationSubscribe
类名: notificationSubscribe
方法名 or 属性名: subscribe|@ohos.notificationSubscribe.d.ts| +|新增|NA|模块名: ohos.notificationSubscribe
类名: notificationSubscribe
方法名 or 属性名: subscribe|@ohos.notificationSubscribe.d.ts| +|新增|NA|模块名: ohos.notificationSubscribe
类名: notificationSubscribe
方法名 or 属性名: subscribe|@ohos.notificationSubscribe.d.ts| +|新增|NA|模块名: ohos.notificationSubscribe
类名: notificationSubscribe
方法名 or 属性名: unsubscribe|@ohos.notificationSubscribe.d.ts| +|新增|NA|模块名: ohos.notificationSubscribe
类名: notificationSubscribe
方法名 or 属性名: unsubscribe|@ohos.notificationSubscribe.d.ts| +|新增|NA|模块名: ohos.notificationSubscribe
类名: notificationSubscribe
方法名 or 属性名: remove|@ohos.notificationSubscribe.d.ts| +|新增|NA|模块名: ohos.notificationSubscribe
类名: notificationSubscribe
方法名 or 属性名: remove|@ohos.notificationSubscribe.d.ts| +|新增|NA|模块名: ohos.notificationSubscribe
类名: notificationSubscribe
方法名 or 属性名: remove|@ohos.notificationSubscribe.d.ts| +|新增|NA|模块名: ohos.notificationSubscribe
类名: notificationSubscribe
方法名 or 属性名: remove|@ohos.notificationSubscribe.d.ts| +|新增|NA|模块名: ohos.notificationSubscribe
类名: notificationSubscribe
方法名 or 属性名: removeAll|@ohos.notificationSubscribe.d.ts| +|新增|NA|模块名: ohos.notificationSubscribe
类名: notificationSubscribe
方法名 or 属性名: removeAll|@ohos.notificationSubscribe.d.ts| +|新增|NA|模块名: ohos.notificationSubscribe
类名: notificationSubscribe
方法名 or 属性名: removeAll|@ohos.notificationSubscribe.d.ts| +|新增|NA|模块名: ohos.notificationSubscribe
类名: notificationSubscribe
方法名 or 属性名: removeAll|@ohos.notificationSubscribe.d.ts| +|新增|NA|模块名: ohos.notificationSubscribe
类名: notificationSubscribe
方法名 or 属性名: removeAll|@ohos.notificationSubscribe.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: reminderAgentManager|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: reminderAgentManager
方法名 or 属性名: publishReminder|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: reminderAgentManager
方法名 or 属性名: publishReminder|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: reminderAgentManager
方法名 or 属性名: cancelReminder|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: reminderAgentManager
方法名 or 属性名: cancelReminder|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: reminderAgentManager
方法名 or 属性名: getValidReminders|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: reminderAgentManager
方法名 or 属性名: getValidReminders|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: reminderAgentManager
方法名 or 属性名: cancelAllReminders|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: reminderAgentManager
方法名 or 属性名: cancelAllReminders|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: reminderAgentManager
方法名 or 属性名: addNotificationSlot|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: reminderAgentManager
方法名 or 属性名: addNotificationSlot|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: reminderAgentManager
方法名 or 属性名: removeNotificationSlot|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: reminderAgentManager
方法名 or 属性名: removeNotificationSlot|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: ActionButtonType|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: ActionButtonType
方法名 or 属性名: ACTION_BUTTON_TYPE_CLOSE|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: ActionButtonType
方法名 or 属性名: ACTION_BUTTON_TYPE_SNOOZE|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: ReminderType|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: ReminderType
方法名 or 属性名: REMINDER_TYPE_TIMER|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: ReminderType
方法名 or 属性名: REMINDER_TYPE_CALENDAR|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: ReminderType
方法名 or 属性名: REMINDER_TYPE_ALARM|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: ActionButton|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: ActionButton
方法名 or 属性名: title|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: ActionButton
方法名 or 属性名: type|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: WantAgent|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: WantAgent
方法名 or 属性名: pkgName|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: WantAgent
方法名 or 属性名: abilityName|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: MaxScreenWantAgent|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: MaxScreenWantAgent
方法名 or 属性名: pkgName|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: MaxScreenWantAgent
方法名 or 属性名: abilityName|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: ReminderRequest|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: ReminderRequest
方法名 or 属性名: reminderType|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: ReminderRequest
方法名 or 属性名: actionButton|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: ReminderRequest
方法名 or 属性名: wantAgent|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: ReminderRequest
方法名 or 属性名: maxScreenWantAgent|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: ReminderRequest
方法名 or 属性名: ringDuration|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: ReminderRequest
方法名 or 属性名: snoozeTimes|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: ReminderRequest
方法名 or 属性名: timeInterval|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: ReminderRequest
方法名 or 属性名: title|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: ReminderRequest
方法名 or 属性名: content|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: ReminderRequest
方法名 or 属性名: expiredContent|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: ReminderRequest
方法名 or 属性名: snoozeContent|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: ReminderRequest
方法名 or 属性名: notificationId|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: ReminderRequest
方法名 or 属性名: slotType|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: ReminderRequestCalendar|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: ReminderRequestCalendar
方法名 or 属性名: dateTime|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: ReminderRequestCalendar
方法名 or 属性名: repeatMonths|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: ReminderRequestCalendar
方法名 or 属性名: repeatDays|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: ReminderRequestAlarm|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: ReminderRequestAlarm
方法名 or 属性名: hour|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: ReminderRequestAlarm
方法名 or 属性名: minute|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: ReminderRequestAlarm
方法名 or 属性名: daysOfWeek|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: ReminderRequestTimer|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: ReminderRequestTimer
方法名 or 属性名: triggerTimeInSeconds|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: LocalDateTime|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: LocalDateTime
方法名 or 属性名: year|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: LocalDateTime
方法名 or 属性名: month|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: LocalDateTime
方法名 or 属性名: day|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: LocalDateTime
方法名 or 属性名: hour|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: LocalDateTime
方法名 or 属性名: minute|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: LocalDateTime
方法名 or 属性名: second|@ohos.reminderAgentManager.d.ts| |废弃版本有变化|类名:commonEvent
废弃版本:N/A|类名:commonEvent
废弃版本:9
代替接口:ohos.commonEventManager |@ohos.commonEvent.d.ts| |废弃版本有变化|方法名 or 属性名:publish
废弃版本:N/A|方法名 or 属性名:publish
废弃版本:9
代替接口:ohos.commonEventManager.publish |@ohos.commonEvent.d.ts| |废弃版本有变化|方法名 or 属性名:publish
废弃版本:N/A|方法名 or 属性名:publish
废弃版本:9
代替接口:ohos.commonEventManager.publish |@ohos.commonEvent.d.ts| @@ -437,10 +444,6 @@ |废弃版本有变化|方法名 or 属性名:getSlotsByBundle
废弃版本:N/A|方法名 or 属性名:getSlotsByBundle
废弃版本:9
代替接口:ohos.notificationManager.getSlotsByBundle |@ohos.notification.d.ts| |废弃版本有变化|方法名 or 属性名:getSlotNumByBundle
废弃版本:N/A|方法名 or 属性名:getSlotNumByBundle
废弃版本:9
代替接口:ohos.notificationManager.getSlotNumByBundle |@ohos.notification.d.ts| |废弃版本有变化|方法名 or 属性名:getSlotNumByBundle
废弃版本:N/A|方法名 or 属性名:getSlotNumByBundle
废弃版本:9
代替接口:ohos.notificationManager.getSlotNumByBundle |@ohos.notification.d.ts| -|废弃版本有变化|方法名 or 属性名:remove
废弃版本:N/A|方法名 or 属性名:remove
废弃版本:9
代替接口:ohos.notificationSubscribe.remove |@ohos.notification.d.ts| -|废弃版本有变化|方法名 or 属性名:remove
废弃版本:N/A|方法名 or 属性名:remove
废弃版本:9
代替接口:ohos.notificationSubscribe.remove |@ohos.notification.d.ts| -|废弃版本有变化|方法名 or 属性名:remove
废弃版本:N/A|方法名 or 属性名:remove
废弃版本:9
代替接口:ohos.notificationSubscribe.remove |@ohos.notification.d.ts| -|废弃版本有变化|方法名 or 属性名:remove
废弃版本:N/A|方法名 or 属性名:remove
废弃版本:9
代替接口:ohos.notificationSubscribe.remove |@ohos.notification.d.ts| |废弃版本有变化|方法名 or 属性名:removeAll
废弃版本:N/A|方法名 or 属性名:removeAll
废弃版本:9
代替接口:ohos.notificationSubscribe.removeAll |@ohos.notification.d.ts| |废弃版本有变化|方法名 or 属性名:removeAll
废弃版本:N/A|方法名 or 属性名:removeAll
废弃版本:9
代替接口:ohos.notificationSubscribe.removeAll |@ohos.notification.d.ts| |废弃版本有变化|方法名 or 属性名:removeAll
废弃版本:N/A|方法名 or 属性名:removeAll
废弃版本:9
代替接口:ohos.notificationSubscribe.removeAll |@ohos.notification.d.ts| @@ -494,7 +497,6 @@ |废弃版本有变化|类名:DoNotDisturbDate
废弃版本:N/A|类名:DoNotDisturbDate
废弃版本:9
代替接口:ohos.notificationManager.DoNotDisturbDate |@ohos.notification.d.ts| |废弃版本有变化|类名:DeviceRemindType
废弃版本:N/A|类名:DeviceRemindType
废弃版本:9
代替接口:ohos.notificationManager.DeviceRemindType |@ohos.notification.d.ts| |废弃版本有变化|类名:SourceType
废弃版本:N/A|类名:SourceType
废弃版本:9
代替接口:ohos.notificationManager.SourceType |@ohos.notification.d.ts| -|废弃版本有变化|类名:RemoveReason
废弃版本:N/A|类名:RemoveReason
废弃版本:9
代替接口:ohos.notificationManager.RemoveReason |@ohos.notification.d.ts| |废弃版本有变化|类名:reminderAgent
废弃版本:N/A|类名:reminderAgent
废弃版本:9
代替接口:reminderAgentManager |@ohos.reminderAgent.d.ts| |废弃版本有变化|方法名 or 属性名:publishReminder
废弃版本:N/A|方法名 or 属性名:publishReminder
废弃版本:9
代替接口:reminderAgentManager.publishReminder |@ohos.reminderAgent.d.ts| |废弃版本有变化|方法名 or 属性名:publishReminder
废弃版本:N/A|方法名 or 属性名:publishReminder
废弃版本:9|@ohos.reminderAgent.d.ts| diff --git a/zh-cn/release-notes/api-diff/monthly-202210/js-apidiff-resource-scheduler.md b/zh-cn/release-notes/api-diff/monthly-202210/js-apidiff-resource-scheduler.md index 8fd1ef44294c8505a56627d2f807658dfcdd7ecb..cc74cb2d841696834f98d0f3ef202c2d42b3f4ea 100644 --- a/zh-cn/release-notes/api-diff/monthly-202210/js-apidiff-resource-scheduler.md +++ b/zh-cn/release-notes/api-diff/monthly-202210/js-apidiff-resource-scheduler.md @@ -1,233 +1,247 @@ -| 操作 | 新版本 | 旧版本 | d.ts文件 | +| 操作 | 旧版本 | 新版本 | d.ts文件 | | ---- | ------ | ------ | -------- | -|新增||模块名: ohos.resourceschedule.backgroundTaskManager
类名: backgroundTaskManager|@ohos.resourceschedule.backgroundTaskManager.d.ts| -|新增||模块名: ohos.resourceschedule.backgroundTaskManager
类名: DelaySuspendInfo|@ohos.resourceschedule.backgroundTaskManager.d.ts| -|新增||模块名: ohos.resourceschedule.backgroundTaskManager
类名: DelaySuspendInfo
方法名 or 属性名: requestId|@ohos.resourceschedule.backgroundTaskManager.d.ts| -|新增||模块名: ohos.resourceschedule.backgroundTaskManager
类名: DelaySuspendInfo
方法名 or 属性名: actualDelayTime|@ohos.resourceschedule.backgroundTaskManager.d.ts| -|新增||模块名: ohos.resourceschedule.backgroundTaskManager
类名: backgroundTaskManager
方法名 or 属性名: cancelSuspendDelay|@ohos.resourceschedule.backgroundTaskManager.d.ts| -|新增||模块名: ohos.resourceschedule.backgroundTaskManager
类名: backgroundTaskManager
方法名 or 属性名: getRemainingDelayTime|@ohos.resourceschedule.backgroundTaskManager.d.ts| -|新增||模块名: ohos.resourceschedule.backgroundTaskManager
类名: backgroundTaskManager
方法名 or 属性名: getRemainingDelayTime|@ohos.resourceschedule.backgroundTaskManager.d.ts| -|新增||模块名: ohos.resourceschedule.backgroundTaskManager
类名: backgroundTaskManager
方法名 or 属性名: requestSuspendDelay|@ohos.resourceschedule.backgroundTaskManager.d.ts| -|新增||模块名: ohos.resourceschedule.backgroundTaskManager
类名: backgroundTaskManager
方法名 or 属性名: startBackgroundRunning|@ohos.resourceschedule.backgroundTaskManager.d.ts| -|新增||模块名: ohos.resourceschedule.backgroundTaskManager
类名: backgroundTaskManager
方法名 or 属性名: startBackgroundRunning|@ohos.resourceschedule.backgroundTaskManager.d.ts| -|新增||模块名: ohos.resourceschedule.backgroundTaskManager
类名: backgroundTaskManager
方法名 or 属性名: stopBackgroundRunning|@ohos.resourceschedule.backgroundTaskManager.d.ts| -|新增||模块名: ohos.resourceschedule.backgroundTaskManager
类名: backgroundTaskManager
方法名 or 属性名: stopBackgroundRunning|@ohos.resourceschedule.backgroundTaskManager.d.ts| -|新增||模块名: ohos.resourceschedule.backgroundTaskManager
类名: backgroundTaskManager
方法名 or 属性名: applyEfficiencyResources|@ohos.resourceschedule.backgroundTaskManager.d.ts| -|新增||模块名: ohos.resourceschedule.backgroundTaskManager
类名: backgroundTaskManager
方法名 or 属性名: resetAllEfficiencyResources|@ohos.resourceschedule.backgroundTaskManager.d.ts| -|新增||模块名: ohos.resourceschedule.backgroundTaskManager
类名: BackgroundMode|@ohos.resourceschedule.backgroundTaskManager.d.ts| -|新增||模块名: ohos.resourceschedule.backgroundTaskManager
类名: BackgroundMode
方法名 or 属性名: DATA_TRANSFER|@ohos.resourceschedule.backgroundTaskManager.d.ts| -|新增||模块名: ohos.resourceschedule.backgroundTaskManager
类名: BackgroundMode
方法名 or 属性名: AUDIO_PLAYBACK|@ohos.resourceschedule.backgroundTaskManager.d.ts| -|新增||模块名: ohos.resourceschedule.backgroundTaskManager
类名: BackgroundMode
方法名 or 属性名: AUDIO_RECORDING|@ohos.resourceschedule.backgroundTaskManager.d.ts| -|新增||模块名: ohos.resourceschedule.backgroundTaskManager
类名: BackgroundMode
方法名 or 属性名: LOCATION|@ohos.resourceschedule.backgroundTaskManager.d.ts| -|新增||模块名: ohos.resourceschedule.backgroundTaskManager
类名: BackgroundMode
方法名 or 属性名: BLUETOOTH_INTERACTION|@ohos.resourceschedule.backgroundTaskManager.d.ts| -|新增||模块名: ohos.resourceschedule.backgroundTaskManager
类名: BackgroundMode
方法名 or 属性名: MULTI_DEVICE_CONNECTION|@ohos.resourceschedule.backgroundTaskManager.d.ts| -|新增||模块名: ohos.resourceschedule.backgroundTaskManager
类名: BackgroundMode
方法名 or 属性名: WIFI_INTERACTION|@ohos.resourceschedule.backgroundTaskManager.d.ts| -|新增||模块名: ohos.resourceschedule.backgroundTaskManager
类名: BackgroundMode
方法名 or 属性名: VOIP|@ohos.resourceschedule.backgroundTaskManager.d.ts| -|新增||模块名: ohos.resourceschedule.backgroundTaskManager
类名: BackgroundMode
方法名 or 属性名: TASK_KEEPING|@ohos.resourceschedule.backgroundTaskManager.d.ts| -|新增||模块名: ohos.resourceschedule.backgroundTaskManager
类名: ResourceType|@ohos.resourceschedule.backgroundTaskManager.d.ts| -|新增||模块名: ohos.resourceschedule.backgroundTaskManager
类名: ResourceType
方法名 or 属性名: CPU|@ohos.resourceschedule.backgroundTaskManager.d.ts| -|新增||模块名: ohos.resourceschedule.backgroundTaskManager
类名: ResourceType
方法名 or 属性名: COMMON_EVENT|@ohos.resourceschedule.backgroundTaskManager.d.ts| -|新增||模块名: ohos.resourceschedule.backgroundTaskManager
类名: ResourceType
方法名 or 属性名: TIMER|@ohos.resourceschedule.backgroundTaskManager.d.ts| -|新增||模块名: ohos.resourceschedule.backgroundTaskManager
类名: ResourceType
方法名 or 属性名: WORK_SCHEDULER|@ohos.resourceschedule.backgroundTaskManager.d.ts| -|新增||模块名: ohos.resourceschedule.backgroundTaskManager
类名: ResourceType
方法名 or 属性名: BLUETOOTH|@ohos.resourceschedule.backgroundTaskManager.d.ts| -|新增||模块名: ohos.resourceschedule.backgroundTaskManager
类名: ResourceType
方法名 or 属性名: GPS|@ohos.resourceschedule.backgroundTaskManager.d.ts| -|新增||模块名: ohos.resourceschedule.backgroundTaskManager
类名: ResourceType
方法名 or 属性名: AUDIO|@ohos.resourceschedule.backgroundTaskManager.d.ts| -|新增||模块名: ohos.resourceschedule.backgroundTaskManager
类名: EfficiencyResourcesRequest|@ohos.resourceschedule.backgroundTaskManager.d.ts| -|新增||模块名: ohos.resourceschedule.backgroundTaskManager
类名: EfficiencyResourcesRequest
方法名 or 属性名: resourceTypes|@ohos.resourceschedule.backgroundTaskManager.d.ts| -|新增||模块名: ohos.resourceschedule.backgroundTaskManager
类名: EfficiencyResourcesRequest
方法名 or 属性名: isApply|@ohos.resourceschedule.backgroundTaskManager.d.ts| -|新增||模块名: ohos.resourceschedule.backgroundTaskManager
类名: EfficiencyResourcesRequest
方法名 or 属性名: timeOut|@ohos.resourceschedule.backgroundTaskManager.d.ts| -|新增||模块名: ohos.resourceschedule.backgroundTaskManager
类名: EfficiencyResourcesRequest
方法名 or 属性名: isPersist|@ohos.resourceschedule.backgroundTaskManager.d.ts| -|新增||模块名: ohos.resourceschedule.backgroundTaskManager
类名: EfficiencyResourcesRequest
方法名 or 属性名: isProcess|@ohos.resourceschedule.backgroundTaskManager.d.ts| -|新增||模块名: ohos.resourceschedule.backgroundTaskManager
类名: EfficiencyResourcesRequest
方法名 or 属性名: reason|@ohos.resourceschedule.backgroundTaskManager.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: BundleStatsInfo|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: BundleStatsInfo
方法名 or 属性名: id|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: BundleStatsInfo
方法名 or 属性名: abilityInFgTotalTime|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: BundleStatsInfo
方法名 or 属性名: abilityPrevAccessTime|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: BundleStatsInfo
方法名 or 属性名: abilityPrevSeenTime|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: BundleStatsInfo
方法名 or 属性名: abilitySeenTotalTime|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: BundleStatsInfo
方法名 or 属性名: bundleName|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: BundleStatsInfo
方法名 or 属性名: fgAbilityAccessTotalTime|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: BundleStatsInfo
方法名 or 属性名: fgAbilityPrevAccessTime|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: BundleStatsInfo
方法名 or 属性名: infosBeginTime|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: BundleStatsInfo
方法名 or 属性名: infosEndTime|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: HapFormInfo|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: HapFormInfo
方法名 or 属性名: formName|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: HapFormInfo
方法名 or 属性名: formDimension|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: HapFormInfo
方法名 or 属性名: formId|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: HapFormInfo
方法名 or 属性名: formLastUsedTime|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: HapFormInfo
方法名 or 属性名: count|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: HapModuleInfo|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: HapModuleInfo
方法名 or 属性名: deviceId|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: HapModuleInfo
方法名 or 属性名: bundleName|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: HapModuleInfo
方法名 or 属性名: moduleName|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: HapModuleInfo
方法名 or 属性名: abilityName|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: HapModuleInfo
方法名 or 属性名: appLabelId|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: HapModuleInfo
方法名 or 属性名: labelId|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: HapModuleInfo
方法名 or 属性名: descriptionId|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: HapModuleInfo
方法名 or 属性名: abilityLableId|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: HapModuleInfo
方法名 or 属性名: abilityDescriptionId|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: HapModuleInfo
方法名 or 属性名: abilityIconId|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: HapModuleInfo
方法名 or 属性名: launchedCount|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: HapModuleInfo
方法名 or 属性名: lastModuleUsedTime|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: HapModuleInfo
方法名 or 属性名: formRecords|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: DeviceEventStats|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: DeviceEventStats
方法名 or 属性名: name|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: DeviceEventStats
方法名 or 属性名: eventId|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: DeviceEventStats
方法名 or 属性名: count|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: BundleEvents|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: BundleEvents
方法名 or 属性名: appGroup|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: BundleEvents
方法名 or 属性名: bundleName|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: BundleEvents
方法名 or 属性名: indexOfLink|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: BundleEvents
方法名 or 属性名: nameOfClass|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: BundleEvents
方法名 or 属性名: eventOccurredTime|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: BundleEvents
方法名 or 属性名: eventId|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: AppGroupCallbackInfo|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: AppGroupCallbackInfo
方法名 or 属性名: appOldGroup|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: AppGroupCallbackInfo
方法名 or 属性名: appNewGroup|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: AppGroupCallbackInfo
方法名 or 属性名: userId|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: AppGroupCallbackInfo
方法名 or 属性名: changeReason|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: AppGroupCallbackInfo
方法名 or 属性名: bundleName|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法名 or 属性名: isIdleState|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法名 or 属性名: isIdleState|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法名 or 属性名: queryAppGroup|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法名 or 属性名: queryAppGroup|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法名 or 属性名: queryAppGroup|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法名 or 属性名: queryAppGroup|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: BundleStatsMap|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: BundleStatsMap
方法名 or 属性名: BundleStatsMap|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法名 or 属性名: queryBundleStatsInfos|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法名 or 属性名: queryBundleStatsInfos|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: IntervalType|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: IntervalType
方法名 or 属性名: BY_OPTIMIZED|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: IntervalType
方法名 or 属性名: BY_DAILY|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: IntervalType
方法名 or 属性名: BY_WEEKLY|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: IntervalType
方法名 or 属性名: BY_MONTHLY|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: IntervalType
方法名 or 属性名: BY_ANNUALLY|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法名 or 属性名: queryBundleStatsInfoByInterval|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法名 or 属性名: queryBundleStatsInfoByInterval|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法名 or 属性名: queryBundleEvents|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法名 or 属性名: queryBundleEvents|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法名 or 属性名: queryCurrentBundleEvents|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法名 or 属性名: queryCurrentBundleEvents|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法名 or 属性名: queryModuleUsageRecords|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法名 or 属性名: queryModuleUsageRecords|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法名 or 属性名: queryModuleUsageRecords|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法名 or 属性名: queryModuleUsageRecords|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: GroupType|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: GroupType
方法名 or 属性名: ALIVE_GROUP|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: GroupType
方法名 or 属性名: DAILY_GROUP|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: GroupType
方法名 or 属性名: FIXED_GROUP|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: GroupType
方法名 or 属性名: RARE_GROUP|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: GroupType
方法名 or 属性名: LIMITED_GROUP|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: GroupType
方法名 or 属性名: NEVER_GROUP|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法名 or 属性名: setAppGroup|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法名 or 属性名: setAppGroup|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法名 or 属性名: registerAppGroupCallBack|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法名 or 属性名: registerAppGroupCallBack|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法名 or 属性名: unregisterAppGroupCallBack|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法名 or 属性名: unregisterAppGroupCallBack|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法名 or 属性名: queryDeviceEventStats|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法名 or 属性名: queryDeviceEventStats|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法名 or 属性名: queryNotificationEventStats|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法名 or 属性名: queryNotificationEventStats|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.workScheduler
类名: workScheduler|@ohos.resourceschedule.workScheduler.d.ts| -|新增||模块名: ohos.resourceschedule.workScheduler
类名: WorkInfo|@ohos.resourceschedule.workScheduler.d.ts| -|新增||模块名: ohos.resourceschedule.workScheduler
类名: WorkInfo
方法名 or 属性名: workId|@ohos.resourceschedule.workScheduler.d.ts| -|新增||模块名: ohos.resourceschedule.workScheduler
类名: WorkInfo
方法名 or 属性名: bundleName|@ohos.resourceschedule.workScheduler.d.ts| -|新增||模块名: ohos.resourceschedule.workScheduler
类名: WorkInfo
方法名 or 属性名: abilityName|@ohos.resourceschedule.workScheduler.d.ts| -|新增||模块名: ohos.resourceschedule.workScheduler
类名: WorkInfo
方法名 or 属性名: isPersisted|@ohos.resourceschedule.workScheduler.d.ts| -|新增||模块名: ohos.resourceschedule.workScheduler
类名: WorkInfo
方法名 or 属性名: networkType|@ohos.resourceschedule.workScheduler.d.ts| -|新增||模块名: ohos.resourceschedule.workScheduler
类名: WorkInfo
方法名 or 属性名: isCharging|@ohos.resourceschedule.workScheduler.d.ts| -|新增||模块名: ohos.resourceschedule.workScheduler
类名: WorkInfo
方法名 or 属性名: chargerType|@ohos.resourceschedule.workScheduler.d.ts| -|新增||模块名: ohos.resourceschedule.workScheduler
类名: WorkInfo
方法名 or 属性名: batteryLevel|@ohos.resourceschedule.workScheduler.d.ts| -|新增||模块名: ohos.resourceschedule.workScheduler
类名: WorkInfo
方法名 or 属性名: batteryStatus|@ohos.resourceschedule.workScheduler.d.ts| -|新增||模块名: ohos.resourceschedule.workScheduler
类名: WorkInfo
方法名 or 属性名: storageRequest|@ohos.resourceschedule.workScheduler.d.ts| -|新增||模块名: ohos.resourceschedule.workScheduler
类名: WorkInfo
方法名 or 属性名: repeatCycleTime|@ohos.resourceschedule.workScheduler.d.ts| -|新增||模块名: ohos.resourceschedule.workScheduler
类名: WorkInfo
方法名 or 属性名: isRepeat|@ohos.resourceschedule.workScheduler.d.ts| -|新增||模块名: ohos.resourceschedule.workScheduler
类名: WorkInfo
方法名 or 属性名: repeatCount|@ohos.resourceschedule.workScheduler.d.ts| -|新增||模块名: ohos.resourceschedule.workScheduler
类名: WorkInfo
方法名 or 属性名: isDeepIdle|@ohos.resourceschedule.workScheduler.d.ts| -|新增||模块名: ohos.resourceschedule.workScheduler
类名: WorkInfo
方法名 or 属性名: idleWaitTime|@ohos.resourceschedule.workScheduler.d.ts| -|新增||模块名: ohos.resourceschedule.workScheduler
类名: WorkInfo
方法名 or 属性名: parameters|@ohos.resourceschedule.workScheduler.d.ts| -|新增||模块名: ohos.resourceschedule.workScheduler
类名: workScheduler
方法名 or 属性名: startWork|@ohos.resourceschedule.workScheduler.d.ts| -|新增||模块名: ohos.resourceschedule.workScheduler
类名: workScheduler
方法名 or 属性名: stopWork|@ohos.resourceschedule.workScheduler.d.ts| -|新增||模块名: ohos.resourceschedule.workScheduler
类名: workScheduler
方法名 or 属性名: getWorkStatus|@ohos.resourceschedule.workScheduler.d.ts| -|新增||模块名: ohos.resourceschedule.workScheduler
类名: workScheduler
方法名 or 属性名: getWorkStatus|@ohos.resourceschedule.workScheduler.d.ts| -|新增||模块名: ohos.resourceschedule.workScheduler
类名: workScheduler
方法名 or 属性名: obtainAllWorks|@ohos.resourceschedule.workScheduler.d.ts| -|新增||模块名: ohos.resourceschedule.workScheduler
类名: workScheduler
方法名 or 属性名: obtainAllWorks|@ohos.resourceschedule.workScheduler.d.ts| -|新增||模块名: ohos.resourceschedule.workScheduler
类名: workScheduler
方法名 or 属性名: stopAndClearWorks|@ohos.resourceschedule.workScheduler.d.ts| -|新增||模块名: ohos.resourceschedule.workScheduler
类名: workScheduler
方法名 or 属性名: isLastWorkTimeOut|@ohos.resourceschedule.workScheduler.d.ts| -|新增||模块名: ohos.resourceschedule.workScheduler
类名: workScheduler
方法名 or 属性名: isLastWorkTimeOut|@ohos.resourceschedule.workScheduler.d.ts| -|新增||模块名: ohos.resourceschedule.workScheduler
类名: NetworkType|@ohos.resourceschedule.workScheduler.d.ts| -|新增||模块名: ohos.resourceschedule.workScheduler
类名: NetworkType
方法名 or 属性名: NETWORK_TYPE_ANY|@ohos.resourceschedule.workScheduler.d.ts| -|新增||模块名: ohos.resourceschedule.workScheduler
类名: NetworkType
方法名 or 属性名: NETWORK_TYPE_MOBILE|@ohos.resourceschedule.workScheduler.d.ts| -|新增||模块名: ohos.resourceschedule.workScheduler
类名: NetworkType
方法名 or 属性名: NETWORK_TYPE_WIFI|@ohos.resourceschedule.workScheduler.d.ts| -|新增||模块名: ohos.resourceschedule.workScheduler
类名: NetworkType
方法名 or 属性名: NETWORK_TYPE_BLUETOOTH|@ohos.resourceschedule.workScheduler.d.ts| -|新增||模块名: ohos.resourceschedule.workScheduler
类名: NetworkType
方法名 or 属性名: NETWORK_TYPE_WIFI_P2P|@ohos.resourceschedule.workScheduler.d.ts| -|新增||模块名: ohos.resourceschedule.workScheduler
类名: NetworkType
方法名 or 属性名: NETWORK_TYPE_ETHERNET|@ohos.resourceschedule.workScheduler.d.ts| -|新增||模块名: ohos.resourceschedule.workScheduler
类名: ChargingType|@ohos.resourceschedule.workScheduler.d.ts| -|新增||模块名: ohos.resourceschedule.workScheduler
类名: ChargingType
方法名 or 属性名: CHARGING_PLUGGED_ANY|@ohos.resourceschedule.workScheduler.d.ts| -|新增||模块名: ohos.resourceschedule.workScheduler
类名: ChargingType
方法名 or 属性名: CHARGING_PLUGGED_AC|@ohos.resourceschedule.workScheduler.d.ts| -|新增||模块名: ohos.resourceschedule.workScheduler
类名: ChargingType
方法名 or 属性名: CHARGING_PLUGGED_USB|@ohos.resourceschedule.workScheduler.d.ts| -|新增||模块名: ohos.resourceschedule.workScheduler
类名: ChargingType
方法名 or 属性名: CHARGING_PLUGGED_WIRELESS|@ohos.resourceschedule.workScheduler.d.ts| -|新增||模块名: ohos.resourceschedule.workScheduler
类名: BatteryStatus|@ohos.resourceschedule.workScheduler.d.ts| -|新增||模块名: ohos.resourceschedule.workScheduler
类名: BatteryStatus
方法名 or 属性名: BATTERY_STATUS_LOW|@ohos.resourceschedule.workScheduler.d.ts| -|新增||模块名: ohos.resourceschedule.workScheduler
类名: BatteryStatus
方法名 or 属性名: BATTERY_STATUS_OKAY|@ohos.resourceschedule.workScheduler.d.ts| -|新增||模块名: ohos.resourceschedule.workScheduler
类名: BatteryStatus
方法名 or 属性名: BATTERY_STATUS_LOW_OR_OKAY|@ohos.resourceschedule.workScheduler.d.ts| -|新增||模块名: ohos.resourceschedule.workScheduler
类名: StorageRequest|@ohos.resourceschedule.workScheduler.d.ts| -|新增||模块名: ohos.resourceschedule.workScheduler
类名: StorageRequest
方法名 or 属性名: STORAGE_LEVEL_LOW|@ohos.resourceschedule.workScheduler.d.ts| -|新增||模块名: ohos.resourceschedule.workScheduler
类名: StorageRequest
方法名 or 属性名: STORAGE_LEVEL_OKAY|@ohos.resourceschedule.workScheduler.d.ts| -|新增||模块名: ohos.resourceschedule.workScheduler
类名: StorageRequest
方法名 or 属性名: STORAGE_LEVEL_LOW_OR_OKAY|@ohos.resourceschedule.workScheduler.d.ts| -|删除|模块名: ohos.bundleState
类名: BundleActiveFormInfo||@ohos.bundleState.d.ts| -|删除|模块名: ohos.bundleState
类名: BundleActiveFormInfo
方法名 or 属性名:formName||@ohos.bundleState.d.ts| -|删除|模块名: ohos.bundleState
类名: BundleActiveFormInfo
方法名 or 属性名:formDimension||@ohos.bundleState.d.ts| -|删除|模块名: ohos.bundleState
类名: BundleActiveFormInfo
方法名 or 属性名:formId||@ohos.bundleState.d.ts| -|删除|模块名: ohos.bundleState
类名: BundleActiveFormInfo
方法名 or 属性名:formLastUsedTime||@ohos.bundleState.d.ts| -|删除|模块名: ohos.bundleState
类名: BundleActiveFormInfo
方法名 or 属性名:count||@ohos.bundleState.d.ts| -|删除|模块名: ohos.bundleState
类名: BundleActiveModuleInfo||@ohos.bundleState.d.ts| -|删除|模块名: ohos.bundleState
类名: BundleActiveModuleInfo
方法名 or 属性名:deviceId||@ohos.bundleState.d.ts| -|删除|模块名: ohos.bundleState
类名: BundleActiveModuleInfo
方法名 or 属性名:bundleName||@ohos.bundleState.d.ts| -|删除|模块名: ohos.bundleState
类名: BundleActiveModuleInfo
方法名 or 属性名:moduleName||@ohos.bundleState.d.ts| -|删除|模块名: ohos.bundleState
类名: BundleActiveModuleInfo
方法名 or 属性名:abilityName||@ohos.bundleState.d.ts| -|删除|模块名: ohos.bundleState
类名: BundleActiveModuleInfo
方法名 or 属性名:appLabelId||@ohos.bundleState.d.ts| -|删除|模块名: ohos.bundleState
类名: BundleActiveModuleInfo
方法名 or 属性名:labelId||@ohos.bundleState.d.ts| -|删除|模块名: ohos.bundleState
类名: BundleActiveModuleInfo
方法名 or 属性名:descriptionId||@ohos.bundleState.d.ts| -|删除|模块名: ohos.bundleState
类名: BundleActiveModuleInfo
方法名 or 属性名:abilityLableId||@ohos.bundleState.d.ts| -|删除|模块名: ohos.bundleState
类名: BundleActiveModuleInfo
方法名 or 属性名:abilityDescriptionId||@ohos.bundleState.d.ts| -|删除|模块名: ohos.bundleState
类名: BundleActiveModuleInfo
方法名 or 属性名:abilityIconId||@ohos.bundleState.d.ts| -|删除|模块名: ohos.bundleState
类名: BundleActiveModuleInfo
方法名 or 属性名:launchedCount||@ohos.bundleState.d.ts| -|删除|模块名: ohos.bundleState
类名: BundleActiveModuleInfo
方法名 or 属性名:lastModuleUsedTime||@ohos.bundleState.d.ts| -|删除|模块名: ohos.bundleState
类名: BundleActiveModuleInfo
方法名 or 属性名:formRecords||@ohos.bundleState.d.ts| -|删除|模块名: ohos.bundleState
类名: BundleActiveEventState||@ohos.bundleState.d.ts| -|删除|模块名: ohos.bundleState
类名: BundleActiveEventState
方法名 or 属性名:name||@ohos.bundleState.d.ts| -|删除|模块名: ohos.bundleState
类名: BundleActiveEventState
方法名 or 属性名:eventId||@ohos.bundleState.d.ts| -|删除|模块名: ohos.bundleState
类名: BundleActiveEventState
方法名 or 属性名:count||@ohos.bundleState.d.ts| -|删除|模块名: ohos.bundleState
类名: BundleActiveGroupCallbackInfo||@ohos.bundleState.d.ts| -|删除|模块名: ohos.bundleState
类名: BundleActiveGroupCallbackInfo
方法名 or 属性名:appUsageOldGroup||@ohos.bundleState.d.ts| -|删除|模块名: ohos.bundleState
类名: BundleActiveGroupCallbackInfo
方法名 or 属性名:appUsageNewGroup||@ohos.bundleState.d.ts| -|删除|模块名: ohos.bundleState
类名: BundleActiveGroupCallbackInfo
方法名 or 属性名:userId||@ohos.bundleState.d.ts| -|删除|模块名: ohos.bundleState
类名: BundleActiveGroupCallbackInfo
方法名 or 属性名:changeReason||@ohos.bundleState.d.ts| -|删除|模块名: ohos.bundleState
类名: BundleActiveGroupCallbackInfo
方法名 or 属性名:bundleName||@ohos.bundleState.d.ts| -|删除|模块名:ohos.bundleState
类名:bundleState
方法名 or 属性名:getRecentlyUsedModules||@ohos.bundleState.d.ts| -|删除|模块名:ohos.bundleState
类名:bundleState
方法名 or 属性名:getRecentlyUsedModules||@ohos.bundleState.d.ts| -|删除|模块名:ohos.bundleState
类名:bundleState
方法名 or 属性名:getRecentlyUsedModules||@ohos.bundleState.d.ts| -|删除|模块名: ohos.bundleState
类名: GroupType||@ohos.bundleState.d.ts| -|删除|模块名: ohos.bundleState
类名: GroupType
方法名 or 属性名:ACTIVE_GROUP_ALIVE||@ohos.bundleState.d.ts| -|删除|模块名: ohos.bundleState
类名: GroupType
方法名 or 属性名:ACTIVE_GROUP_DAILY||@ohos.bundleState.d.ts| -|删除|模块名: ohos.bundleState
类名: GroupType
方法名 or 属性名:ACTIVE_GROUP_FIXED||@ohos.bundleState.d.ts| -|删除|模块名: ohos.bundleState
类名: GroupType
方法名 or 属性名:ACTIVE_GROUP_RARE||@ohos.bundleState.d.ts| -|删除|模块名: ohos.bundleState
类名: GroupType
方法名 or 属性名:ACTIVE_GROUP_LIMIT||@ohos.bundleState.d.ts| -|删除|模块名: ohos.bundleState
类名: GroupType
方法名 or 属性名:ACTIVE_GROUP_NEVER||@ohos.bundleState.d.ts| -|删除|模块名:ohos.bundleState
类名:bundleState
方法名 or 属性名:setBundleGroup||@ohos.bundleState.d.ts| -|删除|模块名:ohos.bundleState
类名:bundleState
方法名 or 属性名:setBundleGroup||@ohos.bundleState.d.ts| -|删除|模块名:ohos.bundleState
类名:bundleState
方法名 or 属性名:registerGroupCallBack||@ohos.bundleState.d.ts| -|删除|模块名:ohos.bundleState
类名:bundleState
方法名 or 属性名:registerGroupCallBack||@ohos.bundleState.d.ts| -|删除|模块名:ohos.bundleState
类名:bundleState
方法名 or 属性名:unRegisterGroupCallBack||@ohos.bundleState.d.ts| -|删除|模块名:ohos.bundleState
类名:bundleState
方法名 or 属性名:unRegisterGroupCallBack||@ohos.bundleState.d.ts| -|删除|模块名:ohos.bundleState
类名:bundleState
方法名 or 属性名:queryBundleActiveEventStates||@ohos.bundleState.d.ts| -|删除|模块名:ohos.bundleState
类名:bundleState
方法名 or 属性名:queryBundleActiveEventStates||@ohos.bundleState.d.ts| -|删除|模块名:ohos.bundleState
类名:bundleState
方法名 or 属性名:queryAppNotificationNumber||@ohos.bundleState.d.ts| -|删除|模块名:ohos.bundleState
类名:bundleState
方法名 or 属性名:queryAppNotificationNumber||@ohos.bundleState.d.ts| +|新增|NA|模块名: ohos.backgroundTaskManager
类名: ResourceType|@ohos.backgroundTaskManager.d.ts| +|新增|NA|模块名: ohos.backgroundTaskManager
类名: ResourceType
方法名 or 属性名:CPU|@ohos.backgroundTaskManager.d.ts| +|新增|NA|模块名: ohos.backgroundTaskManager
类名: ResourceType
方法名 or 属性名:COMMON_EVENT|@ohos.backgroundTaskManager.d.ts| +|新增|NA|模块名: ohos.backgroundTaskManager
类名: ResourceType
方法名 or 属性名:TIMER|@ohos.backgroundTaskManager.d.ts| +|新增|NA|模块名: ohos.backgroundTaskManager
类名: ResourceType
方法名 or 属性名:WORK_SCHEDULER|@ohos.backgroundTaskManager.d.ts| +|新增|NA|模块名: ohos.backgroundTaskManager
类名: ResourceType
方法名 or 属性名:BLUETOOTH|@ohos.backgroundTaskManager.d.ts| +|新增|NA|模块名: ohos.backgroundTaskManager
类名: ResourceType
方法名 or 属性名:GPS|@ohos.backgroundTaskManager.d.ts| +|新增|NA|模块名: ohos.backgroundTaskManager
类名: ResourceType
方法名 or 属性名:AUDIO|@ohos.backgroundTaskManager.d.ts| +|新增|NA|模块名: ohos.backgroundTaskManager
类名: EfficiencyResourcesRequest|@ohos.backgroundTaskManager.d.ts| +|新增|NA|模块名: ohos.backgroundTaskManager
类名: EfficiencyResourcesRequest
方法名 or 属性名:resourceTypes|@ohos.backgroundTaskManager.d.ts| +|新增|NA|模块名: ohos.backgroundTaskManager
类名: EfficiencyResourcesRequest
方法名 or 属性名:isApply|@ohos.backgroundTaskManager.d.ts| +|新增|NA|模块名: ohos.backgroundTaskManager
类名: EfficiencyResourcesRequest
方法名 or 属性名:timeOut|@ohos.backgroundTaskManager.d.ts| +|新增|NA|模块名: ohos.backgroundTaskManager
类名: EfficiencyResourcesRequest
方法名 or 属性名:isPersist|@ohos.backgroundTaskManager.d.ts| +|新增|NA|模块名: ohos.backgroundTaskManager
类名: EfficiencyResourcesRequest
方法名 or 属性名:isProcess|@ohos.backgroundTaskManager.d.ts| +|新增|NA|模块名: ohos.backgroundTaskManager
类名: EfficiencyResourcesRequest
方法名 or 属性名:reason|@ohos.backgroundTaskManager.d.ts| +|新增|NA|模块名: ohos.resourceschedule.backgroundTaskManager
类名: backgroundTaskManager|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|新增|NA|模块名: ohos.resourceschedule.backgroundTaskManager
类名: DelaySuspendInfo|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|新增|NA|模块名: ohos.resourceschedule.backgroundTaskManager
类名: DelaySuspendInfo
方法名 or 属性名: requestId|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|新增|NA|模块名: ohos.resourceschedule.backgroundTaskManager
类名: DelaySuspendInfo
方法名 or 属性名: actualDelayTime|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|新增|NA|模块名: ohos.resourceschedule.backgroundTaskManager
类名: backgroundTaskManager
方法名 or 属性名: cancelSuspendDelay|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|新增|NA|模块名: ohos.resourceschedule.backgroundTaskManager
类名: backgroundTaskManager
方法名 or 属性名: getRemainingDelayTime|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|新增|NA|模块名: ohos.resourceschedule.backgroundTaskManager
类名: backgroundTaskManager
方法名 or 属性名: getRemainingDelayTime|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|新增|NA|模块名: ohos.resourceschedule.backgroundTaskManager
类名: backgroundTaskManager
方法名 or 属性名: requestSuspendDelay|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|新增|NA|模块名: ohos.resourceschedule.backgroundTaskManager
类名: backgroundTaskManager
方法名 or 属性名: startBackgroundRunning|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|新增|NA|模块名: ohos.resourceschedule.backgroundTaskManager
类名: backgroundTaskManager
方法名 or 属性名: startBackgroundRunning|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|新增|NA|模块名: ohos.resourceschedule.backgroundTaskManager
类名: backgroundTaskManager
方法名 or 属性名: stopBackgroundRunning|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|新增|NA|模块名: ohos.resourceschedule.backgroundTaskManager
类名: backgroundTaskManager
方法名 or 属性名: stopBackgroundRunning|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|新增|NA|模块名: ohos.resourceschedule.backgroundTaskManager
类名: backgroundTaskManager
方法名 or 属性名: applyEfficiencyResources|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|新增|NA|模块名: ohos.resourceschedule.backgroundTaskManager
类名: backgroundTaskManager
方法名 or 属性名: resetAllEfficiencyResources|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|新增|NA|模块名: ohos.resourceschedule.backgroundTaskManager
类名: BackgroundMode|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|新增|NA|模块名: ohos.resourceschedule.backgroundTaskManager
类名: BackgroundMode
方法名 or 属性名: DATA_TRANSFER|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|新增|NA|模块名: ohos.resourceschedule.backgroundTaskManager
类名: BackgroundMode
方法名 or 属性名: AUDIO_PLAYBACK|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|新增|NA|模块名: ohos.resourceschedule.backgroundTaskManager
类名: BackgroundMode
方法名 or 属性名: AUDIO_RECORDING|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|新增|NA|模块名: ohos.resourceschedule.backgroundTaskManager
类名: BackgroundMode
方法名 or 属性名: LOCATION|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|新增|NA|模块名: ohos.resourceschedule.backgroundTaskManager
类名: BackgroundMode
方法名 or 属性名: BLUETOOTH_INTERACTION|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|新增|NA|模块名: ohos.resourceschedule.backgroundTaskManager
类名: BackgroundMode
方法名 or 属性名: MULTI_DEVICE_CONNECTION|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|新增|NA|模块名: ohos.resourceschedule.backgroundTaskManager
类名: BackgroundMode
方法名 or 属性名: WIFI_INTERACTION|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|新增|NA|模块名: ohos.resourceschedule.backgroundTaskManager
类名: BackgroundMode
方法名 or 属性名: VOIP|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|新增|NA|模块名: ohos.resourceschedule.backgroundTaskManager
类名: BackgroundMode
方法名 or 属性名: TASK_KEEPING|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|新增|NA|模块名: ohos.resourceschedule.backgroundTaskManager
类名: ResourceType|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|新增|NA|模块名: ohos.resourceschedule.backgroundTaskManager
类名: ResourceType
方法名 or 属性名: CPU|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|新增|NA|模块名: ohos.resourceschedule.backgroundTaskManager
类名: ResourceType
方法名 or 属性名: COMMON_EVENT|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|新增|NA|模块名: ohos.resourceschedule.backgroundTaskManager
类名: ResourceType
方法名 or 属性名: TIMER|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|新增|NA|模块名: ohos.resourceschedule.backgroundTaskManager
类名: ResourceType
方法名 or 属性名: WORK_SCHEDULER|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|新增|NA|模块名: ohos.resourceschedule.backgroundTaskManager
类名: ResourceType
方法名 or 属性名: BLUETOOTH|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|新增|NA|模块名: ohos.resourceschedule.backgroundTaskManager
类名: ResourceType
方法名 or 属性名: GPS|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|新增|NA|模块名: ohos.resourceschedule.backgroundTaskManager
类名: ResourceType
方法名 or 属性名: AUDIO|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|新增|NA|模块名: ohos.resourceschedule.backgroundTaskManager
类名: EfficiencyResourcesRequest|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|新增|NA|模块名: ohos.resourceschedule.backgroundTaskManager
类名: EfficiencyResourcesRequest
方法名 or 属性名: resourceTypes|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|新增|NA|模块名: ohos.resourceschedule.backgroundTaskManager
类名: EfficiencyResourcesRequest
方法名 or 属性名: isApply|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|新增|NA|模块名: ohos.resourceschedule.backgroundTaskManager
类名: EfficiencyResourcesRequest
方法名 or 属性名: timeOut|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|新增|NA|模块名: ohos.resourceschedule.backgroundTaskManager
类名: EfficiencyResourcesRequest
方法名 or 属性名: isPersist|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|新增|NA|模块名: ohos.resourceschedule.backgroundTaskManager
类名: EfficiencyResourcesRequest
方法名 or 属性名: isProcess|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|新增|NA|模块名: ohos.resourceschedule.backgroundTaskManager
类名: EfficiencyResourcesRequest
方法名 or 属性名: reason|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: BundleStatsInfo|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: BundleStatsInfo
方法名 or 属性名: id|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: BundleStatsInfo
方法名 or 属性名: abilityInFgTotalTime|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: BundleStatsInfo
方法名 or 属性名: abilityPrevAccessTime|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: BundleStatsInfo
方法名 or 属性名: abilityPrevSeenTime|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: BundleStatsInfo
方法名 or 属性名: abilitySeenTotalTime|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: BundleStatsInfo
方法名 or 属性名: bundleName|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: BundleStatsInfo
方法名 or 属性名: fgAbilityAccessTotalTime|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: BundleStatsInfo
方法名 or 属性名: fgAbilityPrevAccessTime|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: BundleStatsInfo
方法名 or 属性名: infosBeginTime|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: BundleStatsInfo
方法名 or 属性名: infosEndTime|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: HapFormInfo|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: HapFormInfo
方法名 or 属性名: formName|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: HapFormInfo
方法名 or 属性名: formDimension|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: HapFormInfo
方法名 or 属性名: formId|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: HapFormInfo
方法名 or 属性名: formLastUsedTime|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: HapFormInfo
方法名 or 属性名: count|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: HapModuleInfo|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: HapModuleInfo
方法名 or 属性名: deviceId|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: HapModuleInfo
方法名 or 属性名: bundleName|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: HapModuleInfo
方法名 or 属性名: moduleName|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: HapModuleInfo
方法名 or 属性名: abilityName|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: HapModuleInfo
方法名 or 属性名: appLabelId|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: HapModuleInfo
方法名 or 属性名: labelId|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: HapModuleInfo
方法名 or 属性名: descriptionId|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: HapModuleInfo
方法名 or 属性名: abilityLableId|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: HapModuleInfo
方法名 or 属性名: abilityDescriptionId|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: HapModuleInfo
方法名 or 属性名: abilityIconId|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: HapModuleInfo
方法名 or 属性名: launchedCount|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: HapModuleInfo
方法名 or 属性名: lastModuleUsedTime|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: HapModuleInfo
方法名 or 属性名: formRecords|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: DeviceEventStats|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: DeviceEventStats
方法名 or 属性名: name|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: DeviceEventStats
方法名 or 属性名: eventId|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: DeviceEventStats
方法名 or 属性名: count|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: BundleEvents|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: BundleEvents
方法名 or 属性名: appGroup|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: BundleEvents
方法名 or 属性名: bundleName|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: BundleEvents
方法名 or 属性名: indexOfLink|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: BundleEvents
方法名 or 属性名: nameOfClass|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: BundleEvents
方法名 or 属性名: eventOccurredTime|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: BundleEvents
方法名 or 属性名: eventId|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: AppGroupCallbackInfo|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: AppGroupCallbackInfo
方法名 or 属性名: appOldGroup|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: AppGroupCallbackInfo
方法名 or 属性名: appNewGroup|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: AppGroupCallbackInfo
方法名 or 属性名: userId|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: AppGroupCallbackInfo
方法名 or 属性名: changeReason|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: AppGroupCallbackInfo
方法名 or 属性名: bundleName|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法名 or 属性名: isIdleState|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法名 or 属性名: isIdleState|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法名 or 属性名: queryAppGroup|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法名 or 属性名: queryAppGroup|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法名 or 属性名: queryAppGroup|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法名 or 属性名: queryAppGroup|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: BundleStatsMap|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: BundleStatsMap
方法名 or 属性名: BundleStatsMap|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法名 or 属性名: queryBundleStatsInfos|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法名 or 属性名: queryBundleStatsInfos|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: IntervalType|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: IntervalType
方法名 or 属性名: BY_OPTIMIZED|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: IntervalType
方法名 or 属性名: BY_DAILY|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: IntervalType
方法名 or 属性名: BY_WEEKLY|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: IntervalType
方法名 or 属性名: BY_MONTHLY|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: IntervalType
方法名 or 属性名: BY_ANNUALLY|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法名 or 属性名: queryBundleStatsInfoByInterval|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法名 or 属性名: queryBundleStatsInfoByInterval|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法名 or 属性名: queryBundleEvents|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法名 or 属性名: queryBundleEvents|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法名 or 属性名: queryCurrentBundleEvents|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法名 or 属性名: queryCurrentBundleEvents|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法名 or 属性名: queryModuleUsageRecords|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法名 or 属性名: queryModuleUsageRecords|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法名 or 属性名: queryModuleUsageRecords|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法名 or 属性名: queryModuleUsageRecords|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: GroupType|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: GroupType
方法名 or 属性名: ALIVE_GROUP|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: GroupType
方法名 or 属性名: DAILY_GROUP|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: GroupType
方法名 or 属性名: FIXED_GROUP|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: GroupType
方法名 or 属性名: RARE_GROUP|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: GroupType
方法名 or 属性名: LIMITED_GROUP|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: GroupType
方法名 or 属性名: NEVER_GROUP|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法名 or 属性名: setAppGroup|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法名 or 属性名: setAppGroup|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法名 or 属性名: registerAppGroupCallBack|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法名 or 属性名: registerAppGroupCallBack|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法名 or 属性名: unregisterAppGroupCallBack|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法名 or 属性名: unregisterAppGroupCallBack|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法名 or 属性名: queryDeviceEventStats|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法名 or 属性名: queryDeviceEventStats|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法名 or 属性名: queryNotificationEventStats|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法名 or 属性名: queryNotificationEventStats|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.workScheduler
类名: workScheduler|@ohos.resourceschedule.workScheduler.d.ts| +|新增|NA|模块名: ohos.resourceschedule.workScheduler
类名: WorkInfo|@ohos.resourceschedule.workScheduler.d.ts| +|新增|NA|模块名: ohos.resourceschedule.workScheduler
类名: WorkInfo
方法名 or 属性名: workId|@ohos.resourceschedule.workScheduler.d.ts| +|新增|NA|模块名: ohos.resourceschedule.workScheduler
类名: WorkInfo
方法名 or 属性名: bundleName|@ohos.resourceschedule.workScheduler.d.ts| +|新增|NA|模块名: ohos.resourceschedule.workScheduler
类名: WorkInfo
方法名 or 属性名: abilityName|@ohos.resourceschedule.workScheduler.d.ts| +|新增|NA|模块名: ohos.resourceschedule.workScheduler
类名: WorkInfo
方法名 or 属性名: isPersisted|@ohos.resourceschedule.workScheduler.d.ts| +|新增|NA|模块名: ohos.resourceschedule.workScheduler
类名: WorkInfo
方法名 or 属性名: networkType|@ohos.resourceschedule.workScheduler.d.ts| +|新增|NA|模块名: ohos.resourceschedule.workScheduler
类名: WorkInfo
方法名 or 属性名: isCharging|@ohos.resourceschedule.workScheduler.d.ts| +|新增|NA|模块名: ohos.resourceschedule.workScheduler
类名: WorkInfo
方法名 or 属性名: chargerType|@ohos.resourceschedule.workScheduler.d.ts| +|新增|NA|模块名: ohos.resourceschedule.workScheduler
类名: WorkInfo
方法名 or 属性名: batteryLevel|@ohos.resourceschedule.workScheduler.d.ts| +|新增|NA|模块名: ohos.resourceschedule.workScheduler
类名: WorkInfo
方法名 or 属性名: batteryStatus|@ohos.resourceschedule.workScheduler.d.ts| +|新增|NA|模块名: ohos.resourceschedule.workScheduler
类名: WorkInfo
方法名 or 属性名: storageRequest|@ohos.resourceschedule.workScheduler.d.ts| +|新增|NA|模块名: ohos.resourceschedule.workScheduler
类名: WorkInfo
方法名 or 属性名: repeatCycleTime|@ohos.resourceschedule.workScheduler.d.ts| +|新增|NA|模块名: ohos.resourceschedule.workScheduler
类名: WorkInfo
方法名 or 属性名: isRepeat|@ohos.resourceschedule.workScheduler.d.ts| +|新增|NA|模块名: ohos.resourceschedule.workScheduler
类名: WorkInfo
方法名 or 属性名: repeatCount|@ohos.resourceschedule.workScheduler.d.ts| +|新增|NA|模块名: ohos.resourceschedule.workScheduler
类名: WorkInfo
方法名 or 属性名: isDeepIdle|@ohos.resourceschedule.workScheduler.d.ts| +|新增|NA|模块名: ohos.resourceschedule.workScheduler
类名: WorkInfo
方法名 or 属性名: idleWaitTime|@ohos.resourceschedule.workScheduler.d.ts| +|新增|NA|模块名: ohos.resourceschedule.workScheduler
类名: WorkInfo
方法名 or 属性名: parameters|@ohos.resourceschedule.workScheduler.d.ts| +|新增|NA|模块名: ohos.resourceschedule.workScheduler
类名: workScheduler
方法名 or 属性名: startWork|@ohos.resourceschedule.workScheduler.d.ts| +|新增|NA|模块名: ohos.resourceschedule.workScheduler
类名: workScheduler
方法名 or 属性名: stopWork|@ohos.resourceschedule.workScheduler.d.ts| +|新增|NA|模块名: ohos.resourceschedule.workScheduler
类名: workScheduler
方法名 or 属性名: getWorkStatus|@ohos.resourceschedule.workScheduler.d.ts| +|新增|NA|模块名: ohos.resourceschedule.workScheduler
类名: workScheduler
方法名 or 属性名: getWorkStatus|@ohos.resourceschedule.workScheduler.d.ts| +|新增|NA|模块名: ohos.resourceschedule.workScheduler
类名: workScheduler
方法名 or 属性名: obtainAllWorks|@ohos.resourceschedule.workScheduler.d.ts| +|新增|NA|模块名: ohos.resourceschedule.workScheduler
类名: workScheduler
方法名 or 属性名: obtainAllWorks|@ohos.resourceschedule.workScheduler.d.ts| +|新增|NA|模块名: ohos.resourceschedule.workScheduler
类名: workScheduler
方法名 or 属性名: stopAndClearWorks|@ohos.resourceschedule.workScheduler.d.ts| +|新增|NA|模块名: ohos.resourceschedule.workScheduler
类名: workScheduler
方法名 or 属性名: isLastWorkTimeOut|@ohos.resourceschedule.workScheduler.d.ts| +|新增|NA|模块名: ohos.resourceschedule.workScheduler
类名: workScheduler
方法名 or 属性名: isLastWorkTimeOut|@ohos.resourceschedule.workScheduler.d.ts| +|新增|NA|模块名: ohos.resourceschedule.workScheduler
类名: NetworkType|@ohos.resourceschedule.workScheduler.d.ts| +|新增|NA|模块名: ohos.resourceschedule.workScheduler
类名: NetworkType
方法名 or 属性名: NETWORK_TYPE_ANY|@ohos.resourceschedule.workScheduler.d.ts| +|新增|NA|模块名: ohos.resourceschedule.workScheduler
类名: NetworkType
方法名 or 属性名: NETWORK_TYPE_MOBILE|@ohos.resourceschedule.workScheduler.d.ts| +|新增|NA|模块名: ohos.resourceschedule.workScheduler
类名: NetworkType
方法名 or 属性名: NETWORK_TYPE_WIFI|@ohos.resourceschedule.workScheduler.d.ts| +|新增|NA|模块名: ohos.resourceschedule.workScheduler
类名: NetworkType
方法名 or 属性名: NETWORK_TYPE_BLUETOOTH|@ohos.resourceschedule.workScheduler.d.ts| +|新增|NA|模块名: ohos.resourceschedule.workScheduler
类名: NetworkType
方法名 or 属性名: NETWORK_TYPE_WIFI_P2P|@ohos.resourceschedule.workScheduler.d.ts| +|新增|NA|模块名: ohos.resourceschedule.workScheduler
类名: NetworkType
方法名 or 属性名: NETWORK_TYPE_ETHERNET|@ohos.resourceschedule.workScheduler.d.ts| +|新增|NA|模块名: ohos.resourceschedule.workScheduler
类名: ChargingType|@ohos.resourceschedule.workScheduler.d.ts| +|新增|NA|模块名: ohos.resourceschedule.workScheduler
类名: ChargingType
方法名 or 属性名: CHARGING_PLUGGED_ANY|@ohos.resourceschedule.workScheduler.d.ts| +|新增|NA|模块名: ohos.resourceschedule.workScheduler
类名: ChargingType
方法名 or 属性名: CHARGING_PLUGGED_AC|@ohos.resourceschedule.workScheduler.d.ts| +|新增|NA|模块名: ohos.resourceschedule.workScheduler
类名: ChargingType
方法名 or 属性名: CHARGING_PLUGGED_USB|@ohos.resourceschedule.workScheduler.d.ts| +|新增|NA|模块名: ohos.resourceschedule.workScheduler
类名: ChargingType
方法名 or 属性名: CHARGING_PLUGGED_WIRELESS|@ohos.resourceschedule.workScheduler.d.ts| +|新增|NA|模块名: ohos.resourceschedule.workScheduler
类名: BatteryStatus|@ohos.resourceschedule.workScheduler.d.ts| +|新增|NA|模块名: ohos.resourceschedule.workScheduler
类名: BatteryStatus
方法名 or 属性名: BATTERY_STATUS_LOW|@ohos.resourceschedule.workScheduler.d.ts| +|新增|NA|模块名: ohos.resourceschedule.workScheduler
类名: BatteryStatus
方法名 or 属性名: BATTERY_STATUS_OKAY|@ohos.resourceschedule.workScheduler.d.ts| +|新增|NA|模块名: ohos.resourceschedule.workScheduler
类名: BatteryStatus
方法名 or 属性名: BATTERY_STATUS_LOW_OR_OKAY|@ohos.resourceschedule.workScheduler.d.ts| +|新增|NA|模块名: ohos.resourceschedule.workScheduler
类名: StorageRequest|@ohos.resourceschedule.workScheduler.d.ts| +|新增|NA|模块名: ohos.resourceschedule.workScheduler
类名: StorageRequest
方法名 or 属性名: STORAGE_LEVEL_LOW|@ohos.resourceschedule.workScheduler.d.ts| +|新增|NA|模块名: ohos.resourceschedule.workScheduler
类名: StorageRequest
方法名 or 属性名: STORAGE_LEVEL_OKAY|@ohos.resourceschedule.workScheduler.d.ts| +|新增|NA|模块名: ohos.resourceschedule.workScheduler
类名: StorageRequest
方法名 or 属性名: STORAGE_LEVEL_LOW_OR_OKAY|@ohos.resourceschedule.workScheduler.d.ts| +|删除|模块名: ohos.bundleState
类名: BundleActiveFormInfo|NA|@ohos.bundleState.d.ts| +|删除|模块名: ohos.bundleState
类名: BundleActiveFormInfo
方法名 or 属性名:formName|NA|@ohos.bundleState.d.ts| +|删除|模块名: ohos.bundleState
类名: BundleActiveFormInfo
方法名 or 属性名:formDimension|NA|@ohos.bundleState.d.ts| +|删除|模块名: ohos.bundleState
类名: BundleActiveFormInfo
方法名 or 属性名:formId|NA|@ohos.bundleState.d.ts| +|删除|模块名: ohos.bundleState
类名: BundleActiveFormInfo
方法名 or 属性名:formLastUsedTime|NA|@ohos.bundleState.d.ts| +|删除|模块名: ohos.bundleState
类名: BundleActiveFormInfo
方法名 or 属性名:count|NA|@ohos.bundleState.d.ts| +|删除|模块名: ohos.bundleState
类名: BundleActiveModuleInfo|NA|@ohos.bundleState.d.ts| +|删除|模块名: ohos.bundleState
类名: BundleActiveModuleInfo
方法名 or 属性名:deviceId|NA|@ohos.bundleState.d.ts| +|删除|模块名: ohos.bundleState
类名: BundleActiveModuleInfo
方法名 or 属性名:bundleName|NA|@ohos.bundleState.d.ts| +|删除|模块名: ohos.bundleState
类名: BundleActiveModuleInfo
方法名 or 属性名:moduleName|NA|@ohos.bundleState.d.ts| +|删除|模块名: ohos.bundleState
类名: BundleActiveModuleInfo
方法名 or 属性名:abilityName|NA|@ohos.bundleState.d.ts| +|删除|模块名: ohos.bundleState
类名: BundleActiveModuleInfo
方法名 or 属性名:appLabelId|NA|@ohos.bundleState.d.ts| +|删除|模块名: ohos.bundleState
类名: BundleActiveModuleInfo
方法名 or 属性名:labelId|NA|@ohos.bundleState.d.ts| +|删除|模块名: ohos.bundleState
类名: BundleActiveModuleInfo
方法名 or 属性名:descriptionId|NA|@ohos.bundleState.d.ts| +|删除|模块名: ohos.bundleState
类名: BundleActiveModuleInfo
方法名 or 属性名:abilityLableId|NA|@ohos.bundleState.d.ts| +|删除|模块名: ohos.bundleState
类名: BundleActiveModuleInfo
方法名 or 属性名:abilityDescriptionId|NA|@ohos.bundleState.d.ts| +|删除|模块名: ohos.bundleState
类名: BundleActiveModuleInfo
方法名 or 属性名:abilityIconId|NA|@ohos.bundleState.d.ts| +|删除|模块名: ohos.bundleState
类名: BundleActiveModuleInfo
方法名 or 属性名:launchedCount|NA|@ohos.bundleState.d.ts| +|删除|模块名: ohos.bundleState
类名: BundleActiveModuleInfo
方法名 or 属性名:lastModuleUsedTime|NA|@ohos.bundleState.d.ts| +|删除|模块名: ohos.bundleState
类名: BundleActiveModuleInfo
方法名 or 属性名:formRecords|NA|@ohos.bundleState.d.ts| +|删除|模块名: ohos.bundleState
类名: BundleActiveEventState|NA|@ohos.bundleState.d.ts| +|删除|模块名: ohos.bundleState
类名: BundleActiveEventState
方法名 or 属性名:name|NA|@ohos.bundleState.d.ts| +|删除|模块名: ohos.bundleState
类名: BundleActiveEventState
方法名 or 属性名:eventId|NA|@ohos.bundleState.d.ts| +|删除|模块名: ohos.bundleState
类名: BundleActiveEventState
方法名 or 属性名:count|NA|@ohos.bundleState.d.ts| +|删除|模块名: ohos.bundleState
类名: BundleActiveGroupCallbackInfo|NA|@ohos.bundleState.d.ts| +|删除|模块名: ohos.bundleState
类名: BundleActiveGroupCallbackInfo
方法名 or 属性名:appUsageOldGroup|NA|@ohos.bundleState.d.ts| +|删除|模块名: ohos.bundleState
类名: BundleActiveGroupCallbackInfo
方法名 or 属性名:appUsageNewGroup|NA|@ohos.bundleState.d.ts| +|删除|模块名: ohos.bundleState
类名: BundleActiveGroupCallbackInfo
方法名 or 属性名:userId|NA|@ohos.bundleState.d.ts| +|删除|模块名: ohos.bundleState
类名: BundleActiveGroupCallbackInfo
方法名 or 属性名:changeReason|NA|@ohos.bundleState.d.ts| +|删除|模块名: ohos.bundleState
类名: BundleActiveGroupCallbackInfo
方法名 or 属性名:bundleName|NA|@ohos.bundleState.d.ts| +|删除|模块名:ohos.bundleState
类名:bundleState
方法名 or 属性名:getRecentlyUsedModules|NA|@ohos.bundleState.d.ts| +|删除|模块名:ohos.bundleState
类名:bundleState
方法名 or 属性名:getRecentlyUsedModules|NA|@ohos.bundleState.d.ts| +|删除|模块名: ohos.bundleState
类名: GroupType|NA|@ohos.bundleState.d.ts| +|删除|模块名: ohos.bundleState
类名: GroupType
方法名 or 属性名:ACTIVE_GROUP_ALIVE|NA|@ohos.bundleState.d.ts| +|删除|模块名: ohos.bundleState
类名: GroupType
方法名 or 属性名:ACTIVE_GROUP_DAILY|NA|@ohos.bundleState.d.ts| +|删除|模块名: ohos.bundleState
类名: GroupType
方法名 or 属性名:ACTIVE_GROUP_FIXED|NA|@ohos.bundleState.d.ts| +|删除|模块名: ohos.bundleState
类名: GroupType
方法名 or 属性名:ACTIVE_GROUP_RARE|NA|@ohos.bundleState.d.ts| +|删除|模块名: ohos.bundleState
类名: GroupType
方法名 or 属性名:ACTIVE_GROUP_LIMIT|NA|@ohos.bundleState.d.ts| +|删除|模块名: ohos.bundleState
类名: GroupType
方法名 or 属性名:ACTIVE_GROUP_NEVER|NA|@ohos.bundleState.d.ts| +|删除|模块名:ohos.bundleState
类名:bundleState
方法名 or 属性名:setBundleGroup|NA|@ohos.bundleState.d.ts| +|删除|模块名:ohos.bundleState
类名:bundleState
方法名 or 属性名:setBundleGroup|NA|@ohos.bundleState.d.ts| +|删除|模块名:ohos.bundleState
类名:bundleState
方法名 or 属性名:registerGroupCallBack|NA|@ohos.bundleState.d.ts| +|删除|模块名:ohos.bundleState
类名:bundleState
方法名 or 属性名:registerGroupCallBack|NA|@ohos.bundleState.d.ts| +|删除|模块名:ohos.bundleState
类名:bundleState
方法名 or 属性名:unRegisterGroupCallBack|NA|@ohos.bundleState.d.ts| +|删除|模块名:ohos.bundleState
类名:bundleState
方法名 or 属性名:unRegisterGroupCallBack|NA|@ohos.bundleState.d.ts| +|删除|模块名:ohos.bundleState
类名:bundleState
方法名 or 属性名:queryBundleActiveEventStates|NA|@ohos.bundleState.d.ts| +|删除|模块名:ohos.bundleState
类名:bundleState
方法名 or 属性名:queryBundleActiveEventStates|NA|@ohos.bundleState.d.ts| +|删除|模块名:ohos.bundleState
类名:bundleState
方法名 or 属性名:queryAppNotificationNumber|NA|@ohos.bundleState.d.ts| +|删除|模块名:ohos.bundleState
类名:bundleState
方法名 or 属性名:queryAppNotificationNumber|NA|@ohos.bundleState.d.ts| |废弃版本有变化|类名:backgroundTaskManager
废弃版本:N/A|类名:backgroundTaskManager
废弃版本:9
代替接口:ohos.resourceschedule.backgroundTaskManager |@ohos.backgroundTaskManager.d.ts| |废弃版本有变化|类名:DelaySuspendInfo
废弃版本:N/A|类名:DelaySuspendInfo
废弃版本:9
代替接口:ohos.resourceschedule.backgroundTaskManager.DelaySuspendInfo |@ohos.backgroundTaskManager.d.ts| |废弃版本有变化|方法名 or 属性名:cancelSuspendDelay
废弃版本:N/A|方法名 or 属性名:cancelSuspendDelay
废弃版本:9
代替接口:ohos.resourceschedule.backgroundTaskManager.cancelSuspendDelay |@ohos.backgroundTaskManager.d.ts| @@ -238,11 +252,7 @@ |废弃版本有变化|方法名 or 属性名:startBackgroundRunning
废弃版本:N/A|方法名 or 属性名:startBackgroundRunning
废弃版本:9|@ohos.backgroundTaskManager.d.ts| |废弃版本有变化|方法名 or 属性名:stopBackgroundRunning
废弃版本:N/A|方法名 or 属性名:stopBackgroundRunning
废弃版本:9
代替接口:ohos.resourceschedule.backgroundTaskManager.stopBackgroundRunning |@ohos.backgroundTaskManager.d.ts| |废弃版本有变化|方法名 or 属性名:stopBackgroundRunning
废弃版本:N/A|方法名 or 属性名:stopBackgroundRunning
废弃版本:9|@ohos.backgroundTaskManager.d.ts| -|废弃版本有变化|方法名 or 属性名:applyEfficiencyResources
废弃版本:N/A|方法名 or 属性名:applyEfficiencyResources
废弃版本:9
代替接口:ohos.resourceschedule.backgroundTaskManager.applyEfficiencyResources |@ohos.backgroundTaskManager.d.ts| -|废弃版本有变化|方法名 or 属性名:resetAllEfficiencyResources
废弃版本:N/A|方法名 or 属性名:resetAllEfficiencyResources
废弃版本:9
代替接口:ohos.resourceschedule.backgroundTaskManager.resetAllEfficiencyResources |@ohos.backgroundTaskManager.d.ts| |废弃版本有变化|类名:BackgroundMode
废弃版本:N/A|类名:BackgroundMode
废弃版本:9
代替接口:ohos.resourceschedule.backgroundTaskManager.BackgroundMode |@ohos.backgroundTaskManager.d.ts| -|废弃版本有变化|类名:ResourceType
废弃版本:N/A|类名:ResourceType
废弃版本:9
代替接口:ohos.resourceschedule.backgroundTaskManager.ResourceType |@ohos.backgroundTaskManager.d.ts| -|废弃版本有变化|类名:EfficiencyResourcesRequest
废弃版本:N/A|类名:EfficiencyResourcesRequest
废弃版本:9
代替接口:ohos.resourceschedule.backgroundTaskManager.EfficiencyResourcesRequest |@ohos.backgroundTaskManager.d.ts| |废弃版本有变化|类名:bundleState
废弃版本:N/A|类名:bundleState
废弃版本:9
代替接口:ohos.resourceschedule.usageStatistics |@ohos.bundleState.d.ts| |废弃版本有变化|类名:BundleStateInfo
废弃版本:N/A|类名:BundleStateInfo
废弃版本:9
代替接口:ohos.resourceschedule.usageStatistics.BundleStatsInfo |@ohos.bundleState.d.ts| |废弃版本有变化|类名:BundleActiveState
废弃版本:N/A|类名:BundleActiveState
废弃版本:9
代替接口:ohos.resourceschedule.usageStatistics.BundleEvents |@ohos.bundleState.d.ts| diff --git a/zh-cn/release-notes/api-diff/monthly-202210/js-apidiff-security.md b/zh-cn/release-notes/api-diff/monthly-202210/js-apidiff-security.md index 1b13390af56fada68a336f1e0fcd207a888c3141..59d0a0553eaaf2cfe9d459099b64fffcbdb907b6 100644 --- a/zh-cn/release-notes/api-diff/monthly-202210/js-apidiff-security.md +++ b/zh-cn/release-notes/api-diff/monthly-202210/js-apidiff-security.md @@ -1,76 +1,251 @@ -| 操作 | 新版本 | 旧版本 | d.ts文件 | +| 操作 | 旧版本 | 新版本 | d.ts文件 | | ---- | ------ | ------ | -------- | -|新增||模块名:ohos.abilityAccessCtrl
类名:AtManager
方法名 or 属性名:checkAccessToken|@ohos.abilityAccessCtrl.d.ts| -|新增||方法名 or 属性名:grantUserGrantedPermission
函数:grantUserGrantedPermission(tokenID: number, permissionName: Permissions, permissionFlag: number): Promise;|@ohos.abilityAccessCtrl.d.ts| -|新增||方法名 or 属性名:grantUserGrantedPermission
函数:grantUserGrantedPermission(tokenID: number, permissionName: Permissions, permissionFlag: number, callback: AsyncCallback): void;|@ohos.abilityAccessCtrl.d.ts| -|新增||方法名 or 属性名:revokeUserGrantedPermission
函数:revokeUserGrantedPermission(tokenID: number, permissionName: Permissions, permissionFlag: number): Promise;|@ohos.abilityAccessCtrl.d.ts| -|新增||方法名 or 属性名:revokeUserGrantedPermission
函数:revokeUserGrantedPermission(tokenID: number, permissionName: Permissions, permissionFlag: number, callback: AsyncCallback): void;|@ohos.abilityAccessCtrl.d.ts| -|新增||方法名 or 属性名:permissionName
函数:permissionName: Permissions;|@ohos.abilityAccessCtrl.d.ts| -|新增||方法名 or 属性名:addPermissionUsedRecord
函数:function addPermissionUsedRecord(tokenID: number, permissionName: Permissions, successCount: number, failCount: number): Promise;|@ohos.privacyManager.d.ts| -|新增||方法名 or 属性名:addPermissionUsedRecord
函数:function addPermissionUsedRecord(tokenID: number, permissionName: Permissions, successCount: number, failCount: number, callback: AsyncCallback): void;|@ohos.privacyManager.d.ts| -|新增||方法名 or 属性名:startUsingPermission
函数:function startUsingPermission(tokenID: number, permissionName: Permissions): Promise;|@ohos.privacyManager.d.ts| -|新增||方法名 or 属性名:startUsingPermission
函数:function startUsingPermission(tokenID: number, permissionName: Permissions, callback: AsyncCallback): void;|@ohos.privacyManager.d.ts| -|新增||方法名 or 属性名:stopUsingPermission
函数:function stopUsingPermission(tokenID: number, permissionName: Permissions): Promise;|@ohos.privacyManager.d.ts| -|新增||方法名 or 属性名:stopUsingPermission
函数:function stopUsingPermission(tokenID: number, permissionName: Permissions, callback: AsyncCallback): void;|@ohos.privacyManager.d.ts| -|新增||方法名 or 属性名:permissionNames
函数:permissionNames: Array;|@ohos.privacyManager.d.ts| -|新增||模块名:ohos.security.cryptoFramework
类名:Result
方法名 or 属性名:ERR_RUNTIME_ERROR|@ohos.security.cryptoFramework.d.ts| -|新增||模块名:ohos.security.huks
类名:huks
方法名 or 属性名:generateKeyItem|@ohos.security.huks.d.ts| -|新增||模块名:ohos.security.huks
类名:huks
方法名 or 属性名:generateKeyItem|@ohos.security.huks.d.ts| -|新增||模块名:ohos.security.huks
类名:huks
方法名 or 属性名:deleteKeyItem|@ohos.security.huks.d.ts| -|新增||模块名:ohos.security.huks
类名:huks
方法名 or 属性名:deleteKeyItem|@ohos.security.huks.d.ts| -|新增||模块名:ohos.security.huks
类名:huks
方法名 or 属性名:importKeyItem|@ohos.security.huks.d.ts| -|新增||模块名:ohos.security.huks
类名:huks
方法名 or 属性名:importKeyItem|@ohos.security.huks.d.ts| -|新增||模块名:ohos.security.huks
类名:huks
方法名 or 属性名:importWrappedKeyItem|@ohos.security.huks.d.ts| -|新增||模块名:ohos.security.huks
类名:huks
方法名 or 属性名:importWrappedKeyItem|@ohos.security.huks.d.ts| -|新增||模块名:ohos.security.huks
类名:huks
方法名 or 属性名:exportKeyItem|@ohos.security.huks.d.ts| -|新增||模块名:ohos.security.huks
类名:huks
方法名 or 属性名:exportKeyItem|@ohos.security.huks.d.ts| -|新增||模块名:ohos.security.huks
类名:huks
方法名 or 属性名:getKeyItemProperties|@ohos.security.huks.d.ts| -|新增||模块名:ohos.security.huks
类名:huks
方法名 or 属性名:getKeyItemProperties|@ohos.security.huks.d.ts| -|新增||模块名:ohos.security.huks
类名:huks
方法名 or 属性名:isKeyItemExist|@ohos.security.huks.d.ts| -|新增||模块名:ohos.security.huks
类名:huks
方法名 or 属性名:isKeyItemExist|@ohos.security.huks.d.ts| -|新增||模块名:ohos.security.huks
类名:huks
方法名 or 属性名:initSession|@ohos.security.huks.d.ts| -|新增||模块名:ohos.security.huks
类名:huks
方法名 or 属性名:initSession|@ohos.security.huks.d.ts| -|新增||模块名:ohos.security.huks
类名:huks
方法名 or 属性名:updateSession|@ohos.security.huks.d.ts| -|新增||模块名:ohos.security.huks
类名:huks
方法名 or 属性名:updateSession|@ohos.security.huks.d.ts| -|新增||模块名:ohos.security.huks
类名:huks
方法名 or 属性名:updateSession|@ohos.security.huks.d.ts| -|新增||模块名:ohos.security.huks
类名:huks
方法名 or 属性名:finishSession|@ohos.security.huks.d.ts| -|新增||模块名:ohos.security.huks
类名:huks
方法名 or 属性名:finishSession|@ohos.security.huks.d.ts| -|新增||模块名:ohos.security.huks
类名:huks
方法名 or 属性名:finishSession|@ohos.security.huks.d.ts| -|新增||模块名:ohos.security.huks
类名:huks
方法名 or 属性名:abortSession|@ohos.security.huks.d.ts| -|新增||模块名:ohos.security.huks
类名:huks
方法名 or 属性名:abortSession|@ohos.security.huks.d.ts| -|新增||模块名:ohos.security.huks
类名:huks
方法名 or 属性名:attestKeyItem|@ohos.security.huks.d.ts| -|新增||模块名:ohos.security.huks
类名:huks
方法名 or 属性名:attestKeyItem|@ohos.security.huks.d.ts| -|新增||模块名: ohos.security.huks
类名: HuksSessionHandle|@ohos.security.huks.d.ts| -|新增||模块名: ohos.security.huks
类名: HuksSessionHandle
方法名 or 属性名:handle|@ohos.security.huks.d.ts| -|新增||模块名: ohos.security.huks
类名: HuksSessionHandle
方法名 or 属性名:challenge|@ohos.security.huks.d.ts| -|新增||模块名: ohos.security.huks
类名: HuksReturnResult|@ohos.security.huks.d.ts| -|新增||模块名: ohos.security.huks
类名: HuksReturnResult
方法名 or 属性名:outData|@ohos.security.huks.d.ts| -|新增||模块名: ohos.security.huks
类名: HuksReturnResult
方法名 or 属性名:properties|@ohos.security.huks.d.ts| -|新增||模块名: ohos.security.huks
类名: HuksReturnResult
方法名 or 属性名:certChains|@ohos.security.huks.d.ts| -|新增||模块名: ohos.security.huks
类名: HuksExceptionErrCode|@ohos.security.huks.d.ts| -|新增||模块名: ohos.security.huks
类名: HuksExceptionErrCode
方法名 or 属性名:HUKS_ERR_CODE_PERMISSION_FAIL|@ohos.security.huks.d.ts| -|新增||模块名: ohos.security.huks
类名: HuksExceptionErrCode
方法名 or 属性名:HUKS_ERR_CODE_ILLEGAL_ARGUMENT|@ohos.security.huks.d.ts| -|新增||模块名: ohos.security.huks
类名: HuksExceptionErrCode
方法名 or 属性名:HUKS_ERR_CODE_NOT_SUPPORTED_API|@ohos.security.huks.d.ts| -|新增||模块名: ohos.security.huks
类名: HuksExceptionErrCode
方法名 or 属性名:HUKS_ERR_CODE_FEATURE_NOT_SUPPORTED|@ohos.security.huks.d.ts| -|新增||模块名: ohos.security.huks
类名: HuksExceptionErrCode
方法名 or 属性名:HUKS_ERR_CODE_MISSING_CRYPTO_ALG_ARGUMENT|@ohos.security.huks.d.ts| -|新增||模块名: ohos.security.huks
类名: HuksExceptionErrCode
方法名 or 属性名:HUKS_ERR_CODE_INVALID_CRYPTO_ALG_ARGUMENT|@ohos.security.huks.d.ts| -|新增||模块名: ohos.security.huks
类名: HuksExceptionErrCode
方法名 or 属性名:HUKS_ERR_CODE_FILE_OPERATION_FAIL|@ohos.security.huks.d.ts| -|新增||模块名: ohos.security.huks
类名: HuksExceptionErrCode
方法名 or 属性名:HUKS_ERR_CODE_COMMUNICATION_FAIL|@ohos.security.huks.d.ts| -|新增||模块名: ohos.security.huks
类名: HuksExceptionErrCode
方法名 or 属性名:HUKS_ERR_CODE_CRYPTO_FAIL|@ohos.security.huks.d.ts| -|新增||模块名: ohos.security.huks
类名: HuksExceptionErrCode
方法名 or 属性名:HUKS_ERR_CODE_KEY_AUTH_PERMANENTLY_INVALIDATED|@ohos.security.huks.d.ts| -|新增||模块名: ohos.security.huks
类名: HuksExceptionErrCode
方法名 or 属性名:HUKS_ERR_CODE_KEY_AUTH_VERIFY_FAILED|@ohos.security.huks.d.ts| -|新增||模块名: ohos.security.huks
类名: HuksExceptionErrCode
方法名 or 属性名:HUKS_ERR_CODE_KEY_AUTH_TIME_OUT|@ohos.security.huks.d.ts| -|新增||模块名: ohos.security.huks
类名: HuksExceptionErrCode
方法名 or 属性名:HUKS_ERR_CODE_SESSION_LIMIT|@ohos.security.huks.d.ts| -|新增||模块名: ohos.security.huks
类名: HuksExceptionErrCode
方法名 or 属性名:HUKS_ERR_CODE_ITEM_NOT_EXIST|@ohos.security.huks.d.ts| -|新增||模块名: ohos.security.huks
类名: HuksExceptionErrCode
方法名 or 属性名:HUKS_ERR_CODE_EXTERNAL_ERROR|@ohos.security.huks.d.ts| -|新增||模块名: ohos.security.huks
类名: HuksExceptionErrCode
方法名 or 属性名:HUKS_ERR_CODE_CREDENTIAL_NOT_EXIST|@ohos.security.huks.d.ts| -|新增||模块名: ohos.security.huks
类名: HuksExceptionErrCode
方法名 or 属性名:HUKS_ERR_CODE_INSUFFICIENT_MEMORY|@ohos.security.huks.d.ts| -|新增||模块名: ohos.security.huks
类名: HuksExceptionErrCode
方法名 or 属性名:HUKS_ERR_CODE_CALL_SERVICE_FAILED|@ohos.security.huks.d.ts| -|删除|模块名:ohos.security.cryptoFramework
类名:Result
方法名 or 属性名:ERR_EXTERNAL_ERROR||@ohos.security.cryptoFramework.d.ts| -|删除|模块名:ohos.security.huks
类名:huks
方法名 or 属性名:importWrappedKey||@ohos.security.huks.d.ts| -|删除|模块名:ohos.security.huks
类名:huks
方法名 or 属性名:importWrappedKey||@ohos.security.huks.d.ts| -|删除|模块名:ohos.security.huks
类名:huks
方法名 or 属性名:attestKey||@ohos.security.huks.d.ts| -|删除|模块名:ohos.security.huks
类名:huks
方法名 or 属性名:attestKey||@ohos.security.huks.d.ts| +|新增|NA|方法名 or 属性名:verifyAccessToken
函数:verifyAccessToken(tokenID: number, permissionName: Permissions): Promise;|@ohos.abilityAccessCtrl.d.ts| +|新增|NA|方法名 or 属性名:verifyAccessTokenSync
函数:verifyAccessTokenSync(tokenID: number, permissionName: Permissions): GrantStatus;|@ohos.abilityAccessCtrl.d.ts| +|新增|NA|方法名 or 属性名:grantUserGrantedPermission
函数:grantUserGrantedPermission(tokenID: number, permissionName: Permissions, permissionFlag: number): Promise;|@ohos.abilityAccessCtrl.d.ts| +|新增|NA|方法名 or 属性名:grantUserGrantedPermission
函数:grantUserGrantedPermission(tokenID: number, permissionName: Permissions, permissionFlag: number, callback: AsyncCallback): void;|@ohos.abilityAccessCtrl.d.ts| +|新增|NA|方法名 or 属性名:revokeUserGrantedPermission
函数:revokeUserGrantedPermission(tokenID: number, permissionName: Permissions, permissionFlag: number): Promise;|@ohos.abilityAccessCtrl.d.ts| +|新增|NA|方法名 or 属性名:revokeUserGrantedPermission
函数:revokeUserGrantedPermission(tokenID: number, permissionName: Permissions, permissionFlag: number, callback: AsyncCallback): void;|@ohos.abilityAccessCtrl.d.ts| +|新增|NA|方法名 or 属性名:getPermissionFlags
函数:getPermissionFlags(tokenID: number, permissionName: Permissions): Promise;|@ohos.abilityAccessCtrl.d.ts| +|新增|NA|模块名: ohos.abilityAccessCtrl
类名: PermissionStateChangeType|@ohos.abilityAccessCtrl.d.ts| +|新增|NA|模块名: ohos.abilityAccessCtrl
类名: PermissionStateChangeType
方法名 or 属性名:PERMISSION_REVOKED_OPER|@ohos.abilityAccessCtrl.d.ts| +|新增|NA|模块名: ohos.abilityAccessCtrl
类名: PermissionStateChangeType
方法名 or 属性名:PERMISSION_GRANTED_OPER|@ohos.abilityAccessCtrl.d.ts| +|新增|NA|模块名: ohos.abilityAccessCtrl
类名: PermissionStateChangeInfo|@ohos.abilityAccessCtrl.d.ts| +|新增|NA|模块名: ohos.abilityAccessCtrl
类名: PermissionStateChangeInfo
方法名 or 属性名:change|@ohos.abilityAccessCtrl.d.ts| +|新增|NA|模块名: ohos.abilityAccessCtrl
类名: PermissionStateChangeInfo
方法名 or 属性名:tokenID|@ohos.abilityAccessCtrl.d.ts| +|新增|NA|模块名: ohos.abilityAccessCtrl
类名: PermissionStateChangeInfo
方法名 or 属性名:permissionName|@ohos.abilityAccessCtrl.d.ts| +|新增|NA|方法名 or 属性名:addPermissionUsedRecord
函数:function addPermissionUsedRecord(tokenID: number, permissionName: Permissions, successCount: number, failCount: number): Promise;|@ohos.privacyManager.d.ts| +|新增|NA|方法名 or 属性名:addPermissionUsedRecord
函数:function addPermissionUsedRecord(tokenID: number, permissionName: Permissions, successCount: number, failCount: number, callback: AsyncCallback): void;|@ohos.privacyManager.d.ts| +|新增|NA|模块名: ohos.privacyManager
类名: PermissionActiveStatus|@ohos.privacyManager.d.ts| +|新增|NA|模块名: ohos.privacyManager
类名: PermissionActiveStatus
方法名 or 属性名:PERM_INACTIVE|@ohos.privacyManager.d.ts| +|新增|NA|模块名: ohos.privacyManager
类名: PermissionActiveStatus
方法名 or 属性名:PERM_ACTIVE_IN_FOREGROUND|@ohos.privacyManager.d.ts| +|新增|NA|模块名: ohos.privacyManager
类名: PermissionActiveStatus
方法名 or 属性名:PERM_ACTIVE_IN_BACKGROUND|@ohos.privacyManager.d.ts| +|新增|NA|模块名: ohos.privacyManager
类名: ActiveChangeResponse|@ohos.privacyManager.d.ts| +|新增|NA|模块名: ohos.privacyManager
类名: ActiveChangeResponse
方法名 or 属性名:tokenId|@ohos.privacyManager.d.ts| +|新增|NA|模块名: ohos.privacyManager
类名: ActiveChangeResponse
方法名 or 属性名:permissionName|@ohos.privacyManager.d.ts| +|新增|NA|模块名: ohos.privacyManager
类名: ActiveChangeResponse
方法名 or 属性名:deviceId|@ohos.privacyManager.d.ts| +|新增|NA|模块名: ohos.privacyManager
类名: ActiveChangeResponse
方法名 or 属性名:activeStatus|@ohos.privacyManager.d.ts| +|新增|NA|方法名 or 属性名:permissionNames
函数:permissionNames: Array;|@ohos.privacyManager.d.ts| +|新增|NA|方法名 or 属性名:permissionName
函数:permissionName: Permissions;|@ohos.privacyManager.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: cryptoFramework|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: Result|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: Result
方法名 or 属性名: INVALID_PARAMS|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: Result
方法名 or 属性名: NOT_SUPPORT|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: Result
方法名 or 属性名: ERR_OUT_OF_MEMORY|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: Result
方法名 or 属性名: ERR_RUNTIME_ERROR|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: Result
方法名 or 属性名: ERR_CRYPTO_OPERATION|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: Result
方法名 or 属性名: ERR_CERT_SIGNATURE_FAILURE|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: Result
方法名 or 属性名: ERR_CERT_NOT_YET_VALID|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: Result
方法名 or 属性名: ERR_CERT_HAS_EXPIRED|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: Result
方法名 or 属性名: ERR_UNABLE_TO_GET_ISSUER_CERT_LOCALLY|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: Result
方法名 or 属性名: ERR_KEYUSAGE_NO_CERTSIGN|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: Result
方法名 or 属性名: ERR_KEYUSAGE_NO_DIGITAL_SIGNATURE|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: DataBlob|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: DataBlob
方法名 or 属性名: data|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: DataArray|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: DataArray
方法名 or 属性名: data|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: EncodingFormat|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: EncodingFormat
方法名 or 属性名: FORMAT_DER|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: EncodingFormat
方法名 or 属性名: FORMAT_PEM|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: EncodingBlob|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: EncodingBlob
方法名 or 属性名: data|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: EncodingBlob
方法名 or 属性名: encodingFormat|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: CertChainData|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: CertChainData
方法名 or 属性名: data|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: CertChainData
方法名 or 属性名: count|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: CertChainData
方法名 or 属性名: encodingFormat|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: ParamsSpec|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: ParamsSpec
方法名 or 属性名: algoName|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: IvParamsSpec|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: IvParamsSpec
方法名 or 属性名: iv|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: GcmParamsSpec|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: GcmParamsSpec
方法名 or 属性名: iv|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: GcmParamsSpec
方法名 or 属性名: aad|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: GcmParamsSpec
方法名 or 属性名: authTag|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: CcmParamsSpec|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: CcmParamsSpec
方法名 or 属性名: iv|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: CcmParamsSpec
方法名 or 属性名: aad|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: CcmParamsSpec
方法名 or 属性名: authTag|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: CryptoMode|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: CryptoMode
方法名 or 属性名: ENCRYPT_MODE|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: CryptoMode
方法名 or 属性名: DECRYPT_MODE|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: Key|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: Key
方法名 or 属性名: getEncoded|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: Key
方法名 or 属性名: format|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: Key
方法名 or 属性名: algName|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: SymKey|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: SymKey
方法名 or 属性名: clearMem|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: PriKey|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: PriKey
方法名 or 属性名: clearMem|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: PubKey|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: KeyPair|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: KeyPair
方法名 or 属性名: priKey|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: KeyPair
方法名 or 属性名: pubKey|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: Random|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: Random
方法名 or 属性名: generateRandom|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: Random
方法名 or 属性名: generateRandom|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: Random
方法名 or 属性名: setSeed|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: Random
方法名 or 属性名: setSeed|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: cryptoFramework
方法名 or 属性名: createRandom|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: AsyKeyGenerator|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: AsyKeyGenerator
方法名 or 属性名: generateKeyPair|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: AsyKeyGenerator
方法名 or 属性名: generateKeyPair|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: AsyKeyGenerator
方法名 or 属性名: convertKey|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: AsyKeyGenerator
方法名 or 属性名: convertKey|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: AsyKeyGenerator
方法名 or 属性名: algName|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: SymKeyGenerator|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: SymKeyGenerator
方法名 or 属性名: generateSymKey|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: SymKeyGenerator
方法名 or 属性名: generateSymKey|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: SymKeyGenerator
方法名 or 属性名: convertKey|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: SymKeyGenerator
方法名 or 属性名: convertKey|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: SymKeyGenerator
方法名 or 属性名: algName|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: cryptoFramework
方法名 or 属性名: createAsyKeyGenerator|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: cryptoFramework
方法名 or 属性名: createSymKeyGenerator|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: Mac|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: Mac
方法名 or 属性名: init|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: Mac
方法名 or 属性名: init|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: Mac
方法名 or 属性名: update|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: Mac
方法名 or 属性名: update|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: Mac
方法名 or 属性名: doFinal|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: Mac
方法名 or 属性名: doFinal|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: Mac
方法名 or 属性名: getMacLength|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: Mac
方法名 or 属性名: algName|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: cryptoFramework
方法名 or 属性名: createMac|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: Md|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: Md
方法名 or 属性名: update|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: Md
方法名 or 属性名: update|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: Md
方法名 or 属性名: digest|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: Md
方法名 or 属性名: digest|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: Md
方法名 or 属性名: getMdLength|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: Md
方法名 or 属性名: algName|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: cryptoFramework
方法名 or 属性名: createMd|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: Cipher|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: Cipher
方法名 or 属性名: init|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: Cipher
方法名 or 属性名: init|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: Cipher
方法名 or 属性名: update|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: Cipher
方法名 or 属性名: update|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: Cipher
方法名 or 属性名: doFinal|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: Cipher
方法名 or 属性名: doFinal|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: Cipher
方法名 or 属性名: algName|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: cryptoFramework
方法名 or 属性名: createCipher|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: Sign|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: Sign
方法名 or 属性名: init|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: Sign
方法名 or 属性名: init|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: Sign
方法名 or 属性名: update|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: Sign
方法名 or 属性名: update|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: Sign
方法名 or 属性名: sign|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: Sign
方法名 or 属性名: sign|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: Sign
方法名 or 属性名: algName|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: Verify|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: Verify
方法名 or 属性名: init|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: Verify
方法名 or 属性名: init|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: Verify
方法名 or 属性名: update|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: Verify
方法名 or 属性名: update|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: Verify
方法名 or 属性名: verify|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: Verify
方法名 or 属性名: verify|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: Verify
方法名 or 属性名: algName|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: cryptoFramework
方法名 or 属性名: createSign|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: cryptoFramework
方法名 or 属性名: createVerify|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: KeyAgreement|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: KeyAgreement
方法名 or 属性名: generateSecret|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: KeyAgreement
方法名 or 属性名: generateSecret|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: KeyAgreement
方法名 or 属性名: algName|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: cryptoFramework
方法名 or 属性名: createKeyAgreement|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: X509Cert|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: X509Cert
方法名 or 属性名: verify|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: X509Cert
方法名 or 属性名: verify|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: X509Cert
方法名 or 属性名: getEncoded|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: X509Cert
方法名 or 属性名: getEncoded|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: X509Cert
方法名 or 属性名: getPublicKey|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: X509Cert
方法名 or 属性名: getPublicKey|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: X509Cert
方法名 or 属性名: checkValidityWithDate|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: X509Cert
方法名 or 属性名: checkValidityWithDate|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: X509Cert
方法名 or 属性名: getVersion|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: X509Cert
方法名 or 属性名: getSerialNumber|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: X509Cert
方法名 or 属性名: getIssuerName|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: X509Cert
方法名 or 属性名: getSubjectName|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: X509Cert
方法名 or 属性名: getNotBeforeTime|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: X509Cert
方法名 or 属性名: getNotAfterTime|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: X509Cert
方法名 or 属性名: getSignature|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: X509Cert
方法名 or 属性名: getSignatureAlgName|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: X509Cert
方法名 or 属性名: getSignatureAlgOid|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: X509Cert
方法名 or 属性名: getSignatureAlgParams|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: X509Cert
方法名 or 属性名: getKeyUsage|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: X509Cert
方法名 or 属性名: getExtKeyUsage|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: X509Cert
方法名 or 属性名: getBasicConstraints|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: X509Cert
方法名 or 属性名: getSubjectAltNames|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: X509Cert
方法名 or 属性名: getIssuerAltNames|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: cryptoFramework
方法名 or 属性名: createX509Cert|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: cryptoFramework
方法名 or 属性名: createX509Cert|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: X509CrlEntry|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: X509CrlEntry
方法名 or 属性名: getEncoded|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: X509CrlEntry
方法名 or 属性名: getEncoded|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: X509CrlEntry
方法名 or 属性名: getSerialNumber|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: X509CrlEntry
方法名 or 属性名: getCertIssuer|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: X509CrlEntry
方法名 or 属性名: getCertIssuer|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: X509CrlEntry
方法名 or 属性名: getRevocationDate|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: X509CrlEntry
方法名 or 属性名: getRevocationDate|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: X509Crl|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: X509Crl
方法名 or 属性名: isRevoked|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: X509Crl
方法名 or 属性名: isRevoked|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: X509Crl
方法名 or 属性名: getType|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: X509Crl
方法名 or 属性名: getEncoded|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: X509Crl
方法名 or 属性名: getEncoded|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: X509Crl
方法名 or 属性名: verify|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: X509Crl
方法名 or 属性名: verify|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: X509Crl
方法名 or 属性名: getVersion|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: X509Crl
方法名 or 属性名: getIssuerName|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: X509Crl
方法名 or 属性名: getLastUpdate|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: X509Crl
方法名 or 属性名: getNextUpdate|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: X509Crl
方法名 or 属性名: getRevokedCert|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: X509Crl
方法名 or 属性名: getRevokedCert|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: X509Crl
方法名 or 属性名: getRevokedCertWithCert|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: X509Crl
方法名 or 属性名: getRevokedCertWithCert|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: X509Crl
方法名 or 属性名: getRevokedCerts|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: X509Crl
方法名 or 属性名: getRevokedCerts|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: X509Crl
方法名 or 属性名: getTbsInfo|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: X509Crl
方法名 or 属性名: getTbsInfo|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: X509Crl
方法名 or 属性名: getSignature|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: X509Crl
方法名 or 属性名: getSignatureAlgName|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: X509Crl
方法名 or 属性名: getSignatureAlgOid|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: X509Crl
方法名 or 属性名: getSignatureAlgParams|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: cryptoFramework
方法名 or 属性名: createX509Crl|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: cryptoFramework
方法名 or 属性名: createX509Crl|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: CertChainValidator|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: CertChainValidator
方法名 or 属性名: validate|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: CertChainValidator
方法名 or 属性名: validate|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: CertChainValidator
方法名 or 属性名: algorithm|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.cryptoFramework
类名: cryptoFramework
方法名 or 属性名: createCertChainValidator|@ohos.security.cryptoFramework.d.ts| +|新增|NA|模块名: ohos.security.huks
类名: HuksSessionHandle|@ohos.security.huks.d.ts| +|新增|NA|模块名: ohos.security.huks
类名: HuksSessionHandle
方法名 or 属性名:handle|@ohos.security.huks.d.ts| +|新增|NA|模块名: ohos.security.huks
类名: HuksSessionHandle
方法名 or 属性名:challenge|@ohos.security.huks.d.ts| +|新增|NA|模块名: ohos.security.huks
类名: HuksReturnResult|@ohos.security.huks.d.ts| +|新增|NA|模块名: ohos.security.huks
类名: HuksReturnResult
方法名 or 属性名:outData|@ohos.security.huks.d.ts| +|新增|NA|模块名: ohos.security.huks
类名: HuksReturnResult
方法名 or 属性名:properties|@ohos.security.huks.d.ts| +|新增|NA|模块名: ohos.security.huks
类名: HuksReturnResult
方法名 or 属性名:certChains|@ohos.security.huks.d.ts| +|新增|NA|模块名: ohos.security.huks
类名: HuksExceptionErrCode|@ohos.security.huks.d.ts| +|新增|NA|模块名: ohos.security.huks
类名: HuksExceptionErrCode
方法名 or 属性名:HUKS_ERR_CODE_PERMISSION_FAIL|@ohos.security.huks.d.ts| +|新增|NA|模块名: ohos.security.huks
类名: HuksExceptionErrCode
方法名 or 属性名:HUKS_ERR_CODE_ILLEGAL_ARGUMENT|@ohos.security.huks.d.ts| +|新增|NA|模块名: ohos.security.huks
类名: HuksExceptionErrCode
方法名 or 属性名:HUKS_ERR_CODE_NOT_SUPPORTED_API|@ohos.security.huks.d.ts| +|新增|NA|模块名: ohos.security.huks
类名: HuksExceptionErrCode
方法名 or 属性名:HUKS_ERR_CODE_FEATURE_NOT_SUPPORTED|@ohos.security.huks.d.ts| +|新增|NA|模块名: ohos.security.huks
类名: HuksExceptionErrCode
方法名 or 属性名:HUKS_ERR_CODE_MISSING_CRYPTO_ALG_ARGUMENT|@ohos.security.huks.d.ts| +|新增|NA|模块名: ohos.security.huks
类名: HuksExceptionErrCode
方法名 or 属性名:HUKS_ERR_CODE_INVALID_CRYPTO_ALG_ARGUMENT|@ohos.security.huks.d.ts| +|新增|NA|模块名: ohos.security.huks
类名: HuksExceptionErrCode
方法名 or 属性名:HUKS_ERR_CODE_FILE_OPERATION_FAIL|@ohos.security.huks.d.ts| +|新增|NA|模块名: ohos.security.huks
类名: HuksExceptionErrCode
方法名 or 属性名:HUKS_ERR_CODE_COMMUNICATION_FAIL|@ohos.security.huks.d.ts| +|新增|NA|模块名: ohos.security.huks
类名: HuksExceptionErrCode
方法名 or 属性名:HUKS_ERR_CODE_CRYPTO_FAIL|@ohos.security.huks.d.ts| +|新增|NA|模块名: ohos.security.huks
类名: HuksExceptionErrCode
方法名 or 属性名:HUKS_ERR_CODE_KEY_AUTH_PERMANENTLY_INVALIDATED|@ohos.security.huks.d.ts| +|新增|NA|模块名: ohos.security.huks
类名: HuksExceptionErrCode
方法名 or 属性名:HUKS_ERR_CODE_KEY_AUTH_VERIFY_FAILED|@ohos.security.huks.d.ts| +|新增|NA|模块名: ohos.security.huks
类名: HuksExceptionErrCode
方法名 or 属性名:HUKS_ERR_CODE_KEY_AUTH_TIME_OUT|@ohos.security.huks.d.ts| +|新增|NA|模块名: ohos.security.huks
类名: HuksExceptionErrCode
方法名 or 属性名:HUKS_ERR_CODE_SESSION_LIMIT|@ohos.security.huks.d.ts| +|新增|NA|模块名: ohos.security.huks
类名: HuksExceptionErrCode
方法名 or 属性名:HUKS_ERR_CODE_ITEM_NOT_EXIST|@ohos.security.huks.d.ts| +|新增|NA|模块名: ohos.security.huks
类名: HuksExceptionErrCode
方法名 or 属性名:HUKS_ERR_CODE_EXTERNAL_ERROR|@ohos.security.huks.d.ts| +|新增|NA|模块名: ohos.security.huks
类名: HuksExceptionErrCode
方法名 or 属性名:HUKS_ERR_CODE_CREDENTIAL_NOT_EXIST|@ohos.security.huks.d.ts| +|新增|NA|模块名: ohos.security.huks
类名: HuksExceptionErrCode
方法名 or 属性名:HUKS_ERR_CODE_INSUFFICIENT_MEMORY|@ohos.security.huks.d.ts| +|新增|NA|模块名: ohos.security.huks
类名: HuksExceptionErrCode
方法名 or 属性名:HUKS_ERR_CODE_CALL_SERVICE_FAILED|@ohos.security.huks.d.ts| +|删除|模块名:ohos.security.huks
类名:huks
方法名 or 属性名:importWrappedKey|NA|@ohos.security.huks.d.ts| +|删除|模块名:ohos.security.huks
类名:huks
方法名 or 属性名:importWrappedKey|NA|@ohos.security.huks.d.ts| +|删除|模块名:ohos.security.huks
类名:huks
方法名 or 属性名:attestKey|NA|@ohos.security.huks.d.ts| +|删除|模块名:ohos.security.huks
类名:huks
方法名 or 属性名:attestKey|NA|@ohos.security.huks.d.ts| |废弃版本有变化|方法名 or 属性名:verifyAccessToken
废弃版本:N/A|方法名 or 属性名:verifyAccessToken
废弃版本:9
代替接口:ohos.abilityAccessCtrl.AtManager|@ohos.abilityAccessCtrl.d.ts| |废弃版本有变化|方法名 or 属性名:generateKey
废弃版本:N/A|方法名 or 属性名:generateKey
废弃版本:9
代替接口:ohos.security.huks.generateKeyItem |@ohos.security.huks.d.ts| |废弃版本有变化|方法名 or 属性名:generateKey
废弃版本:N/A|方法名 or 属性名:generateKey
废弃版本:9|@ohos.security.huks.d.ts| @@ -99,14 +274,7 @@ |废弃版本有变化|类名:Cipher
废弃版本:N/A|类名:Cipher
废弃版本:9
代替接口:ohos.security.cryptoFramework.Cipher |@system.cipher.d.ts| |废弃版本有变化|方法名 or 属性名:rsa
废弃版本:N/A|方法名 or 属性名:rsa
废弃版本:9
代替接口:ohos.security.cryptoFramework.Cipher |@system.cipher.d.ts| |废弃版本有变化|方法名 or 属性名:aes
废弃版本:N/A|方法名 or 属性名:aes
废弃版本:9
代替接口:ohos.security.cryptoFramework.Cipher |@system.cipher.d.ts| -|起始版本有变化|方法名 or 属性名:getPermissionFlags
起始版本:9|方法名 or 属性名:getPermissionFlags
起始版本:8|@ohos.abilityAccessCtrl.d.ts| |起始版本有变化|方法名 or 属性名:update
起始版本:9|方法名 or 属性名:update
起始版本:8|@ohos.security.huks.d.ts| |起始版本有变化|方法名 or 属性名:update
起始版本:9|方法名 or 属性名:update
起始版本:8|@ohos.security.huks.d.ts| |起始版本有变化|方法名 or 属性名:update
起始版本:9|方法名 or 属性名:update
起始版本:8|@ohos.security.huks.d.ts| -|新增(错误码)||方法名 or 属性名:verifyAccessTokenSync
错误码内容:401,12100001|@ohos.abilityAccessCtrl.d.ts| -|新增(错误码)||方法名 or 属性名:getPermissionFlags
错误码内容:401,201,12100001,12100002,12100003,12100006,12100007|@ohos.abilityAccessCtrl.d.ts| -|新增(错误码)||方法名 or 属性名:on_permissionStateChange
错误码内容:401,201,12100001,12100004,12100005,12100007,12100008|@ohos.abilityAccessCtrl.d.ts| -|新增(错误码)||方法名 or 属性名:off_permissionStateChange
错误码内容:401,201,12100001,12100004,12100007,12100008|@ohos.abilityAccessCtrl.d.ts| -|新增(错误码)||方法名 or 属性名:getPermissionUsedRecords
错误码内容:401,201,12100001,12100002,12100003,12100007,12100008|@ohos.privacyManager.d.ts| -|新增(错误码)||方法名 or 属性名:on_activeStateChange
错误码内容:401,201,12100001,12100004,12100005,12100007,12100008|@ohos.privacyManager.d.ts| -|新增(错误码)||方法名 or 属性名:off_activeStateChange
错误码内容:401,201,12100001,12100004,12100007,12100008|@ohos.privacyManager.d.ts| +|新增(错误码)|NA|方法名 or 属性名:getPermissionUsedRecords
错误码内容:401,201,12100001,12100002,12100003,12100007,12100008|@ohos.privacyManager.d.ts| diff --git a/zh-cn/release-notes/api-diff/monthly-202210/js-apidiff-sensor.md b/zh-cn/release-notes/api-diff/monthly-202210/js-apidiff-sensor.md index b633defb952e14bd4a0dae1933c3833868ec5ee4..57ed08773b6f4d84e9fcc0193eb11301a5a804eb 100644 --- a/zh-cn/release-notes/api-diff/monthly-202210/js-apidiff-sensor.md +++ b/zh-cn/release-notes/api-diff/monthly-202210/js-apidiff-sensor.md @@ -1,128 +1,69 @@ -| 操作 | 新版本 | 旧版本 | d.ts文件 | +| 操作 | 旧版本 | 新版本 | d.ts文件 | | ---- | ------ | ------ | -------- | -|新增||模块名: ohos.sensor
类名: SensorId|@ohos.sensor.d.ts| -|新增||模块名: ohos.sensor
类名: SensorId
方法名 or 属性名:ACCELEROMETER|@ohos.sensor.d.ts| -|新增||模块名: ohos.sensor
类名: SensorId
方法名 or 属性名:GYROSCOPE|@ohos.sensor.d.ts| -|新增||模块名: ohos.sensor
类名: SensorId
方法名 or 属性名:AMBIENT_LIGHT|@ohos.sensor.d.ts| -|新增||模块名: ohos.sensor
类名: SensorId
方法名 or 属性名:MAGNETIC_FIELD|@ohos.sensor.d.ts| -|新增||模块名: ohos.sensor
类名: SensorId
方法名 or 属性名:BAROMETER|@ohos.sensor.d.ts| -|新增||模块名: ohos.sensor
类名: SensorId
方法名 or 属性名:HALL|@ohos.sensor.d.ts| -|新增||模块名: ohos.sensor
类名: SensorId
方法名 or 属性名:PROXIMITY|@ohos.sensor.d.ts| -|新增||模块名: ohos.sensor
类名: SensorId
方法名 or 属性名:HUMIDITY|@ohos.sensor.d.ts| -|新增||模块名: ohos.sensor
类名: SensorId
方法名 or 属性名:ORIENTATION|@ohos.sensor.d.ts| -|新增||模块名: ohos.sensor
类名: SensorId
方法名 or 属性名:GRAVITY|@ohos.sensor.d.ts| -|新增||模块名: ohos.sensor
类名: SensorId
方法名 or 属性名:LINEAR_ACCELEROMETER|@ohos.sensor.d.ts| -|新增||模块名: ohos.sensor
类名: SensorId
方法名 or 属性名:ROTATION_VECTOR|@ohos.sensor.d.ts| -|新增||模块名: ohos.sensor
类名: SensorId
方法名 or 属性名:AMBIENT_TEMPERATURE|@ohos.sensor.d.ts| -|新增||模块名: ohos.sensor
类名: SensorId
方法名 or 属性名:MAGNETIC_FIELD_UNCALIBRATED|@ohos.sensor.d.ts| -|新增||模块名: ohos.sensor
类名: SensorId
方法名 or 属性名:GYROSCOPE_UNCALIBRATED|@ohos.sensor.d.ts| -|新增||模块名: ohos.sensor
类名: SensorId
方法名 or 属性名:SIGNIFICANT_MOTION|@ohos.sensor.d.ts| -|新增||模块名: ohos.sensor
类名: SensorId
方法名 or 属性名:PEDOMETER_DETECTION|@ohos.sensor.d.ts| -|新增||模块名: ohos.sensor
类名: SensorId
方法名 or 属性名:PEDOMETER|@ohos.sensor.d.ts| -|新增||模块名: ohos.sensor
类名: SensorId
方法名 or 属性名:HEART_RATE|@ohos.sensor.d.ts| -|新增||模块名: ohos.sensor
类名: SensorId
方法名 or 属性名:WEAR_DETECTION|@ohos.sensor.d.ts| -|新增||模块名: ohos.sensor
类名: SensorId
方法名 or 属性名:ACCELEROMETER_UNCALIBRATED|@ohos.sensor.d.ts| -|新增||模块名:ohos.sensor
类名:sensor
方法名 or 属性名:on_SensorId_ACCELEROMETER|@ohos.sensor.d.ts| -|新增||模块名:ohos.sensor
类名:sensor
方法名 or 属性名:on_SensorId_ACCELEROMETER_UNCALIBRATED|@ohos.sensor.d.ts| -|新增||模块名:ohos.sensor
类名:sensor
方法名 or 属性名:on_SensorId_AMBIENT_LIGHT|@ohos.sensor.d.ts| -|新增||模块名:ohos.sensor
类名:sensor
方法名 or 属性名:on_SensorId_AMBIENT_TEMPERATURE|@ohos.sensor.d.ts| -|新增||模块名:ohos.sensor
类名:sensor
方法名 or 属性名:on_SensorId_BAROMETER|@ohos.sensor.d.ts| -|新增||模块名:ohos.sensor
类名:sensor
方法名 or 属性名:on_SensorId_GRAVITY|@ohos.sensor.d.ts| -|新增||模块名:ohos.sensor
类名:sensor
方法名 or 属性名:on_SensorId_GYROSCOPE|@ohos.sensor.d.ts| -|新增||模块名:ohos.sensor
类名:sensor
方法名 or 属性名:on_SensorId_GYROSCOPE_UNCALIBRATED|@ohos.sensor.d.ts| -|新增||模块名:ohos.sensor
类名:sensor
方法名 or 属性名:on_SensorId_HALL|@ohos.sensor.d.ts| -|新增||模块名:ohos.sensor
类名:sensor
方法名 or 属性名:on_SensorId_HEART_RATE|@ohos.sensor.d.ts| -|新增||模块名:ohos.sensor
类名:sensor
方法名 or 属性名:on_SensorId_HUMIDITY|@ohos.sensor.d.ts| -|新增||模块名:ohos.sensor
类名:sensor
方法名 or 属性名:on_SensorId_LINEAR_ACCELEROMETER|@ohos.sensor.d.ts| -|新增||模块名:ohos.sensor
类名:sensor
方法名 or 属性名:on_SensorId_MAGNETIC_FIELD|@ohos.sensor.d.ts| -|新增||模块名:ohos.sensor
类名:sensor
方法名 or 属性名:on_SensorId_MAGNETIC_FIELD_UNCALIBRATED|@ohos.sensor.d.ts| -|新增||模块名:ohos.sensor
类名:sensor
方法名 or 属性名:on_SensorId_ORIENTATION|@ohos.sensor.d.ts| -|新增||模块名:ohos.sensor
类名:sensor
方法名 or 属性名:on_SensorId_PEDOMETER|@ohos.sensor.d.ts| -|新增||模块名:ohos.sensor
类名:sensor
方法名 or 属性名:on_SensorId_PEDOMETER_DETECTION|@ohos.sensor.d.ts| -|新增||模块名:ohos.sensor
类名:sensor
方法名 or 属性名:on_SensorId_PROXIMITY|@ohos.sensor.d.ts| -|新增||模块名:ohos.sensor
类名:sensor
方法名 or 属性名:on_SensorId_ROTATION_VECTOR|@ohos.sensor.d.ts| -|新增||模块名:ohos.sensor
类名:sensor
方法名 or 属性名:on_SensorId_SIGNIFICANT_MOTION|@ohos.sensor.d.ts| -|新增||模块名:ohos.sensor
类名:sensor
方法名 or 属性名:on_SensorId_WEAR_DETECTION|@ohos.sensor.d.ts| -|新增||方法名 or 属性名:once
函数:function once(type: SensorId.ACCELEROMETER, callback: Callback): void;|@ohos.sensor.d.ts| -|新增||方法名 or 属性名:once
函数:function once(type: SensorId.ACCELEROMETER_UNCALIBRATED, callback: Callback): void;|@ohos.sensor.d.ts| -|新增||方法名 or 属性名:once
函数:function once(type: SensorId.AMBIENT_LIGHT, callback: Callback): void;|@ohos.sensor.d.ts| -|新增||方法名 or 属性名:once
函数:function once(type: SensorId.AMBIENT_TEMPERATURE, callback: Callback): void;|@ohos.sensor.d.ts| -|新增||方法名 or 属性名:once
函数:function once(type: SensorId.BAROMETER, callback: Callback): void;|@ohos.sensor.d.ts| -|新增||方法名 or 属性名:once
函数:function once(type: SensorId.GRAVITY, callback: Callback): void;|@ohos.sensor.d.ts| -|新增||方法名 or 属性名:once
函数:function once(type: SensorId.GYROSCOPE, callback: Callback): void;|@ohos.sensor.d.ts| -|新增||方法名 or 属性名:once
函数:function once(type: SensorId.GYROSCOPE_UNCALIBRATED, callback: Callback): void;|@ohos.sensor.d.ts| -|新增||方法名 or 属性名:once
函数:function once(type: SensorId.HALL, callback: Callback): void;|@ohos.sensor.d.ts| -|新增||方法名 or 属性名:once
函数:function once(type: SensorId.HEART_RATE, callback: Callback): void;|@ohos.sensor.d.ts| -|新增||方法名 or 属性名:once
函数:function once(type: SensorId.HUMIDITY, callback: Callback): void;|@ohos.sensor.d.ts| -|新增||方法名 or 属性名:once
函数:function once(type: SensorId.LINEAR_ACCELEROMETER, callback: Callback): void;|@ohos.sensor.d.ts| -|新增||方法名 or 属性名:once
函数:function once(type: SensorId.MAGNETIC_FIELD, callback: Callback): void;|@ohos.sensor.d.ts| -|新增||方法名 or 属性名:once
函数:function once(type: SensorId.MAGNETIC_FIELD_UNCALIBRATED, callback: Callback): void;|@ohos.sensor.d.ts| -|新增||方法名 or 属性名:once
函数:function once(type: SensorId.ORIENTATION, callback: Callback): void;|@ohos.sensor.d.ts| -|新增||方法名 or 属性名:once
函数:function once(type: SensorId.PEDOMETER, callback: Callback): void;|@ohos.sensor.d.ts| -|新增||方法名 or 属性名:once
函数:function once(type: SensorId.PEDOMETER_DETECTION, callback: Callback): void;|@ohos.sensor.d.ts| -|新增||方法名 or 属性名:once
函数:function once(type: SensorId.PROXIMITY, callback: Callback): void;|@ohos.sensor.d.ts| -|新增||方法名 or 属性名:once
函数:function once(type: SensorId.ROTATION_VECTOR, callback: Callback): void;|@ohos.sensor.d.ts| -|新增||方法名 or 属性名:once
函数:function once(type: SensorId.SIGNIFICANT_MOTION, callback: Callback): void;|@ohos.sensor.d.ts| -|新增||方法名 or 属性名:once
函数:function once(type: SensorId.WEAR_DETECTION, callback: Callback): void;|@ohos.sensor.d.ts| -|新增||模块名:ohos.sensor
类名:sensor
方法名 or 属性名:off_SensorId_ACCELEROMETER|@ohos.sensor.d.ts| -|新增||模块名:ohos.sensor
类名:sensor
方法名 or 属性名:off_SensorId_ACCELEROMETER_UNCALIBRATED|@ohos.sensor.d.ts| -|新增||模块名:ohos.sensor
类名:sensor
方法名 or 属性名:off_SensorId_AMBIENT_LIGHT|@ohos.sensor.d.ts| -|新增||模块名:ohos.sensor
类名:sensor
方法名 or 属性名:off_SensorId_AMBIENT_TEMPERATURE|@ohos.sensor.d.ts| -|新增||模块名:ohos.sensor
类名:sensor
方法名 or 属性名:off_SensorId_BAROMETER|@ohos.sensor.d.ts| -|新增||模块名:ohos.sensor
类名:sensor
方法名 or 属性名:off_SensorId_GRAVITY|@ohos.sensor.d.ts| -|新增||模块名:ohos.sensor
类名:sensor
方法名 or 属性名:off_SensorId_GYROSCOPE|@ohos.sensor.d.ts| -|新增||模块名:ohos.sensor
类名:sensor
方法名 or 属性名:off_SensorId_GYROSCOPE_UNCALIBRATED|@ohos.sensor.d.ts| -|新增||模块名:ohos.sensor
类名:sensor
方法名 or 属性名:off_SensorId_HALL|@ohos.sensor.d.ts| -|新增||模块名:ohos.sensor
类名:sensor
方法名 or 属性名:off_SensorId_HEART_RATE|@ohos.sensor.d.ts| -|新增||模块名:ohos.sensor
类名:sensor
方法名 or 属性名:off_SensorId_HUMIDITY|@ohos.sensor.d.ts| -|新增||模块名:ohos.sensor
类名:sensor
方法名 or 属性名:off_SensorId_LINEAR_ACCELEROMETER|@ohos.sensor.d.ts| -|新增||模块名:ohos.sensor
类名:sensor
方法名 or 属性名:off_SensorId_MAGNETIC_FIELD|@ohos.sensor.d.ts| -|新增||模块名:ohos.sensor
类名:sensor
方法名 or 属性名:off_SensorId_MAGNETIC_FIELD_UNCALIBRATED|@ohos.sensor.d.ts| -|新增||模块名:ohos.sensor
类名:sensor
方法名 or 属性名:off_SensorId_ORIENTATION|@ohos.sensor.d.ts| -|新增||模块名:ohos.sensor
类名:sensor
方法名 or 属性名:off_SensorId_PEDOMETER|@ohos.sensor.d.ts| -|新增||模块名:ohos.sensor
类名:sensor
方法名 or 属性名:off_SensorId_PEDOMETER_DETECTION|@ohos.sensor.d.ts| -|新增||模块名:ohos.sensor
类名:sensor
方法名 or 属性名:off_SensorId_PROXIMITY|@ohos.sensor.d.ts| -|新增||模块名:ohos.sensor
类名:sensor
方法名 or 属性名:off_SensorId_ROTATION_VECTOR|@ohos.sensor.d.ts| -|新增||模块名:ohos.sensor
类名:sensor
方法名 or 属性名:off_SensorId_SIGNIFICANT_MOTION|@ohos.sensor.d.ts| -|新增||模块名:ohos.sensor
类名:sensor
方法名 or 属性名:off_SensorId_WEAR_DETECTION|@ohos.sensor.d.ts| -|新增||模块名:ohos.sensor
类名:Sensor
方法名 or 属性名:sensorId|@ohos.sensor.d.ts| -|新增||模块名:ohos.sensor
类名:Sensor
方法名 or 属性名:minSamplePeriod|@ohos.sensor.d.ts| -|新增||模块名:ohos.sensor
类名:Sensor
方法名 or 属性名:maxSamplePeriod|@ohos.sensor.d.ts| -|新增||方法名 or 属性名:getSingleSensor
函数:function getSingleSensor(type: SensorId, callback: AsyncCallback): void;|@ohos.sensor.d.ts| -|新增||方法名 or 属性名:getSingleSensor
函数:function getSingleSensor(type: SensorId): Promise;|@ohos.sensor.d.ts| -|新增||模块名:ohos.sensor
类名:sensor
方法名 or 属性名:getSensorList|@ohos.sensor.d.ts| -|新增||模块名:ohos.sensor
类名:sensor
方法名 or 属性名:getSensorList|@ohos.sensor.d.ts| -|新增||模块名:ohos.sensor
类名:sensor
方法名 or 属性名:getGeomagneticInfo|@ohos.sensor.d.ts| -|新增||模块名:ohos.sensor
类名:sensor
方法名 or 属性名:getGeomagneticInfo|@ohos.sensor.d.ts| -|新增||模块名:ohos.sensor
类名:sensor
方法名 or 属性名:getDeviceAltitude|@ohos.sensor.d.ts| -|新增||模块名:ohos.sensor
类名:sensor
方法名 or 属性名:getDeviceAltitude|@ohos.sensor.d.ts| -|新增||模块名:ohos.sensor
类名:sensor
方法名 or 属性名:getInclination|@ohos.sensor.d.ts| -|新增||模块名:ohos.sensor
类名:sensor
方法名 or 属性名:getInclination|@ohos.sensor.d.ts| -|新增||模块名:ohos.sensor
类名:sensor
方法名 or 属性名:getAngleVariation|@ohos.sensor.d.ts| -|新增||模块名:ohos.sensor
类名:sensor
方法名 or 属性名:getAngleVariation|@ohos.sensor.d.ts| -|新增||模块名:ohos.sensor
类名:sensor
方法名 or 属性名:getRotationMatrix|@ohos.sensor.d.ts| -|新增||模块名:ohos.sensor
类名:sensor
方法名 or 属性名:getRotationMatrix|@ohos.sensor.d.ts| -|新增||模块名:ohos.sensor
类名:sensor
方法名 or 属性名:transformRotationMatrix|@ohos.sensor.d.ts| -|新增||模块名:ohos.sensor
类名:sensor
方法名 or 属性名:transformRotationMatrix|@ohos.sensor.d.ts| -|新增||模块名:ohos.sensor
类名:sensor
方法名 or 属性名:getQuaternion|@ohos.sensor.d.ts| -|新增||模块名:ohos.sensor
类名:sensor
方法名 or 属性名:getQuaternion|@ohos.sensor.d.ts| -|新增||模块名:ohos.sensor
类名:sensor
方法名 or 属性名:getOrientation|@ohos.sensor.d.ts| -|新增||模块名:ohos.sensor
类名:sensor
方法名 or 属性名:getOrientation|@ohos.sensor.d.ts| -|新增||模块名:ohos.sensor
类名:sensor
方法名 or 属性名:getRotationMatrix|@ohos.sensor.d.ts| -|新增||模块名:ohos.sensor
类名:sensor
方法名 or 属性名:getRotationMatrix|@ohos.sensor.d.ts| -|新增||模块名:ohos.vibrator
类名:vibrator
方法名 or 属性名:startVibration|@ohos.vibrator.d.ts| -|新增||模块名:ohos.vibrator
类名:vibrator
方法名 or 属性名:startVibration|@ohos.vibrator.d.ts| -|新增||模块名:ohos.vibrator
类名:vibrator
方法名 or 属性名:stopVibration|@ohos.vibrator.d.ts| -|新增||模块名:ohos.vibrator
类名:vibrator
方法名 or 属性名:stopVibration|@ohos.vibrator.d.ts| -|删除|模块名:ohos.sensor
类名:sensor
方法名 or 属性名:on_SensorType_SENSOR_TYPE_ID_HEART_BEAT_RATE||@ohos.sensor.d.ts| -|删除|模块名:ohos.sensor
类名:sensor
方法名 or 属性名:on_SensorType_SENSOR_TYPE_ID_LINEAR_ACCELEROMETER||@ohos.sensor.d.ts| -|删除|模块名:ohos.sensor
类名:sensor
方法名 or 属性名:off_SensorType_SENSOR_TYPE_ID_HEART_BEAT_RATE||@ohos.sensor.d.ts| -|删除|模块名:ohos.sensor
类名:sensor
方法名 or 属性名:off_SensorType_SENSOR_TYPE_ID_LINEAR_ACCELEROMETER||@ohos.sensor.d.ts| -|删除|模块名:ohos.sensor
类名:Sensor
方法名 or 属性名:sensorTypeId||@ohos.sensor.d.ts| -|删除|模块名:ohos.sensor
类名:sensor
方法名 or 属性名:getSensorLists||@ohos.sensor.d.ts| -|删除|模块名:ohos.sensor
类名:sensor
方法名 or 属性名:getSensorLists||@ohos.sensor.d.ts| -|删除|模块名:ohos.sensor
类名:SensorType
方法名 or 属性名:SENSOR_TYPE_ID_LINEAR_ACCELEROMETER||@ohos.sensor.d.ts| -|删除|模块名:ohos.sensor
类名:SensorType
方法名 or 属性名:SENSOR_TYPE_ID_HEART_BEAT_RATE||@ohos.sensor.d.ts| +|新增|NA|模块名: ohos.sensor
类名: SensorId|@ohos.sensor.d.ts| +|新增|NA|模块名: ohos.sensor
类名: SensorId
方法名 or 属性名:ACCELEROMETER|@ohos.sensor.d.ts| +|新增|NA|模块名: ohos.sensor
类名: SensorId
方法名 or 属性名:GYROSCOPE|@ohos.sensor.d.ts| +|新增|NA|模块名: ohos.sensor
类名: SensorId
方法名 or 属性名:AMBIENT_LIGHT|@ohos.sensor.d.ts| +|新增|NA|模块名: ohos.sensor
类名: SensorId
方法名 or 属性名:MAGNETIC_FIELD|@ohos.sensor.d.ts| +|新增|NA|模块名: ohos.sensor
类名: SensorId
方法名 or 属性名:BAROMETER|@ohos.sensor.d.ts| +|新增|NA|模块名: ohos.sensor
类名: SensorId
方法名 or 属性名:HALL|@ohos.sensor.d.ts| +|新增|NA|模块名: ohos.sensor
类名: SensorId
方法名 or 属性名:PROXIMITY|@ohos.sensor.d.ts| +|新增|NA|模块名: ohos.sensor
类名: SensorId
方法名 or 属性名:HUMIDITY|@ohos.sensor.d.ts| +|新增|NA|模块名: ohos.sensor
类名: SensorId
方法名 or 属性名:ORIENTATION|@ohos.sensor.d.ts| +|新增|NA|模块名: ohos.sensor
类名: SensorId
方法名 or 属性名:GRAVITY|@ohos.sensor.d.ts| +|新增|NA|模块名: ohos.sensor
类名: SensorId
方法名 or 属性名:LINEAR_ACCELEROMETER|@ohos.sensor.d.ts| +|新增|NA|模块名: ohos.sensor
类名: SensorId
方法名 or 属性名:ROTATION_VECTOR|@ohos.sensor.d.ts| +|新增|NA|模块名: ohos.sensor
类名: SensorId
方法名 or 属性名:AMBIENT_TEMPERATURE|@ohos.sensor.d.ts| +|新增|NA|模块名: ohos.sensor
类名: SensorId
方法名 or 属性名:MAGNETIC_FIELD_UNCALIBRATED|@ohos.sensor.d.ts| +|新增|NA|模块名: ohos.sensor
类名: SensorId
方法名 or 属性名:GYROSCOPE_UNCALIBRATED|@ohos.sensor.d.ts| +|新增|NA|模块名: ohos.sensor
类名: SensorId
方法名 or 属性名:SIGNIFICANT_MOTION|@ohos.sensor.d.ts| +|新增|NA|模块名: ohos.sensor
类名: SensorId
方法名 or 属性名:PEDOMETER_DETECTION|@ohos.sensor.d.ts| +|新增|NA|模块名: ohos.sensor
类名: SensorId
方法名 or 属性名:PEDOMETER|@ohos.sensor.d.ts| +|新增|NA|模块名: ohos.sensor
类名: SensorId
方法名 or 属性名:HEART_RATE|@ohos.sensor.d.ts| +|新增|NA|模块名: ohos.sensor
类名: SensorId
方法名 or 属性名:WEAR_DETECTION|@ohos.sensor.d.ts| +|新增|NA|模块名: ohos.sensor
类名: SensorId
方法名 or 属性名:ACCELEROMETER_UNCALIBRATED|@ohos.sensor.d.ts| +|新增|NA|方法名 or 属性名:once
函数:function once(type: SensorId.ACCELEROMETER, callback: Callback): void;|@ohos.sensor.d.ts| +|新增|NA|方法名 or 属性名:once
函数:function once(type: SensorId.ACCELEROMETER_UNCALIBRATED, callback: Callback): void;|@ohos.sensor.d.ts| +|新增|NA|方法名 or 属性名:once
函数:function once(type: SensorId.AMBIENT_LIGHT, callback: Callback): void;|@ohos.sensor.d.ts| +|新增|NA|方法名 or 属性名:once
函数:function once(type: SensorId.AMBIENT_TEMPERATURE, callback: Callback): void;|@ohos.sensor.d.ts| +|新增|NA|方法名 or 属性名:once
函数:function once(type: SensorId.BAROMETER, callback: Callback): void;|@ohos.sensor.d.ts| +|新增|NA|方法名 or 属性名:once
函数:function once(type: SensorId.GRAVITY, callback: Callback): void;|@ohos.sensor.d.ts| +|新增|NA|方法名 or 属性名:once
函数:function once(type: SensorId.GYROSCOPE, callback: Callback): void;|@ohos.sensor.d.ts| +|新增|NA|方法名 or 属性名:once
函数:function once(type: SensorId.GYROSCOPE_UNCALIBRATED, callback: Callback): void;|@ohos.sensor.d.ts| +|新增|NA|方法名 or 属性名:once
函数:function once(type: SensorId.HALL, callback: Callback): void;|@ohos.sensor.d.ts| +|新增|NA|方法名 or 属性名:once
函数:function once(type: SensorId.HEART_RATE, callback: Callback): void;|@ohos.sensor.d.ts| +|新增|NA|方法名 or 属性名:once
函数:function once(type: SensorId.HUMIDITY, callback: Callback): void;|@ohos.sensor.d.ts| +|新增|NA|方法名 or 属性名:once
函数:function once(type: SensorId.LINEAR_ACCELEROMETER, callback: Callback): void;|@ohos.sensor.d.ts| +|新增|NA|方法名 or 属性名:once
函数:function once(type: SensorId.MAGNETIC_FIELD, callback: Callback): void;|@ohos.sensor.d.ts| +|新增|NA|方法名 or 属性名:once
函数:function once(type: SensorId.MAGNETIC_FIELD_UNCALIBRATED, callback: Callback): void;|@ohos.sensor.d.ts| +|新增|NA|方法名 or 属性名:once
函数:function once(type: SensorId.ORIENTATION, callback: Callback): void;|@ohos.sensor.d.ts| +|新增|NA|方法名 or 属性名:once
函数:function once(type: SensorId.PEDOMETER, callback: Callback): void;|@ohos.sensor.d.ts| +|新增|NA|方法名 or 属性名:once
函数:function once(type: SensorId.PEDOMETER_DETECTION, callback: Callback): void;|@ohos.sensor.d.ts| +|新增|NA|方法名 or 属性名:once
函数:function once(type: SensorId.PROXIMITY, callback: Callback): void;|@ohos.sensor.d.ts| +|新增|NA|方法名 or 属性名:once
函数:function once(type: SensorId.ROTATION_VECTOR, callback: Callback): void;|@ohos.sensor.d.ts| +|新增|NA|方法名 or 属性名:once
函数:function once(type: SensorId.SIGNIFICANT_MOTION, callback: Callback): void;|@ohos.sensor.d.ts| +|新增|NA|方法名 or 属性名:once
函数:function once(type: SensorId.WEAR_DETECTION, callback: Callback): void;|@ohos.sensor.d.ts| +|新增|NA|方法名 or 属性名:getSingleSensor
函数:function getSingleSensor(type: SensorId, callback: AsyncCallback): void;|@ohos.sensor.d.ts| +|新增|NA|方法名 or 属性名:getSingleSensor
函数:function getSingleSensor(type: SensorId): Promise;|@ohos.sensor.d.ts| +|新增|NA|模块名: ohos.vibrator
类名: VibrateAttribute|@ohos.vibrator.d.ts| +|新增|NA|模块名: ohos.vibrator
类名: VibrateAttribute
方法名 or 属性名:id|@ohos.vibrator.d.ts| +|新增|NA|模块名: ohos.vibrator
类名: VibrateAttribute
方法名 or 属性名:usage|@ohos.vibrator.d.ts| +|新增|NA|模块名: ohos.vibrator
类名: VibrateTime|@ohos.vibrator.d.ts| +|新增|NA|模块名: ohos.vibrator
类名: VibrateTime
方法名 or 属性名:type|@ohos.vibrator.d.ts| +|新增|NA|模块名: ohos.vibrator
类名: VibrateTime
方法名 or 属性名:duration|@ohos.vibrator.d.ts| +|新增|NA|模块名: ohos.vibrator
类名: VibratePreset|@ohos.vibrator.d.ts| +|新增|NA|模块名: ohos.vibrator
类名: VibratePreset
方法名 or 属性名:type|@ohos.vibrator.d.ts| +|新增|NA|模块名: ohos.vibrator
类名: VibratePreset
方法名 or 属性名:effectId|@ohos.vibrator.d.ts| +|新增|NA|模块名: ohos.vibrator
类名: VibratePreset
方法名 or 属性名:count|@ohos.vibrator.d.ts| +|删除|模块名:ohos.sensor
类名:sensor
方法名 or 属性名:on_SensorType_SENSOR_TYPE_ID_HEART_BEAT_RATE|NA|@ohos.sensor.d.ts| +|删除|模块名:ohos.sensor
类名:sensor
方法名 or 属性名:on_SensorType_SENSOR_TYPE_ID_LINEAR_ACCELEROMETER|NA|@ohos.sensor.d.ts| +|删除|模块名:ohos.sensor
类名:sensor
方法名 or 属性名:off_SensorType_SENSOR_TYPE_ID_HEART_BEAT_RATE|NA|@ohos.sensor.d.ts| +|删除|模块名:ohos.sensor
类名:sensor
方法名 or 属性名:off_SensorType_SENSOR_TYPE_ID_LINEAR_ACCELEROMETER|NA|@ohos.sensor.d.ts| +|删除|模块名:ohos.sensor
类名:Sensor
方法名 or 属性名:sensorTypeId|NA|@ohos.sensor.d.ts| +|删除|模块名:ohos.sensor
类名:sensor
方法名 or 属性名:getSensorLists|NA|@ohos.sensor.d.ts| +|删除|模块名:ohos.sensor
类名:sensor
方法名 or 属性名:getSensorLists|NA|@ohos.sensor.d.ts| +|删除|模块名:ohos.sensor
类名:SensorType
方法名 or 属性名:SENSOR_TYPE_ID_LINEAR_ACCELEROMETER|NA|@ohos.sensor.d.ts| +|删除|模块名:ohos.sensor
类名:SensorType
方法名 or 属性名:SENSOR_TYPE_ID_HEART_BEAT_RATE|NA|@ohos.sensor.d.ts| |废弃版本有变化|方法名 or 属性名:on_SensorType_SENSOR_TYPE_ID_ACCELEROMETER
废弃版本:N/A|方法名 or 属性名:on_SensorType_SENSOR_TYPE_ID_ACCELEROMETER
废弃版本:9
代替接口:ohos.sensor.SensorId.ACCELEROMETER |@ohos.sensor.d.ts| |废弃版本有变化|方法名 or 属性名:on_SensorType_SENSOR_TYPE_ID_ACCELEROMETER_UNCALIBRATED
废弃版本:N/A|方法名 or 属性名:on_SensorType_SENSOR_TYPE_ID_ACCELEROMETER_UNCALIBRATED
废弃版本:9
代替接口:ohos.sensor.SensorId.ACCELEROMETER_UNCALIBRATED |@ohos.sensor.d.ts| |废弃版本有变化|方法名 or 属性名:on_SensorType_SENSOR_TYPE_ID_AMBIENT_LIGHT
废弃版本:N/A|方法名 or 属性名:on_SensorType_SENSOR_TYPE_ID_AMBIENT_LIGHT
废弃版本:9
代替接口:ohos.sensor.SensorId.AMBIENT_LIGHT |@ohos.sensor.d.ts| @@ -207,3 +148,5 @@ |废弃版本有变化|方法名 or 属性名:vibrate
废弃版本:N/A|方法名 or 属性名:vibrate
废弃版本:9|@ohos.vibrator.d.ts| |废弃版本有变化|方法名 or 属性名:stop
废弃版本:N/A|方法名 or 属性名:stop
废弃版本:9
代替接口:ohos.vibrator.stopVibration |@ohos.vibrator.d.ts| |废弃版本有变化|方法名 or 属性名:stop
废弃版本:N/A|方法名 or 属性名:stop
废弃版本:9|@ohos.vibrator.d.ts| +|起始版本有变化|类名:vibrator
起始版本:9|类名:vibrator
起始版本:8|@ohos.vibrator.d.ts| +|删除(权限)|类名:vibrator
权限:ohos.permission.VIBRATE|类名:vibrator
权限:N/A|@ohos.vibrator.d.ts| diff --git a/zh-cn/release-notes/api-diff/monthly-202210/js-apidiff-start-up.md b/zh-cn/release-notes/api-diff/monthly-202210/js-apidiff-start-up.md index 20d25dab9e4cfdf0b475e1e074e9414c5eaff13b..1c53c06941c6f29d7655825636eca6e56977e13d 100644 --- a/zh-cn/release-notes/api-diff/monthly-202210/js-apidiff-start-up.md +++ b/zh-cn/release-notes/api-diff/monthly-202210/js-apidiff-start-up.md @@ -1,10 +1,10 @@ -| 操作 | 新版本 | 旧版本 | d.ts文件 | +| 操作 | 旧版本 | 新版本 | d.ts文件 | | ---- | ------ | ------ | -------- | -|新增||模块名: ohos.systemParameterV9
类名: systemParameterV9|@ohos.systemParameterV9.d.ts| -|新增||模块名: ohos.systemParameterV9
类名: systemParameterV9
方法名 or 属性名: getSync|@ohos.systemParameterV9.d.ts| -|新增||模块名: ohos.systemParameterV9
类名: systemParameterV9
方法名 or 属性名: get|@ohos.systemParameterV9.d.ts| -|新增||模块名: ohos.systemParameterV9
类名: systemParameterV9
方法名 or 属性名: get|@ohos.systemParameterV9.d.ts| -|新增||模块名: ohos.systemParameterV9
类名: systemParameterV9
方法名 or 属性名: get|@ohos.systemParameterV9.d.ts| -|新增||模块名: ohos.systemParameterV9
类名: systemParameterV9
方法名 or 属性名: setSync|@ohos.systemParameterV9.d.ts| -|新增||模块名: ohos.systemParameterV9
类名: systemParameterV9
方法名 or 属性名: set|@ohos.systemParameterV9.d.ts| -|新增||模块名: ohos.systemParameterV9
类名: systemParameterV9
方法名 or 属性名: set|@ohos.systemParameterV9.d.ts| +|新增|NA|模块名: ohos.systemParameterV9
类名: systemParameterV9|@ohos.systemParameterV9.d.ts| +|新增|NA|模块名: ohos.systemParameterV9
类名: systemParameterV9
方法名 or 属性名: getSync|@ohos.systemParameterV9.d.ts| +|新增|NA|模块名: ohos.systemParameterV9
类名: systemParameterV9
方法名 or 属性名: get|@ohos.systemParameterV9.d.ts| +|新增|NA|模块名: ohos.systemParameterV9
类名: systemParameterV9
方法名 or 属性名: get|@ohos.systemParameterV9.d.ts| +|新增|NA|模块名: ohos.systemParameterV9
类名: systemParameterV9
方法名 or 属性名: get|@ohos.systemParameterV9.d.ts| +|新增|NA|模块名: ohos.systemParameterV9
类名: systemParameterV9
方法名 or 属性名: setSync|@ohos.systemParameterV9.d.ts| +|新增|NA|模块名: ohos.systemParameterV9
类名: systemParameterV9
方法名 or 属性名: set|@ohos.systemParameterV9.d.ts| +|新增|NA|模块名: ohos.systemParameterV9
类名: systemParameterV9
方法名 or 属性名: set|@ohos.systemParameterV9.d.ts| diff --git a/zh-cn/release-notes/api-diff/monthly-202210/js-apidiff-telephony.md b/zh-cn/release-notes/api-diff/monthly-202210/js-apidiff-telephony.md index 3c51a0ba2fa536390a9d7204bdac4769b1f0695a..44de06ea042e7b0cb26f508e199d3e18c1185180 100644 --- a/zh-cn/release-notes/api-diff/monthly-202210/js-apidiff-telephony.md +++ b/zh-cn/release-notes/api-diff/monthly-202210/js-apidiff-telephony.md @@ -1,4 +1,25 @@ -| 操作 | 新版本 | 旧版本 | d.ts文件 | +| 操作 | 旧版本 | 新版本 | d.ts文件 | | ---- | ------ | ------ | -------- | -|新增||方法名 or 属性名:sendUpdateCellLocationRequest
函数:function sendUpdateCellLocationRequest(slotId?: number): Promise;|@ohos.telephony.radio.d.ts| -|起始版本有变化|方法名 or 属性名:sendUpdateCellLocationRequest
起始版本:9|方法名 or 属性名:sendUpdateCellLocationRequest
起始版本:8|@ohos.telephony.radio.d.ts| +|新增|NA|模块名: ohos.telephony.data
类名: data
方法名 or 属性名: getDefaultCellularDataSlotIdSync|@ohos.telephony.data.d.ts| +|新增|NA|方法名 or 属性名:sendUpdateCellLocationRequest
函数:function sendUpdateCellLocationRequest(slotId: number, callback: AsyncCallback): void;|@ohos.telephony.radio.d.ts| +|新增|NA|方法名 or 属性名:sendUpdateCellLocationRequest
函数:function sendUpdateCellLocationRequest(slotId?: number): Promise;|@ohos.telephony.radio.d.ts| +|新增|NA|模块名: ohos.telephony.radio
类名: ImsRegState|@ohos.telephony.radio.d.ts| +|新增|NA|模块名: ohos.telephony.radio
类名: ImsRegState
方法名 or 属性名:IMS_UNREGISTERED|@ohos.telephony.radio.d.ts| +|新增|NA|模块名: ohos.telephony.radio
类名: ImsRegState
方法名 or 属性名:IMS_REGISTERED|@ohos.telephony.radio.d.ts| +|新增|NA|模块名: ohos.telephony.radio
类名: ImsRegTech|@ohos.telephony.radio.d.ts| +|新增|NA|模块名: ohos.telephony.radio
类名: ImsRegTech
方法名 or 属性名:REGISTRATION_TECH_NONE|@ohos.telephony.radio.d.ts| +|新增|NA|模块名: ohos.telephony.radio
类名: ImsRegTech
方法名 or 属性名:REGISTRATION_TECH_LTE|@ohos.telephony.radio.d.ts| +|新增|NA|模块名: ohos.telephony.radio
类名: ImsRegTech
方法名 or 属性名:REGISTRATION_TECH_IWLAN|@ohos.telephony.radio.d.ts| +|新增|NA|模块名: ohos.telephony.radio
类名: ImsRegTech
方法名 or 属性名:REGISTRATION_TECH_NR|@ohos.telephony.radio.d.ts| +|新增|NA|模块名: ohos.telephony.radio
类名: ImsRegInfo|@ohos.telephony.radio.d.ts| +|新增|NA|模块名: ohos.telephony.radio
类名: ImsRegInfo
方法名 or 属性名:imsRegState|@ohos.telephony.radio.d.ts| +|新增|NA|模块名: ohos.telephony.radio
类名: ImsRegInfo
方法名 or 属性名:imsRegTech|@ohos.telephony.radio.d.ts| +|新增|NA|模块名: ohos.telephony.radio
类名: ImsServiceType|@ohos.telephony.radio.d.ts| +|新增|NA|模块名: ohos.telephony.radio
类名: ImsServiceType
方法名 or 属性名:TYPE_VOICE|@ohos.telephony.radio.d.ts| +|新增|NA|模块名: ohos.telephony.radio
类名: ImsServiceType
方法名 or 属性名:TYPE_VIDEO|@ohos.telephony.radio.d.ts| +|新增|NA|模块名: ohos.telephony.radio
类名: ImsServiceType
方法名 or 属性名:TYPE_UT|@ohos.telephony.radio.d.ts| +|新增|NA|模块名: ohos.telephony.radio
类名: ImsServiceType
方法名 or 属性名:TYPE_SMS|@ohos.telephony.radio.d.ts| +|新增|NA|模块名: ohos.telephony.sim
类名: sim
方法名 or 属性名: getOpKey|@ohos.telephony.sim.d.ts| +|新增|NA|模块名: ohos.telephony.sim
类名: sim
方法名 or 属性名: getOpKey|@ohos.telephony.sim.d.ts| +|新增|NA|模块名: ohos.telephony.sim
类名: sim
方法名 or 属性名: getOpName|@ohos.telephony.sim.d.ts| +|新增|NA|模块名: ohos.telephony.sim
类名: sim
方法名 or 属性名: getOpName|@ohos.telephony.sim.d.ts| diff --git a/zh-cn/release-notes/api-diff/monthly-202210/js-apidiff-unitest.md b/zh-cn/release-notes/api-diff/monthly-202210/js-apidiff-unitest.md index 617382c1302aa38f51908f5d5722e771a77617e9..f9155d5877925e166b400891052ce423be477409 100644 --- a/zh-cn/release-notes/api-diff/monthly-202210/js-apidiff-unitest.md +++ b/zh-cn/release-notes/api-diff/monthly-202210/js-apidiff-unitest.md @@ -1,107 +1,121 @@ -| 操作 | 新版本 | 旧版本 | d.ts文件 | +| 操作 | 旧版本 | 新版本 | d.ts文件 | | ---- | ------ | ------ | -------- | -|新增||模块名: ohos.uitest
类名: On|@ohos.uitest.d.ts| -|新增||模块名: ohos.uitest
类名: On
方法名 or 属性名:text|@ohos.uitest.d.ts| -|新增||模块名: ohos.uitest
类名: On
方法名 or 属性名:id|@ohos.uitest.d.ts| -|新增||模块名: ohos.uitest
类名: On
方法名 or 属性名:type|@ohos.uitest.d.ts| -|新增||模块名: ohos.uitest
类名: On
方法名 or 属性名:clickable|@ohos.uitest.d.ts| -|新增||模块名: ohos.uitest
类名: On
方法名 or 属性名:longClickable|@ohos.uitest.d.ts| -|新增||模块名: ohos.uitest
类名: On
方法名 or 属性名:scrollable|@ohos.uitest.d.ts| -|新增||模块名: ohos.uitest
类名: On
方法名 or 属性名:enabled|@ohos.uitest.d.ts| -|新增||模块名: ohos.uitest
类名: On
方法名 or 属性名:focused|@ohos.uitest.d.ts| -|新增||模块名: ohos.uitest
类名: On
方法名 or 属性名:selected|@ohos.uitest.d.ts| -|新增||模块名: ohos.uitest
类名: On
方法名 or 属性名:checked|@ohos.uitest.d.ts| -|新增||模块名: ohos.uitest
类名: On
方法名 or 属性名:checkable|@ohos.uitest.d.ts| -|新增||模块名: ohos.uitest
类名: On
方法名 or 属性名:isBefore|@ohos.uitest.d.ts| -|新增||模块名: ohos.uitest
类名: On
方法名 or 属性名:isAfter|@ohos.uitest.d.ts| -|新增||模块名: ohos.uitest
类名: Component|@ohos.uitest.d.ts| -|新增||模块名: ohos.uitest
类名: Component
方法名 or 属性名:click|@ohos.uitest.d.ts| -|新增||模块名: ohos.uitest
类名: Component
方法名 or 属性名:doubleClick|@ohos.uitest.d.ts| -|新增||模块名: ohos.uitest
类名: Component
方法名 or 属性名:longClick|@ohos.uitest.d.ts| -|新增||模块名: ohos.uitest
类名: Component
方法名 or 属性名:getId|@ohos.uitest.d.ts| -|新增||模块名: ohos.uitest
类名: Component
方法名 or 属性名:getText|@ohos.uitest.d.ts| -|新增||模块名: ohos.uitest
类名: Component
方法名 or 属性名:getType|@ohos.uitest.d.ts| -|新增||模块名: ohos.uitest
类名: Component
方法名 or 属性名:isClickable|@ohos.uitest.d.ts| -|新增||模块名: ohos.uitest
类名: Component
方法名 or 属性名:isLongClickable|@ohos.uitest.d.ts| -|新增||模块名: ohos.uitest
类名: Component
方法名 or 属性名:isScrollable|@ohos.uitest.d.ts| -|新增||模块名: ohos.uitest
类名: Component
方法名 or 属性名:isEnabled|@ohos.uitest.d.ts| -|新增||模块名: ohos.uitest
类名: Component
方法名 or 属性名:isFocused|@ohos.uitest.d.ts| -|新增||模块名: ohos.uitest
类名: Component
方法名 or 属性名:isSelected|@ohos.uitest.d.ts| -|新增||模块名: ohos.uitest
类名: Component
方法名 or 属性名:isChecked|@ohos.uitest.d.ts| -|新增||模块名: ohos.uitest
类名: Component
方法名 or 属性名:isCheckable|@ohos.uitest.d.ts| -|新增||模块名: ohos.uitest
类名: Component
方法名 or 属性名:inputText|@ohos.uitest.d.ts| -|新增||模块名: ohos.uitest
类名: Component
方法名 or 属性名:clearText|@ohos.uitest.d.ts| -|新增||模块名: ohos.uitest
类名: Component
方法名 or 属性名:scrollToTop|@ohos.uitest.d.ts| -|新增||模块名: ohos.uitest
类名: Component
方法名 or 属性名:scrollToBottom|@ohos.uitest.d.ts| -|新增||模块名: ohos.uitest
类名: Component
方法名 or 属性名:scrollSearch|@ohos.uitest.d.ts| -|新增||模块名: ohos.uitest
类名: Component
方法名 or 属性名:getBounds|@ohos.uitest.d.ts| -|新增||模块名: ohos.uitest
类名: Component
方法名 or 属性名:getBoundsCenter|@ohos.uitest.d.ts| -|新增||模块名: ohos.uitest
类名: Component
方法名 or 属性名:dragTo|@ohos.uitest.d.ts| -|新增||模块名: ohos.uitest
类名: Component
方法名 or 属性名:pinchOut|@ohos.uitest.d.ts| -|新增||模块名: ohos.uitest
类名: Component
方法名 or 属性名:pinchIn|@ohos.uitest.d.ts| -|新增||模块名: ohos.uitest
类名: Driver|@ohos.uitest.d.ts| -|新增||模块名: ohos.uitest
类名: Driver
方法名 or 属性名:create|@ohos.uitest.d.ts| -|新增||模块名: ohos.uitest
类名: Driver
方法名 or 属性名:delayMs|@ohos.uitest.d.ts| -|新增||模块名: ohos.uitest
类名: Driver
方法名 or 属性名:findComponent|@ohos.uitest.d.ts| -|新增||模块名: ohos.uitest
类名: Driver
方法名 or 属性名:findWindow|@ohos.uitest.d.ts| -|新增||模块名: ohos.uitest
类名: Driver
方法名 or 属性名:waitForComponent|@ohos.uitest.d.ts| -|新增||模块名: ohos.uitest
类名: Driver
方法名 or 属性名:findComponents|@ohos.uitest.d.ts| -|新增||模块名: ohos.uitest
类名: Driver
方法名 or 属性名:assertComponentExist|@ohos.uitest.d.ts| -|新增||模块名: ohos.uitest
类名: Driver
方法名 or 属性名:pressBack|@ohos.uitest.d.ts| -|新增||模块名: ohos.uitest
类名: Driver
方法名 or 属性名:triggerKey|@ohos.uitest.d.ts| -|新增||模块名: ohos.uitest
类名: Driver
方法名 or 属性名:triggerCombineKeys|@ohos.uitest.d.ts| -|新增||模块名: ohos.uitest
类名: Driver
方法名 or 属性名:click|@ohos.uitest.d.ts| -|新增||模块名: ohos.uitest
类名: Driver
方法名 or 属性名:doubleClick|@ohos.uitest.d.ts| -|新增||模块名: ohos.uitest
类名: Driver
方法名 or 属性名:longClick|@ohos.uitest.d.ts| -|新增||模块名: ohos.uitest
类名: Driver
方法名 or 属性名:swipe|@ohos.uitest.d.ts| -|新增||模块名: ohos.uitest
类名: Driver
方法名 or 属性名:drag|@ohos.uitest.d.ts| -|新增||模块名: ohos.uitest
类名: Driver
方法名 or 属性名:screenCap|@ohos.uitest.d.ts| -|新增||模块名: ohos.uitest
类名: Driver
方法名 or 属性名:setDisplayRotation|@ohos.uitest.d.ts| -|新增||模块名: ohos.uitest
类名: Driver
方法名 or 属性名:getDisplayRotation|@ohos.uitest.d.ts| -|新增||模块名: ohos.uitest
类名: Driver
方法名 or 属性名:setDisplayRotationEnabled|@ohos.uitest.d.ts| -|新增||模块名: ohos.uitest
类名: Driver
方法名 or 属性名:getDisplaySize|@ohos.uitest.d.ts| -|新增||模块名: ohos.uitest
类名: Driver
方法名 or 属性名:getDisplayDensity|@ohos.uitest.d.ts| -|新增||模块名: ohos.uitest
类名: Driver
方法名 or 属性名:wakeUpDisplay|@ohos.uitest.d.ts| -|新增||模块名: ohos.uitest
类名: Driver
方法名 or 属性名:pressHome|@ohos.uitest.d.ts| -|新增||模块名: ohos.uitest
类名: Driver
方法名 or 属性名:waitForIdle|@ohos.uitest.d.ts| -|新增||模块名: ohos.uitest
类名: Driver
方法名 or 属性名:fling|@ohos.uitest.d.ts| -|新增||模块名: ohos.uitest
类名: Driver
方法名 or 属性名:injectMultiPointerAction|@ohos.uitest.d.ts| -|新增||方法名 or 属性名:focus
函数:focus(): Promise;|@ohos.uitest.d.ts| -|新增||方法名 or 属性名:moveTo
函数:moveTo(x: number, y: number): Promise;|@ohos.uitest.d.ts| -|新增||方法名 or 属性名:resize
函数:resize(wide: number, height: number, direction: ResizeDirection): Promise;|@ohos.uitest.d.ts| -|新增||方法名 or 属性名:split
函数:split(): Promise;|@ohos.uitest.d.ts| -|新增||方法名 or 属性名:maximize
函数:maximize(): Promise;|@ohos.uitest.d.ts| -|新增||方法名 or 属性名:minimize
函数:minimize(): Promise;|@ohos.uitest.d.ts| -|新增||方法名 or 属性名:resume
函数:resume(): Promise;|@ohos.uitest.d.ts| -|新增||方法名 or 属性名:close
函数:close(): Promise;|@ohos.uitest.d.ts| -|删除|模块名:ohos.uitest
类名:By
方法名 or 属性名:longClickable||@ohos.uitest.d.ts| -|删除|模块名:ohos.uitest
类名:By
方法名 or 属性名:checked||@ohos.uitest.d.ts| -|删除|模块名:ohos.uitest
类名:By
方法名 or 属性名:checkable||@ohos.uitest.d.ts| -|删除|模块名:ohos.uitest
类名:UiComponent
方法名 or 属性名:isLongClickable||@ohos.uitest.d.ts| -|删除|模块名:ohos.uitest
类名:UiComponent
方法名 or 属性名:isChecked||@ohos.uitest.d.ts| -|删除|模块名:ohos.uitest
类名:UiComponent
方法名 or 属性名:isCheckable||@ohos.uitest.d.ts| -|删除|模块名:ohos.uitest
类名:UiComponent
方法名 or 属性名:clearText||@ohos.uitest.d.ts| -|删除|模块名:ohos.uitest
类名:UiComponent
方法名 or 属性名:scrollToTop||@ohos.uitest.d.ts| -|删除|模块名:ohos.uitest
类名:UiComponent
方法名 or 属性名:scrollToBottom||@ohos.uitest.d.ts| -|删除|模块名:ohos.uitest
类名:UiComponent
方法名 or 属性名:getBounds||@ohos.uitest.d.ts| -|删除|模块名:ohos.uitest
类名:UiComponent
方法名 or 属性名:getBoundsCenter||@ohos.uitest.d.ts| -|删除|模块名:ohos.uitest
类名:UiComponent
方法名 or 属性名:dragTo||@ohos.uitest.d.ts| -|删除|模块名:ohos.uitest
类名:UiComponent
方法名 or 属性名:pinchOut||@ohos.uitest.d.ts| -|删除|模块名:ohos.uitest
类名:UiComponent
方法名 or 属性名:pinchIn||@ohos.uitest.d.ts| -|删除|模块名:ohos.uitest
类名:UiDriver
方法名 or 属性名:findWindow||@ohos.uitest.d.ts| -|删除|模块名:ohos.uitest
类名:UiDriver
方法名 or 属性名:waitForComponent||@ohos.uitest.d.ts| -|删除|模块名:ohos.uitest
类名:UiDriver
方法名 or 属性名:triggerCombineKeys||@ohos.uitest.d.ts| -|删除|模块名:ohos.uitest
类名:UiDriver
方法名 or 属性名:drag||@ohos.uitest.d.ts| -|删除|模块名:ohos.uitest
类名:UiDriver
方法名 or 属性名:setDisplayRotation||@ohos.uitest.d.ts| -|删除|模块名:ohos.uitest
类名:UiDriver
方法名 or 属性名:getDisplayRotation||@ohos.uitest.d.ts| -|删除|模块名:ohos.uitest
类名:UiDriver
方法名 or 属性名:setDisplayRotationEnabled||@ohos.uitest.d.ts| -|删除|模块名:ohos.uitest
类名:UiDriver
方法名 or 属性名:getDisplaySize||@ohos.uitest.d.ts| -|删除|模块名:ohos.uitest
类名:UiDriver
方法名 or 属性名:getDisplayDensity||@ohos.uitest.d.ts| -|删除|模块名:ohos.uitest
类名:UiDriver
方法名 or 属性名:wakeUpDisplay||@ohos.uitest.d.ts| -|删除|模块名:ohos.uitest
类名:UiDriver
方法名 or 属性名:pressHome||@ohos.uitest.d.ts| -|删除|模块名:ohos.uitest
类名:UiDriver
方法名 or 属性名:waitForIdle||@ohos.uitest.d.ts| -|删除|模块名:ohos.uitest
类名:UiDriver
方法名 or 属性名:fling||@ohos.uitest.d.ts| -|删除|模块名:ohos.uitest
类名:UiDriver
方法名 or 属性名:injectMultiPointerAction||@ohos.uitest.d.ts| +|新增|NA|方法名 or 属性名:clickable
函数:clickable(b?: boolean): By;|@ohos.uitest.d.ts| +|新增|NA|方法名 or 属性名:scrollable
函数:scrollable(b?: boolean): By;|@ohos.uitest.d.ts| +|新增|NA|方法名 or 属性名:enabled
函数:enabled(b?: boolean): By;|@ohos.uitest.d.ts| +|新增|NA|方法名 or 属性名:focused
函数:focused(b?: boolean): By;|@ohos.uitest.d.ts| +|新增|NA|方法名 or 属性名:selected
函数:selected(b?: boolean): By;|@ohos.uitest.d.ts| +|新增|NA|方法名 or 属性名:isClickable
函数:isClickable(): Promise;|@ohos.uitest.d.ts| +|新增|NA|方法名 or 属性名:isScrollable
函数:isScrollable(): Promise;|@ohos.uitest.d.ts| +|新增|NA|方法名 or 属性名:isEnabled
函数:isEnabled(): Promise;|@ohos.uitest.d.ts| +|新增|NA|方法名 or 属性名:isFocused
函数:isFocused(): Promise;|@ohos.uitest.d.ts| +|新增|NA|方法名 or 属性名:isSelected
函数:isSelected(): Promise;|@ohos.uitest.d.ts| +|新增|NA|方法名 or 属性名:screenCap
函数:screenCap(savePath: string): Promise;|@ohos.uitest.d.ts| +|新增|NA|方法名 or 属性名:focused
函数:readonly focused?: boolean;|@ohos.uitest.d.ts| +|新增|NA|方法名 or 属性名:actived
函数:readonly actived?: boolean;|@ohos.uitest.d.ts| +|新增|NA|模块名: ohos.uitest
类名: On|@ohos.uitest.d.ts| +|新增|NA|模块名: ohos.uitest
类名: On
方法名 or 属性名:text|@ohos.uitest.d.ts| +|新增|NA|模块名: ohos.uitest
类名: On
方法名 or 属性名:id|@ohos.uitest.d.ts| +|新增|NA|模块名: ohos.uitest
类名: On
方法名 or 属性名:type|@ohos.uitest.d.ts| +|新增|NA|模块名: ohos.uitest
类名: On
方法名 or 属性名:clickable|@ohos.uitest.d.ts| +|新增|NA|模块名: ohos.uitest
类名: On
方法名 or 属性名:longClickable|@ohos.uitest.d.ts| +|新增|NA|模块名: ohos.uitest
类名: On
方法名 or 属性名:scrollable|@ohos.uitest.d.ts| +|新增|NA|模块名: ohos.uitest
类名: On
方法名 or 属性名:enabled|@ohos.uitest.d.ts| +|新增|NA|模块名: ohos.uitest
类名: On
方法名 or 属性名:focused|@ohos.uitest.d.ts| +|新增|NA|模块名: ohos.uitest
类名: On
方法名 or 属性名:selected|@ohos.uitest.d.ts| +|新增|NA|模块名: ohos.uitest
类名: On
方法名 or 属性名:checked|@ohos.uitest.d.ts| +|新增|NA|模块名: ohos.uitest
类名: On
方法名 or 属性名:checkable|@ohos.uitest.d.ts| +|新增|NA|模块名: ohos.uitest
类名: On
方法名 or 属性名:isBefore|@ohos.uitest.d.ts| +|新增|NA|模块名: ohos.uitest
类名: On
方法名 or 属性名:isAfter|@ohos.uitest.d.ts| +|新增|NA|模块名: ohos.uitest
类名: Component|@ohos.uitest.d.ts| +|新增|NA|模块名: ohos.uitest
类名: Component
方法名 or 属性名:click|@ohos.uitest.d.ts| +|新增|NA|模块名: ohos.uitest
类名: Component
方法名 or 属性名:doubleClick|@ohos.uitest.d.ts| +|新增|NA|模块名: ohos.uitest
类名: Component
方法名 or 属性名:longClick|@ohos.uitest.d.ts| +|新增|NA|模块名: ohos.uitest
类名: Component
方法名 or 属性名:getId|@ohos.uitest.d.ts| +|新增|NA|模块名: ohos.uitest
类名: Component
方法名 or 属性名:getText|@ohos.uitest.d.ts| +|新增|NA|模块名: ohos.uitest
类名: Component
方法名 or 属性名:getType|@ohos.uitest.d.ts| +|新增|NA|模块名: ohos.uitest
类名: Component
方法名 or 属性名:isClickable|@ohos.uitest.d.ts| +|新增|NA|模块名: ohos.uitest
类名: Component
方法名 or 属性名:isLongClickable|@ohos.uitest.d.ts| +|新增|NA|模块名: ohos.uitest
类名: Component
方法名 or 属性名:isScrollable|@ohos.uitest.d.ts| +|新增|NA|模块名: ohos.uitest
类名: Component
方法名 or 属性名:isEnabled|@ohos.uitest.d.ts| +|新增|NA|模块名: ohos.uitest
类名: Component
方法名 or 属性名:isFocused|@ohos.uitest.d.ts| +|新增|NA|模块名: ohos.uitest
类名: Component
方法名 or 属性名:isSelected|@ohos.uitest.d.ts| +|新增|NA|模块名: ohos.uitest
类名: Component
方法名 or 属性名:isChecked|@ohos.uitest.d.ts| +|新增|NA|模块名: ohos.uitest
类名: Component
方法名 or 属性名:isCheckable|@ohos.uitest.d.ts| +|新增|NA|模块名: ohos.uitest
类名: Component
方法名 or 属性名:inputText|@ohos.uitest.d.ts| +|新增|NA|模块名: ohos.uitest
类名: Component
方法名 or 属性名:clearText|@ohos.uitest.d.ts| +|新增|NA|模块名: ohos.uitest
类名: Component
方法名 or 属性名:scrollToTop|@ohos.uitest.d.ts| +|新增|NA|模块名: ohos.uitest
类名: Component
方法名 or 属性名:scrollToBottom|@ohos.uitest.d.ts| +|新增|NA|模块名: ohos.uitest
类名: Component
方法名 or 属性名:scrollSearch|@ohos.uitest.d.ts| +|新增|NA|模块名: ohos.uitest
类名: Component
方法名 or 属性名:getBounds|@ohos.uitest.d.ts| +|新增|NA|模块名: ohos.uitest
类名: Component
方法名 or 属性名:getBoundsCenter|@ohos.uitest.d.ts| +|新增|NA|模块名: ohos.uitest
类名: Component
方法名 or 属性名:dragTo|@ohos.uitest.d.ts| +|新增|NA|模块名: ohos.uitest
类名: Component
方法名 or 属性名:pinchOut|@ohos.uitest.d.ts| +|新增|NA|模块名: ohos.uitest
类名: Component
方法名 or 属性名:pinchIn|@ohos.uitest.d.ts| +|新增|NA|模块名: ohos.uitest
类名: Driver|@ohos.uitest.d.ts| +|新增|NA|模块名: ohos.uitest
类名: Driver
方法名 or 属性名:create|@ohos.uitest.d.ts| +|新增|NA|模块名: ohos.uitest
类名: Driver
方法名 or 属性名:delayMs|@ohos.uitest.d.ts| +|新增|NA|模块名: ohos.uitest
类名: Driver
方法名 or 属性名:findComponent|@ohos.uitest.d.ts| +|新增|NA|模块名: ohos.uitest
类名: Driver
方法名 or 属性名:findWindow|@ohos.uitest.d.ts| +|新增|NA|模块名: ohos.uitest
类名: Driver
方法名 or 属性名:waitForComponent|@ohos.uitest.d.ts| +|新增|NA|模块名: ohos.uitest
类名: Driver
方法名 or 属性名:findComponents|@ohos.uitest.d.ts| +|新增|NA|模块名: ohos.uitest
类名: Driver
方法名 or 属性名:assertComponentExist|@ohos.uitest.d.ts| +|新增|NA|模块名: ohos.uitest
类名: Driver
方法名 or 属性名:pressBack|@ohos.uitest.d.ts| +|新增|NA|模块名: ohos.uitest
类名: Driver
方法名 or 属性名:triggerKey|@ohos.uitest.d.ts| +|新增|NA|模块名: ohos.uitest
类名: Driver
方法名 or 属性名:triggerCombineKeys|@ohos.uitest.d.ts| +|新增|NA|模块名: ohos.uitest
类名: Driver
方法名 or 属性名:click|@ohos.uitest.d.ts| +|新增|NA|模块名: ohos.uitest
类名: Driver
方法名 or 属性名:doubleClick|@ohos.uitest.d.ts| +|新增|NA|模块名: ohos.uitest
类名: Driver
方法名 or 属性名:longClick|@ohos.uitest.d.ts| +|新增|NA|模块名: ohos.uitest
类名: Driver
方法名 or 属性名:swipe|@ohos.uitest.d.ts| +|新增|NA|模块名: ohos.uitest
类名: Driver
方法名 or 属性名:drag|@ohos.uitest.d.ts| +|新增|NA|模块名: ohos.uitest
类名: Driver
方法名 or 属性名:screenCap|@ohos.uitest.d.ts| +|新增|NA|模块名: ohos.uitest
类名: Driver
方法名 or 属性名:setDisplayRotation|@ohos.uitest.d.ts| +|新增|NA|模块名: ohos.uitest
类名: Driver
方法名 or 属性名:getDisplayRotation|@ohos.uitest.d.ts| +|新增|NA|模块名: ohos.uitest
类名: Driver
方法名 or 属性名:setDisplayRotationEnabled|@ohos.uitest.d.ts| +|新增|NA|模块名: ohos.uitest
类名: Driver
方法名 or 属性名:getDisplaySize|@ohos.uitest.d.ts| +|新增|NA|模块名: ohos.uitest
类名: Driver
方法名 or 属性名:getDisplayDensity|@ohos.uitest.d.ts| +|新增|NA|模块名: ohos.uitest
类名: Driver
方法名 or 属性名:wakeUpDisplay|@ohos.uitest.d.ts| +|新增|NA|模块名: ohos.uitest
类名: Driver
方法名 or 属性名:pressHome|@ohos.uitest.d.ts| +|新增|NA|模块名: ohos.uitest
类名: Driver
方法名 or 属性名:waitForIdle|@ohos.uitest.d.ts| +|新增|NA|模块名: ohos.uitest
类名: Driver
方法名 or 属性名:fling|@ohos.uitest.d.ts| +|新增|NA|模块名: ohos.uitest
类名: Driver
方法名 or 属性名:injectMultiPointerAction|@ohos.uitest.d.ts| +|新增|NA|方法名 or 属性名:isActived
函数:isActived(): Promise;|@ohos.uitest.d.ts| +|新增|NA|方法名 or 属性名:focus
函数:focus(): Promise;|@ohos.uitest.d.ts| +|新增|NA|方法名 or 属性名:moveTo
函数:moveTo(x: number, y: number): Promise;|@ohos.uitest.d.ts| +|新增|NA|方法名 or 属性名:resize
函数:resize(wide: number, height: number, direction: ResizeDirection): Promise;|@ohos.uitest.d.ts| +|新增|NA|方法名 or 属性名:split
函数:split(): Promise;|@ohos.uitest.d.ts| +|新增|NA|方法名 or 属性名:maximize
函数:maximize(): Promise;|@ohos.uitest.d.ts| +|新增|NA|方法名 or 属性名:minimize
函数:minimize(): Promise;|@ohos.uitest.d.ts| +|新增|NA|方法名 or 属性名:resume
函数:resume(): Promise;|@ohos.uitest.d.ts| +|新增|NA|方法名 or 属性名:close
函数:close(): Promise;|@ohos.uitest.d.ts| +|删除|模块名:ohos.uitest
类名:By
方法名 or 属性名:longClickable|NA|@ohos.uitest.d.ts| +|删除|模块名:ohos.uitest
类名:By
方法名 or 属性名:checked|NA|@ohos.uitest.d.ts| +|删除|模块名:ohos.uitest
类名:By
方法名 or 属性名:checkable|NA|@ohos.uitest.d.ts| +|删除|模块名:ohos.uitest
类名:UiComponent
方法名 or 属性名:isLongClickable|NA|@ohos.uitest.d.ts| +|删除|模块名:ohos.uitest
类名:UiComponent
方法名 or 属性名:isChecked|NA|@ohos.uitest.d.ts| +|删除|模块名:ohos.uitest
类名:UiComponent
方法名 or 属性名:isCheckable|NA|@ohos.uitest.d.ts| +|删除|模块名:ohos.uitest
类名:UiComponent
方法名 or 属性名:clearText|NA|@ohos.uitest.d.ts| +|删除|模块名:ohos.uitest
类名:UiComponent
方法名 or 属性名:scrollToTop|NA|@ohos.uitest.d.ts| +|删除|模块名:ohos.uitest
类名:UiComponent
方法名 or 属性名:scrollToBottom|NA|@ohos.uitest.d.ts| +|删除|模块名:ohos.uitest
类名:UiComponent
方法名 or 属性名:getBounds|NA|@ohos.uitest.d.ts| +|删除|模块名:ohos.uitest
类名:UiComponent
方法名 or 属性名:getBoundsCenter|NA|@ohos.uitest.d.ts| +|删除|模块名:ohos.uitest
类名:UiComponent
方法名 or 属性名:dragTo|NA|@ohos.uitest.d.ts| +|删除|模块名:ohos.uitest
类名:UiComponent
方法名 or 属性名:pinchOut|NA|@ohos.uitest.d.ts| +|删除|模块名:ohos.uitest
类名:UiComponent
方法名 or 属性名:pinchIn|NA|@ohos.uitest.d.ts| +|删除|模块名:ohos.uitest
类名:UiDriver
方法名 or 属性名:findWindow|NA|@ohos.uitest.d.ts| +|删除|模块名:ohos.uitest
类名:UiDriver
方法名 or 属性名:waitForComponent|NA|@ohos.uitest.d.ts| +|删除|模块名:ohos.uitest
类名:UiDriver
方法名 or 属性名:triggerCombineKeys|NA|@ohos.uitest.d.ts| +|删除|模块名:ohos.uitest
类名:UiDriver
方法名 or 属性名:drag|NA|@ohos.uitest.d.ts| +|删除|模块名:ohos.uitest
类名:UiDriver
方法名 or 属性名:setDisplayRotation|NA|@ohos.uitest.d.ts| +|删除|模块名:ohos.uitest
类名:UiDriver
方法名 or 属性名:getDisplayRotation|NA|@ohos.uitest.d.ts| +|删除|模块名:ohos.uitest
类名:UiDriver
方法名 or 属性名:setDisplayRotationEnabled|NA|@ohos.uitest.d.ts| +|删除|模块名:ohos.uitest
类名:UiDriver
方法名 or 属性名:getDisplaySize|NA|@ohos.uitest.d.ts| +|删除|模块名:ohos.uitest
类名:UiDriver
方法名 or 属性名:getDisplayDensity|NA|@ohos.uitest.d.ts| +|删除|模块名:ohos.uitest
类名:UiDriver
方法名 or 属性名:wakeUpDisplay|NA|@ohos.uitest.d.ts| +|删除|模块名:ohos.uitest
类名:UiDriver
方法名 or 属性名:pressHome|NA|@ohos.uitest.d.ts| +|删除|模块名:ohos.uitest
类名:UiDriver
方法名 or 属性名:waitForIdle|NA|@ohos.uitest.d.ts| +|删除|模块名:ohos.uitest
类名:UiDriver
方法名 or 属性名:fling|NA|@ohos.uitest.d.ts| +|删除|模块名:ohos.uitest
类名:UiDriver
方法名 or 属性名:injectMultiPointerAction|NA|@ohos.uitest.d.ts| |废弃版本有变化|类名:By
废弃版本:N/A|类名:By
废弃版本:9
代替接口:ohos.uitest.On |@ohos.uitest.d.ts| |废弃版本有变化|类名:UiComponent
废弃版本:N/A|类名:UiComponent
废弃版本:9
代替接口:ohos.uitest.Component |@ohos.uitest.d.ts| |废弃版本有变化|类名:UiDriver
废弃版本:N/A|类名:UiDriver
废弃版本:9
代替接口:ohos.uitest.Driver |@ohos.uitest.d.ts| diff --git a/zh-cn/release-notes/api-diff/monthly-202210/js-apidiff-update.md b/zh-cn/release-notes/api-diff/monthly-202210/js-apidiff-update.md new file mode 100644 index 0000000000000000000000000000000000000000..393fb1c5af17cf76b3952e0cb619111e02e21703 --- /dev/null +++ b/zh-cn/release-notes/api-diff/monthly-202210/js-apidiff-update.md @@ -0,0 +1,3 @@ +| 操作 | 旧版本 | 新版本 | d.ts文件 | +| ---- | ------ | ------ | -------- | +|新增|NA|方法名 or 属性名:componentId
函数:componentId: string;|@ohos.update.d.ts| diff --git a/zh-cn/release-notes/api-diff/monthly-202210/js-apidiff-usb.md b/zh-cn/release-notes/api-diff/monthly-202210/js-apidiff-usb.md index 50aac95a5710c4bdc814d218711e0f03266750f1..41322d47544172cbfa60bf1c8c13b5816fec2d75 100644 --- a/zh-cn/release-notes/api-diff/monthly-202210/js-apidiff-usb.md +++ b/zh-cn/release-notes/api-diff/monthly-202210/js-apidiff-usb.md @@ -1,120 +1,120 @@ -| 操作 | 新版本 | 旧版本 | d.ts文件 | +| 操作 | 旧版本 | 新版本 | d.ts文件 | | ---- | ------ | ------ | -------- | -|新增||模块名: ohos.usbV9
类名: usbV9|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: usbV9
方法名 or 属性名: getDevices|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: usbV9
方法名 or 属性名: connectDevice|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: usbV9
方法名 or 属性名: hasRight|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: usbV9
方法名 or 属性名: requestRight|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: usbV9
方法名 or 属性名: removeRight|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: usbV9
方法名 or 属性名: addRight|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: usbV9
方法名 or 属性名: usbFunctionsFromString|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: usbV9
方法名 or 属性名: usbFunctionsToString|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: usbV9
方法名 or 属性名: setCurrentFunctions|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: usbV9
方法名 or 属性名: getCurrentFunctions|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: usbV9
方法名 or 属性名: getPorts|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: usbV9
方法名 or 属性名: getSupportedModes|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: usbV9
方法名 or 属性名: setPortRoles|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: usbV9
方法名 or 属性名: claimInterface|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: usbV9
方法名 or 属性名: releaseInterface|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: usbV9
方法名 or 属性名: setConfiguration|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: usbV9
方法名 or 属性名: setInterface|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: usbV9
方法名 or 属性名: getRawDescriptor|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: usbV9
方法名 or 属性名: getFileDescriptor|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: usbV9
方法名 or 属性名: controlTransfer|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: usbV9
方法名 or 属性名: bulkTransfer|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: usbV9
方法名 or 属性名: closePipe|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: USBEndpoint|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: USBEndpoint
方法名 or 属性名: address|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: USBEndpoint
方法名 or 属性名: attributes|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: USBEndpoint
方法名 or 属性名: interval|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: USBEndpoint
方法名 or 属性名: maxPacketSize|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: USBEndpoint
方法名 or 属性名: direction|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: USBEndpoint
方法名 or 属性名: number|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: USBEndpoint
方法名 or 属性名: type|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: USBEndpoint
方法名 or 属性名: interfaceId|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: USBInterface|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: USBInterface
方法名 or 属性名: id|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: USBInterface
方法名 or 属性名: protocol|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: USBInterface
方法名 or 属性名: clazz|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: USBInterface
方法名 or 属性名: subClass|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: USBInterface
方法名 or 属性名: alternateSetting|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: USBInterface
方法名 or 属性名: name|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: USBInterface
方法名 or 属性名: endpoints|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: USBConfig|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: USBConfig
方法名 or 属性名: id|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: USBConfig
方法名 or 属性名: attributes|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: USBConfig
方法名 or 属性名: maxPower|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: USBConfig
方法名 or 属性名: name|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: USBConfig
方法名 or 属性名: isRemoteWakeup|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: USBConfig
方法名 or 属性名: isSelfPowered|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: USBConfig
方法名 or 属性名: interfaces|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: USBDevice|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: USBDevice
方法名 or 属性名: busNum|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: USBDevice
方法名 or 属性名: devAddress|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: USBDevice
方法名 or 属性名: serial|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: USBDevice
方法名 or 属性名: name|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: USBDevice
方法名 or 属性名: manufacturerName|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: USBDevice
方法名 or 属性名: productName|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: USBDevice
方法名 or 属性名: version|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: USBDevice
方法名 or 属性名: vendorId|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: USBDevice
方法名 or 属性名: productId|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: USBDevice
方法名 or 属性名: clazz|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: USBDevice
方法名 or 属性名: subClass|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: USBDevice
方法名 or 属性名: protocol|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: USBDevice
方法名 or 属性名: configs|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: USBDevicePipe|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: USBDevicePipe
方法名 or 属性名: busNum|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: USBDevicePipe
方法名 or 属性名: devAddress|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: PowerRoleType|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: PowerRoleType
方法名 or 属性名: NONE|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: PowerRoleType
方法名 or 属性名: SOURCE|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: PowerRoleType
方法名 or 属性名: SINK|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: DataRoleType|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: DataRoleType
方法名 or 属性名: NONE|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: DataRoleType
方法名 or 属性名: HOST|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: DataRoleType
方法名 or 属性名: DEVICE|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: PortModeType|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: PortModeType
方法名 or 属性名: NONE|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: PortModeType
方法名 or 属性名: UFP|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: PortModeType
方法名 or 属性名: DFP|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: PortModeType
方法名 or 属性名: DRP|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: PortModeType
方法名 or 属性名: NUM_MODES|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: USBPortStatus|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: USBPortStatus
方法名 or 属性名: currentMode|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: USBPortStatus
方法名 or 属性名: currentPowerRole|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: USBPortStatus
方法名 or 属性名: currentDataRole|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: USBPort|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: USBPort
方法名 or 属性名: id|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: USBPort
方法名 or 属性名: supportedModes|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: USBPort
方法名 or 属性名: status|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: USBControlParams|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: USBControlParams
方法名 or 属性名: request|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: USBControlParams
方法名 or 属性名: target|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: USBControlParams
方法名 or 属性名: reqType|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: USBControlParams
方法名 or 属性名: value|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: USBControlParams
方法名 or 属性名: index|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: USBControlParams
方法名 or 属性名: data|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: USBRequestTargetType|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: USBRequestTargetType
方法名 or 属性名: USB_REQUEST_TARGET_DEVICE|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: USBRequestTargetType
方法名 or 属性名: USB_REQUEST_TARGET_INTERFACE|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: USBRequestTargetType
方法名 or 属性名: USB_REQUEST_TARGET_ENDPOINT|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: USBRequestTargetType
方法名 or 属性名: USB_REQUEST_TARGET_OTHER|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: USBControlRequestType|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: USBControlRequestType
方法名 or 属性名: USB_REQUEST_TYPE_STANDARD|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: USBControlRequestType
方法名 or 属性名: USB_REQUEST_TYPE_CLASS|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: USBControlRequestType
方法名 or 属性名: USB_REQUEST_TYPE_VENDOR|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: USBRequestDirection|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: USBRequestDirection
方法名 or 属性名: USB_REQUEST_DIR_TO_DEVICE|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: USBRequestDirection
方法名 or 属性名: USB_REQUEST_DIR_FROM_DEVICE|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: FunctionType|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: FunctionType
方法名 or 属性名: NONE|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: FunctionType
方法名 or 属性名: ACM|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: FunctionType
方法名 or 属性名: ECM|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: FunctionType
方法名 or 属性名: HDC|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: FunctionType
方法名 or 属性名: MTP|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: FunctionType
方法名 or 属性名: PTP|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: FunctionType
方法名 or 属性名: RNDIS|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: FunctionType
方法名 or 属性名: MIDI|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: FunctionType
方法名 or 属性名: AUDIO_SOURCE|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: FunctionType
方法名 or 属性名: NCM|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: usbV9|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: usbV9
方法名 or 属性名: getDevices|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: usbV9
方法名 or 属性名: connectDevice|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: usbV9
方法名 or 属性名: hasRight|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: usbV9
方法名 or 属性名: requestRight|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: usbV9
方法名 or 属性名: removeRight|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: usbV9
方法名 or 属性名: addRight|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: usbV9
方法名 or 属性名: usbFunctionsFromString|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: usbV9
方法名 or 属性名: usbFunctionsToString|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: usbV9
方法名 or 属性名: setCurrentFunctions|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: usbV9
方法名 or 属性名: getCurrentFunctions|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: usbV9
方法名 or 属性名: getPorts|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: usbV9
方法名 or 属性名: getSupportedModes|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: usbV9
方法名 or 属性名: setPortRoles|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: usbV9
方法名 or 属性名: claimInterface|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: usbV9
方法名 or 属性名: releaseInterface|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: usbV9
方法名 or 属性名: setConfiguration|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: usbV9
方法名 or 属性名: setInterface|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: usbV9
方法名 or 属性名: getRawDescriptor|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: usbV9
方法名 or 属性名: getFileDescriptor|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: usbV9
方法名 or 属性名: controlTransfer|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: usbV9
方法名 or 属性名: bulkTransfer|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: usbV9
方法名 or 属性名: closePipe|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: USBEndpoint|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: USBEndpoint
方法名 or 属性名: address|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: USBEndpoint
方法名 or 属性名: attributes|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: USBEndpoint
方法名 or 属性名: interval|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: USBEndpoint
方法名 or 属性名: maxPacketSize|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: USBEndpoint
方法名 or 属性名: direction|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: USBEndpoint
方法名 or 属性名: number|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: USBEndpoint
方法名 or 属性名: type|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: USBEndpoint
方法名 or 属性名: interfaceId|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: USBInterface|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: USBInterface
方法名 or 属性名: id|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: USBInterface
方法名 or 属性名: protocol|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: USBInterface
方法名 or 属性名: clazz|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: USBInterface
方法名 or 属性名: subClass|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: USBInterface
方法名 or 属性名: alternateSetting|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: USBInterface
方法名 or 属性名: name|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: USBInterface
方法名 or 属性名: endpoints|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: USBConfig|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: USBConfig
方法名 or 属性名: id|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: USBConfig
方法名 or 属性名: attributes|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: USBConfig
方法名 or 属性名: maxPower|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: USBConfig
方法名 or 属性名: name|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: USBConfig
方法名 or 属性名: isRemoteWakeup|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: USBConfig
方法名 or 属性名: isSelfPowered|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: USBConfig
方法名 or 属性名: interfaces|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: USBDevice|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: USBDevice
方法名 or 属性名: busNum|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: USBDevice
方法名 or 属性名: devAddress|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: USBDevice
方法名 or 属性名: serial|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: USBDevice
方法名 or 属性名: name|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: USBDevice
方法名 or 属性名: manufacturerName|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: USBDevice
方法名 or 属性名: productName|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: USBDevice
方法名 or 属性名: version|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: USBDevice
方法名 or 属性名: vendorId|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: USBDevice
方法名 or 属性名: productId|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: USBDevice
方法名 or 属性名: clazz|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: USBDevice
方法名 or 属性名: subClass|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: USBDevice
方法名 or 属性名: protocol|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: USBDevice
方法名 or 属性名: configs|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: USBDevicePipe|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: USBDevicePipe
方法名 or 属性名: busNum|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: USBDevicePipe
方法名 or 属性名: devAddress|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: PowerRoleType|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: PowerRoleType
方法名 or 属性名: NONE|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: PowerRoleType
方法名 or 属性名: SOURCE|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: PowerRoleType
方法名 or 属性名: SINK|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: DataRoleType|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: DataRoleType
方法名 or 属性名: NONE|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: DataRoleType
方法名 or 属性名: HOST|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: DataRoleType
方法名 or 属性名: DEVICE|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: PortModeType|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: PortModeType
方法名 or 属性名: NONE|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: PortModeType
方法名 or 属性名: UFP|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: PortModeType
方法名 or 属性名: DFP|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: PortModeType
方法名 or 属性名: DRP|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: PortModeType
方法名 or 属性名: NUM_MODES|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: USBPortStatus|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: USBPortStatus
方法名 or 属性名: currentMode|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: USBPortStatus
方法名 or 属性名: currentPowerRole|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: USBPortStatus
方法名 or 属性名: currentDataRole|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: USBPort|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: USBPort
方法名 or 属性名: id|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: USBPort
方法名 or 属性名: supportedModes|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: USBPort
方法名 or 属性名: status|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: USBControlParams|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: USBControlParams
方法名 or 属性名: request|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: USBControlParams
方法名 or 属性名: target|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: USBControlParams
方法名 or 属性名: reqType|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: USBControlParams
方法名 or 属性名: value|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: USBControlParams
方法名 or 属性名: index|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: USBControlParams
方法名 or 属性名: data|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: USBRequestTargetType|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: USBRequestTargetType
方法名 or 属性名: USB_REQUEST_TARGET_DEVICE|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: USBRequestTargetType
方法名 or 属性名: USB_REQUEST_TARGET_INTERFACE|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: USBRequestTargetType
方法名 or 属性名: USB_REQUEST_TARGET_ENDPOINT|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: USBRequestTargetType
方法名 or 属性名: USB_REQUEST_TARGET_OTHER|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: USBControlRequestType|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: USBControlRequestType
方法名 or 属性名: USB_REQUEST_TYPE_STANDARD|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: USBControlRequestType
方法名 or 属性名: USB_REQUEST_TYPE_CLASS|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: USBControlRequestType
方法名 or 属性名: USB_REQUEST_TYPE_VENDOR|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: USBRequestDirection|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: USBRequestDirection
方法名 or 属性名: USB_REQUEST_DIR_TO_DEVICE|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: USBRequestDirection
方法名 or 属性名: USB_REQUEST_DIR_FROM_DEVICE|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: FunctionType|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: FunctionType
方法名 or 属性名: NONE|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: FunctionType
方法名 or 属性名: ACM|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: FunctionType
方法名 or 属性名: ECM|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: FunctionType
方法名 or 属性名: HDC|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: FunctionType
方法名 or 属性名: MTP|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: FunctionType
方法名 or 属性名: PTP|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: FunctionType
方法名 or 属性名: RNDIS|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: FunctionType
方法名 or 属性名: MIDI|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: FunctionType
方法名 or 属性名: AUDIO_SOURCE|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: FunctionType
方法名 or 属性名: NCM|@ohos.usbV9.d.ts| |废弃版本有变化|类名:usb
废弃版本:N/A|类名:usb
废弃版本:9
代替接口:ohos.usbV9 |@ohos.usb.d.ts| diff --git a/zh-cn/release-notes/api-diff/monthly-202210/js-apidiff-user-iam.md b/zh-cn/release-notes/api-diff/monthly-202210/js-apidiff-user-iam.md index ee2502736e821ab02c34252a67017c49b1e3226d..2f1e2fe48062e43e2578e3b54c8f9754588faf28 100644 --- a/zh-cn/release-notes/api-diff/monthly-202210/js-apidiff-user-iam.md +++ b/zh-cn/release-notes/api-diff/monthly-202210/js-apidiff-user-iam.md @@ -1,38 +1,35 @@ -| 操作 | 新版本 | 旧版本 | d.ts文件 | +| 操作 | 旧版本 | 新版本 | d.ts文件 | | ---- | ------ | ------ | -------- | -|新增||方法名 or 属性名:setSurfaceId
函数:setSurfaceId(surfaceId: string): void;|@ohos.userIAM.faceAuth.d.ts| -|新增||方法名 or 属性名:FAIL
函数:FAIL = 12700001|@ohos.userIAM.faceAuth.d.ts| -|新增||模块名: ohos.userIAM.userAuth
类名: AuthEvent|@ohos.userIAM.userAuth.d.ts| -|新增||模块名: ohos.userIAM.userAuth
类名: AuthEvent
方法名 or 属性名:callback|@ohos.userIAM.userAuth.d.ts| -|新增||模块名: ohos.userIAM.userAuth
类名: AuthResultInfo|@ohos.userIAM.userAuth.d.ts| -|新增||模块名: ohos.userIAM.userAuth
类名: AuthResultInfo
方法名 or 属性名:result|@ohos.userIAM.userAuth.d.ts| -|新增||模块名: ohos.userIAM.userAuth
类名: AuthResultInfo
方法名 or 属性名:token|@ohos.userIAM.userAuth.d.ts| -|新增||模块名: ohos.userIAM.userAuth
类名: AuthResultInfo
方法名 or 属性名:remainAttempts|@ohos.userIAM.userAuth.d.ts| -|新增||模块名: ohos.userIAM.userAuth
类名: AuthResultInfo
方法名 or 属性名:lockoutDuration|@ohos.userIAM.userAuth.d.ts| -|新增||模块名: ohos.userIAM.userAuth
类名: TipInfo|@ohos.userIAM.userAuth.d.ts| -|新增||模块名: ohos.userIAM.userAuth
类名: TipInfo
方法名 or 属性名:module|@ohos.userIAM.userAuth.d.ts| -|新增||模块名: ohos.userIAM.userAuth
类名: TipInfo
方法名 or 属性名:tip|@ohos.userIAM.userAuth.d.ts| -|新增||模块名: ohos.userIAM.userAuth
类名: AuthInstance|@ohos.userIAM.userAuth.d.ts| -|新增||模块名: ohos.userIAM.userAuth
类名: AuthInstance
方法名 or 属性名:on|@ohos.userIAM.userAuth.d.ts| -|新增||模块名: ohos.userIAM.userAuth
类名: AuthInstance
方法名 or 属性名:off|@ohos.userIAM.userAuth.d.ts| -|新增||模块名: ohos.userIAM.userAuth
类名: AuthInstance
方法名 or 属性名:start|@ohos.userIAM.userAuth.d.ts| -|新增||模块名: ohos.userIAM.userAuth
类名: AuthInstance
方法名 or 属性名:cancel|@ohos.userIAM.userAuth.d.ts| -|新增||模块名: ohos.userIAM.userAuth
类名: userAuth
方法名 or 属性名:getVersion|@ohos.userIAM.userAuth.d.ts| -|新增||模块名: ohos.userIAM.userAuth
类名: userAuth
方法名 or 属性名:getAvailableStatus|@ohos.userIAM.userAuth.d.ts| -|新增||模块名: ohos.userIAM.userAuth
类名: userAuth
方法名 or 属性名:getAuthInstance|@ohos.userIAM.userAuth.d.ts| -|新增||模块名: ohos.userIAM.userAuth
类名: ResultCodeV9|@ohos.userIAM.userAuth.d.ts| -|新增||模块名: ohos.userIAM.userAuth
类名: ResultCodeV9
方法名 or 属性名:SUCCESS|@ohos.userIAM.userAuth.d.ts| -|新增||模块名: ohos.userIAM.userAuth
类名: ResultCodeV9
方法名 or 属性名:FAIL|@ohos.userIAM.userAuth.d.ts| -|新增||模块名: ohos.userIAM.userAuth
类名: ResultCodeV9
方法名 or 属性名:GENERAL_ERROR|@ohos.userIAM.userAuth.d.ts| -|新增||模块名: ohos.userIAM.userAuth
类名: ResultCodeV9
方法名 or 属性名:CANCELED|@ohos.userIAM.userAuth.d.ts| -|新增||模块名: ohos.userIAM.userAuth
类名: ResultCodeV9
方法名 or 属性名:TIMEOUT|@ohos.userIAM.userAuth.d.ts| -|新增||模块名: ohos.userIAM.userAuth
类名: ResultCodeV9
方法名 or 属性名:TYPE_NOT_SUPPORT|@ohos.userIAM.userAuth.d.ts| -|新增||模块名: ohos.userIAM.userAuth
类名: ResultCodeV9
方法名 or 属性名:TRUST_LEVEL_NOT_SUPPORT|@ohos.userIAM.userAuth.d.ts| -|新增||模块名: ohos.userIAM.userAuth
类名: ResultCodeV9
方法名 or 属性名:BUSY|@ohos.userIAM.userAuth.d.ts| -|新增||模块名: ohos.userIAM.userAuth
类名: ResultCodeV9
方法名 or 属性名:INVALID_PARAMETERS|@ohos.userIAM.userAuth.d.ts| -|新增||模块名: ohos.userIAM.userAuth
类名: ResultCodeV9
方法名 or 属性名:LOCKED|@ohos.userIAM.userAuth.d.ts| -|新增||模块名: ohos.userIAM.userAuth
类名: ResultCodeV9
方法名 or 属性名:NOT_ENROLLED|@ohos.userIAM.userAuth.d.ts| -|删除|模块名:ohos.userIAM.faceAuth
类名:ResultCode
方法名 or 属性名:SUCCESS||@ohos.userIAM.faceAuth.d.ts| +|新增|NA|方法名 or 属性名:setSurfaceId
函数:setSurfaceId(surfaceId: string): void;|@ohos.userIAM.faceAuth.d.ts| +|新增|NA|方法名 or 属性名:FAIL
函数:FAIL = 12700001|@ohos.userIAM.faceAuth.d.ts| +|新增|NA|模块名: ohos.userIAM.userAuth
类名: AuthEvent|@ohos.userIAM.userAuth.d.ts| +|新增|NA|模块名: ohos.userIAM.userAuth
类名: AuthEvent
方法名 or 属性名:callback|@ohos.userIAM.userAuth.d.ts| +|新增|NA|模块名: ohos.userIAM.userAuth
类名: AuthResultInfo|@ohos.userIAM.userAuth.d.ts| +|新增|NA|模块名: ohos.userIAM.userAuth
类名: AuthResultInfo
方法名 or 属性名:result|@ohos.userIAM.userAuth.d.ts| +|新增|NA|模块名: ohos.userIAM.userAuth
类名: AuthResultInfo
方法名 or 属性名:token|@ohos.userIAM.userAuth.d.ts| +|新增|NA|模块名: ohos.userIAM.userAuth
类名: AuthResultInfo
方法名 or 属性名:remainAttempts|@ohos.userIAM.userAuth.d.ts| +|新增|NA|模块名: ohos.userIAM.userAuth
类名: AuthResultInfo
方法名 or 属性名:lockoutDuration|@ohos.userIAM.userAuth.d.ts| +|新增|NA|模块名: ohos.userIAM.userAuth
类名: TipInfo|@ohos.userIAM.userAuth.d.ts| +|新增|NA|模块名: ohos.userIAM.userAuth
类名: TipInfo
方法名 or 属性名:module|@ohos.userIAM.userAuth.d.ts| +|新增|NA|模块名: ohos.userIAM.userAuth
类名: TipInfo
方法名 or 属性名:tip|@ohos.userIAM.userAuth.d.ts| +|新增|NA|模块名: ohos.userIAM.userAuth
类名: AuthInstance|@ohos.userIAM.userAuth.d.ts| +|新增|NA|模块名: ohos.userIAM.userAuth
类名: AuthInstance
方法名 or 属性名:on|@ohos.userIAM.userAuth.d.ts| +|新增|NA|模块名: ohos.userIAM.userAuth
类名: AuthInstance
方法名 or 属性名:off|@ohos.userIAM.userAuth.d.ts| +|新增|NA|模块名: ohos.userIAM.userAuth
类名: AuthInstance
方法名 or 属性名:start|@ohos.userIAM.userAuth.d.ts| +|新增|NA|模块名: ohos.userIAM.userAuth
类名: AuthInstance
方法名 or 属性名:cancel|@ohos.userIAM.userAuth.d.ts| +|新增|NA|模块名: ohos.userIAM.userAuth
类名: ResultCodeV9|@ohos.userIAM.userAuth.d.ts| +|新增|NA|模块名: ohos.userIAM.userAuth
类名: ResultCodeV9
方法名 or 属性名:SUCCESS|@ohos.userIAM.userAuth.d.ts| +|新增|NA|模块名: ohos.userIAM.userAuth
类名: ResultCodeV9
方法名 or 属性名:FAIL|@ohos.userIAM.userAuth.d.ts| +|新增|NA|模块名: ohos.userIAM.userAuth
类名: ResultCodeV9
方法名 or 属性名:GENERAL_ERROR|@ohos.userIAM.userAuth.d.ts| +|新增|NA|模块名: ohos.userIAM.userAuth
类名: ResultCodeV9
方法名 or 属性名:CANCELED|@ohos.userIAM.userAuth.d.ts| +|新增|NA|模块名: ohos.userIAM.userAuth
类名: ResultCodeV9
方法名 or 属性名:TIMEOUT|@ohos.userIAM.userAuth.d.ts| +|新增|NA|模块名: ohos.userIAM.userAuth
类名: ResultCodeV9
方法名 or 属性名:TYPE_NOT_SUPPORT|@ohos.userIAM.userAuth.d.ts| +|新增|NA|模块名: ohos.userIAM.userAuth
类名: ResultCodeV9
方法名 or 属性名:TRUST_LEVEL_NOT_SUPPORT|@ohos.userIAM.userAuth.d.ts| +|新增|NA|模块名: ohos.userIAM.userAuth
类名: ResultCodeV9
方法名 or 属性名:BUSY|@ohos.userIAM.userAuth.d.ts| +|新增|NA|模块名: ohos.userIAM.userAuth
类名: ResultCodeV9
方法名 or 属性名:INVALID_PARAMETERS|@ohos.userIAM.userAuth.d.ts| +|新增|NA|模块名: ohos.userIAM.userAuth
类名: ResultCodeV9
方法名 or 属性名:LOCKED|@ohos.userIAM.userAuth.d.ts| +|新增|NA|模块名: ohos.userIAM.userAuth
类名: ResultCodeV9
方法名 or 属性名:NOT_ENROLLED|@ohos.userIAM.userAuth.d.ts| +|删除|模块名:ohos.userIAM.faceAuth
类名:ResultCode
方法名 or 属性名:SUCCESS|NA|@ohos.userIAM.faceAuth.d.ts| |废弃版本有变化|方法名 or 属性名:getVersion
废弃版本:N/A|方法名 or 属性名:getVersion
废弃版本:9
代替接口:ohos.userIAM.userAuth.getVersion |@ohos.userIAM.userAuth.d.ts| |废弃版本有变化|方法名 or 属性名:getAvailableStatus
废弃版本:N/A|方法名 or 属性名:getAvailableStatus
废弃版本:9
代替接口:ohos.userIAM.userAuth.getAvailableStatus |@ohos.userIAM.userAuth.d.ts| |废弃版本有变化|方法名 or 属性名:auth
废弃版本:N/A|方法名 or 属性名:auth
废弃版本:9
代替接口:ohos.userIAM.userAuth.AuthInstance.start |@ohos.userIAM.userAuth.d.ts| @@ -41,3 +38,7 @@ |废弃版本有变化|方法名 or 属性名:onAcquireInfo
废弃版本:N/A|方法名 or 属性名:onAcquireInfo
废弃版本:9
代替接口:ohos.userIAM.userAuth.AuthEvent.callback |@ohos.userIAM.userAuth.d.ts| |废弃版本有变化|类名:AuthResult
废弃版本:N/A|类名:AuthResult
废弃版本:9
代替接口:ohos.userIAM.userAuth.AuthResultInfo |@ohos.userIAM.userAuth.d.ts| |废弃版本有变化|类名:ResultCode
废弃版本:N/A|类名:ResultCode
废弃版本:9
代替接口:ohos.userIAM.userAuth.ResultCodeV9 |@ohos.userIAM.userAuth.d.ts| +|删除(权限)|类名:userAuth
权限:ohos.permission.ACCESS_BIOMETRIC|类名:userAuth
权限:N/A|@ohos.userIAM.userAuth.d.ts| +|新增(权限)|方法名 or 属性名:execute
权限:N/A|方法名 or 属性名:execute
权限:ohos.permission.ACCESS_BIOMETRIC|@ohos.userIAM.userAuth.d.ts| +|新增(权限)|方法名 or 属性名:execute
权限:N/A|方法名 or 属性名:execute
权限:ohos.permission.ACCESS_BIOMETRIC|@ohos.userIAM.userAuth.d.ts| +|新增(权限)|方法名 or 属性名:getVersion
权限:N/A|方法名 or 属性名:getVersion
权限:ohos.permission.ACCESS_BIOMETRIC|@ohos.userIAM.userAuth.d.ts| diff --git a/zh-cn/release-notes/api-diff/monthly-202210/js-apidiff-web.md b/zh-cn/release-notes/api-diff/monthly-202210/js-apidiff-web.md index 90420cbdf138c667c8e7b908af29a187ec680a13..2d96410838a893bee3a6175c4de260a93a2ca973 100644 --- a/zh-cn/release-notes/api-diff/monthly-202210/js-apidiff-web.md +++ b/zh-cn/release-notes/api-diff/monthly-202210/js-apidiff-web.md @@ -1,75 +1,86 @@ -| 操作 | 新版本 | 旧版本 | d.ts文件 | +| 操作 | 旧版本 | 新版本 | d.ts文件 | | ---- | ------ | ------ | -------- | -|新增||模块名: ohos.web.webview
类名: HeaderV9|@ohos.web.webview.d.ts| -|新增||模块名: ohos.web.webview
类名: HeaderV9
方法名 or 属性名:headerKey|@ohos.web.webview.d.ts| -|新增||模块名: ohos.web.webview
类名: HeaderV9
方法名 or 属性名:headerValue|@ohos.web.webview.d.ts| -|新增||模块名: ohos.web.webview
类名: HitTestTypeV9|@ohos.web.webview.d.ts| -|新增||模块名: ohos.web.webview
类名: HitTestTypeV9
方法名 or 属性名:EditText|@ohos.web.webview.d.ts| -|新增||模块名: ohos.web.webview
类名: HitTestTypeV9
方法名 or 属性名:Email|@ohos.web.webview.d.ts| -|新增||模块名: ohos.web.webview
类名: HitTestTypeV9
方法名 or 属性名:HttpAnchor|@ohos.web.webview.d.ts| -|新增||模块名: ohos.web.webview
类名: HitTestTypeV9
方法名 or 属性名:HttpAnchorImg|@ohos.web.webview.d.ts| -|新增||模块名: ohos.web.webview
类名: HitTestTypeV9
方法名 or 属性名:Img|@ohos.web.webview.d.ts| -|新增||模块名: ohos.web.webview
类名: HitTestTypeV9
方法名 or 属性名:Map|@ohos.web.webview.d.ts| -|新增||模块名: ohos.web.webview
类名: HitTestTypeV9
方法名 or 属性名:Phone|@ohos.web.webview.d.ts| -|新增||模块名: ohos.web.webview
类名: HitTestTypeV9
方法名 or 属性名:Unknown|@ohos.web.webview.d.ts| -|新增||模块名: ohos.web.webview
类名: HitTestValue|@ohos.web.webview.d.ts| -|新增||模块名: ohos.web.webview
类名: HitTestValue
方法名 or 属性名:type|@ohos.web.webview.d.ts| -|新增||模块名: ohos.web.webview
类名: HitTestValue
方法名 or 属性名:extra|@ohos.web.webview.d.ts| -|新增||方法名 or 属性名:setCookie
函数:static setCookie(url: string, value: string): void;|@ohos.web.webview.d.ts| -|新增||方法名 or 属性名:saveCookieSync
函数:static saveCookieSync(): void;|@ohos.web.webview.d.ts| -|新增||模块名: ohos.web.webview
类名: WebMessagePort|@ohos.web.webview.d.ts| -|新增||模块名: ohos.web.webview
类名: WebMessagePort
方法名 or 属性名:close|@ohos.web.webview.d.ts| -|新增||模块名: ohos.web.webview
类名: WebMessagePort
方法名 or 属性名:postMessageEvent|@ohos.web.webview.d.ts| -|新增||模块名: ohos.web.webview
类名: WebMessagePort
方法名 or 属性名:onMessageEvent|@ohos.web.webview.d.ts| -|新增||模块名: ohos.web.webview
类名: WebviewController|@ohos.web.webview.d.ts| -|新增||模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:accessForward|@ohos.web.webview.d.ts| -|新增||模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:accessBackward|@ohos.web.webview.d.ts| -|新增||模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:accessStep|@ohos.web.webview.d.ts| -|新增||模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:forward|@ohos.web.webview.d.ts| -|新增||模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:backward|@ohos.web.webview.d.ts| -|新增||模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:clearHistory|@ohos.web.webview.d.ts| -|新增||模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:onActive|@ohos.web.webview.d.ts| -|新增||模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:onInactive|@ohos.web.webview.d.ts| -|新增||模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:refresh|@ohos.web.webview.d.ts| -|新增||模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:loadData|@ohos.web.webview.d.ts| -|新增||模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:loadUrl|@ohos.web.webview.d.ts| -|新增||模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:getHitTest|@ohos.web.webview.d.ts| -|新增||模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:storeWebArchive|@ohos.web.webview.d.ts| -|新增||模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:storeWebArchive|@ohos.web.webview.d.ts| -|新增||模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:zoom|@ohos.web.webview.d.ts| -|新增||模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:zoomIn|@ohos.web.webview.d.ts| -|新增||模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:zoomOut|@ohos.web.webview.d.ts| -|新增||模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:getHitTestValue|@ohos.web.webview.d.ts| -|新增||模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:getWebId|@ohos.web.webview.d.ts| -|新增||模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:getUserAgent|@ohos.web.webview.d.ts| -|新增||模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:getTitle|@ohos.web.webview.d.ts| -|新增||模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:getPageHeight|@ohos.web.webview.d.ts| -|新增||模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:backOrForward|@ohos.web.webview.d.ts| -|新增||模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:requestFocus|@ohos.web.webview.d.ts| -|新增||模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:createWebMessagePorts|@ohos.web.webview.d.ts| -|新增||模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:postMessage|@ohos.web.webview.d.ts| -|新增||模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:stop|@ohos.web.webview.d.ts| -|新增||模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:registerJavaScriptProxy|@ohos.web.webview.d.ts| -|新增||模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:deleteJavaScriptRegister|@ohos.web.webview.d.ts| -|新增||模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:searchAllAsync|@ohos.web.webview.d.ts| -|新增||模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:clearMatches|@ohos.web.webview.d.ts| -|新增||模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:searchNext|@ohos.web.webview.d.ts| -|新增||模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:clearSslCache|@ohos.web.webview.d.ts| -|新增||模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:clearClientAuthenticationCache|@ohos.web.webview.d.ts| -|新增||模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:runJavaScript|@ohos.web.webview.d.ts| -|新增||模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:runJavaScript|@ohos.web.webview.d.ts| -|新增||模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:getUrl|@ohos.web.webview.d.ts| -|新增(错误码)||方法名 or 属性名:deleteOrigin
错误码内容:401,17100011|@ohos.web.webview.d.ts| -|新增(错误码)||方法名 or 属性名:getOrigins
错误码内容:401,17100012|@ohos.web.webview.d.ts| -|新增(错误码)||方法名 or 属性名:getOriginQuota
错误码内容:401,17100011|@ohos.web.webview.d.ts| -|新增(错误码)||方法名 or 属性名:getOriginUsage
错误码内容:401,17100011|@ohos.web.webview.d.ts| -|新增(错误码)||方法名 or 属性名:getHttpAuthCredentials
错误码内容:401|@ohos.web.webview.d.ts| -|新增(错误码)||方法名 or 属性名:saveHttpAuthCredentials
错误码内容:401|@ohos.web.webview.d.ts| -|新增(错误码)||方法名 or 属性名:allowGeolocation
错误码内容:401,17100011|@ohos.web.webview.d.ts| -|新增(错误码)||方法名 or 属性名:deleteGeolocation
错误码内容:401,17100011|@ohos.web.webview.d.ts| -|新增(错误码)||方法名 or 属性名:getAccessibleGeolocation
错误码内容:401,17100011|@ohos.web.webview.d.ts| -|新增(错误码)||方法名 or 属性名:getStoredGeolocation
错误码内容:401|@ohos.web.webview.d.ts| -|新增(错误码)||方法名 or 属性名:getCookie
错误码内容:401,17100002|@ohos.web.webview.d.ts| -|新增(错误码)||方法名 or 属性名:saveCookieAsync
错误码内容:401|@ohos.web.webview.d.ts| -|新增(错误码)||方法名 or 属性名:putAcceptCookieEnabled
错误码内容:401|@ohos.web.webview.d.ts| -|新增(错误码)||方法名 or 属性名:putAcceptThirdPartyCookieEnabled
错误码内容:401|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: HeaderV9|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: HeaderV9
方法名 or 属性名:headerKey|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: HeaderV9
方法名 or 属性名:headerValue|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: HitTestTypeV9|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: HitTestTypeV9
方法名 or 属性名:EditText|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: HitTestTypeV9
方法名 or 属性名:Email|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: HitTestTypeV9
方法名 or 属性名:HttpAnchor|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: HitTestTypeV9
方法名 or 属性名:HttpAnchorImg|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: HitTestTypeV9
方法名 or 属性名:Img|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: HitTestTypeV9
方法名 or 属性名:Map|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: HitTestTypeV9
方法名 or 属性名:Phone|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: HitTestTypeV9
方法名 or 属性名:Unknown|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: HitTestValue|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: HitTestValue
方法名 or 属性名:type|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: HitTestValue
方法名 or 属性名:extra|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: GeolocationPermissions|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: GeolocationPermissions
方法名 or 属性名:allowGeolocation|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: GeolocationPermissions
方法名 or 属性名:deleteGeolocation|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: GeolocationPermissions
方法名 or 属性名:deleteAllGeolocation|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: GeolocationPermissions
方法名 or 属性名:getAccessibleGeolocation|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: GeolocationPermissions
方法名 or 属性名:getAccessibleGeolocation|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: GeolocationPermissions
方法名 or 属性名:getStoredGeolocation|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: GeolocationPermissions
方法名 or 属性名:getStoredGeolocation|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebCookieManager|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebCookieManager
方法名 or 属性名:getCookie|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebCookieManager
方法名 or 属性名:setCookie|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebCookieManager
方法名 or 属性名:saveCookieSync|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebCookieManager
方法名 or 属性名:saveCookieAsync|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebCookieManager
方法名 or 属性名:saveCookieAsync|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebCookieManager
方法名 or 属性名:isCookieAllowed|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebCookieManager
方法名 or 属性名:putAcceptCookieEnabled|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebCookieManager
方法名 or 属性名:isThirdPartyCookieAllowed|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebCookieManager
方法名 or 属性名:putAcceptThirdPartyCookieEnabled|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebCookieManager
方法名 or 属性名:existCookie|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebCookieManager
方法名 or 属性名:deleteEntireCookie|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebCookieManager
方法名 or 属性名:deleteSessionCookie|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebMessagePort|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebMessagePort
方法名 or 属性名:close|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebMessagePort
方法名 or 属性名:postMessageEvent|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebMessagePort
方法名 or 属性名:onMessageEvent|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebviewController|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:accessForward|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:accessBackward|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:accessStep|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:forward|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:backward|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:clearHistory|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:onActive|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:onInactive|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:refresh|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:loadData|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:loadUrl|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:getHitTest|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:storeWebArchive|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:storeWebArchive|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:zoom|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:zoomIn|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:zoomOut|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:getHitTestValue|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:getWebId|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:getUserAgent|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:getTitle|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:getPageHeight|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:backOrForward|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:requestFocus|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:createWebMessagePorts|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:postMessage|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:stop|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:registerJavaScriptProxy|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:deleteJavaScriptRegister|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:searchAllAsync|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:clearMatches|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:searchNext|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:clearSslCache|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:clearClientAuthenticationCache|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:runJavaScript|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:runJavaScript|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:getUrl|@ohos.web.webview.d.ts| +|新增(错误码)|NA|方法名 or 属性名:deleteOrigin
错误码内容:401,17100011|@ohos.web.webview.d.ts| +|新增(错误码)|NA|方法名 or 属性名:getOrigins
错误码内容:401,17100012|@ohos.web.webview.d.ts| +|新增(错误码)|NA|方法名 or 属性名:getOriginQuota
错误码内容:401,17100011|@ohos.web.webview.d.ts| +|新增(错误码)|NA|方法名 or 属性名:getOriginUsage
错误码内容:401,17100011|@ohos.web.webview.d.ts| +|新增(错误码)|NA|方法名 or 属性名:getHttpAuthCredentials
错误码内容:401|@ohos.web.webview.d.ts| +|新增(错误码)|NA|方法名 or 属性名:saveHttpAuthCredentials
错误码内容:401|@ohos.web.webview.d.ts| diff --git a/zh-cn/release-notes/api-diff/monthly-202210/js-apidiff-window.md b/zh-cn/release-notes/api-diff/monthly-202210/js-apidiff-window.md index 7bfe392f85cd1d52ff717e280df04c1db8706323..ac4aeb1df9c0ddd293ba2727d97ae7a86d529631 100644 --- a/zh-cn/release-notes/api-diff/monthly-202210/js-apidiff-window.md +++ b/zh-cn/release-notes/api-diff/monthly-202210/js-apidiff-window.md @@ -1,60 +1,22 @@ -| 操作 | 新版本 | 旧版本 | d.ts文件 | +| 操作 | 旧版本 | 新版本 | d.ts文件 | | ---- | ------ | ------ | -------- | -|新增||模块名:ohos.display
类名:display
方法名 or 属性名:getAllDisplays|@ohos.display.d.ts| -|新增||模块名:ohos.display
类名:display
方法名 or 属性名:getAllDisplays|@ohos.display.d.ts| -|新增||模块名: ohos.window
类名: Configuration|@ohos.window.d.ts| -|新增||模块名: ohos.window
类名: Configuration
方法名 or 属性名:name|@ohos.window.d.ts| -|新增||模块名: ohos.window
类名: Configuration
方法名 or 属性名:windowType|@ohos.window.d.ts| -|新增||模块名: ohos.window
类名: Configuration
方法名 or 属性名:ctx|@ohos.window.d.ts| -|新增||模块名: ohos.window
类名: Configuration
方法名 or 属性名:displayId|@ohos.window.d.ts| -|新增||模块名: ohos.window
类名: Configuration
方法名 or 属性名:parentId|@ohos.window.d.ts| -|新增||模块名:ohos.window
类名:window
方法名 or 属性名:createWindow|@ohos.window.d.ts| -|新增||模块名:ohos.window
类名:window
方法名 or 属性名:createWindow|@ohos.window.d.ts| -|新增||方法名 or 属性名:create
函数:function create(ctx: BaseContext, id: string, type: WindowType): Promise;|@ohos.window.d.ts| -|新增||方法名 or 属性名:create
函数:function create(ctx: BaseContext, id: string, type: WindowType, callback: AsyncCallback): void;|@ohos.window.d.ts| -|新增||模块名:ohos.window
类名:window
方法名 or 属性名:findWindow|@ohos.window.d.ts| -|新增||方法名 or 属性名:getTopWindow
函数:function getTopWindow(ctx: BaseContext): Promise;|@ohos.window.d.ts| -|新增||方法名 or 属性名:getTopWindow
函数:function getTopWindow(ctx: BaseContext, callback: AsyncCallback): void;|@ohos.window.d.ts| -|新增||模块名:ohos.window
类名:window
方法名 or 属性名:getLastWindow|@ohos.window.d.ts| -|新增||模块名:ohos.window
类名:window
方法名 or 属性名:getLastWindow|@ohos.window.d.ts| -|新增||模块名:ohos.window
类名:Window
方法名 or 属性名:showWindow|@ohos.window.d.ts| -|新增||模块名:ohos.window
类名:Window
方法名 or 属性名:showWindow|@ohos.window.d.ts| -|新增||模块名:ohos.window
类名:Window
方法名 or 属性名:destroyWindow|@ohos.window.d.ts| -|新增||模块名:ohos.window
类名:Window
方法名 or 属性名:destroyWindow|@ohos.window.d.ts| -|新增||模块名:ohos.window
类名:Window
方法名 or 属性名:moveWindowTo|@ohos.window.d.ts| -|新增||模块名:ohos.window
类名:Window
方法名 or 属性名:moveWindowTo|@ohos.window.d.ts| -|新增||模块名:ohos.window
类名:Window
方法名 or 属性名:resize|@ohos.window.d.ts| -|新增||模块名:ohos.window
类名:Window
方法名 or 属性名:resize|@ohos.window.d.ts| -|新增||模块名:ohos.window
类名:Window
方法名 or 属性名:setWindowMode|@ohos.window.d.ts| -|新增||模块名:ohos.window
类名:Window
方法名 or 属性名:setWindowMode|@ohos.window.d.ts| -|新增||模块名:ohos.window
类名:Window
方法名 or 属性名:getWindowProperties|@ohos.window.d.ts| -|新增||模块名:ohos.window
类名:Window
方法名 or 属性名:getWindowAvoidArea|@ohos.window.d.ts| -|新增||模块名:ohos.window
类名:Window
方法名 or 属性名:setWindowLayoutFullScreen|@ohos.window.d.ts| -|新增||模块名:ohos.window
类名:Window
方法名 or 属性名:setWindowLayoutFullScreen|@ohos.window.d.ts| -|新增||模块名:ohos.window
类名:Window
方法名 or 属性名:setWindowSystemBarEnable|@ohos.window.d.ts| -|新增||模块名:ohos.window
类名:Window
方法名 or 属性名:setWindowSystemBarEnable|@ohos.window.d.ts| -|新增||模块名:ohos.window
类名:Window
方法名 or 属性名:setWindowSystemBarProperties|@ohos.window.d.ts| -|新增||模块名:ohos.window
类名:Window
方法名 or 属性名:setWindowSystemBarProperties|@ohos.window.d.ts| -|新增||模块名:ohos.window
类名:Window
方法名 or 属性名:setUIContent|@ohos.window.d.ts| -|新增||模块名:ohos.window
类名:Window
方法名 or 属性名:setUIContent|@ohos.window.d.ts| -|新增||模块名:ohos.window
类名:Window
方法名 or 属性名:isWindowShowing|@ohos.window.d.ts| -|新增||模块名:ohos.window
类名:Window
方法名 or 属性名:isWindowSupportWideGamut|@ohos.window.d.ts| -|新增||模块名:ohos.window
类名:Window
方法名 or 属性名:isWindowSupportWideGamut|@ohos.window.d.ts| -|新增||模块名:ohos.window
类名:Window
方法名 or 属性名:setWindowColorSpace|@ohos.window.d.ts| -|新增||模块名:ohos.window
类名:Window
方法名 or 属性名:setWindowColorSpace|@ohos.window.d.ts| -|新增||模块名:ohos.window
类名:Window
方法名 or 属性名:getWindowColorSpace|@ohos.window.d.ts| -|新增||模块名:ohos.window
类名:Window
方法名 or 属性名:setWindowBackgroundColor|@ohos.window.d.ts| -|新增||模块名:ohos.window
类名:Window
方法名 or 属性名:setWindowBrightness|@ohos.window.d.ts| -|新增||模块名:ohos.window
类名:Window
方法名 or 属性名:setWindowBrightness|@ohos.window.d.ts| -|新增||模块名:ohos.window
类名:Window
方法名 or 属性名:setWindowFocusable|@ohos.window.d.ts| -|新增||模块名:ohos.window
类名:Window
方法名 or 属性名:setWindowFocusable|@ohos.window.d.ts| -|新增||模块名:ohos.window
类名:Window
方法名 or 属性名:setWindowKeepScreenOn|@ohos.window.d.ts| -|新增||模块名:ohos.window
类名:Window
方法名 or 属性名:setWindowKeepScreenOn|@ohos.window.d.ts| -|新增||模块名:ohos.window
类名:Window
方法名 or 属性名:setWindowPrivacyMode|@ohos.window.d.ts| -|新增||模块名:ohos.window
类名:Window
方法名 or 属性名:setWindowPrivacyMode|@ohos.window.d.ts| -|新增||模块名:ohos.window
类名:Window
方法名 or 属性名:setWindowTouchable|@ohos.window.d.ts| -|新增||模块名:ohos.window
类名:Window
方法名 or 属性名:setWindowTouchable|@ohos.window.d.ts| -|新增||模块名: ohos.window
类名: WindowStage
方法名 or 属性名:getMainWindowSync|@ohos.window.d.ts| +|新增|NA|方法名 or 属性名:onConnect
函数:onConnect(want: Want): void;|@ohos.application.WindowExtensionAbility.d.ts| +|新增|NA|方法名 or 属性名:onWindowReady
函数:onWindowReady(window: window.Window): void;|@ohos.application.WindowExtensionAbility.d.ts| +|新增|NA|方法名 or 属性名:save
函数:function save(options: ScreenshotOptions, callback: AsyncCallback): void;|@ohos.screenshot.d.ts| +|新增|NA|方法名 or 属性名:save
函数:function save(callback: AsyncCallback): void;|@ohos.screenshot.d.ts| +|新增|NA|模块名: ohos.window
类名: WindowProperties
方法名 or 属性名:id|@ohos.window.d.ts| +|新增|NA|模块名: ohos.window
类名: Configuration|@ohos.window.d.ts| +|新增|NA|模块名: ohos.window
类名: Configuration
方法名 or 属性名:name|@ohos.window.d.ts| +|新增|NA|模块名: ohos.window
类名: Configuration
方法名 or 属性名:windowType|@ohos.window.d.ts| +|新增|NA|模块名: ohos.window
类名: Configuration
方法名 or 属性名:ctx|@ohos.window.d.ts| +|新增|NA|模块名: ohos.window
类名: Configuration
方法名 or 属性名:displayId|@ohos.window.d.ts| +|新增|NA|模块名: ohos.window
类名: Configuration
方法名 or 属性名:parentId|@ohos.window.d.ts| +|新增|NA|方法名 or 属性名:create
函数:function create(ctx: BaseContext, id: string, type: WindowType): Promise;|@ohos.window.d.ts| +|新增|NA|方法名 or 属性名:create
函数:function create(ctx: BaseContext, id: string, type: WindowType, callback: AsyncCallback): void;|@ohos.window.d.ts| +|新增|NA|方法名 or 属性名:getTopWindow
函数:function getTopWindow(ctx: BaseContext): Promise;|@ohos.window.d.ts| +|新增|NA|方法名 or 属性名:getTopWindow
函数:function getTopWindow(ctx: BaseContext, callback: AsyncCallback): void;|@ohos.window.d.ts| +|新增|NA|方法名 or 属性名:bindDialogTarget
函数:bindDialogTarget(token: rpc.RemoteObject, deathCallback: Callback, callback: AsyncCallback): void;|@ohos.window.d.ts| +|新增|NA|模块名: ohos.window
类名: WindowStage
方法名 or 属性名:getMainWindowSync|@ohos.window.d.ts| |废弃版本有变化|方法名 or 属性名:getDefaultDisplay
废弃版本:N/A|方法名 or 属性名:getDefaultDisplay
废弃版本:9
代替接口:ohos.display|@ohos.display.d.ts| |废弃版本有变化|方法名 or 属性名:getDefaultDisplay
废弃版本:N/A|方法名 or 属性名:getDefaultDisplay
废弃版本:9
代替接口:ohos.display|@ohos.display.d.ts| |废弃版本有变化|方法名 or 属性名:getAllDisplay
废弃版本:N/A|方法名 or 属性名:getAllDisplay
废弃版本:9
代替接口:ohos.display|@ohos.display.d.ts| diff --git a/zh-cn/release-notes/api-diff/monthly-202211/js-apidiff-ability.md b/zh-cn/release-notes/api-diff/monthly-202211/js-apidiff-ability.md index fd2fc2dbc96b550952cb5727d5baeaabf7b463db..d2740c610b0d66913cf8664ea47081f36fe285fd 100644 --- a/zh-cn/release-notes/api-diff/monthly-202211/js-apidiff-ability.md +++ b/zh-cn/release-notes/api-diff/monthly-202211/js-apidiff-ability.md @@ -1,16 +1,15 @@ -| 操作 | 新版本 | 旧版本 | d.ts文件 | +| 操作 | 旧版本 | 新版本 | d.ts文件 | | ---- | ------ | ------ | -------- | -|新增||方法名 or 属性名:ACTION_APP_ACCOUNT_AUTH
函数:ACTION_APP_ACCOUNT_AUTH = "ohos.appAccount.action.auth"|@ohos.ability.wantConstant.d.ts| -|新增||模块名: ohos.app.ability.appRecovery
类名: appRecovery|@ohos.app.ability.appRecovery.d.ts| -|新增||模块名: ohos.app.ability.appRecovery
类名: appRecovery
方法名 or 属性名:enableAppRecovery|@ohos.app.ability.appRecovery.d.ts| -|新增||模块名: ohos.app.ability.appRecovery
类名: appRecovery
方法名 or 属性名:restartApp|@ohos.app.ability.appRecovery.d.ts| -|新增||模块名: ohos.app.ability.appRecovery
类名: appRecovery
方法名 or 属性名:saveAppState|@ohos.app.ability.appRecovery.d.ts| -|新增||模块名:ohos.app.ability.UIAbility
类名:UIAbility
方法名 or 属性名:onSaveState|@ohos.app.ability.UIAbility.d.ts| -|删除|模块名:ohos.app.ability.Ability
类名:Ability
方法名 or 属性名:onSaveState||@ohos.app.ability.Ability.d.ts| -|删除|模块名: ohos.app.ability.appRecovery
类名: appReceovery||@ohos.app.ability.appRecovery.d.ts| -|删除|模块名: ohos.app.ability.appRecovery
类名: appReceovery
方法名 or 属性名:enableAppRecovery||@ohos.app.ability.appRecovery.d.ts| -|删除|模块名: ohos.app.ability.appRecovery
类名: appReceovery
方法名 or 属性名:restartApp||@ohos.app.ability.appRecovery.d.ts| -|删除|模块名: ohos.app.ability.appRecovery
类名: appReceovery
方法名 or 属性名:saveAppState||@ohos.app.ability.appRecovery.d.ts| +|新增|NA|方法名 or 属性名:ACTION_APP_ACCOUNT_AUTH
函数:ACTION_APP_ACCOUNT_AUTH = "ohos.appAccount.action.auth"|@ohos.ability.wantConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.appRecovery
类名: appRecovery|@ohos.app.ability.appRecovery.d.ts| +|新增|NA|模块名: ohos.app.ability.appRecovery
类名: appRecovery
方法名 or 属性名:enableAppRecovery|@ohos.app.ability.appRecovery.d.ts| +|新增|NA|模块名: ohos.app.ability.appRecovery
类名: appRecovery
方法名 or 属性名:restartApp|@ohos.app.ability.appRecovery.d.ts| +|新增|NA|模块名: ohos.app.ability.appRecovery
类名: appRecovery
方法名 or 属性名:saveAppState|@ohos.app.ability.appRecovery.d.ts| +|删除|模块名:ohos.app.ability.Ability
类名:Ability
方法名 or 属性名:onSaveState|NA|@ohos.app.ability.Ability.d.ts| +|删除|模块名: ohos.app.ability.appRecovery
类名: appReceovery|NA|@ohos.app.ability.appRecovery.d.ts| +|删除|模块名: ohos.app.ability.appRecovery
类名: appReceovery
方法名 or 属性名:enableAppRecovery|NA|@ohos.app.ability.appRecovery.d.ts| +|删除|模块名: ohos.app.ability.appRecovery
类名: appReceovery
方法名 or 属性名:restartApp|NA|@ohos.app.ability.appRecovery.d.ts| +|删除|模块名: ohos.app.ability.appRecovery
类名: appReceovery
方法名 or 属性名:saveAppState|NA|@ohos.app.ability.appRecovery.d.ts| |model有变化|类名:Ability
model:@stagemodelonly|类名:Ability
model:@StageModelOnly|@ohos.app.ability.Ability.d.ts| |model有变化|方法名 or 属性名:onConfigurationUpdate
model:@stagemodelonly|方法名 or 属性名:onConfigurationUpdate
model:@StageModelOnly|@ohos.app.ability.Ability.d.ts| |model有变化|方法名 or 属性名:onMemoryLevel
model:@stagemodelonly|方法名 or 属性名:onMemoryLevel
model:@StageModelOnly|@ohos.app.ability.Ability.d.ts| diff --git a/zh-cn/release-notes/api-diff/monthly-202211/js-apidiff-account.md b/zh-cn/release-notes/api-diff/monthly-202211/js-apidiff-account.md index e8d6e7e6d46508fd9f4e381ce62680c05af67fb0..f0d0b8aab06f7427a3ca1f1c133da5e016b6b546 100644 --- a/zh-cn/release-notes/api-diff/monthly-202211/js-apidiff-account.md +++ b/zh-cn/release-notes/api-diff/monthly-202211/js-apidiff-account.md @@ -1,4 +1,4 @@ -| 操作 | 新版本 | 旧版本 | d.ts文件 | +| 操作 | 旧版本 | 新版本 | d.ts文件 | | ---- | ------ | ------ | -------- | -|新增||方法名 or 属性名:setProperty
函数:setProperty(request: SetPropertyRequest, callback: AsyncCallback): void;|@ohos.account.osAccount.d.ts| -|新增||方法名 or 属性名:setProperty
函数:setProperty(request: SetPropertyRequest): Promise;|@ohos.account.osAccount.d.ts| +|新增|NA|方法名 or 属性名:setProperty
函数:setProperty(request: SetPropertyRequest, callback: AsyncCallback): void;|@ohos.account.osAccount.d.ts| +|新增|NA|方法名 or 属性名:setProperty
函数:setProperty(request: SetPropertyRequest): Promise;|@ohos.account.osAccount.d.ts| diff --git a/zh-cn/release-notes/api-diff/monthly-202211/js-apidiff-application.md b/zh-cn/release-notes/api-diff/monthly-202211/js-apidiff-application.md index b38ab1b33d00f8e7c10cee024fbad50ec9d8d2fa..d4412e19e3ea48fdc82c85c63754f3229b202714 100644 --- a/zh-cn/release-notes/api-diff/monthly-202211/js-apidiff-application.md +++ b/zh-cn/release-notes/api-diff/monthly-202211/js-apidiff-application.md @@ -1,4 +1,4 @@ -| 操作 | 新版本 | 旧版本 | d.ts文件 | +| 操作 | 旧版本 | 新版本 | d.ts文件 | | ---- | ------ | ------ | -------- | |新增(权限)|方法名 or 属性名:hangup
权限:N/A|方法名 or 属性名:hangup
权限:ohos.permission.ANSWER_CALL|@ohos.telephony.call.d.ts| |新增(权限)|方法名 or 属性名:hangup
权限:N/A|方法名 or 属性名:hangup
权限:ohos.permission.ANSWER_CALL|@ohos.telephony.call.d.ts| diff --git a/zh-cn/release-notes/api-diff/monthly-202211/js-apidiff-arkui.md b/zh-cn/release-notes/api-diff/monthly-202211/js-apidiff-arkui.md index 6e1aaa86ce3a8eb46711234a2ffe95a81703658c..4565086cc3e5f019d3d074d77ab08b60fa65d6c1 100644 --- a/zh-cn/release-notes/api-diff/monthly-202211/js-apidiff-arkui.md +++ b/zh-cn/release-notes/api-diff/monthly-202211/js-apidiff-arkui.md @@ -1,3 +1,3 @@ -| 操作 | 新版本 | 旧版本 | d.ts文件 | +| 操作 | 旧版本 | 新版本 | d.ts文件 | | ---- | ------ | ------ | -------- | -|新增||方法名 or 属性名:GridColInterface
函数:(option?: GridColOptions): GridColAttribute;|grid_col.d.ts| +|新增|NA|方法名 or 属性名:GridColInterface
函数:(option?: GridColOptions): GridColAttribute;|grid_col.d.ts| diff --git a/zh-cn/release-notes/api-diff/monthly-202211/js-apidiff-bundle.md b/zh-cn/release-notes/api-diff/monthly-202211/js-apidiff-bundle.md index 4adb6cdce84055e987561a2c3cbd0808b8e5dd08..ebe280e44bd90109341d2ca81e320118acf879c9 100644 --- a/zh-cn/release-notes/api-diff/monthly-202211/js-apidiff-bundle.md +++ b/zh-cn/release-notes/api-diff/monthly-202211/js-apidiff-bundle.md @@ -1,201 +1,119 @@ -| 操作 | 新版本 | 旧版本 | d.ts文件 | +| 操作 | 旧版本 | 新版本 | d.ts文件 | | ---- | ------ | ------ | -------- | -|新增||方法名 or 属性名:bundleName
函数:readonly bundleName: string;|@ohos.bundle.bundleMonitor.d.ts| -|新增||方法名 or 属性名:userId
函数:readonly userId: number;|@ohos.bundle.bundleMonitor.d.ts| -|新增||模块名:ohos.bundle.defaultAppManager
类名:defaultAppManager|@ohos.bundle.defaultAppManager.d.ts| -|新增||模块名:ohos.bundle.defaultAppManager
类名:ApplicationType|@ohos.bundle.defaultAppManager.d.ts| -|新增||模块名:ohos.bundle.defaultAppManager
类名:ApplicationType
方法名 or 属性名:BROWSER|@ohos.bundle.defaultAppManager.d.ts| -|新增||模块名:ohos.bundle.defaultAppManager
类名:ApplicationType
方法名 or 属性名:IMAGE|@ohos.bundle.defaultAppManager.d.ts| -|新增||模块名:ohos.bundle.defaultAppManager
类名:ApplicationType
方法名 or 属性名:AUDIO|@ohos.bundle.defaultAppManager.d.ts| -|新增||模块名:ohos.bundle.defaultAppManager
类名:ApplicationType
方法名 or 属性名:VIDEO|@ohos.bundle.defaultAppManager.d.ts| -|新增||模块名:ohos.bundle.defaultAppManager
类名:ApplicationType
方法名 or 属性名:PDF|@ohos.bundle.defaultAppManager.d.ts| -|新增||模块名:ohos.bundle.defaultAppManager
类名:ApplicationType
方法名 or 属性名:WORD|@ohos.bundle.defaultAppManager.d.ts| -|新增||模块名:ohos.bundle.defaultAppManager
类名:ApplicationType
方法名 or 属性名:EXCEL|@ohos.bundle.defaultAppManager.d.ts| -|新增||模块名:ohos.bundle.defaultAppManager
类名:ApplicationType
方法名 or 属性名:PPT|@ohos.bundle.defaultAppManager.d.ts| -|新增||模块名:abilityInfo
类名:AbilityInfo
方法名 or 属性名:metadata|abilityInfo.d.ts| -|新增||模块名:applicationInfo
类名:ApplicationInfo
方法名 or 属性名:metadata|applicationInfo.d.ts| -|新增||模块名:applicationInfo
类名:ApplicationInfo
方法名 or 属性名:iconResource|applicationInfo.d.ts| -|新增||模块名:applicationInfo
类名:ApplicationInfo
方法名 or 属性名:labelResource|applicationInfo.d.ts| -|新增||模块名:applicationInfo
类名:ApplicationInfo
方法名 or 属性名:descriptionResource|applicationInfo.d.ts| -|新增||模块名:applicationInfo
类名:ApplicationInfo
方法名 or 属性名:appDistributionType|applicationInfo.d.ts| -|新增||模块名:applicationInfo
类名:ApplicationInfo
方法名 or 属性名:appProvisionType|applicationInfo.d.ts| -|新增||模块名:bundleInfo
类名:ReqPermissionDetail
方法名 or 属性名:reasonId|bundleInfo.d.ts| -|新增||模块名:dispatchInfo
类名:DispatchInfo|dispatchInfo.d.ts| -|新增||模块名:dispatchInfo
类名:DispatchInfo
方法名 or 属性名:version|dispatchInfo.d.ts| -|新增||模块名:elementName
类名:ElementName
方法名 or 属性名:moduleName|elementName.d.ts| -|新增||模块名:extensionAbilityInfo
类名:ExtensionAbilityInfo
方法名 or 属性名:bundleName|extensionAbilityInfo.d.ts| -|新增||模块名:extensionAbilityInfo
类名:ExtensionAbilityInfo
方法名 or 属性名:moduleName|extensionAbilityInfo.d.ts| -|新增||模块名:extensionAbilityInfo
类名:ExtensionAbilityInfo
方法名 or 属性名:name|extensionAbilityInfo.d.ts| -|新增||模块名:extensionAbilityInfo
类名:ExtensionAbilityInfo
方法名 or 属性名:labelId|extensionAbilityInfo.d.ts| -|新增||模块名:extensionAbilityInfo
类名:ExtensionAbilityInfo
方法名 or 属性名:descriptionId|extensionAbilityInfo.d.ts| -|新增||模块名:extensionAbilityInfo
类名:ExtensionAbilityInfo
方法名 or 属性名:iconId|extensionAbilityInfo.d.ts| -|新增||模块名:extensionAbilityInfo
类名:ExtensionAbilityInfo
方法名 or 属性名:isVisible|extensionAbilityInfo.d.ts| -|新增||模块名:extensionAbilityInfo
类名:ExtensionAbilityInfo
方法名 or 属性名:permissions|extensionAbilityInfo.d.ts| -|新增||模块名:extensionAbilityInfo
类名:ExtensionAbilityInfo
方法名 or 属性名:applicationInfo|extensionAbilityInfo.d.ts| -|新增||模块名:extensionAbilityInfo
类名:ExtensionAbilityInfo
方法名 or 属性名:metadata|extensionAbilityInfo.d.ts| -|新增||模块名:extensionAbilityInfo
类名:ExtensionAbilityInfo
方法名 or 属性名:enabled|extensionAbilityInfo.d.ts| -|新增||模块名:extensionAbilityInfo
类名:ExtensionAbilityInfo
方法名 or 属性名:readPermission|extensionAbilityInfo.d.ts| -|新增||模块名:extensionAbilityInfo
类名:ExtensionAbilityInfo
方法名 or 属性名:writePermission|extensionAbilityInfo.d.ts| -|新增||模块名:hapModuleInfo
类名:HapModuleInfo
方法名 or 属性名:mainElementName|hapModuleInfo.d.ts| -|新增||模块名:hapModuleInfo
类名:HapModuleInfo
方法名 or 属性名:metadata|hapModuleInfo.d.ts| -|新增||模块名:hapModuleInfo
类名:HapModuleInfo
方法名 or 属性名:hashValue|hapModuleInfo.d.ts| -|新增||模块名:metadata
类名:Metadata
方法名 or 属性名:name|metadata.d.ts| -|新增||模块名:metadata
类名:Metadata
方法名 or 属性名:value|metadata.d.ts| -|新增||模块名:metadata
类名:Metadata
方法名 or 属性名:resource|metadata.d.ts| -|新增||模块名:packInfo
类名:BundlePackInfo|packInfo.d.ts| -|新增||模块名:packInfo
类名:BundlePackInfo
方法名 or 属性名:packages|packInfo.d.ts| -|新增||模块名:packInfo
类名:BundlePackInfo
方法名 or 属性名:summary|packInfo.d.ts| -|新增||模块名:packInfo
类名:PackageConfig|packInfo.d.ts| -|新增||模块名:packInfo
类名:PackageConfig
方法名 or 属性名:name|packInfo.d.ts| -|新增||模块名:packInfo
类名:PackageConfig
方法名 or 属性名:moduleType|packInfo.d.ts| -|新增||模块名:packInfo
类名:PackageConfig
方法名 or 属性名:deliveryWithInstall|packInfo.d.ts| -|新增||模块名:packInfo
类名:PackageSummary|packInfo.d.ts| -|新增||模块名:packInfo
类名:PackageSummary
方法名 or 属性名:app|packInfo.d.ts| -|新增||模块名:packInfo
类名:PackageSummary
方法名 or 属性名:modules|packInfo.d.ts| -|新增||模块名:packInfo
类名:BundleConfigInfo|packInfo.d.ts| -|新增||模块名:packInfo
类名:BundleConfigInfo
方法名 or 属性名:bundleName|packInfo.d.ts| -|新增||模块名:packInfo
类名:BundleConfigInfo
方法名 or 属性名:version|packInfo.d.ts| -|新增||模块名:packInfo
类名:ModuleConfigInfo|packInfo.d.ts| -|新增||模块名:packInfo
类名:ModuleConfigInfo
方法名 or 属性名:apiVersion|packInfo.d.ts| -|新增||模块名:packInfo
类名:ModuleConfigInfo
方法名 or 属性名:distro|packInfo.d.ts| -|新增||模块名:packInfo
类名:ModuleConfigInfo
方法名 or 属性名:abilities|packInfo.d.ts| -|新增||模块名:packInfo
类名:ModuleDistroInfo|packInfo.d.ts| -|新增||模块名:packInfo
类名:ModuleDistroInfo
方法名 or 属性名:deliveryWithInstall|packInfo.d.ts| -|新增||模块名:packInfo
类名:ModuleDistroInfo
方法名 or 属性名:installationFree|packInfo.d.ts| -|新增||模块名:packInfo
类名:ModuleDistroInfo
方法名 or 属性名:moduleName|packInfo.d.ts| -|新增||模块名:packInfo
类名:ModuleDistroInfo
方法名 or 属性名:moduleType|packInfo.d.ts| -|新增||模块名:packInfo
类名:ModuleAbilityInfo|packInfo.d.ts| -|新增||模块名:packInfo
类名:ModuleAbilityInfo
方法名 or 属性名:name|packInfo.d.ts| -|新增||模块名:packInfo
类名:ModuleAbilityInfo
方法名 or 属性名:label|packInfo.d.ts| -|新增||模块名:packInfo
类名:ModuleAbilityInfo
方法名 or 属性名:visible|packInfo.d.ts| -|新增||模块名:packInfo
类名:ModuleAbilityInfo
方法名 or 属性名:forms|packInfo.d.ts| -|新增||模块名:packInfo
类名:AbilityFormInfo|packInfo.d.ts| -|新增||模块名:packInfo
类名:AbilityFormInfo
方法名 or 属性名:name|packInfo.d.ts| -|新增||模块名:packInfo
类名:AbilityFormInfo
方法名 or 属性名:type|packInfo.d.ts| -|新增||模块名:packInfo
类名:AbilityFormInfo
方法名 or 属性名:updateEnabled|packInfo.d.ts| -|新增||模块名:packInfo
类名:AbilityFormInfo
方法名 or 属性名:scheduledUpdateTime|packInfo.d.ts| -|新增||模块名:packInfo
类名:AbilityFormInfo
方法名 or 属性名:updateDuration|packInfo.d.ts| -|新增||模块名:packInfo
类名:Version|packInfo.d.ts| -|新增||模块名:packInfo
类名:Version
方法名 or 属性名:minCompatibleVersionCode|packInfo.d.ts| -|新增||模块名:packInfo
类名:Version
方法名 or 属性名:name|packInfo.d.ts| -|新增||模块名:packInfo
类名:Version
方法名 or 属性名:code|packInfo.d.ts| -|新增||模块名:packInfo
类名:ApiVersion|packInfo.d.ts| -|新增||模块名:packInfo
类名:ApiVersion
方法名 or 属性名:releaseType|packInfo.d.ts| -|新增||模块名:packInfo
类名:ApiVersion
方法名 or 属性名:compatible|packInfo.d.ts| -|新增||模块名:packInfo
类名:ApiVersion
方法名 or 属性名:target|packInfo.d.ts| -|新增||方法名 or 属性名:permissionName
函数:readonly permissionName: string;|permissionDef.d.ts| -|新增||方法名 or 属性名:grantMode
函数:readonly grantMode: number;|permissionDef.d.ts| -|新增||方法名 or 属性名:labelId
函数:readonly labelId: number;|permissionDef.d.ts| -|新增||方法名 or 属性名:descriptionId
函数:readonly descriptionId: number;|permissionDef.d.ts| -|新增||模块名:shortcutInfo
类名:ShortcutWant
方法名 or 属性名:targetModule|shortcutInfo.d.ts| -|删除|模块名:ohos.bundle
类名:BundleFlag
方法名 or 属性名:GET_BUNDLE_WITH_EXTENSION_ABILITY||@ohos.bundle.d.ts| -|删除|模块名:ohos.bundle
类名:BundleFlag
方法名 or 属性名:GET_BUNDLE_WITH_HASH_VALUE||@ohos.bundle.d.ts| -|删除|模块名:ohos.bundle
类名:BundleFlag
方法名 or 属性名:GET_APPLICATION_INFO_WITH_CERTIFICATE_FINGERPRINT||@ohos.bundle.d.ts| -|删除|模块名: ohos.bundle
类名: ExtensionFlag||@ohos.bundle.d.ts| -|删除|模块名: ohos.bundle
类名: ExtensionFlag
方法名 or 属性名:GET_EXTENSION_INFO_DEFAULT||@ohos.bundle.d.ts| -|删除|模块名: ohos.bundle
类名: ExtensionFlag
方法名 or 属性名:GET_EXTENSION_INFO_WITH_PERMISSION||@ohos.bundle.d.ts| -|删除|模块名: ohos.bundle
类名: ExtensionFlag
方法名 or 属性名:GET_EXTENSION_INFO_WITH_APPLICATION||@ohos.bundle.d.ts| -|删除|模块名: ohos.bundle
类名: ExtensionFlag
方法名 or 属性名:GET_EXTENSION_INFO_WITH_METADATA||@ohos.bundle.d.ts| -|删除|模块名:ohos.bundle
类名:DisplayOrientation
方法名 or 属性名:LANDSCAPE_INVERTED||@ohos.bundle.d.ts| -|删除|模块名:ohos.bundle
类名:DisplayOrientation
方法名 or 属性名:PORTRAIT_INVERTED||@ohos.bundle.d.ts| -|删除|模块名:ohos.bundle
类名:DisplayOrientation
方法名 or 属性名:AUTO_ROTATION||@ohos.bundle.d.ts| -|删除|模块名:ohos.bundle
类名:DisplayOrientation
方法名 or 属性名:AUTO_ROTATION_LANDSCAPE||@ohos.bundle.d.ts| -|删除|模块名:ohos.bundle
类名:DisplayOrientation
方法名 or 属性名:AUTO_ROTATION_PORTRAIT||@ohos.bundle.d.ts| -|删除|模块名:ohos.bundle
类名:DisplayOrientation
方法名 or 属性名:AUTO_ROTATION_RESTRICTED||@ohos.bundle.d.ts| -|删除|模块名:ohos.bundle
类名:DisplayOrientation
方法名 or 属性名:AUTO_ROTATION_LANDSCAPE_RESTRICTED||@ohos.bundle.d.ts| -|删除|模块名:ohos.bundle
类名:DisplayOrientation
方法名 or 属性名:AUTO_ROTATION_PORTRAIT_RESTRICTED||@ohos.bundle.d.ts| -|删除|模块名:ohos.bundle
类名:DisplayOrientation
方法名 or 属性名:LOCKED||@ohos.bundle.d.ts| -|删除|模块名: ohos.bundle
类名: ExtensionAbilityType||@ohos.bundle.d.ts| -|删除|模块名: ohos.bundle
类名: ExtensionAbilityType
方法名 or 属性名:FORM||@ohos.bundle.d.ts| -|删除|模块名: ohos.bundle
类名: ExtensionAbilityType
方法名 or 属性名:WORK_SCHEDULER||@ohos.bundle.d.ts| -|删除|模块名: ohos.bundle
类名: ExtensionAbilityType
方法名 or 属性名:INPUT_METHOD||@ohos.bundle.d.ts| -|删除|模块名: ohos.bundle
类名: ExtensionAbilityType
方法名 or 属性名:SERVICE||@ohos.bundle.d.ts| -|删除|模块名: ohos.bundle
类名: ExtensionAbilityType
方法名 or 属性名:ACCESSIBILITY||@ohos.bundle.d.ts| -|删除|模块名: ohos.bundle
类名: ExtensionAbilityType
方法名 or 属性名:DATA_SHARE||@ohos.bundle.d.ts| -|删除|模块名: ohos.bundle
类名: ExtensionAbilityType
方法名 or 属性名:FILE_SHARE||@ohos.bundle.d.ts| -|删除|模块名: ohos.bundle
类名: ExtensionAbilityType
方法名 or 属性名:STATIC_SUBSCRIBER||@ohos.bundle.d.ts| -|删除|模块名: ohos.bundle
类名: ExtensionAbilityType
方法名 or 属性名:WALLPAPER||@ohos.bundle.d.ts| -|删除|模块名: ohos.bundle
类名: ExtensionAbilityType
方法名 or 属性名:BACKUP||@ohos.bundle.d.ts| -|删除|模块名: ohos.bundle
类名: ExtensionAbilityType
方法名 or 属性名:WINDOW||@ohos.bundle.d.ts| -|删除|模块名: ohos.bundle
类名: ExtensionAbilityType
方法名 or 属性名:ENTERPRISE_ADMIN||@ohos.bundle.d.ts| -|删除|模块名: ohos.bundle
类名: ExtensionAbilityType
方法名 or 属性名:THUMBNAIL||@ohos.bundle.d.ts| -|删除|模块名: ohos.bundle
类名: ExtensionAbilityType
方法名 or 属性名:PREVIEW||@ohos.bundle.d.ts| -|删除|模块名: ohos.bundle
类名: ExtensionAbilityType
方法名 or 属性名:UNSPECIFIED||@ohos.bundle.d.ts| -|删除|模块名: ohos.bundle
类名: UpgradeFlag||@ohos.bundle.d.ts| -|删除|模块名: ohos.bundle
类名: UpgradeFlag
方法名 or 属性名:NOT_UPGRADE||@ohos.bundle.d.ts| -|删除|模块名: ohos.bundle
类名: UpgradeFlag
方法名 or 属性名:SINGLE_UPGRADE||@ohos.bundle.d.ts| -|删除|模块名: ohos.bundle
类名: UpgradeFlag
方法名 or 属性名:RELATION_UPGRADE||@ohos.bundle.d.ts| -|删除|模块名: ohos.bundle
类名: SupportWindowMode||@ohos.bundle.d.ts| -|删除|模块名: ohos.bundle
类名: SupportWindowMode
方法名 or 属性名:FULL_SCREEN||@ohos.bundle.d.ts| -|删除|模块名: ohos.bundle
类名: SupportWindowMode
方法名 or 属性名:SPLIT||@ohos.bundle.d.ts| -|删除|模块名: ohos.bundle
类名: SupportWindowMode
方法名 or 属性名:FLOATING||@ohos.bundle.d.ts| -|删除|模块名:ohos.bundle
类名:bundle
方法名 or 属性名:queryExtensionAbilityInfos||@ohos.bundle.d.ts| -|删除|模块名:ohos.bundle
类名:bundle
方法名 or 属性名:queryExtensionAbilityInfos||@ohos.bundle.d.ts| -|删除|模块名:ohos.bundle
类名:bundle
方法名 or 属性名:queryExtensionAbilityInfos||@ohos.bundle.d.ts| -|删除|模块名:ohos.bundle
类名:bundle
方法名 or 属性名:setModuleUpgradeFlag||@ohos.bundle.d.ts| -|删除|模块名:ohos.bundle
类名:bundle
方法名 or 属性名:setModuleUpgradeFlag||@ohos.bundle.d.ts| -|删除|模块名:ohos.bundle
类名:bundle
方法名 or 属性名:isModuleRemovable||@ohos.bundle.d.ts| -|删除|模块名:ohos.bundle
类名:bundle
方法名 or 属性名:isModuleRemovable||@ohos.bundle.d.ts| -|删除|模块名:ohos.bundle
类名:bundle
方法名 or 属性名:getBundlePackInfo||@ohos.bundle.d.ts| -|删除|模块名:ohos.bundle
类名:bundle
方法名 or 属性名:getBundlePackInfo||@ohos.bundle.d.ts| -|删除|模块名:ohos.bundle
类名:bundle
方法名 or 属性名:getAbilityInfo||@ohos.bundle.d.ts| -|删除|模块名:ohos.bundle
类名:bundle
方法名 or 属性名:getAbilityInfo||@ohos.bundle.d.ts| -|删除|模块名:ohos.bundle
类名:bundle
方法名 or 属性名:getDispatcherVersion||@ohos.bundle.d.ts| -|删除|模块名:ohos.bundle
类名:bundle
方法名 or 属性名:getDispatcherVersion||@ohos.bundle.d.ts| -|删除|模块名:ohos.bundle
类名:bundle
方法名 or 属性名:getAbilityLabel||@ohos.bundle.d.ts| -|删除|模块名:ohos.bundle
类名:bundle
方法名 or 属性名:getAbilityLabel||@ohos.bundle.d.ts| -|删除|模块名:ohos.bundle
类名:bundle
方法名 or 属性名:getAbilityIcon||@ohos.bundle.d.ts| -|删除|模块名:ohos.bundle
类名:bundle
方法名 or 属性名:getAbilityIcon||@ohos.bundle.d.ts| -|删除|模块名:ohos.bundle
类名:bundle
方法名 or 属性名:getProfileByAbility||@ohos.bundle.d.ts| -|删除|模块名:ohos.bundle
类名:bundle
方法名 or 属性名:getProfileByAbility||@ohos.bundle.d.ts| -|删除|模块名:ohos.bundle
类名:bundle
方法名 or 属性名:getProfileByExtensionAbility||@ohos.bundle.d.ts| -|删除|模块名:ohos.bundle
类名:bundle
方法名 or 属性名:getProfileByExtensionAbility||@ohos.bundle.d.ts| -|删除|模块名:ohos.bundle
类名:bundle
方法名 or 属性名:setDisposedStatus||@ohos.bundle.d.ts| -|删除|模块名:ohos.bundle
类名:bundle
方法名 or 属性名:setDisposedStatus||@ohos.bundle.d.ts| -|删除|模块名:ohos.bundle
类名:bundle
方法名 or 属性名:getDisposedStatus||@ohos.bundle.d.ts| -|删除|模块名:ohos.bundle
类名:bundle
方法名 or 属性名:getDisposedStatus||@ohos.bundle.d.ts| -|删除|模块名:ohos.bundle
类名:bundle
方法名 or 属性名:getApplicationInfoSync||@ohos.bundle.d.ts| -|删除|模块名:ohos.bundle
类名:bundle
方法名 or 属性名:getApplicationInfoSync||@ohos.bundle.d.ts| -|删除|模块名:ohos.bundle
类名:bundle
方法名 or 属性名:getBundleInfoSync||@ohos.bundle.d.ts| -|删除|模块名:ohos.bundle
类名:bundle
方法名 or 属性名:getBundleInfoSync||@ohos.bundle.d.ts| -|删除|模块名:ohos.distributedBundle
类名:distributedBundle
方法名 or 属性名:getRemoteAbilityInfo||@ohos.distributedBundle.d.ts| -|删除|模块名:ohos.distributedBundle
类名:distributedBundle
方法名 or 属性名:getRemoteAbilityInfo||@ohos.distributedBundle.d.ts| -|删除|模块名:ohos.distributedBundle
类名:distributedBundle
方法名 or 属性名:getRemoteAbilityInfos||@ohos.distributedBundle.d.ts| -|删除|模块名:ohos.distributedBundle
类名:distributedBundle
方法名 or 属性名:getRemoteAbilityInfos||@ohos.distributedBundle.d.ts| -|删除|模块名:abilityInfo
类名:AbilityInfo
方法名 or 属性名:supportWindowMode||abilityInfo.d.ts| -|删除|模块名:abilityInfo
类名:AbilityInfo
方法名 or 属性名:maxWindowRatio||abilityInfo.d.ts| -|删除|模块名:abilityInfo
类名:AbilityInfo
方法名 or 属性名:minWindowRatio||abilityInfo.d.ts| -|删除|模块名:abilityInfo
类名:AbilityInfo
方法名 or 属性名:maxWindowWidth||abilityInfo.d.ts| -|删除|模块名:abilityInfo
类名:AbilityInfo
方法名 or 属性名:minWindowWidth||abilityInfo.d.ts| -|删除|模块名:abilityInfo
类名:AbilityInfo
方法名 or 属性名:maxWindowHeight||abilityInfo.d.ts| -|删除|模块名:abilityInfo
类名:AbilityInfo
方法名 or 属性名:minWindowHeight||abilityInfo.d.ts| -|删除|模块名:applicationInfo
类名:ApplicationInfo
方法名 or 属性名:labelIndex||applicationInfo.d.ts| -|删除|模块名:applicationInfo
类名:ApplicationInfo
方法名 or 属性名:iconIndex||applicationInfo.d.ts| -|删除|模块名:applicationInfo
类名:ApplicationInfo
方法名 or 属性名:fingerprint||applicationInfo.d.ts| -|删除|模块名:bundleInfo
类名:BundleInfo
方法名 or 属性名:extensionAbilityInfo||bundleInfo.d.ts| -|删除|模块名: bundleInstaller
类名: HashParam||bundleInstaller.d.ts| -|删除|模块名: bundleInstaller
类名: HashParam
方法名 or 属性名:moduleName||bundleInstaller.d.ts| -|删除|模块名: bundleInstaller
类名: HashParam
方法名 or 属性名:hashValue||bundleInstaller.d.ts| -|删除|模块名:bundleInstaller
类名:InstallParam
方法名 or 属性名:hashParams||bundleInstaller.d.ts| -|删除|模块名:bundleInstaller
类名:InstallParam
方法名 or 属性名:crowdtestDeadline||bundleInstaller.d.ts| -|删除|模块名:dispatchInfo
类名:DispatchInfo
方法名 or 属性名:dispatchAPI||dispatchInfo.d.ts| -|删除|模块名:extensionAbilityInfo
类名:ExtensionAbilityInfo
方法名 or 属性名:extensionAbilityType||extensionAbilityInfo.d.ts| -|删除|模块名:hapModuleInfo
类名:HapModuleInfo
方法名 or 属性名:extensionAbilityInfo||hapModuleInfo.d.ts| -|删除|模块名:packInfo
类名:PackageConfig
方法名 or 属性名:deviceType||packInfo.d.ts| -|删除|模块名: packInfo
类名: ExtensionAbilities||packInfo.d.ts| -|删除|模块名: packInfo
类名: ExtensionAbilities
方法名 or 属性名:name||packInfo.d.ts| -|删除|模块名: packInfo
类名: ExtensionAbilities
方法名 or 属性名:forms||packInfo.d.ts| -|删除|模块名:packInfo
类名:ModuleConfigInfo
方法名 or 属性名:deviceType||packInfo.d.ts| -|删除|模块名:packInfo
类名:ModuleConfigInfo
方法名 or 属性名:extensionAbilities||packInfo.d.ts| -|删除|模块名:packInfo
类名:ModuleDistroInfo
方法名 or 属性名:mainAbility||packInfo.d.ts| -|删除|模块名:packInfo
类名:AbilityFormInfo
方法名 or 属性名:supportDimensions||packInfo.d.ts| -|删除|模块名:packInfo
类名:AbilityFormInfo
方法名 or 属性名:defaultDimension||packInfo.d.ts| -|删除|模块名: packInfo
类名: BundlePackFlag||packInfo.d.ts| -|删除|模块名: packInfo
类名: BundlePackFlag
方法名 or 属性名:GET_PACK_INFO_ALL||packInfo.d.ts| -|删除|模块名: packInfo
类名: BundlePackFlag
方法名 or 属性名:GET_PACKAGES||packInfo.d.ts| -|删除|模块名: packInfo
类名: BundlePackFlag
方法名 or 属性名:GET_BUNDLE_SUMMARY||packInfo.d.ts| -|删除|模块名: packInfo
类名: BundlePackFlag
方法名 or 属性名:GET_MODULE_SUMMARY||packInfo.d.ts| -|删除|模块名:shortcutInfo
类名:ShortcutInfo
方法名 or 属性名:moduleName||shortcutInfo.d.ts| +|新增|NA|方法名 or 属性名:bundleName
函数:readonly bundleName: string;|@ohos.bundle.bundleMonitor.d.ts| +|新增|NA|方法名 or 属性名:userId
函数:readonly userId: number;|@ohos.bundle.bundleMonitor.d.ts| +|新增|NA|方法名 or 属性名:permissionName
函数:readonly permissionName: string;|permissionDef.d.ts| +|新增|NA|方法名 or 属性名:grantMode
函数:readonly grantMode: number;|permissionDef.d.ts| +|新增|NA|方法名 or 属性名:labelId
函数:readonly labelId: number;|permissionDef.d.ts| +|新增|NA|方法名 or 属性名:descriptionId
函数:readonly descriptionId: number;|permissionDef.d.ts| +|删除|模块名:ohos.bundle
类名:BundleFlag
方法名 or 属性名:GET_BUNDLE_WITH_EXTENSION_ABILITY|NA|@ohos.bundle.d.ts| +|删除|模块名:ohos.bundle
类名:BundleFlag
方法名 or 属性名:GET_BUNDLE_WITH_HASH_VALUE|NA|@ohos.bundle.d.ts| +|删除|模块名:ohos.bundle
类名:BundleFlag
方法名 or 属性名:GET_APPLICATION_INFO_WITH_CERTIFICATE_FINGERPRINT|NA|@ohos.bundle.d.ts| +|删除|模块名: ohos.bundle
类名: ExtensionFlag|NA|@ohos.bundle.d.ts| +|删除|模块名: ohos.bundle
类名: ExtensionFlag
方法名 or 属性名:GET_EXTENSION_INFO_DEFAULT|NA|@ohos.bundle.d.ts| +|删除|模块名: ohos.bundle
类名: ExtensionFlag
方法名 or 属性名:GET_EXTENSION_INFO_WITH_PERMISSION|NA|@ohos.bundle.d.ts| +|删除|模块名: ohos.bundle
类名: ExtensionFlag
方法名 or 属性名:GET_EXTENSION_INFO_WITH_APPLICATION|NA|@ohos.bundle.d.ts| +|删除|模块名: ohos.bundle
类名: ExtensionFlag
方法名 or 属性名:GET_EXTENSION_INFO_WITH_METADATA|NA|@ohos.bundle.d.ts| +|删除|模块名:ohos.bundle
类名:DisplayOrientation
方法名 or 属性名:LANDSCAPE_INVERTED|NA|@ohos.bundle.d.ts| +|删除|模块名:ohos.bundle
类名:DisplayOrientation
方法名 or 属性名:PORTRAIT_INVERTED|NA|@ohos.bundle.d.ts| +|删除|模块名:ohos.bundle
类名:DisplayOrientation
方法名 or 属性名:AUTO_ROTATION|NA|@ohos.bundle.d.ts| +|删除|模块名:ohos.bundle
类名:DisplayOrientation
方法名 or 属性名:AUTO_ROTATION_LANDSCAPE|NA|@ohos.bundle.d.ts| +|删除|模块名:ohos.bundle
类名:DisplayOrientation
方法名 or 属性名:AUTO_ROTATION_PORTRAIT|NA|@ohos.bundle.d.ts| +|删除|模块名:ohos.bundle
类名:DisplayOrientation
方法名 or 属性名:AUTO_ROTATION_RESTRICTED|NA|@ohos.bundle.d.ts| +|删除|模块名:ohos.bundle
类名:DisplayOrientation
方法名 or 属性名:AUTO_ROTATION_LANDSCAPE_RESTRICTED|NA|@ohos.bundle.d.ts| +|删除|模块名:ohos.bundle
类名:DisplayOrientation
方法名 or 属性名:AUTO_ROTATION_PORTRAIT_RESTRICTED|NA|@ohos.bundle.d.ts| +|删除|模块名:ohos.bundle
类名:DisplayOrientation
方法名 or 属性名:LOCKED|NA|@ohos.bundle.d.ts| +|删除|模块名: ohos.bundle
类名: ExtensionAbilityType|NA|@ohos.bundle.d.ts| +|删除|模块名: ohos.bundle
类名: ExtensionAbilityType
方法名 or 属性名:FORM|NA|@ohos.bundle.d.ts| +|删除|模块名: ohos.bundle
类名: ExtensionAbilityType
方法名 or 属性名:WORK_SCHEDULER|NA|@ohos.bundle.d.ts| +|删除|模块名: ohos.bundle
类名: ExtensionAbilityType
方法名 or 属性名:INPUT_METHOD|NA|@ohos.bundle.d.ts| +|删除|模块名: ohos.bundle
类名: ExtensionAbilityType
方法名 or 属性名:SERVICE|NA|@ohos.bundle.d.ts| +|删除|模块名: ohos.bundle
类名: ExtensionAbilityType
方法名 or 属性名:ACCESSIBILITY|NA|@ohos.bundle.d.ts| +|删除|模块名: ohos.bundle
类名: ExtensionAbilityType
方法名 or 属性名:DATA_SHARE|NA|@ohos.bundle.d.ts| +|删除|模块名: ohos.bundle
类名: ExtensionAbilityType
方法名 or 属性名:FILE_SHARE|NA|@ohos.bundle.d.ts| +|删除|模块名: ohos.bundle
类名: ExtensionAbilityType
方法名 or 属性名:STATIC_SUBSCRIBER|NA|@ohos.bundle.d.ts| +|删除|模块名: ohos.bundle
类名: ExtensionAbilityType
方法名 or 属性名:WALLPAPER|NA|@ohos.bundle.d.ts| +|删除|模块名: ohos.bundle
类名: ExtensionAbilityType
方法名 or 属性名:BACKUP|NA|@ohos.bundle.d.ts| +|删除|模块名: ohos.bundle
类名: ExtensionAbilityType
方法名 or 属性名:WINDOW|NA|@ohos.bundle.d.ts| +|删除|模块名: ohos.bundle
类名: ExtensionAbilityType
方法名 or 属性名:ENTERPRISE_ADMIN|NA|@ohos.bundle.d.ts| +|删除|模块名: ohos.bundle
类名: ExtensionAbilityType
方法名 or 属性名:THUMBNAIL|NA|@ohos.bundle.d.ts| +|删除|模块名: ohos.bundle
类名: ExtensionAbilityType
方法名 or 属性名:PREVIEW|NA|@ohos.bundle.d.ts| +|删除|模块名: ohos.bundle
类名: ExtensionAbilityType
方法名 or 属性名:UNSPECIFIED|NA|@ohos.bundle.d.ts| +|删除|模块名: ohos.bundle
类名: UpgradeFlag|NA|@ohos.bundle.d.ts| +|删除|模块名: ohos.bundle
类名: UpgradeFlag
方法名 or 属性名:NOT_UPGRADE|NA|@ohos.bundle.d.ts| +|删除|模块名: ohos.bundle
类名: UpgradeFlag
方法名 or 属性名:SINGLE_UPGRADE|NA|@ohos.bundle.d.ts| +|删除|模块名: ohos.bundle
类名: UpgradeFlag
方法名 or 属性名:RELATION_UPGRADE|NA|@ohos.bundle.d.ts| +|删除|模块名: ohos.bundle
类名: SupportWindowMode|NA|@ohos.bundle.d.ts| +|删除|模块名: ohos.bundle
类名: SupportWindowMode
方法名 or 属性名:FULL_SCREEN|NA|@ohos.bundle.d.ts| +|删除|模块名: ohos.bundle
类名: SupportWindowMode
方法名 or 属性名:SPLIT|NA|@ohos.bundle.d.ts| +|删除|模块名: ohos.bundle
类名: SupportWindowMode
方法名 or 属性名:FLOATING|NA|@ohos.bundle.d.ts| +|删除|模块名:ohos.bundle
类名:bundle
方法名 or 属性名:queryExtensionAbilityInfos|NA|@ohos.bundle.d.ts| +|删除|模块名:ohos.bundle
类名:bundle
方法名 or 属性名:queryExtensionAbilityInfos|NA|@ohos.bundle.d.ts| +|删除|模块名:ohos.bundle
类名:bundle
方法名 or 属性名:queryExtensionAbilityInfos|NA|@ohos.bundle.d.ts| +|删除|模块名:ohos.bundle
类名:bundle
方法名 or 属性名:setModuleUpgradeFlag|NA|@ohos.bundle.d.ts| +|删除|模块名:ohos.bundle
类名:bundle
方法名 or 属性名:setModuleUpgradeFlag|NA|@ohos.bundle.d.ts| +|删除|模块名:ohos.bundle
类名:bundle
方法名 or 属性名:isModuleRemovable|NA|@ohos.bundle.d.ts| +|删除|模块名:ohos.bundle
类名:bundle
方法名 or 属性名:isModuleRemovable|NA|@ohos.bundle.d.ts| +|删除|模块名:ohos.bundle
类名:bundle
方法名 or 属性名:getBundlePackInfo|NA|@ohos.bundle.d.ts| +|删除|模块名:ohos.bundle
类名:bundle
方法名 or 属性名:getBundlePackInfo|NA|@ohos.bundle.d.ts| +|删除|模块名:ohos.bundle
类名:bundle
方法名 or 属性名:getAbilityInfo|NA|@ohos.bundle.d.ts| +|删除|模块名:ohos.bundle
类名:bundle
方法名 or 属性名:getAbilityInfo|NA|@ohos.bundle.d.ts| +|删除|模块名:ohos.bundle
类名:bundle
方法名 or 属性名:getDispatcherVersion|NA|@ohos.bundle.d.ts| +|删除|模块名:ohos.bundle
类名:bundle
方法名 or 属性名:getDispatcherVersion|NA|@ohos.bundle.d.ts| +|删除|模块名:ohos.bundle
类名:bundle
方法名 or 属性名:getAbilityLabel|NA|@ohos.bundle.d.ts| +|删除|模块名:ohos.bundle
类名:bundle
方法名 or 属性名:getAbilityLabel|NA|@ohos.bundle.d.ts| +|删除|模块名:ohos.bundle
类名:bundle
方法名 or 属性名:getAbilityIcon|NA|@ohos.bundle.d.ts| +|删除|模块名:ohos.bundle
类名:bundle
方法名 or 属性名:getAbilityIcon|NA|@ohos.bundle.d.ts| +|删除|模块名:ohos.bundle
类名:bundle
方法名 or 属性名:getProfileByAbility|NA|@ohos.bundle.d.ts| +|删除|模块名:ohos.bundle
类名:bundle
方法名 or 属性名:getProfileByAbility|NA|@ohos.bundle.d.ts| +|删除|模块名:ohos.bundle
类名:bundle
方法名 or 属性名:getProfileByExtensionAbility|NA|@ohos.bundle.d.ts| +|删除|模块名:ohos.bundle
类名:bundle
方法名 or 属性名:getProfileByExtensionAbility|NA|@ohos.bundle.d.ts| +|删除|模块名:ohos.bundle
类名:bundle
方法名 or 属性名:setDisposedStatus|NA|@ohos.bundle.d.ts| +|删除|模块名:ohos.bundle
类名:bundle
方法名 or 属性名:setDisposedStatus|NA|@ohos.bundle.d.ts| +|删除|模块名:ohos.bundle
类名:bundle
方法名 or 属性名:getDisposedStatus|NA|@ohos.bundle.d.ts| +|删除|模块名:ohos.bundle
类名:bundle
方法名 or 属性名:getDisposedStatus|NA|@ohos.bundle.d.ts| +|删除|模块名:ohos.bundle
类名:bundle
方法名 or 属性名:getApplicationInfoSync|NA|@ohos.bundle.d.ts| +|删除|模块名:ohos.bundle
类名:bundle
方法名 or 属性名:getApplicationInfoSync|NA|@ohos.bundle.d.ts| +|删除|模块名:ohos.bundle
类名:bundle
方法名 or 属性名:getBundleInfoSync|NA|@ohos.bundle.d.ts| +|删除|模块名:ohos.bundle
类名:bundle
方法名 or 属性名:getBundleInfoSync|NA|@ohos.bundle.d.ts| +|删除|模块名:ohos.distributedBundle
类名:distributedBundle
方法名 or 属性名:getRemoteAbilityInfo|NA|@ohos.distributedBundle.d.ts| +|删除|模块名:ohos.distributedBundle
类名:distributedBundle
方法名 or 属性名:getRemoteAbilityInfo|NA|@ohos.distributedBundle.d.ts| +|删除|模块名:ohos.distributedBundle
类名:distributedBundle
方法名 or 属性名:getRemoteAbilityInfos|NA|@ohos.distributedBundle.d.ts| +|删除|模块名:ohos.distributedBundle
类名:distributedBundle
方法名 or 属性名:getRemoteAbilityInfos|NA|@ohos.distributedBundle.d.ts| +|删除|模块名:abilityInfo
类名:AbilityInfo
方法名 or 属性名:supportWindowMode|NA|abilityInfo.d.ts| +|删除|模块名:abilityInfo
类名:AbilityInfo
方法名 or 属性名:maxWindowRatio|NA|abilityInfo.d.ts| +|删除|模块名:abilityInfo
类名:AbilityInfo
方法名 or 属性名:minWindowRatio|NA|abilityInfo.d.ts| +|删除|模块名:abilityInfo
类名:AbilityInfo
方法名 or 属性名:maxWindowWidth|NA|abilityInfo.d.ts| +|删除|模块名:abilityInfo
类名:AbilityInfo
方法名 or 属性名:minWindowWidth|NA|abilityInfo.d.ts| +|删除|模块名:abilityInfo
类名:AbilityInfo
方法名 or 属性名:maxWindowHeight|NA|abilityInfo.d.ts| +|删除|模块名:abilityInfo
类名:AbilityInfo
方法名 or 属性名:minWindowHeight|NA|abilityInfo.d.ts| +|删除|模块名:applicationInfo
类名:ApplicationInfo
方法名 or 属性名:labelIndex|NA|applicationInfo.d.ts| +|删除|模块名:applicationInfo
类名:ApplicationInfo
方法名 or 属性名:iconIndex|NA|applicationInfo.d.ts| +|删除|模块名:applicationInfo
类名:ApplicationInfo
方法名 or 属性名:fingerprint|NA|applicationInfo.d.ts| +|删除|模块名:bundleInfo
类名:BundleInfo
方法名 or 属性名:extensionAbilityInfo|NA|bundleInfo.d.ts| +|删除|模块名: bundleInstaller
类名: HashParam|NA|bundleInstaller.d.ts| +|删除|模块名: bundleInstaller
类名: HashParam
方法名 or 属性名:moduleName|NA|bundleInstaller.d.ts| +|删除|模块名: bundleInstaller
类名: HashParam
方法名 or 属性名:hashValue|NA|bundleInstaller.d.ts| +|删除|模块名:bundleInstaller
类名:InstallParam
方法名 or 属性名:hashParams|NA|bundleInstaller.d.ts| +|删除|模块名:bundleInstaller
类名:InstallParam
方法名 or 属性名:crowdtestDeadline|NA|bundleInstaller.d.ts| +|删除|模块名:dispatchInfo
类名:DispatchInfo
方法名 or 属性名:dispatchAPI|NA|dispatchInfo.d.ts| +|删除|模块名:extensionAbilityInfo
类名:ExtensionAbilityInfo
方法名 or 属性名:extensionAbilityType|NA|extensionAbilityInfo.d.ts| +|删除|模块名:hapModuleInfo
类名:HapModuleInfo
方法名 or 属性名:extensionAbilityInfo|NA|hapModuleInfo.d.ts| +|删除|模块名:packInfo
类名:PackageConfig
方法名 or 属性名:deviceType|NA|packInfo.d.ts| +|删除|模块名: packInfo
类名: ExtensionAbilities|NA|packInfo.d.ts| +|删除|模块名: packInfo
类名: ExtensionAbilities
方法名 or 属性名:name|NA|packInfo.d.ts| +|删除|模块名: packInfo
类名: ExtensionAbilities
方法名 or 属性名:forms|NA|packInfo.d.ts| +|删除|模块名:packInfo
类名:ModuleConfigInfo
方法名 or 属性名:deviceType|NA|packInfo.d.ts| +|删除|模块名:packInfo
类名:ModuleConfigInfo
方法名 or 属性名:extensionAbilities|NA|packInfo.d.ts| +|删除|模块名:packInfo
类名:ModuleDistroInfo
方法名 or 属性名:mainAbility|NA|packInfo.d.ts| +|删除|模块名:packInfo
类名:AbilityFormInfo
方法名 or 属性名:supportDimensions|NA|packInfo.d.ts| +|删除|模块名:packInfo
类名:AbilityFormInfo
方法名 or 属性名:defaultDimension|NA|packInfo.d.ts| +|删除|模块名: packInfo
类名: BundlePackFlag|NA|packInfo.d.ts| +|删除|模块名: packInfo
类名: BundlePackFlag
方法名 or 属性名:GET_PACK_INFO_ALL|NA|packInfo.d.ts| +|删除|模块名: packInfo
类名: BundlePackFlag
方法名 or 属性名:GET_PACKAGES|NA|packInfo.d.ts| +|删除|模块名: packInfo
类名: BundlePackFlag
方法名 or 属性名:GET_BUNDLE_SUMMARY|NA|packInfo.d.ts| +|删除|模块名: packInfo
类名: BundlePackFlag
方法名 or 属性名:GET_MODULE_SUMMARY|NA|packInfo.d.ts| +|删除|模块名:shortcutInfo
类名:ShortcutInfo
方法名 or 属性名:moduleName|NA|shortcutInfo.d.ts| |废弃版本有变化|类名:innerBundleManager
废弃版本:N/A|类名:innerBundleManager
废弃版本:9
代替接口:ohos.bundle.launcherBundleManager |@ohos.bundle.innerBundleManager.d.ts| |废弃版本有变化|类名:CheckPackageHasInstalledResponse
废弃版本:N/A|类名:CheckPackageHasInstalledResponse
废弃版本:9|@system.package.d.ts| |废弃版本有变化|类名:CheckPackageHasInstalledOptions
废弃版本:N/A|类名:CheckPackageHasInstalledOptions
废弃版本:9|@system.package.d.ts| diff --git a/zh-cn/release-notes/api-diff/monthly-202211/js-apidiff-communication.md b/zh-cn/release-notes/api-diff/monthly-202211/js-apidiff-communication.md index 904e52e35dc3358dd3d6302e1576bd0f526e7b40..704232b9ff04a2094ac622ce6bf9e9fd4c1ace01 100644 --- a/zh-cn/release-notes/api-diff/monthly-202211/js-apidiff-communication.md +++ b/zh-cn/release-notes/api-diff/monthly-202211/js-apidiff-communication.md @@ -1,52 +1,34 @@ -| 操作 | 新版本 | 旧版本 | d.ts文件 | +| 操作 | 旧版本 | 新版本 | d.ts文件 | | ---- | ------ | ------ | -------- | -|新增||模块名: ohos.net.connection
类名: connection
方法名 or 属性名: isDefaultNetMetered|@ohos.net.connection.d.ts| -|新增||模块名: ohos.net.connection
类名: connection
方法名 or 属性名: isDefaultNetMetered|@ohos.net.connection.d.ts| -|新增||模块名:ohos.net.socket
类名:TLSSocket
方法名 or 属性名:bind|@ohos.net.socket.d.ts| -|新增||模块名:ohos.net.socket
类名:TLSSocket
方法名 or 属性名:bind|@ohos.net.socket.d.ts| -|新增||模块名:ohos.net.socket
类名:TLSSocket
方法名 or 属性名:getRemoteAddress|@ohos.net.socket.d.ts| -|新增||模块名:ohos.net.socket
类名:TLSSocket
方法名 or 属性名:getRemoteAddress|@ohos.net.socket.d.ts| -|新增||模块名:ohos.net.socket
类名:TLSSocket
方法名 or 属性名:getState|@ohos.net.socket.d.ts| -|新增||模块名:ohos.net.socket
类名:TLSSocket
方法名 or 属性名:getState|@ohos.net.socket.d.ts| -|新增||模块名:ohos.net.socket
类名:TLSSocket
方法名 or 属性名:setExtraOptions|@ohos.net.socket.d.ts| -|新增||模块名:ohos.net.socket
类名:TLSSocket
方法名 or 属性名:setExtraOptions|@ohos.net.socket.d.ts| -|新增||模块名:ohos.net.socket
类名:TLSSocket
方法名 or 属性名:on_message|@ohos.net.socket.d.ts| -|新增||模块名:ohos.net.socket
类名:TLSSocket
方法名 or 属性名:off_message|@ohos.net.socket.d.ts| -|新增||模块名:ohos.net.socket
类名:TLSSocket
方法名 or 属性名:on_connect|@ohos.net.socket.d.ts| -|新增||模块名:ohos.net.socket
类名:TLSSocket
方法名 or 属性名:on_close|@ohos.net.socket.d.ts| -|新增||模块名:ohos.net.socket
类名:TLSSocket
方法名 or 属性名:off_connect|@ohos.net.socket.d.ts| -|新增||模块名:ohos.net.socket
类名:TLSSocket
方法名 or 属性名:off_close|@ohos.net.socket.d.ts| -|新增||模块名:ohos.net.socket
类名:TLSSocket
方法名 or 属性名:on_error|@ohos.net.socket.d.ts| -|新增||模块名:ohos.net.socket
类名:TLSSocket
方法名 or 属性名:off_error|@ohos.net.socket.d.ts| -|新增||模块名:ohos.net.socket
类名:TLSSocket
方法名 or 属性名:close|@ohos.net.socket.d.ts| -|新增||模块名:ohos.net.socket
类名:TLSSocket
方法名 or 属性名:close|@ohos.net.socket.d.ts| -|新增||方法名 or 属性名:cert
函数:cert?: string;|@ohos.net.socket.d.ts| -|新增||方法名 or 属性名:key
函数:key?: string;|@ohos.net.socket.d.ts| -|新增||方法名 or 属性名:NDEF_FORMATABLE
函数:const NDEF_FORMATABLE = 7;|@ohos.nfc.tag.d.ts| -|新增||模块名: ohos.nfc.tag
类名: ndef|@ohos.nfc.tag.d.ts| -|新增||模块名: ohos.nfc.tag
类名: ndef
方法名 or 属性名:makeUriRecord|@ohos.nfc.tag.d.ts| -|新增||模块名: ohos.nfc.tag
类名: ndef
方法名 or 属性名:makeTextRecord|@ohos.nfc.tag.d.ts| -|新增||模块名: ohos.nfc.tag
类名: ndef
方法名 or 属性名:makeMimeRecord|@ohos.nfc.tag.d.ts| -|新增||模块名: ohos.nfc.tag
类名: ndef
方法名 or 属性名:makeExternalRecord|@ohos.nfc.tag.d.ts| -|新增||模块名: ohos.nfc.tag
类名: ndef
方法名 or 属性名:createNdefMessage|@ohos.nfc.tag.d.ts| -|新增||模块名: ohos.nfc.tag
类名: ndef
方法名 or 属性名:createNdefMessage|@ohos.nfc.tag.d.ts| -|新增||模块名: ohos.nfc.tag
类名: ndef
方法名 or 属性名:messageToBytes|@ohos.nfc.tag.d.ts| -|新增||模块名: ohos.rpc
类名: IRemoteObject
方法名 or 属性名:getDescriptor|@ohos.rpc.d.ts| -|新增||方法名 or 属性名:scan
函数:function scan(): void;|@ohos.wifiManager.d.ts| -|删除|模块名: nfctech
类名: NdefMessage
方法名 or 属性名: makeUriRecord||nfctech.d.ts| -|删除|模块名: nfctech
类名: NdefMessage
方法名 or 属性名: makeTextRecord||nfctech.d.ts| -|删除|模块名: nfctech
类名: NdefMessage
方法名 or 属性名: makeMimeRecord||nfctech.d.ts| -|删除|模块名: nfctech
类名: NdefMessage
方法名 or 属性名: makeExternalRecord||nfctech.d.ts| -|删除|模块名: nfctech
类名: NdefMessage
方法名 or 属性名: messageToBytes||nfctech.d.ts| -|删除|模块名: nfctech
类名: NdefTag
方法名 or 属性名: createNdefMessage||nfctech.d.ts| -|删除|模块名: nfctech
类名: NdefTag
方法名 or 属性名: createNdefMessage||nfctech.d.ts| -|访问级别有变化|类名:WifiInfoElem
访问级别:系统API|类名:WifiInfoElem
访问级别:公开API|@ohos.wifiManager.d.ts| -|访问级别有变化|方法名 or 属性名:eid
访问级别:系统API|方法名 or 属性名:eid
访问级别:公开API|@ohos.wifiManager.d.ts| -|访问级别有变化|方法名 or 属性名:content
访问级别:系统API|方法名 or 属性名:content
访问级别:公开API|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.net.connection
类名: connection
方法名 or 属性名: isDefaultNetMetered|@ohos.net.connection.d.ts| +|新增|NA|模块名: ohos.net.connection
类名: connection
方法名 or 属性名: isDefaultNetMetered|@ohos.net.connection.d.ts| +|新增|NA|方法名 or 属性名:cert
函数:cert?: string;|@ohos.net.socket.d.ts| +|新增|NA|方法名 or 属性名:key
函数:key?: string;|@ohos.net.socket.d.ts| +|新增|NA|方法名 or 属性名:NDEF_FORMATABLE
函数:const NDEF_FORMATABLE = 7;|@ohos.nfc.tag.d.ts| +|新增|NA|模块名: ohos.nfc.tag
类名: ndef|@ohos.nfc.tag.d.ts| +|新增|NA|模块名: ohos.nfc.tag
类名: ndef
方法名 or 属性名:makeUriRecord|@ohos.nfc.tag.d.ts| +|新增|NA|模块名: ohos.nfc.tag
类名: ndef
方法名 or 属性名:makeTextRecord|@ohos.nfc.tag.d.ts| +|新增|NA|模块名: ohos.nfc.tag
类名: ndef
方法名 or 属性名:makeMimeRecord|@ohos.nfc.tag.d.ts| +|新增|NA|模块名: ohos.nfc.tag
类名: ndef
方法名 or 属性名:makeExternalRecord|@ohos.nfc.tag.d.ts| +|新增|NA|模块名: ohos.nfc.tag
类名: ndef
方法名 or 属性名:createNdefMessage|@ohos.nfc.tag.d.ts| +|新增|NA|模块名: ohos.nfc.tag
类名: ndef
方法名 or 属性名:createNdefMessage|@ohos.nfc.tag.d.ts| +|新增|NA|模块名: ohos.nfc.tag
类名: ndef
方法名 or 属性名:messageToBytes|@ohos.nfc.tag.d.ts| +|删除|模块名: nfctech
类名: NdefMessage
方法名 or 属性名: makeUriRecord|NA|nfctech.d.ts| +|删除|模块名: nfctech
类名: NdefMessage
方法名 or 属性名: makeTextRecord|NA|nfctech.d.ts| +|删除|模块名: nfctech
类名: NdefMessage
方法名 or 属性名: makeMimeRecord|NA|nfctech.d.ts| +|删除|模块名: nfctech
类名: NdefMessage
方法名 or 属性名: makeExternalRecord|NA|nfctech.d.ts| +|删除|模块名: nfctech
类名: NdefMessage
方法名 or 属性名: messageToBytes|NA|nfctech.d.ts| +|删除|模块名: nfctech
类名: NdefTag
方法名 or 属性名: createNdefMessage|NA|nfctech.d.ts| +|删除|模块名: nfctech
类名: NdefTag
方法名 or 属性名: createNdefMessage|NA|nfctech.d.ts| +|权限有变化|方法名 or 属性名:connect
权限:permission ohos.permission.DISCOVER_BLUETOOTH|方法名 or 属性名:connect
权限:ohos.permission.DISCOVER_BLUETOOTH|@ohos.bluetooth.d.ts| +|权限有变化|方法名 or 属性名:disconnect
权限:permission ohos.permission.DISCOVER_BLUETOOTH|方法名 or 属性名:disconnect
权限:ohos.permission.DISCOVER_BLUETOOTH|@ohos.bluetooth.d.ts| +|权限有变化|方法名 or 属性名:connect
权限:permission ohos.permission.DISCOVER_BLUETOOTH|方法名 or 属性名:connect
权限:ohos.permission.DISCOVER_BLUETOOTH|@ohos.bluetooth.d.ts| +|权限有变化|方法名 or 属性名:disconnect
权限:permission ohos.permission.DISCOVER_BLUETOOTH|方法名 or 属性名:disconnect
权限:ohos.permission.DISCOVER_BLUETOOTH|@ohos.bluetooth.d.ts| +|权限有变化|方法名 or 属性名:connect
权限:permission ohos.permission.DISCOVER_BLUETOOTH|方法名 or 属性名:connect
权限:ohos.permission.DISCOVER_BLUETOOTH|@ohos.bluetooth.d.ts| +|权限有变化|方法名 or 属性名:disconnect
权限:permission ohos.permission.DISCOVER_BLUETOOTH|方法名 or 属性名:disconnect
权限:ohos.permission.DISCOVER_BLUETOOTH|@ohos.bluetooth.d.ts| +|权限有变化|方法名 or 属性名:disconnect
权限:permission ohos.permission.USE_BLUETOOTH|方法名 or 属性名:disconnect
权限:ohos.permission.USE_BLUETOOTH|@ohos.bluetooth.d.ts| +|权限有变化|方法名 or 属性名:setTethering
权限:permission ohos.permission.DISCOVER_BLUETOOTH|方法名 or 属性名:setTethering
权限:ohos.permission.DISCOVER_BLUETOOTH|@ohos.bluetooth.d.ts| |删除(权限)|方法名 or 属性名:connect
权限:ohos.permission.INTERNET|方法名 or 属性名:connect
权限:N/A|@ohos.net.socket.d.ts| |删除(权限)|方法名 or 属性名:connect
权限:ohos.permission.INTERNET|方法名 or 属性名:connect
权限:N/A|@ohos.net.socket.d.ts| |删除(权限)|方法名 or 属性名:send
权限:ohos.permission.INTERNET|方法名 or 属性名:send
权限:N/A|@ohos.net.socket.d.ts| |删除(权限)|方法名 or 属性名:send
权限:ohos.permission.INTERNET|方法名 or 属性名:send
权限:N/A|@ohos.net.socket.d.ts| -|访问级别有变化|类名:WifiInfoElem
访问级别:系统API|类名:WifiInfoElem
访问级别:公开API|@ohos.wifiManager.d.ts| -|访问级别有变化|方法名 or 属性名:eid
访问级别:系统API|方法名 or 属性名:eid
访问级别:公开API|@ohos.wifiManager.d.ts| -|访问级别有变化|方法名 or 属性名:content
访问级别:系统API|方法名 or 属性名:content
访问级别:公开API|@ohos.wifiManager.d.ts| diff --git a/zh-cn/release-notes/api-diff/monthly-202211/js-apidiff-compiler-and-runtime.md b/zh-cn/release-notes/api-diff/monthly-202211/js-apidiff-compiler-and-runtime.md index e45ebdd0ba9af31e327f927cdf65dede908a08b2..f5c7efd998354cb0461ac49eec397dd2c3312cea 100644 --- a/zh-cn/release-notes/api-diff/monthly-202211/js-apidiff-compiler-and-runtime.md +++ b/zh-cn/release-notes/api-diff/monthly-202211/js-apidiff-compiler-and-runtime.md @@ -1,29 +1,29 @@ -| 操作 | 新版本 | 旧版本 | d.ts文件 | +| 操作 | 旧版本 | 新版本 | d.ts文件 | | ---- | ------ | ------ | -------- | -|新增||方法名 or 属性名:forEach
函数:forEach(callbackFn: (value: string, key: string, searchParams: this) => void, thisArg?: Object): void;|@ohos.url.d.ts| -|新增||方法名 or 属性名:replaceAllElements
函数:replaceAllElements(callbackFn: (value: T, index?: number, arrlist?: ArrayList) => T,

thisArg?: Object): void;|@ohos.util.ArrayList.d.ts| -|新增||方法名 or 属性名:forEach
函数:forEach(callbackFn: (value: T, index?: number, arrlist?: ArrayList) => void,

thisArg?: Object): void;|@ohos.util.ArrayList.d.ts| -|新增||方法名 or 属性名:forEach
函数:forEach(callbackFn: (value: T, index?: number, deque?: Deque) => void,

thisArg?: Object): void;|@ohos.util.Deque.d.ts| -|新增||方法名 or 属性名:forEach
函数:forEach(callbackFn: (value?: V, key?: K, map?: HashMap) => void,

thisArg?: Object): void;|@ohos.util.HashMap.d.ts| -|新增||方法名 or 属性名:forEach
函数:forEach(callbackFn: (value?: T, key?: T, set?: HashSet) => void,

thisArg?: Object): void;|@ohos.util.HashSet.d.ts| -|新增||方法名 or 属性名:forEach
函数:forEach(callbackFn: (value?: V, key?: K, map?: LightWeightMap) => void,

thisArg?: Object): void;|@ohos.util.LightWeightMap.d.ts| -|新增||方法名 or 属性名:forEach
函数:forEach(callbackFn: (value?: T, key?: T, set?: LightWeightSet) => void,

thisArg?: Object): void;|@ohos.util.LightWeightSet.d.ts| -|新增||方法名 or 属性名:forEach
函数:forEach(callbackFn: (value: T, index?: number, LinkedList?: LinkedList) => void,

thisArg?: Object): void;|@ohos.util.LinkedList.d.ts| -|新增||方法名 or 属性名:forEach
函数:forEach(callbackFn: (value: T, index?: number, List?: List) => void,

thisArg?: Object): void;|@ohos.util.List.d.ts| -|新增||方法名 or 属性名:replaceAllElements
函数:replaceAllElements(callbackFn: (value: T, index?: number, list?: List) => T,

thisArg?: Object): void;|@ohos.util.List.d.ts| -|新增||方法名 or 属性名:forEach
函数:forEach(callbackFn: (value: T, index?: number, PlainArray?: PlainArray) => void,

thisArg?: Object): void;|@ohos.util.PlainArray.d.ts| -|新增||方法名 or 属性名:forEach
函数:forEach(callbackFn: (value: T, index?: number, Queue?: Queue) => void,

thisArg?: Object): void;|@ohos.util.Queue.d.ts| -|新增||方法名 or 属性名:forEach
函数:forEach(callbackFn: (value: T, index?: number, stack?: Stack) => void,

thisArg?: Object): void;|@ohos.util.Stack.d.ts| -|新增||方法名 or 属性名:forEach
函数:forEach(callbackFn: (value?: V, key?: K, map?: TreeMap) => void,

thisArg?: Object): void;|@ohos.util.TreeMap.d.ts| -|新增||方法名 or 属性名:forEach
函数:forEach(callbackFn: (value?: T, key?: T, set?: TreeSet) => void,

thisArg?: Object): void;|@ohos.util.TreeSet.d.ts| -|新增||方法名 or 属性名:replaceAllElements
函数:replaceAllElements(callbackFn: (value: T, index?: number, vector?: Vector) => T,

thisArg?: Object): void;|@ohos.util.Vector.d.ts| -|新增||方法名 or 属性名:forEach
函数:forEach(callbackFn: (value: T, index?: number, vector?: Vector) => void,

thisArg?: Object): void;|@ohos.util.Vector.d.ts| -|新增||模块名: ohos.worker
类名: MessageEvents|@ohos.worker.d.ts| -|新增||模块名: ohos.worker
类名: MessageEvents
方法名 or 属性名:data|@ohos.worker.d.ts| -|新增||方法名 or 属性名:onmessage
函数:onmessage?: (this: ThreadWorkerGlobalScope, ev: MessageEvents) => void;|@ohos.worker.d.ts| -|新增||方法名 or 属性名:onmessageerror
函数:onmessageerror?: (this: ThreadWorkerGlobalScope, ev: MessageEvents) => void;|@ohos.worker.d.ts| -|新增||方法名 or 属性名:onmessage
函数:onmessage?: (event: MessageEvents) => void;|@ohos.worker.d.ts| -|新增||方法名 or 属性名:onmessageerror
函数:onmessageerror?: (event: MessageEvents) => void;|@ohos.worker.d.ts| +|新增|NA|方法名 or 属性名:forEach
函数:forEach(callbackFn: (value: string, key: string, searchParams: this) => void, thisArg?: Object): void;|@ohos.url.d.ts| +|新增|NA|方法名 or 属性名:replaceAllElements
函数:replaceAllElements(callbackFn: (value: T, index?: number, arrlist?: ArrayList) => T,

thisArg?: Object): void;|@ohos.util.ArrayList.d.ts| +|新增|NA|方法名 or 属性名:forEach
函数:forEach(callbackFn: (value: T, index?: number, arrlist?: ArrayList) => void,

thisArg?: Object): void;|@ohos.util.ArrayList.d.ts| +|新增|NA|方法名 or 属性名:forEach
函数:forEach(callbackFn: (value: T, index?: number, deque?: Deque) => void,

thisArg?: Object): void;|@ohos.util.Deque.d.ts| +|新增|NA|方法名 or 属性名:forEach
函数:forEach(callbackFn: (value?: V, key?: K, map?: HashMap) => void,

thisArg?: Object): void;|@ohos.util.HashMap.d.ts| +|新增|NA|方法名 or 属性名:forEach
函数:forEach(callbackFn: (value?: T, key?: T, set?: HashSet) => void,

thisArg?: Object): void;|@ohos.util.HashSet.d.ts| +|新增|NA|方法名 or 属性名:forEach
函数:forEach(callbackFn: (value?: V, key?: K, map?: LightWeightMap) => void,

thisArg?: Object): void;|@ohos.util.LightWeightMap.d.ts| +|新增|NA|方法名 or 属性名:forEach
函数:forEach(callbackFn: (value?: T, key?: T, set?: LightWeightSet) => void,

thisArg?: Object): void;|@ohos.util.LightWeightSet.d.ts| +|新增|NA|方法名 or 属性名:forEach
函数:forEach(callbackFn: (value: T, index?: number, LinkedList?: LinkedList) => void,

thisArg?: Object): void;|@ohos.util.LinkedList.d.ts| +|新增|NA|方法名 or 属性名:forEach
函数:forEach(callbackFn: (value: T, index?: number, List?: List) => void,

thisArg?: Object): void;|@ohos.util.List.d.ts| +|新增|NA|方法名 or 属性名:replaceAllElements
函数:replaceAllElements(callbackFn: (value: T, index?: number, list?: List) => T,

thisArg?: Object): void;|@ohos.util.List.d.ts| +|新增|NA|方法名 or 属性名:forEach
函数:forEach(callbackFn: (value: T, index?: number, PlainArray?: PlainArray) => void,

thisArg?: Object): void;|@ohos.util.PlainArray.d.ts| +|新增|NA|方法名 or 属性名:forEach
函数:forEach(callbackFn: (value: T, index?: number, Queue?: Queue) => void,

thisArg?: Object): void;|@ohos.util.Queue.d.ts| +|新增|NA|方法名 or 属性名:forEach
函数:forEach(callbackFn: (value: T, index?: number, stack?: Stack) => void,

thisArg?: Object): void;|@ohos.util.Stack.d.ts| +|新增|NA|方法名 or 属性名:forEach
函数:forEach(callbackFn: (value?: V, key?: K, map?: TreeMap) => void,

thisArg?: Object): void;|@ohos.util.TreeMap.d.ts| +|新增|NA|方法名 or 属性名:forEach
函数:forEach(callbackFn: (value?: T, key?: T, set?: TreeSet) => void,

thisArg?: Object): void;|@ohos.util.TreeSet.d.ts| +|新增|NA|方法名 or 属性名:replaceAllElements
函数:replaceAllElements(callbackFn: (value: T, index?: number, vector?: Vector) => T,

thisArg?: Object): void;|@ohos.util.Vector.d.ts| +|新增|NA|方法名 or 属性名:forEach
函数:forEach(callbackFn: (value: T, index?: number, vector?: Vector) => void,

thisArg?: Object): void;|@ohos.util.Vector.d.ts| +|新增|NA|模块名: ohos.worker
类名: MessageEvents|@ohos.worker.d.ts| +|新增|NA|模块名: ohos.worker
类名: MessageEvents
方法名 or 属性名:data|@ohos.worker.d.ts| +|新增|NA|方法名 or 属性名:onmessage
函数:onmessage?: (this: ThreadWorkerGlobalScope, ev: MessageEvents) => void;|@ohos.worker.d.ts| +|新增|NA|方法名 or 属性名:onmessageerror
函数:onmessageerror?: (this: ThreadWorkerGlobalScope, ev: MessageEvents) => void;|@ohos.worker.d.ts| +|新增|NA|方法名 or 属性名:onmessage
函数:onmessage?: (event: MessageEvents) => void;|@ohos.worker.d.ts| +|新增|NA|方法名 or 属性名:onmessageerror
函数:onmessageerror?: (event: MessageEvents) => void;|@ohos.worker.d.ts| |废弃版本有变化|类名:Vector
废弃版本:N/A|类名:Vector
废弃版本:9
代替接口:ohos.util.ArrayList |@ohos.util.Vector.d.ts| |废弃版本有变化|类名:Worker
废弃版本:N/A|类名:Worker
废弃版本:9
代替接口:ohos.worker.ThreadWorker |@ohos.worker.d.ts| |起始版本有变化|类名:Vector
起始版本:|类名:Vector
起始版本:8|@ohos.util.Vector.d.ts| diff --git a/zh-cn/release-notes/api-diff/monthly-202211/js-apidiff-customization.md b/zh-cn/release-notes/api-diff/monthly-202211/js-apidiff-customization.md index c4017e53e993ba61bf69b8a4ec742a07dde3389c..0182b59945893a0bc3c65ae133c576672790a8fa 100644 --- a/zh-cn/release-notes/api-diff/monthly-202211/js-apidiff-customization.md +++ b/zh-cn/release-notes/api-diff/monthly-202211/js-apidiff-customization.md @@ -1,82 +1,82 @@ -| 操作 | 新版本 | 旧版本 | d.ts文件 | +| 操作 | 旧版本 | 新版本 | d.ts文件 | | ---- | ------ | ------ | -------- | -|新增||模块名: ohos.enterprise.adminManager
类名: adminManager|@ohos.enterprise.adminManager.d.ts| -|新增||模块名: ohos.enterprise.adminManager
类名: EnterpriseInfo|@ohos.enterprise.adminManager.d.ts| -|新增||模块名: ohos.enterprise.adminManager
类名: EnterpriseInfo
方法名 or 属性名: name|@ohos.enterprise.adminManager.d.ts| -|新增||模块名: ohos.enterprise.adminManager
类名: EnterpriseInfo
方法名 or 属性名: description|@ohos.enterprise.adminManager.d.ts| -|新增||模块名: ohos.enterprise.adminManager
类名: AdminType|@ohos.enterprise.adminManager.d.ts| -|新增||模块名: ohos.enterprise.adminManager
类名: AdminType
方法名 or 属性名: ADMIN_TYPE_NORMAL|@ohos.enterprise.adminManager.d.ts| -|新增||模块名: ohos.enterprise.adminManager
类名: AdminType
方法名 or 属性名: ADMIN_TYPE_SUPER|@ohos.enterprise.adminManager.d.ts| -|新增||模块名: ohos.enterprise.adminManager
类名: ManagedEvent|@ohos.enterprise.adminManager.d.ts| -|新增||模块名: ohos.enterprise.adminManager
类名: ManagedEvent
方法名 or 属性名: MANAGED_EVENT_BUNDLE_ADDED|@ohos.enterprise.adminManager.d.ts| -|新增||模块名: ohos.enterprise.adminManager
类名: ManagedEvent
方法名 or 属性名: MANAGED_EVENT_BUNDLE_REMOVED|@ohos.enterprise.adminManager.d.ts| -|新增||模块名: ohos.enterprise.adminManager
类名: adminManager
方法名 or 属性名: enableAdmin|@ohos.enterprise.adminManager.d.ts| -|新增||模块名: ohos.enterprise.adminManager
类名: adminManager
方法名 or 属性名: enableAdmin|@ohos.enterprise.adminManager.d.ts| -|新增||模块名: ohos.enterprise.adminManager
类名: adminManager
方法名 or 属性名: enableAdmin|@ohos.enterprise.adminManager.d.ts| -|新增||模块名: ohos.enterprise.adminManager
类名: adminManager
方法名 or 属性名: disableAdmin|@ohos.enterprise.adminManager.d.ts| -|新增||模块名: ohos.enterprise.adminManager
类名: adminManager
方法名 or 属性名: disableAdmin|@ohos.enterprise.adminManager.d.ts| -|新增||模块名: ohos.enterprise.adminManager
类名: adminManager
方法名 or 属性名: disableAdmin|@ohos.enterprise.adminManager.d.ts| -|新增||模块名: ohos.enterprise.adminManager
类名: adminManager
方法名 or 属性名: disableSuperAdmin|@ohos.enterprise.adminManager.d.ts| -|新增||模块名: ohos.enterprise.adminManager
类名: adminManager
方法名 or 属性名: disableSuperAdmin|@ohos.enterprise.adminManager.d.ts| -|新增||模块名: ohos.enterprise.adminManager
类名: adminManager
方法名 or 属性名: isAdminEnabled|@ohos.enterprise.adminManager.d.ts| -|新增||模块名: ohos.enterprise.adminManager
类名: adminManager
方法名 or 属性名: isAdminEnabled|@ohos.enterprise.adminManager.d.ts| -|新增||模块名: ohos.enterprise.adminManager
类名: adminManager
方法名 or 属性名: isAdminEnabled|@ohos.enterprise.adminManager.d.ts| -|新增||模块名: ohos.enterprise.adminManager
类名: adminManager
方法名 or 属性名: getEnterpriseInfo|@ohos.enterprise.adminManager.d.ts| -|新增||模块名: ohos.enterprise.adminManager
类名: adminManager
方法名 or 属性名: getEnterpriseInfo|@ohos.enterprise.adminManager.d.ts| -|新增||模块名: ohos.enterprise.adminManager
类名: adminManager
方法名 or 属性名: setEnterpriseInfo|@ohos.enterprise.adminManager.d.ts| -|新增||模块名: ohos.enterprise.adminManager
类名: adminManager
方法名 or 属性名: setEnterpriseInfo|@ohos.enterprise.adminManager.d.ts| -|新增||模块名: ohos.enterprise.adminManager
类名: adminManager
方法名 or 属性名: isSuperAdmin|@ohos.enterprise.adminManager.d.ts| -|新增||模块名: ohos.enterprise.adminManager
类名: adminManager
方法名 or 属性名: isSuperAdmin|@ohos.enterprise.adminManager.d.ts| -|新增||模块名: ohos.enterprise.adminManager
类名: adminManager
方法名 or 属性名: subscribeManagedEvent|@ohos.enterprise.adminManager.d.ts| -|新增||模块名: ohos.enterprise.adminManager
类名: adminManager
方法名 or 属性名: subscribeManagedEvent|@ohos.enterprise.adminManager.d.ts| -|新增||模块名: ohos.enterprise.adminManager
类名: adminManager
方法名 or 属性名: unsubscribeManagedEvent|@ohos.enterprise.adminManager.d.ts| -|新增||模块名: ohos.enterprise.adminManager
类名: adminManager
方法名 or 属性名: unsubscribeManagedEvent|@ohos.enterprise.adminManager.d.ts| -|新增||模块名: ohos.enterprise.dateTimeManager
类名: dateTimeManager|@ohos.enterprise.dateTimeManager.d.ts| -|新增||模块名: ohos.enterprise.dateTimeManager
类名: dateTimeManager
方法名 or 属性名: setDateTime|@ohos.enterprise.dateTimeManager.d.ts| -|新增||模块名: ohos.enterprise.dateTimeManager
类名: dateTimeManager
方法名 or 属性名: setDateTime|@ohos.enterprise.dateTimeManager.d.ts| -|新增||模块名: ohos.enterprise.EnterpriseAdminExtensionAbility
类名: EnterpriseAdminExtensionAbility|@ohos.enterprise.EnterpriseAdminExtensionAbility.d.ts| -|新增||模块名: ohos.enterprise.EnterpriseAdminExtensionAbility
类名: EnterpriseAdminExtensionAbility
方法名 or 属性名: onAdminEnabled|@ohos.enterprise.EnterpriseAdminExtensionAbility.d.ts| -|新增||模块名: ohos.enterprise.EnterpriseAdminExtensionAbility
类名: EnterpriseAdminExtensionAbility
方法名 or 属性名: onAdminDisabled|@ohos.enterprise.EnterpriseAdminExtensionAbility.d.ts| -|新增||模块名: ohos.enterprise.EnterpriseAdminExtensionAbility
类名: EnterpriseAdminExtensionAbility
方法名 or 属性名: onBundleAdded|@ohos.enterprise.EnterpriseAdminExtensionAbility.d.ts| -|新增||模块名: ohos.enterprise.EnterpriseAdminExtensionAbility
类名: EnterpriseAdminExtensionAbility
方法名 or 属性名: onBundleRemoved|@ohos.enterprise.EnterpriseAdminExtensionAbility.d.ts| -|删除|模块名: ohos.EnterpriseAdminExtensionAbility
类名: EnterpriseAdminExtensionAbility||@ohos.EnterpriseAdminExtensionAbility.d.ts| -|删除|模块名: ohos.EnterpriseAdminExtensionAbility
类名: EnterpriseAdminExtensionAbility
方法名 or 属性名: onAdminEnabled||@ohos.EnterpriseAdminExtensionAbility.d.ts| -|删除|模块名: ohos.EnterpriseAdminExtensionAbility
类名: EnterpriseAdminExtensionAbility
方法名 or 属性名: onAdminDisabled||@ohos.EnterpriseAdminExtensionAbility.d.ts| -|删除|模块名: ohos.EnterpriseAdminExtensionAbility
类名: EnterpriseAdminExtensionAbility
方法名 or 属性名: onBundleAdded||@ohos.EnterpriseAdminExtensionAbility.d.ts| -|删除|模块名: ohos.EnterpriseAdminExtensionAbility
类名: EnterpriseAdminExtensionAbility
方法名 or 属性名: onBundleRemoved||@ohos.EnterpriseAdminExtensionAbility.d.ts| -|删除|模块名: ohos.enterpriseDeviceManager
类名: enterpriseDeviceManager||@ohos.enterpriseDeviceManager.d.ts| -|删除|模块名: ohos.enterpriseDeviceManager
类名: EnterpriseInfo||@ohos.enterpriseDeviceManager.d.ts| -|删除|模块名: ohos.enterpriseDeviceManager
类名: EnterpriseInfo
方法名 or 属性名: name||@ohos.enterpriseDeviceManager.d.ts| -|删除|模块名: ohos.enterpriseDeviceManager
类名: EnterpriseInfo
方法名 or 属性名: description||@ohos.enterpriseDeviceManager.d.ts| -|删除|模块名: ohos.enterpriseDeviceManager
类名: AdminType||@ohos.enterpriseDeviceManager.d.ts| -|删除|模块名: ohos.enterpriseDeviceManager
类名: AdminType
方法名 or 属性名: ADMIN_TYPE_NORMAL||@ohos.enterpriseDeviceManager.d.ts| -|删除|模块名: ohos.enterpriseDeviceManager
类名: AdminType
方法名 or 属性名: ADMIN_TYPE_SUPER||@ohos.enterpriseDeviceManager.d.ts| -|删除|模块名: ohos.enterpriseDeviceManager
类名: ManagedEvent||@ohos.enterpriseDeviceManager.d.ts| -|删除|模块名: ohos.enterpriseDeviceManager
类名: ManagedEvent
方法名 or 属性名: MANAGED_EVENT_BUNDLE_ADDED||@ohos.enterpriseDeviceManager.d.ts| -|删除|模块名: ohos.enterpriseDeviceManager
类名: ManagedEvent
方法名 or 属性名: MANAGED_EVENT_BUNDLE_REMOVED||@ohos.enterpriseDeviceManager.d.ts| -|删除|模块名: ohos.enterpriseDeviceManager
类名: enterpriseDeviceManager
方法名 or 属性名: enableAdmin||@ohos.enterpriseDeviceManager.d.ts| -|删除|模块名: ohos.enterpriseDeviceManager
类名: enterpriseDeviceManager
方法名 or 属性名: enableAdmin||@ohos.enterpriseDeviceManager.d.ts| -|删除|模块名: ohos.enterpriseDeviceManager
类名: enterpriseDeviceManager
方法名 or 属性名: enableAdmin||@ohos.enterpriseDeviceManager.d.ts| -|删除|模块名: ohos.enterpriseDeviceManager
类名: enterpriseDeviceManager
方法名 or 属性名: disableAdmin||@ohos.enterpriseDeviceManager.d.ts| -|删除|模块名: ohos.enterpriseDeviceManager
类名: enterpriseDeviceManager
方法名 or 属性名: disableAdmin||@ohos.enterpriseDeviceManager.d.ts| -|删除|模块名: ohos.enterpriseDeviceManager
类名: enterpriseDeviceManager
方法名 or 属性名: disableAdmin||@ohos.enterpriseDeviceManager.d.ts| -|删除|模块名: ohos.enterpriseDeviceManager
类名: enterpriseDeviceManager
方法名 or 属性名: disableSuperAdmin||@ohos.enterpriseDeviceManager.d.ts| -|删除|模块名: ohos.enterpriseDeviceManager
类名: enterpriseDeviceManager
方法名 or 属性名: disableSuperAdmin||@ohos.enterpriseDeviceManager.d.ts| -|删除|模块名: ohos.enterpriseDeviceManager
类名: enterpriseDeviceManager
方法名 or 属性名: isAdminEnabled||@ohos.enterpriseDeviceManager.d.ts| -|删除|模块名: ohos.enterpriseDeviceManager
类名: enterpriseDeviceManager
方法名 or 属性名: isAdminEnabled||@ohos.enterpriseDeviceManager.d.ts| -|删除|模块名: ohos.enterpriseDeviceManager
类名: enterpriseDeviceManager
方法名 or 属性名: isAdminEnabled||@ohos.enterpriseDeviceManager.d.ts| -|删除|模块名: ohos.enterpriseDeviceManager
类名: enterpriseDeviceManager
方法名 or 属性名: getEnterpriseInfo||@ohos.enterpriseDeviceManager.d.ts| -|删除|模块名: ohos.enterpriseDeviceManager
类名: enterpriseDeviceManager
方法名 or 属性名: getEnterpriseInfo||@ohos.enterpriseDeviceManager.d.ts| -|删除|模块名: ohos.enterpriseDeviceManager
类名: enterpriseDeviceManager
方法名 or 属性名: setEnterpriseInfo||@ohos.enterpriseDeviceManager.d.ts| -|删除|模块名: ohos.enterpriseDeviceManager
类名: enterpriseDeviceManager
方法名 or 属性名: setEnterpriseInfo||@ohos.enterpriseDeviceManager.d.ts| -|删除|模块名: ohos.enterpriseDeviceManager
类名: enterpriseDeviceManager
方法名 or 属性名: isSuperAdmin||@ohos.enterpriseDeviceManager.d.ts| -|删除|模块名: ohos.enterpriseDeviceManager
类名: enterpriseDeviceManager
方法名 or 属性名: isSuperAdmin||@ohos.enterpriseDeviceManager.d.ts| -|删除|模块名: ohos.enterpriseDeviceManager
类名: enterpriseDeviceManager
方法名 or 属性名: getDeviceSettingsManager||@ohos.enterpriseDeviceManager.d.ts| -|删除|模块名: ohos.enterpriseDeviceManager
类名: enterpriseDeviceManager
方法名 or 属性名: getDeviceSettingsManager||@ohos.enterpriseDeviceManager.d.ts| -|删除|模块名: ohos.enterpriseDeviceManager
类名: enterpriseDeviceManager
方法名 or 属性名: subscribeManagedEvent||@ohos.enterpriseDeviceManager.d.ts| -|删除|模块名: ohos.enterpriseDeviceManager
类名: enterpriseDeviceManager
方法名 or 属性名: subscribeManagedEvent||@ohos.enterpriseDeviceManager.d.ts| -|删除|模块名: ohos.enterpriseDeviceManager
类名: enterpriseDeviceManager
方法名 or 属性名: unsubscribeManagedEvent||@ohos.enterpriseDeviceManager.d.ts| -|删除|模块名: ohos.enterpriseDeviceManager
类名: enterpriseDeviceManager
方法名 or 属性名: unsubscribeManagedEvent||@ohos.enterpriseDeviceManager.d.ts| -|删除|模块名: DeviceSettingsManager
类名: DeviceSettingsManager||DeviceSettingsManager.d.ts| -|删除|模块名: DeviceSettingsManager
类名: DeviceSettingsManager
方法名 or 属性名: setDateTime||DeviceSettingsManager.d.ts| -|删除|模块名: DeviceSettingsManager
类名: DeviceSettingsManager
方法名 or 属性名: setDateTime||DeviceSettingsManager.d.ts| +|新增|NA|模块名: ohos.enterprise.adminManager
类名: adminManager|@ohos.enterprise.adminManager.d.ts| +|新增|NA|模块名: ohos.enterprise.adminManager
类名: EnterpriseInfo|@ohos.enterprise.adminManager.d.ts| +|新增|NA|模块名: ohos.enterprise.adminManager
类名: EnterpriseInfo
方法名 or 属性名: name|@ohos.enterprise.adminManager.d.ts| +|新增|NA|模块名: ohos.enterprise.adminManager
类名: EnterpriseInfo
方法名 or 属性名: description|@ohos.enterprise.adminManager.d.ts| +|新增|NA|模块名: ohos.enterprise.adminManager
类名: AdminType|@ohos.enterprise.adminManager.d.ts| +|新增|NA|模块名: ohos.enterprise.adminManager
类名: AdminType
方法名 or 属性名: ADMIN_TYPE_NORMAL|@ohos.enterprise.adminManager.d.ts| +|新增|NA|模块名: ohos.enterprise.adminManager
类名: AdminType
方法名 or 属性名: ADMIN_TYPE_SUPER|@ohos.enterprise.adminManager.d.ts| +|新增|NA|模块名: ohos.enterprise.adminManager
类名: ManagedEvent|@ohos.enterprise.adminManager.d.ts| +|新增|NA|模块名: ohos.enterprise.adminManager
类名: ManagedEvent
方法名 or 属性名: MANAGED_EVENT_BUNDLE_ADDED|@ohos.enterprise.adminManager.d.ts| +|新增|NA|模块名: ohos.enterprise.adminManager
类名: ManagedEvent
方法名 or 属性名: MANAGED_EVENT_BUNDLE_REMOVED|@ohos.enterprise.adminManager.d.ts| +|新增|NA|模块名: ohos.enterprise.adminManager
类名: adminManager
方法名 or 属性名: enableAdmin|@ohos.enterprise.adminManager.d.ts| +|新增|NA|模块名: ohos.enterprise.adminManager
类名: adminManager
方法名 or 属性名: enableAdmin|@ohos.enterprise.adminManager.d.ts| +|新增|NA|模块名: ohos.enterprise.adminManager
类名: adminManager
方法名 or 属性名: enableAdmin|@ohos.enterprise.adminManager.d.ts| +|新增|NA|模块名: ohos.enterprise.adminManager
类名: adminManager
方法名 or 属性名: disableAdmin|@ohos.enterprise.adminManager.d.ts| +|新增|NA|模块名: ohos.enterprise.adminManager
类名: adminManager
方法名 or 属性名: disableAdmin|@ohos.enterprise.adminManager.d.ts| +|新增|NA|模块名: ohos.enterprise.adminManager
类名: adminManager
方法名 or 属性名: disableAdmin|@ohos.enterprise.adminManager.d.ts| +|新增|NA|模块名: ohos.enterprise.adminManager
类名: adminManager
方法名 or 属性名: disableSuperAdmin|@ohos.enterprise.adminManager.d.ts| +|新增|NA|模块名: ohos.enterprise.adminManager
类名: adminManager
方法名 or 属性名: disableSuperAdmin|@ohos.enterprise.adminManager.d.ts| +|新增|NA|模块名: ohos.enterprise.adminManager
类名: adminManager
方法名 or 属性名: isAdminEnabled|@ohos.enterprise.adminManager.d.ts| +|新增|NA|模块名: ohos.enterprise.adminManager
类名: adminManager
方法名 or 属性名: isAdminEnabled|@ohos.enterprise.adminManager.d.ts| +|新增|NA|模块名: ohos.enterprise.adminManager
类名: adminManager
方法名 or 属性名: isAdminEnabled|@ohos.enterprise.adminManager.d.ts| +|新增|NA|模块名: ohos.enterprise.adminManager
类名: adminManager
方法名 or 属性名: getEnterpriseInfo|@ohos.enterprise.adminManager.d.ts| +|新增|NA|模块名: ohos.enterprise.adminManager
类名: adminManager
方法名 or 属性名: getEnterpriseInfo|@ohos.enterprise.adminManager.d.ts| +|新增|NA|模块名: ohos.enterprise.adminManager
类名: adminManager
方法名 or 属性名: setEnterpriseInfo|@ohos.enterprise.adminManager.d.ts| +|新增|NA|模块名: ohos.enterprise.adminManager
类名: adminManager
方法名 or 属性名: setEnterpriseInfo|@ohos.enterprise.adminManager.d.ts| +|新增|NA|模块名: ohos.enterprise.adminManager
类名: adminManager
方法名 or 属性名: isSuperAdmin|@ohos.enterprise.adminManager.d.ts| +|新增|NA|模块名: ohos.enterprise.adminManager
类名: adminManager
方法名 or 属性名: isSuperAdmin|@ohos.enterprise.adminManager.d.ts| +|新增|NA|模块名: ohos.enterprise.adminManager
类名: adminManager
方法名 or 属性名: subscribeManagedEvent|@ohos.enterprise.adminManager.d.ts| +|新增|NA|模块名: ohos.enterprise.adminManager
类名: adminManager
方法名 or 属性名: subscribeManagedEvent|@ohos.enterprise.adminManager.d.ts| +|新增|NA|模块名: ohos.enterprise.adminManager
类名: adminManager
方法名 or 属性名: unsubscribeManagedEvent|@ohos.enterprise.adminManager.d.ts| +|新增|NA|模块名: ohos.enterprise.adminManager
类名: adminManager
方法名 or 属性名: unsubscribeManagedEvent|@ohos.enterprise.adminManager.d.ts| +|新增|NA|模块名: ohos.enterprise.dateTimeManager
类名: dateTimeManager|@ohos.enterprise.dateTimeManager.d.ts| +|新增|NA|模块名: ohos.enterprise.dateTimeManager
类名: dateTimeManager
方法名 or 属性名: setDateTime|@ohos.enterprise.dateTimeManager.d.ts| +|新增|NA|模块名: ohos.enterprise.dateTimeManager
类名: dateTimeManager
方法名 or 属性名: setDateTime|@ohos.enterprise.dateTimeManager.d.ts| +|新增|NA|模块名: ohos.enterprise.EnterpriseAdminExtensionAbility
类名: EnterpriseAdminExtensionAbility|@ohos.enterprise.EnterpriseAdminExtensionAbility.d.ts| +|新增|NA|模块名: ohos.enterprise.EnterpriseAdminExtensionAbility
类名: EnterpriseAdminExtensionAbility
方法名 or 属性名: onAdminEnabled|@ohos.enterprise.EnterpriseAdminExtensionAbility.d.ts| +|新增|NA|模块名: ohos.enterprise.EnterpriseAdminExtensionAbility
类名: EnterpriseAdminExtensionAbility
方法名 or 属性名: onAdminDisabled|@ohos.enterprise.EnterpriseAdminExtensionAbility.d.ts| +|新增|NA|模块名: ohos.enterprise.EnterpriseAdminExtensionAbility
类名: EnterpriseAdminExtensionAbility
方法名 or 属性名: onBundleAdded|@ohos.enterprise.EnterpriseAdminExtensionAbility.d.ts| +|新增|NA|模块名: ohos.enterprise.EnterpriseAdminExtensionAbility
类名: EnterpriseAdminExtensionAbility
方法名 or 属性名: onBundleRemoved|@ohos.enterprise.EnterpriseAdminExtensionAbility.d.ts| +|删除|模块名: ohos.EnterpriseAdminExtensionAbility
类名: EnterpriseAdminExtensionAbility|NA|@ohos.EnterpriseAdminExtensionAbility.d.ts| +|删除|模块名: ohos.EnterpriseAdminExtensionAbility
类名: EnterpriseAdminExtensionAbility
方法名 or 属性名: onAdminEnabled|NA|@ohos.EnterpriseAdminExtensionAbility.d.ts| +|删除|模块名: ohos.EnterpriseAdminExtensionAbility
类名: EnterpriseAdminExtensionAbility
方法名 or 属性名: onAdminDisabled|NA|@ohos.EnterpriseAdminExtensionAbility.d.ts| +|删除|模块名: ohos.EnterpriseAdminExtensionAbility
类名: EnterpriseAdminExtensionAbility
方法名 or 属性名: onBundleAdded|NA|@ohos.EnterpriseAdminExtensionAbility.d.ts| +|删除|模块名: ohos.EnterpriseAdminExtensionAbility
类名: EnterpriseAdminExtensionAbility
方法名 or 属性名: onBundleRemoved|NA|@ohos.EnterpriseAdminExtensionAbility.d.ts| +|删除|模块名: ohos.enterpriseDeviceManager
类名: enterpriseDeviceManager|NA|@ohos.enterpriseDeviceManager.d.ts| +|删除|模块名: ohos.enterpriseDeviceManager
类名: EnterpriseInfo|NA|@ohos.enterpriseDeviceManager.d.ts| +|删除|模块名: ohos.enterpriseDeviceManager
类名: EnterpriseInfo
方法名 or 属性名: name|NA|@ohos.enterpriseDeviceManager.d.ts| +|删除|模块名: ohos.enterpriseDeviceManager
类名: EnterpriseInfo
方法名 or 属性名: description|NA|@ohos.enterpriseDeviceManager.d.ts| +|删除|模块名: ohos.enterpriseDeviceManager
类名: AdminType|NA|@ohos.enterpriseDeviceManager.d.ts| +|删除|模块名: ohos.enterpriseDeviceManager
类名: AdminType
方法名 or 属性名: ADMIN_TYPE_NORMAL|NA|@ohos.enterpriseDeviceManager.d.ts| +|删除|模块名: ohos.enterpriseDeviceManager
类名: AdminType
方法名 or 属性名: ADMIN_TYPE_SUPER|NA|@ohos.enterpriseDeviceManager.d.ts| +|删除|模块名: ohos.enterpriseDeviceManager
类名: ManagedEvent|NA|@ohos.enterpriseDeviceManager.d.ts| +|删除|模块名: ohos.enterpriseDeviceManager
类名: ManagedEvent
方法名 or 属性名: MANAGED_EVENT_BUNDLE_ADDED|NA|@ohos.enterpriseDeviceManager.d.ts| +|删除|模块名: ohos.enterpriseDeviceManager
类名: ManagedEvent
方法名 or 属性名: MANAGED_EVENT_BUNDLE_REMOVED|NA|@ohos.enterpriseDeviceManager.d.ts| +|删除|模块名: ohos.enterpriseDeviceManager
类名: enterpriseDeviceManager
方法名 or 属性名: enableAdmin|NA|@ohos.enterpriseDeviceManager.d.ts| +|删除|模块名: ohos.enterpriseDeviceManager
类名: enterpriseDeviceManager
方法名 or 属性名: enableAdmin|NA|@ohos.enterpriseDeviceManager.d.ts| +|删除|模块名: ohos.enterpriseDeviceManager
类名: enterpriseDeviceManager
方法名 or 属性名: enableAdmin|NA|@ohos.enterpriseDeviceManager.d.ts| +|删除|模块名: ohos.enterpriseDeviceManager
类名: enterpriseDeviceManager
方法名 or 属性名: disableAdmin|NA|@ohos.enterpriseDeviceManager.d.ts| +|删除|模块名: ohos.enterpriseDeviceManager
类名: enterpriseDeviceManager
方法名 or 属性名: disableAdmin|NA|@ohos.enterpriseDeviceManager.d.ts| +|删除|模块名: ohos.enterpriseDeviceManager
类名: enterpriseDeviceManager
方法名 or 属性名: disableAdmin|NA|@ohos.enterpriseDeviceManager.d.ts| +|删除|模块名: ohos.enterpriseDeviceManager
类名: enterpriseDeviceManager
方法名 or 属性名: disableSuperAdmin|NA|@ohos.enterpriseDeviceManager.d.ts| +|删除|模块名: ohos.enterpriseDeviceManager
类名: enterpriseDeviceManager
方法名 or 属性名: disableSuperAdmin|NA|@ohos.enterpriseDeviceManager.d.ts| +|删除|模块名: ohos.enterpriseDeviceManager
类名: enterpriseDeviceManager
方法名 or 属性名: isAdminEnabled|NA|@ohos.enterpriseDeviceManager.d.ts| +|删除|模块名: ohos.enterpriseDeviceManager
类名: enterpriseDeviceManager
方法名 or 属性名: isAdminEnabled|NA|@ohos.enterpriseDeviceManager.d.ts| +|删除|模块名: ohos.enterpriseDeviceManager
类名: enterpriseDeviceManager
方法名 or 属性名: isAdminEnabled|NA|@ohos.enterpriseDeviceManager.d.ts| +|删除|模块名: ohos.enterpriseDeviceManager
类名: enterpriseDeviceManager
方法名 or 属性名: getEnterpriseInfo|NA|@ohos.enterpriseDeviceManager.d.ts| +|删除|模块名: ohos.enterpriseDeviceManager
类名: enterpriseDeviceManager
方法名 or 属性名: getEnterpriseInfo|NA|@ohos.enterpriseDeviceManager.d.ts| +|删除|模块名: ohos.enterpriseDeviceManager
类名: enterpriseDeviceManager
方法名 or 属性名: setEnterpriseInfo|NA|@ohos.enterpriseDeviceManager.d.ts| +|删除|模块名: ohos.enterpriseDeviceManager
类名: enterpriseDeviceManager
方法名 or 属性名: setEnterpriseInfo|NA|@ohos.enterpriseDeviceManager.d.ts| +|删除|模块名: ohos.enterpriseDeviceManager
类名: enterpriseDeviceManager
方法名 or 属性名: isSuperAdmin|NA|@ohos.enterpriseDeviceManager.d.ts| +|删除|模块名: ohos.enterpriseDeviceManager
类名: enterpriseDeviceManager
方法名 or 属性名: isSuperAdmin|NA|@ohos.enterpriseDeviceManager.d.ts| +|删除|模块名: ohos.enterpriseDeviceManager
类名: enterpriseDeviceManager
方法名 or 属性名: getDeviceSettingsManager|NA|@ohos.enterpriseDeviceManager.d.ts| +|删除|模块名: ohos.enterpriseDeviceManager
类名: enterpriseDeviceManager
方法名 or 属性名: getDeviceSettingsManager|NA|@ohos.enterpriseDeviceManager.d.ts| +|删除|模块名: ohos.enterpriseDeviceManager
类名: enterpriseDeviceManager
方法名 or 属性名: subscribeManagedEvent|NA|@ohos.enterpriseDeviceManager.d.ts| +|删除|模块名: ohos.enterpriseDeviceManager
类名: enterpriseDeviceManager
方法名 or 属性名: subscribeManagedEvent|NA|@ohos.enterpriseDeviceManager.d.ts| +|删除|模块名: ohos.enterpriseDeviceManager
类名: enterpriseDeviceManager
方法名 or 属性名: unsubscribeManagedEvent|NA|@ohos.enterpriseDeviceManager.d.ts| +|删除|模块名: ohos.enterpriseDeviceManager
类名: enterpriseDeviceManager
方法名 or 属性名: unsubscribeManagedEvent|NA|@ohos.enterpriseDeviceManager.d.ts| +|删除|模块名: DeviceSettingsManager
类名: DeviceSettingsManager|NA|DeviceSettingsManager.d.ts| +|删除|模块名: DeviceSettingsManager
类名: DeviceSettingsManager
方法名 or 属性名: setDateTime|NA|DeviceSettingsManager.d.ts| +|删除|模块名: DeviceSettingsManager
类名: DeviceSettingsManager
方法名 or 属性名: setDateTime|NA|DeviceSettingsManager.d.ts| diff --git a/zh-cn/release-notes/api-diff/monthly-202211/js-apidiff-dfx.md b/zh-cn/release-notes/api-diff/monthly-202211/js-apidiff-dfx.md index 43152b9edc40d38e7c7890bb98ccbb59757d3813..4c6dc17be48506ce9532ed6ee9c2da16b74c945c 100644 --- a/zh-cn/release-notes/api-diff/monthly-202211/js-apidiff-dfx.md +++ b/zh-cn/release-notes/api-diff/monthly-202211/js-apidiff-dfx.md @@ -1,4 +1,4 @@ -| 操作 | 新版本 | 旧版本 | d.ts文件 | +| 操作 | 旧版本 | 新版本 | d.ts文件 | | ---- | ------ | ------ | -------- | |废弃版本有变化|类名:bytrace
废弃版本:N/A|类名:bytrace
废弃版本:8
代替接口:ohos.hiTraceMeter |@ohos.bytrace.d.ts| |废弃版本有变化|方法名 or 属性名:startTrace
废弃版本:N/A|方法名 or 属性名:startTrace
废弃版本:8
代替接口:ohos.hiTraceMeter.startTrace |@ohos.bytrace.d.ts| diff --git a/zh-cn/release-notes/api-diff/monthly-202211/js-apidiff-distributed-data.md b/zh-cn/release-notes/api-diff/monthly-202211/js-apidiff-distributed-data.md index 713314ddab05c131e0d6ec150f7235d314560067..488f6d87ea7379cb6f1e52023ceab207b2ef4a0f 100644 --- a/zh-cn/release-notes/api-diff/monthly-202211/js-apidiff-distributed-data.md +++ b/zh-cn/release-notes/api-diff/monthly-202211/js-apidiff-distributed-data.md @@ -1,24 +1,22 @@ -| 操作 | 新版本 | 旧版本 | d.ts文件 | +| 操作 | 旧版本 | 新版本 | d.ts文件 | | ---- | ------ | ------ | -------- | -|新增||模块名: ohos.data.distributedData
类名: KVStore
方法名 or 属性名:off_syncComplete|@ohos.data.distributedData.d.ts| -|新增||模块名: ohos.data.distributedData
类名: SingleKVStore
方法名 or 属性名:on_dataChange|@ohos.data.distributedData.d.ts| -|新增||模块名: ohos.data.distributedData
类名: SingleKVStore
方法名 or 属性名:off_dataChange|@ohos.data.distributedData.d.ts| -|新增||模块名:ohos.data.distributedData
类名:DeviceKVStore
方法名 or 属性名:on_dataChange|@ohos.data.distributedData.d.ts| -|新增||模块名:ohos.data.distributedData
类名:DeviceKVStore
方法名 or 属性名:off_dataChange|@ohos.data.distributedData.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法名 or 属性名:get|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法名 or 属性名:get|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法名 or 属性名:getEntries|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法名 or 属性名:getEntries|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法名 or 属性名:getEntries|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法名 or 属性名:getEntries|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法名 or 属性名:getResultSet|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法名 or 属性名:getResultSet|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法名 or 属性名:getResultSet|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法名 or 属性名:getResultSet|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法名 or 属性名:getResultSet|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法名 or 属性名:getResultSet|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法名 or 属性名:getResultSize|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法名 or 属性名:getResultSize|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedData
类名: KVStore
方法名 or 属性名:off_syncComplete|@ohos.data.distributedData.d.ts| +|新增|NA|模块名: ohos.data.distributedData
类名: SingleKVStore
方法名 or 属性名:on_dataChange|@ohos.data.distributedData.d.ts| +|新增|NA|模块名: ohos.data.distributedData
类名: SingleKVStore
方法名 or 属性名:off_dataChange|@ohos.data.distributedData.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法名 or 属性名:get|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法名 or 属性名:get|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法名 or 属性名:getEntries|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法名 or 属性名:getEntries|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法名 or 属性名:getEntries|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法名 or 属性名:getEntries|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法名 or 属性名:getResultSet|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法名 or 属性名:getResultSet|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法名 or 属性名:getResultSet|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法名 or 属性名:getResultSet|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法名 or 属性名:getResultSet|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法名 or 属性名:getResultSet|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法名 or 属性名:getResultSize|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法名 or 属性名:getResultSize|@ohos.data.distributedKVStore.d.ts| |访问级别有变化|方法名 or 属性名:update
访问级别:公开API|方法名 or 属性名:update
访问级别:系统API|@ohos.data.rdb.d.ts| |访问级别有变化|方法名 or 属性名:update
访问级别:公开API|方法名 or 属性名:update
访问级别:系统API|@ohos.data.rdb.d.ts| |访问级别有变化|方法名 or 属性名:delete
访问级别:公开API|方法名 or 属性名:delete
访问级别:系统API|@ohos.data.rdb.d.ts| diff --git a/zh-cn/release-notes/api-diff/monthly-202211/js-apidiff-file-management.md b/zh-cn/release-notes/api-diff/monthly-202211/js-apidiff-file-management.md index 82055dc4ea3e1b125111f76167fe99dd2fe0bd7a..2d9fb10876d98915f0b1f00817c697a84ec88dd8 100644 --- a/zh-cn/release-notes/api-diff/monthly-202211/js-apidiff-file-management.md +++ b/zh-cn/release-notes/api-diff/monthly-202211/js-apidiff-file-management.md @@ -1,54 +1,54 @@ -| 操作 | 新版本 | 旧版本 | d.ts文件 | +| 操作 | 旧版本 | 新版本 | d.ts文件 | | ---- | ------ | ------ | -------- | -|新增||模块名: ohos.file.fs
类名: fileIo|@ohos.file.fs.d.ts| -|新增||模块名: ohos.file.fs
类名: OpenMode|@ohos.file.fs.d.ts| -|新增||模块名: ohos.file.fs
类名: OpenMode
方法名 or 属性名: READ_ONLY|@ohos.file.fs.d.ts| -|新增||模块名: ohos.file.fs
类名: OpenMode
方法名 or 属性名: WRITE_ONLY|@ohos.file.fs.d.ts| -|新增||模块名: ohos.file.fs
类名: OpenMode
方法名 or 属性名: READ_WRITE|@ohos.file.fs.d.ts| -|新增||模块名: ohos.file.fs
类名: OpenMode
方法名 or 属性名: CREATE|@ohos.file.fs.d.ts| -|新增||模块名: ohos.file.fs
类名: OpenMode
方法名 or 属性名: TRUNC|@ohos.file.fs.d.ts| -|新增||模块名: ohos.file.fs
类名: OpenMode
方法名 or 属性名: APPEND|@ohos.file.fs.d.ts| -|新增||模块名: ohos.file.fs
类名: OpenMode
方法名 or 属性名: NONBLOCK|@ohos.file.fs.d.ts| -|新增||模块名: ohos.file.fs
类名: OpenMode
方法名 or 属性名: DIR|@ohos.file.fs.d.ts| -|新增||模块名: ohos.file.fs
类名: OpenMode
方法名 or 属性名: NOFOLLOW|@ohos.file.fs.d.ts| -|新增||模块名: ohos.file.fs
类名: OpenMode
方法名 or 属性名: SYNC|@ohos.file.fs.d.ts| -|新增||模块名: ohos.file.fs
类名: fileIo
方法名 or 属性名: open|@ohos.file.fs.d.ts| -|新增||模块名: ohos.file.fs
类名: fileIo
方法名 or 属性名: open|@ohos.file.fs.d.ts| -|新增||模块名: ohos.file.fs
类名: fileIo
方法名 or 属性名: open|@ohos.file.fs.d.ts| -|新增||模块名: ohos.file.fs
类名: fileIo
方法名 or 属性名: openSync|@ohos.file.fs.d.ts| -|新增||模块名: ohos.file.fs
类名: fileIo
方法名 or 属性名: read|@ohos.file.fs.d.ts| -|新增||模块名: ohos.file.fs
类名: fileIo
方法名 or 属性名: read|@ohos.file.fs.d.ts| -|新增||模块名: ohos.file.fs
类名: fileIo
方法名 or 属性名: read|@ohos.file.fs.d.ts| -|新增||模块名: ohos.file.fs
类名: fileIo
方法名 or 属性名: readSync|@ohos.file.fs.d.ts| -|新增||模块名: ohos.file.fs
类名: fileIo
方法名 or 属性名: stat|@ohos.file.fs.d.ts| -|新增||模块名: ohos.file.fs
类名: fileIo
方法名 or 属性名: stat|@ohos.file.fs.d.ts| -|新增||模块名: ohos.file.fs
类名: fileIo
方法名 or 属性名: statSync|@ohos.file.fs.d.ts| -|新增||模块名: ohos.file.fs
类名: fileIo
方法名 or 属性名: truncate|@ohos.file.fs.d.ts| -|新增||模块名: ohos.file.fs
类名: fileIo
方法名 or 属性名: truncate|@ohos.file.fs.d.ts| -|新增||模块名: ohos.file.fs
类名: fileIo
方法名 or 属性名: truncate|@ohos.file.fs.d.ts| -|新增||模块名: ohos.file.fs
类名: fileIo
方法名 or 属性名: truncateSync|@ohos.file.fs.d.ts| -|新增||模块名: ohos.file.fs
类名: fileIo
方法名 or 属性名: write|@ohos.file.fs.d.ts| -|新增||模块名: ohos.file.fs
类名: fileIo
方法名 or 属性名: write|@ohos.file.fs.d.ts| -|新增||模块名: ohos.file.fs
类名: fileIo
方法名 or 属性名: write|@ohos.file.fs.d.ts| -|新增||模块名: ohos.file.fs
类名: fileIo
方法名 or 属性名: writeSync|@ohos.file.fs.d.ts| -|新增||模块名: ohos.file.fs
类名: File|@ohos.file.fs.d.ts| -|新增||模块名: ohos.file.fs
类名: File
方法名 or 属性名: fd|@ohos.file.fs.d.ts| -|新增||模块名: ohos.file.fs
类名: Stat|@ohos.file.fs.d.ts| -|新增||模块名: ohos.file.fs
类名: Stat
方法名 or 属性名: ino|@ohos.file.fs.d.ts| -|新增||模块名: ohos.file.fs
类名: Stat
方法名 or 属性名: mode|@ohos.file.fs.d.ts| -|新增||模块名: ohos.file.fs
类名: Stat
方法名 or 属性名: uid|@ohos.file.fs.d.ts| -|新增||模块名: ohos.file.fs
类名: Stat
方法名 or 属性名: gid|@ohos.file.fs.d.ts| -|新增||模块名: ohos.file.fs
类名: Stat
方法名 or 属性名: size|@ohos.file.fs.d.ts| -|新增||模块名: ohos.file.fs
类名: Stat
方法名 or 属性名: atime|@ohos.file.fs.d.ts| -|新增||模块名: ohos.file.fs
类名: Stat
方法名 or 属性名: mtime|@ohos.file.fs.d.ts| -|新增||模块名: ohos.file.fs
类名: Stat
方法名 or 属性名: ctime|@ohos.file.fs.d.ts| -|新增||模块名: ohos.file.fs
类名: Stat
方法名 or 属性名: isBlockDevice|@ohos.file.fs.d.ts| -|新增||模块名: ohos.file.fs
类名: Stat
方法名 or 属性名: isCharacterDevice|@ohos.file.fs.d.ts| -|新增||模块名: ohos.file.fs
类名: Stat
方法名 or 属性名: isDirectory|@ohos.file.fs.d.ts| -|新增||模块名: ohos.file.fs
类名: Stat
方法名 or 属性名: isFIFO|@ohos.file.fs.d.ts| -|新增||模块名: ohos.file.fs
类名: Stat
方法名 or 属性名: isFile|@ohos.file.fs.d.ts| -|新增||模块名: ohos.file.fs
类名: Stat
方法名 or 属性名: isSocket|@ohos.file.fs.d.ts| -|新增||模块名: ohos.file.fs
类名: Stat
方法名 or 属性名: isSymbolicLink|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: fileIo|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: OpenMode|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: OpenMode
方法名 or 属性名: READ_ONLY|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: OpenMode
方法名 or 属性名: WRITE_ONLY|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: OpenMode
方法名 or 属性名: READ_WRITE|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: OpenMode
方法名 or 属性名: CREATE|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: OpenMode
方法名 or 属性名: TRUNC|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: OpenMode
方法名 or 属性名: APPEND|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: OpenMode
方法名 or 属性名: NONBLOCK|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: OpenMode
方法名 or 属性名: DIR|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: OpenMode
方法名 or 属性名: NOFOLLOW|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: OpenMode
方法名 or 属性名: SYNC|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: fileIo
方法名 or 属性名: open|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: fileIo
方法名 or 属性名: open|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: fileIo
方法名 or 属性名: open|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: fileIo
方法名 or 属性名: openSync|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: fileIo
方法名 or 属性名: read|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: fileIo
方法名 or 属性名: read|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: fileIo
方法名 or 属性名: read|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: fileIo
方法名 or 属性名: readSync|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: fileIo
方法名 or 属性名: stat|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: fileIo
方法名 or 属性名: stat|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: fileIo
方法名 or 属性名: statSync|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: fileIo
方法名 or 属性名: truncate|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: fileIo
方法名 or 属性名: truncate|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: fileIo
方法名 or 属性名: truncate|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: fileIo
方法名 or 属性名: truncateSync|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: fileIo
方法名 or 属性名: write|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: fileIo
方法名 or 属性名: write|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: fileIo
方法名 or 属性名: write|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: fileIo
方法名 or 属性名: writeSync|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: File|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: File
方法名 or 属性名: fd|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: Stat|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: Stat
方法名 or 属性名: ino|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: Stat
方法名 or 属性名: mode|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: Stat
方法名 or 属性名: uid|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: Stat
方法名 or 属性名: gid|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: Stat
方法名 or 属性名: size|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: Stat
方法名 or 属性名: atime|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: Stat
方法名 or 属性名: mtime|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: Stat
方法名 or 属性名: ctime|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: Stat
方法名 or 属性名: isBlockDevice|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: Stat
方法名 or 属性名: isCharacterDevice|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: Stat
方法名 or 属性名: isDirectory|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: Stat
方法名 or 属性名: isFIFO|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: Stat
方法名 or 属性名: isFile|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: Stat
方法名 or 属性名: isSocket|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: Stat
方法名 or 属性名: isSymbolicLink|@ohos.file.fs.d.ts| |废弃版本有变化|方法名 or 属性名:ftruncate
废弃版本:N/A|方法名 or 属性名:ftruncate
废弃版本:9
代替接口:ohos.file.fs.truncate |@ohos.fileio.d.ts| |废弃版本有变化|方法名 or 属性名:ftruncate
废弃版本:N/A|方法名 or 属性名:ftruncate
废弃版本:9|@ohos.fileio.d.ts| |废弃版本有变化|方法名 or 属性名:ftruncate
废弃版本:N/A|方法名 or 属性名:ftruncate
废弃版本:9|@ohos.fileio.d.ts| diff --git a/zh-cn/release-notes/api-diff/monthly-202211/js-apidiff-misc.md b/zh-cn/release-notes/api-diff/monthly-202211/js-apidiff-misc.md index 162111b6d0379c2aab193138eb9269df48293ab9..2bf3384673ef46b8ab01b7f2ade4be94ccd0fbd8 100644 --- a/zh-cn/release-notes/api-diff/monthly-202211/js-apidiff-misc.md +++ b/zh-cn/release-notes/api-diff/monthly-202211/js-apidiff-misc.md @@ -1,16 +1,15 @@ -| 操作 | 新版本 | 旧版本 | d.ts文件 | +| 操作 | 旧版本 | 新版本 | d.ts文件 | | ---- | ------ | ------ | -------- | -|新增||模块名:ohos.inputmethodengine
类名:InputMethodAbility
方法名 or 属性名:off_setSubtype|@ohos.inputmethodengine.d.ts| -|删除|模块名: ohos.inputmethod
类名: inputMethod
方法名 or 属性名: EXCEPTION_PERMISSION||@ohos.inputmethod.d.ts| -|删除|模块名: ohos.inputmethod
类名: inputMethod
方法名 or 属性名: EXCEPTION_PARAMCHECK||@ohos.inputmethod.d.ts| -|删除|模块名: ohos.inputmethod
类名: inputMethod
方法名 or 属性名: EXCEPTION_UNSUPPORTED||@ohos.inputmethod.d.ts| -|删除|模块名: ohos.inputmethod
类名: inputMethod
方法名 or 属性名: EXCEPTION_PACKAGEMANAGER||@ohos.inputmethod.d.ts| -|删除|模块名: ohos.inputmethod
类名: inputMethod
方法名 or 属性名: EXCEPTION_IMENGINE||@ohos.inputmethod.d.ts| -|删除|模块名: ohos.inputmethod
类名: inputMethod
方法名 or 属性名: EXCEPTION_IMCLIENT||@ohos.inputmethod.d.ts| -|删除|模块名: ohos.inputmethod
类名: inputMethod
方法名 or 属性名: EXCEPTION_KEYEVENT||@ohos.inputmethod.d.ts| -|删除|模块名: ohos.inputmethod
类名: inputMethod
方法名 or 属性名: EXCEPTION_CONFPERSIST||@ohos.inputmethod.d.ts| -|删除|模块名: ohos.inputmethod
类名: inputMethod
方法名 or 属性名: EXCEPTION_CONTROLLER||@ohos.inputmethod.d.ts| -|删除|模块名: ohos.inputmethod
类名: inputMethod
方法名 or 属性名: EXCEPTION_SETTINGS||@ohos.inputmethod.d.ts| -|删除|模块名: ohos.inputmethod
类名: inputMethod
方法名 or 属性名: EXCEPTION_IMMS||@ohos.inputmethod.d.ts| -|删除|模块名: ohos.inputmethod
类名: inputMethod
方法名 or 属性名: EXCEPTION_OTHERS||@ohos.inputmethod.d.ts| -|删除|模块名:ohos.inputmethodengine
类名:InputMethodAbility
方法名 or 属性名:off||@ohos.inputmethodengine.d.ts| +|删除|模块名: ohos.inputmethod
类名: inputMethod
方法名 or 属性名: EXCEPTION_PERMISSION|NA|@ohos.inputmethod.d.ts| +|删除|模块名: ohos.inputmethod
类名: inputMethod
方法名 or 属性名: EXCEPTION_PARAMCHECK|NA|@ohos.inputmethod.d.ts| +|删除|模块名: ohos.inputmethod
类名: inputMethod
方法名 or 属性名: EXCEPTION_UNSUPPORTED|NA|@ohos.inputmethod.d.ts| +|删除|模块名: ohos.inputmethod
类名: inputMethod
方法名 or 属性名: EXCEPTION_PACKAGEMANAGER|NA|@ohos.inputmethod.d.ts| +|删除|模块名: ohos.inputmethod
类名: inputMethod
方法名 or 属性名: EXCEPTION_IMENGINE|NA|@ohos.inputmethod.d.ts| +|删除|模块名: ohos.inputmethod
类名: inputMethod
方法名 or 属性名: EXCEPTION_IMCLIENT|NA|@ohos.inputmethod.d.ts| +|删除|模块名: ohos.inputmethod
类名: inputMethod
方法名 or 属性名: EXCEPTION_KEYEVENT|NA|@ohos.inputmethod.d.ts| +|删除|模块名: ohos.inputmethod
类名: inputMethod
方法名 or 属性名: EXCEPTION_CONFPERSIST|NA|@ohos.inputmethod.d.ts| +|删除|模块名: ohos.inputmethod
类名: inputMethod
方法名 or 属性名: EXCEPTION_CONTROLLER|NA|@ohos.inputmethod.d.ts| +|删除|模块名: ohos.inputmethod
类名: inputMethod
方法名 or 属性名: EXCEPTION_SETTINGS|NA|@ohos.inputmethod.d.ts| +|删除|模块名: ohos.inputmethod
类名: inputMethod
方法名 or 属性名: EXCEPTION_IMMS|NA|@ohos.inputmethod.d.ts| +|删除|模块名: ohos.inputmethod
类名: inputMethod
方法名 or 属性名: EXCEPTION_OTHERS|NA|@ohos.inputmethod.d.ts| +|删除|模块名:ohos.inputmethodengine
类名:InputMethodAbility
方法名 or 属性名:off|NA|@ohos.inputmethodengine.d.ts| diff --git a/zh-cn/release-notes/api-diff/monthly-202211/js-apidiff-msdp.md b/zh-cn/release-notes/api-diff/monthly-202211/js-apidiff-msdp.md index 08b844eb6d58ee05af59bc52b32cbe3f6db14545..b5968a30d6813c858484e505ab4f7970663ccc33 100644 --- a/zh-cn/release-notes/api-diff/monthly-202211/js-apidiff-msdp.md +++ b/zh-cn/release-notes/api-diff/monthly-202211/js-apidiff-msdp.md @@ -1,15 +1,15 @@ -| 操作 | 新版本 | 旧版本 | d.ts文件 | +| 操作 | 旧版本 | 新版本 | d.ts文件 | | ---- | ------ | ------ | -------- | -|新增||模块名: ohos.stationary
类名: stationary|@ohos.stationary.d.ts| -|新增||模块名: ohos.stationary
类名: ActivityResponse|@ohos.stationary.d.ts| -|新增||模块名: ohos.stationary
类名: ActivityResponse
方法名 or 属性名: state|@ohos.stationary.d.ts| -|新增||模块名: ohos.stationary
类名: ActivityEvent|@ohos.stationary.d.ts| -|新增||模块名: ohos.stationary
类名: ActivityEvent
方法名 or 属性名: ENTER|@ohos.stationary.d.ts| -|新增||模块名: ohos.stationary
类名: ActivityEvent
方法名 or 属性名: EXIT|@ohos.stationary.d.ts| -|新增||模块名: ohos.stationary
类名: ActivityEvent
方法名 or 属性名: ENTER_EXIT|@ohos.stationary.d.ts| -|新增||模块名: ohos.stationary
类名: ActivityState|@ohos.stationary.d.ts| -|新增||模块名: ohos.stationary
类名: ActivityState
方法名 or 属性名: ENTER|@ohos.stationary.d.ts| -|新增||模块名: ohos.stationary
类名: ActivityState
方法名 or 属性名: EXIT|@ohos.stationary.d.ts| -|新增||模块名: ohos.stationary
类名: stationary
方法名 or 属性名: on|@ohos.stationary.d.ts| -|新增||模块名: ohos.stationary
类名: stationary
方法名 or 属性名: once|@ohos.stationary.d.ts| -|新增||模块名: ohos.stationary
类名: stationary
方法名 or 属性名: off|@ohos.stationary.d.ts| +|新增|NA|模块名: ohos.stationary
类名: stationary|@ohos.stationary.d.ts| +|新增|NA|模块名: ohos.stationary
类名: ActivityResponse|@ohos.stationary.d.ts| +|新增|NA|模块名: ohos.stationary
类名: ActivityResponse
方法名 or 属性名: state|@ohos.stationary.d.ts| +|新增|NA|模块名: ohos.stationary
类名: ActivityEvent|@ohos.stationary.d.ts| +|新增|NA|模块名: ohos.stationary
类名: ActivityEvent
方法名 or 属性名: ENTER|@ohos.stationary.d.ts| +|新增|NA|模块名: ohos.stationary
类名: ActivityEvent
方法名 or 属性名: EXIT|@ohos.stationary.d.ts| +|新增|NA|模块名: ohos.stationary
类名: ActivityEvent
方法名 or 属性名: ENTER_EXIT|@ohos.stationary.d.ts| +|新增|NA|模块名: ohos.stationary
类名: ActivityState|@ohos.stationary.d.ts| +|新增|NA|模块名: ohos.stationary
类名: ActivityState
方法名 or 属性名: ENTER|@ohos.stationary.d.ts| +|新增|NA|模块名: ohos.stationary
类名: ActivityState
方法名 or 属性名: EXIT|@ohos.stationary.d.ts| +|新增|NA|模块名: ohos.stationary
类名: stationary
方法名 or 属性名: on|@ohos.stationary.d.ts| +|新增|NA|模块名: ohos.stationary
类名: stationary
方法名 or 属性名: once|@ohos.stationary.d.ts| +|新增|NA|模块名: ohos.stationary
类名: stationary
方法名 or 属性名: off|@ohos.stationary.d.ts| diff --git a/zh-cn/release-notes/api-diff/monthly-202211/js-apidiff-multi-modal-input.md b/zh-cn/release-notes/api-diff/monthly-202211/js-apidiff-multi-modal-input.md index 62864b71bbaedab3a3ce6b89fd766ac531021375..35771dee7a4aa41d2a0ae44c69c2aeca9490e4d0 100644 --- a/zh-cn/release-notes/api-diff/monthly-202211/js-apidiff-multi-modal-input.md +++ b/zh-cn/release-notes/api-diff/monthly-202211/js-apidiff-multi-modal-input.md @@ -1,3 +1,3 @@ -| 操作 | 新版本 | 旧版本 | d.ts文件 | +| 操作 | 旧版本 | 新版本 | d.ts文件 | | ---- | ------ | ------ | -------- | -|新增||方法名 or 属性名:supportKeys
函数:function supportKeys(deviceId: number, keys: Array, callback: AsyncCallback>): void;|@ohos.multimodalInput.inputDevice.d.ts| +|新增|NA|方法名 or 属性名:supportKeys
函数:function supportKeys(deviceId: number, keys: Array, callback: AsyncCallback>): void;|@ohos.multimodalInput.inputDevice.d.ts| diff --git a/zh-cn/release-notes/api-diff/monthly-202211/js-apidiff-notification.md b/zh-cn/release-notes/api-diff/monthly-202211/js-apidiff-notification.md index 122e3eab5e6312ed007ad30e21e387ca8dd2e197..187d024705db3e8ceb4410e2e48b8993471f1d80 100644 --- a/zh-cn/release-notes/api-diff/monthly-202211/js-apidiff-notification.md +++ b/zh-cn/release-notes/api-diff/monthly-202211/js-apidiff-notification.md @@ -1,19 +1,19 @@ -| 操作 | 新版本 | 旧版本 | d.ts文件 | +| 操作 | 旧版本 | 新版本 | d.ts文件 | | ---- | ------ | ------ | -------- | -|新增||模块名: ohos.notificationSubscribe
类名: BundleOption|@ohos.notificationSubscribe.d.ts| -|新增||模块名: ohos.notificationSubscribe
类名: BundleOption
方法名 or 属性名:bundle|@ohos.notificationSubscribe.d.ts| -|新增||模块名: ohos.notificationSubscribe
类名: BundleOption
方法名 or 属性名:uid|@ohos.notificationSubscribe.d.ts| -|新增||模块名: ohos.notificationSubscribe
类名: NotificationKey|@ohos.notificationSubscribe.d.ts| -|新增||模块名: ohos.notificationSubscribe
类名: NotificationKey
方法名 or 属性名:id|@ohos.notificationSubscribe.d.ts| -|新增||模块名: ohos.notificationSubscribe
类名: NotificationKey
方法名 or 属性名:label|@ohos.notificationSubscribe.d.ts| -|新增||模块名: ohos.notificationSubscribe
类名: RemoveReason|@ohos.notificationSubscribe.d.ts| -|新增||模块名: ohos.notificationSubscribe
类名: RemoveReason
方法名 or 属性名:CLICK_REASON_REMOVE|@ohos.notificationSubscribe.d.ts| -|新增||模块名: ohos.notificationSubscribe
类名: RemoveReason
方法名 or 属性名:CANCEL_REASON_REMOVE|@ohos.notificationSubscribe.d.ts| -|删除|模块名: ohos.notificationManager
类名: NotificationKey||@ohos.notificationManager.d.ts| -|删除|模块名: ohos.notificationManager
类名: NotificationKey
方法名 or 属性名: id||@ohos.notificationManager.d.ts| -|删除|模块名: ohos.notificationManager
类名: NotificationKey
方法名 or 属性名: label||@ohos.notificationManager.d.ts| -|删除|模块名: ohos.notificationManager
类名: RemoveReason||@ohos.notificationManager.d.ts| -|删除|模块名: ohos.notificationManager
类名: RemoveReason
方法名 or 属性名: CLICK_REASON_REMOVE||@ohos.notificationManager.d.ts| -|删除|模块名: ohos.notificationManager
类名: RemoveReason
方法名 or 属性名: CANCEL_REASON_REMOVE||@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationSubscribe
类名: BundleOption|@ohos.notificationSubscribe.d.ts| +|新增|NA|模块名: ohos.notificationSubscribe
类名: BundleOption
方法名 or 属性名:bundle|@ohos.notificationSubscribe.d.ts| +|新增|NA|模块名: ohos.notificationSubscribe
类名: BundleOption
方法名 or 属性名:uid|@ohos.notificationSubscribe.d.ts| +|新增|NA|模块名: ohos.notificationSubscribe
类名: NotificationKey|@ohos.notificationSubscribe.d.ts| +|新增|NA|模块名: ohos.notificationSubscribe
类名: NotificationKey
方法名 or 属性名:id|@ohos.notificationSubscribe.d.ts| +|新增|NA|模块名: ohos.notificationSubscribe
类名: NotificationKey
方法名 or 属性名:label|@ohos.notificationSubscribe.d.ts| +|新增|NA|模块名: ohos.notificationSubscribe
类名: RemoveReason|@ohos.notificationSubscribe.d.ts| +|新增|NA|模块名: ohos.notificationSubscribe
类名: RemoveReason
方法名 or 属性名:CLICK_REASON_REMOVE|@ohos.notificationSubscribe.d.ts| +|新增|NA|模块名: ohos.notificationSubscribe
类名: RemoveReason
方法名 or 属性名:CANCEL_REASON_REMOVE|@ohos.notificationSubscribe.d.ts| +|删除|模块名: ohos.notificationManager
类名: NotificationKey|NA|@ohos.notificationManager.d.ts| +|删除|模块名: ohos.notificationManager
类名: NotificationKey
方法名 or 属性名: id|NA|@ohos.notificationManager.d.ts| +|删除|模块名: ohos.notificationManager
类名: NotificationKey
方法名 or 属性名: label|NA|@ohos.notificationManager.d.ts| +|删除|模块名: ohos.notificationManager
类名: RemoveReason|NA|@ohos.notificationManager.d.ts| +|删除|模块名: ohos.notificationManager
类名: RemoveReason
方法名 or 属性名: CLICK_REASON_REMOVE|NA|@ohos.notificationManager.d.ts| +|删除|模块名: ohos.notificationManager
类名: RemoveReason
方法名 or 属性名: CANCEL_REASON_REMOVE|NA|@ohos.notificationManager.d.ts| |访问级别有变化|类名:notificationSubscribe
访问级别:公开API|类名:notificationSubscribe
访问级别:系统API|@ohos.notificationSubscribe.d.ts| |访问级别有变化|类名:notificationSubscribe
访问级别:公开API|类名:notificationSubscribe
访问级别:系统API|@ohos.notificationSubscribe.d.ts| diff --git a/zh-cn/release-notes/api-diff/monthly-202211/js-apidiff-resource-scheduler.md b/zh-cn/release-notes/api-diff/monthly-202211/js-apidiff-resource-scheduler.md index 3b9e883b5d03d45eafe24f7128dca70b094465e8..61305be6fe338eb1feee1ee0ae38e909a32d6892 100644 --- a/zh-cn/release-notes/api-diff/monthly-202211/js-apidiff-resource-scheduler.md +++ b/zh-cn/release-notes/api-diff/monthly-202211/js-apidiff-resource-scheduler.md @@ -1,38 +1,5 @@ -| 操作 | 新版本 | 旧版本 | d.ts文件 | +| 操作 | 旧版本 | 新版本 | d.ts文件 | | ---- | ------ | ------ | -------- | -|新增||模块名:ohos.resourceschedule.backgroundTaskManager
类名:backgroundTaskManager|@ohos.resourceschedule.backgroundTaskManager.d.ts| -|新增||模块名:ohos.resourceschedule.backgroundTaskManager
类名:DelaySuspendInfo|@ohos.resourceschedule.backgroundTaskManager.d.ts| -|新增||模块名:ohos.resourceschedule.backgroundTaskManager
类名:DelaySuspendInfo
方法名 or 属性名:requestId|@ohos.resourceschedule.backgroundTaskManager.d.ts| -|新增||模块名:ohos.resourceschedule.backgroundTaskManager
类名:DelaySuspendInfo
方法名 or 属性名:actualDelayTime|@ohos.resourceschedule.backgroundTaskManager.d.ts| -|新增||模块名:ohos.resourceschedule.backgroundTaskManager
类名:backgroundTaskManager
方法名 or 属性名:cancelSuspendDelay|@ohos.resourceschedule.backgroundTaskManager.d.ts| -|新增||模块名:ohos.resourceschedule.backgroundTaskManager
类名:backgroundTaskManager
方法名 or 属性名:requestSuspendDelay|@ohos.resourceschedule.backgroundTaskManager.d.ts| -|新增||模块名:ohos.resourceschedule.backgroundTaskManager
类名:backgroundTaskManager
方法名 or 属性名:applyEfficiencyResources|@ohos.resourceschedule.backgroundTaskManager.d.ts| -|新增||模块名:ohos.resourceschedule.backgroundTaskManager
类名:backgroundTaskManager
方法名 or 属性名:resetAllEfficiencyResources|@ohos.resourceschedule.backgroundTaskManager.d.ts| -|新增||模块名:ohos.resourceschedule.backgroundTaskManager
类名:BackgroundMode|@ohos.resourceschedule.backgroundTaskManager.d.ts| -|新增||模块名:ohos.resourceschedule.backgroundTaskManager
类名:BackgroundMode
方法名 or 属性名:DATA_TRANSFER|@ohos.resourceschedule.backgroundTaskManager.d.ts| -|新增||模块名:ohos.resourceschedule.backgroundTaskManager
类名:BackgroundMode
方法名 or 属性名:AUDIO_PLAYBACK|@ohos.resourceschedule.backgroundTaskManager.d.ts| -|新增||模块名:ohos.resourceschedule.backgroundTaskManager
类名:BackgroundMode
方法名 or 属性名:AUDIO_RECORDING|@ohos.resourceschedule.backgroundTaskManager.d.ts| -|新增||模块名:ohos.resourceschedule.backgroundTaskManager
类名:BackgroundMode
方法名 or 属性名:LOCATION|@ohos.resourceschedule.backgroundTaskManager.d.ts| -|新增||模块名:ohos.resourceschedule.backgroundTaskManager
类名:BackgroundMode
方法名 or 属性名:BLUETOOTH_INTERACTION|@ohos.resourceschedule.backgroundTaskManager.d.ts| -|新增||模块名:ohos.resourceschedule.backgroundTaskManager
类名:BackgroundMode
方法名 or 属性名:MULTI_DEVICE_CONNECTION|@ohos.resourceschedule.backgroundTaskManager.d.ts| -|新增||模块名:ohos.resourceschedule.backgroundTaskManager
类名:BackgroundMode
方法名 or 属性名:WIFI_INTERACTION|@ohos.resourceschedule.backgroundTaskManager.d.ts| -|新增||模块名:ohos.resourceschedule.backgroundTaskManager
类名:BackgroundMode
方法名 or 属性名:VOIP|@ohos.resourceschedule.backgroundTaskManager.d.ts| -|新增||模块名:ohos.resourceschedule.backgroundTaskManager
类名:BackgroundMode
方法名 or 属性名:TASK_KEEPING|@ohos.resourceschedule.backgroundTaskManager.d.ts| -|新增||模块名:ohos.resourceschedule.backgroundTaskManager
类名:ResourceType|@ohos.resourceschedule.backgroundTaskManager.d.ts| -|新增||模块名:ohos.resourceschedule.backgroundTaskManager
类名:ResourceType
方法名 or 属性名:CPU|@ohos.resourceschedule.backgroundTaskManager.d.ts| -|新增||模块名:ohos.resourceschedule.backgroundTaskManager
类名:ResourceType
方法名 or 属性名:COMMON_EVENT|@ohos.resourceschedule.backgroundTaskManager.d.ts| -|新增||模块名:ohos.resourceschedule.backgroundTaskManager
类名:ResourceType
方法名 or 属性名:TIMER|@ohos.resourceschedule.backgroundTaskManager.d.ts| -|新增||模块名:ohos.resourceschedule.backgroundTaskManager
类名:ResourceType
方法名 or 属性名:WORK_SCHEDULER|@ohos.resourceschedule.backgroundTaskManager.d.ts| -|新增||模块名:ohos.resourceschedule.backgroundTaskManager
类名:ResourceType
方法名 or 属性名:BLUETOOTH|@ohos.resourceschedule.backgroundTaskManager.d.ts| -|新增||模块名:ohos.resourceschedule.backgroundTaskManager
类名:ResourceType
方法名 or 属性名:GPS|@ohos.resourceschedule.backgroundTaskManager.d.ts| -|新增||模块名:ohos.resourceschedule.backgroundTaskManager
类名:ResourceType
方法名 or 属性名:AUDIO|@ohos.resourceschedule.backgroundTaskManager.d.ts| -|新增||模块名:ohos.resourceschedule.backgroundTaskManager
类名:EfficiencyResourcesRequest|@ohos.resourceschedule.backgroundTaskManager.d.ts| -|新增||模块名:ohos.resourceschedule.backgroundTaskManager
类名:EfficiencyResourcesRequest
方法名 or 属性名:resourceTypes|@ohos.resourceschedule.backgroundTaskManager.d.ts| -|新增||模块名:ohos.resourceschedule.backgroundTaskManager
类名:EfficiencyResourcesRequest
方法名 or 属性名:isApply|@ohos.resourceschedule.backgroundTaskManager.d.ts| -|新增||模块名:ohos.resourceschedule.backgroundTaskManager
类名:EfficiencyResourcesRequest
方法名 or 属性名:timeOut|@ohos.resourceschedule.backgroundTaskManager.d.ts| -|新增||模块名:ohos.resourceschedule.backgroundTaskManager
类名:EfficiencyResourcesRequest
方法名 or 属性名:isPersist|@ohos.resourceschedule.backgroundTaskManager.d.ts| -|新增||模块名:ohos.resourceschedule.backgroundTaskManager
类名:EfficiencyResourcesRequest
方法名 or 属性名:isProcess|@ohos.resourceschedule.backgroundTaskManager.d.ts| -|新增||模块名:ohos.resourceschedule.backgroundTaskManager
类名:EfficiencyResourcesRequest
方法名 or 属性名:reason|@ohos.resourceschedule.backgroundTaskManager.d.ts| |废弃版本有变化|方法名 or 属性名:startBackgroundRunning
废弃版本:N/A|方法名 or 属性名:startBackgroundRunning
废弃版本:9
代替接口:ohos.resourceschedule.backgroundTaskManager.startBackgroundRunning |@ohos.ability.particleAbility.d.ts| |废弃版本有变化|方法名 or 属性名:startBackgroundRunning
废弃版本:N/A|方法名 or 属性名:startBackgroundRunning
废弃版本:9|@ohos.ability.particleAbility.d.ts| |废弃版本有变化|方法名 or 属性名:cancelBackgroundRunning
废弃版本:N/A|方法名 or 属性名:cancelBackgroundRunning
废弃版本:9
代替接口:ohos.resourceschedule.backgroundTaskManager.stopBackgroundRunning |@ohos.ability.particleAbility.d.ts| diff --git a/zh-cn/release-notes/api-diff/monthly-202211/js-apidiff-sensor.md b/zh-cn/release-notes/api-diff/monthly-202211/js-apidiff-sensor.md index 6f211358114b7212f4f3f9e0b3b5d682b2867b5d..ca6e5e9dce64ec4ca60aa71ed31dd1e24850ff30 100644 --- a/zh-cn/release-notes/api-diff/monthly-202211/js-apidiff-sensor.md +++ b/zh-cn/release-notes/api-diff/monthly-202211/js-apidiff-sensor.md @@ -1,4 +1,4 @@ -| 操作 | 新版本 | 旧版本 | d.ts文件 | +| 操作 | 旧版本 | 新版本 | d.ts文件 | | ---- | ------ | ------ | -------- | -|新增||方法名 or 属性名:minSamplePeriod
函数:minSamplePeriod:number;|@ohos.sensor.d.ts| -|新增||方法名 or 属性名:maxSamplePeriod
函数:maxSamplePeriod:number;|@ohos.sensor.d.ts| +|新增|NA|方法名 or 属性名:minSamplePeriod
函数:minSamplePeriod:number;|@ohos.sensor.d.ts| +|新增|NA|方法名 or 属性名:maxSamplePeriod
函数:maxSamplePeriod:number;|@ohos.sensor.d.ts| diff --git a/zh-cn/release-notes/api-diff/monthly-202211/js-apidiff-telephony.md b/zh-cn/release-notes/api-diff/monthly-202211/js-apidiff-telephony.md index c934c5d553e2a540f24d345d55e9491d067656ee..9f7edb662a6eb630d579ce167c812bdd6a2dcaa3 100644 --- a/zh-cn/release-notes/api-diff/monthly-202211/js-apidiff-telephony.md +++ b/zh-cn/release-notes/api-diff/monthly-202211/js-apidiff-telephony.md @@ -1,4 +1,4 @@ -| 操作 | 新版本 | 旧版本 | d.ts文件 | +| 操作 | 旧版本 | 新版本 | d.ts文件 | | ---- | ------ | ------ | -------- | |删除(权限)|方法名 or 属性名:getDefaultCellularDataSlotId
权限:ohos.permission.GET_NETWORK_INFO|方法名 or 属性名:getDefaultCellularDataSlotId
权限:N/A|@ohos.telephony.data.d.ts| |删除(权限)|方法名 or 属性名:getDefaultCellularDataSlotId
权限:ohos.permission.GET_NETWORK_INFO|方法名 or 属性名:getDefaultCellularDataSlotId
权限:N/A|@ohos.telephony.data.d.ts| diff --git a/zh-cn/release-notes/api-diff/monthly-202211/js-apidiff-unitest.md b/zh-cn/release-notes/api-diff/monthly-202211/js-apidiff-unitest.md index 19d94ff3432ab3ffcae448f4005be8e2ab4da79f..9829dec124cfe0833c5d9374281182f4baf3534b 100644 --- a/zh-cn/release-notes/api-diff/monthly-202211/js-apidiff-unitest.md +++ b/zh-cn/release-notes/api-diff/monthly-202211/js-apidiff-unitest.md @@ -1,6 +1,6 @@ -| 操作 | 新版本 | 旧版本 | d.ts文件 | +| 操作 | 旧版本 | 新版本 | d.ts文件 | | ---- | ------ | ------ | -------- | -|新增||方法名 or 属性名:bundleName
函数:bundleName?: string;|@ohos.uitest.d.ts| -|新增||方法名 or 属性名:title
函数:title?: string;|@ohos.uitest.d.ts| -|新增||方法名 or 属性名:focused
函数:focused?: boolean;|@ohos.uitest.d.ts| -|新增||方法名 or 属性名:actived
函数:actived?: boolean;|@ohos.uitest.d.ts| +|新增|NA|方法名 or 属性名:bundleName
函数:bundleName?: string;|@ohos.uitest.d.ts| +|新增|NA|方法名 or 属性名:title
函数:title?: string;|@ohos.uitest.d.ts| +|新增|NA|方法名 or 属性名:focused
函数:focused?: boolean;|@ohos.uitest.d.ts| +|新增|NA|方法名 or 属性名:actived
函数:actived?: boolean;|@ohos.uitest.d.ts| diff --git a/zh-cn/release-notes/api-diff/monthly-202211/js-apidiff-update.md b/zh-cn/release-notes/api-diff/monthly-202211/js-apidiff-update.md index 9e5fc88df932c6ebceee8f45da7a5d5812e36fa0..07334dab4dd25db228b29ed81179e5d2d2c77ab1 100644 --- a/zh-cn/release-notes/api-diff/monthly-202211/js-apidiff-update.md +++ b/zh-cn/release-notes/api-diff/monthly-202211/js-apidiff-update.md @@ -1,26 +1,26 @@ -| 操作 | 新版本 | 旧版本 | d.ts文件 | +| 操作 | 旧版本 | 新版本 | d.ts文件 | | ---- | ------ | ------ | -------- | -|新增(错误码)||方法名 or 属性名:getOnlineUpdater
错误码内容:201,11500104|@ohos.update.d.ts| -|新增(错误码)||方法名 or 属性名:getRestorer
错误码内容:201,11500104|@ohos.update.d.ts| -|新增(错误码)||方法名 or 属性名:getLocalUpdater
错误码内容:201,11500104|@ohos.update.d.ts| -|新增(错误码)||方法名 or 属性名:checkNewVersion
错误码内容:201,11500104|@ohos.update.d.ts| -|新增(错误码)||方法名 or 属性名:getNewVersionInfo
错误码内容:201,11500104|@ohos.update.d.ts| -|新增(错误码)||方法名 or 属性名:getNewVersionDescription
错误码内容:201,401,11500104|@ohos.update.d.ts| -|新增(错误码)||方法名 or 属性名:getCurrentVersionInfo
错误码内容:201,11500104|@ohos.update.d.ts| -|新增(错误码)||方法名 or 属性名:getCurrentVersionDescription
错误码内容:201,401,11500104|@ohos.update.d.ts| -|新增(错误码)||方法名 or 属性名:getTaskInfo
错误码内容:201,11500104|@ohos.update.d.ts| -|新增(错误码)||方法名 or 属性名:download
错误码内容:201,401,11500104|@ohos.update.d.ts| -|新增(错误码)||方法名 or 属性名:resumeDownload
错误码内容:201,401,11500104|@ohos.update.d.ts| -|新增(错误码)||方法名 or 属性名:pauseDownload
错误码内容:201,401,11500104|@ohos.update.d.ts| -|新增(错误码)||方法名 or 属性名:upgrade
错误码内容:201,401,11500104|@ohos.update.d.ts| -|新增(错误码)||方法名 or 属性名:clearError
错误码内容:201,401,11500104|@ohos.update.d.ts| -|新增(错误码)||方法名 or 属性名:getUpgradePolicy
错误码内容:201,11500104|@ohos.update.d.ts| -|新增(错误码)||方法名 or 属性名:setUpgradePolicy
错误码内容:201,11500104|@ohos.update.d.ts| -|新增(错误码)||方法名 or 属性名:terminateUpgrade
错误码内容:201,11500104|@ohos.update.d.ts| -|新增(错误码)||方法名 or 属性名:on
错误码内容:201,401,11500104|@ohos.update.d.ts| -|新增(错误码)||方法名 or 属性名:off
错误码内容:201,401,11500104|@ohos.update.d.ts| -|新增(错误码)||方法名 or 属性名:factoryReset
错误码内容:201,11500104|@ohos.update.d.ts| -|新增(错误码)||方法名 or 属性名:verifyUpgradePackage
错误码内容:201,401,11500104|@ohos.update.d.ts| -|新增(错误码)||方法名 or 属性名:applyNewVersion
错误码内容:201,401,11500104|@ohos.update.d.ts| -|新增(错误码)||方法名 or 属性名:on
错误码内容:201,401,11500104|@ohos.update.d.ts| -|新增(错误码)||方法名 or 属性名:off
错误码内容:201,401,11500104|@ohos.update.d.ts| +|新增(错误码)|NA|方法名 or 属性名:getOnlineUpdater
错误码内容:201,11500104|@ohos.update.d.ts| +|新增(错误码)|NA|方法名 or 属性名:getRestorer
错误码内容:201,11500104|@ohos.update.d.ts| +|新增(错误码)|NA|方法名 or 属性名:getLocalUpdater
错误码内容:201,11500104|@ohos.update.d.ts| +|新增(错误码)|NA|方法名 or 属性名:checkNewVersion
错误码内容:201,11500104|@ohos.update.d.ts| +|新增(错误码)|NA|方法名 or 属性名:getNewVersionInfo
错误码内容:201,11500104|@ohos.update.d.ts| +|新增(错误码)|NA|方法名 or 属性名:getNewVersionDescription
错误码内容:201,401,11500104|@ohos.update.d.ts| +|新增(错误码)|NA|方法名 or 属性名:getCurrentVersionInfo
错误码内容:201,11500104|@ohos.update.d.ts| +|新增(错误码)|NA|方法名 or 属性名:getCurrentVersionDescription
错误码内容:201,401,11500104|@ohos.update.d.ts| +|新增(错误码)|NA|方法名 or 属性名:getTaskInfo
错误码内容:201,11500104|@ohos.update.d.ts| +|新增(错误码)|NA|方法名 or 属性名:download
错误码内容:201,401,11500104|@ohos.update.d.ts| +|新增(错误码)|NA|方法名 or 属性名:resumeDownload
错误码内容:201,401,11500104|@ohos.update.d.ts| +|新增(错误码)|NA|方法名 or 属性名:pauseDownload
错误码内容:201,401,11500104|@ohos.update.d.ts| +|新增(错误码)|NA|方法名 or 属性名:upgrade
错误码内容:201,401,11500104|@ohos.update.d.ts| +|新增(错误码)|NA|方法名 or 属性名:clearError
错误码内容:201,401,11500104|@ohos.update.d.ts| +|新增(错误码)|NA|方法名 or 属性名:getUpgradePolicy
错误码内容:201,11500104|@ohos.update.d.ts| +|新增(错误码)|NA|方法名 or 属性名:setUpgradePolicy
错误码内容:201,11500104|@ohos.update.d.ts| +|新增(错误码)|NA|方法名 or 属性名:terminateUpgrade
错误码内容:201,11500104|@ohos.update.d.ts| +|新增(错误码)|NA|方法名 or 属性名:on
错误码内容:201,401,11500104|@ohos.update.d.ts| +|新增(错误码)|NA|方法名 or 属性名:off
错误码内容:201,401,11500104|@ohos.update.d.ts| +|新增(错误码)|NA|方法名 or 属性名:factoryReset
错误码内容:201,11500104|@ohos.update.d.ts| +|新增(错误码)|NA|方法名 or 属性名:verifyUpgradePackage
错误码内容:201,401,11500104|@ohos.update.d.ts| +|新增(错误码)|NA|方法名 or 属性名:applyNewVersion
错误码内容:201,401,11500104|@ohos.update.d.ts| +|新增(错误码)|NA|方法名 or 属性名:on
错误码内容:201,401,11500104|@ohos.update.d.ts| +|新增(错误码)|NA|方法名 or 属性名:off
错误码内容:201,401,11500104|@ohos.update.d.ts| diff --git a/zh-cn/release-notes/api-diff/monthly-202211/js-apidiff-usb.md b/zh-cn/release-notes/api-diff/monthly-202211/js-apidiff-usb.md index 9496c7172a92d885a04fc227aae5a8ff10cc0ab8..dd8299f46cd710e2c2f909fb23a7235b22cacf7a 100644 --- a/zh-cn/release-notes/api-diff/monthly-202211/js-apidiff-usb.md +++ b/zh-cn/release-notes/api-diff/monthly-202211/js-apidiff-usb.md @@ -1,3 +1,3 @@ -| 操作 | 新版本 | 旧版本 | d.ts文件 | +| 操作 | 旧版本 | 新版本 | d.ts文件 | | ---- | ------ | ------ | -------- | -|新增||方法名 or 属性名:controlTransfer
函数:function controlTransfer(pipe: USBDevicePipe, controlparam: USBControlParams, timeout?: number): Promise;|@ohos.usb.d.ts| +|新增|NA|方法名 or 属性名:controlTransfer
函数:function controlTransfer(pipe: USBDevicePipe, controlparam: USBControlParams, timeout?: number): Promise;|@ohos.usb.d.ts| diff --git a/zh-cn/release-notes/api-diff/monthly-202211/js-apidiff-user-iam.md b/zh-cn/release-notes/api-diff/monthly-202211/js-apidiff-user-iam.md index f9531084dd6cfbcdd705458b94b5ef5180e19371..5e8ca6139500fee19eb92d84aea8be7c7451b702 100644 --- a/zh-cn/release-notes/api-diff/monthly-202211/js-apidiff-user-iam.md +++ b/zh-cn/release-notes/api-diff/monthly-202211/js-apidiff-user-iam.md @@ -1,8 +1,8 @@ -| 操作 | 新版本 | 旧版本 | d.ts文件 | +| 操作 | 旧版本 | 新版本 | d.ts文件 | | ---- | ------ | ------ | -------- | -|删除|模块名: ohos.userIAM.faceAuth
类名: ResultCode||@ohos.userIAM.faceAuth.d.ts| -|删除|模块名: ohos.userIAM.faceAuth
类名: ResultCode
方法名 or 属性名:FAIL||@ohos.userIAM.faceAuth.d.ts| -|删除|模块名: ohos.userIAM.userAuth
类名: ResultCodeV9
方法名 or 属性名:INVALID_PARAMETERS||@ohos.userIAM.userAuth.d.ts| +|删除|模块名: ohos.userIAM.faceAuth
类名: ResultCode|NA|@ohos.userIAM.faceAuth.d.ts| +|删除|模块名: ohos.userIAM.faceAuth
类名: ResultCode
方法名 or 属性名:FAIL|NA|@ohos.userIAM.faceAuth.d.ts| +|删除|模块名: ohos.userIAM.userAuth
类名: ResultCodeV9
方法名 or 属性名:INVALID_PARAMETERS|NA|@ohos.userIAM.userAuth.d.ts| |废弃版本有变化|类名:AuthenticationResult
废弃版本:N/A|类名:AuthenticationResult
废弃版本:8
代替接口:ohos.userIAM.userAuth.ResultCode |@ohos.userIAM.userAuth.d.ts| |废弃版本有变化|类名:Authenticator
废弃版本:N/A|类名:Authenticator
废弃版本:8|@ohos.userIAM.userAuth.d.ts| |废弃版本有变化|类名:UserAuth
废弃版本:N/A|类名:UserAuth
废弃版本:9
代替接口:ohos.userIAM.userAuth.AuthInstance |@ohos.userIAM.userAuth.d.ts| @@ -20,4 +20,4 @@ |废弃版本有变化|方法名 or 属性名:NOT_ENROLLED
废弃版本:N/A|方法名 or 属性名:NOT_ENROLLED
废弃版本:9
代替接口:ohos.userIAM.userAuth.ResultCodeV9 |@ohos.userIAM.userAuth.d.ts| |起始版本有变化|类名:IUserAuthCallback
起始版本:6|类名:IUserAuthCallback
起始版本:8|@ohos.userIAM.userAuth.d.ts| |起始版本有变化|类名:AuthEvent
起始版本:6|类名:AuthEvent
起始版本:9|@ohos.userIAM.userAuth.d.ts| -|新增(错误码)||方法名 or 属性名:setSurfaceId
错误码内容:201,202,12700001|@ohos.userIAM.faceAuth.d.ts| +|新增(错误码)|NA|方法名 or 属性名:setSurfaceId
错误码内容:201,202,12700001|@ohos.userIAM.faceAuth.d.ts| diff --git a/zh-cn/release-notes/api-diff/monthly-202211/js-apidiff-web.md b/zh-cn/release-notes/api-diff/monthly-202211/js-apidiff-web.md index 9282e91a28003691c15e4becbc13a7e5dcfbea20..24f748d1ef2f90680902875f54ed8503b8b47984 100644 --- a/zh-cn/release-notes/api-diff/monthly-202211/js-apidiff-web.md +++ b/zh-cn/release-notes/api-diff/monthly-202211/js-apidiff-web.md @@ -1,6 +1,6 @@ -| 操作 | 新版本 | 旧版本 | d.ts文件 | +| 操作 | 旧版本 | 新版本 | d.ts文件 | | ---- | ------ | ------ | -------- | -|新增||方法名 or 属性名:saveCookieAsync
函数:static saveCookieAsync(): Promise;|@ohos.web.webview.d.ts| -|新增||方法名 or 属性名:saveCookieAsync
函数:static saveCookieAsync(callback: AsyncCallback): void;|@ohos.web.webview.d.ts| -|新增||方法名 or 属性名:stop
函数:stop(): void;|@ohos.web.webview.d.ts| -|删除|模块名:ohos.web.webview
类名:WebCookieManager
方法名 or 属性名:saveCookieSync||@ohos.web.webview.d.ts| +|新增|NA|方法名 or 属性名:saveCookieAsync
函数:static saveCookieAsync(): Promise;|@ohos.web.webview.d.ts| +|新增|NA|方法名 or 属性名:saveCookieAsync
函数:static saveCookieAsync(callback: AsyncCallback): void;|@ohos.web.webview.d.ts| +|新增|NA|方法名 or 属性名:stop
函数:stop(): void;|@ohos.web.webview.d.ts| +|删除|模块名:ohos.web.webview
类名:WebCookieManager
方法名 or 属性名:saveCookieSync|NA|@ohos.web.webview.d.ts| diff --git a/zh-cn/release-notes/api-diff/v3.2-beta4/js-apidiff-ability.md b/zh-cn/release-notes/api-diff/v3.2-beta4/js-apidiff-ability.md index ebf368d0778bba1ab2bebb7e3d5976cc2890d6be..70f63bb02b49fada3d974f4e25e4e58d15c4bace 100644 --- a/zh-cn/release-notes/api-diff/v3.2-beta4/js-apidiff-ability.md +++ b/zh-cn/release-notes/api-diff/v3.2-beta4/js-apidiff-ability.md @@ -1,630 +1,592 @@ -| 操作 | 新版本 | 旧版本 | d.ts文件 | +| 操作 | 旧版本 | 新版本 | d.ts文件 | | ---- | ------ | ------ | -------- | -|新增||模块名:ohos.ability.wantConstant
类名:Action
方法名 or 属性名:ACTION_APP_ACCOUNT_AUTH|@ohos.ability.wantConstant.d.ts| -|新增||模块名: ohos.app.ability.Ability
类名: Ability|@ohos.app.ability.Ability.d.ts| -|新增||模块名: ohos.app.ability.Ability
类名: Ability
方法名 or 属性名: onConfigurationUpdate|@ohos.app.ability.Ability.d.ts| -|新增||模块名: ohos.app.ability.Ability
类名: Ability
方法名 or 属性名: onMemoryLevel|@ohos.app.ability.Ability.d.ts| -|新增||模块名: ohos.app.ability.AbilityConstant
类名: AbilityConstant|@ohos.app.ability.AbilityConstant.d.ts| -|新增||模块名: ohos.app.ability.AbilityConstant
类名: LaunchParam|@ohos.app.ability.AbilityConstant.d.ts| -|新增||模块名: ohos.app.ability.AbilityConstant
类名: LaunchParam
方法名 or 属性名: launchReason|@ohos.app.ability.AbilityConstant.d.ts| -|新增||模块名: ohos.app.ability.AbilityConstant
类名: LaunchParam
方法名 or 属性名: lastExitReason|@ohos.app.ability.AbilityConstant.d.ts| -|新增||模块名: ohos.app.ability.AbilityConstant
类名: LaunchReason|@ohos.app.ability.AbilityConstant.d.ts| -|新增||模块名: ohos.app.ability.AbilityConstant
类名: LaunchReason
方法名 or 属性名: UNKNOWN|@ohos.app.ability.AbilityConstant.d.ts| -|新增||模块名: ohos.app.ability.AbilityConstant
类名: LaunchReason
方法名 or 属性名: START_ABILITY|@ohos.app.ability.AbilityConstant.d.ts| -|新增||模块名: ohos.app.ability.AbilityConstant
类名: LaunchReason
方法名 or 属性名: CALL|@ohos.app.ability.AbilityConstant.d.ts| -|新增||模块名: ohos.app.ability.AbilityConstant
类名: LaunchReason
方法名 or 属性名: CONTINUATION|@ohos.app.ability.AbilityConstant.d.ts| -|新增||模块名: ohos.app.ability.AbilityConstant
类名: LaunchReason
方法名 or 属性名: APP_RECOVERY|@ohos.app.ability.AbilityConstant.d.ts| -|新增||模块名: ohos.app.ability.AbilityConstant
类名: LastExitReason|@ohos.app.ability.AbilityConstant.d.ts| -|新增||模块名: ohos.app.ability.AbilityConstant
类名: LastExitReason
方法名 or 属性名: UNKNOWN|@ohos.app.ability.AbilityConstant.d.ts| -|新增||模块名: ohos.app.ability.AbilityConstant
类名: LastExitReason
方法名 or 属性名: ABILITY_NOT_RESPONDING|@ohos.app.ability.AbilityConstant.d.ts| -|新增||模块名: ohos.app.ability.AbilityConstant
类名: LastExitReason
方法名 or 属性名: NORMAL|@ohos.app.ability.AbilityConstant.d.ts| -|新增||模块名: ohos.app.ability.AbilityConstant
类名: OnContinueResult|@ohos.app.ability.AbilityConstant.d.ts| -|新增||模块名: ohos.app.ability.AbilityConstant
类名: OnContinueResult
方法名 or 属性名: AGREE|@ohos.app.ability.AbilityConstant.d.ts| -|新增||模块名: ohos.app.ability.AbilityConstant
类名: OnContinueResult
方法名 or 属性名: REJECT|@ohos.app.ability.AbilityConstant.d.ts| -|新增||模块名: ohos.app.ability.AbilityConstant
类名: OnContinueResult
方法名 or 属性名: MISMATCH|@ohos.app.ability.AbilityConstant.d.ts| -|新增||模块名: ohos.app.ability.AbilityConstant
类名: MemoryLevel|@ohos.app.ability.AbilityConstant.d.ts| -|新增||模块名: ohos.app.ability.AbilityConstant
类名: MemoryLevel
方法名 or 属性名: MEMORY_LEVEL_MODERATE|@ohos.app.ability.AbilityConstant.d.ts| -|新增||模块名: ohos.app.ability.AbilityConstant
类名: MemoryLevel
方法名 or 属性名: MEMORY_LEVEL_LOW|@ohos.app.ability.AbilityConstant.d.ts| -|新增||模块名: ohos.app.ability.AbilityConstant
类名: MemoryLevel
方法名 or 属性名: MEMORY_LEVEL_CRITICAL|@ohos.app.ability.AbilityConstant.d.ts| -|新增||模块名: ohos.app.ability.AbilityConstant
类名: WindowMode|@ohos.app.ability.AbilityConstant.d.ts| -|新增||模块名: ohos.app.ability.AbilityConstant
类名: WindowMode
方法名 or 属性名: WINDOW_MODE_UNDEFINED|@ohos.app.ability.AbilityConstant.d.ts| -|新增||模块名: ohos.app.ability.AbilityConstant
类名: WindowMode
方法名 or 属性名: WINDOW_MODE_FULLSCREEN|@ohos.app.ability.AbilityConstant.d.ts| -|新增||模块名: ohos.app.ability.AbilityConstant
类名: WindowMode
方法名 or 属性名: WINDOW_MODE_SPLIT_PRIMARY|@ohos.app.ability.AbilityConstant.d.ts| -|新增||模块名: ohos.app.ability.AbilityConstant
类名: WindowMode
方法名 or 属性名: WINDOW_MODE_SPLIT_SECONDARY|@ohos.app.ability.AbilityConstant.d.ts| -|新增||模块名: ohos.app.ability.AbilityConstant
类名: WindowMode
方法名 or 属性名: WINDOW_MODE_FLOATING|@ohos.app.ability.AbilityConstant.d.ts| -|新增||模块名: ohos.app.ability.AbilityConstant
类名: OnSaveResult|@ohos.app.ability.AbilityConstant.d.ts| -|新增||模块名: ohos.app.ability.AbilityConstant
类名: OnSaveResult
方法名 or 属性名: ALL_AGREE|@ohos.app.ability.AbilityConstant.d.ts| -|新增||模块名: ohos.app.ability.AbilityConstant
类名: OnSaveResult
方法名 or 属性名: CONTINUATION_REJECT|@ohos.app.ability.AbilityConstant.d.ts| -|新增||模块名: ohos.app.ability.AbilityConstant
类名: OnSaveResult
方法名 or 属性名: CONTINUATION_MISMATCH|@ohos.app.ability.AbilityConstant.d.ts| -|新增||模块名: ohos.app.ability.AbilityConstant
类名: OnSaveResult
方法名 or 属性名: RECOVERY_AGREE|@ohos.app.ability.AbilityConstant.d.ts| -|新增||模块名: ohos.app.ability.AbilityConstant
类名: OnSaveResult
方法名 or 属性名: RECOVERY_REJECT|@ohos.app.ability.AbilityConstant.d.ts| -|新增||模块名: ohos.app.ability.AbilityConstant
类名: OnSaveResult
方法名 or 属性名: ALL_REJECT|@ohos.app.ability.AbilityConstant.d.ts| -|新增||模块名: ohos.app.ability.AbilityConstant
类名: StateType|@ohos.app.ability.AbilityConstant.d.ts| -|新增||模块名: ohos.app.ability.AbilityConstant
类名: StateType
方法名 or 属性名: CONTINUATION|@ohos.app.ability.AbilityConstant.d.ts| -|新增||模块名: ohos.app.ability.AbilityConstant
类名: StateType
方法名 or 属性名: APP_RECOVERY|@ohos.app.ability.AbilityConstant.d.ts| -|新增||模块名: ohos.app.ability.abilityDelegatorRegistry
类名: abilityDelegatorRegistry|@ohos.app.ability.abilityDelegatorRegistry.d.ts| -|新增||模块名: ohos.app.ability.abilityDelegatorRegistry
类名: abilityDelegatorRegistry
方法名 or 属性名: getAbilityDelegator|@ohos.app.ability.abilityDelegatorRegistry.d.ts| -|新增||模块名: ohos.app.ability.abilityDelegatorRegistry
类名: abilityDelegatorRegistry
方法名 or 属性名: getArguments|@ohos.app.ability.abilityDelegatorRegistry.d.ts| -|新增||模块名: ohos.app.ability.abilityDelegatorRegistry
类名: AbilityLifecycleState|@ohos.app.ability.abilityDelegatorRegistry.d.ts| -|新增||模块名: ohos.app.ability.abilityDelegatorRegistry
类名: AbilityLifecycleState
方法名 or 属性名: UNINITIALIZED|@ohos.app.ability.abilityDelegatorRegistry.d.ts| -|新增||模块名: ohos.app.ability.abilityDelegatorRegistry
类名: AbilityLifecycleState
方法名 or 属性名: CREATE|@ohos.app.ability.abilityDelegatorRegistry.d.ts| -|新增||模块名: ohos.app.ability.abilityDelegatorRegistry
类名: AbilityLifecycleState
方法名 or 属性名: FOREGROUND|@ohos.app.ability.abilityDelegatorRegistry.d.ts| -|新增||模块名: ohos.app.ability.abilityDelegatorRegistry
类名: AbilityLifecycleState
方法名 or 属性名: BACKGROUND|@ohos.app.ability.abilityDelegatorRegistry.d.ts| -|新增||模块名: ohos.app.ability.abilityDelegatorRegistry
类名: AbilityLifecycleState
方法名 or 属性名: DESTROY|@ohos.app.ability.abilityDelegatorRegistry.d.ts| -|新增||模块名: ohos.app.ability.AbilityLifecycleCallback
类名: AbilityLifecycleCallback|@ohos.app.ability.AbilityLifecycleCallback.d.ts| -|新增||模块名: ohos.app.ability.AbilityLifecycleCallback
类名: AbilityLifecycleCallback
方法名 or 属性名: onAbilityCreate|@ohos.app.ability.AbilityLifecycleCallback.d.ts| -|新增||模块名: ohos.app.ability.AbilityLifecycleCallback
类名: AbilityLifecycleCallback
方法名 or 属性名: onWindowStageCreate|@ohos.app.ability.AbilityLifecycleCallback.d.ts| -|新增||模块名: ohos.app.ability.AbilityLifecycleCallback
类名: AbilityLifecycleCallback
方法名 or 属性名: onWindowStageActive|@ohos.app.ability.AbilityLifecycleCallback.d.ts| -|新增||模块名: ohos.app.ability.AbilityLifecycleCallback
类名: AbilityLifecycleCallback
方法名 or 属性名: onWindowStageInactive|@ohos.app.ability.AbilityLifecycleCallback.d.ts| -|新增||模块名: ohos.app.ability.AbilityLifecycleCallback
类名: AbilityLifecycleCallback
方法名 or 属性名: onWindowStageDestroy|@ohos.app.ability.AbilityLifecycleCallback.d.ts| -|新增||模块名: ohos.app.ability.AbilityLifecycleCallback
类名: AbilityLifecycleCallback
方法名 or 属性名: onAbilityDestroy|@ohos.app.ability.AbilityLifecycleCallback.d.ts| -|新增||模块名: ohos.app.ability.AbilityLifecycleCallback
类名: AbilityLifecycleCallback
方法名 or 属性名: onAbilityForeground|@ohos.app.ability.AbilityLifecycleCallback.d.ts| -|新增||模块名: ohos.app.ability.AbilityLifecycleCallback
类名: AbilityLifecycleCallback
方法名 or 属性名: onAbilityBackground|@ohos.app.ability.AbilityLifecycleCallback.d.ts| -|新增||模块名: ohos.app.ability.AbilityLifecycleCallback
类名: AbilityLifecycleCallback
方法名 or 属性名: onAbilityContinue|@ohos.app.ability.AbilityLifecycleCallback.d.ts| -|新增||模块名: ohos.app.ability.abilityManager
类名: abilityManager|@ohos.app.ability.abilityManager.d.ts| -|新增||模块名: ohos.app.ability.abilityManager
类名: AbilityState|@ohos.app.ability.abilityManager.d.ts| -|新增||模块名: ohos.app.ability.abilityManager
类名: AbilityState
方法名 or 属性名: INITIAL|@ohos.app.ability.abilityManager.d.ts| -|新增||模块名: ohos.app.ability.abilityManager
类名: AbilityState
方法名 or 属性名: FOREGROUND|@ohos.app.ability.abilityManager.d.ts| -|新增||模块名: ohos.app.ability.abilityManager
类名: AbilityState
方法名 or 属性名: BACKGROUND|@ohos.app.ability.abilityManager.d.ts| -|新增||模块名: ohos.app.ability.abilityManager
类名: AbilityState
方法名 or 属性名: FOREGROUNDING|@ohos.app.ability.abilityManager.d.ts| -|新增||模块名: ohos.app.ability.abilityManager
类名: AbilityState
方法名 or 属性名: BACKGROUNDING|@ohos.app.ability.abilityManager.d.ts| -|新增||模块名: ohos.app.ability.abilityManager
类名: abilityManager
方法名 or 属性名: updateConfiguration|@ohos.app.ability.abilityManager.d.ts| -|新增||模块名: ohos.app.ability.abilityManager
类名: abilityManager
方法名 or 属性名: updateConfiguration|@ohos.app.ability.abilityManager.d.ts| -|新增||模块名: ohos.app.ability.abilityManager
类名: abilityManager
方法名 or 属性名: getAbilityRunningInfos|@ohos.app.ability.abilityManager.d.ts| -|新增||模块名: ohos.app.ability.abilityManager
类名: abilityManager
方法名 or 属性名: getAbilityRunningInfos|@ohos.app.ability.abilityManager.d.ts| -|新增||模块名: ohos.app.ability.abilityManager
类名: abilityManager
方法名 or 属性名: getExtensionRunningInfos|@ohos.app.ability.abilityManager.d.ts| -|新增||模块名: ohos.app.ability.abilityManager
类名: abilityManager
方法名 or 属性名: getExtensionRunningInfos|@ohos.app.ability.abilityManager.d.ts| -|新增||模块名: ohos.app.ability.abilityManager
类名: abilityManager
方法名 or 属性名: getTopAbility|@ohos.app.ability.abilityManager.d.ts| -|新增||模块名: ohos.app.ability.abilityManager
类名: abilityManager
方法名 or 属性名: getTopAbility|@ohos.app.ability.abilityManager.d.ts| -|新增||模块名: ohos.app.ability.AbilityStage
类名: AbilityStage|@ohos.app.ability.AbilityStage.d.ts| -|新增||模块名: ohos.app.ability.AbilityStage
类名: AbilityStage
方法名 or 属性名: context|@ohos.app.ability.AbilityStage.d.ts| -|新增||模块名: ohos.app.ability.AbilityStage
类名: AbilityStage
方法名 or 属性名: onCreate|@ohos.app.ability.AbilityStage.d.ts| -|新增||模块名: ohos.app.ability.AbilityStage
类名: AbilityStage
方法名 or 属性名: onAcceptWant|@ohos.app.ability.AbilityStage.d.ts| -|新增||模块名: ohos.app.ability.AbilityStage
类名: AbilityStage
方法名 or 属性名: onConfigurationUpdate|@ohos.app.ability.AbilityStage.d.ts| -|新增||模块名: ohos.app.ability.AbilityStage
类名: AbilityStage
方法名 or 属性名: onMemoryLevel|@ohos.app.ability.AbilityStage.d.ts| -|新增||模块名: ohos.app.ability.appManager
类名: appManager|@ohos.app.ability.appManager.d.ts| -|新增||模块名: ohos.app.ability.appManager
类名: ApplicationState|@ohos.app.ability.appManager.d.ts| -|新增||模块名: ohos.app.ability.appManager
类名: ApplicationState
方法名 or 属性名: STATE_CREATE|@ohos.app.ability.appManager.d.ts| -|新增||模块名: ohos.app.ability.appManager
类名: ApplicationState
方法名 or 属性名: STATE_FOREGROUND|@ohos.app.ability.appManager.d.ts| -|新增||模块名: ohos.app.ability.appManager
类名: ApplicationState
方法名 or 属性名: STATE_ACTIVE|@ohos.app.ability.appManager.d.ts| -|新增||模块名: ohos.app.ability.appManager
类名: ApplicationState
方法名 or 属性名: STATE_BACKGROUND|@ohos.app.ability.appManager.d.ts| -|新增||模块名: ohos.app.ability.appManager
类名: ApplicationState
方法名 or 属性名: STATE_DESTROY|@ohos.app.ability.appManager.d.ts| -|新增||模块名: ohos.app.ability.appManager
类名: ProcessState|@ohos.app.ability.appManager.d.ts| -|新增||模块名: ohos.app.ability.appManager
类名: ProcessState
方法名 or 属性名: STATE_CREATE|@ohos.app.ability.appManager.d.ts| -|新增||模块名: ohos.app.ability.appManager
类名: ProcessState
方法名 or 属性名: STATE_FOREGROUND|@ohos.app.ability.appManager.d.ts| -|新增||模块名: ohos.app.ability.appManager
类名: ProcessState
方法名 or 属性名: STATE_ACTIVE|@ohos.app.ability.appManager.d.ts| -|新增||模块名: ohos.app.ability.appManager
类名: ProcessState
方法名 or 属性名: STATE_BACKGROUND|@ohos.app.ability.appManager.d.ts| -|新增||模块名: ohos.app.ability.appManager
类名: ProcessState
方法名 or 属性名: STATE_DESTROY|@ohos.app.ability.appManager.d.ts| -|新增||模块名: ohos.app.ability.appManager
类名: appManager
方法名 or 属性名: on_applicationState|@ohos.app.ability.appManager.d.ts| -|新增||模块名: ohos.app.ability.appManager
类名: appManager
方法名 or 属性名: on_applicationState|@ohos.app.ability.appManager.d.ts| -|新增||模块名: ohos.app.ability.appManager
类名: appManager
方法名 or 属性名: off_applicationState|@ohos.app.ability.appManager.d.ts| -|新增||模块名: ohos.app.ability.appManager
类名: appManager
方法名 or 属性名: off_applicationState|@ohos.app.ability.appManager.d.ts| -|新增||模块名: ohos.app.ability.appManager
类名: appManager
方法名 or 属性名: getForegroundApplications|@ohos.app.ability.appManager.d.ts| -|新增||模块名: ohos.app.ability.appManager
类名: appManager
方法名 or 属性名: getForegroundApplications|@ohos.app.ability.appManager.d.ts| -|新增||模块名: ohos.app.ability.appManager
类名: appManager
方法名 or 属性名: killProcessWithAccount|@ohos.app.ability.appManager.d.ts| -|新增||模块名: ohos.app.ability.appManager
类名: appManager
方法名 or 属性名: killProcessWithAccount|@ohos.app.ability.appManager.d.ts| -|新增||模块名: ohos.app.ability.appManager
类名: appManager
方法名 or 属性名: isRunningInStabilityTest|@ohos.app.ability.appManager.d.ts| -|新增||模块名: ohos.app.ability.appManager
类名: appManager
方法名 or 属性名: isRunningInStabilityTest|@ohos.app.ability.appManager.d.ts| -|新增||模块名: ohos.app.ability.appManager
类名: appManager
方法名 or 属性名: killProcessesByBundleName|@ohos.app.ability.appManager.d.ts| -|新增||模块名: ohos.app.ability.appManager
类名: appManager
方法名 or 属性名: killProcessesByBundleName|@ohos.app.ability.appManager.d.ts| -|新增||模块名: ohos.app.ability.appManager
类名: appManager
方法名 or 属性名: clearUpApplicationData|@ohos.app.ability.appManager.d.ts| -|新增||模块名: ohos.app.ability.appManager
类名: appManager
方法名 or 属性名: clearUpApplicationData|@ohos.app.ability.appManager.d.ts| -|新增||模块名: ohos.app.ability.appManager
类名: appManager
方法名 or 属性名: isRamConstrainedDevice|@ohos.app.ability.appManager.d.ts| -|新增||模块名: ohos.app.ability.appManager
类名: appManager
方法名 or 属性名: isRamConstrainedDevice|@ohos.app.ability.appManager.d.ts| -|新增||模块名: ohos.app.ability.appManager
类名: appManager
方法名 or 属性名: getAppMemorySize|@ohos.app.ability.appManager.d.ts| -|新增||模块名: ohos.app.ability.appManager
类名: appManager
方法名 or 属性名: getAppMemorySize|@ohos.app.ability.appManager.d.ts| -|新增||模块名: ohos.app.ability.appManager
类名: appManager
方法名 or 属性名: getProcessRunningInformation|@ohos.app.ability.appManager.d.ts| -|新增||模块名: ohos.app.ability.appManager
类名: appManager
方法名 or 属性名: getProcessRunningInformation|@ohos.app.ability.appManager.d.ts| -|新增||模块名: ohos.app.ability.appRecovery
类名: appRecovery|@ohos.app.ability.appRecovery.d.ts| -|新增||模块名: ohos.app.ability.appRecovery
类名: RestartFlag|@ohos.app.ability.appRecovery.d.ts| -|新增||模块名: ohos.app.ability.appRecovery
类名: RestartFlag
方法名 or 属性名: ALWAYS_RESTART|@ohos.app.ability.appRecovery.d.ts| -|新增||模块名: ohos.app.ability.appRecovery
类名: RestartFlag
方法名 or 属性名: CPP_CRASH_NO_RESTART|@ohos.app.ability.appRecovery.d.ts| -|新增||模块名: ohos.app.ability.appRecovery
类名: RestartFlag
方法名 or 属性名: JS_CRASH_NO_RESTART|@ohos.app.ability.appRecovery.d.ts| -|新增||模块名: ohos.app.ability.appRecovery
类名: RestartFlag
方法名 or 属性名: APP_FREEZE_NO_RESTART|@ohos.app.ability.appRecovery.d.ts| -|新增||模块名: ohos.app.ability.appRecovery
类名: RestartFlag
方法名 or 属性名: NO_RESTART|@ohos.app.ability.appRecovery.d.ts| -|新增||模块名: ohos.app.ability.appRecovery
类名: SaveOccasionFlag|@ohos.app.ability.appRecovery.d.ts| -|新增||模块名: ohos.app.ability.appRecovery
类名: SaveOccasionFlag
方法名 or 属性名: SAVE_WHEN_ERROR|@ohos.app.ability.appRecovery.d.ts| -|新增||模块名: ohos.app.ability.appRecovery
类名: SaveOccasionFlag
方法名 or 属性名: SAVE_WHEN_BACKGROUND|@ohos.app.ability.appRecovery.d.ts| -|新增||模块名: ohos.app.ability.appRecovery
类名: SaveModeFlag|@ohos.app.ability.appRecovery.d.ts| -|新增||模块名: ohos.app.ability.appRecovery
类名: SaveModeFlag
方法名 or 属性名: SAVE_WITH_FILE|@ohos.app.ability.appRecovery.d.ts| -|新增||模块名: ohos.app.ability.appRecovery
类名: SaveModeFlag
方法名 or 属性名: SAVE_WITH_SHARED_MEMORY|@ohos.app.ability.appRecovery.d.ts| -|新增||模块名: ohos.app.ability.appRecovery
类名: appRecovery
方法名 or 属性名: enableAppRecovery|@ohos.app.ability.appRecovery.d.ts| -|新增||模块名: ohos.app.ability.appRecovery
类名: appRecovery
方法名 or 属性名: restartApp|@ohos.app.ability.appRecovery.d.ts| -|新增||模块名: ohos.app.ability.appRecovery
类名: appRecovery
方法名 or 属性名: saveAppState|@ohos.app.ability.appRecovery.d.ts| -|新增||模块名: ohos.app.ability.common
类名: common|@ohos.app.ability.common.d.ts| -|新增||模块名: ohos.app.ability.common
类名: AreaMode|@ohos.app.ability.common.d.ts| -|新增||模块名: ohos.app.ability.common
类名: AreaMode
方法名 or 属性名: EL1|@ohos.app.ability.common.d.ts| -|新增||模块名: ohos.app.ability.common
类名: AreaMode
方法名 or 属性名: EL2|@ohos.app.ability.common.d.ts| -|新增||模块名: ohos.app.ability.Configuration
类名: Configuration|@ohos.app.ability.Configuration.d.ts| -|新增||模块名: ohos.app.ability.Configuration
类名: Configuration
方法名 or 属性名: language|@ohos.app.ability.Configuration.d.ts| -|新增||模块名: ohos.app.ability.Configuration
类名: Configuration
方法名 or 属性名: colorMode|@ohos.app.ability.Configuration.d.ts| -|新增||模块名: ohos.app.ability.Configuration
类名: Configuration
方法名 or 属性名: direction|@ohos.app.ability.Configuration.d.ts| -|新增||模块名: ohos.app.ability.Configuration
类名: Configuration
方法名 or 属性名: screenDensity|@ohos.app.ability.Configuration.d.ts| -|新增||模块名: ohos.app.ability.Configuration
类名: Configuration
方法名 or 属性名: displayId|@ohos.app.ability.Configuration.d.ts| -|新增||模块名: ohos.app.ability.Configuration
类名: Configuration
方法名 or 属性名: hasPointerDevice|@ohos.app.ability.Configuration.d.ts| -|新增||模块名: ohos.app.ability.ConfigurationConstant
类名: ConfigurationConstant|@ohos.app.ability.ConfigurationConstant.d.ts| -|新增||模块名: ohos.app.ability.ConfigurationConstant
类名: ColorMode|@ohos.app.ability.ConfigurationConstant.d.ts| -|新增||模块名: ohos.app.ability.ConfigurationConstant
类名: ColorMode
方法名 or 属性名: COLOR_MODE_NOT_SET|@ohos.app.ability.ConfigurationConstant.d.ts| -|新增||模块名: ohos.app.ability.ConfigurationConstant
类名: ColorMode
方法名 or 属性名: COLOR_MODE_DARK|@ohos.app.ability.ConfigurationConstant.d.ts| -|新增||模块名: ohos.app.ability.ConfigurationConstant
类名: ColorMode
方法名 or 属性名: COLOR_MODE_LIGHT|@ohos.app.ability.ConfigurationConstant.d.ts| -|新增||模块名: ohos.app.ability.ConfigurationConstant
类名: Direction|@ohos.app.ability.ConfigurationConstant.d.ts| -|新增||模块名: ohos.app.ability.ConfigurationConstant
类名: Direction
方法名 or 属性名: DIRECTION_NOT_SET|@ohos.app.ability.ConfigurationConstant.d.ts| -|新增||模块名: ohos.app.ability.ConfigurationConstant
类名: Direction
方法名 or 属性名: DIRECTION_VERTICAL|@ohos.app.ability.ConfigurationConstant.d.ts| -|新增||模块名: ohos.app.ability.ConfigurationConstant
类名: Direction
方法名 or 属性名: DIRECTION_HORIZONTAL|@ohos.app.ability.ConfigurationConstant.d.ts| -|新增||模块名: ohos.app.ability.ConfigurationConstant
类名: ScreenDensity|@ohos.app.ability.ConfigurationConstant.d.ts| -|新增||模块名: ohos.app.ability.ConfigurationConstant
类名: ScreenDensity
方法名 or 属性名: SCREEN_DENSITY_NOT_SET|@ohos.app.ability.ConfigurationConstant.d.ts| -|新增||模块名: ohos.app.ability.ConfigurationConstant
类名: ScreenDensity
方法名 or 属性名: SCREEN_DENSITY_SDPI|@ohos.app.ability.ConfigurationConstant.d.ts| -|新增||模块名: ohos.app.ability.ConfigurationConstant
类名: ScreenDensity
方法名 or 属性名: SCREEN_DENSITY_MDPI|@ohos.app.ability.ConfigurationConstant.d.ts| -|新增||模块名: ohos.app.ability.ConfigurationConstant
类名: ScreenDensity
方法名 or 属性名: SCREEN_DENSITY_LDPI|@ohos.app.ability.ConfigurationConstant.d.ts| -|新增||模块名: ohos.app.ability.ConfigurationConstant
类名: ScreenDensity
方法名 or 属性名: SCREEN_DENSITY_XLDPI|@ohos.app.ability.ConfigurationConstant.d.ts| -|新增||模块名: ohos.app.ability.ConfigurationConstant
类名: ScreenDensity
方法名 or 属性名: SCREEN_DENSITY_XXLDPI|@ohos.app.ability.ConfigurationConstant.d.ts| -|新增||模块名: ohos.app.ability.ConfigurationConstant
类名: ScreenDensity
方法名 or 属性名: SCREEN_DENSITY_XXXLDPI|@ohos.app.ability.ConfigurationConstant.d.ts| -|新增||模块名: ohos.app.ability.contextConstant
类名: contextConstant|@ohos.app.ability.contextConstant.d.ts| -|新增||模块名: ohos.app.ability.contextConstant
类名: AreaMode|@ohos.app.ability.contextConstant.d.ts| -|新增||模块名: ohos.app.ability.contextConstant
类名: AreaMode
方法名 or 属性名: EL1|@ohos.app.ability.contextConstant.d.ts| -|新增||模块名: ohos.app.ability.contextConstant
类名: AreaMode
方法名 or 属性名: EL2|@ohos.app.ability.contextConstant.d.ts| -|新增||模块名: ohos.app.ability.EnvironmentCallback
类名: EnvironmentCallback|@ohos.app.ability.EnvironmentCallback.d.ts| -|新增||模块名: ohos.app.ability.EnvironmentCallback
类名: EnvironmentCallback
方法名 or 属性名: onConfigurationUpdated|@ohos.app.ability.EnvironmentCallback.d.ts| -|新增||模块名: ohos.app.ability.errorManager
类名: errorManager|@ohos.app.ability.errorManager.d.ts| -|新增||模块名: ohos.app.ability.errorManager
类名: errorManager
方法名 or 属性名: on_error|@ohos.app.ability.errorManager.d.ts| -|新增||模块名: ohos.app.ability.errorManager
类名: errorManager
方法名 or 属性名: off_error|@ohos.app.ability.errorManager.d.ts| -|新增||模块名: ohos.app.ability.errorManager
类名: errorManager
方法名 or 属性名: off_error|@ohos.app.ability.errorManager.d.ts| -|新增||模块名: ohos.app.ability.ExtensionAbility
类名: ExtensionAbility|@ohos.app.ability.ExtensionAbility.d.ts| -|新增||模块名: ohos.app.ability.missionManager
类名: missionManager|@ohos.app.ability.missionManager.d.ts| -|新增||模块名: ohos.app.ability.missionManager
类名: missionManager
方法名 or 属性名: on_mission|@ohos.app.ability.missionManager.d.ts| -|新增||模块名: ohos.app.ability.missionManager
类名: missionManager
方法名 or 属性名: off_mission|@ohos.app.ability.missionManager.d.ts| -|新增||模块名: ohos.app.ability.missionManager
类名: missionManager
方法名 or 属性名: off_mission|@ohos.app.ability.missionManager.d.ts| -|新增||模块名: ohos.app.ability.missionManager
类名: missionManager
方法名 or 属性名: getMissionInfo|@ohos.app.ability.missionManager.d.ts| -|新增||模块名: ohos.app.ability.missionManager
类名: missionManager
方法名 or 属性名: getMissionInfo|@ohos.app.ability.missionManager.d.ts| -|新增||模块名: ohos.app.ability.missionManager
类名: missionManager
方法名 or 属性名: getMissionInfos|@ohos.app.ability.missionManager.d.ts| -|新增||模块名: ohos.app.ability.missionManager
类名: missionManager
方法名 or 属性名: getMissionInfos|@ohos.app.ability.missionManager.d.ts| -|新增||模块名: ohos.app.ability.missionManager
类名: missionManager
方法名 or 属性名: getMissionSnapShot|@ohos.app.ability.missionManager.d.ts| -|新增||模块名: ohos.app.ability.missionManager
类名: missionManager
方法名 or 属性名: getMissionSnapShot|@ohos.app.ability.missionManager.d.ts| -|新增||模块名: ohos.app.ability.missionManager
类名: missionManager
方法名 or 属性名: getLowResolutionMissionSnapShot|@ohos.app.ability.missionManager.d.ts| -|新增||模块名: ohos.app.ability.missionManager
类名: missionManager
方法名 or 属性名: getLowResolutionMissionSnapShot|@ohos.app.ability.missionManager.d.ts| -|新增||模块名: ohos.app.ability.missionManager
类名: missionManager
方法名 or 属性名: lockMission|@ohos.app.ability.missionManager.d.ts| -|新增||模块名: ohos.app.ability.missionManager
类名: missionManager
方法名 or 属性名: lockMission|@ohos.app.ability.missionManager.d.ts| -|新增||模块名: ohos.app.ability.missionManager
类名: missionManager
方法名 or 属性名: unlockMission|@ohos.app.ability.missionManager.d.ts| -|新增||模块名: ohos.app.ability.missionManager
类名: missionManager
方法名 or 属性名: unlockMission|@ohos.app.ability.missionManager.d.ts| -|新增||模块名: ohos.app.ability.missionManager
类名: missionManager
方法名 or 属性名: clearMission|@ohos.app.ability.missionManager.d.ts| -|新增||模块名: ohos.app.ability.missionManager
类名: missionManager
方法名 or 属性名: clearMission|@ohos.app.ability.missionManager.d.ts| -|新增||模块名: ohos.app.ability.missionManager
类名: missionManager
方法名 or 属性名: clearAllMissions|@ohos.app.ability.missionManager.d.ts| -|新增||模块名: ohos.app.ability.missionManager
类名: missionManager
方法名 or 属性名: clearAllMissions|@ohos.app.ability.missionManager.d.ts| -|新增||模块名: ohos.app.ability.missionManager
类名: missionManager
方法名 or 属性名: moveMissionToFront|@ohos.app.ability.missionManager.d.ts| -|新增||模块名: ohos.app.ability.missionManager
类名: missionManager
方法名 or 属性名: moveMissionToFront|@ohos.app.ability.missionManager.d.ts| -|新增||模块名: ohos.app.ability.missionManager
类名: missionManager
方法名 or 属性名: moveMissionToFront|@ohos.app.ability.missionManager.d.ts| -|新增||模块名: ohos.app.ability.quickFixManager
类名: quickFixManager|@ohos.app.ability.quickFixManager.d.ts| -|新增||模块名: ohos.app.ability.quickFixManager
类名: HapModuleQuickFixInfo|@ohos.app.ability.quickFixManager.d.ts| -|新增||模块名: ohos.app.ability.quickFixManager
类名: HapModuleQuickFixInfo
方法名 or 属性名: moduleName|@ohos.app.ability.quickFixManager.d.ts| -|新增||模块名: ohos.app.ability.quickFixManager
类名: HapModuleQuickFixInfo
方法名 or 属性名: originHapHash|@ohos.app.ability.quickFixManager.d.ts| -|新增||模块名: ohos.app.ability.quickFixManager
类名: HapModuleQuickFixInfo
方法名 or 属性名: quickFixFilePath|@ohos.app.ability.quickFixManager.d.ts| -|新增||模块名: ohos.app.ability.quickFixManager
类名: ApplicationQuickFixInfo|@ohos.app.ability.quickFixManager.d.ts| -|新增||模块名: ohos.app.ability.quickFixManager
类名: ApplicationQuickFixInfo
方法名 or 属性名: bundleName|@ohos.app.ability.quickFixManager.d.ts| -|新增||模块名: ohos.app.ability.quickFixManager
类名: ApplicationQuickFixInfo
方法名 or 属性名: bundleVersionCode|@ohos.app.ability.quickFixManager.d.ts| -|新增||模块名: ohos.app.ability.quickFixManager
类名: ApplicationQuickFixInfo
方法名 or 属性名: bundleVersionName|@ohos.app.ability.quickFixManager.d.ts| -|新增||模块名: ohos.app.ability.quickFixManager
类名: ApplicationQuickFixInfo
方法名 or 属性名: quickFixVersionCode|@ohos.app.ability.quickFixManager.d.ts| -|新增||模块名: ohos.app.ability.quickFixManager
类名: ApplicationQuickFixInfo
方法名 or 属性名: quickFixVersionName|@ohos.app.ability.quickFixManager.d.ts| -|新增||模块名: ohos.app.ability.quickFixManager
类名: ApplicationQuickFixInfo
方法名 or 属性名: hapModuleQuickFixInfo|@ohos.app.ability.quickFixManager.d.ts| -|新增||模块名: ohos.app.ability.quickFixManager
类名: quickFixManager
方法名 or 属性名: applyQuickFix|@ohos.app.ability.quickFixManager.d.ts| -|新增||模块名: ohos.app.ability.quickFixManager
类名: quickFixManager
方法名 or 属性名: applyQuickFix|@ohos.app.ability.quickFixManager.d.ts| -|新增||模块名: ohos.app.ability.quickFixManager
类名: quickFixManager
方法名 or 属性名: getApplicationQuickFixInfo|@ohos.app.ability.quickFixManager.d.ts| -|新增||模块名: ohos.app.ability.quickFixManager
类名: quickFixManager
方法名 or 属性名: getApplicationQuickFixInfo|@ohos.app.ability.quickFixManager.d.ts| -|新增||模块名: ohos.app.ability.ServiceExtensionAbility
类名: ServiceExtensionAbility|@ohos.app.ability.ServiceExtensionAbility.d.ts| -|新增||模块名: ohos.app.ability.ServiceExtensionAbility
类名: ServiceExtensionAbility
方法名 or 属性名: context|@ohos.app.ability.ServiceExtensionAbility.d.ts| -|新增||模块名: ohos.app.ability.ServiceExtensionAbility
类名: ServiceExtensionAbility
方法名 or 属性名: onCreate|@ohos.app.ability.ServiceExtensionAbility.d.ts| -|新增||模块名: ohos.app.ability.ServiceExtensionAbility
类名: ServiceExtensionAbility
方法名 or 属性名: onDestroy|@ohos.app.ability.ServiceExtensionAbility.d.ts| -|新增||模块名: ohos.app.ability.ServiceExtensionAbility
类名: ServiceExtensionAbility
方法名 or 属性名: onRequest|@ohos.app.ability.ServiceExtensionAbility.d.ts| -|新增||模块名: ohos.app.ability.ServiceExtensionAbility
类名: ServiceExtensionAbility
方法名 or 属性名: onConnect|@ohos.app.ability.ServiceExtensionAbility.d.ts| -|新增||模块名: ohos.app.ability.ServiceExtensionAbility
类名: ServiceExtensionAbility
方法名 or 属性名: onDisconnect|@ohos.app.ability.ServiceExtensionAbility.d.ts| -|新增||模块名: ohos.app.ability.ServiceExtensionAbility
类名: ServiceExtensionAbility
方法名 or 属性名: onReconnect|@ohos.app.ability.ServiceExtensionAbility.d.ts| -|新增||模块名: ohos.app.ability.ServiceExtensionAbility
类名: ServiceExtensionAbility
方法名 or 属性名: onConfigurationUpdate|@ohos.app.ability.ServiceExtensionAbility.d.ts| -|新增||模块名: ohos.app.ability.ServiceExtensionAbility
类名: ServiceExtensionAbility
方法名 or 属性名: onDump|@ohos.app.ability.ServiceExtensionAbility.d.ts| -|新增||模块名: ohos.app.ability.StartOptions
类名: StartOptions|@ohos.app.ability.StartOptions.d.ts| -|新增||模块名: ohos.app.ability.StartOptions
类名: StartOptions
方法名 or 属性名: windowMode|@ohos.app.ability.StartOptions.d.ts| -|新增||模块名: ohos.app.ability.StartOptions
类名: StartOptions
方法名 or 属性名: displayId|@ohos.app.ability.StartOptions.d.ts| -|新增||模块名: ohos.app.ability.UIAbility
类名: OnReleaseCallback|@ohos.app.ability.UIAbility.d.ts| -|新增||模块名: ohos.app.ability.UIAbility
类名: OnReleaseCallback
方法名 or 属性名: OnReleaseCallback|@ohos.app.ability.UIAbility.d.ts| -|新增||模块名: ohos.app.ability.UIAbility
类名: CalleeCallback|@ohos.app.ability.UIAbility.d.ts| -|新增||模块名: ohos.app.ability.UIAbility
类名: CalleeCallback
方法名 or 属性名: CalleeCallback|@ohos.app.ability.UIAbility.d.ts| -|新增||模块名: ohos.app.ability.UIAbility
类名: Caller|@ohos.app.ability.UIAbility.d.ts| -|新增||模块名: ohos.app.ability.UIAbility
类名: Caller
方法名 or 属性名: call|@ohos.app.ability.UIAbility.d.ts| -|新增||模块名: ohos.app.ability.UIAbility
类名: Caller
方法名 or 属性名: callWithResult|@ohos.app.ability.UIAbility.d.ts| -|新增||模块名: ohos.app.ability.UIAbility
类名: Caller
方法名 or 属性名: release|@ohos.app.ability.UIAbility.d.ts| -|新增||模块名: ohos.app.ability.UIAbility
类名: Caller
方法名 or 属性名: onRelease|@ohos.app.ability.UIAbility.d.ts| -|新增||模块名: ohos.app.ability.UIAbility
类名: Caller
方法名 or 属性名: on_release|@ohos.app.ability.UIAbility.d.ts| -|新增||模块名: ohos.app.ability.UIAbility
类名: Caller
方法名 or 属性名: off_release|@ohos.app.ability.UIAbility.d.ts| -|新增||模块名: ohos.app.ability.UIAbility
类名: Caller
方法名 or 属性名: off_release|@ohos.app.ability.UIAbility.d.ts| -|新增||模块名: ohos.app.ability.UIAbility
类名: Callee|@ohos.app.ability.UIAbility.d.ts| -|新增||模块名: ohos.app.ability.UIAbility
类名: Callee
方法名 or 属性名: on|@ohos.app.ability.UIAbility.d.ts| -|新增||模块名: ohos.app.ability.UIAbility
类名: Callee
方法名 or 属性名: off|@ohos.app.ability.UIAbility.d.ts| -|新增||模块名: ohos.app.ability.UIAbility
类名: UIAbility|@ohos.app.ability.UIAbility.d.ts| -|新增||模块名: ohos.app.ability.UIAbility
类名: UIAbility
方法名 or 属性名: context|@ohos.app.ability.UIAbility.d.ts| -|新增||模块名: ohos.app.ability.UIAbility
类名: UIAbility
方法名 or 属性名: launchWant|@ohos.app.ability.UIAbility.d.ts| -|新增||模块名: ohos.app.ability.UIAbility
类名: UIAbility
方法名 or 属性名: lastRequestWant|@ohos.app.ability.UIAbility.d.ts| -|新增||模块名: ohos.app.ability.UIAbility
类名: UIAbility
方法名 or 属性名: callee|@ohos.app.ability.UIAbility.d.ts| -|新增||模块名: ohos.app.ability.UIAbility
类名: UIAbility
方法名 or 属性名: onCreate|@ohos.app.ability.UIAbility.d.ts| -|新增||模块名: ohos.app.ability.UIAbility
类名: UIAbility
方法名 or 属性名: onWindowStageCreate|@ohos.app.ability.UIAbility.d.ts| -|新增||模块名: ohos.app.ability.UIAbility
类名: UIAbility
方法名 or 属性名: onWindowStageDestroy|@ohos.app.ability.UIAbility.d.ts| -|新增||模块名: ohos.app.ability.UIAbility
类名: UIAbility
方法名 or 属性名: onWindowStageRestore|@ohos.app.ability.UIAbility.d.ts| -|新增||模块名: ohos.app.ability.UIAbility
类名: UIAbility
方法名 or 属性名: onDestroy|@ohos.app.ability.UIAbility.d.ts| -|新增||模块名: ohos.app.ability.UIAbility
类名: UIAbility
方法名 or 属性名: onForeground|@ohos.app.ability.UIAbility.d.ts| -|新增||模块名: ohos.app.ability.UIAbility
类名: UIAbility
方法名 or 属性名: onBackground|@ohos.app.ability.UIAbility.d.ts| -|新增||模块名: ohos.app.ability.UIAbility
类名: UIAbility
方法名 or 属性名: onContinue|@ohos.app.ability.UIAbility.d.ts| -|新增||模块名: ohos.app.ability.UIAbility
类名: UIAbility
方法名 or 属性名: onNewWant|@ohos.app.ability.UIAbility.d.ts| -|新增||模块名: ohos.app.ability.UIAbility
类名: UIAbility
方法名 or 属性名: onDump|@ohos.app.ability.UIAbility.d.ts| -|新增||模块名: ohos.app.ability.UIAbility
类名: UIAbility
方法名 or 属性名: onSaveState|@ohos.app.ability.UIAbility.d.ts| -|新增||模块名: ohos.app.ability.Want
类名: Want|@ohos.app.ability.Want.d.ts| -|新增||模块名: ohos.app.ability.Want
类名: Want
方法名 or 属性名: deviceId|@ohos.app.ability.Want.d.ts| -|新增||模块名: ohos.app.ability.Want
类名: Want
方法名 or 属性名: bundleName|@ohos.app.ability.Want.d.ts| -|新增||模块名: ohos.app.ability.Want
类名: Want
方法名 or 属性名: abilityName|@ohos.app.ability.Want.d.ts| -|新增||模块名: ohos.app.ability.Want
类名: Want
方法名 or 属性名: uri|@ohos.app.ability.Want.d.ts| -|新增||模块名: ohos.app.ability.Want
类名: Want
方法名 or 属性名: type|@ohos.app.ability.Want.d.ts| -|新增||模块名: ohos.app.ability.Want
类名: Want
方法名 or 属性名: flags|@ohos.app.ability.Want.d.ts| -|新增||模块名: ohos.app.ability.Want
类名: Want
方法名 or 属性名: action|@ohos.app.ability.Want.d.ts| -|新增||模块名: ohos.app.ability.Want
类名: Want
方法名 or 属性名: parameters|@ohos.app.ability.Want.d.ts| -|新增||模块名: ohos.app.ability.Want
类名: Want
方法名 or 属性名: entities|@ohos.app.ability.Want.d.ts| -|新增||模块名: ohos.app.ability.Want
类名: Want
方法名 or 属性名: moduleName|@ohos.app.ability.Want.d.ts| -|新增||模块名: ohos.app.ability.wantAgent
类名: wantAgent|@ohos.app.ability.wantAgent.d.ts| -|新增||模块名: ohos.app.ability.wantAgent
类名: wantAgent
方法名 or 属性名: getBundleName|@ohos.app.ability.wantAgent.d.ts| -|新增||模块名: ohos.app.ability.wantAgent
类名: wantAgent
方法名 or 属性名: getBundleName|@ohos.app.ability.wantAgent.d.ts| -|新增||模块名: ohos.app.ability.wantAgent
类名: wantAgent
方法名 or 属性名: getUid|@ohos.app.ability.wantAgent.d.ts| -|新增||模块名: ohos.app.ability.wantAgent
类名: wantAgent
方法名 or 属性名: getUid|@ohos.app.ability.wantAgent.d.ts| -|新增||模块名: ohos.app.ability.wantAgent
类名: wantAgent
方法名 or 属性名: getWant|@ohos.app.ability.wantAgent.d.ts| -|新增||模块名: ohos.app.ability.wantAgent
类名: wantAgent
方法名 or 属性名: getWant|@ohos.app.ability.wantAgent.d.ts| -|新增||模块名: ohos.app.ability.wantAgent
类名: wantAgent
方法名 or 属性名: cancel|@ohos.app.ability.wantAgent.d.ts| -|新增||模块名: ohos.app.ability.wantAgent
类名: wantAgent
方法名 or 属性名: cancel|@ohos.app.ability.wantAgent.d.ts| -|新增||模块名: ohos.app.ability.wantAgent
类名: wantAgent
方法名 or 属性名: trigger|@ohos.app.ability.wantAgent.d.ts| -|新增||模块名: ohos.app.ability.wantAgent
类名: wantAgent
方法名 or 属性名: trigger|@ohos.app.ability.wantAgent.d.ts| -|新增||模块名: ohos.app.ability.wantAgent
类名: wantAgent
方法名 or 属性名: equal|@ohos.app.ability.wantAgent.d.ts| -|新增||模块名: ohos.app.ability.wantAgent
类名: wantAgent
方法名 or 属性名: equal|@ohos.app.ability.wantAgent.d.ts| -|新增||模块名: ohos.app.ability.wantAgent
类名: wantAgent
方法名 or 属性名: getWantAgent|@ohos.app.ability.wantAgent.d.ts| -|新增||模块名: ohos.app.ability.wantAgent
类名: wantAgent
方法名 or 属性名: getWantAgent|@ohos.app.ability.wantAgent.d.ts| -|新增||模块名: ohos.app.ability.wantAgent
类名: wantAgent
方法名 or 属性名: getOperationType|@ohos.app.ability.wantAgent.d.ts| -|新增||模块名: ohos.app.ability.wantAgent
类名: wantAgent
方法名 or 属性名: getOperationType|@ohos.app.ability.wantAgent.d.ts| -|新增||模块名: ohos.app.ability.wantAgent
类名: WantAgentFlags|@ohos.app.ability.wantAgent.d.ts| -|新增||模块名: ohos.app.ability.wantAgent
类名: WantAgentFlags
方法名 or 属性名: ONE_TIME_FLAG|@ohos.app.ability.wantAgent.d.ts| -|新增||模块名: ohos.app.ability.wantAgent
类名: WantAgentFlags
方法名 or 属性名: NO_BUILD_FLAG|@ohos.app.ability.wantAgent.d.ts| -|新增||模块名: ohos.app.ability.wantAgent
类名: WantAgentFlags
方法名 or 属性名: CANCEL_PRESENT_FLAG|@ohos.app.ability.wantAgent.d.ts| -|新增||模块名: ohos.app.ability.wantAgent
类名: WantAgentFlags
方法名 or 属性名: UPDATE_PRESENT_FLAG|@ohos.app.ability.wantAgent.d.ts| -|新增||模块名: ohos.app.ability.wantAgent
类名: WantAgentFlags
方法名 or 属性名: CONSTANT_FLAG|@ohos.app.ability.wantAgent.d.ts| -|新增||模块名: ohos.app.ability.wantAgent
类名: WantAgentFlags
方法名 or 属性名: REPLACE_ELEMENT|@ohos.app.ability.wantAgent.d.ts| -|新增||模块名: ohos.app.ability.wantAgent
类名: WantAgentFlags
方法名 or 属性名: REPLACE_ACTION|@ohos.app.ability.wantAgent.d.ts| -|新增||模块名: ohos.app.ability.wantAgent
类名: WantAgentFlags
方法名 or 属性名: REPLACE_URI|@ohos.app.ability.wantAgent.d.ts| -|新增||模块名: ohos.app.ability.wantAgent
类名: WantAgentFlags
方法名 or 属性名: REPLACE_ENTITIES|@ohos.app.ability.wantAgent.d.ts| -|新增||模块名: ohos.app.ability.wantAgent
类名: WantAgentFlags
方法名 or 属性名: REPLACE_BUNDLE|@ohos.app.ability.wantAgent.d.ts| -|新增||模块名: ohos.app.ability.wantAgent
类名: OperationType|@ohos.app.ability.wantAgent.d.ts| -|新增||模块名: ohos.app.ability.wantAgent
类名: OperationType
方法名 or 属性名: UNKNOWN_TYPE|@ohos.app.ability.wantAgent.d.ts| -|新增||模块名: ohos.app.ability.wantAgent
类名: OperationType
方法名 or 属性名: START_ABILITY|@ohos.app.ability.wantAgent.d.ts| -|新增||模块名: ohos.app.ability.wantAgent
类名: OperationType
方法名 or 属性名: START_ABILITIES|@ohos.app.ability.wantAgent.d.ts| -|新增||模块名: ohos.app.ability.wantAgent
类名: OperationType
方法名 or 属性名: START_SERVICE|@ohos.app.ability.wantAgent.d.ts| -|新增||模块名: ohos.app.ability.wantAgent
类名: OperationType
方法名 or 属性名: SEND_COMMON_EVENT|@ohos.app.ability.wantAgent.d.ts| -|新增||模块名: ohos.app.ability.wantAgent
类名: CompleteData|@ohos.app.ability.wantAgent.d.ts| -|新增||模块名: ohos.app.ability.wantAgent
类名: CompleteData
方法名 or 属性名: info|@ohos.app.ability.wantAgent.d.ts| -|新增||模块名: ohos.app.ability.wantAgent
类名: CompleteData
方法名 or 属性名: want|@ohos.app.ability.wantAgent.d.ts| -|新增||模块名: ohos.app.ability.wantAgent
类名: CompleteData
方法名 or 属性名: finalCode|@ohos.app.ability.wantAgent.d.ts| -|新增||模块名: ohos.app.ability.wantAgent
类名: CompleteData
方法名 or 属性名: finalData|@ohos.app.ability.wantAgent.d.ts| -|新增||模块名: ohos.app.ability.wantAgent
类名: CompleteData
方法名 or 属性名: extraInfo|@ohos.app.ability.wantAgent.d.ts| -|新增||模块名: ohos.app.ability.wantConstant
类名: wantConstant|@ohos.app.ability.wantConstant.d.ts| -|新增||模块名: ohos.app.ability.wantConstant
类名: Action|@ohos.app.ability.wantConstant.d.ts| -|新增||模块名: ohos.app.ability.wantConstant
类名: Action
方法名 or 属性名: ACTION_HOME|@ohos.app.ability.wantConstant.d.ts| -|新增||模块名: ohos.app.ability.wantConstant
类名: Action
方法名 or 属性名: ACTION_DIAL|@ohos.app.ability.wantConstant.d.ts| -|新增||模块名: ohos.app.ability.wantConstant
类名: Action
方法名 or 属性名: ACTION_SEARCH|@ohos.app.ability.wantConstant.d.ts| -|新增||模块名: ohos.app.ability.wantConstant
类名: Action
方法名 or 属性名: ACTION_WIRELESS_SETTINGS|@ohos.app.ability.wantConstant.d.ts| -|新增||模块名: ohos.app.ability.wantConstant
类名: Action
方法名 or 属性名: ACTION_MANAGE_APPLICATIONS_SETTINGS|@ohos.app.ability.wantConstant.d.ts| -|新增||模块名: ohos.app.ability.wantConstant
类名: Action
方法名 or 属性名: ACTION_APPLICATION_DETAILS_SETTINGS|@ohos.app.ability.wantConstant.d.ts| -|新增||模块名: ohos.app.ability.wantConstant
类名: Action
方法名 or 属性名: ACTION_SET_ALARM|@ohos.app.ability.wantConstant.d.ts| -|新增||模块名: ohos.app.ability.wantConstant
类名: Action
方法名 or 属性名: ACTION_SHOW_ALARMS|@ohos.app.ability.wantConstant.d.ts| -|新增||模块名: ohos.app.ability.wantConstant
类名: Action
方法名 or 属性名: ACTION_SNOOZE_ALARM|@ohos.app.ability.wantConstant.d.ts| -|新增||模块名: ohos.app.ability.wantConstant
类名: Action
方法名 or 属性名: ACTION_DISMISS_ALARM|@ohos.app.ability.wantConstant.d.ts| -|新增||模块名: ohos.app.ability.wantConstant
类名: Action
方法名 or 属性名: ACTION_DISMISS_TIMER|@ohos.app.ability.wantConstant.d.ts| -|新增||模块名: ohos.app.ability.wantConstant
类名: Action
方法名 or 属性名: ACTION_SEND_SMS|@ohos.app.ability.wantConstant.d.ts| -|新增||模块名: ohos.app.ability.wantConstant
类名: Action
方法名 or 属性名: ACTION_CHOOSE|@ohos.app.ability.wantConstant.d.ts| -|新增||模块名: ohos.app.ability.wantConstant
类名: Action
方法名 or 属性名: ACTION_IMAGE_CAPTURE|@ohos.app.ability.wantConstant.d.ts| -|新增||模块名: ohos.app.ability.wantConstant
类名: Action
方法名 or 属性名: ACTION_VIDEO_CAPTURE|@ohos.app.ability.wantConstant.d.ts| -|新增||模块名: ohos.app.ability.wantConstant
类名: Action
方法名 or 属性名: ACTION_SELECT|@ohos.app.ability.wantConstant.d.ts| -|新增||模块名: ohos.app.ability.wantConstant
类名: Action
方法名 or 属性名: ACTION_SEND_DATA|@ohos.app.ability.wantConstant.d.ts| -|新增||模块名: ohos.app.ability.wantConstant
类名: Action
方法名 or 属性名: ACTION_SEND_MULTIPLE_DATA|@ohos.app.ability.wantConstant.d.ts| -|新增||模块名: ohos.app.ability.wantConstant
类名: Action
方法名 or 属性名: ACTION_SCAN_MEDIA_FILE|@ohos.app.ability.wantConstant.d.ts| -|新增||模块名: ohos.app.ability.wantConstant
类名: Action
方法名 or 属性名: ACTION_VIEW_DATA|@ohos.app.ability.wantConstant.d.ts| -|新增||模块名: ohos.app.ability.wantConstant
类名: Action
方法名 or 属性名: ACTION_EDIT_DATA|@ohos.app.ability.wantConstant.d.ts| -|新增||模块名: ohos.app.ability.wantConstant
类名: Action
方法名 or 属性名: INTENT_PARAMS_INTENT|@ohos.app.ability.wantConstant.d.ts| -|新增||模块名: ohos.app.ability.wantConstant
类名: Action
方法名 or 属性名: INTENT_PARAMS_TITLE|@ohos.app.ability.wantConstant.d.ts| -|新增||模块名: ohos.app.ability.wantConstant
类名: Action
方法名 or 属性名: ACTION_FILE_SELECT|@ohos.app.ability.wantConstant.d.ts| -|新增||模块名: ohos.app.ability.wantConstant
类名: Action
方法名 or 属性名: PARAMS_STREAM|@ohos.app.ability.wantConstant.d.ts| -|新增||模块名: ohos.app.ability.wantConstant
类名: Action
方法名 or 属性名: ACTION_APP_ACCOUNT_AUTH|@ohos.app.ability.wantConstant.d.ts| -|新增||模块名: ohos.app.ability.wantConstant
类名: Action
方法名 or 属性名: ACTION_MARKET_DOWNLOAD|@ohos.app.ability.wantConstant.d.ts| -|新增||模块名: ohos.app.ability.wantConstant
类名: Action
方法名 or 属性名: ACTION_MARKET_CROWDTEST|@ohos.app.ability.wantConstant.d.ts| -|新增||模块名: ohos.app.ability.wantConstant
类名: Action
方法名 or 属性名: DLP_PARAMS_SANDBOX|@ohos.app.ability.wantConstant.d.ts| -|新增||模块名: ohos.app.ability.wantConstant
类名: Action
方法名 or 属性名: DLP_PARAMS_BUNDLE_NAME|@ohos.app.ability.wantConstant.d.ts| -|新增||模块名: ohos.app.ability.wantConstant
类名: Action
方法名 or 属性名: DLP_PARAMS_MODULE_NAME|@ohos.app.ability.wantConstant.d.ts| -|新增||模块名: ohos.app.ability.wantConstant
类名: Action
方法名 or 属性名: DLP_PARAMS_ABILITY_NAME|@ohos.app.ability.wantConstant.d.ts| -|新增||模块名: ohos.app.ability.wantConstant
类名: Action
方法名 or 属性名: DLP_PARAMS_INDEX|@ohos.app.ability.wantConstant.d.ts| -|新增||模块名: ohos.app.ability.wantConstant
类名: Entity|@ohos.app.ability.wantConstant.d.ts| -|新增||模块名: ohos.app.ability.wantConstant
类名: Entity
方法名 or 属性名: ENTITY_DEFAULT|@ohos.app.ability.wantConstant.d.ts| -|新增||模块名: ohos.app.ability.wantConstant
类名: Entity
方法名 or 属性名: ENTITY_HOME|@ohos.app.ability.wantConstant.d.ts| -|新增||模块名: ohos.app.ability.wantConstant
类名: Entity
方法名 or 属性名: ENTITY_VOICE|@ohos.app.ability.wantConstant.d.ts| -|新增||模块名: ohos.app.ability.wantConstant
类名: Entity
方法名 or 属性名: ENTITY_BROWSABLE|@ohos.app.ability.wantConstant.d.ts| -|新增||模块名: ohos.app.ability.wantConstant
类名: Entity
方法名 or 属性名: ENTITY_VIDEO|@ohos.app.ability.wantConstant.d.ts| -|新增||模块名: ohos.app.ability.wantConstant
类名: Flags|@ohos.app.ability.wantConstant.d.ts| -|新增||模块名: ohos.app.ability.wantConstant
类名: Flags
方法名 or 属性名: FLAG_AUTH_READ_URI_PERMISSION|@ohos.app.ability.wantConstant.d.ts| -|新增||模块名: ohos.app.ability.wantConstant
类名: Flags
方法名 or 属性名: FLAG_AUTH_WRITE_URI_PERMISSION|@ohos.app.ability.wantConstant.d.ts| -|新增||模块名: ohos.app.ability.wantConstant
类名: Flags
方法名 or 属性名: FLAG_ABILITY_FORWARD_RESULT|@ohos.app.ability.wantConstant.d.ts| -|新增||模块名: ohos.app.ability.wantConstant
类名: Flags
方法名 or 属性名: FLAG_ABILITY_CONTINUATION|@ohos.app.ability.wantConstant.d.ts| -|新增||模块名: ohos.app.ability.wantConstant
类名: Flags
方法名 or 属性名: FLAG_NOT_OHOS_COMPONENT|@ohos.app.ability.wantConstant.d.ts| -|新增||模块名: ohos.app.ability.wantConstant
类名: Flags
方法名 or 属性名: FLAG_ABILITY_FORM_ENABLED|@ohos.app.ability.wantConstant.d.ts| -|新增||模块名: ohos.app.ability.wantConstant
类名: Flags
方法名 or 属性名: FLAG_AUTH_PERSISTABLE_URI_PERMISSION|@ohos.app.ability.wantConstant.d.ts| -|新增||模块名: ohos.app.ability.wantConstant
类名: Flags
方法名 or 属性名: FLAG_AUTH_PREFIX_URI_PERMISSION|@ohos.app.ability.wantConstant.d.ts| -|新增||模块名: ohos.app.ability.wantConstant
类名: Flags
方法名 or 属性名: FLAG_ABILITYSLICE_MULTI_DEVICE|@ohos.app.ability.wantConstant.d.ts| -|新增||模块名: ohos.app.ability.wantConstant
类名: Flags
方法名 or 属性名: FLAG_START_FOREGROUND_ABILITY|@ohos.app.ability.wantConstant.d.ts| -|新增||模块名: ohos.app.ability.wantConstant
类名: Flags
方法名 or 属性名: FLAG_ABILITY_CONTINUATION_REVERSIBLE|@ohos.app.ability.wantConstant.d.ts| -|新增||模块名: ohos.app.ability.wantConstant
类名: Flags
方法名 or 属性名: FLAG_INSTALL_ON_DEMAND|@ohos.app.ability.wantConstant.d.ts| -|新增||模块名: ohos.app.ability.wantConstant
类名: Flags
方法名 or 属性名: FLAG_INSTALL_WITH_BACKGROUND_MODE|@ohos.app.ability.wantConstant.d.ts| -|新增||模块名: ohos.app.ability.wantConstant
类名: Flags
方法名 or 属性名: FLAG_ABILITY_CLEAR_MISSION|@ohos.app.ability.wantConstant.d.ts| -|新增||模块名: ohos.app.ability.wantConstant
类名: Flags
方法名 or 属性名: FLAG_ABILITY_NEW_MISSION|@ohos.app.ability.wantConstant.d.ts| -|新增||模块名: ohos.app.ability.wantConstant
类名: Flags
方法名 or 属性名: FLAG_ABILITY_MISSION_TOP|@ohos.app.ability.wantConstant.d.ts| -|新增||模块名: ohos.app.form.formBindingData
类名: formBindingData|@ohos.app.form.formBindingData.d.ts| -|新增||模块名: ohos.app.form.formBindingData
类名: formBindingData
方法名 or 属性名: createFormBindingData|@ohos.app.form.formBindingData.d.ts| -|新增||模块名: ohos.app.form.formBindingData
类名: FormBindingData|@ohos.app.form.formBindingData.d.ts| -|新增||模块名: ohos.app.form.formBindingData
类名: FormBindingData
方法名 or 属性名: data|@ohos.app.form.formBindingData.d.ts| -|新增||模块名: ohos.app.form.FormExtensionAbility
类名: FormExtensionAbility|@ohos.app.form.FormExtensionAbility.d.ts| -|新增||模块名: ohos.app.form.FormExtensionAbility
类名: FormExtensionAbility
方法名 or 属性名: context|@ohos.app.form.FormExtensionAbility.d.ts| -|新增||模块名: ohos.app.form.FormExtensionAbility
类名: FormExtensionAbility
方法名 or 属性名: onAddForm|@ohos.app.form.FormExtensionAbility.d.ts| -|新增||模块名: ohos.app.form.FormExtensionAbility
类名: FormExtensionAbility
方法名 or 属性名: onCastToNormalForm|@ohos.app.form.FormExtensionAbility.d.ts| -|新增||模块名: ohos.app.form.FormExtensionAbility
类名: FormExtensionAbility
方法名 or 属性名: onUpdateForm|@ohos.app.form.FormExtensionAbility.d.ts| -|新增||模块名: ohos.app.form.FormExtensionAbility
类名: FormExtensionAbility
方法名 or 属性名: onChangeFormVisibility|@ohos.app.form.FormExtensionAbility.d.ts| -|新增||模块名: ohos.app.form.FormExtensionAbility
类名: FormExtensionAbility
方法名 or 属性名: onFormEvent|@ohos.app.form.FormExtensionAbility.d.ts| -|新增||模块名: ohos.app.form.FormExtensionAbility
类名: FormExtensionAbility
方法名 or 属性名: onRemoveForm|@ohos.app.form.FormExtensionAbility.d.ts| -|新增||模块名: ohos.app.form.FormExtensionAbility
类名: FormExtensionAbility
方法名 or 属性名: onConfigurationUpdate|@ohos.app.form.FormExtensionAbility.d.ts| -|新增||模块名: ohos.app.form.FormExtensionAbility
类名: FormExtensionAbility
方法名 or 属性名: onAcquireFormState|@ohos.app.form.FormExtensionAbility.d.ts| -|新增||模块名: ohos.app.form.FormExtensionAbility
类名: FormExtensionAbility
方法名 or 属性名: onShareForm|@ohos.app.form.FormExtensionAbility.d.ts| -|新增||模块名: ohos.app.form.formHost
类名: formHost|@ohos.app.form.formHost.d.ts| -|新增||模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: deleteForm|@ohos.app.form.formHost.d.ts| -|新增||模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: deleteForm|@ohos.app.form.formHost.d.ts| -|新增||模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: releaseForm|@ohos.app.form.formHost.d.ts| -|新增||模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: releaseForm|@ohos.app.form.formHost.d.ts| -|新增||模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: releaseForm|@ohos.app.form.formHost.d.ts| -|新增||模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: requestForm|@ohos.app.form.formHost.d.ts| -|新增||模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: requestForm|@ohos.app.form.formHost.d.ts| -|新增||模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: castToNormalForm|@ohos.app.form.formHost.d.ts| -|新增||模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: castToNormalForm|@ohos.app.form.formHost.d.ts| -|新增||模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: notifyVisibleForms|@ohos.app.form.formHost.d.ts| -|新增||模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: notifyVisibleForms|@ohos.app.form.formHost.d.ts| -|新增||模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: notifyInvisibleForms|@ohos.app.form.formHost.d.ts| -|新增||模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: notifyInvisibleForms|@ohos.app.form.formHost.d.ts| -|新增||模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: enableFormsUpdate|@ohos.app.form.formHost.d.ts| -|新增||模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: enableFormsUpdate|@ohos.app.form.formHost.d.ts| -|新增||模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: disableFormsUpdate|@ohos.app.form.formHost.d.ts| -|新增||模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: disableFormsUpdate|@ohos.app.form.formHost.d.ts| -|新增||模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: isSystemReady|@ohos.app.form.formHost.d.ts| -|新增||模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: isSystemReady|@ohos.app.form.formHost.d.ts| -|新增||模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: getAllFormsInfo|@ohos.app.form.formHost.d.ts| -|新增||模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: getAllFormsInfo|@ohos.app.form.formHost.d.ts| -|新增||模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: getFormsInfo|@ohos.app.form.formHost.d.ts| -|新增||模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: getFormsInfo|@ohos.app.form.formHost.d.ts| -|新增||模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: getFormsInfo|@ohos.app.form.formHost.d.ts| -|新增||模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: deleteInvalidForms|@ohos.app.form.formHost.d.ts| -|新增||模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: deleteInvalidForms|@ohos.app.form.formHost.d.ts| -|新增||模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: acquireFormState|@ohos.app.form.formHost.d.ts| -|新增||模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: acquireFormState|@ohos.app.form.formHost.d.ts| -|新增||模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: on_formUninstall|@ohos.app.form.formHost.d.ts| -|新增||模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: off_formUninstall|@ohos.app.form.formHost.d.ts| -|新增||模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: notifyFormsVisible|@ohos.app.form.formHost.d.ts| -|新增||模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: notifyFormsVisible|@ohos.app.form.formHost.d.ts| -|新增||模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: notifyFormsEnableUpdate|@ohos.app.form.formHost.d.ts| -|新增||模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: notifyFormsEnableUpdate|@ohos.app.form.formHost.d.ts| -|新增||模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: shareForm|@ohos.app.form.formHost.d.ts| -|新增||模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: shareForm|@ohos.app.form.formHost.d.ts| -|新增||模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: notifyFormsPrivacyProtected|@ohos.app.form.formHost.d.ts| -|新增||模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: notifyFormsPrivacyProtected|@ohos.app.form.formHost.d.ts| -|新增||模块名: ohos.app.form.formInfo
类名: formInfo|@ohos.app.form.formInfo.d.ts| -|新增||模块名: ohos.app.form.formInfo
类名: FormInfo|@ohos.app.form.formInfo.d.ts| -|新增||模块名: ohos.app.form.formInfo
类名: FormInfo
方法名 or 属性名: bundleName|@ohos.app.form.formInfo.d.ts| -|新增||模块名: ohos.app.form.formInfo
类名: FormInfo
方法名 or 属性名: moduleName|@ohos.app.form.formInfo.d.ts| -|新增||模块名: ohos.app.form.formInfo
类名: FormInfo
方法名 or 属性名: abilityName|@ohos.app.form.formInfo.d.ts| -|新增||模块名: ohos.app.form.formInfo
类名: FormInfo
方法名 or 属性名: name|@ohos.app.form.formInfo.d.ts| -|新增||模块名: ohos.app.form.formInfo
类名: FormInfo
方法名 or 属性名: description|@ohos.app.form.formInfo.d.ts| -|新增||模块名: ohos.app.form.formInfo
类名: FormInfo
方法名 or 属性名: type|@ohos.app.form.formInfo.d.ts| -|新增||模块名: ohos.app.form.formInfo
类名: FormInfo
方法名 or 属性名: jsComponentName|@ohos.app.form.formInfo.d.ts| -|新增||模块名: ohos.app.form.formInfo
类名: FormInfo
方法名 or 属性名: colorMode|@ohos.app.form.formInfo.d.ts| -|新增||模块名: ohos.app.form.formInfo
类名: FormInfo
方法名 or 属性名: isDefault|@ohos.app.form.formInfo.d.ts| -|新增||模块名: ohos.app.form.formInfo
类名: FormInfo
方法名 or 属性名: updateEnabled|@ohos.app.form.formInfo.d.ts| -|新增||模块名: ohos.app.form.formInfo
类名: FormInfo
方法名 or 属性名: formVisibleNotify|@ohos.app.form.formInfo.d.ts| -|新增||模块名: ohos.app.form.formInfo
类名: FormInfo
方法名 or 属性名: relatedBundleName|@ohos.app.form.formInfo.d.ts| -|新增||模块名: ohos.app.form.formInfo
类名: FormInfo
方法名 or 属性名: scheduledUpdateTime|@ohos.app.form.formInfo.d.ts| -|新增||模块名: ohos.app.form.formInfo
类名: FormInfo
方法名 or 属性名: formConfigAbility|@ohos.app.form.formInfo.d.ts| -|新增||模块名: ohos.app.form.formInfo
类名: FormInfo
方法名 or 属性名: updateDuration|@ohos.app.form.formInfo.d.ts| -|新增||模块名: ohos.app.form.formInfo
类名: FormInfo
方法名 or 属性名: defaultDimension|@ohos.app.form.formInfo.d.ts| -|新增||模块名: ohos.app.form.formInfo
类名: FormInfo
方法名 or 属性名: supportDimensions|@ohos.app.form.formInfo.d.ts| -|新增||模块名: ohos.app.form.formInfo
类名: FormInfo
方法名 or 属性名: customizeData|@ohos.app.form.formInfo.d.ts| -|新增||模块名: ohos.app.form.formInfo
类名: FormType|@ohos.app.form.formInfo.d.ts| -|新增||模块名: ohos.app.form.formInfo
类名: FormType
方法名 or 属性名: JS|@ohos.app.form.formInfo.d.ts| -|新增||模块名: ohos.app.form.formInfo
类名: FormType
方法名 or 属性名: eTS|@ohos.app.form.formInfo.d.ts| -|新增||模块名: ohos.app.form.formInfo
类名: ColorMode|@ohos.app.form.formInfo.d.ts| -|新增||模块名: ohos.app.form.formInfo
类名: ColorMode
方法名 or 属性名: MODE_AUTO|@ohos.app.form.formInfo.d.ts| -|新增||模块名: ohos.app.form.formInfo
类名: ColorMode
方法名 or 属性名: MODE_DARK|@ohos.app.form.formInfo.d.ts| -|新增||模块名: ohos.app.form.formInfo
类名: ColorMode
方法名 or 属性名: MODE_LIGHT|@ohos.app.form.formInfo.d.ts| -|新增||模块名: ohos.app.form.formInfo
类名: FormStateInfo|@ohos.app.form.formInfo.d.ts| -|新增||模块名: ohos.app.form.formInfo
类名: FormStateInfo
方法名 or 属性名: formState|@ohos.app.form.formInfo.d.ts| -|新增||模块名: ohos.app.form.formInfo
类名: FormStateInfo
方法名 or 属性名: want|@ohos.app.form.formInfo.d.ts| -|新增||模块名: ohos.app.form.formInfo
类名: FormState|@ohos.app.form.formInfo.d.ts| -|新增||模块名: ohos.app.form.formInfo
类名: FormState
方法名 or 属性名: UNKNOWN|@ohos.app.form.formInfo.d.ts| -|新增||模块名: ohos.app.form.formInfo
类名: FormState
方法名 or 属性名: DEFAULT|@ohos.app.form.formInfo.d.ts| -|新增||模块名: ohos.app.form.formInfo
类名: FormState
方法名 or 属性名: READY|@ohos.app.form.formInfo.d.ts| -|新增||模块名: ohos.app.form.formInfo
类名: FormParam|@ohos.app.form.formInfo.d.ts| -|新增||模块名: ohos.app.form.formInfo
类名: FormParam
方法名 or 属性名: IDENTITY_KEY|@ohos.app.form.formInfo.d.ts| -|新增||模块名: ohos.app.form.formInfo
类名: FormParam
方法名 or 属性名: DIMENSION_KEY|@ohos.app.form.formInfo.d.ts| -|新增||模块名: ohos.app.form.formInfo
类名: FormParam
方法名 or 属性名: NAME_KEY|@ohos.app.form.formInfo.d.ts| -|新增||模块名: ohos.app.form.formInfo
类名: FormParam
方法名 or 属性名: MODULE_NAME_KEY|@ohos.app.form.formInfo.d.ts| -|新增||模块名: ohos.app.form.formInfo
类名: FormParam
方法名 or 属性名: WIDTH_KEY|@ohos.app.form.formInfo.d.ts| -|新增||模块名: ohos.app.form.formInfo
类名: FormParam
方法名 or 属性名: HEIGHT_KEY|@ohos.app.form.formInfo.d.ts| -|新增||模块名: ohos.app.form.formInfo
类名: FormParam
方法名 or 属性名: TEMPORARY_KEY|@ohos.app.form.formInfo.d.ts| -|新增||模块名: ohos.app.form.formInfo
类名: FormParam
方法名 or 属性名: BUNDLE_NAME_KEY|@ohos.app.form.formInfo.d.ts| -|新增||模块名: ohos.app.form.formInfo
类名: FormParam
方法名 or 属性名: ABILITY_NAME_KEY|@ohos.app.form.formInfo.d.ts| -|新增||模块名: ohos.app.form.formInfo
类名: FormParam
方法名 or 属性名: DEVICE_ID_KEY|@ohos.app.form.formInfo.d.ts| -|新增||模块名: ohos.app.form.formInfo
类名: FormInfoFilter|@ohos.app.form.formInfo.d.ts| -|新增||模块名: ohos.app.form.formInfo
类名: FormInfoFilter
方法名 or 属性名: moduleName|@ohos.app.form.formInfo.d.ts| -|新增||模块名: ohos.app.form.formInfo
类名: FormDimension|@ohos.app.form.formInfo.d.ts| -|新增||模块名: ohos.app.form.formInfo
类名: FormDimension
方法名 or 属性名: Dimension_1_2|@ohos.app.form.formInfo.d.ts| -|新增||模块名: ohos.app.form.formInfo
类名: FormDimension
方法名 or 属性名: Dimension_2_2|@ohos.app.form.formInfo.d.ts| -|新增||模块名: ohos.app.form.formInfo
类名: FormDimension
方法名 or 属性名: Dimension_2_4|@ohos.app.form.formInfo.d.ts| -|新增||模块名: ohos.app.form.formInfo
类名: FormDimension
方法名 or 属性名: Dimension_4_4|@ohos.app.form.formInfo.d.ts| -|新增||模块名: ohos.app.form.formInfo
类名: FormDimension
方法名 or 属性名: Dimension_2_1|@ohos.app.form.formInfo.d.ts| -|新增||模块名: ohos.app.form.formInfo
类名: VisibilityType|@ohos.app.form.formInfo.d.ts| -|新增||模块名: ohos.app.form.formInfo
类名: VisibilityType
方法名 or 属性名: FORM_VISIBLE|@ohos.app.form.formInfo.d.ts| -|新增||模块名: ohos.app.form.formInfo
类名: VisibilityType
方法名 or 属性名: FORM_INVISIBLE|@ohos.app.form.formInfo.d.ts| -|新增||模块名: ohos.app.form.formProvider
类名: formProvider|@ohos.app.form.formProvider.d.ts| -|新增||模块名: ohos.app.form.formProvider
类名: formProvider
方法名 or 属性名: setFormNextRefreshTime|@ohos.app.form.formProvider.d.ts| -|新增||模块名: ohos.app.form.formProvider
类名: formProvider
方法名 or 属性名: setFormNextRefreshTime|@ohos.app.form.formProvider.d.ts| -|新增||模块名: ohos.app.form.formProvider
类名: formProvider
方法名 or 属性名: updateForm|@ohos.app.form.formProvider.d.ts| -|新增||模块名: ohos.app.form.formProvider
类名: formProvider
方法名 or 属性名: updateForm|@ohos.app.form.formProvider.d.ts| -|新增||模块名: ohos.app.form.formProvider
类名: formProvider
方法名 or 属性名: getFormsInfo|@ohos.app.form.formProvider.d.ts| -|新增||模块名: ohos.app.form.formProvider
类名: formProvider
方法名 or 属性名: getFormsInfo|@ohos.app.form.formProvider.d.ts| -|新增||模块名: ohos.app.form.formProvider
类名: formProvider
方法名 or 属性名: getFormsInfo|@ohos.app.form.formProvider.d.ts| -|新增||模块名: ohos.app.form.formProvider
类名: formProvider
方法名 or 属性名: requestPublishForm|@ohos.app.form.formProvider.d.ts| -|新增||模块名: ohos.app.form.formProvider
类名: formProvider
方法名 or 属性名: requestPublishForm|@ohos.app.form.formProvider.d.ts| -|新增||模块名: ohos.app.form.formProvider
类名: formProvider
方法名 or 属性名: requestPublishForm|@ohos.app.form.formProvider.d.ts| -|新增||模块名: ohos.app.form.formProvider
类名: formProvider
方法名 or 属性名: isRequestPublishFormSupported|@ohos.app.form.formProvider.d.ts| -|新增||模块名: ohos.app.form.formProvider
类名: formProvider
方法名 or 属性名: isRequestPublishFormSupported|@ohos.app.form.formProvider.d.ts| -|新增||模块名:ohos.application.Ability
类名:Ability
方法名 or 属性名:onSaveState|@ohos.application.Ability.d.ts| -|新增||模块名: ohos.application.AbilityConstant
类名: LaunchReason
方法名 or 属性名:APP_RECOVERY|@ohos.application.AbilityConstant.d.ts| -|新增||模块名: ohos.application.AbilityConstant
类名: OnSaveResult|@ohos.application.AbilityConstant.d.ts| -|新增||模块名: ohos.application.AbilityConstant
类名: OnSaveResult
方法名 or 属性名:ALL_AGREE|@ohos.application.AbilityConstant.d.ts| -|新增||模块名: ohos.application.AbilityConstant
类名: OnSaveResult
方法名 or 属性名:CONTINUATION_REJECT|@ohos.application.AbilityConstant.d.ts| -|新增||模块名: ohos.application.AbilityConstant
类名: OnSaveResult
方法名 or 属性名:CONTINUATION_MISMATCH|@ohos.application.AbilityConstant.d.ts| -|新增||模块名: ohos.application.AbilityConstant
类名: OnSaveResult
方法名 or 属性名:RECOVERY_AGREE|@ohos.application.AbilityConstant.d.ts| -|新增||模块名: ohos.application.AbilityConstant
类名: OnSaveResult
方法名 or 属性名:RECOVERY_REJECT|@ohos.application.AbilityConstant.d.ts| -|新增||模块名: ohos.application.AbilityConstant
类名: OnSaveResult
方法名 or 属性名:ALL_REJECT|@ohos.application.AbilityConstant.d.ts| -|新增||模块名: ohos.application.AbilityConstant
类名: StateType|@ohos.application.AbilityConstant.d.ts| -|新增||模块名: ohos.application.AbilityConstant
类名: StateType
方法名 or 属性名:CONTINUATION|@ohos.application.AbilityConstant.d.ts| -|新增||模块名: ohos.application.AbilityConstant
类名: StateType
方法名 or 属性名:APP_RECOVERY|@ohos.application.AbilityConstant.d.ts| -|新增||模块名: ohos.application.ExtensionAbility
类名: ExtensionAbility|@ohos.application.ExtensionAbility.d.ts| -|新增||模块名: ohos.application.ExtensionAbility
类名: ExtensionAbility
方法名 or 属性名: onConfigurationUpdated|@ohos.application.ExtensionAbility.d.ts| -|新增||模块名: ohos.application.ExtensionAbility
类名: ExtensionAbility
方法名 or 属性名: onMemoryLevel|@ohos.application.ExtensionAbility.d.ts| -|新增||模块名:ohos.application.formHost
类名:formHost
方法名 or 属性名:notifyFormsPrivacyProtected|@ohos.application.formHost.d.ts| -|新增||模块名:ohos.application.formHost
类名:formHost
方法名 or 属性名:notifyFormsPrivacyProtected|@ohos.application.formHost.d.ts| -|新增||模块名: ohos.application.formInfo
类名: FormType
方法名 or 属性名:eTS|@ohos.application.formInfo.d.ts| -|新增||模块名:ohos.application.formInfo
类名:VisibilityType|@ohos.application.formInfo.d.ts| -|新增||模块名:ohos.application.formInfo
类名:VisibilityType
方法名 or 属性名:FORM_VISIBLE|@ohos.application.formInfo.d.ts| -|新增||模块名:ohos.application.formInfo
类名:VisibilityType
方法名 or 属性名:FORM_INVISIBLE|@ohos.application.formInfo.d.ts| -|新增||模块名:ohos.continuation.continuationManager
类名:continuationManager
方法名 or 属性名:registerContinuation|@ohos.continuation.continuationManager.d.ts| -|新增||模块名:ohos.continuation.continuationManager
类名:continuationManager
方法名 or 属性名:registerContinuation|@ohos.continuation.continuationManager.d.ts| -|新增||模块名:ohos.continuation.continuationManager
类名:continuationManager
方法名 or 属性名:registerContinuation|@ohos.continuation.continuationManager.d.ts| -|新增||模块名:ohos.continuation.continuationManager
类名:continuationManager
方法名 or 属性名:unregisterContinuation|@ohos.continuation.continuationManager.d.ts| -|新增||模块名:ohos.continuation.continuationManager
类名:continuationManager
方法名 or 属性名:unregisterContinuation|@ohos.continuation.continuationManager.d.ts| -|新增||模块名:ohos.continuation.continuationManager
类名:continuationManager
方法名 or 属性名:updateContinuationState|@ohos.continuation.continuationManager.d.ts| -|新增||模块名:ohos.continuation.continuationManager
类名:continuationManager
方法名 or 属性名:updateContinuationState|@ohos.continuation.continuationManager.d.ts| -|新增||模块名:ohos.continuation.continuationManager
类名:continuationManager
方法名 or 属性名:startContinuationDeviceManager|@ohos.continuation.continuationManager.d.ts| -|新增||模块名:ohos.continuation.continuationManager
类名:continuationManager
方法名 or 属性名:startContinuationDeviceManager|@ohos.continuation.continuationManager.d.ts| -|新增||模块名:ohos.continuation.continuationManager
类名:continuationManager
方法名 or 属性名:startContinuationDeviceManager|@ohos.continuation.continuationManager.d.ts| -|新增||模块名:ohos.distributedMissionManager
类名:distributedMissionManager
方法名 or 属性名:continueMission|@ohos.distributedMissionManager.d.ts| -|新增||模块名:ohos.distributedMissionManager
类名:distributedMissionManager
方法名 or 属性名:continueMission|@ohos.distributedMissionManager.d.ts| -|新增||模块名:AbilityContext
类名:AbilityContext
方法名 or 属性名:connectServiceExtensionAbility|AbilityContext.d.ts| -|新增||模块名:AbilityContext
类名:AbilityContext
方法名 or 属性名:connectServiceExtensionAbilityWithAccount|AbilityContext.d.ts| -|新增||模块名:AbilityContext
类名:AbilityContext
方法名 or 属性名:disconnectServiceExtensionAbility|AbilityContext.d.ts| -|新增||模块名:AbilityContext
类名:AbilityContext
方法名 or 属性名:disconnectServiceExtensionAbility|AbilityContext.d.ts| -|新增||方法名 or 属性名:waitAbilityMonitor
函数:waitAbilityMonitor(monitor: AbilityMonitor, callback: AsyncCallback): void;|abilityDelegator.d.ts| -|新增||方法名 or 属性名:waitAbilityMonitor
函数:waitAbilityMonitor(monitor: AbilityMonitor, timeout: number, callback: AsyncCallback): void;|abilityDelegator.d.ts| -|新增||方法名 or 属性名:waitAbilityMonitor
函数:waitAbilityMonitor(monitor: AbilityMonitor, timeout?: number): Promise;|abilityDelegator.d.ts| -|新增||方法名 or 属性名:getAbilityState
函数:getAbilityState(ability: UIAbility): number;|abilityDelegator.d.ts| -|新增||方法名 or 属性名:getCurrentTopAbility
函数:getCurrentTopAbility(callback: AsyncCallback): void;|abilityDelegator.d.ts| -|新增||方法名 or 属性名:getCurrentTopAbility
函数:getCurrentTopAbility(): Promise|abilityDelegator.d.ts| -|新增||方法名 or 属性名:doAbilityForeground
函数:doAbilityForeground(ability: UIAbility, callback: AsyncCallback): void;|abilityDelegator.d.ts| -|新增||方法名 or 属性名:doAbilityForeground
函数:doAbilityForeground(ability: UIAbility): Promise;|abilityDelegator.d.ts| -|新增||方法名 or 属性名:doAbilityBackground
函数:doAbilityBackground(ability: UIAbility, callback: AsyncCallback): void;|abilityDelegator.d.ts| -|新增||方法名 or 属性名:doAbilityBackground
函数:doAbilityBackground(ability: UIAbility): Promise;|abilityDelegator.d.ts| -|新增||模块名:abilityMonitor
类名:AbilityMonitor
方法名 or 属性名:moduleName|abilityMonitor.d.ts| -|新增||方法名 or 属性名:onAbilityCreate
函数:onAbilityCreate?:(ability: UIAbility) => void;|abilityMonitor.d.ts| -|新增||方法名 or 属性名:onAbilityForeground
函数:onAbilityForeground?:(ability: UIAbility) => void;|abilityMonitor.d.ts| -|新增||方法名 or 属性名:onAbilityBackground
函数:onAbilityBackground?:(ability: UIAbility) => void;|abilityMonitor.d.ts| -|新增||方法名 or 属性名:onAbilityDestroy
函数:onAbilityDestroy?:(ability: UIAbility) => void;|abilityMonitor.d.ts| -|新增||方法名 or 属性名:onWindowStageCreate
函数:onWindowStageCreate?:(ability: UIAbility) => void;|abilityMonitor.d.ts| -|新增||方法名 or 属性名:onWindowStageRestore
函数:onWindowStageRestore?:(ability: UIAbility) => void;|abilityMonitor.d.ts| -|新增||方法名 or 属性名:onWindowStageDestroy
函数:onWindowStageDestroy?:(ability: UIAbility) => void;|abilityMonitor.d.ts| -|新增||模块名:ApplicationContext
类名:ApplicationContext
方法名 or 属性名:on_abilityLifecycle|ApplicationContext.d.ts| -|新增||模块名:ApplicationContext
类名:ApplicationContext
方法名 or 属性名:off_abilityLifecycle|ApplicationContext.d.ts| -|新增||模块名:ApplicationContext
类名:ApplicationContext
方法名 or 属性名:off_abilityLifecycle|ApplicationContext.d.ts| -|新增||模块名:ApplicationContext
类名:ApplicationContext
方法名 or 属性名:on_environment|ApplicationContext.d.ts| -|新增||模块名:ApplicationContext
类名:ApplicationContext
方法名 or 属性名:off_environment|ApplicationContext.d.ts| -|新增||模块名:ApplicationContext
类名:ApplicationContext
方法名 or 属性名:off_environment|ApplicationContext.d.ts| -|新增||模块名:ApplicationContext
类名:ApplicationContext
方法名 or 属性名:getProcessRunningInformation|ApplicationContext.d.ts| -|新增||模块名:ApplicationContext
类名:ApplicationContext
方法名 or 属性名:getProcessRunningInformation|ApplicationContext.d.ts| -|新增||模块名:ApplicationContext
类名:ApplicationContext
方法名 or 属性名:killProcessesBySelf|ApplicationContext.d.ts| -|新增||模块名:ApplicationContext
类名:ApplicationContext
方法名 or 属性名:killProcessesBySelf|ApplicationContext.d.ts| -|新增||模块名: ContinueCallback
类名: ContinueCallback|ContinueCallback.d.ts| -|新增||模块名: ContinueCallback
类名: ContinueCallback
方法名 or 属性名: onContinueDone|ContinueCallback.d.ts| -|新增||模块名: ContinueDeviceInfo
类名: ContinueDeviceInfo|ContinueDeviceInfo.d.ts| -|新增||模块名: ContinueDeviceInfo
类名: ContinueDeviceInfo
方法名 or 属性名: srcDeviceId|ContinueDeviceInfo.d.ts| -|新增||模块名: ContinueDeviceInfo
类名: ContinueDeviceInfo
方法名 or 属性名: dstDeviceId|ContinueDeviceInfo.d.ts| -|新增||模块名: ContinueDeviceInfo
类名: ContinueDeviceInfo
方法名 or 属性名: missionId|ContinueDeviceInfo.d.ts| -|新增||模块名: ContinueDeviceInfo
类名: ContinueDeviceInfo
方法名 or 属性名: wantParam|ContinueDeviceInfo.d.ts| -|新增||模块名: MissionListener
类名: MissionListener
方法名 or 属性名: onMissionLabelUpdated|MissionListener.d.ts| -|新增||模块名:ServiceExtensionContext
类名:ServiceExtensionContext
方法名 or 属性名:connectServiceExtensionAbility|ServiceExtensionContext.d.ts| -|新增||模块名:ServiceExtensionContext
类名:ServiceExtensionContext
方法名 or 属性名:connectServiceExtensionAbilityWithAccount|ServiceExtensionContext.d.ts| -|新增||模块名:ServiceExtensionContext
类名:ServiceExtensionContext
方法名 or 属性名:disconnectServiceExtensionAbility|ServiceExtensionContext.d.ts| -|新增||模块名:ServiceExtensionContext
类名:ServiceExtensionContext
方法名 or 属性名:disconnectServiceExtensionAbility|ServiceExtensionContext.d.ts| -|新增||模块名: UIAbilityContext
类名: UIAbilityContext|UIAbilityContext.d.ts| -|新增||模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: abilityInfo|UIAbilityContext.d.ts| -|新增||模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: currentHapModuleInfo|UIAbilityContext.d.ts| -|新增||模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: config|UIAbilityContext.d.ts| -|新增||模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: startAbility|UIAbilityContext.d.ts| -|新增||模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: startAbility|UIAbilityContext.d.ts| -|新增||模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: startAbility|UIAbilityContext.d.ts| -|新增||模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: startAbilityByCall|UIAbilityContext.d.ts| -|新增||模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: startAbilityWithAccount|UIAbilityContext.d.ts| -|新增||模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: startAbilityWithAccount|UIAbilityContext.d.ts| -|新增||模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: startAbilityWithAccount|UIAbilityContext.d.ts| -|新增||模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: startAbilityForResult|UIAbilityContext.d.ts| -|新增||模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: startAbilityForResult|UIAbilityContext.d.ts| -|新增||模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: startAbilityForResult|UIAbilityContext.d.ts| -|新增||模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: startAbilityForResultWithAccount|UIAbilityContext.d.ts| -|新增||模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: startAbilityForResultWithAccount|UIAbilityContext.d.ts| -|新增||模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: startAbilityForResultWithAccount|UIAbilityContext.d.ts| -|新增||模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: startServiceExtensionAbility|UIAbilityContext.d.ts| -|新增||模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: startServiceExtensionAbility|UIAbilityContext.d.ts| -|新增||模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: startServiceExtensionAbilityWithAccount|UIAbilityContext.d.ts| -|新增||模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: startServiceExtensionAbilityWithAccount|UIAbilityContext.d.ts| -|新增||模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: stopServiceExtensionAbility|UIAbilityContext.d.ts| -|新增||模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: stopServiceExtensionAbility|UIAbilityContext.d.ts| -|新增||模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: stopServiceExtensionAbilityWithAccount|UIAbilityContext.d.ts| -|新增||模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: stopServiceExtensionAbilityWithAccount|UIAbilityContext.d.ts| -|新增||模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: terminateSelf|UIAbilityContext.d.ts| -|新增||模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: terminateSelf|UIAbilityContext.d.ts| -|新增||模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: terminateSelfWithResult|UIAbilityContext.d.ts| -|新增||模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: terminateSelfWithResult|UIAbilityContext.d.ts| -|新增||模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: connectServiceExtensionAbility|UIAbilityContext.d.ts| -|新增||模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: connectServiceExtensionAbilityWithAccount|UIAbilityContext.d.ts| -|新增||模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: disconnectServiceExtensionAbility|UIAbilityContext.d.ts| -|新增||模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: disconnectServiceExtensionAbility|UIAbilityContext.d.ts| -|新增||模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: setMissionLabel|UIAbilityContext.d.ts| -|新增||模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: setMissionLabel|UIAbilityContext.d.ts| -|新增||模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: setMissionIcon|UIAbilityContext.d.ts| -|新增||模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: setMissionIcon|UIAbilityContext.d.ts| -|新增||模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: requestPermissionsFromUser|UIAbilityContext.d.ts| -|新增||模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: requestPermissionsFromUser|UIAbilityContext.d.ts| -|新增||模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: restoreWindowStage|UIAbilityContext.d.ts| -|新增||模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: isTerminating|UIAbilityContext.d.ts| -|删除|模块名: ohos.application.context
类名: AreaMode||@ohos.application.context.d.ts| -|删除|模块名: ohos.application.context
类名: AreaMode
方法名 or 属性名:EL1||@ohos.application.context.d.ts| -|删除|模块名: ohos.application.context
类名: AreaMode
方法名 or 属性名:EL2||@ohos.application.context.d.ts| -|删除|模块名:ohos.application.formInfo
类名:VisibilityType||@ohos.application.formInfo.d.ts| -|删除|模块名:ohos.application.formInfo
类名:VisibilityType
方法名 or 属性名:FORM_VISIBLE||@ohos.application.formInfo.d.ts| -|删除|模块名:ohos.application.formInfo
类名:VisibilityType
方法名 or 属性名:FORM_INVISIBLE||@ohos.application.formInfo.d.ts| -|删除|模块名: ohos.application.quickFixManager
类名: quickFixManager||@ohos.application.quickFixManager.d.ts| -|删除|模块名: ohos.application.quickFixManager
类名: HapModuleQuickFixInfo||@ohos.application.quickFixManager.d.ts| -|删除|模块名: ohos.application.quickFixManager
类名: HapModuleQuickFixInfo
方法名 or 属性名: moduleName||@ohos.application.quickFixManager.d.ts| -|删除|模块名: ohos.application.quickFixManager
类名: HapModuleQuickFixInfo
方法名 or 属性名: originHapHash||@ohos.application.quickFixManager.d.ts| -|删除|模块名: ohos.application.quickFixManager
类名: HapModuleQuickFixInfo
方法名 or 属性名: quickFixFilePath||@ohos.application.quickFixManager.d.ts| -|删除|模块名: ohos.application.quickFixManager
类名: ApplicationQuickFixInfo||@ohos.application.quickFixManager.d.ts| -|删除|模块名: ohos.application.quickFixManager
类名: ApplicationQuickFixInfo
方法名 or 属性名: bundleName||@ohos.application.quickFixManager.d.ts| -|删除|模块名: ohos.application.quickFixManager
类名: ApplicationQuickFixInfo
方法名 or 属性名: bundleVersionCode||@ohos.application.quickFixManager.d.ts| -|删除|模块名: ohos.application.quickFixManager
类名: ApplicationQuickFixInfo
方法名 or 属性名: bundleVersionName||@ohos.application.quickFixManager.d.ts| -|删除|模块名: ohos.application.quickFixManager
类名: ApplicationQuickFixInfo
方法名 or 属性名: quickFixVersionCode||@ohos.application.quickFixManager.d.ts| -|删除|模块名: ohos.application.quickFixManager
类名: ApplicationQuickFixInfo
方法名 or 属性名: quickFixVersionName||@ohos.application.quickFixManager.d.ts| -|删除|模块名: ohos.application.quickFixManager
类名: ApplicationQuickFixInfo
方法名 or 属性名: hapModuleQuickFixInfo||@ohos.application.quickFixManager.d.ts| -|删除|模块名: ohos.application.quickFixManager
类名: quickFixManager
方法名 or 属性名: applyQuickFix||@ohos.application.quickFixManager.d.ts| -|删除|模块名: ohos.application.quickFixManager
类名: quickFixManager
方法名 or 属性名: applyQuickFix||@ohos.application.quickFixManager.d.ts| -|删除|模块名: ohos.application.quickFixManager
类名: quickFixManager
方法名 or 属性名: getApplicationQuickFixInfo||@ohos.application.quickFixManager.d.ts| -|删除|模块名: ohos.application.quickFixManager
类名: quickFixManager
方法名 or 属性名: getApplicationQuickFixInfo||@ohos.application.quickFixManager.d.ts| +|新增|NA|模块名: ohos.app.ability.Ability
类名: Ability|@ohos.app.ability.Ability.d.ts| +|新增|NA|模块名: ohos.app.ability.Ability
类名: Ability
方法名 or 属性名: onConfigurationUpdate|@ohos.app.ability.Ability.d.ts| +|新增|NA|模块名: ohos.app.ability.Ability
类名: Ability
方法名 or 属性名: onMemoryLevel|@ohos.app.ability.Ability.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityConstant
类名: AbilityConstant|@ohos.app.ability.AbilityConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityConstant
类名: LaunchParam|@ohos.app.ability.AbilityConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityConstant
类名: LaunchParam
方法名 or 属性名: launchReason|@ohos.app.ability.AbilityConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityConstant
类名: LaunchParam
方法名 or 属性名: lastExitReason|@ohos.app.ability.AbilityConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityConstant
类名: LaunchReason|@ohos.app.ability.AbilityConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityConstant
类名: LaunchReason
方法名 or 属性名: UNKNOWN|@ohos.app.ability.AbilityConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityConstant
类名: LaunchReason
方法名 or 属性名: START_ABILITY|@ohos.app.ability.AbilityConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityConstant
类名: LaunchReason
方法名 or 属性名: CALL|@ohos.app.ability.AbilityConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityConstant
类名: LaunchReason
方法名 or 属性名: CONTINUATION|@ohos.app.ability.AbilityConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityConstant
类名: LaunchReason
方法名 or 属性名: APP_RECOVERY|@ohos.app.ability.AbilityConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityConstant
类名: LastExitReason|@ohos.app.ability.AbilityConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityConstant
类名: LastExitReason
方法名 or 属性名: UNKNOWN|@ohos.app.ability.AbilityConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityConstant
类名: LastExitReason
方法名 or 属性名: ABILITY_NOT_RESPONDING|@ohos.app.ability.AbilityConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityConstant
类名: LastExitReason
方法名 or 属性名: NORMAL|@ohos.app.ability.AbilityConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityConstant
类名: OnContinueResult|@ohos.app.ability.AbilityConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityConstant
类名: OnContinueResult
方法名 or 属性名: AGREE|@ohos.app.ability.AbilityConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityConstant
类名: OnContinueResult
方法名 or 属性名: REJECT|@ohos.app.ability.AbilityConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityConstant
类名: OnContinueResult
方法名 or 属性名: MISMATCH|@ohos.app.ability.AbilityConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityConstant
类名: MemoryLevel|@ohos.app.ability.AbilityConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityConstant
类名: MemoryLevel
方法名 or 属性名: MEMORY_LEVEL_MODERATE|@ohos.app.ability.AbilityConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityConstant
类名: MemoryLevel
方法名 or 属性名: MEMORY_LEVEL_LOW|@ohos.app.ability.AbilityConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityConstant
类名: MemoryLevel
方法名 or 属性名: MEMORY_LEVEL_CRITICAL|@ohos.app.ability.AbilityConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityConstant
类名: WindowMode|@ohos.app.ability.AbilityConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityConstant
类名: WindowMode
方法名 or 属性名: WINDOW_MODE_UNDEFINED|@ohos.app.ability.AbilityConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityConstant
类名: WindowMode
方法名 or 属性名: WINDOW_MODE_FULLSCREEN|@ohos.app.ability.AbilityConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityConstant
类名: WindowMode
方法名 or 属性名: WINDOW_MODE_SPLIT_PRIMARY|@ohos.app.ability.AbilityConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityConstant
类名: WindowMode
方法名 or 属性名: WINDOW_MODE_SPLIT_SECONDARY|@ohos.app.ability.AbilityConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityConstant
类名: WindowMode
方法名 or 属性名: WINDOW_MODE_FLOATING|@ohos.app.ability.AbilityConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityConstant
类名: OnSaveResult|@ohos.app.ability.AbilityConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityConstant
类名: OnSaveResult
方法名 or 属性名: ALL_AGREE|@ohos.app.ability.AbilityConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityConstant
类名: OnSaveResult
方法名 or 属性名: CONTINUATION_REJECT|@ohos.app.ability.AbilityConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityConstant
类名: OnSaveResult
方法名 or 属性名: CONTINUATION_MISMATCH|@ohos.app.ability.AbilityConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityConstant
类名: OnSaveResult
方法名 or 属性名: RECOVERY_AGREE|@ohos.app.ability.AbilityConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityConstant
类名: OnSaveResult
方法名 or 属性名: RECOVERY_REJECT|@ohos.app.ability.AbilityConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityConstant
类名: OnSaveResult
方法名 or 属性名: ALL_REJECT|@ohos.app.ability.AbilityConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityConstant
类名: StateType|@ohos.app.ability.AbilityConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityConstant
类名: StateType
方法名 or 属性名: CONTINUATION|@ohos.app.ability.AbilityConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityConstant
类名: StateType
方法名 or 属性名: APP_RECOVERY|@ohos.app.ability.AbilityConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.abilityDelegatorRegistry
类名: abilityDelegatorRegistry|@ohos.app.ability.abilityDelegatorRegistry.d.ts| +|新增|NA|模块名: ohos.app.ability.abilityDelegatorRegistry
类名: abilityDelegatorRegistry
方法名 or 属性名: getAbilityDelegator|@ohos.app.ability.abilityDelegatorRegistry.d.ts| +|新增|NA|模块名: ohos.app.ability.abilityDelegatorRegistry
类名: abilityDelegatorRegistry
方法名 or 属性名: getArguments|@ohos.app.ability.abilityDelegatorRegistry.d.ts| +|新增|NA|模块名: ohos.app.ability.abilityDelegatorRegistry
类名: AbilityLifecycleState|@ohos.app.ability.abilityDelegatorRegistry.d.ts| +|新增|NA|模块名: ohos.app.ability.abilityDelegatorRegistry
类名: AbilityLifecycleState
方法名 or 属性名: UNINITIALIZED|@ohos.app.ability.abilityDelegatorRegistry.d.ts| +|新增|NA|模块名: ohos.app.ability.abilityDelegatorRegistry
类名: AbilityLifecycleState
方法名 or 属性名: CREATE|@ohos.app.ability.abilityDelegatorRegistry.d.ts| +|新增|NA|模块名: ohos.app.ability.abilityDelegatorRegistry
类名: AbilityLifecycleState
方法名 or 属性名: FOREGROUND|@ohos.app.ability.abilityDelegatorRegistry.d.ts| +|新增|NA|模块名: ohos.app.ability.abilityDelegatorRegistry
类名: AbilityLifecycleState
方法名 or 属性名: BACKGROUND|@ohos.app.ability.abilityDelegatorRegistry.d.ts| +|新增|NA|模块名: ohos.app.ability.abilityDelegatorRegistry
类名: AbilityLifecycleState
方法名 or 属性名: DESTROY|@ohos.app.ability.abilityDelegatorRegistry.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityLifecycleCallback
类名: AbilityLifecycleCallback|@ohos.app.ability.AbilityLifecycleCallback.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityLifecycleCallback
类名: AbilityLifecycleCallback
方法名 or 属性名: onAbilityCreate|@ohos.app.ability.AbilityLifecycleCallback.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityLifecycleCallback
类名: AbilityLifecycleCallback
方法名 or 属性名: onWindowStageCreate|@ohos.app.ability.AbilityLifecycleCallback.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityLifecycleCallback
类名: AbilityLifecycleCallback
方法名 or 属性名: onWindowStageActive|@ohos.app.ability.AbilityLifecycleCallback.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityLifecycleCallback
类名: AbilityLifecycleCallback
方法名 or 属性名: onWindowStageInactive|@ohos.app.ability.AbilityLifecycleCallback.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityLifecycleCallback
类名: AbilityLifecycleCallback
方法名 or 属性名: onWindowStageDestroy|@ohos.app.ability.AbilityLifecycleCallback.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityLifecycleCallback
类名: AbilityLifecycleCallback
方法名 or 属性名: onAbilityDestroy|@ohos.app.ability.AbilityLifecycleCallback.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityLifecycleCallback
类名: AbilityLifecycleCallback
方法名 or 属性名: onAbilityForeground|@ohos.app.ability.AbilityLifecycleCallback.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityLifecycleCallback
类名: AbilityLifecycleCallback
方法名 or 属性名: onAbilityBackground|@ohos.app.ability.AbilityLifecycleCallback.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityLifecycleCallback
类名: AbilityLifecycleCallback
方法名 or 属性名: onAbilityContinue|@ohos.app.ability.AbilityLifecycleCallback.d.ts| +|新增|NA|模块名: ohos.app.ability.abilityManager
类名: abilityManager|@ohos.app.ability.abilityManager.d.ts| +|新增|NA|模块名: ohos.app.ability.abilityManager
类名: AbilityState|@ohos.app.ability.abilityManager.d.ts| +|新增|NA|模块名: ohos.app.ability.abilityManager
类名: AbilityState
方法名 or 属性名: INITIAL|@ohos.app.ability.abilityManager.d.ts| +|新增|NA|模块名: ohos.app.ability.abilityManager
类名: AbilityState
方法名 or 属性名: FOREGROUND|@ohos.app.ability.abilityManager.d.ts| +|新增|NA|模块名: ohos.app.ability.abilityManager
类名: AbilityState
方法名 or 属性名: BACKGROUND|@ohos.app.ability.abilityManager.d.ts| +|新增|NA|模块名: ohos.app.ability.abilityManager
类名: AbilityState
方法名 or 属性名: FOREGROUNDING|@ohos.app.ability.abilityManager.d.ts| +|新增|NA|模块名: ohos.app.ability.abilityManager
类名: AbilityState
方法名 or 属性名: BACKGROUNDING|@ohos.app.ability.abilityManager.d.ts| +|新增|NA|模块名: ohos.app.ability.abilityManager
类名: abilityManager
方法名 or 属性名: updateConfiguration|@ohos.app.ability.abilityManager.d.ts| +|新增|NA|模块名: ohos.app.ability.abilityManager
类名: abilityManager
方法名 or 属性名: updateConfiguration|@ohos.app.ability.abilityManager.d.ts| +|新增|NA|模块名: ohos.app.ability.abilityManager
类名: abilityManager
方法名 or 属性名: getAbilityRunningInfos|@ohos.app.ability.abilityManager.d.ts| +|新增|NA|模块名: ohos.app.ability.abilityManager
类名: abilityManager
方法名 or 属性名: getAbilityRunningInfos|@ohos.app.ability.abilityManager.d.ts| +|新增|NA|模块名: ohos.app.ability.abilityManager
类名: abilityManager
方法名 or 属性名: getExtensionRunningInfos|@ohos.app.ability.abilityManager.d.ts| +|新增|NA|模块名: ohos.app.ability.abilityManager
类名: abilityManager
方法名 or 属性名: getExtensionRunningInfos|@ohos.app.ability.abilityManager.d.ts| +|新增|NA|模块名: ohos.app.ability.abilityManager
类名: abilityManager
方法名 or 属性名: getTopAbility|@ohos.app.ability.abilityManager.d.ts| +|新增|NA|模块名: ohos.app.ability.abilityManager
类名: abilityManager
方法名 or 属性名: getTopAbility|@ohos.app.ability.abilityManager.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityStage
类名: AbilityStage|@ohos.app.ability.AbilityStage.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityStage
类名: AbilityStage
方法名 or 属性名: context|@ohos.app.ability.AbilityStage.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityStage
类名: AbilityStage
方法名 or 属性名: onCreate|@ohos.app.ability.AbilityStage.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityStage
类名: AbilityStage
方法名 or 属性名: onAcceptWant|@ohos.app.ability.AbilityStage.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityStage
类名: AbilityStage
方法名 or 属性名: onConfigurationUpdate|@ohos.app.ability.AbilityStage.d.ts| +|新增|NA|模块名: ohos.app.ability.AbilityStage
类名: AbilityStage
方法名 or 属性名: onMemoryLevel|@ohos.app.ability.AbilityStage.d.ts| +|新增|NA|模块名: ohos.app.ability.appManager
类名: appManager|@ohos.app.ability.appManager.d.ts| +|新增|NA|模块名: ohos.app.ability.appManager
类名: ApplicationState|@ohos.app.ability.appManager.d.ts| +|新增|NA|模块名: ohos.app.ability.appManager
类名: ApplicationState
方法名 or 属性名: STATE_CREATE|@ohos.app.ability.appManager.d.ts| +|新增|NA|模块名: ohos.app.ability.appManager
类名: ApplicationState
方法名 or 属性名: STATE_FOREGROUND|@ohos.app.ability.appManager.d.ts| +|新增|NA|模块名: ohos.app.ability.appManager
类名: ApplicationState
方法名 or 属性名: STATE_ACTIVE|@ohos.app.ability.appManager.d.ts| +|新增|NA|模块名: ohos.app.ability.appManager
类名: ApplicationState
方法名 or 属性名: STATE_BACKGROUND|@ohos.app.ability.appManager.d.ts| +|新增|NA|模块名: ohos.app.ability.appManager
类名: ApplicationState
方法名 or 属性名: STATE_DESTROY|@ohos.app.ability.appManager.d.ts| +|新增|NA|模块名: ohos.app.ability.appManager
类名: ProcessState|@ohos.app.ability.appManager.d.ts| +|新增|NA|模块名: ohos.app.ability.appManager
类名: ProcessState
方法名 or 属性名: STATE_CREATE|@ohos.app.ability.appManager.d.ts| +|新增|NA|模块名: ohos.app.ability.appManager
类名: ProcessState
方法名 or 属性名: STATE_FOREGROUND|@ohos.app.ability.appManager.d.ts| +|新增|NA|模块名: ohos.app.ability.appManager
类名: ProcessState
方法名 or 属性名: STATE_ACTIVE|@ohos.app.ability.appManager.d.ts| +|新增|NA|模块名: ohos.app.ability.appManager
类名: ProcessState
方法名 or 属性名: STATE_BACKGROUND|@ohos.app.ability.appManager.d.ts| +|新增|NA|模块名: ohos.app.ability.appManager
类名: ProcessState
方法名 or 属性名: STATE_DESTROY|@ohos.app.ability.appManager.d.ts| +|新增|NA|模块名: ohos.app.ability.appManager
类名: appManager
方法名 or 属性名: on_applicationState|@ohos.app.ability.appManager.d.ts| +|新增|NA|模块名: ohos.app.ability.appManager
类名: appManager
方法名 or 属性名: on_applicationState|@ohos.app.ability.appManager.d.ts| +|新增|NA|模块名: ohos.app.ability.appManager
类名: appManager
方法名 or 属性名: off_applicationState|@ohos.app.ability.appManager.d.ts| +|新增|NA|模块名: ohos.app.ability.appManager
类名: appManager
方法名 or 属性名: off_applicationState|@ohos.app.ability.appManager.d.ts| +|新增|NA|模块名: ohos.app.ability.appManager
类名: appManager
方法名 or 属性名: getForegroundApplications|@ohos.app.ability.appManager.d.ts| +|新增|NA|模块名: ohos.app.ability.appManager
类名: appManager
方法名 or 属性名: getForegroundApplications|@ohos.app.ability.appManager.d.ts| +|新增|NA|模块名: ohos.app.ability.appManager
类名: appManager
方法名 or 属性名: killProcessWithAccount|@ohos.app.ability.appManager.d.ts| +|新增|NA|模块名: ohos.app.ability.appManager
类名: appManager
方法名 or 属性名: killProcessWithAccount|@ohos.app.ability.appManager.d.ts| +|新增|NA|模块名: ohos.app.ability.appManager
类名: appManager
方法名 or 属性名: isRunningInStabilityTest|@ohos.app.ability.appManager.d.ts| +|新增|NA|模块名: ohos.app.ability.appManager
类名: appManager
方法名 or 属性名: isRunningInStabilityTest|@ohos.app.ability.appManager.d.ts| +|新增|NA|模块名: ohos.app.ability.appManager
类名: appManager
方法名 or 属性名: killProcessesByBundleName|@ohos.app.ability.appManager.d.ts| +|新增|NA|模块名: ohos.app.ability.appManager
类名: appManager
方法名 or 属性名: killProcessesByBundleName|@ohos.app.ability.appManager.d.ts| +|新增|NA|模块名: ohos.app.ability.appManager
类名: appManager
方法名 or 属性名: clearUpApplicationData|@ohos.app.ability.appManager.d.ts| +|新增|NA|模块名: ohos.app.ability.appManager
类名: appManager
方法名 or 属性名: clearUpApplicationData|@ohos.app.ability.appManager.d.ts| +|新增|NA|模块名: ohos.app.ability.appManager
类名: appManager
方法名 or 属性名: isRamConstrainedDevice|@ohos.app.ability.appManager.d.ts| +|新增|NA|模块名: ohos.app.ability.appManager
类名: appManager
方法名 or 属性名: isRamConstrainedDevice|@ohos.app.ability.appManager.d.ts| +|新增|NA|模块名: ohos.app.ability.appManager
类名: appManager
方法名 or 属性名: getAppMemorySize|@ohos.app.ability.appManager.d.ts| +|新增|NA|模块名: ohos.app.ability.appManager
类名: appManager
方法名 or 属性名: getAppMemorySize|@ohos.app.ability.appManager.d.ts| +|新增|NA|模块名: ohos.app.ability.appManager
类名: appManager
方法名 or 属性名: getProcessRunningInformation|@ohos.app.ability.appManager.d.ts| +|新增|NA|模块名: ohos.app.ability.appManager
类名: appManager
方法名 or 属性名: getProcessRunningInformation|@ohos.app.ability.appManager.d.ts| +|新增|NA|模块名: ohos.app.ability.appRecovery
类名: appRecovery|@ohos.app.ability.appRecovery.d.ts| +|新增|NA|模块名: ohos.app.ability.appRecovery
类名: RestartFlag|@ohos.app.ability.appRecovery.d.ts| +|新增|NA|模块名: ohos.app.ability.appRecovery
类名: RestartFlag
方法名 or 属性名: ALWAYS_RESTART|@ohos.app.ability.appRecovery.d.ts| +|新增|NA|模块名: ohos.app.ability.appRecovery
类名: RestartFlag
方法名 or 属性名: CPP_CRASH_NO_RESTART|@ohos.app.ability.appRecovery.d.ts| +|新增|NA|模块名: ohos.app.ability.appRecovery
类名: RestartFlag
方法名 or 属性名: JS_CRASH_NO_RESTART|@ohos.app.ability.appRecovery.d.ts| +|新增|NA|模块名: ohos.app.ability.appRecovery
类名: RestartFlag
方法名 or 属性名: APP_FREEZE_NO_RESTART|@ohos.app.ability.appRecovery.d.ts| +|新增|NA|模块名: ohos.app.ability.appRecovery
类名: RestartFlag
方法名 or 属性名: NO_RESTART|@ohos.app.ability.appRecovery.d.ts| +|新增|NA|模块名: ohos.app.ability.appRecovery
类名: SaveOccasionFlag|@ohos.app.ability.appRecovery.d.ts| +|新增|NA|模块名: ohos.app.ability.appRecovery
类名: SaveOccasionFlag
方法名 or 属性名: SAVE_WHEN_ERROR|@ohos.app.ability.appRecovery.d.ts| +|新增|NA|模块名: ohos.app.ability.appRecovery
类名: SaveOccasionFlag
方法名 or 属性名: SAVE_WHEN_BACKGROUND|@ohos.app.ability.appRecovery.d.ts| +|新增|NA|模块名: ohos.app.ability.appRecovery
类名: SaveModeFlag|@ohos.app.ability.appRecovery.d.ts| +|新增|NA|模块名: ohos.app.ability.appRecovery
类名: SaveModeFlag
方法名 or 属性名: SAVE_WITH_FILE|@ohos.app.ability.appRecovery.d.ts| +|新增|NA|模块名: ohos.app.ability.appRecovery
类名: SaveModeFlag
方法名 or 属性名: SAVE_WITH_SHARED_MEMORY|@ohos.app.ability.appRecovery.d.ts| +|新增|NA|模块名: ohos.app.ability.appRecovery
类名: appRecovery
方法名 or 属性名: enableAppRecovery|@ohos.app.ability.appRecovery.d.ts| +|新增|NA|模块名: ohos.app.ability.appRecovery
类名: appRecovery
方法名 or 属性名: restartApp|@ohos.app.ability.appRecovery.d.ts| +|新增|NA|模块名: ohos.app.ability.appRecovery
类名: appRecovery
方法名 or 属性名: saveAppState|@ohos.app.ability.appRecovery.d.ts| +|新增|NA|模块名: ohos.app.ability.common
类名: common|@ohos.app.ability.common.d.ts| +|新增|NA|模块名: ohos.app.ability.common
类名: AreaMode|@ohos.app.ability.common.d.ts| +|新增|NA|模块名: ohos.app.ability.common
类名: AreaMode
方法名 or 属性名: EL1|@ohos.app.ability.common.d.ts| +|新增|NA|模块名: ohos.app.ability.common
类名: AreaMode
方法名 or 属性名: EL2|@ohos.app.ability.common.d.ts| +|新增|NA|模块名: ohos.app.ability.Configuration
类名: Configuration|@ohos.app.ability.Configuration.d.ts| +|新增|NA|模块名: ohos.app.ability.Configuration
类名: Configuration
方法名 or 属性名: language|@ohos.app.ability.Configuration.d.ts| +|新增|NA|模块名: ohos.app.ability.Configuration
类名: Configuration
方法名 or 属性名: colorMode|@ohos.app.ability.Configuration.d.ts| +|新增|NA|模块名: ohos.app.ability.Configuration
类名: Configuration
方法名 or 属性名: direction|@ohos.app.ability.Configuration.d.ts| +|新增|NA|模块名: ohos.app.ability.Configuration
类名: Configuration
方法名 or 属性名: screenDensity|@ohos.app.ability.Configuration.d.ts| +|新增|NA|模块名: ohos.app.ability.Configuration
类名: Configuration
方法名 or 属性名: displayId|@ohos.app.ability.Configuration.d.ts| +|新增|NA|模块名: ohos.app.ability.Configuration
类名: Configuration
方法名 or 属性名: hasPointerDevice|@ohos.app.ability.Configuration.d.ts| +|新增|NA|模块名: ohos.app.ability.ConfigurationConstant
类名: ConfigurationConstant|@ohos.app.ability.ConfigurationConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.ConfigurationConstant
类名: ColorMode|@ohos.app.ability.ConfigurationConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.ConfigurationConstant
类名: ColorMode
方法名 or 属性名: COLOR_MODE_NOT_SET|@ohos.app.ability.ConfigurationConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.ConfigurationConstant
类名: ColorMode
方法名 or 属性名: COLOR_MODE_DARK|@ohos.app.ability.ConfigurationConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.ConfigurationConstant
类名: ColorMode
方法名 or 属性名: COLOR_MODE_LIGHT|@ohos.app.ability.ConfigurationConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.ConfigurationConstant
类名: Direction|@ohos.app.ability.ConfigurationConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.ConfigurationConstant
类名: Direction
方法名 or 属性名: DIRECTION_NOT_SET|@ohos.app.ability.ConfigurationConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.ConfigurationConstant
类名: Direction
方法名 or 属性名: DIRECTION_VERTICAL|@ohos.app.ability.ConfigurationConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.ConfigurationConstant
类名: Direction
方法名 or 属性名: DIRECTION_HORIZONTAL|@ohos.app.ability.ConfigurationConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.ConfigurationConstant
类名: ScreenDensity|@ohos.app.ability.ConfigurationConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.ConfigurationConstant
类名: ScreenDensity
方法名 or 属性名: SCREEN_DENSITY_NOT_SET|@ohos.app.ability.ConfigurationConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.ConfigurationConstant
类名: ScreenDensity
方法名 or 属性名: SCREEN_DENSITY_SDPI|@ohos.app.ability.ConfigurationConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.ConfigurationConstant
类名: ScreenDensity
方法名 or 属性名: SCREEN_DENSITY_MDPI|@ohos.app.ability.ConfigurationConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.ConfigurationConstant
类名: ScreenDensity
方法名 or 属性名: SCREEN_DENSITY_LDPI|@ohos.app.ability.ConfigurationConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.ConfigurationConstant
类名: ScreenDensity
方法名 or 属性名: SCREEN_DENSITY_XLDPI|@ohos.app.ability.ConfigurationConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.ConfigurationConstant
类名: ScreenDensity
方法名 or 属性名: SCREEN_DENSITY_XXLDPI|@ohos.app.ability.ConfigurationConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.ConfigurationConstant
类名: ScreenDensity
方法名 or 属性名: SCREEN_DENSITY_XXXLDPI|@ohos.app.ability.ConfigurationConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.contextConstant
类名: contextConstant|@ohos.app.ability.contextConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.contextConstant
类名: AreaMode|@ohos.app.ability.contextConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.contextConstant
类名: AreaMode
方法名 or 属性名: EL1|@ohos.app.ability.contextConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.contextConstant
类名: AreaMode
方法名 or 属性名: EL2|@ohos.app.ability.contextConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.EnvironmentCallback
类名: EnvironmentCallback|@ohos.app.ability.EnvironmentCallback.d.ts| +|新增|NA|模块名: ohos.app.ability.EnvironmentCallback
类名: EnvironmentCallback
方法名 or 属性名: onConfigurationUpdated|@ohos.app.ability.EnvironmentCallback.d.ts| +|新增|NA|模块名: ohos.app.ability.errorManager
类名: errorManager|@ohos.app.ability.errorManager.d.ts| +|新增|NA|模块名: ohos.app.ability.errorManager
类名: errorManager
方法名 or 属性名: on_error|@ohos.app.ability.errorManager.d.ts| +|新增|NA|模块名: ohos.app.ability.errorManager
类名: errorManager
方法名 or 属性名: off_error|@ohos.app.ability.errorManager.d.ts| +|新增|NA|模块名: ohos.app.ability.errorManager
类名: errorManager
方法名 or 属性名: off_error|@ohos.app.ability.errorManager.d.ts| +|新增|NA|模块名: ohos.app.ability.ExtensionAbility
类名: ExtensionAbility|@ohos.app.ability.ExtensionAbility.d.ts| +|新增|NA|模块名: ohos.app.ability.missionManager
类名: missionManager|@ohos.app.ability.missionManager.d.ts| +|新增|NA|模块名: ohos.app.ability.missionManager
类名: missionManager
方法名 or 属性名: on_mission|@ohos.app.ability.missionManager.d.ts| +|新增|NA|模块名: ohos.app.ability.missionManager
类名: missionManager
方法名 or 属性名: off_mission|@ohos.app.ability.missionManager.d.ts| +|新增|NA|模块名: ohos.app.ability.missionManager
类名: missionManager
方法名 or 属性名: off_mission|@ohos.app.ability.missionManager.d.ts| +|新增|NA|模块名: ohos.app.ability.missionManager
类名: missionManager
方法名 or 属性名: getMissionInfo|@ohos.app.ability.missionManager.d.ts| +|新增|NA|模块名: ohos.app.ability.missionManager
类名: missionManager
方法名 or 属性名: getMissionInfo|@ohos.app.ability.missionManager.d.ts| +|新增|NA|模块名: ohos.app.ability.missionManager
类名: missionManager
方法名 or 属性名: getMissionInfos|@ohos.app.ability.missionManager.d.ts| +|新增|NA|模块名: ohos.app.ability.missionManager
类名: missionManager
方法名 or 属性名: getMissionInfos|@ohos.app.ability.missionManager.d.ts| +|新增|NA|模块名: ohos.app.ability.missionManager
类名: missionManager
方法名 or 属性名: getMissionSnapShot|@ohos.app.ability.missionManager.d.ts| +|新增|NA|模块名: ohos.app.ability.missionManager
类名: missionManager
方法名 or 属性名: getMissionSnapShot|@ohos.app.ability.missionManager.d.ts| +|新增|NA|模块名: ohos.app.ability.missionManager
类名: missionManager
方法名 or 属性名: getLowResolutionMissionSnapShot|@ohos.app.ability.missionManager.d.ts| +|新增|NA|模块名: ohos.app.ability.missionManager
类名: missionManager
方法名 or 属性名: getLowResolutionMissionSnapShot|@ohos.app.ability.missionManager.d.ts| +|新增|NA|模块名: ohos.app.ability.missionManager
类名: missionManager
方法名 or 属性名: lockMission|@ohos.app.ability.missionManager.d.ts| +|新增|NA|模块名: ohos.app.ability.missionManager
类名: missionManager
方法名 or 属性名: lockMission|@ohos.app.ability.missionManager.d.ts| +|新增|NA|模块名: ohos.app.ability.missionManager
类名: missionManager
方法名 or 属性名: unlockMission|@ohos.app.ability.missionManager.d.ts| +|新增|NA|模块名: ohos.app.ability.missionManager
类名: missionManager
方法名 or 属性名: unlockMission|@ohos.app.ability.missionManager.d.ts| +|新增|NA|模块名: ohos.app.ability.missionManager
类名: missionManager
方法名 or 属性名: clearMission|@ohos.app.ability.missionManager.d.ts| +|新增|NA|模块名: ohos.app.ability.missionManager
类名: missionManager
方法名 or 属性名: clearMission|@ohos.app.ability.missionManager.d.ts| +|新增|NA|模块名: ohos.app.ability.missionManager
类名: missionManager
方法名 or 属性名: clearAllMissions|@ohos.app.ability.missionManager.d.ts| +|新增|NA|模块名: ohos.app.ability.missionManager
类名: missionManager
方法名 or 属性名: clearAllMissions|@ohos.app.ability.missionManager.d.ts| +|新增|NA|模块名: ohos.app.ability.missionManager
类名: missionManager
方法名 or 属性名: moveMissionToFront|@ohos.app.ability.missionManager.d.ts| +|新增|NA|模块名: ohos.app.ability.missionManager
类名: missionManager
方法名 or 属性名: moveMissionToFront|@ohos.app.ability.missionManager.d.ts| +|新增|NA|模块名: ohos.app.ability.missionManager
类名: missionManager
方法名 or 属性名: moveMissionToFront|@ohos.app.ability.missionManager.d.ts| +|新增|NA|模块名: ohos.app.ability.quickFixManager
类名: quickFixManager|@ohos.app.ability.quickFixManager.d.ts| +|新增|NA|模块名: ohos.app.ability.quickFixManager
类名: HapModuleQuickFixInfo|@ohos.app.ability.quickFixManager.d.ts| +|新增|NA|模块名: ohos.app.ability.quickFixManager
类名: HapModuleQuickFixInfo
方法名 or 属性名: moduleName|@ohos.app.ability.quickFixManager.d.ts| +|新增|NA|模块名: ohos.app.ability.quickFixManager
类名: HapModuleQuickFixInfo
方法名 or 属性名: originHapHash|@ohos.app.ability.quickFixManager.d.ts| +|新增|NA|模块名: ohos.app.ability.quickFixManager
类名: HapModuleQuickFixInfo
方法名 or 属性名: quickFixFilePath|@ohos.app.ability.quickFixManager.d.ts| +|新增|NA|模块名: ohos.app.ability.quickFixManager
类名: ApplicationQuickFixInfo|@ohos.app.ability.quickFixManager.d.ts| +|新增|NA|模块名: ohos.app.ability.quickFixManager
类名: ApplicationQuickFixInfo
方法名 or 属性名: bundleName|@ohos.app.ability.quickFixManager.d.ts| +|新增|NA|模块名: ohos.app.ability.quickFixManager
类名: ApplicationQuickFixInfo
方法名 or 属性名: bundleVersionCode|@ohos.app.ability.quickFixManager.d.ts| +|新增|NA|模块名: ohos.app.ability.quickFixManager
类名: ApplicationQuickFixInfo
方法名 or 属性名: bundleVersionName|@ohos.app.ability.quickFixManager.d.ts| +|新增|NA|模块名: ohos.app.ability.quickFixManager
类名: ApplicationQuickFixInfo
方法名 or 属性名: quickFixVersionCode|@ohos.app.ability.quickFixManager.d.ts| +|新增|NA|模块名: ohos.app.ability.quickFixManager
类名: ApplicationQuickFixInfo
方法名 or 属性名: quickFixVersionName|@ohos.app.ability.quickFixManager.d.ts| +|新增|NA|模块名: ohos.app.ability.quickFixManager
类名: ApplicationQuickFixInfo
方法名 or 属性名: hapModuleQuickFixInfo|@ohos.app.ability.quickFixManager.d.ts| +|新增|NA|模块名: ohos.app.ability.quickFixManager
类名: quickFixManager
方法名 or 属性名: applyQuickFix|@ohos.app.ability.quickFixManager.d.ts| +|新增|NA|模块名: ohos.app.ability.quickFixManager
类名: quickFixManager
方法名 or 属性名: applyQuickFix|@ohos.app.ability.quickFixManager.d.ts| +|新增|NA|模块名: ohos.app.ability.quickFixManager
类名: quickFixManager
方法名 or 属性名: getApplicationQuickFixInfo|@ohos.app.ability.quickFixManager.d.ts| +|新增|NA|模块名: ohos.app.ability.quickFixManager
类名: quickFixManager
方法名 or 属性名: getApplicationQuickFixInfo|@ohos.app.ability.quickFixManager.d.ts| +|新增|NA|模块名: ohos.app.ability.ServiceExtensionAbility
类名: ServiceExtensionAbility|@ohos.app.ability.ServiceExtensionAbility.d.ts| +|新增|NA|模块名: ohos.app.ability.ServiceExtensionAbility
类名: ServiceExtensionAbility
方法名 or 属性名: context|@ohos.app.ability.ServiceExtensionAbility.d.ts| +|新增|NA|模块名: ohos.app.ability.ServiceExtensionAbility
类名: ServiceExtensionAbility
方法名 or 属性名: onCreate|@ohos.app.ability.ServiceExtensionAbility.d.ts| +|新增|NA|模块名: ohos.app.ability.ServiceExtensionAbility
类名: ServiceExtensionAbility
方法名 or 属性名: onDestroy|@ohos.app.ability.ServiceExtensionAbility.d.ts| +|新增|NA|模块名: ohos.app.ability.ServiceExtensionAbility
类名: ServiceExtensionAbility
方法名 or 属性名: onRequest|@ohos.app.ability.ServiceExtensionAbility.d.ts| +|新增|NA|模块名: ohos.app.ability.ServiceExtensionAbility
类名: ServiceExtensionAbility
方法名 or 属性名: onConnect|@ohos.app.ability.ServiceExtensionAbility.d.ts| +|新增|NA|模块名: ohos.app.ability.ServiceExtensionAbility
类名: ServiceExtensionAbility
方法名 or 属性名: onDisconnect|@ohos.app.ability.ServiceExtensionAbility.d.ts| +|新增|NA|模块名: ohos.app.ability.ServiceExtensionAbility
类名: ServiceExtensionAbility
方法名 or 属性名: onReconnect|@ohos.app.ability.ServiceExtensionAbility.d.ts| +|新增|NA|模块名: ohos.app.ability.ServiceExtensionAbility
类名: ServiceExtensionAbility
方法名 or 属性名: onConfigurationUpdate|@ohos.app.ability.ServiceExtensionAbility.d.ts| +|新增|NA|模块名: ohos.app.ability.ServiceExtensionAbility
类名: ServiceExtensionAbility
方法名 or 属性名: onDump|@ohos.app.ability.ServiceExtensionAbility.d.ts| +|新增|NA|模块名: ohos.app.ability.StartOptions
类名: StartOptions|@ohos.app.ability.StartOptions.d.ts| +|新增|NA|模块名: ohos.app.ability.StartOptions
类名: StartOptions
方法名 or 属性名: windowMode|@ohos.app.ability.StartOptions.d.ts| +|新增|NA|模块名: ohos.app.ability.StartOptions
类名: StartOptions
方法名 or 属性名: displayId|@ohos.app.ability.StartOptions.d.ts| +|新增|NA|模块名: ohos.app.ability.UIAbility
类名: OnReleaseCallback|@ohos.app.ability.UIAbility.d.ts| +|新增|NA|模块名: ohos.app.ability.UIAbility
类名: OnReleaseCallback
方法名 or 属性名: OnReleaseCallback|@ohos.app.ability.UIAbility.d.ts| +|新增|NA|模块名: ohos.app.ability.UIAbility
类名: CalleeCallback|@ohos.app.ability.UIAbility.d.ts| +|新增|NA|模块名: ohos.app.ability.UIAbility
类名: CalleeCallback
方法名 or 属性名: CalleeCallback|@ohos.app.ability.UIAbility.d.ts| +|新增|NA|模块名: ohos.app.ability.UIAbility
类名: Caller|@ohos.app.ability.UIAbility.d.ts| +|新增|NA|模块名: ohos.app.ability.UIAbility
类名: Caller
方法名 or 属性名: call|@ohos.app.ability.UIAbility.d.ts| +|新增|NA|模块名: ohos.app.ability.UIAbility
类名: Caller
方法名 or 属性名: callWithResult|@ohos.app.ability.UIAbility.d.ts| +|新增|NA|模块名: ohos.app.ability.UIAbility
类名: Caller
方法名 or 属性名: release|@ohos.app.ability.UIAbility.d.ts| +|新增|NA|模块名: ohos.app.ability.UIAbility
类名: Caller
方法名 or 属性名: onRelease|@ohos.app.ability.UIAbility.d.ts| +|新增|NA|模块名: ohos.app.ability.UIAbility
类名: Caller
方法名 or 属性名: on_release|@ohos.app.ability.UIAbility.d.ts| +|新增|NA|模块名: ohos.app.ability.UIAbility
类名: Caller
方法名 or 属性名: off_release|@ohos.app.ability.UIAbility.d.ts| +|新增|NA|模块名: ohos.app.ability.UIAbility
类名: Caller
方法名 or 属性名: off_release|@ohos.app.ability.UIAbility.d.ts| +|新增|NA|模块名: ohos.app.ability.UIAbility
类名: Callee|@ohos.app.ability.UIAbility.d.ts| +|新增|NA|模块名: ohos.app.ability.UIAbility
类名: Callee
方法名 or 属性名: on|@ohos.app.ability.UIAbility.d.ts| +|新增|NA|模块名: ohos.app.ability.UIAbility
类名: Callee
方法名 or 属性名: off|@ohos.app.ability.UIAbility.d.ts| +|新增|NA|模块名: ohos.app.ability.UIAbility
类名: UIAbility|@ohos.app.ability.UIAbility.d.ts| +|新增|NA|模块名: ohos.app.ability.UIAbility
类名: UIAbility
方法名 or 属性名: context|@ohos.app.ability.UIAbility.d.ts| +|新增|NA|模块名: ohos.app.ability.UIAbility
类名: UIAbility
方法名 or 属性名: launchWant|@ohos.app.ability.UIAbility.d.ts| +|新增|NA|模块名: ohos.app.ability.UIAbility
类名: UIAbility
方法名 or 属性名: lastRequestWant|@ohos.app.ability.UIAbility.d.ts| +|新增|NA|模块名: ohos.app.ability.UIAbility
类名: UIAbility
方法名 or 属性名: callee|@ohos.app.ability.UIAbility.d.ts| +|新增|NA|模块名: ohos.app.ability.UIAbility
类名: UIAbility
方法名 or 属性名: onCreate|@ohos.app.ability.UIAbility.d.ts| +|新增|NA|模块名: ohos.app.ability.UIAbility
类名: UIAbility
方法名 or 属性名: onWindowStageCreate|@ohos.app.ability.UIAbility.d.ts| +|新增|NA|模块名: ohos.app.ability.UIAbility
类名: UIAbility
方法名 or 属性名: onWindowStageDestroy|@ohos.app.ability.UIAbility.d.ts| +|新增|NA|模块名: ohos.app.ability.UIAbility
类名: UIAbility
方法名 or 属性名: onWindowStageRestore|@ohos.app.ability.UIAbility.d.ts| +|新增|NA|模块名: ohos.app.ability.UIAbility
类名: UIAbility
方法名 or 属性名: onDestroy|@ohos.app.ability.UIAbility.d.ts| +|新增|NA|模块名: ohos.app.ability.UIAbility
类名: UIAbility
方法名 or 属性名: onForeground|@ohos.app.ability.UIAbility.d.ts| +|新增|NA|模块名: ohos.app.ability.UIAbility
类名: UIAbility
方法名 or 属性名: onBackground|@ohos.app.ability.UIAbility.d.ts| +|新增|NA|模块名: ohos.app.ability.UIAbility
类名: UIAbility
方法名 or 属性名: onContinue|@ohos.app.ability.UIAbility.d.ts| +|新增|NA|模块名: ohos.app.ability.UIAbility
类名: UIAbility
方法名 or 属性名: onNewWant|@ohos.app.ability.UIAbility.d.ts| +|新增|NA|模块名: ohos.app.ability.UIAbility
类名: UIAbility
方法名 or 属性名: onDump|@ohos.app.ability.UIAbility.d.ts| +|新增|NA|模块名: ohos.app.ability.UIAbility
类名: UIAbility
方法名 or 属性名: onSaveState|@ohos.app.ability.UIAbility.d.ts| +|新增|NA|模块名: ohos.app.ability.Want
类名: Want|@ohos.app.ability.Want.d.ts| +|新增|NA|模块名: ohos.app.ability.Want
类名: Want
方法名 or 属性名: deviceId|@ohos.app.ability.Want.d.ts| +|新增|NA|模块名: ohos.app.ability.Want
类名: Want
方法名 or 属性名: bundleName|@ohos.app.ability.Want.d.ts| +|新增|NA|模块名: ohos.app.ability.Want
类名: Want
方法名 or 属性名: abilityName|@ohos.app.ability.Want.d.ts| +|新增|NA|模块名: ohos.app.ability.Want
类名: Want
方法名 or 属性名: uri|@ohos.app.ability.Want.d.ts| +|新增|NA|模块名: ohos.app.ability.Want
类名: Want
方法名 or 属性名: type|@ohos.app.ability.Want.d.ts| +|新增|NA|模块名: ohos.app.ability.Want
类名: Want
方法名 or 属性名: flags|@ohos.app.ability.Want.d.ts| +|新增|NA|模块名: ohos.app.ability.Want
类名: Want
方法名 or 属性名: action|@ohos.app.ability.Want.d.ts| +|新增|NA|模块名: ohos.app.ability.Want
类名: Want
方法名 or 属性名: parameters|@ohos.app.ability.Want.d.ts| +|新增|NA|模块名: ohos.app.ability.Want
类名: Want
方法名 or 属性名: entities|@ohos.app.ability.Want.d.ts| +|新增|NA|模块名: ohos.app.ability.Want
类名: Want
方法名 or 属性名: moduleName|@ohos.app.ability.Want.d.ts| +|新增|NA|模块名: ohos.app.ability.wantAgent
类名: wantAgent|@ohos.app.ability.wantAgent.d.ts| +|新增|NA|模块名: ohos.app.ability.wantAgent
类名: wantAgent
方法名 or 属性名: getBundleName|@ohos.app.ability.wantAgent.d.ts| +|新增|NA|模块名: ohos.app.ability.wantAgent
类名: wantAgent
方法名 or 属性名: getBundleName|@ohos.app.ability.wantAgent.d.ts| +|新增|NA|模块名: ohos.app.ability.wantAgent
类名: wantAgent
方法名 or 属性名: getUid|@ohos.app.ability.wantAgent.d.ts| +|新增|NA|模块名: ohos.app.ability.wantAgent
类名: wantAgent
方法名 or 属性名: getUid|@ohos.app.ability.wantAgent.d.ts| +|新增|NA|模块名: ohos.app.ability.wantAgent
类名: wantAgent
方法名 or 属性名: getWant|@ohos.app.ability.wantAgent.d.ts| +|新增|NA|模块名: ohos.app.ability.wantAgent
类名: wantAgent
方法名 or 属性名: getWant|@ohos.app.ability.wantAgent.d.ts| +|新增|NA|模块名: ohos.app.ability.wantAgent
类名: wantAgent
方法名 or 属性名: cancel|@ohos.app.ability.wantAgent.d.ts| +|新增|NA|模块名: ohos.app.ability.wantAgent
类名: wantAgent
方法名 or 属性名: cancel|@ohos.app.ability.wantAgent.d.ts| +|新增|NA|模块名: ohos.app.ability.wantAgent
类名: wantAgent
方法名 or 属性名: trigger|@ohos.app.ability.wantAgent.d.ts| +|新增|NA|模块名: ohos.app.ability.wantAgent
类名: wantAgent
方法名 or 属性名: trigger|@ohos.app.ability.wantAgent.d.ts| +|新增|NA|模块名: ohos.app.ability.wantAgent
类名: wantAgent
方法名 or 属性名: equal|@ohos.app.ability.wantAgent.d.ts| +|新增|NA|模块名: ohos.app.ability.wantAgent
类名: wantAgent
方法名 or 属性名: equal|@ohos.app.ability.wantAgent.d.ts| +|新增|NA|模块名: ohos.app.ability.wantAgent
类名: wantAgent
方法名 or 属性名: getWantAgent|@ohos.app.ability.wantAgent.d.ts| +|新增|NA|模块名: ohos.app.ability.wantAgent
类名: wantAgent
方法名 or 属性名: getWantAgent|@ohos.app.ability.wantAgent.d.ts| +|新增|NA|模块名: ohos.app.ability.wantAgent
类名: wantAgent
方法名 or 属性名: getOperationType|@ohos.app.ability.wantAgent.d.ts| +|新增|NA|模块名: ohos.app.ability.wantAgent
类名: wantAgent
方法名 or 属性名: getOperationType|@ohos.app.ability.wantAgent.d.ts| +|新增|NA|模块名: ohos.app.ability.wantAgent
类名: WantAgentFlags|@ohos.app.ability.wantAgent.d.ts| +|新增|NA|模块名: ohos.app.ability.wantAgent
类名: WantAgentFlags
方法名 or 属性名: ONE_TIME_FLAG|@ohos.app.ability.wantAgent.d.ts| +|新增|NA|模块名: ohos.app.ability.wantAgent
类名: WantAgentFlags
方法名 or 属性名: NO_BUILD_FLAG|@ohos.app.ability.wantAgent.d.ts| +|新增|NA|模块名: ohos.app.ability.wantAgent
类名: WantAgentFlags
方法名 or 属性名: CANCEL_PRESENT_FLAG|@ohos.app.ability.wantAgent.d.ts| +|新增|NA|模块名: ohos.app.ability.wantAgent
类名: WantAgentFlags
方法名 or 属性名: UPDATE_PRESENT_FLAG|@ohos.app.ability.wantAgent.d.ts| +|新增|NA|模块名: ohos.app.ability.wantAgent
类名: WantAgentFlags
方法名 or 属性名: CONSTANT_FLAG|@ohos.app.ability.wantAgent.d.ts| +|新增|NA|模块名: ohos.app.ability.wantAgent
类名: WantAgentFlags
方法名 or 属性名: REPLACE_ELEMENT|@ohos.app.ability.wantAgent.d.ts| +|新增|NA|模块名: ohos.app.ability.wantAgent
类名: WantAgentFlags
方法名 or 属性名: REPLACE_ACTION|@ohos.app.ability.wantAgent.d.ts| +|新增|NA|模块名: ohos.app.ability.wantAgent
类名: WantAgentFlags
方法名 or 属性名: REPLACE_URI|@ohos.app.ability.wantAgent.d.ts| +|新增|NA|模块名: ohos.app.ability.wantAgent
类名: WantAgentFlags
方法名 or 属性名: REPLACE_ENTITIES|@ohos.app.ability.wantAgent.d.ts| +|新增|NA|模块名: ohos.app.ability.wantAgent
类名: WantAgentFlags
方法名 or 属性名: REPLACE_BUNDLE|@ohos.app.ability.wantAgent.d.ts| +|新增|NA|模块名: ohos.app.ability.wantAgent
类名: OperationType|@ohos.app.ability.wantAgent.d.ts| +|新增|NA|模块名: ohos.app.ability.wantAgent
类名: OperationType
方法名 or 属性名: UNKNOWN_TYPE|@ohos.app.ability.wantAgent.d.ts| +|新增|NA|模块名: ohos.app.ability.wantAgent
类名: OperationType
方法名 or 属性名: START_ABILITY|@ohos.app.ability.wantAgent.d.ts| +|新增|NA|模块名: ohos.app.ability.wantAgent
类名: OperationType
方法名 or 属性名: START_ABILITIES|@ohos.app.ability.wantAgent.d.ts| +|新增|NA|模块名: ohos.app.ability.wantAgent
类名: OperationType
方法名 or 属性名: START_SERVICE|@ohos.app.ability.wantAgent.d.ts| +|新增|NA|模块名: ohos.app.ability.wantAgent
类名: OperationType
方法名 or 属性名: SEND_COMMON_EVENT|@ohos.app.ability.wantAgent.d.ts| +|新增|NA|模块名: ohos.app.ability.wantAgent
类名: CompleteData|@ohos.app.ability.wantAgent.d.ts| +|新增|NA|模块名: ohos.app.ability.wantAgent
类名: CompleteData
方法名 or 属性名: info|@ohos.app.ability.wantAgent.d.ts| +|新增|NA|模块名: ohos.app.ability.wantAgent
类名: CompleteData
方法名 or 属性名: want|@ohos.app.ability.wantAgent.d.ts| +|新增|NA|模块名: ohos.app.ability.wantAgent
类名: CompleteData
方法名 or 属性名: finalCode|@ohos.app.ability.wantAgent.d.ts| +|新增|NA|模块名: ohos.app.ability.wantAgent
类名: CompleteData
方法名 or 属性名: finalData|@ohos.app.ability.wantAgent.d.ts| +|新增|NA|模块名: ohos.app.ability.wantAgent
类名: CompleteData
方法名 or 属性名: extraInfo|@ohos.app.ability.wantAgent.d.ts| +|新增|NA|模块名: ohos.app.ability.wantConstant
类名: wantConstant|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.wantConstant
类名: Action|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.wantConstant
类名: Action
方法名 or 属性名: ACTION_HOME|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.wantConstant
类名: Action
方法名 or 属性名: ACTION_DIAL|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.wantConstant
类名: Action
方法名 or 属性名: ACTION_SEARCH|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.wantConstant
类名: Action
方法名 or 属性名: ACTION_WIRELESS_SETTINGS|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.wantConstant
类名: Action
方法名 or 属性名: ACTION_MANAGE_APPLICATIONS_SETTINGS|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.wantConstant
类名: Action
方法名 or 属性名: ACTION_APPLICATION_DETAILS_SETTINGS|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.wantConstant
类名: Action
方法名 or 属性名: ACTION_SET_ALARM|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.wantConstant
类名: Action
方法名 or 属性名: ACTION_SHOW_ALARMS|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.wantConstant
类名: Action
方法名 or 属性名: ACTION_SNOOZE_ALARM|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.wantConstant
类名: Action
方法名 or 属性名: ACTION_DISMISS_ALARM|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.wantConstant
类名: Action
方法名 or 属性名: ACTION_DISMISS_TIMER|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.wantConstant
类名: Action
方法名 or 属性名: ACTION_SEND_SMS|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.wantConstant
类名: Action
方法名 or 属性名: ACTION_CHOOSE|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.wantConstant
类名: Action
方法名 or 属性名: ACTION_IMAGE_CAPTURE|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.wantConstant
类名: Action
方法名 or 属性名: ACTION_VIDEO_CAPTURE|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.wantConstant
类名: Action
方法名 or 属性名: ACTION_SELECT|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.wantConstant
类名: Action
方法名 or 属性名: ACTION_SEND_DATA|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.wantConstant
类名: Action
方法名 or 属性名: ACTION_SEND_MULTIPLE_DATA|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.wantConstant
类名: Action
方法名 or 属性名: ACTION_SCAN_MEDIA_FILE|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.wantConstant
类名: Action
方法名 or 属性名: ACTION_VIEW_DATA|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.wantConstant
类名: Action
方法名 or 属性名: ACTION_EDIT_DATA|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.wantConstant
类名: Action
方法名 or 属性名: INTENT_PARAMS_INTENT|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.wantConstant
类名: Action
方法名 or 属性名: INTENT_PARAMS_TITLE|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.wantConstant
类名: Action
方法名 or 属性名: ACTION_FILE_SELECT|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.wantConstant
类名: Action
方法名 or 属性名: PARAMS_STREAM|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.wantConstant
类名: Action
方法名 or 属性名: ACTION_APP_ACCOUNT_AUTH|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.wantConstant
类名: Action
方法名 or 属性名: ACTION_MARKET_DOWNLOAD|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.wantConstant
类名: Action
方法名 or 属性名: ACTION_MARKET_CROWDTEST|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.wantConstant
类名: Action
方法名 or 属性名: DLP_PARAMS_SANDBOX|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.wantConstant
类名: Action
方法名 or 属性名: DLP_PARAMS_BUNDLE_NAME|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.wantConstant
类名: Action
方法名 or 属性名: DLP_PARAMS_MODULE_NAME|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.wantConstant
类名: Action
方法名 or 属性名: DLP_PARAMS_ABILITY_NAME|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.wantConstant
类名: Action
方法名 or 属性名: DLP_PARAMS_INDEX|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.wantConstant
类名: Entity|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.wantConstant
类名: Entity
方法名 or 属性名: ENTITY_DEFAULT|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.wantConstant
类名: Entity
方法名 or 属性名: ENTITY_HOME|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.wantConstant
类名: Entity
方法名 or 属性名: ENTITY_VOICE|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.wantConstant
类名: Entity
方法名 or 属性名: ENTITY_BROWSABLE|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.wantConstant
类名: Entity
方法名 or 属性名: ENTITY_VIDEO|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.wantConstant
类名: Flags|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.wantConstant
类名: Flags
方法名 or 属性名: FLAG_AUTH_READ_URI_PERMISSION|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.wantConstant
类名: Flags
方法名 or 属性名: FLAG_AUTH_WRITE_URI_PERMISSION|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.wantConstant
类名: Flags
方法名 or 属性名: FLAG_ABILITY_FORWARD_RESULT|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.wantConstant
类名: Flags
方法名 or 属性名: FLAG_ABILITY_CONTINUATION|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.wantConstant
类名: Flags
方法名 or 属性名: FLAG_NOT_OHOS_COMPONENT|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.wantConstant
类名: Flags
方法名 or 属性名: FLAG_ABILITY_FORM_ENABLED|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.wantConstant
类名: Flags
方法名 or 属性名: FLAG_AUTH_PERSISTABLE_URI_PERMISSION|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.wantConstant
类名: Flags
方法名 or 属性名: FLAG_AUTH_PREFIX_URI_PERMISSION|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.wantConstant
类名: Flags
方法名 or 属性名: FLAG_ABILITYSLICE_MULTI_DEVICE|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.wantConstant
类名: Flags
方法名 or 属性名: FLAG_START_FOREGROUND_ABILITY|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.wantConstant
类名: Flags
方法名 or 属性名: FLAG_ABILITY_CONTINUATION_REVERSIBLE|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.wantConstant
类名: Flags
方法名 or 属性名: FLAG_INSTALL_ON_DEMAND|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.wantConstant
类名: Flags
方法名 or 属性名: FLAG_INSTALL_WITH_BACKGROUND_MODE|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.wantConstant
类名: Flags
方法名 or 属性名: FLAG_ABILITY_CLEAR_MISSION|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.wantConstant
类名: Flags
方法名 or 属性名: FLAG_ABILITY_NEW_MISSION|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|模块名: ohos.app.ability.wantConstant
类名: Flags
方法名 or 属性名: FLAG_ABILITY_MISSION_TOP|@ohos.app.ability.wantConstant.d.ts| +|新增|NA|模块名: ohos.app.form.formBindingData
类名: formBindingData|@ohos.app.form.formBindingData.d.ts| +|新增|NA|模块名: ohos.app.form.formBindingData
类名: formBindingData
方法名 or 属性名: createFormBindingData|@ohos.app.form.formBindingData.d.ts| +|新增|NA|模块名: ohos.app.form.formBindingData
类名: FormBindingData|@ohos.app.form.formBindingData.d.ts| +|新增|NA|模块名: ohos.app.form.formBindingData
类名: FormBindingData
方法名 or 属性名: data|@ohos.app.form.formBindingData.d.ts| +|新增|NA|模块名: ohos.app.form.FormExtensionAbility
类名: FormExtensionAbility|@ohos.app.form.FormExtensionAbility.d.ts| +|新增|NA|模块名: ohos.app.form.FormExtensionAbility
类名: FormExtensionAbility
方法名 or 属性名: context|@ohos.app.form.FormExtensionAbility.d.ts| +|新增|NA|模块名: ohos.app.form.FormExtensionAbility
类名: FormExtensionAbility
方法名 or 属性名: onAddForm|@ohos.app.form.FormExtensionAbility.d.ts| +|新增|NA|模块名: ohos.app.form.FormExtensionAbility
类名: FormExtensionAbility
方法名 or 属性名: onCastToNormalForm|@ohos.app.form.FormExtensionAbility.d.ts| +|新增|NA|模块名: ohos.app.form.FormExtensionAbility
类名: FormExtensionAbility
方法名 or 属性名: onUpdateForm|@ohos.app.form.FormExtensionAbility.d.ts| +|新增|NA|模块名: ohos.app.form.FormExtensionAbility
类名: FormExtensionAbility
方法名 or 属性名: onChangeFormVisibility|@ohos.app.form.FormExtensionAbility.d.ts| +|新增|NA|模块名: ohos.app.form.FormExtensionAbility
类名: FormExtensionAbility
方法名 or 属性名: onFormEvent|@ohos.app.form.FormExtensionAbility.d.ts| +|新增|NA|模块名: ohos.app.form.FormExtensionAbility
类名: FormExtensionAbility
方法名 or 属性名: onRemoveForm|@ohos.app.form.FormExtensionAbility.d.ts| +|新增|NA|模块名: ohos.app.form.FormExtensionAbility
类名: FormExtensionAbility
方法名 or 属性名: onConfigurationUpdate|@ohos.app.form.FormExtensionAbility.d.ts| +|新增|NA|模块名: ohos.app.form.FormExtensionAbility
类名: FormExtensionAbility
方法名 or 属性名: onAcquireFormState|@ohos.app.form.FormExtensionAbility.d.ts| +|新增|NA|模块名: ohos.app.form.FormExtensionAbility
类名: FormExtensionAbility
方法名 or 属性名: onShareForm|@ohos.app.form.FormExtensionAbility.d.ts| +|新增|NA|模块名: ohos.app.form.formHost
类名: formHost|@ohos.app.form.formHost.d.ts| +|新增|NA|模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: deleteForm|@ohos.app.form.formHost.d.ts| +|新增|NA|模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: deleteForm|@ohos.app.form.formHost.d.ts| +|新增|NA|模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: releaseForm|@ohos.app.form.formHost.d.ts| +|新增|NA|模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: releaseForm|@ohos.app.form.formHost.d.ts| +|新增|NA|模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: releaseForm|@ohos.app.form.formHost.d.ts| +|新增|NA|模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: requestForm|@ohos.app.form.formHost.d.ts| +|新增|NA|模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: requestForm|@ohos.app.form.formHost.d.ts| +|新增|NA|模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: castToNormalForm|@ohos.app.form.formHost.d.ts| +|新增|NA|模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: castToNormalForm|@ohos.app.form.formHost.d.ts| +|新增|NA|模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: notifyVisibleForms|@ohos.app.form.formHost.d.ts| +|新增|NA|模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: notifyVisibleForms|@ohos.app.form.formHost.d.ts| +|新增|NA|模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: notifyInvisibleForms|@ohos.app.form.formHost.d.ts| +|新增|NA|模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: notifyInvisibleForms|@ohos.app.form.formHost.d.ts| +|新增|NA|模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: enableFormsUpdate|@ohos.app.form.formHost.d.ts| +|新增|NA|模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: enableFormsUpdate|@ohos.app.form.formHost.d.ts| +|新增|NA|模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: disableFormsUpdate|@ohos.app.form.formHost.d.ts| +|新增|NA|模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: disableFormsUpdate|@ohos.app.form.formHost.d.ts| +|新增|NA|模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: isSystemReady|@ohos.app.form.formHost.d.ts| +|新增|NA|模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: isSystemReady|@ohos.app.form.formHost.d.ts| +|新增|NA|模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: getAllFormsInfo|@ohos.app.form.formHost.d.ts| +|新增|NA|模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: getAllFormsInfo|@ohos.app.form.formHost.d.ts| +|新增|NA|模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: getFormsInfo|@ohos.app.form.formHost.d.ts| +|新增|NA|模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: getFormsInfo|@ohos.app.form.formHost.d.ts| +|新增|NA|模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: getFormsInfo|@ohos.app.form.formHost.d.ts| +|新增|NA|模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: deleteInvalidForms|@ohos.app.form.formHost.d.ts| +|新增|NA|模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: deleteInvalidForms|@ohos.app.form.formHost.d.ts| +|新增|NA|模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: acquireFormState|@ohos.app.form.formHost.d.ts| +|新增|NA|模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: acquireFormState|@ohos.app.form.formHost.d.ts| +|新增|NA|模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: on_formUninstall|@ohos.app.form.formHost.d.ts| +|新增|NA|模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: off_formUninstall|@ohos.app.form.formHost.d.ts| +|新增|NA|模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: notifyFormsVisible|@ohos.app.form.formHost.d.ts| +|新增|NA|模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: notifyFormsVisible|@ohos.app.form.formHost.d.ts| +|新增|NA|模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: notifyFormsEnableUpdate|@ohos.app.form.formHost.d.ts| +|新增|NA|模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: notifyFormsEnableUpdate|@ohos.app.form.formHost.d.ts| +|新增|NA|模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: shareForm|@ohos.app.form.formHost.d.ts| +|新增|NA|模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: shareForm|@ohos.app.form.formHost.d.ts| +|新增|NA|模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: notifyFormsPrivacyProtected|@ohos.app.form.formHost.d.ts| +|新增|NA|模块名: ohos.app.form.formHost
类名: formHost
方法名 or 属性名: notifyFormsPrivacyProtected|@ohos.app.form.formHost.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: formInfo|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: FormInfo|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: FormInfo
方法名 or 属性名: bundleName|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: FormInfo
方法名 or 属性名: moduleName|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: FormInfo
方法名 or 属性名: abilityName|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: FormInfo
方法名 or 属性名: name|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: FormInfo
方法名 or 属性名: description|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: FormInfo
方法名 or 属性名: type|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: FormInfo
方法名 or 属性名: jsComponentName|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: FormInfo
方法名 or 属性名: colorMode|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: FormInfo
方法名 or 属性名: isDefault|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: FormInfo
方法名 or 属性名: updateEnabled|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: FormInfo
方法名 or 属性名: formVisibleNotify|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: FormInfo
方法名 or 属性名: relatedBundleName|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: FormInfo
方法名 or 属性名: scheduledUpdateTime|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: FormInfo
方法名 or 属性名: formConfigAbility|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: FormInfo
方法名 or 属性名: updateDuration|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: FormInfo
方法名 or 属性名: defaultDimension|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: FormInfo
方法名 or 属性名: supportDimensions|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: FormInfo
方法名 or 属性名: customizeData|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: FormType|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: FormType
方法名 or 属性名: JS|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: FormType
方法名 or 属性名: eTS|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: ColorMode|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: ColorMode
方法名 or 属性名: MODE_AUTO|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: ColorMode
方法名 or 属性名: MODE_DARK|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: ColorMode
方法名 or 属性名: MODE_LIGHT|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: FormStateInfo|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: FormStateInfo
方法名 or 属性名: formState|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: FormStateInfo
方法名 or 属性名: want|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: FormState|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: FormState
方法名 or 属性名: UNKNOWN|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: FormState
方法名 or 属性名: DEFAULT|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: FormState
方法名 or 属性名: READY|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: FormParam|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: FormParam
方法名 or 属性名: IDENTITY_KEY|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: FormParam
方法名 or 属性名: DIMENSION_KEY|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: FormParam
方法名 or 属性名: NAME_KEY|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: FormParam
方法名 or 属性名: MODULE_NAME_KEY|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: FormParam
方法名 or 属性名: WIDTH_KEY|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: FormParam
方法名 or 属性名: HEIGHT_KEY|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: FormParam
方法名 or 属性名: TEMPORARY_KEY|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: FormParam
方法名 or 属性名: BUNDLE_NAME_KEY|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: FormParam
方法名 or 属性名: ABILITY_NAME_KEY|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: FormParam
方法名 or 属性名: DEVICE_ID_KEY|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: FormInfoFilter|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: FormInfoFilter
方法名 or 属性名: moduleName|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: FormDimension|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: FormDimension
方法名 or 属性名: Dimension_1_2|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: FormDimension
方法名 or 属性名: Dimension_2_2|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: FormDimension
方法名 or 属性名: Dimension_2_4|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: FormDimension
方法名 or 属性名: Dimension_4_4|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: FormDimension
方法名 or 属性名: Dimension_2_1|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: VisibilityType|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: VisibilityType
方法名 or 属性名: FORM_VISIBLE|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formInfo
类名: VisibilityType
方法名 or 属性名: FORM_INVISIBLE|@ohos.app.form.formInfo.d.ts| +|新增|NA|模块名: ohos.app.form.formProvider
类名: formProvider|@ohos.app.form.formProvider.d.ts| +|新增|NA|模块名: ohos.app.form.formProvider
类名: formProvider
方法名 or 属性名: setFormNextRefreshTime|@ohos.app.form.formProvider.d.ts| +|新增|NA|模块名: ohos.app.form.formProvider
类名: formProvider
方法名 or 属性名: setFormNextRefreshTime|@ohos.app.form.formProvider.d.ts| +|新增|NA|模块名: ohos.app.form.formProvider
类名: formProvider
方法名 or 属性名: updateForm|@ohos.app.form.formProvider.d.ts| +|新增|NA|模块名: ohos.app.form.formProvider
类名: formProvider
方法名 or 属性名: updateForm|@ohos.app.form.formProvider.d.ts| +|新增|NA|模块名: ohos.app.form.formProvider
类名: formProvider
方法名 or 属性名: getFormsInfo|@ohos.app.form.formProvider.d.ts| +|新增|NA|模块名: ohos.app.form.formProvider
类名: formProvider
方法名 or 属性名: getFormsInfo|@ohos.app.form.formProvider.d.ts| +|新增|NA|模块名: ohos.app.form.formProvider
类名: formProvider
方法名 or 属性名: getFormsInfo|@ohos.app.form.formProvider.d.ts| +|新增|NA|模块名: ohos.app.form.formProvider
类名: formProvider
方法名 or 属性名: requestPublishForm|@ohos.app.form.formProvider.d.ts| +|新增|NA|模块名: ohos.app.form.formProvider
类名: formProvider
方法名 or 属性名: requestPublishForm|@ohos.app.form.formProvider.d.ts| +|新增|NA|模块名: ohos.app.form.formProvider
类名: formProvider
方法名 or 属性名: requestPublishForm|@ohos.app.form.formProvider.d.ts| +|新增|NA|模块名: ohos.app.form.formProvider
类名: formProvider
方法名 or 属性名: isRequestPublishFormSupported|@ohos.app.form.formProvider.d.ts| +|新增|NA|模块名: ohos.app.form.formProvider
类名: formProvider
方法名 or 属性名: isRequestPublishFormSupported|@ohos.app.form.formProvider.d.ts| +|新增|NA|模块名: ohos.application.AbilityConstant
类名: LaunchReason
方法名 or 属性名:APP_RECOVERY|@ohos.application.AbilityConstant.d.ts| +|新增|NA|模块名: ohos.application.AbilityConstant
类名: OnSaveResult|@ohos.application.AbilityConstant.d.ts| +|新增|NA|模块名: ohos.application.AbilityConstant
类名: OnSaveResult
方法名 or 属性名:ALL_AGREE|@ohos.application.AbilityConstant.d.ts| +|新增|NA|模块名: ohos.application.AbilityConstant
类名: OnSaveResult
方法名 or 属性名:CONTINUATION_REJECT|@ohos.application.AbilityConstant.d.ts| +|新增|NA|模块名: ohos.application.AbilityConstant
类名: OnSaveResult
方法名 or 属性名:CONTINUATION_MISMATCH|@ohos.application.AbilityConstant.d.ts| +|新增|NA|模块名: ohos.application.AbilityConstant
类名: OnSaveResult
方法名 or 属性名:RECOVERY_AGREE|@ohos.application.AbilityConstant.d.ts| +|新增|NA|模块名: ohos.application.AbilityConstant
类名: OnSaveResult
方法名 or 属性名:RECOVERY_REJECT|@ohos.application.AbilityConstant.d.ts| +|新增|NA|模块名: ohos.application.AbilityConstant
类名: OnSaveResult
方法名 or 属性名:ALL_REJECT|@ohos.application.AbilityConstant.d.ts| +|新增|NA|模块名: ohos.application.AbilityConstant
类名: StateType|@ohos.application.AbilityConstant.d.ts| +|新增|NA|模块名: ohos.application.AbilityConstant
类名: StateType
方法名 or 属性名:CONTINUATION|@ohos.application.AbilityConstant.d.ts| +|新增|NA|模块名: ohos.application.AbilityConstant
类名: StateType
方法名 or 属性名:APP_RECOVERY|@ohos.application.AbilityConstant.d.ts| +|新增|NA|模块名: ohos.application.ExtensionAbility
类名: ExtensionAbility|@ohos.application.ExtensionAbility.d.ts| +|新增|NA|模块名: ohos.application.ExtensionAbility
类名: ExtensionAbility
方法名 or 属性名: onConfigurationUpdated|@ohos.application.ExtensionAbility.d.ts| +|新增|NA|模块名: ohos.application.ExtensionAbility
类名: ExtensionAbility
方法名 or 属性名: onMemoryLevel|@ohos.application.ExtensionAbility.d.ts| +|新增|NA|模块名: ohos.application.formInfo
类名: FormType
方法名 or 属性名:eTS|@ohos.application.formInfo.d.ts| +|新增|NA|方法名 or 属性名:waitAbilityMonitor
函数:waitAbilityMonitor(monitor: AbilityMonitor, callback: AsyncCallback): void;|abilityDelegator.d.ts| +|新增|NA|方法名 or 属性名:waitAbilityMonitor
函数:waitAbilityMonitor(monitor: AbilityMonitor, timeout: number, callback: AsyncCallback): void;|abilityDelegator.d.ts| +|新增|NA|方法名 or 属性名:waitAbilityMonitor
函数:waitAbilityMonitor(monitor: AbilityMonitor, timeout?: number): Promise;|abilityDelegator.d.ts| +|新增|NA|方法名 or 属性名:getAbilityState
函数:getAbilityState(ability: UIAbility): number;|abilityDelegator.d.ts| +|新增|NA|方法名 or 属性名:getCurrentTopAbility
函数:getCurrentTopAbility(callback: AsyncCallback): void;|abilityDelegator.d.ts| +|新增|NA|方法名 or 属性名:getCurrentTopAbility
函数:getCurrentTopAbility(): Promise|abilityDelegator.d.ts| +|新增|NA|方法名 or 属性名:doAbilityForeground
函数:doAbilityForeground(ability: UIAbility, callback: AsyncCallback): void;|abilityDelegator.d.ts| +|新增|NA|方法名 or 属性名:doAbilityForeground
函数:doAbilityForeground(ability: UIAbility): Promise;|abilityDelegator.d.ts| +|新增|NA|方法名 or 属性名:doAbilityBackground
函数:doAbilityBackground(ability: UIAbility, callback: AsyncCallback): void;|abilityDelegator.d.ts| +|新增|NA|方法名 or 属性名:doAbilityBackground
函数:doAbilityBackground(ability: UIAbility): Promise;|abilityDelegator.d.ts| +|新增|NA|方法名 or 属性名:onAbilityCreate
函数:onAbilityCreate?:(ability: UIAbility) => void;|abilityMonitor.d.ts| +|新增|NA|方法名 or 属性名:onAbilityForeground
函数:onAbilityForeground?:(ability: UIAbility) => void;|abilityMonitor.d.ts| +|新增|NA|方法名 or 属性名:onAbilityBackground
函数:onAbilityBackground?:(ability: UIAbility) => void;|abilityMonitor.d.ts| +|新增|NA|方法名 or 属性名:onAbilityDestroy
函数:onAbilityDestroy?:(ability: UIAbility) => void;|abilityMonitor.d.ts| +|新增|NA|方法名 or 属性名:onWindowStageCreate
函数:onWindowStageCreate?:(ability: UIAbility) => void;|abilityMonitor.d.ts| +|新增|NA|方法名 or 属性名:onWindowStageRestore
函数:onWindowStageRestore?:(ability: UIAbility) => void;|abilityMonitor.d.ts| +|新增|NA|方法名 or 属性名:onWindowStageDestroy
函数:onWindowStageDestroy?:(ability: UIAbility) => void;|abilityMonitor.d.ts| +|新增|NA|模块名: ContinueCallback
类名: ContinueCallback|ContinueCallback.d.ts| +|新增|NA|模块名: ContinueCallback
类名: ContinueCallback
方法名 or 属性名: onContinueDone|ContinueCallback.d.ts| +|新增|NA|模块名: ContinueDeviceInfo
类名: ContinueDeviceInfo|ContinueDeviceInfo.d.ts| +|新增|NA|模块名: ContinueDeviceInfo
类名: ContinueDeviceInfo
方法名 or 属性名: srcDeviceId|ContinueDeviceInfo.d.ts| +|新增|NA|模块名: ContinueDeviceInfo
类名: ContinueDeviceInfo
方法名 or 属性名: dstDeviceId|ContinueDeviceInfo.d.ts| +|新增|NA|模块名: ContinueDeviceInfo
类名: ContinueDeviceInfo
方法名 or 属性名: missionId|ContinueDeviceInfo.d.ts| +|新增|NA|模块名: ContinueDeviceInfo
类名: ContinueDeviceInfo
方法名 or 属性名: wantParam|ContinueDeviceInfo.d.ts| +|新增|NA|模块名: MissionListener
类名: MissionListener
方法名 or 属性名: onMissionLabelUpdated|MissionListener.d.ts| +|新增|NA|模块名: UIAbilityContext
类名: UIAbilityContext|UIAbilityContext.d.ts| +|新增|NA|模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: abilityInfo|UIAbilityContext.d.ts| +|新增|NA|模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: currentHapModuleInfo|UIAbilityContext.d.ts| +|新增|NA|模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: config|UIAbilityContext.d.ts| +|新增|NA|模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: startAbility|UIAbilityContext.d.ts| +|新增|NA|模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: startAbility|UIAbilityContext.d.ts| +|新增|NA|模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: startAbility|UIAbilityContext.d.ts| +|新增|NA|模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: startAbilityByCall|UIAbilityContext.d.ts| +|新增|NA|模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: startAbilityWithAccount|UIAbilityContext.d.ts| +|新增|NA|模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: startAbilityWithAccount|UIAbilityContext.d.ts| +|新增|NA|模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: startAbilityWithAccount|UIAbilityContext.d.ts| +|新增|NA|模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: startAbilityForResult|UIAbilityContext.d.ts| +|新增|NA|模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: startAbilityForResult|UIAbilityContext.d.ts| +|新增|NA|模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: startAbilityForResult|UIAbilityContext.d.ts| +|新增|NA|模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: startAbilityForResultWithAccount|UIAbilityContext.d.ts| +|新增|NA|模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: startAbilityForResultWithAccount|UIAbilityContext.d.ts| +|新增|NA|模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: startAbilityForResultWithAccount|UIAbilityContext.d.ts| +|新增|NA|模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: startServiceExtensionAbility|UIAbilityContext.d.ts| +|新增|NA|模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: startServiceExtensionAbility|UIAbilityContext.d.ts| +|新增|NA|模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: startServiceExtensionAbilityWithAccount|UIAbilityContext.d.ts| +|新增|NA|模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: startServiceExtensionAbilityWithAccount|UIAbilityContext.d.ts| +|新增|NA|模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: stopServiceExtensionAbility|UIAbilityContext.d.ts| +|新增|NA|模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: stopServiceExtensionAbility|UIAbilityContext.d.ts| +|新增|NA|模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: stopServiceExtensionAbilityWithAccount|UIAbilityContext.d.ts| +|新增|NA|模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: stopServiceExtensionAbilityWithAccount|UIAbilityContext.d.ts| +|新增|NA|模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: terminateSelf|UIAbilityContext.d.ts| +|新增|NA|模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: terminateSelf|UIAbilityContext.d.ts| +|新增|NA|模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: terminateSelfWithResult|UIAbilityContext.d.ts| +|新增|NA|模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: terminateSelfWithResult|UIAbilityContext.d.ts| +|新增|NA|模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: connectServiceExtensionAbility|UIAbilityContext.d.ts| +|新增|NA|模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: connectServiceExtensionAbilityWithAccount|UIAbilityContext.d.ts| +|新增|NA|模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: disconnectServiceExtensionAbility|UIAbilityContext.d.ts| +|新增|NA|模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: disconnectServiceExtensionAbility|UIAbilityContext.d.ts| +|新增|NA|模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: setMissionLabel|UIAbilityContext.d.ts| +|新增|NA|模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: setMissionLabel|UIAbilityContext.d.ts| +|新增|NA|模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: setMissionIcon|UIAbilityContext.d.ts| +|新增|NA|模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: setMissionIcon|UIAbilityContext.d.ts| +|新增|NA|模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: requestPermissionsFromUser|UIAbilityContext.d.ts| +|新增|NA|模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: requestPermissionsFromUser|UIAbilityContext.d.ts| +|新增|NA|模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: restoreWindowStage|UIAbilityContext.d.ts| +|新增|NA|模块名: UIAbilityContext
类名: UIAbilityContext
方法名 or 属性名: isTerminating|UIAbilityContext.d.ts| +|删除|模块名: ohos.application.context
类名: AreaMode|NA|@ohos.application.context.d.ts| +|删除|模块名: ohos.application.context
类名: AreaMode
方法名 or 属性名:EL1|NA|@ohos.application.context.d.ts| +|删除|模块名: ohos.application.context
类名: AreaMode
方法名 or 属性名:EL2|NA|@ohos.application.context.d.ts| +|删除|模块名:ohos.application.formInfo
类名:VisibilityType|NA|@ohos.application.formInfo.d.ts| +|删除|模块名:ohos.application.formInfo
类名:VisibilityType
方法名 or 属性名:FORM_VISIBLE|NA|@ohos.application.formInfo.d.ts| +|删除|模块名:ohos.application.formInfo
类名:VisibilityType
方法名 or 属性名:FORM_INVISIBLE|NA|@ohos.application.formInfo.d.ts| +|删除|模块名: ohos.application.quickFixManager
类名: quickFixManager|NA|@ohos.application.quickFixManager.d.ts| +|删除|模块名: ohos.application.quickFixManager
类名: HapModuleQuickFixInfo|NA|@ohos.application.quickFixManager.d.ts| +|删除|模块名: ohos.application.quickFixManager
类名: HapModuleQuickFixInfo
方法名 or 属性名: moduleName|NA|@ohos.application.quickFixManager.d.ts| +|删除|模块名: ohos.application.quickFixManager
类名: HapModuleQuickFixInfo
方法名 or 属性名: originHapHash|NA|@ohos.application.quickFixManager.d.ts| +|删除|模块名: ohos.application.quickFixManager
类名: HapModuleQuickFixInfo
方法名 or 属性名: quickFixFilePath|NA|@ohos.application.quickFixManager.d.ts| +|删除|模块名: ohos.application.quickFixManager
类名: ApplicationQuickFixInfo|NA|@ohos.application.quickFixManager.d.ts| +|删除|模块名: ohos.application.quickFixManager
类名: ApplicationQuickFixInfo
方法名 or 属性名: bundleName|NA|@ohos.application.quickFixManager.d.ts| +|删除|模块名: ohos.application.quickFixManager
类名: ApplicationQuickFixInfo
方法名 or 属性名: bundleVersionCode|NA|@ohos.application.quickFixManager.d.ts| +|删除|模块名: ohos.application.quickFixManager
类名: ApplicationQuickFixInfo
方法名 or 属性名: bundleVersionName|NA|@ohos.application.quickFixManager.d.ts| +|删除|模块名: ohos.application.quickFixManager
类名: ApplicationQuickFixInfo
方法名 or 属性名: quickFixVersionCode|NA|@ohos.application.quickFixManager.d.ts| +|删除|模块名: ohos.application.quickFixManager
类名: ApplicationQuickFixInfo
方法名 or 属性名: quickFixVersionName|NA|@ohos.application.quickFixManager.d.ts| +|删除|模块名: ohos.application.quickFixManager
类名: ApplicationQuickFixInfo
方法名 or 属性名: hapModuleQuickFixInfo|NA|@ohos.application.quickFixManager.d.ts| +|删除|模块名: ohos.application.quickFixManager
类名: quickFixManager
方法名 or 属性名: applyQuickFix|NA|@ohos.application.quickFixManager.d.ts| +|删除|模块名: ohos.application.quickFixManager
类名: quickFixManager
方法名 or 属性名: applyQuickFix|NA|@ohos.application.quickFixManager.d.ts| +|删除|模块名: ohos.application.quickFixManager
类名: quickFixManager
方法名 or 属性名: getApplicationQuickFixInfo|NA|@ohos.application.quickFixManager.d.ts| +|删除|模块名: ohos.application.quickFixManager
类名: quickFixManager
方法名 or 属性名: getApplicationQuickFixInfo|NA|@ohos.application.quickFixManager.d.ts| |model有变化|类名:ability
model:@StageModelOnly|类名:ability
model:@FAModelOnly|@ohos.ability.ability.d.ts| |访问级别有变化|方法名 or 属性名:startAbilityByCall
访问级别:公开API|方法名 or 属性名:startAbilityByCall
访问级别:系统API|AbilityContext.d.ts| |废弃版本有变化|类名:wantConstant
废弃版本:N/A|类名:wantConstant
废弃版本:9
代替接口:ohos.app.ability.wantConstant |@ohos.ability.wantConstant.d.ts| @@ -681,77 +643,77 @@ |废弃版本有变化|方法名 or 属性名:disconnectAbility
废弃版本:N/A|方法名 or 属性名:disconnectAbility
废弃版本:9|ServiceExtensionContext.d.ts| |起始版本有变化|类名:AbilityDelegator
起始版本:8|类名:AbilityDelegator
起始版本:9|abilityDelegator.d.ts| |删除(权限)|类名:distributedMissionManager
权限:ohos.permission.MANAGE_MISSIONS|类名:distributedMissionManager
权限:N/A|@ohos.distributedMissionManager.d.ts| -|新增(错误码)||方法名 or 属性名:on_deviceConnect
错误码内容:401,16600001,16600002,16600004|@ohos.continuation.continuationManager.d.ts| -|新增(错误码)||方法名 or 属性名:on_deviceDisconnect
错误码内容:401,16600001,16600002,16600004|@ohos.continuation.continuationManager.d.ts| -|新增(错误码)||方法名 or 属性名:startSyncRemoteMissions
错误码内容:201,401|@ohos.distributedMissionManager.d.ts| -|新增(错误码)||方法名 or 属性名:stopSyncRemoteMissions
错误码内容:201,401|@ohos.distributedMissionManager.d.ts| -|新增(错误码)||方法名 or 属性名:registerMissionListener
错误码内容:201,401|@ohos.distributedMissionManager.d.ts| -|新增(错误码)||方法名 or 属性名:startAbility
错误码内容:401|AbilityContext.d.ts| -|新增(错误码)||方法名 or 属性名:startAbility
错误码内容:401|AbilityContext.d.ts| -|新增(错误码)||方法名 or 属性名:startAbility
错误码内容:401|AbilityContext.d.ts| -|新增(错误码)||方法名 or 属性名:startAbilityByCall
错误码内容:401|AbilityContext.d.ts| -|新增(错误码)||方法名 or 属性名:startAbilityWithAccount
错误码内容:401|AbilityContext.d.ts| -|新增(错误码)||方法名 or 属性名:startAbilityWithAccount
错误码内容:401|AbilityContext.d.ts| -|新增(错误码)||方法名 or 属性名:startAbilityWithAccount
错误码内容:401|AbilityContext.d.ts| -|新增(错误码)||方法名 or 属性名:startAbilityForResult
错误码内容:401|AbilityContext.d.ts| -|新增(错误码)||方法名 or 属性名:startAbilityForResult
错误码内容:401|AbilityContext.d.ts| -|新增(错误码)||方法名 or 属性名:startAbilityForResult
错误码内容:401|AbilityContext.d.ts| -|新增(错误码)||方法名 or 属性名:startAbilityForResultWithAccount
错误码内容:401|AbilityContext.d.ts| -|新增(错误码)||方法名 or 属性名:startAbilityForResultWithAccount
错误码内容:401|AbilityContext.d.ts| -|新增(错误码)||方法名 or 属性名:startAbilityForResultWithAccount
错误码内容:401|AbilityContext.d.ts| -|新增(错误码)||方法名 or 属性名:startServiceExtensionAbility
错误码内容:401|AbilityContext.d.ts| -|新增(错误码)||方法名 or 属性名:startServiceExtensionAbility
错误码内容:401|AbilityContext.d.ts| -|新增(错误码)||方法名 or 属性名:startServiceExtensionAbilityWithAccount
错误码内容:401|AbilityContext.d.ts| -|新增(错误码)||方法名 or 属性名:startServiceExtensionAbilityWithAccount
错误码内容:401|AbilityContext.d.ts| -|新增(错误码)||方法名 or 属性名:stopServiceExtensionAbility
错误码内容:401|AbilityContext.d.ts| -|新增(错误码)||方法名 or 属性名:stopServiceExtensionAbility
错误码内容:401|AbilityContext.d.ts| -|新增(错误码)||方法名 or 属性名:stopServiceExtensionAbilityWithAccount
错误码内容:401|AbilityContext.d.ts| -|新增(错误码)||方法名 or 属性名:stopServiceExtensionAbilityWithAccount
错误码内容:401|AbilityContext.d.ts| -|新增(错误码)||方法名 or 属性名:terminateSelf
错误码内容:401|AbilityContext.d.ts| -|新增(错误码)||方法名 or 属性名:terminateSelf
错误码内容:401|AbilityContext.d.ts| -|新增(错误码)||方法名 or 属性名:terminateSelfWithResult
错误码内容:401|AbilityContext.d.ts| -|新增(错误码)||方法名 or 属性名:terminateSelfWithResult
错误码内容:401|AbilityContext.d.ts| -|新增(错误码)||方法名 or 属性名:setMissionLabel
错误码内容:401|AbilityContext.d.ts| -|新增(错误码)||方法名 or 属性名:setMissionIcon
错误码内容:401|AbilityContext.d.ts| -|新增(错误码)||方法名 or 属性名:addAbilityMonitor
错误码内容:401|abilityDelegator.d.ts| -|新增(错误码)||方法名 or 属性名:addAbilityMonitor
错误码内容:401|abilityDelegator.d.ts| -|新增(错误码)||方法名 or 属性名:addAbilityStageMonitor
错误码内容:401|abilityDelegator.d.ts| -|新增(错误码)||方法名 or 属性名:addAbilityStageMonitor
错误码内容:401|abilityDelegator.d.ts| -|新增(错误码)||方法名 or 属性名:removeAbilityMonitor
错误码内容:401|abilityDelegator.d.ts| -|新增(错误码)||方法名 or 属性名:removeAbilityMonitor
错误码内容:401|abilityDelegator.d.ts| -|新增(错误码)||方法名 or 属性名:removeAbilityStageMonitor
错误码内容:401|abilityDelegator.d.ts| -|新增(错误码)||方法名 or 属性名:removeAbilityStageMonitor
错误码内容:401|abilityDelegator.d.ts| -|新增(错误码)||方法名 or 属性名:waitAbilityStageMonitor
错误码内容:401|abilityDelegator.d.ts| -|新增(错误码)||方法名 or 属性名:waitAbilityStageMonitor
错误码内容:401|abilityDelegator.d.ts| -|新增(错误码)||方法名 or 属性名:waitAbilityStageMonitor
错误码内容:401|abilityDelegator.d.ts| -|新增(错误码)||方法名 or 属性名:startAbility
错误码内容:401|abilityDelegator.d.ts| -|新增(错误码)||方法名 or 属性名:startAbility
错误码内容:401|abilityDelegator.d.ts| -|新增(错误码)||方法名 or 属性名:printSync
错误码内容:401|abilityDelegator.d.ts| -|新增(错误码)||方法名 or 属性名:finishTest
错误码内容:401|abilityDelegator.d.ts| -|新增(错误码)||方法名 or 属性名:finishTest
错误码内容:401|abilityDelegator.d.ts| -|新增(错误码)||方法名 or 属性名:createBundleContext
错误码内容:401|Context.d.ts| -|新增(错误码)||方法名 or 属性名:createModuleContext
错误码内容:401|Context.d.ts| -|新增(错误码)||方法名 or 属性名:createModuleContext
错误码内容:401|Context.d.ts| -|新增(错误码)||方法名 or 属性名:on
错误码内容:401|EventHub.d.ts| -|新增(错误码)||方法名 or 属性名:off
错误码内容:401|EventHub.d.ts| -|新增(错误码)||方法名 or 属性名:emit
错误码内容:401|EventHub.d.ts| -|新增(错误码)||方法名 or 属性名:startAbility
错误码内容:401|ServiceExtensionContext.d.ts| -|新增(错误码)||方法名 or 属性名:startAbility
错误码内容:401|ServiceExtensionContext.d.ts| -|新增(错误码)||方法名 or 属性名:startAbility
错误码内容:401|ServiceExtensionContext.d.ts| -|新增(错误码)||方法名 or 属性名:startAbilityWithAccount
错误码内容:401|ServiceExtensionContext.d.ts| -|新增(错误码)||方法名 or 属性名:startAbilityWithAccount
错误码内容:401|ServiceExtensionContext.d.ts| -|新增(错误码)||方法名 or 属性名:startAbilityWithAccount
错误码内容:401|ServiceExtensionContext.d.ts| -|新增(错误码)||方法名 or 属性名:startServiceExtensionAbility
错误码内容:401|ServiceExtensionContext.d.ts| -|新增(错误码)||方法名 or 属性名:startServiceExtensionAbility
错误码内容:401|ServiceExtensionContext.d.ts| -|新增(错误码)||方法名 or 属性名:startServiceExtensionAbilityWithAccount
错误码内容:401|ServiceExtensionContext.d.ts| -|新增(错误码)||方法名 or 属性名:startServiceExtensionAbilityWithAccount
错误码内容:401|ServiceExtensionContext.d.ts| -|新增(错误码)||方法名 or 属性名:stopServiceExtensionAbility
错误码内容:401|ServiceExtensionContext.d.ts| -|新增(错误码)||方法名 or 属性名:stopServiceExtensionAbility
错误码内容:401|ServiceExtensionContext.d.ts| -|新增(错误码)||方法名 or 属性名:stopServiceExtensionAbilityWithAccount
错误码内容:401|ServiceExtensionContext.d.ts| -|新增(错误码)||方法名 or 属性名:stopServiceExtensionAbilityWithAccount
错误码内容:401|ServiceExtensionContext.d.ts| -|新增(错误码)||方法名 or 属性名:terminateSelf
错误码内容:401|ServiceExtensionContext.d.ts| -|新增(错误码)||方法名 or 属性名:terminateSelf
错误码内容:401|ServiceExtensionContext.d.ts| -|新增(错误码)||方法名 or 属性名:startAbilityByCall
错误码内容:401|ServiceExtensionContext.d.ts| +|新增(错误码)|NA|方法名 or 属性名:on_deviceConnect
错误码内容:401,16600001,16600002,16600004|@ohos.continuation.continuationManager.d.ts| +|新增(错误码)|NA|方法名 or 属性名:on_deviceDisconnect
错误码内容:401,16600001,16600002,16600004|@ohos.continuation.continuationManager.d.ts| +|新增(错误码)|NA|方法名 or 属性名:startSyncRemoteMissions
错误码内容:201,401|@ohos.distributedMissionManager.d.ts| +|新增(错误码)|NA|方法名 or 属性名:stopSyncRemoteMissions
错误码内容:201,401|@ohos.distributedMissionManager.d.ts| +|新增(错误码)|NA|方法名 or 属性名:registerMissionListener
错误码内容:201,401|@ohos.distributedMissionManager.d.ts| +|新增(错误码)|NA|方法名 or 属性名:startAbility
错误码内容:401|AbilityContext.d.ts| +|新增(错误码)|NA|方法名 or 属性名:startAbility
错误码内容:401|AbilityContext.d.ts| +|新增(错误码)|NA|方法名 or 属性名:startAbility
错误码内容:401|AbilityContext.d.ts| +|新增(错误码)|NA|方法名 or 属性名:startAbilityByCall
错误码内容:401|AbilityContext.d.ts| +|新增(错误码)|NA|方法名 or 属性名:startAbilityWithAccount
错误码内容:401|AbilityContext.d.ts| +|新增(错误码)|NA|方法名 or 属性名:startAbilityWithAccount
错误码内容:401|AbilityContext.d.ts| +|新增(错误码)|NA|方法名 or 属性名:startAbilityWithAccount
错误码内容:401|AbilityContext.d.ts| +|新增(错误码)|NA|方法名 or 属性名:startAbilityForResult
错误码内容:401|AbilityContext.d.ts| +|新增(错误码)|NA|方法名 or 属性名:startAbilityForResult
错误码内容:401|AbilityContext.d.ts| +|新增(错误码)|NA|方法名 or 属性名:startAbilityForResult
错误码内容:401|AbilityContext.d.ts| +|新增(错误码)|NA|方法名 or 属性名:startAbilityForResultWithAccount
错误码内容:401|AbilityContext.d.ts| +|新增(错误码)|NA|方法名 or 属性名:startAbilityForResultWithAccount
错误码内容:401|AbilityContext.d.ts| +|新增(错误码)|NA|方法名 or 属性名:startAbilityForResultWithAccount
错误码内容:401|AbilityContext.d.ts| +|新增(错误码)|NA|方法名 or 属性名:startServiceExtensionAbility
错误码内容:401|AbilityContext.d.ts| +|新增(错误码)|NA|方法名 or 属性名:startServiceExtensionAbility
错误码内容:401|AbilityContext.d.ts| +|新增(错误码)|NA|方法名 or 属性名:startServiceExtensionAbilityWithAccount
错误码内容:401|AbilityContext.d.ts| +|新增(错误码)|NA|方法名 or 属性名:startServiceExtensionAbilityWithAccount
错误码内容:401|AbilityContext.d.ts| +|新增(错误码)|NA|方法名 or 属性名:stopServiceExtensionAbility
错误码内容:401|AbilityContext.d.ts| +|新增(错误码)|NA|方法名 or 属性名:stopServiceExtensionAbility
错误码内容:401|AbilityContext.d.ts| +|新增(错误码)|NA|方法名 or 属性名:stopServiceExtensionAbilityWithAccount
错误码内容:401|AbilityContext.d.ts| +|新增(错误码)|NA|方法名 or 属性名:stopServiceExtensionAbilityWithAccount
错误码内容:401|AbilityContext.d.ts| +|新增(错误码)|NA|方法名 or 属性名:terminateSelf
错误码内容:401|AbilityContext.d.ts| +|新增(错误码)|NA|方法名 or 属性名:terminateSelf
错误码内容:401|AbilityContext.d.ts| +|新增(错误码)|NA|方法名 or 属性名:terminateSelfWithResult
错误码内容:401|AbilityContext.d.ts| +|新增(错误码)|NA|方法名 or 属性名:terminateSelfWithResult
错误码内容:401|AbilityContext.d.ts| +|新增(错误码)|NA|方法名 or 属性名:setMissionLabel
错误码内容:401|AbilityContext.d.ts| +|新增(错误码)|NA|方法名 or 属性名:setMissionIcon
错误码内容:401|AbilityContext.d.ts| +|新增(错误码)|NA|方法名 or 属性名:addAbilityMonitor
错误码内容:401|abilityDelegator.d.ts| +|新增(错误码)|NA|方法名 or 属性名:addAbilityMonitor
错误码内容:401|abilityDelegator.d.ts| +|新增(错误码)|NA|方法名 or 属性名:addAbilityStageMonitor
错误码内容:401|abilityDelegator.d.ts| +|新增(错误码)|NA|方法名 or 属性名:addAbilityStageMonitor
错误码内容:401|abilityDelegator.d.ts| +|新增(错误码)|NA|方法名 or 属性名:removeAbilityMonitor
错误码内容:401|abilityDelegator.d.ts| +|新增(错误码)|NA|方法名 or 属性名:removeAbilityMonitor
错误码内容:401|abilityDelegator.d.ts| +|新增(错误码)|NA|方法名 or 属性名:removeAbilityStageMonitor
错误码内容:401|abilityDelegator.d.ts| +|新增(错误码)|NA|方法名 or 属性名:removeAbilityStageMonitor
错误码内容:401|abilityDelegator.d.ts| +|新增(错误码)|NA|方法名 or 属性名:waitAbilityStageMonitor
错误码内容:401|abilityDelegator.d.ts| +|新增(错误码)|NA|方法名 or 属性名:waitAbilityStageMonitor
错误码内容:401|abilityDelegator.d.ts| +|新增(错误码)|NA|方法名 or 属性名:waitAbilityStageMonitor
错误码内容:401|abilityDelegator.d.ts| +|新增(错误码)|NA|方法名 or 属性名:startAbility
错误码内容:401|abilityDelegator.d.ts| +|新增(错误码)|NA|方法名 or 属性名:startAbility
错误码内容:401|abilityDelegator.d.ts| +|新增(错误码)|NA|方法名 or 属性名:printSync
错误码内容:401|abilityDelegator.d.ts| +|新增(错误码)|NA|方法名 or 属性名:finishTest
错误码内容:401|abilityDelegator.d.ts| +|新增(错误码)|NA|方法名 or 属性名:finishTest
错误码内容:401|abilityDelegator.d.ts| +|新增(错误码)|NA|方法名 or 属性名:createBundleContext
错误码内容:401|Context.d.ts| +|新增(错误码)|NA|方法名 or 属性名:createModuleContext
错误码内容:401|Context.d.ts| +|新增(错误码)|NA|方法名 or 属性名:createModuleContext
错误码内容:401|Context.d.ts| +|新增(错误码)|NA|方法名 or 属性名:on
错误码内容:401|EventHub.d.ts| +|新增(错误码)|NA|方法名 or 属性名:off
错误码内容:401|EventHub.d.ts| +|新增(错误码)|NA|方法名 or 属性名:emit
错误码内容:401|EventHub.d.ts| +|新增(错误码)|NA|方法名 or 属性名:startAbility
错误码内容:401|ServiceExtensionContext.d.ts| +|新增(错误码)|NA|方法名 or 属性名:startAbility
错误码内容:401|ServiceExtensionContext.d.ts| +|新增(错误码)|NA|方法名 or 属性名:startAbility
错误码内容:401|ServiceExtensionContext.d.ts| +|新增(错误码)|NA|方法名 or 属性名:startAbilityWithAccount
错误码内容:401|ServiceExtensionContext.d.ts| +|新增(错误码)|NA|方法名 or 属性名:startAbilityWithAccount
错误码内容:401|ServiceExtensionContext.d.ts| +|新增(错误码)|NA|方法名 or 属性名:startAbilityWithAccount
错误码内容:401|ServiceExtensionContext.d.ts| +|新增(错误码)|NA|方法名 or 属性名:startServiceExtensionAbility
错误码内容:401|ServiceExtensionContext.d.ts| +|新增(错误码)|NA|方法名 or 属性名:startServiceExtensionAbility
错误码内容:401|ServiceExtensionContext.d.ts| +|新增(错误码)|NA|方法名 or 属性名:startServiceExtensionAbilityWithAccount
错误码内容:401|ServiceExtensionContext.d.ts| +|新增(错误码)|NA|方法名 or 属性名:startServiceExtensionAbilityWithAccount
错误码内容:401|ServiceExtensionContext.d.ts| +|新增(错误码)|NA|方法名 or 属性名:stopServiceExtensionAbility
错误码内容:401|ServiceExtensionContext.d.ts| +|新增(错误码)|NA|方法名 or 属性名:stopServiceExtensionAbility
错误码内容:401|ServiceExtensionContext.d.ts| +|新增(错误码)|NA|方法名 or 属性名:stopServiceExtensionAbilityWithAccount
错误码内容:401|ServiceExtensionContext.d.ts| +|新增(错误码)|NA|方法名 or 属性名:stopServiceExtensionAbilityWithAccount
错误码内容:401|ServiceExtensionContext.d.ts| +|新增(错误码)|NA|方法名 or 属性名:terminateSelf
错误码内容:401|ServiceExtensionContext.d.ts| +|新增(错误码)|NA|方法名 or 属性名:terminateSelf
错误码内容:401|ServiceExtensionContext.d.ts| +|新增(错误码)|NA|方法名 or 属性名:startAbilityByCall
错误码内容:401|ServiceExtensionContext.d.ts| |新增(权限)|方法名 or 属性名:startSyncRemoteMissions
权限:N/A|方法名 or 属性名:startSyncRemoteMissions
权限:ohos.permission.MANAGE_MISSIONS|@ohos.distributedMissionManager.d.ts| |新增(权限)|方法名 or 属性名:startSyncRemoteMissions
权限:N/A|方法名 or 属性名:startSyncRemoteMissions
权限:ohos.permission.MANAGE_MISSIONS|@ohos.distributedMissionManager.d.ts| |新增(权限)|方法名 or 属性名:stopSyncRemoteMissions
权限:N/A|方法名 or 属性名:stopSyncRemoteMissions
权限:ohos.permission.MANAGE_MISSIONS|@ohos.distributedMissionManager.d.ts| diff --git a/zh-cn/release-notes/api-diff/v3.2-beta4/js-apidiff-accessibility.md b/zh-cn/release-notes/api-diff/v3.2-beta4/js-apidiff-accessibility.md index 196923d9263ad1c4510592927242b1f8a7ad7ce0..0b1f2b441ff2108ef7a42fb483b97e62bc39f15e 100644 --- a/zh-cn/release-notes/api-diff/v3.2-beta4/js-apidiff-accessibility.md +++ b/zh-cn/release-notes/api-diff/v3.2-beta4/js-apidiff-accessibility.md @@ -1,52 +1,46 @@ -| 操作 | 新版本 | 旧版本 | d.ts文件 | +| 操作 | 旧版本 | 新版本 | d.ts文件 | | ---- | ------ | ------ | -------- | -|新增||模块名:ohos.accessibility.config
类名:config
方法名 or 属性名:on_enabledAccessibilityExtensionListChange|@ohos.accessibility.config.d.ts| -|新增||模块名:ohos.accessibility.config
类名:config
方法名 or 属性名:off_enabledAccessibilityExtensionListChange|@ohos.accessibility.config.d.ts| -|新增||模块名:ohos.accessibility
类名:accessibility
方法名 or 属性名:getAccessibilityExtensionList|@ohos.accessibility.d.ts| -|新增||模块名:ohos.accessibility
类名:accessibility
方法名 or 属性名:getAccessibilityExtensionList|@ohos.accessibility.d.ts| -|新增||模块名:ohos.accessibility
类名:accessibility
方法名 or 属性名:sendAccessibilityEvent|@ohos.accessibility.d.ts| -|新增||模块名:ohos.accessibility
类名:accessibility
方法名 or 属性名:sendAccessibilityEvent|@ohos.accessibility.d.ts| -|新增||模块名: ohos.accessibility.GesturePath
类名: GesturePath|@ohos.accessibility.GesturePath.d.ts| -|新增||模块名: ohos.accessibility.GesturePath
类名: GesturePath
方法名 or 属性名: ructor(durationTime|@ohos.accessibility.GesturePath.d.ts| -|新增||模块名: ohos.accessibility.GesturePath
类名: GesturePath
方法名 or 属性名: points|@ohos.accessibility.GesturePath.d.ts| -|新增||模块名: ohos.accessibility.GesturePath
类名: GesturePath
方法名 or 属性名: durationTime|@ohos.accessibility.GesturePath.d.ts| -|新增||模块名: ohos.accessibility.GesturePoint
类名: GesturePoint|@ohos.accessibility.GesturePoint.d.ts| -|新增||模块名: ohos.accessibility.GesturePoint
类名: GesturePoint
方法名 or 属性名: ructor(positionX|@ohos.accessibility.GesturePoint.d.ts| -|新增||模块名: ohos.accessibility.GesturePoint
类名: GesturePoint
方法名 or 属性名: positionX|@ohos.accessibility.GesturePoint.d.ts| -|新增||模块名: ohos.accessibility.GesturePoint
类名: GesturePoint
方法名 or 属性名: positionY|@ohos.accessibility.GesturePoint.d.ts| -|新增||方法名 or 属性名:performAction
函数:performAction(actionName: string, parameters?: object): Promise;|AccessibilityExtensionContext.d.ts| -|新增||方法名 or 属性名:performAction
函数:performAction(actionName: string, callback: AsyncCallback): void;|AccessibilityExtensionContext.d.ts| -|新增||方法名 or 属性名:performAction
函数:performAction(actionName: string, parameters: object, callback: AsyncCallback): void;|AccessibilityExtensionContext.d.ts| -|删除|模块名:ohos.accessibility.config
类名:config
方法名 or 属性名:on_enableAbilityListsStateChanged||@ohos.accessibility.config.d.ts| -|删除|模块名:ohos.accessibility.config
类名:config
方法名 or 属性名:off_enableAbilityListsStateChanged||@ohos.accessibility.config.d.ts| -|删除|模块名: ohos.application.AccessibilityExtensionAbility
类名: GesturePath||@ohos.application.AccessibilityExtensionAbility.d.ts| -|删除|模块名: ohos.application.AccessibilityExtensionAbility
类名: GesturePath
方法名 or 属性名: points||@ohos.application.AccessibilityExtensionAbility.d.ts| -|删除|模块名: ohos.application.AccessibilityExtensionAbility
类名: GesturePath
方法名 or 属性名: durationTime||@ohos.application.AccessibilityExtensionAbility.d.ts| -|删除|模块名: ohos.application.AccessibilityExtensionAbility
类名: GesturePoint||@ohos.application.AccessibilityExtensionAbility.d.ts| -|删除|模块名: ohos.application.AccessibilityExtensionAbility
类名: GesturePoint
方法名 or 属性名: positionX||@ohos.application.AccessibilityExtensionAbility.d.ts| -|删除|模块名: ohos.application.AccessibilityExtensionAbility
类名: GesturePoint
方法名 or 属性名: positionY||@ohos.application.AccessibilityExtensionAbility.d.ts| +|新增|NA|模块名: ohos.accessibility.GesturePath
类名: GesturePath|@ohos.accessibility.GesturePath.d.ts| +|新增|NA|模块名: ohos.accessibility.GesturePath
类名: GesturePath
方法名 or 属性名: ructor(durationTime|@ohos.accessibility.GesturePath.d.ts| +|新增|NA|模块名: ohos.accessibility.GesturePath
类名: GesturePath
方法名 or 属性名: points|@ohos.accessibility.GesturePath.d.ts| +|新增|NA|模块名: ohos.accessibility.GesturePath
类名: GesturePath
方法名 or 属性名: durationTime|@ohos.accessibility.GesturePath.d.ts| +|新增|NA|模块名: ohos.accessibility.GesturePoint
类名: GesturePoint|@ohos.accessibility.GesturePoint.d.ts| +|新增|NA|模块名: ohos.accessibility.GesturePoint
类名: GesturePoint
方法名 or 属性名: ructor(positionX|@ohos.accessibility.GesturePoint.d.ts| +|新增|NA|模块名: ohos.accessibility.GesturePoint
类名: GesturePoint
方法名 or 属性名: positionX|@ohos.accessibility.GesturePoint.d.ts| +|新增|NA|模块名: ohos.accessibility.GesturePoint
类名: GesturePoint
方法名 or 属性名: positionY|@ohos.accessibility.GesturePoint.d.ts| +|新增|NA|方法名 or 属性名:performAction
函数:performAction(actionName: string, parameters?: object): Promise;|AccessibilityExtensionContext.d.ts| +|新增|NA|方法名 or 属性名:performAction
函数:performAction(actionName: string, callback: AsyncCallback): void;|AccessibilityExtensionContext.d.ts| +|新增|NA|方法名 or 属性名:performAction
函数:performAction(actionName: string, parameters: object, callback: AsyncCallback): void;|AccessibilityExtensionContext.d.ts| +|删除|模块名:ohos.accessibility.config
类名:config
方法名 or 属性名:on_enableAbilityListsStateChanged|NA|@ohos.accessibility.config.d.ts| +|删除|模块名:ohos.accessibility.config
类名:config
方法名 or 属性名:off_enableAbilityListsStateChanged|NA|@ohos.accessibility.config.d.ts| +|删除|模块名: ohos.application.AccessibilityExtensionAbility
类名: GesturePath|NA|@ohos.application.AccessibilityExtensionAbility.d.ts| +|删除|模块名: ohos.application.AccessibilityExtensionAbility
类名: GesturePath
方法名 or 属性名: points|NA|@ohos.application.AccessibilityExtensionAbility.d.ts| +|删除|模块名: ohos.application.AccessibilityExtensionAbility
类名: GesturePath
方法名 or 属性名: durationTime|NA|@ohos.application.AccessibilityExtensionAbility.d.ts| +|删除|模块名: ohos.application.AccessibilityExtensionAbility
类名: GesturePoint|NA|@ohos.application.AccessibilityExtensionAbility.d.ts| +|删除|模块名: ohos.application.AccessibilityExtensionAbility
类名: GesturePoint
方法名 or 属性名: positionX|NA|@ohos.application.AccessibilityExtensionAbility.d.ts| +|删除|模块名: ohos.application.AccessibilityExtensionAbility
类名: GesturePoint
方法名 or 属性名: positionY|NA|@ohos.application.AccessibilityExtensionAbility.d.ts| |废弃版本有变化|方法名 or 属性名:getAbilityLists
废弃版本:N/A|方法名 or 属性名:getAbilityLists
废弃版本:9
代替接口:ohos.accessibility|@ohos.accessibility.d.ts| |废弃版本有变化|方法名 or 属性名:getAbilityLists
废弃版本:N/A|方法名 or 属性名:getAbilityLists
废弃版本:9|@ohos.accessibility.d.ts| |废弃版本有变化|方法名 or 属性名:sendEvent
废弃版本:N/A|方法名 or 属性名:sendEvent
废弃版本:9
代替接口:ohos.accessibility|@ohos.accessibility.d.ts| |废弃版本有变化|方法名 or 属性名:sendEvent
废弃版本:N/A|方法名 or 属性名:sendEvent
废弃版本:9|@ohos.accessibility.d.ts| -|新增(错误码)||方法名 or 属性名:enableAbility
错误码内容:201,401,9300001,9300002|@ohos.accessibility.config.d.ts| -|新增(错误码)||方法名 or 属性名:disableAbility
错误码内容:201,401,9300001|@ohos.accessibility.config.d.ts| -|新增(错误码)||方法名 or 属性名:set
错误码内容:201,401|@ohos.accessibility.config.d.ts| -|新增(错误码)||方法名 or 属性名:on
错误码内容:401|@ohos.accessibility.config.d.ts| -|新增(错误码)||方法名 or 属性名:on_accessibilityStateChange
错误码内容:401|@ohos.accessibility.d.ts| -|新增(错误码)||方法名 or 属性名:on_touchGuideStateChange
错误码内容:401|@ohos.accessibility.d.ts| -|新增(错误码)||方法名 or 属性名:off_accessibilityStateChange
错误码内容:401|@ohos.accessibility.d.ts| -|新增(错误码)||方法名 or 属性名:off_touchGuideStateChange
错误码内容:401|@ohos.accessibility.d.ts| -|新增(错误码)||方法名 or 属性名:on_enableChange
错误码内容:401|@ohos.accessibility.d.ts| -|新增(错误码)||方法名 or 属性名:on_styleChange
错误码内容:401|@ohos.accessibility.d.ts| -|新增(错误码)||方法名 or 属性名:off_enableChange
错误码内容:401|@ohos.accessibility.d.ts| -|新增(错误码)||方法名 or 属性名:off_styleChange
错误码内容:401|@ohos.accessibility.d.ts| -|新增(错误码)||方法名 or 属性名:setTargetBundleName
错误码内容:401|AccessibilityExtensionContext.d.ts| -|新增(错误码)||方法名 or 属性名:getFocusElement
错误码内容:9300003|AccessibilityExtensionContext.d.ts| -|新增(错误码)||方法名 or 属性名:getWindowRootElement
错误码内容:9300003|AccessibilityExtensionContext.d.ts| -|新增(错误码)||方法名 or 属性名:getWindows
错误码内容:9300003|AccessibilityExtensionContext.d.ts| -|新增(错误码)||方法名 or 属性名:injectGesture
错误码内容:401,9300003|AccessibilityExtensionContext.d.ts| -|新增(错误码)||方法名 or 属性名:attributeValue
错误码内容:401,9300004|AccessibilityExtensionContext.d.ts| -|新增(错误码)||方法名 or 属性名:findElement
错误码内容:401|AccessibilityExtensionContext.d.ts| -|新增(错误码)||方法名 or 属性名:findElement
错误码内容:401|AccessibilityExtensionContext.d.ts| -|新增(错误码)||方法名 or 属性名:findElement
错误码内容:401|AccessibilityExtensionContext.d.ts| +|新增(错误码)|NA|方法名 or 属性名:enableAbility
错误码内容:201,401,9300001,9300002|@ohos.accessibility.config.d.ts| +|新增(错误码)|NA|方法名 or 属性名:disableAbility
错误码内容:201,401,9300001|@ohos.accessibility.config.d.ts| +|新增(错误码)|NA|方法名 or 属性名:set
错误码内容:201,401|@ohos.accessibility.config.d.ts| +|新增(错误码)|NA|方法名 or 属性名:on
错误码内容:401|@ohos.accessibility.config.d.ts| +|新增(错误码)|NA|方法名 or 属性名:on_accessibilityStateChange
错误码内容:401|@ohos.accessibility.d.ts| +|新增(错误码)|NA|方法名 or 属性名:on_touchGuideStateChange
错误码内容:401|@ohos.accessibility.d.ts| +|新增(错误码)|NA|方法名 or 属性名:off_accessibilityStateChange
错误码内容:401|@ohos.accessibility.d.ts| +|新增(错误码)|NA|方法名 or 属性名:off_touchGuideStateChange
错误码内容:401|@ohos.accessibility.d.ts| +|新增(错误码)|NA|方法名 or 属性名:on_enableChange
错误码内容:401|@ohos.accessibility.d.ts| +|新增(错误码)|NA|方法名 or 属性名:on_styleChange
错误码内容:401|@ohos.accessibility.d.ts| +|新增(错误码)|NA|方法名 or 属性名:off_enableChange
错误码内容:401|@ohos.accessibility.d.ts| +|新增(错误码)|NA|方法名 or 属性名:off_styleChange
错误码内容:401|@ohos.accessibility.d.ts| +|新增(错误码)|NA|方法名 or 属性名:setTargetBundleName
错误码内容:401|AccessibilityExtensionContext.d.ts| +|新增(错误码)|NA|方法名 or 属性名:getFocusElement
错误码内容:9300003|AccessibilityExtensionContext.d.ts| +|新增(错误码)|NA|方法名 or 属性名:getWindowRootElement
错误码内容:9300003|AccessibilityExtensionContext.d.ts| +|新增(错误码)|NA|方法名 or 属性名:getWindows
错误码内容:9300003|AccessibilityExtensionContext.d.ts| +|新增(错误码)|NA|方法名 or 属性名:injectGesture
错误码内容:401,9300003|AccessibilityExtensionContext.d.ts| +|新增(错误码)|NA|方法名 or 属性名:attributeValue
错误码内容:401,9300004|AccessibilityExtensionContext.d.ts| +|新增(错误码)|NA|方法名 or 属性名:findElement
错误码内容:401|AccessibilityExtensionContext.d.ts| +|新增(错误码)|NA|方法名 or 属性名:findElement
错误码内容:401|AccessibilityExtensionContext.d.ts| +|新增(错误码)|NA|方法名 or 属性名:findElement
错误码内容:401|AccessibilityExtensionContext.d.ts| diff --git a/zh-cn/release-notes/api-diff/v3.2-beta4/js-apidiff-account.md b/zh-cn/release-notes/api-diff/v3.2-beta4/js-apidiff-account.md index 7f5cd5cb26c4ca19682cdb2cdddfa04576c3cf2a..be54584abbb235339ec1e0e4edec9d96750b6dc9 100644 --- a/zh-cn/release-notes/api-diff/v3.2-beta4/js-apidiff-account.md +++ b/zh-cn/release-notes/api-diff/v3.2-beta4/js-apidiff-account.md @@ -1,134 +1,43 @@ -| 操作 | 新版本 | 旧版本 | d.ts文件 | +| 操作 | 旧版本 | 新版本 | d.ts文件 | | ---- | ------ | ------ | -------- | -|新增||模块名:ohos.account.appAccount
类名:AppAccountManager
方法名 or 属性名:createAccount|@ohos.account.appAccount.d.ts| -|新增||模块名:ohos.account.appAccount
类名:AppAccountManager
方法名 or 属性名:createAccount|@ohos.account.appAccount.d.ts| -|新增||模块名:ohos.account.appAccount
类名:AppAccountManager
方法名 or 属性名:createAccount|@ohos.account.appAccount.d.ts| -|新增||模块名:ohos.account.appAccount
类名:AppAccountManager
方法名 or 属性名:createAccountImplicitly|@ohos.account.appAccount.d.ts| -|新增||模块名:ohos.account.appAccount
类名:AppAccountManager
方法名 or 属性名:createAccountImplicitly|@ohos.account.appAccount.d.ts| -|新增||模块名:ohos.account.appAccount
类名:AppAccountManager
方法名 or 属性名:removeAccount|@ohos.account.appAccount.d.ts| -|新增||模块名:ohos.account.appAccount
类名:AppAccountManager
方法名 or 属性名:removeAccount|@ohos.account.appAccount.d.ts| -|新增||模块名:ohos.account.appAccount
类名:AppAccountManager
方法名 or 属性名:setAppAccess|@ohos.account.appAccount.d.ts| -|新增||模块名:ohos.account.appAccount
类名:AppAccountManager
方法名 or 属性名:setAppAccess|@ohos.account.appAccount.d.ts| -|新增||模块名:ohos.account.appAccount
类名:AppAccountManager
方法名 or 属性名:checkDataSyncEnabled|@ohos.account.appAccount.d.ts| -|新增||模块名:ohos.account.appAccount
类名:AppAccountManager
方法名 or 属性名:checkDataSyncEnabled|@ohos.account.appAccount.d.ts| -|新增||模块名:ohos.account.appAccount
类名:AppAccountManager
方法名 or 属性名:setCredential|@ohos.account.appAccount.d.ts| -|新增||模块名:ohos.account.appAccount
类名:AppAccountManager
方法名 or 属性名:setCredential|@ohos.account.appAccount.d.ts| -|新增||模块名:ohos.account.appAccount
类名:AppAccountManager
方法名 or 属性名:setDataSyncEnabled|@ohos.account.appAccount.d.ts| -|新增||模块名:ohos.account.appAccount
类名:AppAccountManager
方法名 or 属性名:setDataSyncEnabled|@ohos.account.appAccount.d.ts| -|新增||模块名:ohos.account.appAccount
类名:AppAccountManager
方法名 or 属性名:setCustomData|@ohos.account.appAccount.d.ts| -|新增||模块名:ohos.account.appAccount
类名:AppAccountManager
方法名 or 属性名:setCustomData|@ohos.account.appAccount.d.ts| -|新增||方法名 or 属性名:getAllAccounts
函数:getAllAccounts(callback: AsyncCallback>): void;|@ohos.account.appAccount.d.ts| -|新增||方法名 or 属性名:getAllAccounts
函数:getAllAccounts(): Promise>;|@ohos.account.appAccount.d.ts| -|新增||模块名:ohos.account.appAccount
类名:AppAccountManager
方法名 or 属性名:getAccountsByOwner|@ohos.account.appAccount.d.ts| -|新增||模块名:ohos.account.appAccount
类名:AppAccountManager
方法名 or 属性名:getAccountsByOwner|@ohos.account.appAccount.d.ts| -|新增||模块名:ohos.account.appAccount
类名:AppAccountManager
方法名 or 属性名:getCredential|@ohos.account.appAccount.d.ts| -|新增||模块名:ohos.account.appAccount
类名:AppAccountManager
方法名 or 属性名:getCredential|@ohos.account.appAccount.d.ts| -|新增||模块名:ohos.account.appAccount
类名:AppAccountManager
方法名 or 属性名:getCustomData|@ohos.account.appAccount.d.ts| -|新增||模块名:ohos.account.appAccount
类名:AppAccountManager
方法名 or 属性名:getCustomData|@ohos.account.appAccount.d.ts| -|新增||模块名:ohos.account.appAccount
类名:AppAccountManager
方法名 or 属性名:getCustomDataSync|@ohos.account.appAccount.d.ts| -|新增||模块名:ohos.account.appAccount
类名:AppAccountManager
方法名 or 属性名:on_accountChange|@ohos.account.appAccount.d.ts| -|新增||模块名:ohos.account.appAccount
类名:AppAccountManager
方法名 or 属性名:off_accountChange|@ohos.account.appAccount.d.ts| -|新增||模块名:ohos.account.appAccount
类名:AppAccountManager
方法名 or 属性名:auth|@ohos.account.appAccount.d.ts| -|新增||模块名:ohos.account.appAccount
类名:AppAccountManager
方法名 or 属性名:auth|@ohos.account.appAccount.d.ts| -|新增||模块名:ohos.account.appAccount
类名:AppAccountManager
方法名 or 属性名:getAuthToken|@ohos.account.appAccount.d.ts| -|新增||模块名:ohos.account.appAccount
类名:AppAccountManager
方法名 or 属性名:getAuthToken|@ohos.account.appAccount.d.ts| -|新增||模块名:ohos.account.appAccount
类名:AppAccountManager
方法名 or 属性名:setAuthToken|@ohos.account.appAccount.d.ts| -|新增||模块名:ohos.account.appAccount
类名:AppAccountManager
方法名 or 属性名:setAuthToken|@ohos.account.appAccount.d.ts| -|新增||模块名:ohos.account.appAccount
类名:AppAccountManager
方法名 or 属性名:deleteAuthToken|@ohos.account.appAccount.d.ts| -|新增||模块名:ohos.account.appAccount
类名:AppAccountManager
方法名 or 属性名:deleteAuthToken|@ohos.account.appAccount.d.ts| -|新增||模块名:ohos.account.appAccount
类名:AppAccountManager
方法名 or 属性名:setAuthTokenVisibility|@ohos.account.appAccount.d.ts| -|新增||模块名:ohos.account.appAccount
类名:AppAccountManager
方法名 or 属性名:setAuthTokenVisibility|@ohos.account.appAccount.d.ts| -|新增||模块名:ohos.account.appAccount
类名:AppAccountManager
方法名 or 属性名:checkAuthTokenVisibility|@ohos.account.appAccount.d.ts| -|新增||模块名:ohos.account.appAccount
类名:AppAccountManager
方法名 or 属性名:checkAuthTokenVisibility|@ohos.account.appAccount.d.ts| -|新增||模块名:ohos.account.appAccount
类名:AppAccountManager
方法名 or 属性名:getAllAuthTokens|@ohos.account.appAccount.d.ts| -|新增||模块名:ohos.account.appAccount
类名:AppAccountManager
方法名 or 属性名:getAllAuthTokens|@ohos.account.appAccount.d.ts| -|新增||模块名:ohos.account.appAccount
类名:AppAccountManager
方法名 or 属性名:getAuthList|@ohos.account.appAccount.d.ts| -|新增||模块名:ohos.account.appAccount
类名:AppAccountManager
方法名 or 属性名:getAuthList|@ohos.account.appAccount.d.ts| -|新增||模块名:ohos.account.appAccount
类名:AppAccountManager
方法名 or 属性名:getAuthCallback|@ohos.account.appAccount.d.ts| -|新增||模块名:ohos.account.appAccount
类名:AppAccountManager
方法名 or 属性名:getAuthCallback|@ohos.account.appAccount.d.ts| -|新增||模块名:ohos.account.appAccount
类名:AppAccountManager
方法名 or 属性名:queryAuthenticatorInfo|@ohos.account.appAccount.d.ts| -|新增||模块名:ohos.account.appAccount
类名:AppAccountManager
方法名 or 属性名:queryAuthenticatorInfo|@ohos.account.appAccount.d.ts| -|新增||模块名:ohos.account.appAccount
类名:AppAccountManager
方法名 or 属性名:deleteCredential|@ohos.account.appAccount.d.ts| -|新增||模块名:ohos.account.appAccount
类名:AppAccountManager
方法名 or 属性名:deleteCredential|@ohos.account.appAccount.d.ts| -|新增||方法名 or 属性名:selectAccountsByOptions
函数:selectAccountsByOptions(options: SelectAccountsOptions, callback: AsyncCallback>): void;|@ohos.account.appAccount.d.ts| -|新增||方法名 or 属性名:verifyCredential
函数:verifyCredential(name: string, owner: string, callback: AuthCallback): void;|@ohos.account.appAccount.d.ts| -|新增||方法名 or 属性名:verifyCredential
函数:verifyCredential(name: string, owner: string, options: VerifyCredentialOptions, callback: AuthCallback): void;|@ohos.account.appAccount.d.ts| -|新增||方法名 or 属性名:setAuthenticatorProperties
函数:setAuthenticatorProperties(owner: string, callback: AuthCallback): void;|@ohos.account.appAccount.d.ts| -|新增||方法名 or 属性名:setAuthenticatorProperties
函数:setAuthenticatorProperties(owner: string, options: SetPropertiesOptions, callback: AuthCallback): void;|@ohos.account.appAccount.d.ts| -|新增||模块名: ohos.account.appAccount
类名: AuthTokenInfo|@ohos.account.appAccount.d.ts| -|新增||模块名: ohos.account.appAccount
类名: AuthTokenInfo
方法名 or 属性名:authType|@ohos.account.appAccount.d.ts| -|新增||模块名: ohos.account.appAccount
类名: AuthTokenInfo
方法名 or 属性名:token|@ohos.account.appAccount.d.ts| -|新增||模块名: ohos.account.appAccount
类名: AuthTokenInfo
方法名 or 属性名:account|@ohos.account.appAccount.d.ts| -|新增||模块名: ohos.account.appAccount
类名: AuthResult|@ohos.account.appAccount.d.ts| -|新增||模块名: ohos.account.appAccount
类名: AuthResult
方法名 or 属性名:account|@ohos.account.appAccount.d.ts| -|新增||模块名: ohos.account.appAccount
类名: AuthResult
方法名 or 属性名:tokenInfo|@ohos.account.appAccount.d.ts| -|新增||模块名: ohos.account.appAccount
类名: CreateAccountOptions|@ohos.account.appAccount.d.ts| -|新增||模块名: ohos.account.appAccount
类名: CreateAccountOptions
方法名 or 属性名:customData|@ohos.account.appAccount.d.ts| -|新增||模块名: ohos.account.appAccount
类名: CreateAccountImplicitlyOptions|@ohos.account.appAccount.d.ts| -|新增||模块名: ohos.account.appAccount
类名: CreateAccountImplicitlyOptions
方法名 or 属性名:requiredLabels|@ohos.account.appAccount.d.ts| -|新增||模块名: ohos.account.appAccount
类名: CreateAccountImplicitlyOptions
方法名 or 属性名:authType|@ohos.account.appAccount.d.ts| -|新增||模块名: ohos.account.appAccount
类名: CreateAccountImplicitlyOptions
方法名 or 属性名:parameters|@ohos.account.appAccount.d.ts| -|新增||模块名:ohos.account.appAccount
类名:Constants
方法名 or 属性名:ACTION_CREATE_ACCOUNT_IMPLICITLY|@ohos.account.appAccount.d.ts| -|新增||模块名:ohos.account.appAccount
类名:Constants
方法名 or 属性名:ACTION_AUTH|@ohos.account.appAccount.d.ts| -|新增||模块名:ohos.account.appAccount
类名:Constants
方法名 or 属性名:ACTION_VERIFY_CREDENTIAL|@ohos.account.appAccount.d.ts| -|新增||模块名:ohos.account.appAccount
类名:Constants
方法名 or 属性名:ACTION_SET_AUTHENTICATOR_PROPERTIES|@ohos.account.appAccount.d.ts| -|新增||模块名: ohos.account.appAccount
类名: AuthCallback|@ohos.account.appAccount.d.ts| -|新增||模块名: ohos.account.appAccount
类名: AuthCallback
方法名 or 属性名:onResult|@ohos.account.appAccount.d.ts| -|新增||模块名: ohos.account.appAccount
类名: AuthCallback
方法名 or 属性名:onRequestRedirected|@ohos.account.appAccount.d.ts| -|新增||模块名: ohos.account.appAccount
类名: AuthCallback
方法名 or 属性名:onRequestContinued|@ohos.account.appAccount.d.ts| -|新增||模块名:ohos.account.appAccount
类名:Authenticator
方法名 or 属性名:createAccountImplicitly|@ohos.account.appAccount.d.ts| -|新增||模块名:ohos.account.appAccount
类名:Authenticator
方法名 or 属性名:auth|@ohos.account.appAccount.d.ts| -|新增||方法名 or 属性名:verifyCredential
函数:verifyCredential(name: string, options: VerifyCredentialOptions, callback: AuthCallback): void;|@ohos.account.appAccount.d.ts| -|新增||方法名 or 属性名:setProperties
函数:setProperties(options: SetPropertiesOptions, callback: AuthCallback): void;|@ohos.account.appAccount.d.ts| -|新增||方法名 or 属性名:checkAccountLabels
函数:checkAccountLabels(name: string, labels: Array, callback: AuthCallback): void;|@ohos.account.appAccount.d.ts| -|新增||方法名 or 属性名:isAccountRemovable
函数:isAccountRemovable(name: string, callback: AuthCallback): void;|@ohos.account.appAccount.d.ts| -|新增||模块名:ohos.account.distributedAccount
类名:DistributedAccountAbility
方法名 or 属性名:getOsAccountDistributedInfo|@ohos.account.distributedAccount.d.ts| -|新增||模块名:ohos.account.distributedAccount
类名:DistributedAccountAbility
方法名 or 属性名:getOsAccountDistributedInfo|@ohos.account.distributedAccount.d.ts| -|新增||模块名:ohos.account.distributedAccount
类名:DistributedAccountAbility
方法名 or 属性名:setOsAccountDistributedInfo|@ohos.account.distributedAccount.d.ts| -|新增||模块名:ohos.account.distributedAccount
类名:DistributedAccountAbility
方法名 or 属性名:setOsAccountDistributedInfo|@ohos.account.distributedAccount.d.ts| -|新增||模块名: ohos.account.distributedAccount
类名: DistributedInfo
方法名 or 属性名:nickname|@ohos.account.distributedAccount.d.ts| -|新增||模块名: ohos.account.distributedAccount
类名: DistributedInfo
方法名 or 属性名:avatar|@ohos.account.distributedAccount.d.ts| -|新增||模块名:ohos.account.osAccount
类名:AccountManager
方法名 or 属性名:checkMultiOsAccountEnabled|@ohos.account.osAccount.d.ts| -|新增||模块名:ohos.account.osAccount
类名:AccountManager
方法名 or 属性名:checkMultiOsAccountEnabled|@ohos.account.osAccount.d.ts| -|新增||模块名:ohos.account.osAccount
类名:AccountManager
方法名 or 属性名:checkOsAccountActivated|@ohos.account.osAccount.d.ts| -|新增||模块名:ohos.account.osAccount
类名:AccountManager
方法名 or 属性名:checkOsAccountActivated|@ohos.account.osAccount.d.ts| -|新增||模块名:ohos.account.osAccount
类名:AccountManager
方法名 or 属性名:checkConstraintEnabled|@ohos.account.osAccount.d.ts| -|新增||模块名:ohos.account.osAccount
类名:AccountManager
方法名 or 属性名:checkConstraintEnabled|@ohos.account.osAccount.d.ts| -|新增||模块名:ohos.account.osAccount
类名:AccountManager
方法名 or 属性名:checkOsAccountTestable|@ohos.account.osAccount.d.ts| -|新增||模块名:ohos.account.osAccount
类名:AccountManager
方法名 or 属性名:checkOsAccountTestable|@ohos.account.osAccount.d.ts| -|新增||模块名:ohos.account.osAccount
类名:AccountManager
方法名 or 属性名:checkOsAccountVerified|@ohos.account.osAccount.d.ts| -|新增||模块名:ohos.account.osAccount
类名:AccountManager
方法名 or 属性名:checkOsAccountVerified|@ohos.account.osAccount.d.ts| -|新增||模块名:ohos.account.osAccount
类名:AccountManager
方法名 or 属性名:checkOsAccountVerified|@ohos.account.osAccount.d.ts| -|新增||模块名:ohos.account.osAccount
类名:AccountManager
方法名 or 属性名:getOsAccountCount|@ohos.account.osAccount.d.ts| -|新增||模块名:ohos.account.osAccount
类名:AccountManager
方法名 or 属性名:getOsAccountCount|@ohos.account.osAccount.d.ts| -|新增||模块名:ohos.account.osAccount
类名:AccountManager
方法名 or 属性名:queryOsAccountLocalIdFromProcess|@ohos.account.osAccount.d.ts| -|新增||模块名:ohos.account.osAccount
类名:AccountManager
方法名 or 属性名:queryOsAccountLocalIdFromProcess|@ohos.account.osAccount.d.ts| -|新增||模块名:ohos.account.osAccount
类名:AccountManager
方法名 or 属性名:queryOsAccountLocalIdFromUid|@ohos.account.osAccount.d.ts| -|新增||模块名:ohos.account.osAccount
类名:AccountManager
方法名 or 属性名:queryOsAccountLocalIdFromUid|@ohos.account.osAccount.d.ts| -|新增||模块名:ohos.account.osAccount
类名:AccountManager
方法名 or 属性名:queryOsAccountLocalIdFromDomain|@ohos.account.osAccount.d.ts| -|新增||模块名:ohos.account.osAccount
类名:AccountManager
方法名 or 属性名:queryOsAccountLocalIdFromDomain|@ohos.account.osAccount.d.ts| -|新增||模块名:ohos.account.osAccount
类名:AccountManager
方法名 or 属性名:getOsAccountConstraints|@ohos.account.osAccount.d.ts| -|新增||模块名:ohos.account.osAccount
类名:AccountManager
方法名 or 属性名:getOsAccountConstraints|@ohos.account.osAccount.d.ts| -|新增||模块名:ohos.account.osAccount
类名:AccountManager
方法名 or 属性名:getActivatedOsAccountIds|@ohos.account.osAccount.d.ts| -|新增||模块名:ohos.account.osAccount
类名:AccountManager
方法名 or 属性名:getActivatedOsAccountIds|@ohos.account.osAccount.d.ts| -|新增||模块名:ohos.account.osAccount
类名:AccountManager
方法名 or 属性名:getCurrentOsAccount|@ohos.account.osAccount.d.ts| -|新增||模块名:ohos.account.osAccount
类名:AccountManager
方法名 or 属性名:getCurrentOsAccount|@ohos.account.osAccount.d.ts| -|新增||模块名:ohos.account.osAccount
类名:AccountManager
方法名 or 属性名:getOsAccountType|@ohos.account.osAccount.d.ts| -|新增||模块名:ohos.account.osAccount
类名:AccountManager
方法名 or 属性名:getOsAccountType|@ohos.account.osAccount.d.ts| -|新增||模块名:ohos.account.osAccount
类名:AccountManager
方法名 or 属性名:queryDistributedVirtualDeviceId|@ohos.account.osAccount.d.ts| -|新增||模块名:ohos.account.osAccount
类名:AccountManager
方法名 or 属性名:queryDistributedVirtualDeviceId|@ohos.account.osAccount.d.ts| -|新增||模块名:ohos.account.osAccount
类名:AccountManager
方法名 or 属性名:queryOsAccountLocalIdBySerialNumber|@ohos.account.osAccount.d.ts| -|新增||模块名:ohos.account.osAccount
类名:AccountManager
方法名 or 属性名:queryOsAccountLocalIdBySerialNumber|@ohos.account.osAccount.d.ts| -|新增||模块名:ohos.account.osAccount
类名:AccountManager
方法名 or 属性名:querySerialNumberByOsAccountLocalId|@ohos.account.osAccount.d.ts| -|新增||模块名:ohos.account.osAccount
类名:AccountManager
方法名 or 属性名:querySerialNumberByOsAccountLocalId|@ohos.account.osAccount.d.ts| -|新增||方法名 or 属性名:setProperty
函数:setProperty(request: SetPropertyRequest, callback: AsyncCallback): void;|@ohos.account.osAccount.d.ts| -|新增||方法名 or 属性名:setProperty
函数:setProperty(request: SetPropertyRequest): Promise;|@ohos.account.osAccount.d.ts| -|新增||方法名 or 属性名:cancelAuth
函数:cancelAuth(contextID: Uint8Array): void;|@ohos.account.osAccount.d.ts| -|新增||方法名 or 属性名:registerInputer
函数:registerInputer(inputer: IInputer): void;|@ohos.account.osAccount.d.ts| -|新增||方法名 or 属性名:cancel
函数:cancel(challenge: Uint8Array): void;|@ohos.account.osAccount.d.ts| -|删除|模块名:ohos.account.appAccount
类名:AppAccountManager
方法名 or 属性名:getAssociatedDataSync||@ohos.account.appAccount.d.ts| -|删除|模块名:ohos.account.appAccount
类名:AppAccountManager
方法名 or 属性名:deleteAccountCredential||@ohos.account.appAccount.d.ts| -|删除|模块名:ohos.account.appAccount
类名:AppAccountManager
方法名 or 属性名:deleteAccountCredential||@ohos.account.appAccount.d.ts| +|新增|NA|方法名 or 属性名:getAllAccounts
函数:getAllAccounts(callback: AsyncCallback>): void;|@ohos.account.appAccount.d.ts| +|新增|NA|方法名 or 属性名:getAllAccounts
函数:getAllAccounts(): Promise>;|@ohos.account.appAccount.d.ts| +|新增|NA|方法名 or 属性名:selectAccountsByOptions
函数:selectAccountsByOptions(options: SelectAccountsOptions, callback: AsyncCallback>): void;|@ohos.account.appAccount.d.ts| +|新增|NA|方法名 or 属性名:verifyCredential
函数:verifyCredential(name: string, owner: string, callback: AuthCallback): void;|@ohos.account.appAccount.d.ts| +|新增|NA|方法名 or 属性名:verifyCredential
函数:verifyCredential(name: string, owner: string, options: VerifyCredentialOptions, callback: AuthCallback): void;|@ohos.account.appAccount.d.ts| +|新增|NA|方法名 or 属性名:setAuthenticatorProperties
函数:setAuthenticatorProperties(owner: string, callback: AuthCallback): void;|@ohos.account.appAccount.d.ts| +|新增|NA|方法名 or 属性名:setAuthenticatorProperties
函数:setAuthenticatorProperties(owner: string, options: SetPropertiesOptions, callback: AuthCallback): void;|@ohos.account.appAccount.d.ts| +|新增|NA|模块名: ohos.account.appAccount
类名: AuthTokenInfo|@ohos.account.appAccount.d.ts| +|新增|NA|模块名: ohos.account.appAccount
类名: AuthTokenInfo
方法名 or 属性名:authType|@ohos.account.appAccount.d.ts| +|新增|NA|模块名: ohos.account.appAccount
类名: AuthTokenInfo
方法名 or 属性名:token|@ohos.account.appAccount.d.ts| +|新增|NA|模块名: ohos.account.appAccount
类名: AuthTokenInfo
方法名 or 属性名:account|@ohos.account.appAccount.d.ts| +|新增|NA|模块名: ohos.account.appAccount
类名: AuthResult|@ohos.account.appAccount.d.ts| +|新增|NA|模块名: ohos.account.appAccount
类名: AuthResult
方法名 or 属性名:account|@ohos.account.appAccount.d.ts| +|新增|NA|模块名: ohos.account.appAccount
类名: AuthResult
方法名 or 属性名:tokenInfo|@ohos.account.appAccount.d.ts| +|新增|NA|模块名: ohos.account.appAccount
类名: CreateAccountOptions|@ohos.account.appAccount.d.ts| +|新增|NA|模块名: ohos.account.appAccount
类名: CreateAccountOptions
方法名 or 属性名:customData|@ohos.account.appAccount.d.ts| +|新增|NA|模块名: ohos.account.appAccount
类名: CreateAccountImplicitlyOptions|@ohos.account.appAccount.d.ts| +|新增|NA|模块名: ohos.account.appAccount
类名: CreateAccountImplicitlyOptions
方法名 or 属性名:requiredLabels|@ohos.account.appAccount.d.ts| +|新增|NA|模块名: ohos.account.appAccount
类名: CreateAccountImplicitlyOptions
方法名 or 属性名:authType|@ohos.account.appAccount.d.ts| +|新增|NA|模块名: ohos.account.appAccount
类名: CreateAccountImplicitlyOptions
方法名 or 属性名:parameters|@ohos.account.appAccount.d.ts| +|新增|NA|模块名: ohos.account.appAccount
类名: AuthCallback|@ohos.account.appAccount.d.ts| +|新增|NA|模块名: ohos.account.appAccount
类名: AuthCallback
方法名 or 属性名:onResult|@ohos.account.appAccount.d.ts| +|新增|NA|模块名: ohos.account.appAccount
类名: AuthCallback
方法名 or 属性名:onRequestRedirected|@ohos.account.appAccount.d.ts| +|新增|NA|模块名: ohos.account.appAccount
类名: AuthCallback
方法名 or 属性名:onRequestContinued|@ohos.account.appAccount.d.ts| +|新增|NA|方法名 or 属性名:verifyCredential
函数:verifyCredential(name: string, options: VerifyCredentialOptions, callback: AuthCallback): void;|@ohos.account.appAccount.d.ts| +|新增|NA|方法名 or 属性名:setProperties
函数:setProperties(options: SetPropertiesOptions, callback: AuthCallback): void;|@ohos.account.appAccount.d.ts| +|新增|NA|方法名 or 属性名:checkAccountLabels
函数:checkAccountLabels(name: string, labels: Array, callback: AuthCallback): void;|@ohos.account.appAccount.d.ts| +|新增|NA|方法名 or 属性名:isAccountRemovable
函数:isAccountRemovable(name: string, callback: AuthCallback): void;|@ohos.account.appAccount.d.ts| +|新增|NA|模块名: ohos.account.distributedAccount
类名: DistributedInfo
方法名 or 属性名:nickname|@ohos.account.distributedAccount.d.ts| +|新增|NA|模块名: ohos.account.distributedAccount
类名: DistributedInfo
方法名 or 属性名:avatar|@ohos.account.distributedAccount.d.ts| +|新增|NA|方法名 or 属性名:setProperty
函数:setProperty(request: SetPropertyRequest, callback: AsyncCallback): void;|@ohos.account.osAccount.d.ts| +|新增|NA|方法名 or 属性名:setProperty
函数:setProperty(request: SetPropertyRequest): Promise;|@ohos.account.osAccount.d.ts| +|新增|NA|方法名 or 属性名:cancelAuth
函数:cancelAuth(contextID: Uint8Array): void;|@ohos.account.osAccount.d.ts| +|新增|NA|方法名 or 属性名:registerInputer
函数:registerInputer(inputer: IInputer): void;|@ohos.account.osAccount.d.ts| +|新增|NA|方法名 or 属性名:cancel
函数:cancel(challenge: Uint8Array): void;|@ohos.account.osAccount.d.ts| +|删除|模块名:ohos.account.appAccount
类名:AppAccountManager
方法名 or 属性名:getAssociatedDataSync|NA|@ohos.account.appAccount.d.ts| +|删除|模块名:ohos.account.appAccount
类名:AppAccountManager
方法名 or 属性名:deleteAccountCredential|NA|@ohos.account.appAccount.d.ts| +|删除|模块名:ohos.account.appAccount
类名:AppAccountManager
方法名 or 属性名:deleteAccountCredential|NA|@ohos.account.appAccount.d.ts| |废弃版本有变化|方法名 or 属性名:addAccount
废弃版本:N/A|方法名 or 属性名:addAccount
废弃版本:9
代替接口:appAccount.AppAccountManager|@ohos.account.appAccount.d.ts| |废弃版本有变化|方法名 or 属性名:addAccount
废弃版本:N/A|方法名 or 属性名:addAccount
废弃版本:9|@ohos.account.appAccount.d.ts| |废弃版本有变化|方法名 or 属性名:addAccount
废弃版本:N/A|方法名 or 属性名:addAccount
废弃版本:9|@ohos.account.appAccount.d.ts| diff --git a/zh-cn/release-notes/api-diff/v3.2-beta4/js-apidiff-application.md b/zh-cn/release-notes/api-diff/v3.2-beta4/js-apidiff-application.md index 33d1321a18557647b6c8faf3f8c44c8605a4c709..a628d4131ebfa424fa25049af847f5df8c6be709 100644 --- a/zh-cn/release-notes/api-diff/v3.2-beta4/js-apidiff-application.md +++ b/zh-cn/release-notes/api-diff/v3.2-beta4/js-apidiff-application.md @@ -1,173 +1,6 @@ -| 操作 | 新版本 | 旧版本 | d.ts文件 | +| 操作 | 旧版本 | 新版本 | d.ts文件 | | ---- | ------ | ------ | -------- | -|新增||模块名:ohos.contact
类名:Contact|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Contact
方法名 or 属性名:INVALID_CONTACT_ID|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Contact
方法名 or 属性名:id|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Contact
方法名 or 属性名:key|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Contact
方法名 or 属性名:contactAttributes|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Contact
方法名 or 属性名:emails|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Contact
方法名 or 属性名:events|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Contact
方法名 or 属性名:groups|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Contact
方法名 or 属性名:imAddresses|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Contact
方法名 or 属性名:phoneNumbers|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Contact
方法名 or 属性名:portrait|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Contact
方法名 or 属性名:postalAddresses|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Contact
方法名 or 属性名:relations|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Contact
方法名 or 属性名:sipAddresses|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Contact
方法名 or 属性名:websites|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Contact
方法名 or 属性名:name|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Contact
方法名 or 属性名:nickName|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Contact
方法名 or 属性名:note|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Contact
方法名 or 属性名:organization|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:ContactAttributes|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:ContactAttributes
方法名 or 属性名:attributes|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Attribute|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Attribute
方法名 or 属性名:ATTR_CONTACT_EVENT|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Attribute
方法名 or 属性名:ATTR_EMAIL|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Attribute
方法名 or 属性名:ATTR_GROUP_MEMBERSHIP|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Attribute
方法名 or 属性名:ATTR_IM|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Attribute
方法名 or 属性名:ATTR_NAME|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Attribute
方法名 or 属性名:ATTR_NICKNAME|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Attribute
方法名 or 属性名:ATTR_NOTE|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Attribute
方法名 or 属性名:ATTR_ORGANIZATION|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Attribute
方法名 or 属性名:ATTR_PHONE|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Attribute
方法名 or 属性名:ATTR_PORTRAIT|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Attribute
方法名 or 属性名:ATTR_POSTAL_ADDRESS|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Attribute
方法名 or 属性名:ATTR_RELATION|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Attribute
方法名 or 属性名:ATTR_SIP_ADDRESS|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Attribute
方法名 or 属性名:ATTR_WEBSITE|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Email|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Email
方法名 or 属性名:CUSTOM_LABEL|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Email
方法名 or 属性名:EMAIL_HOME|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Email
方法名 or 属性名:EMAIL_WORK|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Email
方法名 or 属性名:EMAIL_OTHER|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Email
方法名 or 属性名:INVALID_LABEL_ID|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Email
方法名 or 属性名:email|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Email
方法名 or 属性名:labelName|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Email
方法名 or 属性名:displayName|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Email
方法名 or 属性名:labelId|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Event|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Event
方法名 or 属性名:CUSTOM_LABEL|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Event
方法名 or 属性名:EVENT_ANNIVERSARY|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Event
方法名 or 属性名:EVENT_OTHER|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Event
方法名 or 属性名:EVENT_BIRTHDAY|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Event
方法名 or 属性名:INVALID_LABEL_ID|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Event
方法名 or 属性名:eventDate|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Event
方法名 or 属性名:labelName|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Event
方法名 or 属性名:labelId|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Group|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Group
方法名 or 属性名:groupId|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Group
方法名 or 属性名:title|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Holder|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Holder
方法名 or 属性名:bundleName|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Holder
方法名 or 属性名:displayName|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Holder
方法名 or 属性名:holderId|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:ImAddress|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:ImAddress
方法名 or 属性名:CUSTOM_LABEL|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:ImAddress
方法名 or 属性名:IM_AIM|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:ImAddress
方法名 or 属性名:IM_MSN|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:ImAddress
方法名 or 属性名:IM_YAHOO|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:ImAddress
方法名 or 属性名:IM_SKYPE|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:ImAddress
方法名 or 属性名:IM_QQ|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:ImAddress
方法名 or 属性名:IM_ICQ|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:ImAddress
方法名 or 属性名:IM_JABBER|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:ImAddress
方法名 or 属性名:INVALID_LABEL_ID|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:ImAddress
方法名 or 属性名:imAddress|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:ImAddress
方法名 or 属性名:labelName|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:ImAddress
方法名 or 属性名:labelId|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Name|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Name
方法名 or 属性名:familyName|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Name
方法名 or 属性名:familyNamePhonetic|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Name
方法名 or 属性名:fullName|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Name
方法名 or 属性名:givenName|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Name
方法名 or 属性名:givenNamePhonetic|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Name
方法名 or 属性名:middleName|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Name
方法名 or 属性名:middleNamePhonetic|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Name
方法名 or 属性名:namePrefix|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Name
方法名 or 属性名:nameSuffix|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:NickName|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:NickName
方法名 or 属性名:nickName|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Note|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Note
方法名 or 属性名:noteContent|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Organization|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Organization
方法名 or 属性名:name|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Organization
方法名 or 属性名:title|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:PhoneNumber|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:PhoneNumber
方法名 or 属性名:CUSTOM_LABEL|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:PhoneNumber
方法名 or 属性名:NUM_HOME|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:PhoneNumber
方法名 or 属性名:NUM_MOBILE|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:PhoneNumber
方法名 or 属性名:NUM_WORK|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:PhoneNumber
方法名 or 属性名:NUM_FAX_WORK|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:PhoneNumber
方法名 or 属性名:NUM_FAX_HOME|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:PhoneNumber
方法名 or 属性名:NUM_PAGER|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:PhoneNumber
方法名 or 属性名:NUM_OTHER|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:PhoneNumber
方法名 or 属性名:NUM_CALLBACK|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:PhoneNumber
方法名 or 属性名:NUM_CAR|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:PhoneNumber
方法名 or 属性名:NUM_COMPANY_MAIN|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:PhoneNumber
方法名 or 属性名:NUM_ISDN|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:PhoneNumber
方法名 or 属性名:NUM_MAIN|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:PhoneNumber
方法名 or 属性名:NUM_OTHER_FAX|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:PhoneNumber
方法名 or 属性名:NUM_RADIO|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:PhoneNumber
方法名 or 属性名:NUM_TELEX|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:PhoneNumber
方法名 or 属性名:NUM_TTY_TDD|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:PhoneNumber
方法名 or 属性名:NUM_WORK_MOBILE|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:PhoneNumber
方法名 or 属性名:NUM_WORK_PAGER|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:PhoneNumber
方法名 or 属性名:NUM_ASSISTANT|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:PhoneNumber
方法名 or 属性名:NUM_MMS|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:PhoneNumber
方法名 or 属性名:INVALID_LABEL_ID|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:PhoneNumber
方法名 or 属性名:labelName|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:PhoneNumber
方法名 or 属性名:phoneNumber|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:PhoneNumber
方法名 or 属性名:labelId|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Portrait|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Portrait
方法名 or 属性名:uri|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:PostalAddress|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:PostalAddress
方法名 or 属性名:CUSTOM_LABEL|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:PostalAddress
方法名 or 属性名:ADDR_HOME|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:PostalAddress
方法名 or 属性名:ADDR_WORK|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:PostalAddress
方法名 or 属性名:ADDR_OTHER|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:PostalAddress
方法名 or 属性名:INVALID_LABEL_ID|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:PostalAddress
方法名 or 属性名:city|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:PostalAddress
方法名 or 属性名:country|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:PostalAddress
方法名 or 属性名:labelName|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:PostalAddress
方法名 or 属性名:neighborhood|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:PostalAddress
方法名 or 属性名:pobox|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:PostalAddress
方法名 or 属性名:postalAddress|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:PostalAddress
方法名 or 属性名:postcode|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:PostalAddress
方法名 or 属性名:region|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:PostalAddress
方法名 or 属性名:street|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:PostalAddress
方法名 or 属性名:labelId|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Relation|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Relation
方法名 or 属性名:CUSTOM_LABEL|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Relation
方法名 or 属性名:RELATION_ASSISTANT|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Relation
方法名 or 属性名:RELATION_BROTHER|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Relation
方法名 or 属性名:RELATION_CHILD|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Relation
方法名 or 属性名:RELATION_DOMESTIC_PARTNER|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Relation
方法名 or 属性名:RELATION_FATHER|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Relation
方法名 or 属性名:RELATION_FRIEND|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Relation
方法名 or 属性名:RELATION_MANAGER|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Relation
方法名 or 属性名:RELATION_MOTHER|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Relation
方法名 or 属性名:RELATION_PARENT|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Relation
方法名 or 属性名:RELATION_PARTNER|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Relation
方法名 or 属性名:RELATION_REFERRED_BY|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Relation
方法名 or 属性名:RELATION_RELATIVE|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Relation
方法名 or 属性名:RELATION_SISTER|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Relation
方法名 or 属性名:RELATION_SPOUSE|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Relation
方法名 or 属性名:INVALID_LABEL_ID|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Relation
方法名 or 属性名:labelName|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Relation
方法名 or 属性名:relationName|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Relation
方法名 or 属性名:labelId|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:SipAddress|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:SipAddress
方法名 or 属性名:CUSTOM_LABEL|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:SipAddress
方法名 or 属性名:SIP_HOME|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:SipAddress
方法名 or 属性名:SIP_WORK|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:SipAddress
方法名 or 属性名:SIP_OTHER|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:SipAddress
方法名 or 属性名:INVALID_LABEL_ID|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:SipAddress
方法名 or 属性名:labelName|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:SipAddress
方法名 or 属性名:sipAddress|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:SipAddress
方法名 or 属性名:labelId|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Website|@ohos.contact.d.ts| -|新增||模块名:ohos.contact
类名:Website
方法名 or 属性名:website|@ohos.contact.d.ts| -|新增||模块名: ohos.telephony.call
类名: AudioDevice
方法名 or 属性名:DEVICE_MIC|@ohos.telephony.call.d.ts| +|新增|NA|模块名: ohos.telephony.call
类名: AudioDevice
方法名 or 属性名:DEVICE_MIC|@ohos.telephony.call.d.ts| |新增(权限)|方法名 or 属性名:hangup
权限:N/A|方法名 or 属性名:hangup
权限:ohos.permission.ANSWER_CALL|@ohos.telephony.call.d.ts| |新增(权限)|方法名 or 属性名:hangup
权限:N/A|方法名 or 属性名:hangup
权限:ohos.permission.ANSWER_CALL|@ohos.telephony.call.d.ts| |新增(权限)|方法名 or 属性名:reject
权限:N/A|方法名 or 属性名:reject
权限:ohos.permission.ANSWER_CALL|@ohos.telephony.call.d.ts| diff --git a/zh-cn/release-notes/api-diff/v3.2-beta4/js-apidiff-arkui.md b/zh-cn/release-notes/api-diff/v3.2-beta4/js-apidiff-arkui.md index 8a9d6b7a134d0a1d73acf9ca261c340a24172d4b..c2200459e446c9dce11fcd90fbaba6e3512890c1 100644 --- a/zh-cn/release-notes/api-diff/v3.2-beta4/js-apidiff-arkui.md +++ b/zh-cn/release-notes/api-diff/v3.2-beta4/js-apidiff-arkui.md @@ -1,142 +1,115 @@ -| 操作 | 新版本 | 旧版本 | d.ts文件 | +| 操作 | 旧版本 | 新版本 | d.ts文件 | | ---- | ------ | ------ | -------- | -|新增||模块名:ohos.animator
类名:AnimatorResult
方法名 or 属性名:reset|@ohos.animator.d.ts| -|新增||模块名:ohos.animator
类名:Animator
方法名 or 属性名:create|@ohos.animator.d.ts| -|新增||模块名: ohos.promptAction
类名: promptAction|@ohos.promptAction.d.ts| -|新增||模块名: ohos.promptAction
类名: ShowToastOptions|@ohos.promptAction.d.ts| -|新增||模块名: ohos.promptAction
类名: ShowToastOptions
方法名 or 属性名: message|@ohos.promptAction.d.ts| -|新增||模块名: ohos.promptAction
类名: ShowToastOptions
方法名 or 属性名: duration|@ohos.promptAction.d.ts| -|新增||模块名: ohos.promptAction
类名: ShowToastOptions
方法名 or 属性名: bottom|@ohos.promptAction.d.ts| -|新增||模块名: ohos.promptAction
类名: Button|@ohos.promptAction.d.ts| -|新增||模块名: ohos.promptAction
类名: Button
方法名 or 属性名: text|@ohos.promptAction.d.ts| -|新增||模块名: ohos.promptAction
类名: Button
方法名 or 属性名: color|@ohos.promptAction.d.ts| -|新增||模块名: ohos.promptAction
类名: ShowDialogSuccessResponse|@ohos.promptAction.d.ts| -|新增||模块名: ohos.promptAction
类名: ShowDialogSuccessResponse
方法名 or 属性名: index|@ohos.promptAction.d.ts| -|新增||模块名: ohos.promptAction
类名: ShowDialogOptions|@ohos.promptAction.d.ts| -|新增||模块名: ohos.promptAction
类名: ShowDialogOptions
方法名 or 属性名: title|@ohos.promptAction.d.ts| -|新增||模块名: ohos.promptAction
类名: ShowDialogOptions
方法名 or 属性名: message|@ohos.promptAction.d.ts| -|新增||模块名: ohos.promptAction
类名: ShowDialogOptions
方法名 or 属性名: buttons|@ohos.promptAction.d.ts| -|新增||模块名: ohos.promptAction
类名: ActionMenuSuccessResponse|@ohos.promptAction.d.ts| -|新增||模块名: ohos.promptAction
类名: ActionMenuSuccessResponse
方法名 or 属性名: index|@ohos.promptAction.d.ts| -|新增||模块名: ohos.promptAction
类名: ActionMenuOptions|@ohos.promptAction.d.ts| -|新增||模块名: ohos.promptAction
类名: ActionMenuOptions
方法名 or 属性名: title|@ohos.promptAction.d.ts| -|新增||模块名: ohos.promptAction
类名: ActionMenuOptions
方法名 or 属性名: buttons|@ohos.promptAction.d.ts| -|新增||模块名: ohos.promptAction
类名: promptAction
方法名 or 属性名: showToast|@ohos.promptAction.d.ts| -|新增||模块名: ohos.promptAction
类名: promptAction
方法名 or 属性名: showDialog|@ohos.promptAction.d.ts| -|新增||模块名: ohos.promptAction
类名: promptAction
方法名 or 属性名: showDialog|@ohos.promptAction.d.ts| -|新增||模块名: ohos.promptAction
类名: promptAction
方法名 or 属性名: showActionMenu|@ohos.promptAction.d.ts| -|新增||模块名: ohos.promptAction
类名: promptAction
方法名 or 属性名: showActionMenu|@ohos.promptAction.d.ts| -|新增||模块名:ohos.router
类名:RouterOptions|@ohos.router.d.ts| -|新增||模块名:ohos.router
类名:router
方法名 or 属性名:pushUrl|@ohos.router.d.ts| -|新增||模块名:ohos.router
类名:router
方法名 or 属性名:pushUrl|@ohos.router.d.ts| -|新增||模块名:ohos.router
类名:router
方法名 or 属性名:pushUrl|@ohos.router.d.ts| -|新增||模块名:ohos.router
类名:router
方法名 or 属性名:pushUrl|@ohos.router.d.ts| -|新增||模块名:ohos.router
类名:router
方法名 or 属性名:replaceUrl|@ohos.router.d.ts| -|新增||模块名:ohos.router
类名:router
方法名 or 属性名:replaceUrl|@ohos.router.d.ts| -|新增||模块名:ohos.router
类名:router
方法名 or 属性名:replaceUrl|@ohos.router.d.ts| -|新增||模块名:ohos.router
类名:router
方法名 or 属性名:replaceUrl|@ohos.router.d.ts| -|新增||模块名:ohos.router
类名:router
方法名 or 属性名:enableBackPageAlert|@ohos.router.d.ts| -|新增||模块名: common
类名:
方法名 or 属性名:postCardAction|common.d.ts| -|新增||模块名: common
类名: PopupOptions
方法名 or 属性名:showInSubWindow|common.d.ts| -|新增||模块名: common
类名: CustomPopupOptions
方法名 or 属性名:showInSubWindow|common.d.ts| -|新增||模块名: common
类名: LayoutBorderInfo|common.d.ts| -|新增||模块名: common
类名: LayoutBorderInfo
方法名 or 属性名:borderWidth|common.d.ts| -|新增||模块名: common
类名: LayoutBorderInfo
方法名 or 属性名:margin|common.d.ts| -|新增||模块名: common
类名: LayoutBorderInfo
方法名 or 属性名:padding|common.d.ts| -|新增||模块名: common
类名: LayoutInfo|common.d.ts| -|新增||模块名: common
类名: LayoutInfo
方法名 or 属性名:position|common.d.ts| -|新增||模块名: common
类名: LayoutInfo
方法名 or 属性名:constraint|common.d.ts| -|新增||模块名: common
类名: LayoutChild|common.d.ts| -|新增||模块名: common
类名: LayoutChild
方法名 or 属性名:name|common.d.ts| -|新增||模块名: common
类名: LayoutChild
方法名 or 属性名:id|common.d.ts| -|新增||模块名: common
类名: LayoutChild
方法名 or 属性名:constraint|common.d.ts| -|新增||模块名: common
类名: LayoutChild
方法名 or 属性名:borderInfo|common.d.ts| -|新增||模块名: common
类名: LayoutChild
方法名 or 属性名:position|common.d.ts| -|新增||模块名: common
类名: LayoutChild
方法名 or 属性名:measure|common.d.ts| -|新增||模块名: common
类名: LayoutChild
方法名 or 属性名:layout|common.d.ts| -|新增||模块名: common
类名: CustomComponent
方法名 or 属性名:onLayout|common.d.ts| -|新增||模块名: common
类名: CustomComponent
方法名 or 属性名:onMeasure|common.d.ts| -|新增||模块名: common
类名: CustomComponent
方法名 or 属性名:pageTransition|common.d.ts| -|新增||模块名:common_ts_ets_api
类名:AppStorage
方法名 or 属性名:Clear|common_ts_ets_api.d.ts| -|新增||模块名: enums
类名: TitleHeight|enums.d.ts| -|新增||模块名: enums
类名: TitleHeight
方法名 or 属性名: MainOnly|enums.d.ts| -|新增||模块名: enums
类名: TitleHeight
方法名 or 属性名: MainWithSub|enums.d.ts| -|新增||模块名: flow_item
类名: FlowItemInterface|flow_item.d.ts| -|新增||模块名: flow_item
类名: FlowItemInterface
方法名 or 属性名: FlowItemInterface|flow_item.d.ts| -|新增||模块名: flow_item
类名: FlowItemAttribute|flow_item.d.ts| -|新增||方法名 or 属性名:FormComponentInterface
函数:(value: {
id: number;
name: string;
bundle: string;
ability: string;
module: string;
dimension?: FormDimension;
temporary?: boolean;
want?: import('../api/@ohos.application.Want').default;
}): FormComponentAttribute;|form_component.d.ts| -|新增||方法名 or 属性名:GridColInterface
函数:(option?: GridColOptions): GridColAttribute;|grid_col.d.ts| -|新增||模块名: navigation
类名: NavigationCommonTitle|navigation.d.ts| -|新增||模块名: navigation
类名: NavigationCommonTitle
方法名 or 属性名:main|navigation.d.ts| -|新增||模块名: navigation
类名: NavigationCommonTitle
方法名 or 属性名:sub|navigation.d.ts| -|新增||模块名: navigation
类名: NavigationCustomTitle|navigation.d.ts| -|新增||模块名: navigation
类名: NavigationCustomTitle
方法名 or 属性名:builder|navigation.d.ts| -|新增||模块名: navigation
类名: NavigationCustomTitle
方法名 or 属性名:height|navigation.d.ts| -|新增||模块名: navigation
类名: NavigationMode|navigation.d.ts| -|新增||模块名: navigation
类名: NavigationMode
方法名 or 属性名:Stack|navigation.d.ts| -|新增||模块名: navigation
类名: NavigationMode
方法名 or 属性名:Split|navigation.d.ts| -|新增||模块名: navigation
类名: NavigationMode
方法名 or 属性名:Auto|navigation.d.ts| -|新增||模块名: navigation
类名: NavBarPosition|navigation.d.ts| -|新增||模块名: navigation
类名: NavBarPosition
方法名 or 属性名:Start|navigation.d.ts| -|新增||模块名: navigation
类名: NavBarPosition
方法名 or 属性名:End|navigation.d.ts| -|新增||模块名:navigation
类名:NavigationAttribute
方法名 or 属性名:navBarWidth|navigation.d.ts| -|新增||模块名:navigation
类名:NavigationAttribute
方法名 or 属性名:navBarPosition|navigation.d.ts| -|新增||模块名:navigation
类名:NavigationAttribute
方法名 or 属性名:mode|navigation.d.ts| -|新增||模块名:navigation
类名:NavigationAttribute
方法名 or 属性名:backButtonIcon|navigation.d.ts| -|新增||模块名:navigation
类名:NavigationAttribute
方法名 or 属性名:hideNavBar|navigation.d.ts| -|新增||方法名 or 属性名:title
函数:title(value: string \| CustomBuilder \| NavigationCommonTitle \| NavigationCustomTitle): NavigationAttribute;|navigation.d.ts| -|新增||模块名:navigation
类名:NavigationAttribute
方法名 or 属性名:onNavBarStateChange|navigation.d.ts| -|新增||模块名: nav_destination
类名: NavDestinationCommonTitle|nav_destination.d.ts| -|新增||模块名: nav_destination
类名: NavDestinationCommonTitle
方法名 or 属性名: main|nav_destination.d.ts| -|新增||模块名: nav_destination
类名: NavDestinationCommonTitle
方法名 or 属性名: sub|nav_destination.d.ts| -|新增||模块名: nav_destination
类名: NavDestinationCustomTitle|nav_destination.d.ts| -|新增||模块名: nav_destination
类名: NavDestinationCustomTitle
方法名 or 属性名: builder|nav_destination.d.ts| -|新增||模块名: nav_destination
类名: NavDestinationCustomTitle
方法名 or 属性名: height|nav_destination.d.ts| -|新增||模块名: nav_destination
类名: NavDestinationInterface|nav_destination.d.ts| -|新增||模块名: nav_destination
类名: NavDestinationInterface
方法名 or 属性名: NavDestinationInterface|nav_destination.d.ts| -|新增||模块名: nav_destination
类名: NavDestinationAttribute|nav_destination.d.ts| -|新增||模块名: nav_destination
类名: NavDestinationAttribute
方法名 or 属性名: title|nav_destination.d.ts| -|新增||模块名: nav_destination
类名: NavDestinationAttribute
方法名 or 属性名: hideTitleBar|nav_destination.d.ts| -|新增||模块名: nav_router
类名: NavRouterInterface|nav_router.d.ts| -|新增||模块名: nav_router
类名: NavRouterInterface
方法名 or 属性名: NavRouterInterface|nav_router.d.ts| -|新增||模块名: nav_router
类名: NavRouterAttribute|nav_router.d.ts| -|新增||模块名: nav_router
类名: NavRouterAttribute
方法名 or 属性名: onStateChange|nav_router.d.ts| -|新增||模块名: water_flow
类名: WaterFlowOptions|water_flow.d.ts| -|新增||模块名: water_flow
类名: WaterFlowOptions
方法名 or 属性名: footer|water_flow.d.ts| -|新增||模块名: water_flow
类名: WaterFlowOptions
方法名 or 属性名: scroller|water_flow.d.ts| -|新增||模块名: water_flow
类名: WaterFlowInterface|water_flow.d.ts| -|新增||模块名: water_flow
类名: WaterFlowInterface
方法名 or 属性名: WaterFlowInterface|water_flow.d.ts| -|新增||模块名: water_flow
类名: WaterFlowAttribute|water_flow.d.ts| -|新增||模块名: water_flow
类名: WaterFlowAttribute
方法名 or 属性名: columnsTemplate|water_flow.d.ts| -|新增||模块名: water_flow
类名: WaterFlowAttribute
方法名 or 属性名: itemConstraintSize|water_flow.d.ts| -|新增||模块名: water_flow
类名: WaterFlowAttribute
方法名 or 属性名: rowsTemplate|water_flow.d.ts| -|新增||模块名: water_flow
类名: WaterFlowAttribute
方法名 or 属性名: columnsGap|water_flow.d.ts| -|新增||模块名: water_flow
类名: WaterFlowAttribute
方法名 or 属性名: rowsGap|water_flow.d.ts| -|新增||模块名: water_flow
类名: WaterFlowAttribute
方法名 or 属性名: layoutDirection|water_flow.d.ts| -|新增||模块名: water_flow
类名: WaterFlowAttribute
方法名 or 属性名: onReachStart|water_flow.d.ts| -|新增||模块名: water_flow
类名: WaterFlowAttribute
方法名 or 属性名: onReachEnd|water_flow.d.ts| -|新增||模块名: web
类名: FullScreenExitHandler|web.d.ts| -|新增||模块名: web
类名: FullScreenExitHandler
方法名 or 属性名:exitFullScreen|web.d.ts| -|新增||模块名: web
类名: ControllerHandler|web.d.ts| -|新增||模块名: web
类名: ControllerHandler
方法名 or 属性名:setWebController|web.d.ts| -|新增||模块名:web
类名:WebController
方法名 or 属性名:getUrl|web.d.ts| -|新增||方法名 or 属性名:controller
函数:controller: WebController \| WebviewController;|web.d.ts| -|新增||方法名 or 属性名:javaScriptProxy
函数:javaScriptProxy(javaScriptProxy: { object: object, name: string, methodList: Array,
controller: WebController \| WebviewController }): WebAttribute;|web.d.ts| -|新增||模块名:web
类名:WebAttribute
方法名 or 属性名:onFullScreenExit|web.d.ts| -|新增||模块名:web
类名:WebAttribute
方法名 or 属性名:onFullScreenEnter|web.d.ts| -|新增||模块名:web
类名:WebAttribute
方法名 or 属性名:onWindowNew|web.d.ts| -|新增||模块名:web
类名:WebAttribute
方法名 or 属性名:onWindowExit|web.d.ts| -|新增||模块名:web
类名:WebAttribute
方法名 or 属性名:multiWindowAccess|web.d.ts| -|新增||模块名:viewmodel
类名:ViewModel
方法名 or 属性名:$t|viewmodel.d.ts| -|新增||模块名:viewmodel
类名:ElementReferences
方法名 or 属性名:ElementReferences|viewmodel.d.ts| -|删除|模块名: ohos.uiAppearance
类名: uiAppearance||@ohos.uiAppearance.d.ts| -|删除|模块名: ohos.uiAppearance
类名: DarkMode||@ohos.uiAppearance.d.ts| -|删除|模块名: ohos.uiAppearance
类名: DarkMode
方法名 or 属性名: ALWAYS_DARK||@ohos.uiAppearance.d.ts| -|删除|模块名: ohos.uiAppearance
类名: DarkMode
方法名 or 属性名: ALWAYS_LIGHT||@ohos.uiAppearance.d.ts| -|删除|模块名: ohos.uiAppearance
类名: uiAppearance
方法名 or 属性名: setDarkMode||@ohos.uiAppearance.d.ts| -|删除|模块名: ohos.uiAppearance
类名: uiAppearance
方法名 or 属性名: setDarkMode||@ohos.uiAppearance.d.ts| -|删除|模块名: ohos.uiAppearance
类名: uiAppearance
方法名 or 属性名: getDarkMode||@ohos.uiAppearance.d.ts| -|删除|模块名:web
类名:WebAttribute
方法名 or 属性名:fileFromUrlAccess||web.d.ts| +|新增|NA|模块名: ohos.promptAction
类名: promptAction|@ohos.promptAction.d.ts| +|新增|NA|模块名: ohos.promptAction
类名: ShowToastOptions|@ohos.promptAction.d.ts| +|新增|NA|模块名: ohos.promptAction
类名: ShowToastOptions
方法名 or 属性名: message|@ohos.promptAction.d.ts| +|新增|NA|模块名: ohos.promptAction
类名: ShowToastOptions
方法名 or 属性名: duration|@ohos.promptAction.d.ts| +|新增|NA|模块名: ohos.promptAction
类名: ShowToastOptions
方法名 or 属性名: bottom|@ohos.promptAction.d.ts| +|新增|NA|模块名: ohos.promptAction
类名: Button|@ohos.promptAction.d.ts| +|新增|NA|模块名: ohos.promptAction
类名: Button
方法名 or 属性名: text|@ohos.promptAction.d.ts| +|新增|NA|模块名: ohos.promptAction
类名: Button
方法名 or 属性名: color|@ohos.promptAction.d.ts| +|新增|NA|模块名: ohos.promptAction
类名: ShowDialogSuccessResponse|@ohos.promptAction.d.ts| +|新增|NA|模块名: ohos.promptAction
类名: ShowDialogSuccessResponse
方法名 or 属性名: index|@ohos.promptAction.d.ts| +|新增|NA|模块名: ohos.promptAction
类名: ShowDialogOptions|@ohos.promptAction.d.ts| +|新增|NA|模块名: ohos.promptAction
类名: ShowDialogOptions
方法名 or 属性名: title|@ohos.promptAction.d.ts| +|新增|NA|模块名: ohos.promptAction
类名: ShowDialogOptions
方法名 or 属性名: message|@ohos.promptAction.d.ts| +|新增|NA|模块名: ohos.promptAction
类名: ShowDialogOptions
方法名 or 属性名: buttons|@ohos.promptAction.d.ts| +|新增|NA|模块名: ohos.promptAction
类名: ActionMenuSuccessResponse|@ohos.promptAction.d.ts| +|新增|NA|模块名: ohos.promptAction
类名: ActionMenuSuccessResponse
方法名 or 属性名: index|@ohos.promptAction.d.ts| +|新增|NA|模块名: ohos.promptAction
类名: ActionMenuOptions|@ohos.promptAction.d.ts| +|新增|NA|模块名: ohos.promptAction
类名: ActionMenuOptions
方法名 or 属性名: title|@ohos.promptAction.d.ts| +|新增|NA|模块名: ohos.promptAction
类名: ActionMenuOptions
方法名 or 属性名: buttons|@ohos.promptAction.d.ts| +|新增|NA|模块名: ohos.promptAction
类名: promptAction
方法名 or 属性名: showToast|@ohos.promptAction.d.ts| +|新增|NA|模块名: ohos.promptAction
类名: promptAction
方法名 or 属性名: showDialog|@ohos.promptAction.d.ts| +|新增|NA|模块名: ohos.promptAction
类名: promptAction
方法名 or 属性名: showDialog|@ohos.promptAction.d.ts| +|新增|NA|模块名: ohos.promptAction
类名: promptAction
方法名 or 属性名: showActionMenu|@ohos.promptAction.d.ts| +|新增|NA|模块名: ohos.promptAction
类名: promptAction
方法名 or 属性名: showActionMenu|@ohos.promptAction.d.ts| +|新增|NA|模块名: common
类名:
方法名 or 属性名:postCardAction|common.d.ts| +|新增|NA|模块名: common
类名: PopupOptions
方法名 or 属性名:showInSubWindow|common.d.ts| +|新增|NA|模块名: common
类名: CustomPopupOptions
方法名 or 属性名:showInSubWindow|common.d.ts| +|新增|NA|模块名: common
类名: LayoutBorderInfo|common.d.ts| +|新增|NA|模块名: common
类名: LayoutBorderInfo
方法名 or 属性名:borderWidth|common.d.ts| +|新增|NA|模块名: common
类名: LayoutBorderInfo
方法名 or 属性名:margin|common.d.ts| +|新增|NA|模块名: common
类名: LayoutBorderInfo
方法名 or 属性名:padding|common.d.ts| +|新增|NA|模块名: common
类名: LayoutInfo|common.d.ts| +|新增|NA|模块名: common
类名: LayoutInfo
方法名 or 属性名:position|common.d.ts| +|新增|NA|模块名: common
类名: LayoutInfo
方法名 or 属性名:constraint|common.d.ts| +|新增|NA|模块名: common
类名: LayoutChild|common.d.ts| +|新增|NA|模块名: common
类名: LayoutChild
方法名 or 属性名:name|common.d.ts| +|新增|NA|模块名: common
类名: LayoutChild
方法名 or 属性名:id|common.d.ts| +|新增|NA|模块名: common
类名: LayoutChild
方法名 or 属性名:constraint|common.d.ts| +|新增|NA|模块名: common
类名: LayoutChild
方法名 or 属性名:borderInfo|common.d.ts| +|新增|NA|模块名: common
类名: LayoutChild
方法名 or 属性名:position|common.d.ts| +|新增|NA|模块名: common
类名: LayoutChild
方法名 or 属性名:measure|common.d.ts| +|新增|NA|模块名: common
类名: LayoutChild
方法名 or 属性名:layout|common.d.ts| +|新增|NA|模块名: common
类名: CustomComponent
方法名 or 属性名:onLayout|common.d.ts| +|新增|NA|模块名: common
类名: CustomComponent
方法名 or 属性名:onMeasure|common.d.ts| +|新增|NA|模块名: common
类名: CustomComponent
方法名 or 属性名:pageTransition|common.d.ts| +|新增|NA|模块名: enums
类名: TitleHeight|enums.d.ts| +|新增|NA|模块名: enums
类名: TitleHeight
方法名 or 属性名: MainOnly|enums.d.ts| +|新增|NA|模块名: enums
类名: TitleHeight
方法名 or 属性名: MainWithSub|enums.d.ts| +|新增|NA|模块名: flow_item
类名: FlowItemInterface|flow_item.d.ts| +|新增|NA|模块名: flow_item
类名: FlowItemInterface
方法名 or 属性名: FlowItemInterface|flow_item.d.ts| +|新增|NA|模块名: flow_item
类名: FlowItemAttribute|flow_item.d.ts| +|新增|NA|方法名 or 属性名:FormComponentInterface
函数:(value: {
id: number;
name: string;
bundle: string;
ability: string;
module: string;
dimension?: FormDimension;
temporary?: boolean;
want?: import('../api/@ohos.application.Want').default;
}): FormComponentAttribute;|form_component.d.ts| +|新增|NA|方法名 or 属性名:GridColInterface
函数:(option?: GridColOptions): GridColAttribute;|grid_col.d.ts| +|新增|NA|模块名: navigation
类名: NavigationCommonTitle|navigation.d.ts| +|新增|NA|模块名: navigation
类名: NavigationCommonTitle
方法名 or 属性名:main|navigation.d.ts| +|新增|NA|模块名: navigation
类名: NavigationCommonTitle
方法名 or 属性名:sub|navigation.d.ts| +|新增|NA|模块名: navigation
类名: NavigationCustomTitle|navigation.d.ts| +|新增|NA|模块名: navigation
类名: NavigationCustomTitle
方法名 or 属性名:builder|navigation.d.ts| +|新增|NA|模块名: navigation
类名: NavigationCustomTitle
方法名 or 属性名:height|navigation.d.ts| +|新增|NA|模块名: navigation
类名: NavigationMode|navigation.d.ts| +|新增|NA|模块名: navigation
类名: NavigationMode
方法名 or 属性名:Stack|navigation.d.ts| +|新增|NA|模块名: navigation
类名: NavigationMode
方法名 or 属性名:Split|navigation.d.ts| +|新增|NA|模块名: navigation
类名: NavigationMode
方法名 or 属性名:Auto|navigation.d.ts| +|新增|NA|模块名: navigation
类名: NavBarPosition|navigation.d.ts| +|新增|NA|模块名: navigation
类名: NavBarPosition
方法名 or 属性名:Start|navigation.d.ts| +|新增|NA|模块名: navigation
类名: NavBarPosition
方法名 or 属性名:End|navigation.d.ts| +|新增|NA|方法名 or 属性名:title
函数:title(value: string \| CustomBuilder \| NavigationCommonTitle \| NavigationCustomTitle): NavigationAttribute;|navigation.d.ts| +|新增|NA|模块名: nav_destination
类名: NavDestinationCommonTitle|nav_destination.d.ts| +|新增|NA|模块名: nav_destination
类名: NavDestinationCommonTitle
方法名 or 属性名: main|nav_destination.d.ts| +|新增|NA|模块名: nav_destination
类名: NavDestinationCommonTitle
方法名 or 属性名: sub|nav_destination.d.ts| +|新增|NA|模块名: nav_destination
类名: NavDestinationCustomTitle|nav_destination.d.ts| +|新增|NA|模块名: nav_destination
类名: NavDestinationCustomTitle
方法名 or 属性名: builder|nav_destination.d.ts| +|新增|NA|模块名: nav_destination
类名: NavDestinationCustomTitle
方法名 or 属性名: height|nav_destination.d.ts| +|新增|NA|模块名: nav_destination
类名: NavDestinationInterface|nav_destination.d.ts| +|新增|NA|模块名: nav_destination
类名: NavDestinationInterface
方法名 or 属性名: NavDestinationInterface|nav_destination.d.ts| +|新增|NA|模块名: nav_destination
类名: NavDestinationAttribute|nav_destination.d.ts| +|新增|NA|模块名: nav_destination
类名: NavDestinationAttribute
方法名 or 属性名: title|nav_destination.d.ts| +|新增|NA|模块名: nav_destination
类名: NavDestinationAttribute
方法名 or 属性名: hideTitleBar|nav_destination.d.ts| +|新增|NA|模块名: nav_router
类名: NavRouterInterface|nav_router.d.ts| +|新增|NA|模块名: nav_router
类名: NavRouterInterface
方法名 or 属性名: NavRouterInterface|nav_router.d.ts| +|新增|NA|模块名: nav_router
类名: NavRouterAttribute|nav_router.d.ts| +|新增|NA|模块名: nav_router
类名: NavRouterAttribute
方法名 or 属性名: onStateChange|nav_router.d.ts| +|新增|NA|模块名: water_flow
类名: WaterFlowOptions|water_flow.d.ts| +|新增|NA|模块名: water_flow
类名: WaterFlowOptions
方法名 or 属性名: footer|water_flow.d.ts| +|新增|NA|模块名: water_flow
类名: WaterFlowOptions
方法名 or 属性名: scroller|water_flow.d.ts| +|新增|NA|模块名: water_flow
类名: WaterFlowInterface|water_flow.d.ts| +|新增|NA|模块名: water_flow
类名: WaterFlowInterface
方法名 or 属性名: WaterFlowInterface|water_flow.d.ts| +|新增|NA|模块名: water_flow
类名: WaterFlowAttribute|water_flow.d.ts| +|新增|NA|模块名: water_flow
类名: WaterFlowAttribute
方法名 or 属性名: columnsTemplate|water_flow.d.ts| +|新增|NA|模块名: water_flow
类名: WaterFlowAttribute
方法名 or 属性名: itemConstraintSize|water_flow.d.ts| +|新增|NA|模块名: water_flow
类名: WaterFlowAttribute
方法名 or 属性名: rowsTemplate|water_flow.d.ts| +|新增|NA|模块名: water_flow
类名: WaterFlowAttribute
方法名 or 属性名: columnsGap|water_flow.d.ts| +|新增|NA|模块名: water_flow
类名: WaterFlowAttribute
方法名 or 属性名: rowsGap|water_flow.d.ts| +|新增|NA|模块名: water_flow
类名: WaterFlowAttribute
方法名 or 属性名: layoutDirection|water_flow.d.ts| +|新增|NA|模块名: water_flow
类名: WaterFlowAttribute
方法名 or 属性名: onReachStart|water_flow.d.ts| +|新增|NA|模块名: water_flow
类名: WaterFlowAttribute
方法名 or 属性名: onReachEnd|water_flow.d.ts| +|新增|NA|模块名: web
类名: FullScreenExitHandler|web.d.ts| +|新增|NA|模块名: web
类名: FullScreenExitHandler
方法名 or 属性名:exitFullScreen|web.d.ts| +|新增|NA|模块名: web
类名: ControllerHandler|web.d.ts| +|新增|NA|模块名: web
类名: ControllerHandler
方法名 or 属性名:setWebController|web.d.ts| +|新增|NA|方法名 or 属性名:controller
函数:controller: WebController \| WebviewController;|web.d.ts| +|新增|NA|方法名 or 属性名:javaScriptProxy
函数:javaScriptProxy(javaScriptProxy: { object: object, name: string, methodList: Array,
controller: WebController \| WebviewController }): WebAttribute;|web.d.ts| +|删除|模块名: ohos.uiAppearance
类名: uiAppearance|NA|@ohos.uiAppearance.d.ts| +|删除|模块名: ohos.uiAppearance
类名: DarkMode|NA|@ohos.uiAppearance.d.ts| +|删除|模块名: ohos.uiAppearance
类名: DarkMode
方法名 or 属性名: ALWAYS_DARK|NA|@ohos.uiAppearance.d.ts| +|删除|模块名: ohos.uiAppearance
类名: DarkMode
方法名 or 属性名: ALWAYS_LIGHT|NA|@ohos.uiAppearance.d.ts| +|删除|模块名: ohos.uiAppearance
类名: uiAppearance
方法名 or 属性名: setDarkMode|NA|@ohos.uiAppearance.d.ts| +|删除|模块名: ohos.uiAppearance
类名: uiAppearance
方法名 or 属性名: setDarkMode|NA|@ohos.uiAppearance.d.ts| +|删除|模块名: ohos.uiAppearance
类名: uiAppearance
方法名 or 属性名: getDarkMode|NA|@ohos.uiAppearance.d.ts| +|删除|模块名:web
类名:WebAttribute
方法名 or 属性名:fileFromUrlAccess|NA|web.d.ts| |访问级别有变化|方法名 or 属性名:springMotion
访问级别:公开API|方法名 or 属性名:springMotion
访问级别:系统API|@ohos.curves.d.ts| |访问级别有变化|方法名 or 属性名:responsiveSpringMotion
访问级别:公开API|方法名 or 属性名:responsiveSpringMotion
访问级别:系统API|@ohos.curves.d.ts| |访问级别有变化|类名:BlurStyle
访问级别:公开API|类名:BlurStyle
访问级别:系统API|common.d.ts| diff --git a/zh-cn/release-notes/api-diff/v3.2-beta4/js-apidiff-battery.md b/zh-cn/release-notes/api-diff/v3.2-beta4/js-apidiff-battery.md index 9c4a25d62d12749610c579bed9ed9d44c9650bcb..fd20de10634918856ec663ab914fd036c23d276d 100644 --- a/zh-cn/release-notes/api-diff/v3.2-beta4/js-apidiff-battery.md +++ b/zh-cn/release-notes/api-diff/v3.2-beta4/js-apidiff-battery.md @@ -1,23 +1,9 @@ -| 操作 | 新版本 | 旧版本 | d.ts文件 | +| 操作 | 旧版本 | 新版本 | d.ts文件 | | ---- | ------ | ------ | -------- | -|新增||模块名:ohos.power
类名:power
方法名 or 属性名:shutdown|@ohos.power.d.ts| -|新增||模块名:ohos.power
类名:power
方法名 or 属性名:reboot|@ohos.power.d.ts| -|新增||模块名:ohos.power
类名:power
方法名 or 属性名:isActive|@ohos.power.d.ts| -|新增||模块名:ohos.power
类名:power
方法名 or 属性名:wakeup|@ohos.power.d.ts| -|新增||模块名:ohos.power
类名:power
方法名 or 属性名:suspend|@ohos.power.d.ts| -|新增||方法名 or 属性名:getPowerMode
函数:function getPowerMode(): DevicePowerMode;|@ohos.power.d.ts| -|新增||模块名:ohos.runningLock
类名:RunningLock
方法名 or 属性名:hold|@ohos.runningLock.d.ts| -|新增||模块名:ohos.runningLock
类名:RunningLock
方法名 or 属性名:isHolding|@ohos.runningLock.d.ts| -|新增||模块名:ohos.runningLock
类名:RunningLock
方法名 or 属性名:unhold|@ohos.runningLock.d.ts| -|新增||模块名:ohos.runningLock
类名:runningLock
方法名 or 属性名:isSupported|@ohos.runningLock.d.ts| -|新增||模块名:ohos.runningLock
类名:runningLock
方法名 or 属性名:create|@ohos.runningLock.d.ts| -|新增||模块名:ohos.runningLock
类名:runningLock
方法名 or 属性名:create|@ohos.runningLock.d.ts| -|新增||模块名:ohos.thermal
类名:thermal
方法名 or 属性名:registerThermalLevelCallback|@ohos.thermal.d.ts| -|新增||模块名:ohos.thermal
类名:thermal
方法名 or 属性名:unregisterThermalLevelCallback|@ohos.thermal.d.ts| -|新增||模块名:ohos.thermal
类名:thermal
方法名 or 属性名:getLevel|@ohos.thermal.d.ts| -|删除|模块名:ohos.power
类名:power
方法名 or 属性名:shutdownDevice||@ohos.power.d.ts| -|删除|模块名:ohos.power
类名:power
方法名 or 属性名:wakeupDevice||@ohos.power.d.ts| -|删除|模块名:ohos.power
类名:power
方法名 or 属性名:suspendDevice||@ohos.power.d.ts| +|新增|NA|方法名 or 属性名:getPowerMode
函数:function getPowerMode(): DevicePowerMode;|@ohos.power.d.ts| +|删除|模块名:ohos.power
类名:power
方法名 or 属性名:shutdownDevice|NA|@ohos.power.d.ts| +|删除|模块名:ohos.power
类名:power
方法名 or 属性名:wakeupDevice|NA|@ohos.power.d.ts| +|删除|模块名:ohos.power
类名:power
方法名 or 属性名:suspendDevice|NA|@ohos.power.d.ts| |废弃版本有变化|方法名 or 属性名:rebootDevice
废弃版本:N/A|方法名 or 属性名:rebootDevice
废弃版本:9
代替接口:{@link power|@ohos.power.d.ts| |废弃版本有变化|方法名 or 属性名:isScreenOn
废弃版本:N/A|方法名 or 属性名:isScreenOn
废弃版本:9
代替接口:{@link power|@ohos.power.d.ts| |废弃版本有变化|方法名 or 属性名:isScreenOn
废弃版本:N/A|方法名 or 属性名:isScreenOn
废弃版本:9|@ohos.power.d.ts| diff --git a/zh-cn/release-notes/api-diff/v3.2-beta4/js-apidiff-bundle.md b/zh-cn/release-notes/api-diff/v3.2-beta4/js-apidiff-bundle.md index 9810f327ef1cec7cee00cf1de94e8d43ef89538c..01c46fd50c145719965163a0d0e9ff7677876f58 100644 --- a/zh-cn/release-notes/api-diff/v3.2-beta4/js-apidiff-bundle.md +++ b/zh-cn/release-notes/api-diff/v3.2-beta4/js-apidiff-bundle.md @@ -1,415 +1,320 @@ -| 操作 | 新版本 | 旧版本 | d.ts文件 | +| 操作 | 旧版本 | 新版本 | d.ts文件 | | ---- | ------ | ------ | -------- | -|新增||模块名: ohos.bundle.appControl
类名: appControl|@ohos.bundle.appControl.d.ts| -|新增||模块名: ohos.bundle.appControl
类名: appControl
方法名 or 属性名: setDisposedStatus|@ohos.bundle.appControl.d.ts| -|新增||模块名: ohos.bundle.appControl
类名: appControl
方法名 or 属性名: setDisposedStatus|@ohos.bundle.appControl.d.ts| -|新增||模块名: ohos.bundle.appControl
类名: appControl
方法名 or 属性名: getDisposedStatus|@ohos.bundle.appControl.d.ts| -|新增||模块名: ohos.bundle.appControl
类名: appControl
方法名 or 属性名: getDisposedStatus|@ohos.bundle.appControl.d.ts| -|新增||模块名: ohos.bundle.appControl
类名: appControl
方法名 or 属性名: deleteDisposedStatus|@ohos.bundle.appControl.d.ts| -|新增||模块名: ohos.bundle.appControl
类名: appControl
方法名 or 属性名: deleteDisposedStatus|@ohos.bundle.appControl.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: bundleManager|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: BundleFlag|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: BundleFlag
方法名 or 属性名: GET_BUNDLE_INFO_DEFAULT|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: BundleFlag
方法名 or 属性名: GET_BUNDLE_INFO_WITH_APPLICATION|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: BundleFlag
方法名 or 属性名: GET_BUNDLE_INFO_WITH_HAP_MODULE|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: BundleFlag
方法名 or 属性名: GET_BUNDLE_INFO_WITH_ABILITY|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: BundleFlag
方法名 or 属性名: GET_BUNDLE_INFO_WITH_EXTENSION_ABILITY|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: BundleFlag
方法名 or 属性名: GET_BUNDLE_INFO_WITH_REQUESTED_PERMISSION|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: BundleFlag
方法名 or 属性名: GET_BUNDLE_INFO_WITH_METADATA|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: BundleFlag
方法名 or 属性名: GET_BUNDLE_INFO_WITH_DISABLE|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: BundleFlag
方法名 or 属性名: GET_BUNDLE_INFO_WITH_SIGNATURE_INFO|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: ApplicationFlag|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: ApplicationFlag
方法名 or 属性名: GET_APPLICATION_INFO_DEFAULT|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: ApplicationFlag
方法名 or 属性名: GET_APPLICATION_INFO_WITH_PERMISSION|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: ApplicationFlag
方法名 or 属性名: GET_APPLICATION_INFO_WITH_METADATA|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: ApplicationFlag
方法名 or 属性名: GET_APPLICATION_INFO_WITH_DISABLE|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: AbilityFlag|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: AbilityFlag
方法名 or 属性名: GET_ABILITY_INFO_DEFAULT|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: AbilityFlag
方法名 or 属性名: GET_ABILITY_INFO_WITH_PERMISSION|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: AbilityFlag
方法名 or 属性名: GET_ABILITY_INFO_WITH_APPLICATION|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: AbilityFlag
方法名 or 属性名: GET_ABILITY_INFO_WITH_METADATA|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: AbilityFlag
方法名 or 属性名: GET_ABILITY_INFO_WITH_DISABLE|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: AbilityFlag
方法名 or 属性名: GET_ABILITY_INFO_ONLY_SYSTEM_APP|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: ExtensionAbilityFlag|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: ExtensionAbilityFlag
方法名 or 属性名: GET_EXTENSION_ABILITY_INFO_DEFAULT|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: ExtensionAbilityFlag
方法名 or 属性名: GET_EXTENSION_ABILITY_INFO_WITH_PERMISSION|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: ExtensionAbilityFlag
方法名 or 属性名: GET_EXTENSION_ABILITY_INFO_WITH_APPLICATION|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: ExtensionAbilityFlag
方法名 or 属性名: GET_EXTENSION_ABILITY_INFO_WITH_METADATA|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: ExtensionAbilityType|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: ExtensionAbilityType
方法名 or 属性名: FORM|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: ExtensionAbilityType
方法名 or 属性名: WORK_SCHEDULER|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: ExtensionAbilityType
方法名 or 属性名: INPUT_METHOD|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: ExtensionAbilityType
方法名 or 属性名: SERVICE|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: ExtensionAbilityType
方法名 or 属性名: ACCESSIBILITY|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: ExtensionAbilityType
方法名 or 属性名: DATA_SHARE|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: ExtensionAbilityType
方法名 or 属性名: FILE_SHARE|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: ExtensionAbilityType
方法名 or 属性名: STATIC_SUBSCRIBER|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: ExtensionAbilityType
方法名 or 属性名: WALLPAPER|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: ExtensionAbilityType
方法名 or 属性名: BACKUP|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: ExtensionAbilityType
方法名 or 属性名: WINDOW|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: ExtensionAbilityType
方法名 or 属性名: ENTERPRISE_ADMIN|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: ExtensionAbilityType
方法名 or 属性名: THUMBNAIL|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: ExtensionAbilityType
方法名 or 属性名: PREVIEW|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: ExtensionAbilityType
方法名 or 属性名: UNSPECIFIED|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: PermissionGrantState|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: PermissionGrantState
方法名 or 属性名: PERMISSION_DENIED|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: PermissionGrantState
方法名 or 属性名: PERMISSION_GRANTED|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: SupportWindowMode|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: SupportWindowMode
方法名 or 属性名: FULL_SCREEN|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: SupportWindowMode
方法名 or 属性名: SPLIT|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: SupportWindowMode
方法名 or 属性名: FLOATING|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: LaunchType|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: LaunchType
方法名 or 属性名: SINGLETON|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: LaunchType
方法名 or 属性名: STANDARD|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: LaunchType
方法名 or 属性名: SPECIFIED|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: AbilityType|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: AbilityType
方法名 or 属性名: PAGE|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: AbilityType
方法名 or 属性名: SERVICE|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: AbilityType
方法名 or 属性名: DATA|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: DisplayOrientation|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: DisplayOrientation
方法名 or 属性名: UNSPECIFIED|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: DisplayOrientation
方法名 or 属性名: LANDSCAPE|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: DisplayOrientation
方法名 or 属性名: PORTRAIT|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: DisplayOrientation
方法名 or 属性名: FOLLOW_RECENT|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: DisplayOrientation
方法名 or 属性名: LANDSCAPE_INVERTED|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: DisplayOrientation
方法名 or 属性名: PORTRAIT_INVERTED|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: DisplayOrientation
方法名 or 属性名: AUTO_ROTATION|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: DisplayOrientation
方法名 or 属性名: AUTO_ROTATION_LANDSCAPE|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: DisplayOrientation
方法名 or 属性名: AUTO_ROTATION_PORTRAIT|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: DisplayOrientation
方法名 or 属性名: AUTO_ROTATION_RESTRICTED|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: DisplayOrientation
方法名 or 属性名: AUTO_ROTATION_LANDSCAPE_RESTRICTED|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: DisplayOrientation
方法名 or 属性名: AUTO_ROTATION_PORTRAIT_RESTRICTED|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: DisplayOrientation
方法名 or 属性名: LOCKED|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getBundleInfoForSelf|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getBundleInfoForSelf|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getBundleInfo|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getBundleInfo|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getBundleInfo|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getApplicationInfo|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getApplicationInfo|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getApplicationInfo|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getAllBundleInfo|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getAllBundleInfo|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getAllBundleInfo|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getAllApplicationInfo|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getAllApplicationInfo|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getAllApplicationInfo|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: queryAbilityInfo|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: queryAbilityInfo|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: queryAbilityInfo|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: queryExtensionAbilityInfo|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: queryExtensionAbilityInfo|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: queryExtensionAbilityInfo|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getBundleNameByUid|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getBundleNameByUid|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getBundleArchiveInfo|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getBundleArchiveInfo|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: cleanBundleCacheFiles|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: cleanBundleCacheFiles|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: setApplicationEnabled|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: setApplicationEnabled|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: setAbilityEnabled|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: setAbilityEnabled|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: isApplicationEnabled|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: isApplicationEnabled|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: isAbilityEnabled|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: isAbilityEnabled|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getLaunchWantForBundle|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getLaunchWantForBundle|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getLaunchWantForBundle|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getProfileByAbility|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getProfileByAbility|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getProfileByExtensionAbility|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getProfileByExtensionAbility|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getPermissionDef|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getPermissionDef|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getAbilityLabel|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getAbilityLabel|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getAbilityIcon|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getAbilityIcon|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getApplicationInfoSync|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getApplicationInfoSync|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getBundleInfoSync|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getBundleInfoSync|@ohos.bundle.bundleManager.d.ts| -|新增||模块名: ohos.bundle.bundleMonitor
类名: bundleMonitor|@ohos.bundle.bundleMonitor.d.ts| -|新增||模块名: ohos.bundle.bundleMonitor
类名: BundleChangedInfo|@ohos.bundle.bundleMonitor.d.ts| -|新增||模块名: ohos.bundle.bundleMonitor
类名: BundleChangedInfo
方法名 or 属性名: bundleName|@ohos.bundle.bundleMonitor.d.ts| -|新增||模块名: ohos.bundle.bundleMonitor
类名: BundleChangedInfo
方法名 or 属性名: userId|@ohos.bundle.bundleMonitor.d.ts| -|新增||模块名: ohos.bundle.bundleMonitor
类名: bundleMonitor
方法名 or 属性名: on_add|@ohos.bundle.bundleMonitor.d.ts| -|新增||模块名: ohos.bundle.bundleMonitor
类名: bundleMonitor
方法名 or 属性名: on_update|@ohos.bundle.bundleMonitor.d.ts| -|新增||模块名: ohos.bundle.bundleMonitor
类名: bundleMonitor
方法名 or 属性名: on_remove|@ohos.bundle.bundleMonitor.d.ts| -|新增||模块名: ohos.bundle.bundleMonitor
类名: bundleMonitor
方法名 or 属性名: off_add|@ohos.bundle.bundleMonitor.d.ts| -|新增||模块名: ohos.bundle.bundleMonitor
类名: bundleMonitor
方法名 or 属性名: off_update|@ohos.bundle.bundleMonitor.d.ts| -|新增||模块名: ohos.bundle.bundleMonitor
类名: bundleMonitor
方法名 or 属性名: off_remove|@ohos.bundle.bundleMonitor.d.ts| -|新增||模块名:ohos.bundle.defaultAppManager
类名:ApplicationType|@ohos.bundle.defaultAppManager.d.ts| -|新增||方法名 or 属性名:BROWSER
函数:BROWSER = "Web Browser"|@ohos.bundle.defaultAppManager.d.ts| -|新增||方法名 or 属性名:IMAGE
函数:IMAGE = "Image Gallery"|@ohos.bundle.defaultAppManager.d.ts| -|新增||方法名 or 属性名:AUDIO
函数:AUDIO = "Audio Player"|@ohos.bundle.defaultAppManager.d.ts| -|新增||方法名 or 属性名:VIDEO
函数:VIDEO = "Video Player"|@ohos.bundle.defaultAppManager.d.ts| -|新增||方法名 or 属性名:PDF
函数:PDF = "PDF Viewer"|@ohos.bundle.defaultAppManager.d.ts| -|新增||方法名 or 属性名:WORD
函数:WORD = "Word Viewer"|@ohos.bundle.defaultAppManager.d.ts| -|新增||方法名 or 属性名:EXCEL
函数:EXCEL = "Excel Viewer"|@ohos.bundle.defaultAppManager.d.ts| -|新增||方法名 or 属性名:PPT
函数:PPT = "PPT Viewer"|@ohos.bundle.defaultAppManager.d.ts| -|新增||模块名: ohos.bundle.distributedBundle
类名: distributedBundle|@ohos.bundle.distributedBundle.d.ts| -|新增||模块名: ohos.bundle.distributedBundle
类名: distributedBundle
方法名 or 属性名: getRemoteAbilityInfo|@ohos.bundle.distributedBundle.d.ts| -|新增||模块名: ohos.bundle.distributedBundle
类名: distributedBundle
方法名 or 属性名: getRemoteAbilityInfo|@ohos.bundle.distributedBundle.d.ts| -|新增||模块名: ohos.bundle.distributedBundle
类名: distributedBundle
方法名 or 属性名: getRemoteAbilityInfo|@ohos.bundle.distributedBundle.d.ts| -|新增||模块名: ohos.bundle.distributedBundle
类名: distributedBundle
方法名 or 属性名: getRemoteAbilityInfo|@ohos.bundle.distributedBundle.d.ts| -|新增||模块名: ohos.bundle.distributedBundle
类名: distributedBundle
方法名 or 属性名: getRemoteAbilityInfo|@ohos.bundle.distributedBundle.d.ts| -|新增||模块名: ohos.bundle.distributedBundle
类名: distributedBundle
方法名 or 属性名: getRemoteAbilityInfo|@ohos.bundle.distributedBundle.d.ts| -|新增||模块名: ohos.bundle.distributedBundle
类名: distributedBundle
方法名 or 属性名: getRemoteAbilityInfo|@ohos.bundle.distributedBundle.d.ts| -|新增||模块名: ohos.bundle.distributedBundle
类名: distributedBundle
方法名 or 属性名: getRemoteAbilityInfo|@ohos.bundle.distributedBundle.d.ts| -|新增||模块名: ohos.bundle.freeInstall
类名: freeInstall|@ohos.bundle.freeInstall.d.ts| -|新增||模块名: ohos.bundle.freeInstall
类名: UpgradeFlag|@ohos.bundle.freeInstall.d.ts| -|新增||模块名: ohos.bundle.freeInstall
类名: UpgradeFlag
方法名 or 属性名: NOT_UPGRADE|@ohos.bundle.freeInstall.d.ts| -|新增||模块名: ohos.bundle.freeInstall
类名: UpgradeFlag
方法名 or 属性名: SINGLE_UPGRADE|@ohos.bundle.freeInstall.d.ts| -|新增||模块名: ohos.bundle.freeInstall
类名: UpgradeFlag
方法名 or 属性名: RELATION_UPGRADE|@ohos.bundle.freeInstall.d.ts| -|新增||模块名: ohos.bundle.freeInstall
类名: BundlePackFlag|@ohos.bundle.freeInstall.d.ts| -|新增||模块名: ohos.bundle.freeInstall
类名: BundlePackFlag
方法名 or 属性名: GET_PACK_INFO_ALL|@ohos.bundle.freeInstall.d.ts| -|新增||模块名: ohos.bundle.freeInstall
类名: BundlePackFlag
方法名 or 属性名: GET_PACKAGES|@ohos.bundle.freeInstall.d.ts| -|新增||模块名: ohos.bundle.freeInstall
类名: BundlePackFlag
方法名 or 属性名: GET_BUNDLE_SUMMARY|@ohos.bundle.freeInstall.d.ts| -|新增||模块名: ohos.bundle.freeInstall
类名: BundlePackFlag
方法名 or 属性名: GET_MODULE_SUMMARY|@ohos.bundle.freeInstall.d.ts| -|新增||模块名: ohos.bundle.freeInstall
类名: freeInstall
方法名 or 属性名: setHapModuleUpgradeFlag|@ohos.bundle.freeInstall.d.ts| -|新增||模块名: ohos.bundle.freeInstall
类名: freeInstall
方法名 or 属性名: setHapModuleUpgradeFlag|@ohos.bundle.freeInstall.d.ts| -|新增||模块名: ohos.bundle.freeInstall
类名: freeInstall
方法名 or 属性名: isHapModuleRemovable|@ohos.bundle.freeInstall.d.ts| -|新增||模块名: ohos.bundle.freeInstall
类名: freeInstall
方法名 or 属性名: isHapModuleRemovable|@ohos.bundle.freeInstall.d.ts| -|新增||模块名: ohos.bundle.freeInstall
类名: freeInstall
方法名 or 属性名: getBundlePackInfo|@ohos.bundle.freeInstall.d.ts| -|新增||模块名: ohos.bundle.freeInstall
类名: freeInstall
方法名 or 属性名: getBundlePackInfo|@ohos.bundle.freeInstall.d.ts| -|新增||模块名: ohos.bundle.freeInstall
类名: freeInstall
方法名 or 属性名: getDispatchInfo|@ohos.bundle.freeInstall.d.ts| -|新增||模块名: ohos.bundle.freeInstall
类名: freeInstall
方法名 or 属性名: getDispatchInfo|@ohos.bundle.freeInstall.d.ts| -|新增||模块名: ohos.bundle.installer
类名: installer|@ohos.bundle.installer.d.ts| -|新增||模块名: ohos.bundle.installer
类名: installer
方法名 or 属性名: getBundleInstaller|@ohos.bundle.installer.d.ts| -|新增||模块名: ohos.bundle.installer
类名: installer
方法名 or 属性名: getBundleInstaller|@ohos.bundle.installer.d.ts| -|新增||模块名: ohos.bundle.installer
类名: BundleInstaller|@ohos.bundle.installer.d.ts| -|新增||模块名: ohos.bundle.installer
类名: BundleInstaller
方法名 or 属性名: install|@ohos.bundle.installer.d.ts| -|新增||模块名: ohos.bundle.installer
类名: BundleInstaller
方法名 or 属性名: uninstall|@ohos.bundle.installer.d.ts| -|新增||模块名: ohos.bundle.installer
类名: BundleInstaller
方法名 or 属性名: recover|@ohos.bundle.installer.d.ts| -|新增||模块名: ohos.bundle.installer
类名: HashParam|@ohos.bundle.installer.d.ts| -|新增||模块名: ohos.bundle.installer
类名: HashParam
方法名 or 属性名: moduleName|@ohos.bundle.installer.d.ts| -|新增||模块名: ohos.bundle.installer
类名: HashParam
方法名 or 属性名: hashValue|@ohos.bundle.installer.d.ts| -|新增||模块名: ohos.bundle.installer
类名: InstallParam|@ohos.bundle.installer.d.ts| -|新增||模块名: ohos.bundle.installer
类名: InstallParam
方法名 or 属性名: userId|@ohos.bundle.installer.d.ts| -|新增||模块名: ohos.bundle.installer
类名: InstallParam
方法名 or 属性名: installFlag|@ohos.bundle.installer.d.ts| -|新增||模块名: ohos.bundle.installer
类名: InstallParam
方法名 or 属性名: isKeepData|@ohos.bundle.installer.d.ts| -|新增||模块名: ohos.bundle.installer
类名: InstallParam
方法名 or 属性名: hashParams|@ohos.bundle.installer.d.ts| -|新增||模块名: ohos.bundle.installer
类名: InstallParam
方法名 or 属性名: crowdtestDeadline|@ohos.bundle.installer.d.ts| -|新增||模块名: ohos.bundle.launcherBundleManager
类名: launcherBundleManager|@ohos.bundle.launcherBundleManager.d.ts| -|新增||模块名: ohos.bundle.launcherBundleManager
类名: launcherBundleManager
方法名 or 属性名: getLauncherAbilityInfo|@ohos.bundle.launcherBundleManager.d.ts| -|新增||模块名: ohos.bundle.launcherBundleManager
类名: launcherBundleManager
方法名 or 属性名: getLauncherAbilityInfo|@ohos.bundle.launcherBundleManager.d.ts| -|新增||模块名: ohos.bundle.launcherBundleManager
类名: launcherBundleManager
方法名 or 属性名: getAllLauncherAbilityInfo|@ohos.bundle.launcherBundleManager.d.ts| -|新增||模块名: ohos.bundle.launcherBundleManager
类名: launcherBundleManager
方法名 or 属性名: getAllLauncherAbilityInfo|@ohos.bundle.launcherBundleManager.d.ts| -|新增||模块名: ohos.bundle.launcherBundleManager
类名: launcherBundleManager
方法名 or 属性名: getShortcutInfo|@ohos.bundle.launcherBundleManager.d.ts| -|新增||模块名: ohos.bundle.launcherBundleManager
类名: launcherBundleManager
方法名 or 属性名: getShortcutInfo|@ohos.bundle.launcherBundleManager.d.ts| -|新增||模块名:ohos.zlib
类名:zlib
方法名 or 属性名:compressFile|@ohos.zlib.d.ts| -|新增||模块名:ohos.zlib
类名:zlib
方法名 or 属性名:compressFile|@ohos.zlib.d.ts| -|新增||模块名:ohos.zlib
类名:zlib
方法名 or 属性名:decompressFile|@ohos.zlib.d.ts| -|新增||模块名:ohos.zlib
类名:zlib
方法名 or 属性名:decompressFile|@ohos.zlib.d.ts| -|新增||模块名:abilityInfo
类名:AbilityInfo
方法名 or 属性名:type|abilityInfo.d.ts| -|新增||模块名:abilityInfo
类名:AbilityInfo
方法名 or 属性名:orientation|abilityInfo.d.ts| -|新增||模块名:abilityInfo
类名:AbilityInfo
方法名 or 属性名:launchType|abilityInfo.d.ts| -|新增||模块名:abilityInfo
类名:AbilityInfo
方法名 or 属性名:metadata|abilityInfo.d.ts| -|新增||模块名:abilityInfo
类名:AbilityInfo
方法名 or 属性名:supportWindowModes|abilityInfo.d.ts| -|新增||模块名:abilityInfo
类名:AbilityInfo
方法名 or 属性名:windowSize|abilityInfo.d.ts| -|新增||模块名: abilityInfo
类名: WindowSize|abilityInfo.d.ts| -|新增||模块名: abilityInfo
类名: WindowSize
方法名 or 属性名:maxWindowRatio|abilityInfo.d.ts| -|新增||模块名: abilityInfo
类名: WindowSize
方法名 or 属性名:minWindowRatio|abilityInfo.d.ts| -|新增||模块名: abilityInfo
类名: WindowSize
方法名 or 属性名:maxWindowWidth|abilityInfo.d.ts| -|新增||模块名: abilityInfo
类名: WindowSize
方法名 or 属性名:minWindowWidth|abilityInfo.d.ts| -|新增||模块名: abilityInfo
类名: WindowSize
方法名 or 属性名:maxWindowHeight|abilityInfo.d.ts| -|新增||模块名: abilityInfo
类名: WindowSize
方法名 or 属性名:minWindowHeight|abilityInfo.d.ts| -|新增||模块名:applicationInfo
类名:ApplicationInfo
方法名 or 属性名:labelId|applicationInfo.d.ts| -|新增||模块名:applicationInfo
类名:ApplicationInfo
方法名 or 属性名:iconId|applicationInfo.d.ts| -|新增||模块名:applicationInfo
类名:ApplicationInfo
方法名 or 属性名:metadata|applicationInfo.d.ts| -|新增||模块名:applicationInfo
类名:ApplicationInfo
方法名 or 属性名:iconResource|applicationInfo.d.ts| -|新增||模块名:applicationInfo
类名:ApplicationInfo
方法名 or 属性名:labelResource|applicationInfo.d.ts| -|新增||模块名:applicationInfo
类名:ApplicationInfo
方法名 or 属性名:descriptionResource|applicationInfo.d.ts| -|新增||模块名:applicationInfo
类名:ApplicationInfo
方法名 or 属性名:appDistributionType|applicationInfo.d.ts| -|新增||模块名:applicationInfo
类名:ApplicationInfo
方法名 or 属性名:appProvisionType|applicationInfo.d.ts| -|新增||模块名:bundleInfo
类名:BundleInfo
方法名 or 属性名:hapModulesInfo|bundleInfo.d.ts| -|新增||模块名:bundleInfo
类名:BundleInfo
方法名 or 属性名:permissionGrantStates|bundleInfo.d.ts| -|新增||模块名:bundleInfo
类名:BundleInfo
方法名 or 属性名:signatureInfo|bundleInfo.d.ts| -|新增||模块名:bundleInfo
类名:ReqPermissionDetail
方法名 or 属性名:reasonId|bundleInfo.d.ts| -|新增||模块名: bundleInfo
类名: SignatureInfo|bundleInfo.d.ts| -|新增||模块名: bundleInfo
类名: SignatureInfo
方法名 or 属性名:appId|bundleInfo.d.ts| -|新增||模块名: bundleInfo
类名: SignatureInfo
方法名 or 属性名:fingerprint|bundleInfo.d.ts| -|新增||模块名:dispatchInfo
类名:DispatchInfo|dispatchInfo.d.ts| -|新增||模块名:dispatchInfo
类名:DispatchInfo
方法名 or 属性名:version|dispatchInfo.d.ts| -|新增||模块名:dispatchInfo
类名:DispatchInfo
方法名 or 属性名:dispatchAPIVersion|dispatchInfo.d.ts| -|新增||模块名:elementName
类名:ElementName
方法名 or 属性名:moduleName|elementName.d.ts| -|新增||模块名:extensionAbilityInfo
类名:ExtensionAbilityInfo
方法名 or 属性名:bundleName|extensionAbilityInfo.d.ts| -|新增||模块名:extensionAbilityInfo
类名:ExtensionAbilityInfo
方法名 or 属性名:moduleName|extensionAbilityInfo.d.ts| -|新增||模块名:extensionAbilityInfo
类名:ExtensionAbilityInfo
方法名 or 属性名:name|extensionAbilityInfo.d.ts| -|新增||模块名:extensionAbilityInfo
类名:ExtensionAbilityInfo
方法名 or 属性名:labelId|extensionAbilityInfo.d.ts| -|新增||模块名:extensionAbilityInfo
类名:ExtensionAbilityInfo
方法名 or 属性名:descriptionId|extensionAbilityInfo.d.ts| -|新增||模块名:extensionAbilityInfo
类名:ExtensionAbilityInfo
方法名 or 属性名:iconId|extensionAbilityInfo.d.ts| -|新增||模块名:extensionAbilityInfo
类名:ExtensionAbilityInfo
方法名 or 属性名:isVisible|extensionAbilityInfo.d.ts| -|新增||方法名 or 属性名:extensionAbilityType
函数:readonly extensionAbilityType: bundleManager.ExtensionAbilityType;|extensionAbilityInfo.d.ts| -|新增||模块名:extensionAbilityInfo
类名:ExtensionAbilityInfo
方法名 or 属性名:permissions|extensionAbilityInfo.d.ts| -|新增||模块名:extensionAbilityInfo
类名:ExtensionAbilityInfo
方法名 or 属性名:applicationInfo|extensionAbilityInfo.d.ts| -|新增||模块名:extensionAbilityInfo
类名:ExtensionAbilityInfo
方法名 or 属性名:metadata|extensionAbilityInfo.d.ts| -|新增||模块名:extensionAbilityInfo
类名:ExtensionAbilityInfo
方法名 or 属性名:enabled|extensionAbilityInfo.d.ts| -|新增||模块名:extensionAbilityInfo
类名:ExtensionAbilityInfo
方法名 or 属性名:readPermission|extensionAbilityInfo.d.ts| -|新增||模块名:extensionAbilityInfo
类名:ExtensionAbilityInfo
方法名 or 属性名:writePermission|extensionAbilityInfo.d.ts| -|新增||模块名:hapModuleInfo
类名:HapModuleInfo
方法名 or 属性名:mainElementName|hapModuleInfo.d.ts| -|新增||模块名:hapModuleInfo
类名:HapModuleInfo
方法名 or 属性名:abilitiesInfo|hapModuleInfo.d.ts| -|新增||模块名:hapModuleInfo
类名:HapModuleInfo
方法名 or 属性名:extensionAbilitiesInfo|hapModuleInfo.d.ts| -|新增||模块名:hapModuleInfo
类名:HapModuleInfo
方法名 or 属性名:metadata|hapModuleInfo.d.ts| -|新增||模块名:hapModuleInfo
类名:HapModuleInfo
方法名 or 属性名:hashValue|hapModuleInfo.d.ts| -|新增||模块名:hapModuleInfo
类名:HapModuleInfo
方法名 or 属性名:moduleSourceDir|hapModuleInfo.d.ts| -|新增||模块名:metadata
类名:Metadata
方法名 or 属性名:name|metadata.d.ts| -|新增||模块名:metadata
类名:Metadata
方法名 or 属性名:value|metadata.d.ts| -|新增||模块名:metadata
类名:Metadata
方法名 or 属性名:resource|metadata.d.ts| -|新增||模块名:packInfo
类名:BundlePackInfo|packInfo.d.ts| -|新增||模块名:packInfo
类名:BundlePackInfo
方法名 or 属性名:packages|packInfo.d.ts| -|新增||模块名:packInfo
类名:BundlePackInfo
方法名 or 属性名:summary|packInfo.d.ts| -|新增||模块名:packInfo
类名:PackageConfig|packInfo.d.ts| -|新增||模块名:packInfo
类名:PackageConfig
方法名 or 属性名:deviceTypes|packInfo.d.ts| -|新增||模块名:packInfo
类名:PackageConfig
方法名 or 属性名:name|packInfo.d.ts| -|新增||模块名:packInfo
类名:PackageConfig
方法名 or 属性名:moduleType|packInfo.d.ts| -|新增||模块名:packInfo
类名:PackageConfig
方法名 or 属性名:deliveryWithInstall|packInfo.d.ts| -|新增||模块名:packInfo
类名:PackageSummary|packInfo.d.ts| -|新增||模块名:packInfo
类名:PackageSummary
方法名 or 属性名:app|packInfo.d.ts| -|新增||模块名:packInfo
类名:PackageSummary
方法名 or 属性名:modules|packInfo.d.ts| -|新增||模块名:packInfo
类名:BundleConfigInfo|packInfo.d.ts| -|新增||模块名:packInfo
类名:BundleConfigInfo
方法名 or 属性名:bundleName|packInfo.d.ts| -|新增||模块名:packInfo
类名:BundleConfigInfo
方法名 or 属性名:version|packInfo.d.ts| -|新增||模块名: packInfo
类名: ExtensionAbility|packInfo.d.ts| -|新增||模块名: packInfo
类名: ExtensionAbility
方法名 or 属性名:name|packInfo.d.ts| -|新增||模块名: packInfo
类名: ExtensionAbility
方法名 or 属性名:forms|packInfo.d.ts| -|新增||模块名:packInfo
类名:ModuleConfigInfo|packInfo.d.ts| -|新增||模块名:packInfo
类名:ModuleConfigInfo
方法名 or 属性名:mainAbility|packInfo.d.ts| -|新增||模块名:packInfo
类名:ModuleConfigInfo
方法名 or 属性名:apiVersion|packInfo.d.ts| -|新增||模块名:packInfo
类名:ModuleConfigInfo
方法名 or 属性名:deviceTypes|packInfo.d.ts| -|新增||模块名:packInfo
类名:ModuleConfigInfo
方法名 or 属性名:distro|packInfo.d.ts| -|新增||模块名:packInfo
类名:ModuleConfigInfo
方法名 or 属性名:abilities|packInfo.d.ts| -|新增||方法名 or 属性名:extensionAbilities
函数:readonly extensionAbilities: Array;|packInfo.d.ts| -|新增||模块名:packInfo
类名:ModuleDistroInfo|packInfo.d.ts| -|新增||模块名:packInfo
类名:ModuleDistroInfo
方法名 or 属性名:deliveryWithInstall|packInfo.d.ts| -|新增||模块名:packInfo
类名:ModuleDistroInfo
方法名 or 属性名:installationFree|packInfo.d.ts| -|新增||模块名:packInfo
类名:ModuleDistroInfo
方法名 or 属性名:moduleName|packInfo.d.ts| -|新增||模块名:packInfo
类名:ModuleDistroInfo
方法名 or 属性名:moduleType|packInfo.d.ts| -|新增||模块名:packInfo
类名:ModuleAbilityInfo|packInfo.d.ts| -|新增||模块名:packInfo
类名:ModuleAbilityInfo
方法名 or 属性名:name|packInfo.d.ts| -|新增||模块名:packInfo
类名:ModuleAbilityInfo
方法名 or 属性名:label|packInfo.d.ts| -|新增||模块名:packInfo
类名:ModuleAbilityInfo
方法名 or 属性名:visible|packInfo.d.ts| -|新增||模块名:packInfo
类名:ModuleAbilityInfo
方法名 or 属性名:forms|packInfo.d.ts| -|新增||模块名:packInfo
类名:AbilityFormInfo|packInfo.d.ts| -|新增||模块名:packInfo
类名:AbilityFormInfo
方法名 or 属性名:name|packInfo.d.ts| -|新增||模块名:packInfo
类名:AbilityFormInfo
方法名 or 属性名:type|packInfo.d.ts| -|新增||模块名:packInfo
类名:AbilityFormInfo
方法名 or 属性名:updateEnabled|packInfo.d.ts| -|新增||模块名:packInfo
类名:AbilityFormInfo
方法名 or 属性名:scheduledUpdateTime|packInfo.d.ts| -|新增||模块名:packInfo
类名:AbilityFormInfo
方法名 or 属性名:updateDuration|packInfo.d.ts| -|新增||方法名 or 属性名:supportDimensions
函数:readonly supportDimensions: Array;|packInfo.d.ts| -|新增||方法名 or 属性名:defaultDimension
函数:readonly defaultDimension: string;|packInfo.d.ts| -|新增||模块名:packInfo
类名:Version|packInfo.d.ts| -|新增||模块名:packInfo
类名:Version
方法名 or 属性名:minCompatibleVersionCode|packInfo.d.ts| -|新增||模块名:packInfo
类名:Version
方法名 or 属性名:name|packInfo.d.ts| -|新增||模块名:packInfo
类名:Version
方法名 or 属性名:code|packInfo.d.ts| -|新增||模块名:packInfo
类名:ApiVersion|packInfo.d.ts| -|新增||模块名:packInfo
类名:ApiVersion
方法名 or 属性名:releaseType|packInfo.d.ts| -|新增||模块名:packInfo
类名:ApiVersion
方法名 or 属性名:compatible|packInfo.d.ts| -|新增||模块名:packInfo
类名:ApiVersion
方法名 or 属性名:target|packInfo.d.ts| -|新增||模块名: permissionDef
类名: PermissionDef|permissionDef.d.ts| -|新增||模块名: permissionDef
类名: PermissionDef
方法名 or 属性名: permissionName|permissionDef.d.ts| -|新增||模块名: permissionDef
类名: PermissionDef
方法名 or 属性名: grantMode|permissionDef.d.ts| -|新增||模块名: permissionDef
类名: PermissionDef
方法名 or 属性名: labelId|permissionDef.d.ts| -|新增||模块名: permissionDef
类名: PermissionDef
方法名 or 属性名: descriptionId|permissionDef.d.ts| -|新增||方法名 or 属性名:moduleName
函数:readonly moduleName: string;|shortcutInfo.d.ts| -|新增||模块名:shortcutInfo
类名:ShortcutWant
方法名 or 属性名:targetModule|shortcutInfo.d.ts| -|新增||模块名:shortcutInfo
类名:ShortcutWant
方法名 or 属性名:targetAbility|shortcutInfo.d.ts| -|删除|模块名:ohos.bundle
类名:BundleFlag
方法名 or 属性名:GET_BUNDLE_WITH_EXTENSION_ABILITY||@ohos.bundle.d.ts| -|删除|模块名:ohos.bundle
类名:BundleFlag
方法名 or 属性名:GET_BUNDLE_WITH_HASH_VALUE||@ohos.bundle.d.ts| -|删除|模块名:ohos.bundle
类名:BundleFlag
方法名 or 属性名:GET_APPLICATION_INFO_WITH_CERTIFICATE_FINGERPRINT||@ohos.bundle.d.ts| -|删除|模块名: ohos.bundle
类名: ExtensionFlag||@ohos.bundle.d.ts| -|删除|模块名: ohos.bundle
类名: ExtensionFlag
方法名 or 属性名:GET_EXTENSION_INFO_DEFAULT||@ohos.bundle.d.ts| -|删除|模块名: ohos.bundle
类名: ExtensionFlag
方法名 or 属性名:GET_EXTENSION_INFO_WITH_PERMISSION||@ohos.bundle.d.ts| -|删除|模块名: ohos.bundle
类名: ExtensionFlag
方法名 or 属性名:GET_EXTENSION_INFO_WITH_APPLICATION||@ohos.bundle.d.ts| -|删除|模块名: ohos.bundle
类名: ExtensionFlag
方法名 or 属性名:GET_EXTENSION_INFO_WITH_METADATA||@ohos.bundle.d.ts| -|删除|模块名:ohos.bundle
类名:DisplayOrientation
方法名 or 属性名:LANDSCAPE_INVERTED||@ohos.bundle.d.ts| -|删除|模块名:ohos.bundle
类名:DisplayOrientation
方法名 or 属性名:PORTRAIT_INVERTED||@ohos.bundle.d.ts| -|删除|模块名:ohos.bundle
类名:DisplayOrientation
方法名 or 属性名:AUTO_ROTATION||@ohos.bundle.d.ts| -|删除|模块名:ohos.bundle
类名:DisplayOrientation
方法名 or 属性名:AUTO_ROTATION_LANDSCAPE||@ohos.bundle.d.ts| -|删除|模块名:ohos.bundle
类名:DisplayOrientation
方法名 or 属性名:AUTO_ROTATION_PORTRAIT||@ohos.bundle.d.ts| -|删除|模块名:ohos.bundle
类名:DisplayOrientation
方法名 or 属性名:AUTO_ROTATION_RESTRICTED||@ohos.bundle.d.ts| -|删除|模块名:ohos.bundle
类名:DisplayOrientation
方法名 or 属性名:AUTO_ROTATION_LANDSCAPE_RESTRICTED||@ohos.bundle.d.ts| -|删除|模块名:ohos.bundle
类名:DisplayOrientation
方法名 or 属性名:AUTO_ROTATION_PORTRAIT_RESTRICTED||@ohos.bundle.d.ts| -|删除|模块名:ohos.bundle
类名:DisplayOrientation
方法名 or 属性名:LOCKED||@ohos.bundle.d.ts| -|删除|模块名: ohos.bundle
类名: ExtensionAbilityType||@ohos.bundle.d.ts| -|删除|模块名: ohos.bundle
类名: ExtensionAbilityType
方法名 or 属性名:FORM||@ohos.bundle.d.ts| -|删除|模块名: ohos.bundle
类名: ExtensionAbilityType
方法名 or 属性名:WORK_SCHEDULER||@ohos.bundle.d.ts| -|删除|模块名: ohos.bundle
类名: ExtensionAbilityType
方法名 or 属性名:INPUT_METHOD||@ohos.bundle.d.ts| -|删除|模块名: ohos.bundle
类名: ExtensionAbilityType
方法名 or 属性名:SERVICE||@ohos.bundle.d.ts| -|删除|模块名: ohos.bundle
类名: ExtensionAbilityType
方法名 or 属性名:ACCESSIBILITY||@ohos.bundle.d.ts| -|删除|模块名: ohos.bundle
类名: ExtensionAbilityType
方法名 or 属性名:DATA_SHARE||@ohos.bundle.d.ts| -|删除|模块名: ohos.bundle
类名: ExtensionAbilityType
方法名 or 属性名:FILE_SHARE||@ohos.bundle.d.ts| -|删除|模块名: ohos.bundle
类名: ExtensionAbilityType
方法名 or 属性名:STATIC_SUBSCRIBER||@ohos.bundle.d.ts| -|删除|模块名: ohos.bundle
类名: ExtensionAbilityType
方法名 or 属性名:WALLPAPER||@ohos.bundle.d.ts| -|删除|模块名: ohos.bundle
类名: ExtensionAbilityType
方法名 or 属性名:BACKUP||@ohos.bundle.d.ts| -|删除|模块名: ohos.bundle
类名: ExtensionAbilityType
方法名 or 属性名:WINDOW||@ohos.bundle.d.ts| -|删除|模块名: ohos.bundle
类名: ExtensionAbilityType
方法名 or 属性名:ENTERPRISE_ADMIN||@ohos.bundle.d.ts| -|删除|模块名: ohos.bundle
类名: ExtensionAbilityType
方法名 or 属性名:THUMBNAIL||@ohos.bundle.d.ts| -|删除|模块名: ohos.bundle
类名: ExtensionAbilityType
方法名 or 属性名:PREVIEW||@ohos.bundle.d.ts| -|删除|模块名: ohos.bundle
类名: ExtensionAbilityType
方法名 or 属性名:UNSPECIFIED||@ohos.bundle.d.ts| -|删除|模块名: ohos.bundle
类名: UpgradeFlag||@ohos.bundle.d.ts| -|删除|模块名: ohos.bundle
类名: UpgradeFlag
方法名 or 属性名:NOT_UPGRADE||@ohos.bundle.d.ts| -|删除|模块名: ohos.bundle
类名: UpgradeFlag
方法名 or 属性名:SINGLE_UPGRADE||@ohos.bundle.d.ts| -|删除|模块名: ohos.bundle
类名: UpgradeFlag
方法名 or 属性名:RELATION_UPGRADE||@ohos.bundle.d.ts| -|删除|模块名: ohos.bundle
类名: SupportWindowMode||@ohos.bundle.d.ts| -|删除|模块名: ohos.bundle
类名: SupportWindowMode
方法名 or 属性名:FULL_SCREEN||@ohos.bundle.d.ts| -|删除|模块名: ohos.bundle
类名: SupportWindowMode
方法名 or 属性名:SPLIT||@ohos.bundle.d.ts| -|删除|模块名: ohos.bundle
类名: SupportWindowMode
方法名 or 属性名:FLOATING||@ohos.bundle.d.ts| -|删除|模块名:ohos.bundle
类名:bundle
方法名 or 属性名:queryExtensionAbilityInfos||@ohos.bundle.d.ts| -|删除|模块名:ohos.bundle
类名:bundle
方法名 or 属性名:queryExtensionAbilityInfos||@ohos.bundle.d.ts| -|删除|模块名:ohos.bundle
类名:bundle
方法名 or 属性名:queryExtensionAbilityInfos||@ohos.bundle.d.ts| -|删除|模块名:ohos.bundle
类名:bundle
方法名 or 属性名:setModuleUpgradeFlag||@ohos.bundle.d.ts| -|删除|模块名:ohos.bundle
类名:bundle
方法名 or 属性名:setModuleUpgradeFlag||@ohos.bundle.d.ts| -|删除|模块名:ohos.bundle
类名:bundle
方法名 or 属性名:isModuleRemovable||@ohos.bundle.d.ts| -|删除|模块名:ohos.bundle
类名:bundle
方法名 or 属性名:isModuleRemovable||@ohos.bundle.d.ts| -|删除|模块名:ohos.bundle
类名:bundle
方法名 or 属性名:getBundlePackInfo||@ohos.bundle.d.ts| -|删除|模块名:ohos.bundle
类名:bundle
方法名 or 属性名:getBundlePackInfo||@ohos.bundle.d.ts| -|删除|模块名:ohos.bundle
类名:bundle
方法名 or 属性名:getDispatcherVersion||@ohos.bundle.d.ts| -|删除|模块名:ohos.bundle
类名:bundle
方法名 or 属性名:getDispatcherVersion||@ohos.bundle.d.ts| -|删除|模块名:ohos.bundle
类名:bundle
方法名 or 属性名:getProfileByAbility||@ohos.bundle.d.ts| -|删除|模块名:ohos.bundle
类名:bundle
方法名 or 属性名:getProfileByAbility||@ohos.bundle.d.ts| -|删除|模块名:ohos.bundle
类名:bundle
方法名 or 属性名:getProfileByExtensionAbility||@ohos.bundle.d.ts| -|删除|模块名:ohos.bundle
类名:bundle
方法名 or 属性名:getProfileByExtensionAbility||@ohos.bundle.d.ts| -|删除|模块名:ohos.bundle
类名:bundle
方法名 or 属性名:setDisposedStatus||@ohos.bundle.d.ts| -|删除|模块名:ohos.bundle
类名:bundle
方法名 or 属性名:setDisposedStatus||@ohos.bundle.d.ts| -|删除|模块名:ohos.bundle
类名:bundle
方法名 or 属性名:getDisposedStatus||@ohos.bundle.d.ts| -|删除|模块名:ohos.bundle
类名:bundle
方法名 or 属性名:getDisposedStatus||@ohos.bundle.d.ts| -|删除|模块名:ohos.bundle
类名:bundle
方法名 or 属性名:getApplicationInfoSync||@ohos.bundle.d.ts| -|删除|模块名:ohos.bundle
类名:bundle
方法名 or 属性名:getApplicationInfoSync||@ohos.bundle.d.ts| -|删除|模块名:ohos.bundle
类名:bundle
方法名 or 属性名:getBundleInfoSync||@ohos.bundle.d.ts| -|删除|模块名:ohos.bundle
类名:bundle
方法名 or 属性名:getBundleInfoSync||@ohos.bundle.d.ts| -|删除|模块名:abilityInfo
类名:AbilityInfo
方法名 or 属性名:supportWindowMode||abilityInfo.d.ts| -|删除|模块名:abilityInfo
类名:AbilityInfo
方法名 or 属性名:maxWindowRatio||abilityInfo.d.ts| -|删除|模块名:abilityInfo
类名:AbilityInfo
方法名 or 属性名:minWindowRatio||abilityInfo.d.ts| -|删除|模块名:abilityInfo
类名:AbilityInfo
方法名 or 属性名:maxWindowWidth||abilityInfo.d.ts| -|删除|模块名:abilityInfo
类名:AbilityInfo
方法名 or 属性名:minWindowWidth||abilityInfo.d.ts| -|删除|模块名:abilityInfo
类名:AbilityInfo
方法名 or 属性名:maxWindowHeight||abilityInfo.d.ts| -|删除|模块名:abilityInfo
类名:AbilityInfo
方法名 or 属性名:minWindowHeight||abilityInfo.d.ts| -|删除|模块名:applicationInfo
类名:ApplicationInfo
方法名 or 属性名:labelIndex||applicationInfo.d.ts| -|删除|模块名:applicationInfo
类名:ApplicationInfo
方法名 or 属性名:iconIndex||applicationInfo.d.ts| -|删除|模块名:applicationInfo
类名:ApplicationInfo
方法名 or 属性名:fingerprint||applicationInfo.d.ts| -|删除|模块名:bundleInfo
类名:BundleInfo
方法名 or 属性名:extensionAbilityInfo||bundleInfo.d.ts| -|删除|模块名: bundleInstaller
类名: HashParam||bundleInstaller.d.ts| -|删除|模块名: bundleInstaller
类名: HashParam
方法名 or 属性名:moduleName||bundleInstaller.d.ts| -|删除|模块名: bundleInstaller
类名: HashParam
方法名 or 属性名:hashValue||bundleInstaller.d.ts| -|删除|模块名:bundleInstaller
类名:InstallParam
方法名 or 属性名:hashParams||bundleInstaller.d.ts| -|删除|模块名:bundleInstaller
类名:InstallParam
方法名 or 属性名:crowdtestDeadline||bundleInstaller.d.ts| -|删除|模块名:dispatchInfo
类名:DispatchInfo
方法名 or 属性名:dispatchAPI||dispatchInfo.d.ts| -|删除|模块名:hapModuleInfo
类名:HapModuleInfo
方法名 or 属性名:extensionAbilityInfo||hapModuleInfo.d.ts| -|删除|模块名:packInfo
类名:PackageConfig
方法名 or 属性名:deviceType||packInfo.d.ts| -|删除|模块名: packInfo
类名: ExtensionAbilities||packInfo.d.ts| -|删除|模块名: packInfo
类名: ExtensionAbilities
方法名 or 属性名:name||packInfo.d.ts| -|删除|模块名: packInfo
类名: ExtensionAbilities
方法名 or 属性名:forms||packInfo.d.ts| -|删除|模块名:packInfo
类名:ModuleConfigInfo
方法名 or 属性名:deviceType||packInfo.d.ts| -|删除|模块名:packInfo
类名:ModuleDistroInfo
方法名 or 属性名:mainAbility||packInfo.d.ts| -|删除|模块名: packInfo
类名: BundlePackFlag||packInfo.d.ts| -|删除|模块名: packInfo
类名: BundlePackFlag
方法名 or 属性名:GET_PACK_INFO_ALL||packInfo.d.ts| -|删除|模块名: packInfo
类名: BundlePackFlag
方法名 or 属性名:GET_PACKAGES||packInfo.d.ts| -|删除|模块名: packInfo
类名: BundlePackFlag
方法名 or 属性名:GET_BUNDLE_SUMMARY||packInfo.d.ts| -|删除|模块名: packInfo
类名: BundlePackFlag
方法名 or 属性名:GET_MODULE_SUMMARY||packInfo.d.ts| +|新增|NA|模块名: ohos.bundle.appControl
类名: appControl|@ohos.bundle.appControl.d.ts| +|新增|NA|模块名: ohos.bundle.appControl
类名: appControl
方法名 or 属性名: setDisposedStatus|@ohos.bundle.appControl.d.ts| +|新增|NA|模块名: ohos.bundle.appControl
类名: appControl
方法名 or 属性名: setDisposedStatus|@ohos.bundle.appControl.d.ts| +|新增|NA|模块名: ohos.bundle.appControl
类名: appControl
方法名 or 属性名: getDisposedStatus|@ohos.bundle.appControl.d.ts| +|新增|NA|模块名: ohos.bundle.appControl
类名: appControl
方法名 or 属性名: getDisposedStatus|@ohos.bundle.appControl.d.ts| +|新增|NA|模块名: ohos.bundle.appControl
类名: appControl
方法名 or 属性名: deleteDisposedStatus|@ohos.bundle.appControl.d.ts| +|新增|NA|模块名: ohos.bundle.appControl
类名: appControl
方法名 or 属性名: deleteDisposedStatus|@ohos.bundle.appControl.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: BundleFlag|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: BundleFlag
方法名 or 属性名: GET_BUNDLE_INFO_DEFAULT|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: BundleFlag
方法名 or 属性名: GET_BUNDLE_INFO_WITH_APPLICATION|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: BundleFlag
方法名 or 属性名: GET_BUNDLE_INFO_WITH_HAP_MODULE|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: BundleFlag
方法名 or 属性名: GET_BUNDLE_INFO_WITH_ABILITY|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: BundleFlag
方法名 or 属性名: GET_BUNDLE_INFO_WITH_EXTENSION_ABILITY|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: BundleFlag
方法名 or 属性名: GET_BUNDLE_INFO_WITH_REQUESTED_PERMISSION|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: BundleFlag
方法名 or 属性名: GET_BUNDLE_INFO_WITH_METADATA|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: BundleFlag
方法名 or 属性名: GET_BUNDLE_INFO_WITH_DISABLE|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: BundleFlag
方法名 or 属性名: GET_BUNDLE_INFO_WITH_SIGNATURE_INFO|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: ApplicationFlag|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: ApplicationFlag
方法名 or 属性名: GET_APPLICATION_INFO_DEFAULT|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: ApplicationFlag
方法名 or 属性名: GET_APPLICATION_INFO_WITH_PERMISSION|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: ApplicationFlag
方法名 or 属性名: GET_APPLICATION_INFO_WITH_METADATA|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: ApplicationFlag
方法名 or 属性名: GET_APPLICATION_INFO_WITH_DISABLE|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: AbilityFlag|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: AbilityFlag
方法名 or 属性名: GET_ABILITY_INFO_DEFAULT|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: AbilityFlag
方法名 or 属性名: GET_ABILITY_INFO_WITH_PERMISSION|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: AbilityFlag
方法名 or 属性名: GET_ABILITY_INFO_WITH_APPLICATION|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: AbilityFlag
方法名 or 属性名: GET_ABILITY_INFO_WITH_METADATA|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: AbilityFlag
方法名 or 属性名: GET_ABILITY_INFO_WITH_DISABLE|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: AbilityFlag
方法名 or 属性名: GET_ABILITY_INFO_ONLY_SYSTEM_APP|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: ExtensionAbilityFlag|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: ExtensionAbilityFlag
方法名 or 属性名: GET_EXTENSION_ABILITY_INFO_DEFAULT|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: ExtensionAbilityFlag
方法名 or 属性名: GET_EXTENSION_ABILITY_INFO_WITH_PERMISSION|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: ExtensionAbilityFlag
方法名 or 属性名: GET_EXTENSION_ABILITY_INFO_WITH_APPLICATION|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: ExtensionAbilityFlag
方法名 or 属性名: GET_EXTENSION_ABILITY_INFO_WITH_METADATA|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: ExtensionAbilityType|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: ExtensionAbilityType
方法名 or 属性名: FORM|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: ExtensionAbilityType
方法名 or 属性名: WORK_SCHEDULER|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: ExtensionAbilityType
方法名 or 属性名: INPUT_METHOD|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: ExtensionAbilityType
方法名 or 属性名: SERVICE|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: ExtensionAbilityType
方法名 or 属性名: ACCESSIBILITY|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: ExtensionAbilityType
方法名 or 属性名: DATA_SHARE|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: ExtensionAbilityType
方法名 or 属性名: FILE_SHARE|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: ExtensionAbilityType
方法名 or 属性名: STATIC_SUBSCRIBER|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: ExtensionAbilityType
方法名 or 属性名: WALLPAPER|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: ExtensionAbilityType
方法名 or 属性名: BACKUP|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: ExtensionAbilityType
方法名 or 属性名: WINDOW|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: ExtensionAbilityType
方法名 or 属性名: ENTERPRISE_ADMIN|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: ExtensionAbilityType
方法名 or 属性名: THUMBNAIL|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: ExtensionAbilityType
方法名 or 属性名: PREVIEW|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: ExtensionAbilityType
方法名 or 属性名: UNSPECIFIED|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: PermissionGrantState|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: PermissionGrantState
方法名 or 属性名: PERMISSION_DENIED|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: PermissionGrantState
方法名 or 属性名: PERMISSION_GRANTED|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: SupportWindowMode|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: SupportWindowMode
方法名 or 属性名: FULL_SCREEN|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: SupportWindowMode
方法名 or 属性名: SPLIT|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: SupportWindowMode
方法名 or 属性名: FLOATING|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: LaunchType|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: LaunchType
方法名 or 属性名: SINGLETON|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: LaunchType
方法名 or 属性名: STANDARD|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: LaunchType
方法名 or 属性名: SPECIFIED|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: AbilityType|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: AbilityType
方法名 or 属性名: PAGE|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: AbilityType
方法名 or 属性名: SERVICE|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: AbilityType
方法名 or 属性名: DATA|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: DisplayOrientation|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: DisplayOrientation
方法名 or 属性名: UNSPECIFIED|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: DisplayOrientation
方法名 or 属性名: LANDSCAPE|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: DisplayOrientation
方法名 or 属性名: PORTRAIT|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: DisplayOrientation
方法名 or 属性名: FOLLOW_RECENT|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: DisplayOrientation
方法名 or 属性名: LANDSCAPE_INVERTED|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: DisplayOrientation
方法名 or 属性名: PORTRAIT_INVERTED|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: DisplayOrientation
方法名 or 属性名: AUTO_ROTATION|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: DisplayOrientation
方法名 or 属性名: AUTO_ROTATION_LANDSCAPE|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: DisplayOrientation
方法名 or 属性名: AUTO_ROTATION_PORTRAIT|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: DisplayOrientation
方法名 or 属性名: AUTO_ROTATION_RESTRICTED|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: DisplayOrientation
方法名 or 属性名: AUTO_ROTATION_LANDSCAPE_RESTRICTED|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: DisplayOrientation
方法名 or 属性名: AUTO_ROTATION_PORTRAIT_RESTRICTED|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: DisplayOrientation
方法名 or 属性名: LOCKED|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getBundleInfoForSelf|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getBundleInfoForSelf|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getBundleInfo|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getBundleInfo|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getBundleInfo|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getApplicationInfo|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getApplicationInfo|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getApplicationInfo|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getAllBundleInfo|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getAllBundleInfo|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getAllBundleInfo|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getAllApplicationInfo|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getAllApplicationInfo|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getAllApplicationInfo|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: queryAbilityInfo|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: queryAbilityInfo|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: queryAbilityInfo|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: queryExtensionAbilityInfo|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: queryExtensionAbilityInfo|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: queryExtensionAbilityInfo|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getBundleNameByUid|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getBundleNameByUid|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getBundleArchiveInfo|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getBundleArchiveInfo|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: cleanBundleCacheFiles|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: cleanBundleCacheFiles|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: setApplicationEnabled|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: setApplicationEnabled|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: setAbilityEnabled|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: setAbilityEnabled|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: isApplicationEnabled|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: isApplicationEnabled|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: isAbilityEnabled|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: isAbilityEnabled|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getLaunchWantForBundle|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getLaunchWantForBundle|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getLaunchWantForBundle|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getProfileByAbility|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getProfileByAbility|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getProfileByExtensionAbility|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getProfileByExtensionAbility|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getPermissionDef|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getPermissionDef|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getAbilityLabel|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getAbilityLabel|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getAbilityIcon|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getAbilityIcon|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getApplicationInfoSync|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getApplicationInfoSync|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getBundleInfoSync|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleManager
类名: bundleManager
方法名 or 属性名: getBundleInfoSync|@ohos.bundle.bundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.bundleMonitor
类名: bundleMonitor|@ohos.bundle.bundleMonitor.d.ts| +|新增|NA|模块名: ohos.bundle.bundleMonitor
类名: BundleChangedInfo|@ohos.bundle.bundleMonitor.d.ts| +|新增|NA|模块名: ohos.bundle.bundleMonitor
类名: BundleChangedInfo
方法名 or 属性名: bundleName|@ohos.bundle.bundleMonitor.d.ts| +|新增|NA|模块名: ohos.bundle.bundleMonitor
类名: BundleChangedInfo
方法名 or 属性名: userId|@ohos.bundle.bundleMonitor.d.ts| +|新增|NA|模块名: ohos.bundle.bundleMonitor
类名: bundleMonitor
方法名 or 属性名: on_add|@ohos.bundle.bundleMonitor.d.ts| +|新增|NA|模块名: ohos.bundle.bundleMonitor
类名: bundleMonitor
方法名 or 属性名: on_update|@ohos.bundle.bundleMonitor.d.ts| +|新增|NA|模块名: ohos.bundle.bundleMonitor
类名: bundleMonitor
方法名 or 属性名: on_remove|@ohos.bundle.bundleMonitor.d.ts| +|新增|NA|模块名: ohos.bundle.bundleMonitor
类名: bundleMonitor
方法名 or 属性名: off_add|@ohos.bundle.bundleMonitor.d.ts| +|新增|NA|模块名: ohos.bundle.bundleMonitor
类名: bundleMonitor
方法名 or 属性名: off_update|@ohos.bundle.bundleMonitor.d.ts| +|新增|NA|模块名: ohos.bundle.bundleMonitor
类名: bundleMonitor
方法名 or 属性名: off_remove|@ohos.bundle.bundleMonitor.d.ts| +|新增|NA|方法名 or 属性名:BROWSER
函数:BROWSER = "Web Browser"|@ohos.bundle.defaultAppManager.d.ts| +|新增|NA|方法名 or 属性名:IMAGE
函数:IMAGE = "Image Gallery"|@ohos.bundle.defaultAppManager.d.ts| +|新增|NA|方法名 or 属性名:AUDIO
函数:AUDIO = "Audio Player"|@ohos.bundle.defaultAppManager.d.ts| +|新增|NA|方法名 or 属性名:VIDEO
函数:VIDEO = "Video Player"|@ohos.bundle.defaultAppManager.d.ts| +|新增|NA|方法名 or 属性名:PDF
函数:PDF = "PDF Viewer"|@ohos.bundle.defaultAppManager.d.ts| +|新增|NA|方法名 or 属性名:WORD
函数:WORD = "Word Viewer"|@ohos.bundle.defaultAppManager.d.ts| +|新增|NA|方法名 or 属性名:EXCEL
函数:EXCEL = "Excel Viewer"|@ohos.bundle.defaultAppManager.d.ts| +|新增|NA|方法名 or 属性名:PPT
函数:PPT = "PPT Viewer"|@ohos.bundle.defaultAppManager.d.ts| +|新增|NA|模块名: ohos.bundle.distributedBundle
类名: distributedBundle|@ohos.bundle.distributedBundle.d.ts| +|新增|NA|模块名: ohos.bundle.distributedBundle
类名: distributedBundle
方法名 or 属性名: getRemoteAbilityInfo|@ohos.bundle.distributedBundle.d.ts| +|新增|NA|模块名: ohos.bundle.distributedBundle
类名: distributedBundle
方法名 or 属性名: getRemoteAbilityInfo|@ohos.bundle.distributedBundle.d.ts| +|新增|NA|模块名: ohos.bundle.distributedBundle
类名: distributedBundle
方法名 or 属性名: getRemoteAbilityInfo|@ohos.bundle.distributedBundle.d.ts| +|新增|NA|模块名: ohos.bundle.distributedBundle
类名: distributedBundle
方法名 or 属性名: getRemoteAbilityInfo|@ohos.bundle.distributedBundle.d.ts| +|新增|NA|模块名: ohos.bundle.distributedBundle
类名: distributedBundle
方法名 or 属性名: getRemoteAbilityInfo|@ohos.bundle.distributedBundle.d.ts| +|新增|NA|模块名: ohos.bundle.distributedBundle
类名: distributedBundle
方法名 or 属性名: getRemoteAbilityInfo|@ohos.bundle.distributedBundle.d.ts| +|新增|NA|模块名: ohos.bundle.distributedBundle
类名: distributedBundle
方法名 or 属性名: getRemoteAbilityInfo|@ohos.bundle.distributedBundle.d.ts| +|新增|NA|模块名: ohos.bundle.distributedBundle
类名: distributedBundle
方法名 or 属性名: getRemoteAbilityInfo|@ohos.bundle.distributedBundle.d.ts| +|新增|NA|模块名: ohos.bundle.freeInstall
类名: freeInstall|@ohos.bundle.freeInstall.d.ts| +|新增|NA|模块名: ohos.bundle.freeInstall
类名: UpgradeFlag|@ohos.bundle.freeInstall.d.ts| +|新增|NA|模块名: ohos.bundle.freeInstall
类名: UpgradeFlag
方法名 or 属性名: NOT_UPGRADE|@ohos.bundle.freeInstall.d.ts| +|新增|NA|模块名: ohos.bundle.freeInstall
类名: UpgradeFlag
方法名 or 属性名: SINGLE_UPGRADE|@ohos.bundle.freeInstall.d.ts| +|新增|NA|模块名: ohos.bundle.freeInstall
类名: UpgradeFlag
方法名 or 属性名: RELATION_UPGRADE|@ohos.bundle.freeInstall.d.ts| +|新增|NA|模块名: ohos.bundle.freeInstall
类名: BundlePackFlag|@ohos.bundle.freeInstall.d.ts| +|新增|NA|模块名: ohos.bundle.freeInstall
类名: BundlePackFlag
方法名 or 属性名: GET_PACK_INFO_ALL|@ohos.bundle.freeInstall.d.ts| +|新增|NA|模块名: ohos.bundle.freeInstall
类名: BundlePackFlag
方法名 or 属性名: GET_PACKAGES|@ohos.bundle.freeInstall.d.ts| +|新增|NA|模块名: ohos.bundle.freeInstall
类名: BundlePackFlag
方法名 or 属性名: GET_BUNDLE_SUMMARY|@ohos.bundle.freeInstall.d.ts| +|新增|NA|模块名: ohos.bundle.freeInstall
类名: BundlePackFlag
方法名 or 属性名: GET_MODULE_SUMMARY|@ohos.bundle.freeInstall.d.ts| +|新增|NA|模块名: ohos.bundle.freeInstall
类名: freeInstall
方法名 or 属性名: setHapModuleUpgradeFlag|@ohos.bundle.freeInstall.d.ts| +|新增|NA|模块名: ohos.bundle.freeInstall
类名: freeInstall
方法名 or 属性名: setHapModuleUpgradeFlag|@ohos.bundle.freeInstall.d.ts| +|新增|NA|模块名: ohos.bundle.freeInstall
类名: freeInstall
方法名 or 属性名: isHapModuleRemovable|@ohos.bundle.freeInstall.d.ts| +|新增|NA|模块名: ohos.bundle.freeInstall
类名: freeInstall
方法名 or 属性名: isHapModuleRemovable|@ohos.bundle.freeInstall.d.ts| +|新增|NA|模块名: ohos.bundle.freeInstall
类名: freeInstall
方法名 or 属性名: getBundlePackInfo|@ohos.bundle.freeInstall.d.ts| +|新增|NA|模块名: ohos.bundle.freeInstall
类名: freeInstall
方法名 or 属性名: getBundlePackInfo|@ohos.bundle.freeInstall.d.ts| +|新增|NA|模块名: ohos.bundle.freeInstall
类名: freeInstall
方法名 or 属性名: getDispatchInfo|@ohos.bundle.freeInstall.d.ts| +|新增|NA|模块名: ohos.bundle.freeInstall
类名: freeInstall
方法名 or 属性名: getDispatchInfo|@ohos.bundle.freeInstall.d.ts| +|新增|NA|模块名: ohos.bundle.installer
类名: installer|@ohos.bundle.installer.d.ts| +|新增|NA|模块名: ohos.bundle.installer
类名: installer
方法名 or 属性名: getBundleInstaller|@ohos.bundle.installer.d.ts| +|新增|NA|模块名: ohos.bundle.installer
类名: installer
方法名 or 属性名: getBundleInstaller|@ohos.bundle.installer.d.ts| +|新增|NA|模块名: ohos.bundle.installer
类名: BundleInstaller|@ohos.bundle.installer.d.ts| +|新增|NA|模块名: ohos.bundle.installer
类名: BundleInstaller
方法名 or 属性名: install|@ohos.bundle.installer.d.ts| +|新增|NA|模块名: ohos.bundle.installer
类名: BundleInstaller
方法名 or 属性名: uninstall|@ohos.bundle.installer.d.ts| +|新增|NA|模块名: ohos.bundle.installer
类名: BundleInstaller
方法名 or 属性名: recover|@ohos.bundle.installer.d.ts| +|新增|NA|模块名: ohos.bundle.installer
类名: HashParam|@ohos.bundle.installer.d.ts| +|新增|NA|模块名: ohos.bundle.installer
类名: HashParam
方法名 or 属性名: moduleName|@ohos.bundle.installer.d.ts| +|新增|NA|模块名: ohos.bundle.installer
类名: HashParam
方法名 or 属性名: hashValue|@ohos.bundle.installer.d.ts| +|新增|NA|模块名: ohos.bundle.installer
类名: InstallParam|@ohos.bundle.installer.d.ts| +|新增|NA|模块名: ohos.bundle.installer
类名: InstallParam
方法名 or 属性名: userId|@ohos.bundle.installer.d.ts| +|新增|NA|模块名: ohos.bundle.installer
类名: InstallParam
方法名 or 属性名: installFlag|@ohos.bundle.installer.d.ts| +|新增|NA|模块名: ohos.bundle.installer
类名: InstallParam
方法名 or 属性名: isKeepData|@ohos.bundle.installer.d.ts| +|新增|NA|模块名: ohos.bundle.installer
类名: InstallParam
方法名 or 属性名: hashParams|@ohos.bundle.installer.d.ts| +|新增|NA|模块名: ohos.bundle.installer
类名: InstallParam
方法名 or 属性名: crowdtestDeadline|@ohos.bundle.installer.d.ts| +|新增|NA|模块名: ohos.bundle.launcherBundleManager
类名: launcherBundleManager|@ohos.bundle.launcherBundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.launcherBundleManager
类名: launcherBundleManager
方法名 or 属性名: getLauncherAbilityInfo|@ohos.bundle.launcherBundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.launcherBundleManager
类名: launcherBundleManager
方法名 or 属性名: getLauncherAbilityInfo|@ohos.bundle.launcherBundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.launcherBundleManager
类名: launcherBundleManager
方法名 or 属性名: getAllLauncherAbilityInfo|@ohos.bundle.launcherBundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.launcherBundleManager
类名: launcherBundleManager
方法名 or 属性名: getAllLauncherAbilityInfo|@ohos.bundle.launcherBundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.launcherBundleManager
类名: launcherBundleManager
方法名 or 属性名: getShortcutInfo|@ohos.bundle.launcherBundleManager.d.ts| +|新增|NA|模块名: ohos.bundle.launcherBundleManager
类名: launcherBundleManager
方法名 or 属性名: getShortcutInfo|@ohos.bundle.launcherBundleManager.d.ts| +|新增|NA|模块名: abilityInfo
类名: WindowSize|abilityInfo.d.ts| +|新增|NA|模块名: abilityInfo
类名: WindowSize
方法名 or 属性名:maxWindowRatio|abilityInfo.d.ts| +|新增|NA|模块名: abilityInfo
类名: WindowSize
方法名 or 属性名:minWindowRatio|abilityInfo.d.ts| +|新增|NA|模块名: abilityInfo
类名: WindowSize
方法名 or 属性名:maxWindowWidth|abilityInfo.d.ts| +|新增|NA|模块名: abilityInfo
类名: WindowSize
方法名 or 属性名:minWindowWidth|abilityInfo.d.ts| +|新增|NA|模块名: abilityInfo
类名: WindowSize
方法名 or 属性名:maxWindowHeight|abilityInfo.d.ts| +|新增|NA|模块名: abilityInfo
类名: WindowSize
方法名 or 属性名:minWindowHeight|abilityInfo.d.ts| +|新增|NA|模块名: bundleInfo
类名: SignatureInfo|bundleInfo.d.ts| +|新增|NA|模块名: bundleInfo
类名: SignatureInfo
方法名 or 属性名:appId|bundleInfo.d.ts| +|新增|NA|模块名: bundleInfo
类名: SignatureInfo
方法名 or 属性名:fingerprint|bundleInfo.d.ts| +|新增|NA|方法名 or 属性名:extensionAbilityType
函数:readonly extensionAbilityType: bundleManager.ExtensionAbilityType;|extensionAbilityInfo.d.ts| +|新增|NA|模块名: packInfo
类名: ExtensionAbility|packInfo.d.ts| +|新增|NA|模块名: packInfo
类名: ExtensionAbility
方法名 or 属性名:name|packInfo.d.ts| +|新增|NA|模块名: packInfo
类名: ExtensionAbility
方法名 or 属性名:forms|packInfo.d.ts| +|新增|NA|方法名 or 属性名:extensionAbilities
函数:readonly extensionAbilities: Array;|packInfo.d.ts| +|新增|NA|方法名 or 属性名:supportDimensions
函数:readonly supportDimensions: Array;|packInfo.d.ts| +|新增|NA|方法名 or 属性名:defaultDimension
函数:readonly defaultDimension: string;|packInfo.d.ts| +|新增|NA|模块名: permissionDef
类名: PermissionDef|permissionDef.d.ts| +|新增|NA|模块名: permissionDef
类名: PermissionDef
方法名 or 属性名: permissionName|permissionDef.d.ts| +|新增|NA|模块名: permissionDef
类名: PermissionDef
方法名 or 属性名: grantMode|permissionDef.d.ts| +|新增|NA|模块名: permissionDef
类名: PermissionDef
方法名 or 属性名: labelId|permissionDef.d.ts| +|新增|NA|模块名: permissionDef
类名: PermissionDef
方法名 or 属性名: descriptionId|permissionDef.d.ts| +|新增|NA|方法名 or 属性名:moduleName
函数:readonly moduleName: string;|shortcutInfo.d.ts| +|删除|模块名:ohos.bundle
类名:BundleFlag
方法名 or 属性名:GET_BUNDLE_WITH_EXTENSION_ABILITY|NA|@ohos.bundle.d.ts| +|删除|模块名:ohos.bundle
类名:BundleFlag
方法名 or 属性名:GET_BUNDLE_WITH_HASH_VALUE|NA|@ohos.bundle.d.ts| +|删除|模块名:ohos.bundle
类名:BundleFlag
方法名 or 属性名:GET_APPLICATION_INFO_WITH_CERTIFICATE_FINGERPRINT|NA|@ohos.bundle.d.ts| +|删除|模块名: ohos.bundle
类名: ExtensionFlag|NA|@ohos.bundle.d.ts| +|删除|模块名: ohos.bundle
类名: ExtensionFlag
方法名 or 属性名:GET_EXTENSION_INFO_DEFAULT|NA|@ohos.bundle.d.ts| +|删除|模块名: ohos.bundle
类名: ExtensionFlag
方法名 or 属性名:GET_EXTENSION_INFO_WITH_PERMISSION|NA|@ohos.bundle.d.ts| +|删除|模块名: ohos.bundle
类名: ExtensionFlag
方法名 or 属性名:GET_EXTENSION_INFO_WITH_APPLICATION|NA|@ohos.bundle.d.ts| +|删除|模块名: ohos.bundle
类名: ExtensionFlag
方法名 or 属性名:GET_EXTENSION_INFO_WITH_METADATA|NA|@ohos.bundle.d.ts| +|删除|模块名:ohos.bundle
类名:DisplayOrientation
方法名 or 属性名:LANDSCAPE_INVERTED|NA|@ohos.bundle.d.ts| +|删除|模块名:ohos.bundle
类名:DisplayOrientation
方法名 or 属性名:PORTRAIT_INVERTED|NA|@ohos.bundle.d.ts| +|删除|模块名:ohos.bundle
类名:DisplayOrientation
方法名 or 属性名:AUTO_ROTATION|NA|@ohos.bundle.d.ts| +|删除|模块名:ohos.bundle
类名:DisplayOrientation
方法名 or 属性名:AUTO_ROTATION_LANDSCAPE|NA|@ohos.bundle.d.ts| +|删除|模块名:ohos.bundle
类名:DisplayOrientation
方法名 or 属性名:AUTO_ROTATION_PORTRAIT|NA|@ohos.bundle.d.ts| +|删除|模块名:ohos.bundle
类名:DisplayOrientation
方法名 or 属性名:AUTO_ROTATION_RESTRICTED|NA|@ohos.bundle.d.ts| +|删除|模块名:ohos.bundle
类名:DisplayOrientation
方法名 or 属性名:AUTO_ROTATION_LANDSCAPE_RESTRICTED|NA|@ohos.bundle.d.ts| +|删除|模块名:ohos.bundle
类名:DisplayOrientation
方法名 or 属性名:AUTO_ROTATION_PORTRAIT_RESTRICTED|NA|@ohos.bundle.d.ts| +|删除|模块名:ohos.bundle
类名:DisplayOrientation
方法名 or 属性名:LOCKED|NA|@ohos.bundle.d.ts| +|删除|模块名: ohos.bundle
类名: ExtensionAbilityType|NA|@ohos.bundle.d.ts| +|删除|模块名: ohos.bundle
类名: ExtensionAbilityType
方法名 or 属性名:FORM|NA|@ohos.bundle.d.ts| +|删除|模块名: ohos.bundle
类名: ExtensionAbilityType
方法名 or 属性名:WORK_SCHEDULER|NA|@ohos.bundle.d.ts| +|删除|模块名: ohos.bundle
类名: ExtensionAbilityType
方法名 or 属性名:INPUT_METHOD|NA|@ohos.bundle.d.ts| +|删除|模块名: ohos.bundle
类名: ExtensionAbilityType
方法名 or 属性名:SERVICE|NA|@ohos.bundle.d.ts| +|删除|模块名: ohos.bundle
类名: ExtensionAbilityType
方法名 or 属性名:ACCESSIBILITY|NA|@ohos.bundle.d.ts| +|删除|模块名: ohos.bundle
类名: ExtensionAbilityType
方法名 or 属性名:DATA_SHARE|NA|@ohos.bundle.d.ts| +|删除|模块名: ohos.bundle
类名: ExtensionAbilityType
方法名 or 属性名:FILE_SHARE|NA|@ohos.bundle.d.ts| +|删除|模块名: ohos.bundle
类名: ExtensionAbilityType
方法名 or 属性名:STATIC_SUBSCRIBER|NA|@ohos.bundle.d.ts| +|删除|模块名: ohos.bundle
类名: ExtensionAbilityType
方法名 or 属性名:WALLPAPER|NA|@ohos.bundle.d.ts| +|删除|模块名: ohos.bundle
类名: ExtensionAbilityType
方法名 or 属性名:BACKUP|NA|@ohos.bundle.d.ts| +|删除|模块名: ohos.bundle
类名: ExtensionAbilityType
方法名 or 属性名:WINDOW|NA|@ohos.bundle.d.ts| +|删除|模块名: ohos.bundle
类名: ExtensionAbilityType
方法名 or 属性名:ENTERPRISE_ADMIN|NA|@ohos.bundle.d.ts| +|删除|模块名: ohos.bundle
类名: ExtensionAbilityType
方法名 or 属性名:THUMBNAIL|NA|@ohos.bundle.d.ts| +|删除|模块名: ohos.bundle
类名: ExtensionAbilityType
方法名 or 属性名:PREVIEW|NA|@ohos.bundle.d.ts| +|删除|模块名: ohos.bundle
类名: ExtensionAbilityType
方法名 or 属性名:UNSPECIFIED|NA|@ohos.bundle.d.ts| +|删除|模块名: ohos.bundle
类名: UpgradeFlag|NA|@ohos.bundle.d.ts| +|删除|模块名: ohos.bundle
类名: UpgradeFlag
方法名 or 属性名:NOT_UPGRADE|NA|@ohos.bundle.d.ts| +|删除|模块名: ohos.bundle
类名: UpgradeFlag
方法名 or 属性名:SINGLE_UPGRADE|NA|@ohos.bundle.d.ts| +|删除|模块名: ohos.bundle
类名: UpgradeFlag
方法名 or 属性名:RELATION_UPGRADE|NA|@ohos.bundle.d.ts| +|删除|模块名: ohos.bundle
类名: SupportWindowMode|NA|@ohos.bundle.d.ts| +|删除|模块名: ohos.bundle
类名: SupportWindowMode
方法名 or 属性名:FULL_SCREEN|NA|@ohos.bundle.d.ts| +|删除|模块名: ohos.bundle
类名: SupportWindowMode
方法名 or 属性名:SPLIT|NA|@ohos.bundle.d.ts| +|删除|模块名: ohos.bundle
类名: SupportWindowMode
方法名 or 属性名:FLOATING|NA|@ohos.bundle.d.ts| +|删除|模块名:ohos.bundle
类名:bundle
方法名 or 属性名:queryExtensionAbilityInfos|NA|@ohos.bundle.d.ts| +|删除|模块名:ohos.bundle
类名:bundle
方法名 or 属性名:queryExtensionAbilityInfos|NA|@ohos.bundle.d.ts| +|删除|模块名:ohos.bundle
类名:bundle
方法名 or 属性名:queryExtensionAbilityInfos|NA|@ohos.bundle.d.ts| +|删除|模块名:ohos.bundle
类名:bundle
方法名 or 属性名:setModuleUpgradeFlag|NA|@ohos.bundle.d.ts| +|删除|模块名:ohos.bundle
类名:bundle
方法名 or 属性名:setModuleUpgradeFlag|NA|@ohos.bundle.d.ts| +|删除|模块名:ohos.bundle
类名:bundle
方法名 or 属性名:isModuleRemovable|NA|@ohos.bundle.d.ts| +|删除|模块名:ohos.bundle
类名:bundle
方法名 or 属性名:isModuleRemovable|NA|@ohos.bundle.d.ts| +|删除|模块名:ohos.bundle
类名:bundle
方法名 or 属性名:getBundlePackInfo|NA|@ohos.bundle.d.ts| +|删除|模块名:ohos.bundle
类名:bundle
方法名 or 属性名:getBundlePackInfo|NA|@ohos.bundle.d.ts| +|删除|模块名:ohos.bundle
类名:bundle
方法名 or 属性名:getDispatcherVersion|NA|@ohos.bundle.d.ts| +|删除|模块名:ohos.bundle
类名:bundle
方法名 or 属性名:getDispatcherVersion|NA|@ohos.bundle.d.ts| +|删除|模块名:ohos.bundle
类名:bundle
方法名 or 属性名:getProfileByAbility|NA|@ohos.bundle.d.ts| +|删除|模块名:ohos.bundle
类名:bundle
方法名 or 属性名:getProfileByAbility|NA|@ohos.bundle.d.ts| +|删除|模块名:ohos.bundle
类名:bundle
方法名 or 属性名:getProfileByExtensionAbility|NA|@ohos.bundle.d.ts| +|删除|模块名:ohos.bundle
类名:bundle
方法名 or 属性名:getProfileByExtensionAbility|NA|@ohos.bundle.d.ts| +|删除|模块名:ohos.bundle
类名:bundle
方法名 or 属性名:setDisposedStatus|NA|@ohos.bundle.d.ts| +|删除|模块名:ohos.bundle
类名:bundle
方法名 or 属性名:setDisposedStatus|NA|@ohos.bundle.d.ts| +|删除|模块名:ohos.bundle
类名:bundle
方法名 or 属性名:getDisposedStatus|NA|@ohos.bundle.d.ts| +|删除|模块名:ohos.bundle
类名:bundle
方法名 or 属性名:getDisposedStatus|NA|@ohos.bundle.d.ts| +|删除|模块名:ohos.bundle
类名:bundle
方法名 or 属性名:getApplicationInfoSync|NA|@ohos.bundle.d.ts| +|删除|模块名:ohos.bundle
类名:bundle
方法名 or 属性名:getApplicationInfoSync|NA|@ohos.bundle.d.ts| +|删除|模块名:ohos.bundle
类名:bundle
方法名 or 属性名:getBundleInfoSync|NA|@ohos.bundle.d.ts| +|删除|模块名:ohos.bundle
类名:bundle
方法名 or 属性名:getBundleInfoSync|NA|@ohos.bundle.d.ts| +|删除|模块名:abilityInfo
类名:AbilityInfo
方法名 or 属性名:supportWindowMode|NA|abilityInfo.d.ts| +|删除|模块名:abilityInfo
类名:AbilityInfo
方法名 or 属性名:maxWindowRatio|NA|abilityInfo.d.ts| +|删除|模块名:abilityInfo
类名:AbilityInfo
方法名 or 属性名:minWindowRatio|NA|abilityInfo.d.ts| +|删除|模块名:abilityInfo
类名:AbilityInfo
方法名 or 属性名:maxWindowWidth|NA|abilityInfo.d.ts| +|删除|模块名:abilityInfo
类名:AbilityInfo
方法名 or 属性名:minWindowWidth|NA|abilityInfo.d.ts| +|删除|模块名:abilityInfo
类名:AbilityInfo
方法名 or 属性名:maxWindowHeight|NA|abilityInfo.d.ts| +|删除|模块名:abilityInfo
类名:AbilityInfo
方法名 or 属性名:minWindowHeight|NA|abilityInfo.d.ts| +|删除|模块名:applicationInfo
类名:ApplicationInfo
方法名 or 属性名:labelIndex|NA|applicationInfo.d.ts| +|删除|模块名:applicationInfo
类名:ApplicationInfo
方法名 or 属性名:iconIndex|NA|applicationInfo.d.ts| +|删除|模块名:applicationInfo
类名:ApplicationInfo
方法名 or 属性名:fingerprint|NA|applicationInfo.d.ts| +|删除|模块名:bundleInfo
类名:BundleInfo
方法名 or 属性名:extensionAbilityInfo|NA|bundleInfo.d.ts| +|删除|模块名: bundleInstaller
类名: HashParam|NA|bundleInstaller.d.ts| +|删除|模块名: bundleInstaller
类名: HashParam
方法名 or 属性名:moduleName|NA|bundleInstaller.d.ts| +|删除|模块名: bundleInstaller
类名: HashParam
方法名 or 属性名:hashValue|NA|bundleInstaller.d.ts| +|删除|模块名:bundleInstaller
类名:InstallParam
方法名 or 属性名:hashParams|NA|bundleInstaller.d.ts| +|删除|模块名:bundleInstaller
类名:InstallParam
方法名 or 属性名:crowdtestDeadline|NA|bundleInstaller.d.ts| +|删除|模块名:dispatchInfo
类名:DispatchInfo
方法名 or 属性名:dispatchAPI|NA|dispatchInfo.d.ts| +|删除|模块名:hapModuleInfo
类名:HapModuleInfo
方法名 or 属性名:extensionAbilityInfo|NA|hapModuleInfo.d.ts| +|删除|模块名:packInfo
类名:PackageConfig
方法名 or 属性名:deviceType|NA|packInfo.d.ts| +|删除|模块名: packInfo
类名: ExtensionAbilities|NA|packInfo.d.ts| +|删除|模块名: packInfo
类名: ExtensionAbilities
方法名 or 属性名:name|NA|packInfo.d.ts| +|删除|模块名: packInfo
类名: ExtensionAbilities
方法名 or 属性名:forms|NA|packInfo.d.ts| +|删除|模块名:packInfo
类名:ModuleConfigInfo
方法名 or 属性名:deviceType|NA|packInfo.d.ts| +|删除|模块名:packInfo
类名:ModuleDistroInfo
方法名 or 属性名:mainAbility|NA|packInfo.d.ts| +|删除|模块名: packInfo
类名: BundlePackFlag|NA|packInfo.d.ts| +|删除|模块名: packInfo
类名: BundlePackFlag
方法名 or 属性名:GET_PACK_INFO_ALL|NA|packInfo.d.ts| +|删除|模块名: packInfo
类名: BundlePackFlag
方法名 or 属性名:GET_PACKAGES|NA|packInfo.d.ts| +|删除|模块名: packInfo
类名: BundlePackFlag
方法名 or 属性名:GET_BUNDLE_SUMMARY|NA|packInfo.d.ts| +|删除|模块名: packInfo
类名: BundlePackFlag
方法名 or 属性名:GET_MODULE_SUMMARY|NA|packInfo.d.ts| |废弃版本有变化|类名:bundle
废弃版本:N/A|类名:bundle
废弃版本:9
代替接口:ohos.bundle.bundleManager |@ohos.bundle.d.ts| |废弃版本有变化|类名:BundleFlag
废弃版本:N/A|类名:BundleFlag
废弃版本:9
代替接口:ohos.bundle.bundleManager.BundleFlag|@ohos.bundle.d.ts| |废弃版本有变化|类名:ColorMode
废弃版本:N/A|类名:ColorMode
废弃版本:9
代替接口:ohos.bundle.bundleManager |@ohos.bundle.d.ts| @@ -510,11 +415,11 @@ |废弃版本有变化|类名:RemoteAbilityInfo
废弃版本:N/A|类名:RemoteAbilityInfo
废弃版本:9
代替接口:ohos.bundle.distributedBundle.RemoteAbilityInfo |remoteAbilityInfo.d.ts| |废弃版本有变化|类名:ShortcutWant
废弃版本:N/A|类名:ShortcutWant
废弃版本:9
代替接口:ohos.bundle.launcherBundleManager.ShortcutWant |shortcutInfo.d.ts| |废弃版本有变化|类名:ShortcutInfo
废弃版本:N/A|类名:ShortcutInfo
废弃版本:9
代替接口:ohos.bundle.launcherBundleManager.ShortcutInfo |shortcutInfo.d.ts| -|新增(错误码)||方法名 or 属性名:isDefaultApplication
错误码内容:401,801|@ohos.bundle.defaultAppManager.d.ts| -|新增(错误码)||方法名 or 属性名:isDefaultApplication
错误码内容:401,801|@ohos.bundle.defaultAppManager.d.ts| -|新增(错误码)||方法名 or 属性名:getDefaultApplication
错误码内容:201,401,801,17700004,17700023,17700025|@ohos.bundle.defaultAppManager.d.ts| -|新增(错误码)||方法名 or 属性名:getDefaultApplication
错误码内容:201,401,801,17700004,17700023,17700025|@ohos.bundle.defaultAppManager.d.ts| -|新增(错误码)||方法名 or 属性名:setDefaultApplication
错误码内容:201,401,801,17700004,17700025,17700028|@ohos.bundle.defaultAppManager.d.ts| -|新增(错误码)||方法名 or 属性名:setDefaultApplication
错误码内容:201,401,801,17700004,17700025,17700028|@ohos.bundle.defaultAppManager.d.ts| -|新增(错误码)||方法名 or 属性名:resetDefaultApplication
错误码内容:201,401,801,17700004,17700025|@ohos.bundle.defaultAppManager.d.ts| -|新增(错误码)||方法名 or 属性名:resetDefaultApplication
错误码内容:201,401,801,17700004,17700025|@ohos.bundle.defaultAppManager.d.ts| +|新增(错误码)|NA|方法名 or 属性名:isDefaultApplication
错误码内容:401,801|@ohos.bundle.defaultAppManager.d.ts| +|新增(错误码)|NA|方法名 or 属性名:isDefaultApplication
错误码内容:401,801|@ohos.bundle.defaultAppManager.d.ts| +|新增(错误码)|NA|方法名 or 属性名:getDefaultApplication
错误码内容:201,401,801,17700004,17700023,17700025|@ohos.bundle.defaultAppManager.d.ts| +|新增(错误码)|NA|方法名 or 属性名:getDefaultApplication
错误码内容:201,401,801,17700004,17700023,17700025|@ohos.bundle.defaultAppManager.d.ts| +|新增(错误码)|NA|方法名 or 属性名:setDefaultApplication
错误码内容:201,401,801,17700004,17700025,17700028|@ohos.bundle.defaultAppManager.d.ts| +|新增(错误码)|NA|方法名 or 属性名:setDefaultApplication
错误码内容:201,401,801,17700004,17700025,17700028|@ohos.bundle.defaultAppManager.d.ts| +|新增(错误码)|NA|方法名 or 属性名:resetDefaultApplication
错误码内容:201,401,801,17700004,17700025|@ohos.bundle.defaultAppManager.d.ts| +|新增(错误码)|NA|方法名 or 属性名:resetDefaultApplication
错误码内容:201,401,801,17700004,17700025|@ohos.bundle.defaultAppManager.d.ts| diff --git a/zh-cn/release-notes/api-diff/v3.2-beta4/js-apidiff-communication.md b/zh-cn/release-notes/api-diff/v3.2-beta4/js-apidiff-communication.md index 295761c4d91747f5e1f729e831b5b42e45446351..6ef05c0fe4dd06aefa8551280c9812199809fdd8 100644 --- a/zh-cn/release-notes/api-diff/v3.2-beta4/js-apidiff-communication.md +++ b/zh-cn/release-notes/api-diff/v3.2-beta4/js-apidiff-communication.md @@ -1,727 +1,689 @@ -| 操作 | 新版本 | 旧版本 | d.ts文件 | +| 操作 | 旧版本 | 新版本 | d.ts文件 | | ---- | ------ | ------ | -------- | -|新增||模块名: ohos.net.connection
类名: connection
方法名 or 属性名: isDefaultNetMetered|@ohos.net.connection.d.ts| -|新增||模块名: ohos.net.connection
类名: connection
方法名 or 属性名: isDefaultNetMetered|@ohos.net.connection.d.ts| -|新增||模块名: ohos.net.connection
类名: NetHandle
方法名 or 属性名: bindSocket|@ohos.net.connection.d.ts| -|新增||模块名: ohos.net.connection
类名: NetHandle
方法名 or 属性名: bindSocket|@ohos.net.connection.d.ts| -|新增||模块名: ohos.net.ethernet
类名: ethernet|@ohos.net.ethernet.d.ts| -|新增||模块名: ohos.net.ethernet
类名: ethernet
方法名 or 属性名: getIfaceConfig|@ohos.net.ethernet.d.ts| -|新增||模块名: ohos.net.ethernet
类名: ethernet
方法名 or 属性名: getIfaceConfig|@ohos.net.ethernet.d.ts| -|新增||模块名: ohos.net.ethernet
类名: ethernet
方法名 or 属性名: setIfaceConfig|@ohos.net.ethernet.d.ts| -|新增||模块名: ohos.net.ethernet
类名: ethernet
方法名 or 属性名: setIfaceConfig|@ohos.net.ethernet.d.ts| -|新增||模块名: ohos.net.ethernet
类名: ethernet
方法名 or 属性名: isIfaceActive|@ohos.net.ethernet.d.ts| -|新增||模块名: ohos.net.ethernet
类名: ethernet
方法名 or 属性名: isIfaceActive|@ohos.net.ethernet.d.ts| -|新增||模块名: ohos.net.ethernet
类名: ethernet
方法名 or 属性名: getAllActiveIfaces|@ohos.net.ethernet.d.ts| -|新增||模块名: ohos.net.ethernet
类名: ethernet
方法名 or 属性名: getAllActiveIfaces|@ohos.net.ethernet.d.ts| -|新增||模块名: ohos.net.ethernet
类名: InterfaceConfiguration|@ohos.net.ethernet.d.ts| -|新增||模块名: ohos.net.ethernet
类名: InterfaceConfiguration
方法名 or 属性名: mode|@ohos.net.ethernet.d.ts| -|新增||模块名: ohos.net.ethernet
类名: InterfaceConfiguration
方法名 or 属性名: ipAddr|@ohos.net.ethernet.d.ts| -|新增||模块名: ohos.net.ethernet
类名: InterfaceConfiguration
方法名 or 属性名: route|@ohos.net.ethernet.d.ts| -|新增||模块名: ohos.net.ethernet
类名: InterfaceConfiguration
方法名 or 属性名: gateway|@ohos.net.ethernet.d.ts| -|新增||模块名: ohos.net.ethernet
类名: InterfaceConfiguration
方法名 or 属性名: netMask|@ohos.net.ethernet.d.ts| -|新增||模块名: ohos.net.ethernet
类名: InterfaceConfiguration
方法名 or 属性名: dnsServers|@ohos.net.ethernet.d.ts| -|新增||模块名: ohos.net.ethernet
类名: IPSetMode|@ohos.net.ethernet.d.ts| -|新增||模块名: ohos.net.ethernet
类名: IPSetMode
方法名 or 属性名: STATIC|@ohos.net.ethernet.d.ts| -|新增||模块名: ohos.net.ethernet
类名: IPSetMode
方法名 or 属性名: DHCP|@ohos.net.ethernet.d.ts| -|新增||模块名: ohos.net.http
类名: HttpRequestOptions
方法名 or 属性名: expectDataType|@ohos.net.http.d.ts| -|新增||模块名: ohos.net.http
类名: HttpRequestOptions
方法名 or 属性名: usingCache|@ohos.net.http.d.ts| -|新增||模块名: ohos.net.http
类名: HttpRequestOptions
方法名 or 属性名: priority|@ohos.net.http.d.ts| -|新增||模块名: ohos.net.http
类名: HttpRequestOptions
方法名 or 属性名: usingProtocol|@ohos.net.http.d.ts| -|新增||模块名: ohos.net.http
类名: HttpProtocol|@ohos.net.http.d.ts| -|新增||模块名: ohos.net.http
类名: HttpProtocol
方法名 or 属性名: HTTP1_1|@ohos.net.http.d.ts| -|新增||模块名: ohos.net.http
类名: HttpProtocol
方法名 or 属性名: HTTP2|@ohos.net.http.d.ts| -|新增||模块名: ohos.net.http
类名: HttpDataType|@ohos.net.http.d.ts| -|新增||模块名: ohos.net.http
类名: HttpDataType
方法名 or 属性名: STRING|@ohos.net.http.d.ts| -|新增||模块名: ohos.net.http
类名: HttpDataType
方法名 or 属性名: OBJECT|@ohos.net.http.d.ts| -|新增||模块名: ohos.net.http
类名: HttpDataType
方法名 or 属性名: ARRAY_BUFFER|@ohos.net.http.d.ts| -|新增||模块名: ohos.net.http
类名: HttpResponse
方法名 or 属性名: resultType|@ohos.net.http.d.ts| -|新增||模块名: ohos.net.http
类名: http
方法名 or 属性名: createHttpResponseCache|@ohos.net.http.d.ts| -|新增||模块名: ohos.net.http
类名: HttpResponseCache|@ohos.net.http.d.ts| -|新增||模块名: ohos.net.http
类名: HttpResponseCache
方法名 or 属性名: flush|@ohos.net.http.d.ts| -|新增||模块名: ohos.net.http
类名: HttpResponseCache
方法名 or 属性名: flush|@ohos.net.http.d.ts| -|新增||模块名: ohos.net.http
类名: HttpResponseCache
方法名 or 属性名: delete|@ohos.net.http.d.ts| -|新增||模块名: ohos.net.http
类名: HttpResponseCache
方法名 or 属性名: delete|@ohos.net.http.d.ts| -|新增||模块名: ohos.net.socket
类名: socket
方法名 or 属性名:constructTLSSocketInstance|@ohos.net.socket.d.ts| -|新增||方法名 or 属性名:socketLinger
函数:socketLinger?: {on: boolean, linger: number};|@ohos.net.socket.d.ts| -|新增||模块名: ohos.net.socket
类名: TLSSocket|@ohos.net.socket.d.ts| -|新增||模块名: ohos.net.socket
类名: TLSSocket
方法名 or 属性名:bind|@ohos.net.socket.d.ts| -|新增||模块名: ohos.net.socket
类名: TLSSocket
方法名 or 属性名:bind|@ohos.net.socket.d.ts| -|新增||模块名: ohos.net.socket
类名: TLSSocket
方法名 or 属性名:getRemoteAddress|@ohos.net.socket.d.ts| -|新增||模块名: ohos.net.socket
类名: TLSSocket
方法名 or 属性名:getRemoteAddress|@ohos.net.socket.d.ts| -|新增||模块名: ohos.net.socket
类名: TLSSocket
方法名 or 属性名:getState|@ohos.net.socket.d.ts| -|新增||模块名: ohos.net.socket
类名: TLSSocket
方法名 or 属性名:getState|@ohos.net.socket.d.ts| -|新增||模块名: ohos.net.socket
类名: TLSSocket
方法名 or 属性名:setExtraOptions|@ohos.net.socket.d.ts| -|新增||模块名: ohos.net.socket
类名: TLSSocket
方法名 or 属性名:setExtraOptions|@ohos.net.socket.d.ts| -|新增||模块名: ohos.net.socket
类名: TLSSocket
方法名 or 属性名:on_message|@ohos.net.socket.d.ts| -|新增||模块名: ohos.net.socket
类名: TLSSocket
方法名 or 属性名:off_message|@ohos.net.socket.d.ts| -|新增||模块名: ohos.net.socket
类名: TLSSocket
方法名 or 属性名:on_connect|@ohos.net.socket.d.ts| -|新增||模块名: ohos.net.socket
类名: TLSSocket
方法名 or 属性名:on_close|@ohos.net.socket.d.ts| -|新增||模块名: ohos.net.socket
类名: TLSSocket
方法名 or 属性名:off_connect|@ohos.net.socket.d.ts| -|新增||模块名: ohos.net.socket
类名: TLSSocket
方法名 or 属性名:off_close|@ohos.net.socket.d.ts| -|新增||模块名: ohos.net.socket
类名: TLSSocket
方法名 or 属性名:on_error|@ohos.net.socket.d.ts| -|新增||模块名: ohos.net.socket
类名: TLSSocket
方法名 or 属性名:off_error|@ohos.net.socket.d.ts| -|新增||模块名: ohos.net.socket
类名: TLSSocket
方法名 or 属性名:getCertificate|@ohos.net.socket.d.ts| -|新增||模块名: ohos.net.socket
类名: TLSSocket
方法名 or 属性名:getCertificate|@ohos.net.socket.d.ts| -|新增||模块名: ohos.net.socket
类名: TLSSocket
方法名 or 属性名:getRemoteCertificate|@ohos.net.socket.d.ts| -|新增||模块名: ohos.net.socket
类名: TLSSocket
方法名 or 属性名:getRemoteCertificate|@ohos.net.socket.d.ts| -|新增||模块名: ohos.net.socket
类名: TLSSocket
方法名 or 属性名:getProtocol|@ohos.net.socket.d.ts| -|新增||模块名: ohos.net.socket
类名: TLSSocket
方法名 or 属性名:getProtocol|@ohos.net.socket.d.ts| -|新增||模块名: ohos.net.socket
类名: TLSSocket
方法名 or 属性名:getCipherSuite|@ohos.net.socket.d.ts| -|新增||模块名: ohos.net.socket
类名: TLSSocket
方法名 or 属性名:getCipherSuite|@ohos.net.socket.d.ts| -|新增||模块名: ohos.net.socket
类名: TLSSocket
方法名 or 属性名:getSignatureAlgorithms|@ohos.net.socket.d.ts| -|新增||模块名: ohos.net.socket
类名: TLSSocket
方法名 or 属性名:getSignatureAlgorithms|@ohos.net.socket.d.ts| -|新增||模块名: ohos.net.socket
类名: TLSSocket
方法名 or 属性名:connect|@ohos.net.socket.d.ts| -|新增||模块名: ohos.net.socket
类名: TLSSocket
方法名 or 属性名:connect|@ohos.net.socket.d.ts| -|新增||模块名: ohos.net.socket
类名: TLSSocket
方法名 or 属性名:send|@ohos.net.socket.d.ts| -|新增||模块名: ohos.net.socket
类名: TLSSocket
方法名 or 属性名:send|@ohos.net.socket.d.ts| -|新增||模块名: ohos.net.socket
类名: TLSSocket
方法名 or 属性名:close|@ohos.net.socket.d.ts| -|新增||模块名: ohos.net.socket
类名: TLSSocket
方法名 or 属性名:close|@ohos.net.socket.d.ts| -|新增||模块名: ohos.net.socket
类名: TLSSecureOptions|@ohos.net.socket.d.ts| -|新增||模块名: ohos.net.socket
类名: TLSSecureOptions
方法名 or 属性名:ca|@ohos.net.socket.d.ts| -|新增||模块名: ohos.net.socket
类名: TLSSecureOptions
方法名 or 属性名:cert|@ohos.net.socket.d.ts| -|新增||模块名: ohos.net.socket
类名: TLSSecureOptions
方法名 or 属性名:key|@ohos.net.socket.d.ts| -|新增||模块名: ohos.net.socket
类名: TLSSecureOptions
方法名 or 属性名:passwd|@ohos.net.socket.d.ts| -|新增||模块名: ohos.net.socket
类名: TLSSecureOptions
方法名 or 属性名:protocols|@ohos.net.socket.d.ts| -|新增||模块名: ohos.net.socket
类名: TLSSecureOptions
方法名 or 属性名:useRemoteCipherPrefer|@ohos.net.socket.d.ts| -|新增||模块名: ohos.net.socket
类名: TLSSecureOptions
方法名 or 属性名:signatureAlgorithms|@ohos.net.socket.d.ts| -|新增||模块名: ohos.net.socket
类名: TLSSecureOptions
方法名 or 属性名:cipherSuite|@ohos.net.socket.d.ts| -|新增||模块名: ohos.net.socket
类名: TLSConnectOptions|@ohos.net.socket.d.ts| -|新增||模块名: ohos.net.socket
类名: TLSConnectOptions
方法名 or 属性名:address|@ohos.net.socket.d.ts| -|新增||模块名: ohos.net.socket
类名: TLSConnectOptions
方法名 or 属性名:secureOptions|@ohos.net.socket.d.ts| -|新增||模块名: ohos.net.socket
类名: TLSConnectOptions
方法名 or 属性名:ALPNProtocols|@ohos.net.socket.d.ts| -|新增||模块名: ohos.net.socket
类名: Protocol|@ohos.net.socket.d.ts| -|新增||模块名: ohos.net.socket
类名: Protocol
方法名 or 属性名:TLSv12|@ohos.net.socket.d.ts| -|新增||模块名: ohos.net.socket
类名: Protocol
方法名 or 属性名:TLSv13|@ohos.net.socket.d.ts| -|新增||方法名 or 属性名:NDEF_FORMATABLE
函数:const NDEF_FORMATABLE = 7;|@ohos.nfc.tag.d.ts| -|新增||模块名: ohos.nfc.tag
类名: TnfType|@ohos.nfc.tag.d.ts| -|新增||模块名: ohos.nfc.tag
类名: TnfType
方法名 or 属性名:TNF_EMPTY|@ohos.nfc.tag.d.ts| -|新增||模块名: ohos.nfc.tag
类名: TnfType
方法名 or 属性名:TNF_WELL_KNOWN|@ohos.nfc.tag.d.ts| -|新增||模块名: ohos.nfc.tag
类名: TnfType
方法名 or 属性名:TNF_MEDIA|@ohos.nfc.tag.d.ts| -|新增||模块名: ohos.nfc.tag
类名: TnfType
方法名 or 属性名:TNF_ABSOLUTE_URI|@ohos.nfc.tag.d.ts| -|新增||模块名: ohos.nfc.tag
类名: TnfType
方法名 or 属性名:TNF_EXT_APP|@ohos.nfc.tag.d.ts| -|新增||模块名: ohos.nfc.tag
类名: TnfType
方法名 or 属性名:TNF_UNKNOWN|@ohos.nfc.tag.d.ts| -|新增||模块名: ohos.nfc.tag
类名: TnfType
方法名 or 属性名:TNF_UNCHANGED|@ohos.nfc.tag.d.ts| -|新增||模块名: ohos.nfc.tag
类名: NfcForumType|@ohos.nfc.tag.d.ts| -|新增||模块名: ohos.nfc.tag
类名: NfcForumType
方法名 or 属性名:NFC_FORUM_TYPE_1|@ohos.nfc.tag.d.ts| -|新增||模块名: ohos.nfc.tag
类名: NfcForumType
方法名 or 属性名:NFC_FORUM_TYPE_2|@ohos.nfc.tag.d.ts| -|新增||模块名: ohos.nfc.tag
类名: NfcForumType
方法名 or 属性名:NFC_FORUM_TYPE_3|@ohos.nfc.tag.d.ts| -|新增||模块名: ohos.nfc.tag
类名: NfcForumType
方法名 or 属性名:NFC_FORUM_TYPE_4|@ohos.nfc.tag.d.ts| -|新增||模块名: ohos.nfc.tag
类名: NfcForumType
方法名 or 属性名:MIFARE_CLASSIC|@ohos.nfc.tag.d.ts| -|新增||模块名:ohos.nfc.tag
类名:tag
方法名 or 属性名:RTD_TEXT|@ohos.nfc.tag.d.ts| -|新增||模块名:ohos.nfc.tag
类名:tag
方法名 or 属性名:RTD_URI|@ohos.nfc.tag.d.ts| -|新增||模块名: ohos.nfc.tag
类名: MifareClassicType|@ohos.nfc.tag.d.ts| -|新增||模块名: ohos.nfc.tag
类名: MifareClassicType
方法名 or 属性名:TYPE_UNKNOWN|@ohos.nfc.tag.d.ts| -|新增||模块名: ohos.nfc.tag
类名: MifareClassicType
方法名 or 属性名:TYPE_CLASSIC|@ohos.nfc.tag.d.ts| -|新增||模块名: ohos.nfc.tag
类名: MifareClassicType
方法名 or 属性名:TYPE_PLUS|@ohos.nfc.tag.d.ts| -|新增||模块名: ohos.nfc.tag
类名: MifareClassicType
方法名 or 属性名:TYPE_PRO|@ohos.nfc.tag.d.ts| -|新增||模块名: ohos.nfc.tag
类名: MifareClassicSize|@ohos.nfc.tag.d.ts| -|新增||模块名: ohos.nfc.tag
类名: MifareClassicSize
方法名 or 属性名:MC_SIZE_MINI|@ohos.nfc.tag.d.ts| -|新增||模块名: ohos.nfc.tag
类名: MifareClassicSize
方法名 or 属性名:MC_SIZE_1K|@ohos.nfc.tag.d.ts| -|新增||模块名: ohos.nfc.tag
类名: MifareClassicSize
方法名 or 属性名:MC_SIZE_2K|@ohos.nfc.tag.d.ts| -|新增||模块名: ohos.nfc.tag
类名: MifareClassicSize
方法名 or 属性名:MC_SIZE_4K|@ohos.nfc.tag.d.ts| -|新增||模块名: ohos.nfc.tag
类名: MifareUltralightType|@ohos.nfc.tag.d.ts| -|新增||模块名: ohos.nfc.tag
类名: MifareUltralightType
方法名 or 属性名:TYPE_UNKNOWN|@ohos.nfc.tag.d.ts| -|新增||模块名: ohos.nfc.tag
类名: MifareUltralightType
方法名 or 属性名:TYPE_ULTRALIGHT|@ohos.nfc.tag.d.ts| -|新增||模块名: ohos.nfc.tag
类名: MifareUltralightType
方法名 or 属性名:TYPE_ULTRALIGHT_C|@ohos.nfc.tag.d.ts| -|新增||模块名:ohos.nfc.tag
类名:tag
方法名 or 属性名:getIsoDep|@ohos.nfc.tag.d.ts| -|新增||模块名:ohos.nfc.tag
类名:tag
方法名 or 属性名:getNdef|@ohos.nfc.tag.d.ts| -|新增||模块名:ohos.nfc.tag
类名:tag
方法名 or 属性名:getMifareClassic|@ohos.nfc.tag.d.ts| -|新增||模块名:ohos.nfc.tag
类名:tag
方法名 or 属性名:getMifareUltralight|@ohos.nfc.tag.d.ts| -|新增||模块名:ohos.nfc.tag
类名:tag
方法名 or 属性名:getNdefFormatable|@ohos.nfc.tag.d.ts| -|新增||模块名:ohos.nfc.tag
类名:tag
方法名 or 属性名:getTagInfo|@ohos.nfc.tag.d.ts| -|新增||方法名 or 属性名:uid
函数:uid: number[];|@ohos.nfc.tag.d.ts| -|新增||模块名: ohos.nfc.tag
类名: NdefRecord|@ohos.nfc.tag.d.ts| -|新增||模块名: ohos.nfc.tag
类名: NdefRecord
方法名 or 属性名:tnf|@ohos.nfc.tag.d.ts| -|新增||模块名: ohos.nfc.tag
类名: NdefRecord
方法名 or 属性名:rtdType|@ohos.nfc.tag.d.ts| -|新增||模块名: ohos.nfc.tag
类名: NdefRecord
方法名 or 属性名:id|@ohos.nfc.tag.d.ts| -|新增||模块名: ohos.nfc.tag
类名: NdefRecord
方法名 or 属性名:payload|@ohos.nfc.tag.d.ts| -|新增||模块名: ohos.nfc.tag
类名: ndef|@ohos.nfc.tag.d.ts| -|新增||模块名: ohos.nfc.tag
类名: ndef
方法名 or 属性名:makeUriRecord|@ohos.nfc.tag.d.ts| -|新增||模块名: ohos.nfc.tag
类名: ndef
方法名 or 属性名:makeTextRecord|@ohos.nfc.tag.d.ts| -|新增||模块名: ohos.nfc.tag
类名: ndef
方法名 or 属性名:makeMimeRecord|@ohos.nfc.tag.d.ts| -|新增||模块名: ohos.nfc.tag
类名: ndef
方法名 or 属性名:makeExternalRecord|@ohos.nfc.tag.d.ts| -|新增||模块名: ohos.nfc.tag
类名: ndef
方法名 or 属性名:createNdefMessage|@ohos.nfc.tag.d.ts| -|新增||模块名: ohos.nfc.tag
类名: ndef
方法名 or 属性名:createNdefMessage|@ohos.nfc.tag.d.ts| -|新增||模块名: ohos.nfc.tag
类名: ndef
方法名 or 属性名:messageToBytes|@ohos.nfc.tag.d.ts| -|新增||模块名: ohos.rpc
类名: ErrorCode|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: ErrorCode
方法名 or 属性名:CHECK_PARAM_ERROR|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: ErrorCode
方法名 or 属性名:OS_MMAP_ERROR|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: ErrorCode
方法名 or 属性名:OS_IOCTL_ERROR|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: ErrorCode
方法名 or 属性名:WRITE_TO_ASHMEM_ERROR|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: ErrorCode
方法名 or 属性名:READ_FROM_ASHMEM_ERROR|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: ErrorCode
方法名 or 属性名:ONLY_PROXY_OBJECT_PERMITTED_ERROR|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: ErrorCode
方法名 or 属性名:ONLY_REMOTE_OBJECT_PERMITTED_ERROR|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: ErrorCode
方法名 or 属性名:COMMUNICATION_ERROR|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: ErrorCode
方法名 or 属性名:PROXY_OR_REMOTE_OBJECT_INVALID_ERROR|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: ErrorCode
方法名 or 属性名:WRITE_DATA_TO_MESSAGE_SEQUENCE_ERROR|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: ErrorCode
方法名 or 属性名:READ_DATA_FROM_MESSAGE_SEQUENCE_ERROR|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: ErrorCode
方法名 or 属性名:PARCEL_MEMORY_ALLOC_ERROR|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: ErrorCode
方法名 or 属性名:CALL_JS_METHOD_ERROR|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: ErrorCode
方法名 or 属性名:OS_DUP_ERROR|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:create|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:reclaim|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:writeRemoteObject|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readRemoteObject|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:writeInterfaceToken|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readInterfaceToken|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:getSize|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:getCapacity|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:setSize|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:setCapacity|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:getWritableBytes|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:getReadableBytes|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:getReadPosition|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:getWritePosition|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:rewindRead|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:rewindWrite|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:writeNoException|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readException|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:writeByte|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:writeShort|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:writeInt|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:writeLong|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:writeFloat|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:writeDouble|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:writeBoolean|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:writeChar|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:writeString|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:writeParcelable|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:writeByteArray|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:writeShortArray|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:writeIntArray|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:writeLongArray|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:writeFloatArray|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:writeDoubleArray|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:writeBooleanArray|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:writeCharArray|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:writeStringArray|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:writeParcelableArray|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:writeRemoteObjectArray|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readByte|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readShort|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readInt|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readLong|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readFloat|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readDouble|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readBoolean|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readChar|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readString|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readParcelable|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readByteArray|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readByteArray|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readShortArray|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readShortArray|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readIntArray|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readIntArray|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readLongArray|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readLongArray|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readFloatArray|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readFloatArray|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readDoubleArray|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readDoubleArray|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readBooleanArray|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readBooleanArray|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readCharArray|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readCharArray|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readStringArray|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readStringArray|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readParcelableArray|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readRemoteObjectArray|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readRemoteObjectArray|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:closeFileDescriptor|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:dupFileDescriptor|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:containFileDescriptors|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:writeFileDescriptor|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readFileDescriptor|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:writeAshmem|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readAshmem|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:getRawDataCapacity|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:writeRawData|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readRawData|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: Parcelable|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: Parcelable
方法名 or 属性名:marshalling|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: Parcelable
方法名 or 属性名:unmarshalling|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: RequestResult|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: RequestResult
方法名 or 属性名:errCode|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: RequestResult
方法名 or 属性名:code|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: RequestResult
方法名 or 属性名:data|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: RequestResult
方法名 or 属性名:reply|@ohos.rpc.d.ts| -|新增||模块名:ohos.rpc
类名:IRemoteObject
方法名 or 属性名:getLocalInterface|@ohos.rpc.d.ts| -|新增||模块名:ohos.rpc
类名:IRemoteObject
方法名 or 属性名:sendMessageRequest|@ohos.rpc.d.ts| -|新增||模块名:ohos.rpc
类名:IRemoteObject
方法名 or 属性名:sendMessageRequest|@ohos.rpc.d.ts| -|新增||模块名:ohos.rpc
类名:IRemoteObject
方法名 or 属性名:registerDeathRecipient|@ohos.rpc.d.ts| -|新增||模块名:ohos.rpc
类名:IRemoteObject
方法名 or 属性名:unregisterDeathRecipient|@ohos.rpc.d.ts| -|新增||模块名:ohos.rpc
类名:IRemoteObject
方法名 or 属性名:getDescriptor|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageOption
方法名 or 属性名:ructor(async?|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageOption
方法名 or 属性名:isAsync|@ohos.rpc.d.ts| -|新增||模块名: ohos.rpc
类名: MessageOption
方法名 or 属性名:setAsync|@ohos.rpc.d.ts| -|新增||模块名:ohos.rpc
类名:RemoteObject
方法名 or 属性名:getLocalInterface|@ohos.rpc.d.ts| -|新增||模块名:ohos.rpc
类名:RemoteObject
方法名 or 属性名:getDescriptor|@ohos.rpc.d.ts| -|新增||模块名:ohos.rpc
类名:RemoteObject
方法名 or 属性名:onRemoteMessageRequest|@ohos.rpc.d.ts| -|新增||模块名:ohos.rpc
类名:RemoteObject
方法名 or 属性名:sendMessageRequest|@ohos.rpc.d.ts| -|新增||模块名:ohos.rpc
类名:RemoteObject
方法名 or 属性名:sendMessageRequest|@ohos.rpc.d.ts| -|新增||模块名:ohos.rpc
类名:RemoteObject
方法名 or 属性名:modifyLocalInterface|@ohos.rpc.d.ts| -|新增||模块名:ohos.rpc
类名:RemoteProxy
方法名 or 属性名:getLocalInterface|@ohos.rpc.d.ts| -|新增||模块名:ohos.rpc
类名:RemoteProxy
方法名 or 属性名:registerDeathRecipient|@ohos.rpc.d.ts| -|新增||模块名:ohos.rpc
类名:RemoteProxy
方法名 or 属性名:unregisterDeathRecipient|@ohos.rpc.d.ts| -|新增||模块名:ohos.rpc
类名:RemoteProxy
方法名 or 属性名:getDescriptor|@ohos.rpc.d.ts| -|新增||模块名:ohos.rpc
类名:RemoteProxy
方法名 or 属性名:sendMessageRequest|@ohos.rpc.d.ts| -|新增||模块名:ohos.rpc
类名:RemoteProxy
方法名 or 属性名:sendMessageRequest|@ohos.rpc.d.ts| -|新增||模块名:ohos.rpc
类名:IPCSkeleton
方法名 or 属性名:flushCmdBuffer|@ohos.rpc.d.ts| -|新增||模块名:ohos.rpc
类名:IPCSkeleton
方法名 or 属性名:restoreCallingIdentity|@ohos.rpc.d.ts| -|新增||模块名:ohos.rpc
类名:Ashmem
方法名 or 属性名:create|@ohos.rpc.d.ts| -|新增||模块名:ohos.rpc
类名:Ashmem
方法名 or 属性名:create|@ohos.rpc.d.ts| -|新增||模块名:ohos.rpc
类名:Ashmem
方法名 or 属性名:mapTypedAshmem|@ohos.rpc.d.ts| -|新增||模块名:ohos.rpc
类名:Ashmem
方法名 or 属性名:mapReadWriteAshmem|@ohos.rpc.d.ts| -|新增||模块名:ohos.rpc
类名:Ashmem
方法名 or 属性名:mapReadonlyAshmem|@ohos.rpc.d.ts| -|新增||模块名:ohos.rpc
类名:Ashmem
方法名 or 属性名:setProtectionType|@ohos.rpc.d.ts| -|新增||模块名:ohos.rpc
类名:Ashmem
方法名 or 属性名:writeAshmem|@ohos.rpc.d.ts| -|新增||模块名:ohos.rpc
类名:Ashmem
方法名 or 属性名:readAshmem|@ohos.rpc.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: enableWifi|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: disableWifi|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: isWifiActive|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: scan|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: getScanResults|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: getScanResults|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: getScanResultsSync|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: addDeviceConfig|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: addDeviceConfig|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: addCandidateConfig|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: addCandidateConfig|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: removeCandidateConfig|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: removeCandidateConfig|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: getCandidateConfigs|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: connectToCandidateConfig|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: connectToNetwork|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: connectToDevice|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: disconnect|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: getSignalLevel|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: getLinkedInfo|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: getLinkedInfo|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: isConnected|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: getSupportedFeatures|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: isFeatureSupported|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: getDeviceMacAddress|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: getIpInfo|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: getCountryCode|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: reassociate|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: reconnect|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: getDeviceConfigs|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: updateNetwork|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: disableNetwork|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: removeAllNetwork|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: removeDevice|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: enableHotspot|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: disableHotspot|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: isHotspotDualBandSupported|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: isHotspotActive|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: setHotspotConfig|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: getHotspotConfig|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: getStations|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: getP2pLinkedInfo|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: getP2pLinkedInfo|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: getCurrentGroup|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: getCurrentGroup|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: getP2pPeerDevices|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: getP2pPeerDevices|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: getP2pLocalDevice|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: getP2pLocalDevice|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: createGroup|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: removeGroup|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: p2pConnect|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: p2pDisconnect|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: startDiscoverDevices|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: stopDiscoverDevices|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: deletePersistentGroup|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: getP2pGroups|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: getP2pGroups|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: setDeviceName|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: on_wifiStateChange|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: off_wifiStateChange|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: on_wifiConnectionChange|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: off_wifiConnectionChange|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: on_wifiScanStateChange|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: off_wifiScanStateChange|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: on_wifiRssiChange|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: off_wifiRssiChange|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: on_streamChange|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: off_streamChange|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: on_deviceConfigChange|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: off_deviceConfigChange|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: on_hotspotStateChange|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: off_hotspotStateChange|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: on_hotspotStaJoin|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: off_hotspotStaJoin|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: on_hotspotStaLeave|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: off_hotspotStaLeave|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: on_p2pStateChange|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: off_p2pStateChange|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: on_p2pConnectionChange|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: off_p2pConnectionChange|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: on_p2pDeviceChange|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: off_p2pDeviceChange|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: on_p2pPeerDeviceChange|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: off_p2pPeerDeviceChange|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: on_p2pPersistentGroupChange|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: off_p2pPersistentGroupChange|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: on_p2pDiscoveryChange|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: off_p2pDiscoveryChange|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: EapMethod|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: EapMethod
方法名 or 属性名: EAP_NONE|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: EapMethod
方法名 or 属性名: EAP_PEAP|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: EapMethod
方法名 or 属性名: EAP_TLS|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: EapMethod
方法名 or 属性名: EAP_TTLS|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: EapMethod
方法名 or 属性名: EAP_PWD|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: EapMethod
方法名 or 属性名: EAP_SIM|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: EapMethod
方法名 or 属性名: EAP_AKA|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: EapMethod
方法名 or 属性名: EAP_AKA_PRIME|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: EapMethod
方法名 or 属性名: EAP_UNAUTH_TLS|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: Phase2Method|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: Phase2Method
方法名 or 属性名: PHASE2_NONE|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: Phase2Method
方法名 or 属性名: PHASE2_PAP|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: Phase2Method
方法名 or 属性名: PHASE2_MSCHAP|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: Phase2Method
方法名 or 属性名: PHASE2_MSCHAPV2|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: Phase2Method
方法名 or 属性名: PHASE2_GTC|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: Phase2Method
方法名 or 属性名: PHASE2_SIM|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: Phase2Method
方法名 or 属性名: PHASE2_AKA|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: Phase2Method
方法名 or 属性名: PHASE2_AKA_PRIME|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiEapConfig|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiEapConfig
方法名 or 属性名: eapMethod|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiEapConfig
方法名 or 属性名: phase2Method|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiEapConfig
方法名 or 属性名: identity|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiEapConfig
方法名 or 属性名: anonymousIdentity|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiEapConfig
方法名 or 属性名: password|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiEapConfig
方法名 or 属性名: caCertAliases|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiEapConfig
方法名 or 属性名: caPath|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiEapConfig
方法名 or 属性名: clientCertAliases|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiEapConfig
方法名 or 属性名: altSubjectMatch|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiEapConfig
方法名 or 属性名: domainSuffixMatch|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiEapConfig
方法名 or 属性名: realm|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiEapConfig
方法名 or 属性名: plmn|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiEapConfig
方法名 or 属性名: eapSubId|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiDeviceConfig|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiDeviceConfig
方法名 or 属性名: ssid|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiDeviceConfig
方法名 or 属性名: bssid|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiDeviceConfig
方法名 or 属性名: preSharedKey|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiDeviceConfig
方法名 or 属性名: isHiddenSsid|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiDeviceConfig
方法名 or 属性名: securityType|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiDeviceConfig
方法名 or 属性名: creatorUid|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiDeviceConfig
方法名 or 属性名: disableReason|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiDeviceConfig
方法名 or 属性名: netId|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiDeviceConfig
方法名 or 属性名: randomMacType|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiDeviceConfig
方法名 or 属性名: randomMacAddr|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiDeviceConfig
方法名 or 属性名: ipType|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiDeviceConfig
方法名 or 属性名: staticIp|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiDeviceConfig
方法名 or 属性名: eapConfig|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: IpConfig|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: IpConfig
方法名 or 属性名: ipAddress|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: IpConfig
方法名 or 属性名: gateway|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: IpConfig
方法名 or 属性名: prefixLength|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: IpConfig
方法名 or 属性名: dnsServers|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: IpConfig
方法名 or 属性名: domains|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiInfoElem|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiInfoElem
方法名 or 属性名: eid|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiInfoElem
方法名 or 属性名: content|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiChannelWidth|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiChannelWidth
方法名 or 属性名: WIDTH_20MHZ|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiChannelWidth
方法名 or 属性名: WIDTH_40MHZ|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiChannelWidth
方法名 or 属性名: WIDTH_80MHZ|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiChannelWidth
方法名 or 属性名: WIDTH_160MHZ|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiChannelWidth
方法名 or 属性名: WIDTH_80MHZ_PLUS|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiChannelWidth
方法名 or 属性名: WIDTH_INVALID|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiScanInfo|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiScanInfo
方法名 or 属性名: ssid|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiScanInfo
方法名 or 属性名: bssid|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiScanInfo
方法名 or 属性名: capabilities|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiScanInfo
方法名 or 属性名: securityType|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiScanInfo
方法名 or 属性名: rssi|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiScanInfo
方法名 or 属性名: band|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiScanInfo
方法名 or 属性名: frequency|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiScanInfo
方法名 or 属性名: channelWidth|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiScanInfo
方法名 or 属性名: centerFrequency0|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiScanInfo
方法名 or 属性名: centerFrequency1|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiScanInfo
方法名 or 属性名: infoElems|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiScanInfo
方法名 or 属性名: timestamp|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiSecurityType|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiSecurityType
方法名 or 属性名: WIFI_SEC_TYPE_INVALID|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiSecurityType
方法名 or 属性名: WIFI_SEC_TYPE_OPEN|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiSecurityType
方法名 or 属性名: WIFI_SEC_TYPE_WEP|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiSecurityType
方法名 or 属性名: WIFI_SEC_TYPE_PSK|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiSecurityType
方法名 or 属性名: WIFI_SEC_TYPE_SAE|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiSecurityType
方法名 or 属性名: WIFI_SEC_TYPE_EAP|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiSecurityType
方法名 or 属性名: WIFI_SEC_TYPE_EAP_SUITE_B|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiSecurityType
方法名 or 属性名: WIFI_SEC_TYPE_OWE|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiSecurityType
方法名 or 属性名: WIFI_SEC_TYPE_WAPI_CERT|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiSecurityType
方法名 or 属性名: WIFI_SEC_TYPE_WAPI_PSK|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiLinkedInfo|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiLinkedInfo
方法名 or 属性名: ssid|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiLinkedInfo
方法名 or 属性名: bssid|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiLinkedInfo
方法名 or 属性名: networkId|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiLinkedInfo
方法名 or 属性名: rssi|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiLinkedInfo
方法名 or 属性名: band|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiLinkedInfo
方法名 or 属性名: linkSpeed|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiLinkedInfo
方法名 or 属性名: frequency|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiLinkedInfo
方法名 or 属性名: isHidden|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiLinkedInfo
方法名 or 属性名: isRestricted|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiLinkedInfo
方法名 or 属性名: chload|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiLinkedInfo
方法名 or 属性名: snr|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiLinkedInfo
方法名 or 属性名: macType|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiLinkedInfo
方法名 or 属性名: macAddress|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiLinkedInfo
方法名 or 属性名: ipAddress|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiLinkedInfo
方法名 or 属性名: suppState|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiLinkedInfo
方法名 or 属性名: connState|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: IpInfo|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: IpInfo
方法名 or 属性名: ipAddress|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: IpInfo
方法名 or 属性名: gateway|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: IpInfo
方法名 or 属性名: netmask|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: IpInfo
方法名 or 属性名: primaryDns|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: IpInfo
方法名 or 属性名: secondDns|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: IpInfo
方法名 or 属性名: serverIp|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: IpInfo
方法名 or 属性名: leaseDuration|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: HotspotConfig|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: HotspotConfig
方法名 or 属性名: ssid|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: HotspotConfig
方法名 or 属性名: securityType|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: HotspotConfig
方法名 or 属性名: band|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: HotspotConfig
方法名 or 属性名: preSharedKey|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: HotspotConfig
方法名 or 属性名: maxConn|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: StationInfo|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: StationInfo
方法名 or 属性名: name|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: StationInfo
方法名 or 属性名: macAddress|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: StationInfo
方法名 or 属性名: ipAddress|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: IpType|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: IpType
方法名 or 属性名: STATIC|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: IpType
方法名 or 属性名: DHCP|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: IpType
方法名 or 属性名: UNKNOWN|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: SuppState|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: SuppState
方法名 or 属性名: DISCONNECTED|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: SuppState
方法名 or 属性名: INTERFACE_DISABLED|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: SuppState
方法名 or 属性名: INACTIVE|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: SuppState
方法名 or 属性名: SCANNING|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: SuppState
方法名 or 属性名: AUTHENTICATING|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: SuppState
方法名 or 属性名: ASSOCIATING|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: SuppState
方法名 or 属性名: ASSOCIATED|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: SuppState
方法名 or 属性名: FOUR_WAY_HANDSHAKE|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: SuppState
方法名 or 属性名: GROUP_HANDSHAKE|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: SuppState
方法名 or 属性名: COMPLETED|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: SuppState
方法名 or 属性名: UNINITIALIZED|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: SuppState
方法名 or 属性名: INVALID|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: ConnState|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: ConnState
方法名 or 属性名: SCANNING|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: ConnState
方法名 or 属性名: CONNECTING|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: ConnState
方法名 or 属性名: AUTHENTICATING|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: ConnState
方法名 or 属性名: OBTAINING_IPADDR|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: ConnState
方法名 or 属性名: CONNECTED|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: ConnState
方法名 or 属性名: DISCONNECTING|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: ConnState
方法名 or 属性名: DISCONNECTED|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: ConnState
方法名 or 属性名: UNKNOWN|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiP2pDevice|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiP2pDevice
方法名 or 属性名: deviceName|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiP2pDevice
方法名 or 属性名: deviceAddress|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiP2pDevice
方法名 or 属性名: primaryDeviceType|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiP2pDevice
方法名 or 属性名: deviceStatus|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiP2pDevice
方法名 or 属性名: groupCapabilities|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiP2PConfig|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiP2PConfig
方法名 or 属性名: deviceAddress|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiP2PConfig
方法名 or 属性名: netId|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiP2PConfig
方法名 or 属性名: passphrase|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiP2PConfig
方法名 or 属性名: groupName|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiP2PConfig
方法名 or 属性名: goBand|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiP2pGroupInfo|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiP2pGroupInfo
方法名 or 属性名: isP2pGo|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiP2pGroupInfo
方法名 or 属性名: ownerInfo|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiP2pGroupInfo
方法名 or 属性名: passphrase|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiP2pGroupInfo
方法名 or 属性名: interface|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiP2pGroupInfo
方法名 or 属性名: groupName|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiP2pGroupInfo
方法名 or 属性名: networkId|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiP2pGroupInfo
方法名 or 属性名: frequency|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiP2pGroupInfo
方法名 or 属性名: clientDevices|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiP2pGroupInfo
方法名 or 属性名: goIpAddress|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: P2pConnectState|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: P2pConnectState
方法名 or 属性名: DISCONNECTED|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: P2pConnectState
方法名 or 属性名: CONNECTED|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiP2pLinkedInfo|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiP2pLinkedInfo
方法名 or 属性名: connectState|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiP2pLinkedInfo
方法名 or 属性名: isGroupOwner|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: WifiP2pLinkedInfo
方法名 or 属性名: groupOwnerAddr|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: P2pDeviceStatus|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: P2pDeviceStatus
方法名 or 属性名: CONNECTED|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: P2pDeviceStatus
方法名 or 属性名: INVITED|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: P2pDeviceStatus
方法名 or 属性名: FAILED|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: P2pDeviceStatus
方法名 or 属性名: AVAILABLE|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: P2pDeviceStatus
方法名 or 属性名: UNAVAILABLE|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: GroupOwnerBand|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: GroupOwnerBand
方法名 or 属性名: GO_BAND_AUTO|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: GroupOwnerBand
方法名 or 属性名: GO_BAND_2GHZ|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManager
类名: GroupOwnerBand
方法名 or 属性名: GO_BAND_5GHZ|@ohos.wifiManager.d.ts| -|新增||模块名: ohos.wifiManagerExt
类名: wifiManagerExt|@ohos.wifiManagerExt.d.ts| -|新增||模块名: ohos.wifiManagerExt
类名: wifiManagerExt
方法名 or 属性名: enableHotspot|@ohos.wifiManagerExt.d.ts| -|新增||模块名: ohos.wifiManagerExt
类名: wifiManagerExt
方法名 or 属性名: disableHotspot|@ohos.wifiManagerExt.d.ts| -|新增||模块名: ohos.wifiManagerExt
类名: wifiManagerExt
方法名 or 属性名: getSupportedPowerMode|@ohos.wifiManagerExt.d.ts| -|新增||模块名: ohos.wifiManagerExt
类名: wifiManagerExt
方法名 or 属性名: getSupportedPowerMode|@ohos.wifiManagerExt.d.ts| -|新增||模块名: ohos.wifiManagerExt
类名: wifiManagerExt
方法名 or 属性名: getPowerMode|@ohos.wifiManagerExt.d.ts| -|新增||模块名: ohos.wifiManagerExt
类名: wifiManagerExt
方法名 or 属性名: getPowerMode|@ohos.wifiManagerExt.d.ts| -|新增||模块名: ohos.wifiManagerExt
类名: wifiManagerExt
方法名 or 属性名: setPowerMode|@ohos.wifiManagerExt.d.ts| -|新增||模块名: ohos.wifiManagerExt
类名: PowerMode|@ohos.wifiManagerExt.d.ts| -|新增||模块名: ohos.wifiManagerExt
类名: PowerMode
方法名 or 属性名: SLEEPING|@ohos.wifiManagerExt.d.ts| -|新增||模块名: ohos.wifiManagerExt
类名: PowerMode
方法名 or 属性名: GENERAL|@ohos.wifiManagerExt.d.ts| -|新增||模块名: ohos.wifiManagerExt
类名: PowerMode
方法名 or 属性名: THROUGH_WALL|@ohos.wifiManagerExt.d.ts| -|新增||方法名 or 属性名:getHistoricalBytes
函数:getHistoricalBytes(): number[];|nfctech.d.ts| -|新增||方法名 or 属性名:getHiLayerResponse
函数:getHiLayerResponse(): number[];|nfctech.d.ts| -|新增||方法名 or 属性名:getNdefRecords
函数:getNdefRecords(): tag.NdefRecord[];|nfctech.d.ts| -|新增||方法名 or 属性名:getNdefTagType
函数:getNdefTagType(): tag.NfcForumType;|nfctech.d.ts| -|新增||方法名 or 属性名:isNdefWritable
函数:isNdefWritable(): boolean;|nfctech.d.ts| -|新增||方法名 or 属性名:writeNdef
函数:writeNdef(msg: NdefMessage): Promise;|nfctech.d.ts| -|新增||方法名 or 属性名:writeNdef
函数:writeNdef(msg: NdefMessage, callback: AsyncCallback): void;|nfctech.d.ts| -|新增||方法名 or 属性名:canSetReadOnly
函数:canSetReadOnly(): boolean;|nfctech.d.ts| -|新增||方法名 or 属性名:setReadOnly
函数:setReadOnly(): Promise;|nfctech.d.ts| -|新增||方法名 or 属性名:setReadOnly
函数:setReadOnly(callback: AsyncCallback): void;|nfctech.d.ts| -|新增||方法名 or 属性名:getNdefTagTypeString
函数:getNdefTagTypeString(type: tag.NfcForumType): string;|nfctech.d.ts| -|新增||方法名 or 属性名:authenticateSector
函数:authenticateSector(sectorIndex: number, key: number[], isKeyA: boolean): Promise;|nfctech.d.ts| -|新增||方法名 or 属性名:authenticateSector
函数:authenticateSector(sectorIndex: number, key: number[], isKeyA: boolean, callback: AsyncCallback): void;|nfctech.d.ts| -|新增||方法名 or 属性名:readSingleBlock
函数:readSingleBlock(blockIndex: number): Promise;|nfctech.d.ts| -|新增||方法名 or 属性名:readSingleBlock
函数:readSingleBlock(blockIndex: number, callback: AsyncCallback): void;|nfctech.d.ts| -|新增||方法名 or 属性名:writeSingleBlock
函数:writeSingleBlock(blockIndex: number, data: number[]): Promise;|nfctech.d.ts| -|新增||方法名 or 属性名:writeSingleBlock
函数:writeSingleBlock(blockIndex: number, data: number[], callback: AsyncCallback): void;|nfctech.d.ts| -|新增||方法名 or 属性名:incrementBlock
函数:incrementBlock(blockIndex: number, value: number): Promise;|nfctech.d.ts| -|新增||方法名 or 属性名:incrementBlock
函数:incrementBlock(blockIndex: number, value: number, callback: AsyncCallback): void;|nfctech.d.ts| -|新增||方法名 or 属性名:decrementBlock
函数:decrementBlock(blockIndex: number, value: number): Promise;|nfctech.d.ts| -|新增||方法名 or 属性名:decrementBlock
函数:decrementBlock(blockIndex: number, value: number, callback: AsyncCallback): void;|nfctech.d.ts| -|新增||方法名 or 属性名:transferToBlock
函数:transferToBlock(blockIndex: number): Promise;|nfctech.d.ts| -|新增||方法名 or 属性名:transferToBlock
函数:transferToBlock(blockIndex: number, callback: AsyncCallback): void;|nfctech.d.ts| -|新增||方法名 or 属性名:restoreFromBlock
函数:restoreFromBlock(blockIndex: number): Promise;|nfctech.d.ts| -|新增||方法名 or 属性名:restoreFromBlock
函数:restoreFromBlock(blockIndex: number, callback: AsyncCallback): void;|nfctech.d.ts| -|新增||方法名 or 属性名:getType
函数:getType(): tag.MifareClassicType;|nfctech.d.ts| -|新增||方法名 or 属性名:readMultiplePages
函数:readMultiplePages(pageIndex: number): Promise;|nfctech.d.ts| -|新增||方法名 or 属性名:readMultiplePages
函数:readMultiplePages(pageIndex: number, callback: AsyncCallback): void;|nfctech.d.ts| -|新增||模块名:nfctech
类名:MifareUltralightTag
方法名 or 属性名:writeSinglePage|nfctech.d.ts| -|新增||模块名:nfctech
类名:MifareUltralightTag
方法名 or 属性名:writeSinglePage|nfctech.d.ts| -|新增||方法名 or 属性名:getType
函数:getType(): tag.MifareUltralightType;|nfctech.d.ts| -|新增||方法名 or 属性名:format
函数:format(message: NdefMessage): Promise;|nfctech.d.ts| -|新增||方法名 or 属性名:format
函数:format(message: NdefMessage, callback: AsyncCallback): void;|nfctech.d.ts| -|新增||方法名 or 属性名:formatReadOnly
函数:formatReadOnly(message: NdefMessage): Promise;|nfctech.d.ts| -|新增||方法名 or 属性名:formatReadOnly
函数:formatReadOnly(message: NdefMessage, callback: AsyncCallback): void;|nfctech.d.ts| -|删除|模块名:ohos.nfc.tag
类名:tag
方法名 or 属性名:getIsoDepTag||@ohos.nfc.tag.d.ts| -|删除|模块名:ohos.nfc.tag
类名:tag
方法名 or 属性名:getNdefTag||@ohos.nfc.tag.d.ts| -|删除|模块名:ohos.nfc.tag
类名:tag
方法名 or 属性名:getMifareClassicTag||@ohos.nfc.tag.d.ts| -|删除|模块名:ohos.nfc.tag
类名:tag
方法名 or 属性名:getMifareUltralightTag||@ohos.nfc.tag.d.ts| -|删除|模块名:ohos.nfc.tag
类名:tag
方法名 or 属性名:getNdefFormatableTag||@ohos.nfc.tag.d.ts| -|删除|模块名:ohos.rpc
类名:IRemoteObject
方法名 or 属性名:sendRequestAsync||@ohos.rpc.d.ts| -|删除|模块名:ohos.rpc
类名:RemoteObject
方法名 or 属性名:onRemoteRequestEx||@ohos.rpc.d.ts| -|删除|模块名:ohos.rpc
类名:RemoteObject
方法名 or 属性名:sendRequestAsync||@ohos.rpc.d.ts| -|删除|模块名:ohos.rpc
类名:RemoteProxy
方法名 or 属性名:sendRequestAsync||@ohos.rpc.d.ts| -|删除|模块名:ohos.wifi
类名:wifi
方法名 or 属性名:getScanInfosSync||@ohos.wifi.d.ts| -|删除|模块名:ohos.wifi
类名:wifi
方法名 or 属性名:addCandidateConfig||@ohos.wifi.d.ts| -|删除|模块名:ohos.wifi
类名:wifi
方法名 or 属性名:addCandidateConfig||@ohos.wifi.d.ts| -|删除|模块名:ohos.wifi
类名:wifi
方法名 or 属性名:removeCandidateConfig||@ohos.wifi.d.ts| -|删除|模块名:ohos.wifi
类名:wifi
方法名 or 属性名:removeCandidateConfig||@ohos.wifi.d.ts| -|删除|模块名:ohos.wifi
类名:wifi
方法名 or 属性名:getCandidateConfigs||@ohos.wifi.d.ts| -|删除|模块名:ohos.wifi
类名:wifi
方法名 or 属性名:connectToCandidateConfig||@ohos.wifi.d.ts| -|删除|模块名:ohos.wifi
类名:wifi
方法名 or 属性名:getP2pLocalDevice||@ohos.wifi.d.ts| -|删除|模块名:ohos.wifi
类名:wifi
方法名 or 属性名:getP2pLocalDevice||@ohos.wifi.d.ts| -|删除|模块名:ohos.wifi
类名:wifi
方法名 or 属性名:getP2pGroups||@ohos.wifi.d.ts| -|删除|模块名:ohos.wifi
类名:wifi
方法名 or 属性名:getP2pGroups||@ohos.wifi.d.ts| -|删除|模块名:ohos.wifi
类名:wifi
方法名 or 属性名:on_deviceConfigChange||@ohos.wifi.d.ts| -|删除|模块名:ohos.wifi
类名:wifi
方法名 or 属性名:off_deviceConfigChange||@ohos.wifi.d.ts| -|删除|模块名: ohos.wifi
类名: EapMethod||@ohos.wifi.d.ts| -|删除|模块名: ohos.wifi
类名: EapMethod
方法名 or 属性名:EAP_NONE||@ohos.wifi.d.ts| -|删除|模块名: ohos.wifi
类名: EapMethod
方法名 or 属性名:EAP_PEAP||@ohos.wifi.d.ts| -|删除|模块名: ohos.wifi
类名: EapMethod
方法名 or 属性名:EAP_TLS||@ohos.wifi.d.ts| -|删除|模块名: ohos.wifi
类名: EapMethod
方法名 or 属性名:EAP_TTLS||@ohos.wifi.d.ts| -|删除|模块名: ohos.wifi
类名: EapMethod
方法名 or 属性名:EAP_PWD||@ohos.wifi.d.ts| -|删除|模块名: ohos.wifi
类名: EapMethod
方法名 or 属性名:EAP_SIM||@ohos.wifi.d.ts| -|删除|模块名: ohos.wifi
类名: EapMethod
方法名 or 属性名:EAP_AKA||@ohos.wifi.d.ts| -|删除|模块名: ohos.wifi
类名: EapMethod
方法名 or 属性名:EAP_AKA_PRIME||@ohos.wifi.d.ts| -|删除|模块名: ohos.wifi
类名: EapMethod
方法名 or 属性名:EAP_UNAUTH_TLS||@ohos.wifi.d.ts| -|删除|模块名: ohos.wifi
类名: Phase2Method||@ohos.wifi.d.ts| -|删除|模块名: ohos.wifi
类名: Phase2Method
方法名 or 属性名:PHASE2_NONE||@ohos.wifi.d.ts| -|删除|模块名: ohos.wifi
类名: Phase2Method
方法名 or 属性名:PHASE2_PAP||@ohos.wifi.d.ts| -|删除|模块名: ohos.wifi
类名: Phase2Method
方法名 or 属性名:PHASE2_MSCHAP||@ohos.wifi.d.ts| -|删除|模块名: ohos.wifi
类名: Phase2Method
方法名 or 属性名:PHASE2_MSCHAPV2||@ohos.wifi.d.ts| -|删除|模块名: ohos.wifi
类名: Phase2Method
方法名 or 属性名:PHASE2_GTC||@ohos.wifi.d.ts| -|删除|模块名: ohos.wifi
类名: Phase2Method
方法名 or 属性名:PHASE2_SIM||@ohos.wifi.d.ts| -|删除|模块名: ohos.wifi
类名: Phase2Method
方法名 or 属性名:PHASE2_AKA||@ohos.wifi.d.ts| -|删除|模块名: ohos.wifi
类名: Phase2Method
方法名 or 属性名:PHASE2_AKA_PRIME||@ohos.wifi.d.ts| -|删除|模块名: ohos.wifi
类名: WifiEapConfig||@ohos.wifi.d.ts| -|删除|模块名: ohos.wifi
类名: WifiEapConfig
方法名 or 属性名:eapMethod||@ohos.wifi.d.ts| -|删除|模块名: ohos.wifi
类名: WifiEapConfig
方法名 or 属性名:phase2Method||@ohos.wifi.d.ts| -|删除|模块名: ohos.wifi
类名: WifiEapConfig
方法名 or 属性名:identity||@ohos.wifi.d.ts| -|删除|模块名: ohos.wifi
类名: WifiEapConfig
方法名 or 属性名:anonymousIdentity||@ohos.wifi.d.ts| -|删除|模块名: ohos.wifi
类名: WifiEapConfig
方法名 or 属性名:password||@ohos.wifi.d.ts| -|删除|模块名: ohos.wifi
类名: WifiEapConfig
方法名 or 属性名:caCertAliases||@ohos.wifi.d.ts| -|删除|模块名: ohos.wifi
类名: WifiEapConfig
方法名 or 属性名:caPath||@ohos.wifi.d.ts| -|删除|模块名: ohos.wifi
类名: WifiEapConfig
方法名 or 属性名:clientCertAliases||@ohos.wifi.d.ts| -|删除|模块名: ohos.wifi
类名: WifiEapConfig
方法名 or 属性名:altSubjectMatch||@ohos.wifi.d.ts| -|删除|模块名: ohos.wifi
类名: WifiEapConfig
方法名 or 属性名:domainSuffixMatch||@ohos.wifi.d.ts| -|删除|模块名: ohos.wifi
类名: WifiEapConfig
方法名 or 属性名:realm||@ohos.wifi.d.ts| -|删除|模块名: ohos.wifi
类名: WifiEapConfig
方法名 or 属性名:plmn||@ohos.wifi.d.ts| -|删除|模块名: ohos.wifi
类名: WifiEapConfig
方法名 or 属性名:eapSubId||@ohos.wifi.d.ts| -|删除|模块名:ohos.wifi
类名:WifiDeviceConfig
方法名 or 属性名:eapConfig||@ohos.wifi.d.ts| -|删除|模块名: ohos.wifi
类名: WifiInfoElem||@ohos.wifi.d.ts| -|删除|模块名: ohos.wifi
类名: WifiInfoElem
方法名 or 属性名:eid||@ohos.wifi.d.ts| -|删除|模块名: ohos.wifi
类名: WifiInfoElem
方法名 or 属性名:content||@ohos.wifi.d.ts| -|删除|模块名: ohos.wifi
类名: WifiChannelWidth||@ohos.wifi.d.ts| -|删除|模块名: ohos.wifi
类名: WifiChannelWidth
方法名 or 属性名:WIDTH_20MHZ||@ohos.wifi.d.ts| -|删除|模块名: ohos.wifi
类名: WifiChannelWidth
方法名 or 属性名:WIDTH_40MHZ||@ohos.wifi.d.ts| -|删除|模块名: ohos.wifi
类名: WifiChannelWidth
方法名 or 属性名:WIDTH_80MHZ||@ohos.wifi.d.ts| -|删除|模块名: ohos.wifi
类名: WifiChannelWidth
方法名 or 属性名:WIDTH_160MHZ||@ohos.wifi.d.ts| -|删除|模块名: ohos.wifi
类名: WifiChannelWidth
方法名 or 属性名:WIDTH_80MHZ_PLUS||@ohos.wifi.d.ts| -|删除|模块名: ohos.wifi
类名: WifiChannelWidth
方法名 or 属性名:WIDTH_INVALID||@ohos.wifi.d.ts| -|删除|模块名:ohos.wifi
类名:WifiScanInfo
方法名 or 属性名:centerFrequency0||@ohos.wifi.d.ts| -|删除|模块名:ohos.wifi
类名:WifiScanInfo
方法名 or 属性名:centerFrequency1||@ohos.wifi.d.ts| -|删除|模块名:ohos.wifi
类名:WifiScanInfo
方法名 or 属性名:infoElems||@ohos.wifi.d.ts| -|删除|模块名:ohos.wifi
类名:WifiSecurityType
方法名 or 属性名:WIFI_SEC_TYPE_EAP||@ohos.wifi.d.ts| -|删除|模块名:ohos.wifi
类名:WifiSecurityType
方法名 or 属性名:WIFI_SEC_TYPE_EAP_SUITE_B||@ohos.wifi.d.ts| -|删除|模块名:ohos.wifi
类名:WifiSecurityType
方法名 or 属性名:WIFI_SEC_TYPE_OWE||@ohos.wifi.d.ts| -|删除|模块名:ohos.wifi
类名:WifiSecurityType
方法名 or 属性名:WIFI_SEC_TYPE_WAPI_CERT||@ohos.wifi.d.ts| -|删除|模块名:ohos.wifi
类名:WifiSecurityType
方法名 or 属性名:WIFI_SEC_TYPE_WAPI_PSK||@ohos.wifi.d.ts| -|删除|模块名:ohos.wifi
类名:WifiLinkedInfo
方法名 or 属性名:macType||@ohos.wifi.d.ts| -|删除|模块名: nfctech
类名: NdefRecord||nfctech.d.ts| -|删除|模块名: nfctech
类名: NdefRecord
方法名 or 属性名:tnf||nfctech.d.ts| -|删除|模块名: nfctech
类名: NdefRecord
方法名 or 属性名:rtdType||nfctech.d.ts| -|删除|模块名: nfctech
类名: NdefRecord
方法名 or 属性名:id||nfctech.d.ts| -|删除|模块名: nfctech
类名: NdefRecord
方法名 or 属性名:payload||nfctech.d.ts| -|删除|模块名: nfctech
类名: TnfType||nfctech.d.ts| -|删除|模块名: nfctech
类名: TnfType
方法名 or 属性名:TNF_EMPTY||nfctech.d.ts| -|删除|模块名: nfctech
类名: TnfType
方法名 or 属性名:TNF_WELL_KNOWN||nfctech.d.ts| -|删除|模块名: nfctech
类名: TnfType
方法名 or 属性名:TNF_MEDIA||nfctech.d.ts| -|删除|模块名: nfctech
类名: TnfType
方法名 or 属性名:TNF_ABSOLUTE_URI||nfctech.d.ts| -|删除|模块名: nfctech
类名: TnfType
方法名 or 属性名:TNF_EXT_APP||nfctech.d.ts| -|删除|模块名: nfctech
类名: TnfType
方法名 or 属性名:TNF_UNKNOWN||nfctech.d.ts| -|删除|模块名: nfctech
类名: TnfType
方法名 or 属性名:TNF_UNCHANGED||nfctech.d.ts| -|删除|模块名: nfctech
类名: RtdType||nfctech.d.ts| -|删除|模块名: nfctech
类名: RtdType
方法名 or 属性名:RTD_TEXT||nfctech.d.ts| -|删除|模块名: nfctech
类名: RtdType
方法名 or 属性名:RTD_URI||nfctech.d.ts| -|删除|模块名:nfctech
类名:NdefMessage
方法名 or 属性名:makeUriRecord||nfctech.d.ts| -|删除|模块名:nfctech
类名:NdefMessage
方法名 or 属性名:makeTextRecord||nfctech.d.ts| -|删除|模块名:nfctech
类名:NdefMessage
方法名 or 属性名:makeMimeRecord||nfctech.d.ts| -|删除|模块名:nfctech
类名:NdefMessage
方法名 or 属性名:makeExternalRecord||nfctech.d.ts| -|删除|模块名:nfctech
类名:NdefMessage
方法名 or 属性名:messageToString||nfctech.d.ts| -|删除|模块名: nfctech
类名: NfcForumType||nfctech.d.ts| -|删除|模块名: nfctech
类名: NfcForumType
方法名 or 属性名:NFC_FORUM_TYPE_1||nfctech.d.ts| -|删除|模块名: nfctech
类名: NfcForumType
方法名 or 属性名:NFC_FORUM_TYPE_2||nfctech.d.ts| -|删除|模块名: nfctech
类名: NfcForumType
方法名 or 属性名:NFC_FORUM_TYPE_3||nfctech.d.ts| -|删除|模块名: nfctech
类名: NfcForumType
方法名 or 属性名:NFC_FORUM_TYPE_4||nfctech.d.ts| -|删除|模块名: nfctech
类名: NfcForumType
方法名 or 属性名:MIFARE_CLASSIC||nfctech.d.ts| -|删除|模块名:nfctech
类名:NdefTag
方法名 or 属性名:createNdefMessage||nfctech.d.ts| -|删除|模块名:nfctech
类名:NdefTag
方法名 or 属性名:createNdefMessage||nfctech.d.ts| -|删除|模块名: nfctech
类名: MifareClassicType||nfctech.d.ts| -|删除|模块名: nfctech
类名: MifareClassicType
方法名 or 属性名:TYPE_UNKNOWN||nfctech.d.ts| -|删除|模块名: nfctech
类名: MifareClassicType
方法名 or 属性名:TYPE_CLASSIC||nfctech.d.ts| -|删除|模块名: nfctech
类名: MifareClassicType
方法名 or 属性名:TYPE_PLUS||nfctech.d.ts| -|删除|模块名: nfctech
类名: MifareClassicType
方法名 or 属性名:TYPE_PRO||nfctech.d.ts| -|删除|模块名: nfctech
类名: MifareTagSize||nfctech.d.ts| -|删除|模块名: nfctech
类名: MifareTagSize
方法名 or 属性名:MC_SIZE_MINI||nfctech.d.ts| -|删除|模块名: nfctech
类名: MifareTagSize
方法名 or 属性名:MC_SIZE_1K||nfctech.d.ts| -|删除|模块名: nfctech
类名: MifareTagSize
方法名 or 属性名:MC_SIZE_2K||nfctech.d.ts| -|删除|模块名: nfctech
类名: MifareTagSize
方法名 or 属性名:MC_SIZE_4K||nfctech.d.ts| -|删除|模块名: nfctech
类名: MifareUltralightType||nfctech.d.ts| -|删除|模块名: nfctech
类名: MifareUltralightType
方法名 or 属性名:TYPE_UNKOWN||nfctech.d.ts| -|删除|模块名: nfctech
类名: MifareUltralightType
方法名 or 属性名:TYPE_ULTRALIGHT||nfctech.d.ts| -|删除|模块名: nfctech
类名: MifareUltralightType
方法名 or 属性名:TYPE_ULTRALIGHT_C||nfctech.d.ts| -|删除|模块名:nfctech
类名:MifareUltralightTag
方法名 or 属性名:writeSinglePages||nfctech.d.ts| -|删除|模块名:nfctech
类名:MifareUltralightTag
方法名 or 属性名:writeSinglePages||nfctech.d.ts| +|新增|NA|模块名: ohos.net.connection
类名: connection
方法名 or 属性名: isDefaultNetMetered|@ohos.net.connection.d.ts| +|新增|NA|模块名: ohos.net.connection
类名: connection
方法名 or 属性名: isDefaultNetMetered|@ohos.net.connection.d.ts| +|新增|NA|模块名: ohos.net.connection
类名: NetHandle
方法名 or 属性名: bindSocket|@ohos.net.connection.d.ts| +|新增|NA|模块名: ohos.net.connection
类名: NetHandle
方法名 or 属性名: bindSocket|@ohos.net.connection.d.ts| +|新增|NA|模块名: ohos.net.ethernet
类名: ethernet|@ohos.net.ethernet.d.ts| +|新增|NA|模块名: ohos.net.ethernet
类名: ethernet
方法名 or 属性名: getIfaceConfig|@ohos.net.ethernet.d.ts| +|新增|NA|模块名: ohos.net.ethernet
类名: ethernet
方法名 or 属性名: getIfaceConfig|@ohos.net.ethernet.d.ts| +|新增|NA|模块名: ohos.net.ethernet
类名: ethernet
方法名 or 属性名: setIfaceConfig|@ohos.net.ethernet.d.ts| +|新增|NA|模块名: ohos.net.ethernet
类名: ethernet
方法名 or 属性名: setIfaceConfig|@ohos.net.ethernet.d.ts| +|新增|NA|模块名: ohos.net.ethernet
类名: ethernet
方法名 or 属性名: isIfaceActive|@ohos.net.ethernet.d.ts| +|新增|NA|模块名: ohos.net.ethernet
类名: ethernet
方法名 or 属性名: isIfaceActive|@ohos.net.ethernet.d.ts| +|新增|NA|模块名: ohos.net.ethernet
类名: ethernet
方法名 or 属性名: getAllActiveIfaces|@ohos.net.ethernet.d.ts| +|新增|NA|模块名: ohos.net.ethernet
类名: ethernet
方法名 or 属性名: getAllActiveIfaces|@ohos.net.ethernet.d.ts| +|新增|NA|模块名: ohos.net.ethernet
类名: InterfaceConfiguration|@ohos.net.ethernet.d.ts| +|新增|NA|模块名: ohos.net.ethernet
类名: InterfaceConfiguration
方法名 or 属性名: mode|@ohos.net.ethernet.d.ts| +|新增|NA|模块名: ohos.net.ethernet
类名: InterfaceConfiguration
方法名 or 属性名: ipAddr|@ohos.net.ethernet.d.ts| +|新增|NA|模块名: ohos.net.ethernet
类名: InterfaceConfiguration
方法名 or 属性名: route|@ohos.net.ethernet.d.ts| +|新增|NA|模块名: ohos.net.ethernet
类名: InterfaceConfiguration
方法名 or 属性名: gateway|@ohos.net.ethernet.d.ts| +|新增|NA|模块名: ohos.net.ethernet
类名: InterfaceConfiguration
方法名 or 属性名: netMask|@ohos.net.ethernet.d.ts| +|新增|NA|模块名: ohos.net.ethernet
类名: InterfaceConfiguration
方法名 or 属性名: dnsServers|@ohos.net.ethernet.d.ts| +|新增|NA|模块名: ohos.net.ethernet
类名: IPSetMode|@ohos.net.ethernet.d.ts| +|新增|NA|模块名: ohos.net.ethernet
类名: IPSetMode
方法名 or 属性名: STATIC|@ohos.net.ethernet.d.ts| +|新增|NA|模块名: ohos.net.ethernet
类名: IPSetMode
方法名 or 属性名: DHCP|@ohos.net.ethernet.d.ts| +|新增|NA|模块名: ohos.net.http
类名: HttpRequestOptions
方法名 or 属性名: expectDataType|@ohos.net.http.d.ts| +|新增|NA|模块名: ohos.net.http
类名: HttpRequestOptions
方法名 or 属性名: usingCache|@ohos.net.http.d.ts| +|新增|NA|模块名: ohos.net.http
类名: HttpRequestOptions
方法名 or 属性名: priority|@ohos.net.http.d.ts| +|新增|NA|模块名: ohos.net.http
类名: HttpRequestOptions
方法名 or 属性名: usingProtocol|@ohos.net.http.d.ts| +|新增|NA|模块名: ohos.net.http
类名: HttpProtocol|@ohos.net.http.d.ts| +|新增|NA|模块名: ohos.net.http
类名: HttpProtocol
方法名 or 属性名: HTTP1_1|@ohos.net.http.d.ts| +|新增|NA|模块名: ohos.net.http
类名: HttpProtocol
方法名 or 属性名: HTTP2|@ohos.net.http.d.ts| +|新增|NA|模块名: ohos.net.http
类名: HttpDataType|@ohos.net.http.d.ts| +|新增|NA|模块名: ohos.net.http
类名: HttpDataType
方法名 or 属性名: STRING|@ohos.net.http.d.ts| +|新增|NA|模块名: ohos.net.http
类名: HttpDataType
方法名 or 属性名: OBJECT|@ohos.net.http.d.ts| +|新增|NA|模块名: ohos.net.http
类名: HttpDataType
方法名 or 属性名: ARRAY_BUFFER|@ohos.net.http.d.ts| +|新增|NA|模块名: ohos.net.http
类名: HttpResponse
方法名 or 属性名: resultType|@ohos.net.http.d.ts| +|新增|NA|模块名: ohos.net.http
类名: http
方法名 or 属性名: createHttpResponseCache|@ohos.net.http.d.ts| +|新增|NA|模块名: ohos.net.http
类名: HttpResponseCache|@ohos.net.http.d.ts| +|新增|NA|模块名: ohos.net.http
类名: HttpResponseCache
方法名 or 属性名: flush|@ohos.net.http.d.ts| +|新增|NA|模块名: ohos.net.http
类名: HttpResponseCache
方法名 or 属性名: flush|@ohos.net.http.d.ts| +|新增|NA|模块名: ohos.net.http
类名: HttpResponseCache
方法名 or 属性名: delete|@ohos.net.http.d.ts| +|新增|NA|模块名: ohos.net.http
类名: HttpResponseCache
方法名 or 属性名: delete|@ohos.net.http.d.ts| +|新增|NA|模块名: ohos.net.socket
类名: socket
方法名 or 属性名:constructTLSSocketInstance|@ohos.net.socket.d.ts| +|新增|NA|方法名 or 属性名:socketLinger
函数:socketLinger?: {on: boolean, linger: number};|@ohos.net.socket.d.ts| +|新增|NA|模块名: ohos.net.socket
类名: TLSSocket|@ohos.net.socket.d.ts| +|新增|NA|模块名: ohos.net.socket
类名: TLSSocket
方法名 or 属性名:bind|@ohos.net.socket.d.ts| +|新增|NA|模块名: ohos.net.socket
类名: TLSSocket
方法名 or 属性名:bind|@ohos.net.socket.d.ts| +|新增|NA|模块名: ohos.net.socket
类名: TLSSocket
方法名 or 属性名:getRemoteAddress|@ohos.net.socket.d.ts| +|新增|NA|模块名: ohos.net.socket
类名: TLSSocket
方法名 or 属性名:getRemoteAddress|@ohos.net.socket.d.ts| +|新增|NA|模块名: ohos.net.socket
类名: TLSSocket
方法名 or 属性名:getState|@ohos.net.socket.d.ts| +|新增|NA|模块名: ohos.net.socket
类名: TLSSocket
方法名 or 属性名:getState|@ohos.net.socket.d.ts| +|新增|NA|模块名: ohos.net.socket
类名: TLSSocket
方法名 or 属性名:setExtraOptions|@ohos.net.socket.d.ts| +|新增|NA|模块名: ohos.net.socket
类名: TLSSocket
方法名 or 属性名:setExtraOptions|@ohos.net.socket.d.ts| +|新增|NA|模块名: ohos.net.socket
类名: TLSSocket
方法名 or 属性名:on_message|@ohos.net.socket.d.ts| +|新增|NA|模块名: ohos.net.socket
类名: TLSSocket
方法名 or 属性名:off_message|@ohos.net.socket.d.ts| +|新增|NA|模块名: ohos.net.socket
类名: TLSSocket
方法名 or 属性名:on_connect|@ohos.net.socket.d.ts| +|新增|NA|模块名: ohos.net.socket
类名: TLSSocket
方法名 or 属性名:on_close|@ohos.net.socket.d.ts| +|新增|NA|模块名: ohos.net.socket
类名: TLSSocket
方法名 or 属性名:off_connect|@ohos.net.socket.d.ts| +|新增|NA|模块名: ohos.net.socket
类名: TLSSocket
方法名 or 属性名:off_close|@ohos.net.socket.d.ts| +|新增|NA|模块名: ohos.net.socket
类名: TLSSocket
方法名 or 属性名:on_error|@ohos.net.socket.d.ts| +|新增|NA|模块名: ohos.net.socket
类名: TLSSocket
方法名 or 属性名:off_error|@ohos.net.socket.d.ts| +|新增|NA|模块名: ohos.net.socket
类名: TLSSocket
方法名 or 属性名:getCertificate|@ohos.net.socket.d.ts| +|新增|NA|模块名: ohos.net.socket
类名: TLSSocket
方法名 or 属性名:getCertificate|@ohos.net.socket.d.ts| +|新增|NA|模块名: ohos.net.socket
类名: TLSSocket
方法名 or 属性名:getRemoteCertificate|@ohos.net.socket.d.ts| +|新增|NA|模块名: ohos.net.socket
类名: TLSSocket
方法名 or 属性名:getRemoteCertificate|@ohos.net.socket.d.ts| +|新增|NA|模块名: ohos.net.socket
类名: TLSSocket
方法名 or 属性名:getProtocol|@ohos.net.socket.d.ts| +|新增|NA|模块名: ohos.net.socket
类名: TLSSocket
方法名 or 属性名:getProtocol|@ohos.net.socket.d.ts| +|新增|NA|模块名: ohos.net.socket
类名: TLSSocket
方法名 or 属性名:getCipherSuite|@ohos.net.socket.d.ts| +|新增|NA|模块名: ohos.net.socket
类名: TLSSocket
方法名 or 属性名:getCipherSuite|@ohos.net.socket.d.ts| +|新增|NA|模块名: ohos.net.socket
类名: TLSSocket
方法名 or 属性名:getSignatureAlgorithms|@ohos.net.socket.d.ts| +|新增|NA|模块名: ohos.net.socket
类名: TLSSocket
方法名 or 属性名:getSignatureAlgorithms|@ohos.net.socket.d.ts| +|新增|NA|模块名: ohos.net.socket
类名: TLSSocket
方法名 or 属性名:connect|@ohos.net.socket.d.ts| +|新增|NA|模块名: ohos.net.socket
类名: TLSSocket
方法名 or 属性名:connect|@ohos.net.socket.d.ts| +|新增|NA|模块名: ohos.net.socket
类名: TLSSocket
方法名 or 属性名:send|@ohos.net.socket.d.ts| +|新增|NA|模块名: ohos.net.socket
类名: TLSSocket
方法名 or 属性名:send|@ohos.net.socket.d.ts| +|新增|NA|模块名: ohos.net.socket
类名: TLSSocket
方法名 or 属性名:close|@ohos.net.socket.d.ts| +|新增|NA|模块名: ohos.net.socket
类名: TLSSocket
方法名 or 属性名:close|@ohos.net.socket.d.ts| +|新增|NA|模块名: ohos.net.socket
类名: TLSSecureOptions|@ohos.net.socket.d.ts| +|新增|NA|模块名: ohos.net.socket
类名: TLSSecureOptions
方法名 or 属性名:ca|@ohos.net.socket.d.ts| +|新增|NA|模块名: ohos.net.socket
类名: TLSSecureOptions
方法名 or 属性名:cert|@ohos.net.socket.d.ts| +|新增|NA|模块名: ohos.net.socket
类名: TLSSecureOptions
方法名 or 属性名:key|@ohos.net.socket.d.ts| +|新增|NA|模块名: ohos.net.socket
类名: TLSSecureOptions
方法名 or 属性名:passwd|@ohos.net.socket.d.ts| +|新增|NA|模块名: ohos.net.socket
类名: TLSSecureOptions
方法名 or 属性名:protocols|@ohos.net.socket.d.ts| +|新增|NA|模块名: ohos.net.socket
类名: TLSSecureOptions
方法名 or 属性名:useRemoteCipherPrefer|@ohos.net.socket.d.ts| +|新增|NA|模块名: ohos.net.socket
类名: TLSSecureOptions
方法名 or 属性名:signatureAlgorithms|@ohos.net.socket.d.ts| +|新增|NA|模块名: ohos.net.socket
类名: TLSSecureOptions
方法名 or 属性名:cipherSuite|@ohos.net.socket.d.ts| +|新增|NA|模块名: ohos.net.socket
类名: TLSConnectOptions|@ohos.net.socket.d.ts| +|新增|NA|模块名: ohos.net.socket
类名: TLSConnectOptions
方法名 or 属性名:address|@ohos.net.socket.d.ts| +|新增|NA|模块名: ohos.net.socket
类名: TLSConnectOptions
方法名 or 属性名:secureOptions|@ohos.net.socket.d.ts| +|新增|NA|模块名: ohos.net.socket
类名: TLSConnectOptions
方法名 or 属性名:ALPNProtocols|@ohos.net.socket.d.ts| +|新增|NA|模块名: ohos.net.socket
类名: Protocol|@ohos.net.socket.d.ts| +|新增|NA|模块名: ohos.net.socket
类名: Protocol
方法名 or 属性名:TLSv12|@ohos.net.socket.d.ts| +|新增|NA|模块名: ohos.net.socket
类名: Protocol
方法名 or 属性名:TLSv13|@ohos.net.socket.d.ts| +|新增|NA|方法名 or 属性名:NDEF_FORMATABLE
函数:const NDEF_FORMATABLE = 7;|@ohos.nfc.tag.d.ts| +|新增|NA|模块名: ohos.nfc.tag
类名: TnfType|@ohos.nfc.tag.d.ts| +|新增|NA|模块名: ohos.nfc.tag
类名: TnfType
方法名 or 属性名:TNF_EMPTY|@ohos.nfc.tag.d.ts| +|新增|NA|模块名: ohos.nfc.tag
类名: TnfType
方法名 or 属性名:TNF_WELL_KNOWN|@ohos.nfc.tag.d.ts| +|新增|NA|模块名: ohos.nfc.tag
类名: TnfType
方法名 or 属性名:TNF_MEDIA|@ohos.nfc.tag.d.ts| +|新增|NA|模块名: ohos.nfc.tag
类名: TnfType
方法名 or 属性名:TNF_ABSOLUTE_URI|@ohos.nfc.tag.d.ts| +|新增|NA|模块名: ohos.nfc.tag
类名: TnfType
方法名 or 属性名:TNF_EXT_APP|@ohos.nfc.tag.d.ts| +|新增|NA|模块名: ohos.nfc.tag
类名: TnfType
方法名 or 属性名:TNF_UNKNOWN|@ohos.nfc.tag.d.ts| +|新增|NA|模块名: ohos.nfc.tag
类名: TnfType
方法名 or 属性名:TNF_UNCHANGED|@ohos.nfc.tag.d.ts| +|新增|NA|模块名: ohos.nfc.tag
类名: NfcForumType|@ohos.nfc.tag.d.ts| +|新增|NA|模块名: ohos.nfc.tag
类名: NfcForumType
方法名 or 属性名:NFC_FORUM_TYPE_1|@ohos.nfc.tag.d.ts| +|新增|NA|模块名: ohos.nfc.tag
类名: NfcForumType
方法名 or 属性名:NFC_FORUM_TYPE_2|@ohos.nfc.tag.d.ts| +|新增|NA|模块名: ohos.nfc.tag
类名: NfcForumType
方法名 or 属性名:NFC_FORUM_TYPE_3|@ohos.nfc.tag.d.ts| +|新增|NA|模块名: ohos.nfc.tag
类名: NfcForumType
方法名 or 属性名:NFC_FORUM_TYPE_4|@ohos.nfc.tag.d.ts| +|新增|NA|模块名: ohos.nfc.tag
类名: NfcForumType
方法名 or 属性名:MIFARE_CLASSIC|@ohos.nfc.tag.d.ts| +|新增|NA|模块名: ohos.nfc.tag
类名: MifareClassicType|@ohos.nfc.tag.d.ts| +|新增|NA|模块名: ohos.nfc.tag
类名: MifareClassicType
方法名 or 属性名:TYPE_UNKNOWN|@ohos.nfc.tag.d.ts| +|新增|NA|模块名: ohos.nfc.tag
类名: MifareClassicType
方法名 or 属性名:TYPE_CLASSIC|@ohos.nfc.tag.d.ts| +|新增|NA|模块名: ohos.nfc.tag
类名: MifareClassicType
方法名 or 属性名:TYPE_PLUS|@ohos.nfc.tag.d.ts| +|新增|NA|模块名: ohos.nfc.tag
类名: MifareClassicType
方法名 or 属性名:TYPE_PRO|@ohos.nfc.tag.d.ts| +|新增|NA|模块名: ohos.nfc.tag
类名: MifareClassicSize|@ohos.nfc.tag.d.ts| +|新增|NA|模块名: ohos.nfc.tag
类名: MifareClassicSize
方法名 or 属性名:MC_SIZE_MINI|@ohos.nfc.tag.d.ts| +|新增|NA|模块名: ohos.nfc.tag
类名: MifareClassicSize
方法名 or 属性名:MC_SIZE_1K|@ohos.nfc.tag.d.ts| +|新增|NA|模块名: ohos.nfc.tag
类名: MifareClassicSize
方法名 or 属性名:MC_SIZE_2K|@ohos.nfc.tag.d.ts| +|新增|NA|模块名: ohos.nfc.tag
类名: MifareClassicSize
方法名 or 属性名:MC_SIZE_4K|@ohos.nfc.tag.d.ts| +|新增|NA|模块名: ohos.nfc.tag
类名: MifareUltralightType|@ohos.nfc.tag.d.ts| +|新增|NA|模块名: ohos.nfc.tag
类名: MifareUltralightType
方法名 or 属性名:TYPE_UNKNOWN|@ohos.nfc.tag.d.ts| +|新增|NA|模块名: ohos.nfc.tag
类名: MifareUltralightType
方法名 or 属性名:TYPE_ULTRALIGHT|@ohos.nfc.tag.d.ts| +|新增|NA|模块名: ohos.nfc.tag
类名: MifareUltralightType
方法名 or 属性名:TYPE_ULTRALIGHT_C|@ohos.nfc.tag.d.ts| +|新增|NA|方法名 or 属性名:uid
函数:uid: number[];|@ohos.nfc.tag.d.ts| +|新增|NA|模块名: ohos.nfc.tag
类名: NdefRecord|@ohos.nfc.tag.d.ts| +|新增|NA|模块名: ohos.nfc.tag
类名: NdefRecord
方法名 or 属性名:tnf|@ohos.nfc.tag.d.ts| +|新增|NA|模块名: ohos.nfc.tag
类名: NdefRecord
方法名 or 属性名:rtdType|@ohos.nfc.tag.d.ts| +|新增|NA|模块名: ohos.nfc.tag
类名: NdefRecord
方法名 or 属性名:id|@ohos.nfc.tag.d.ts| +|新增|NA|模块名: ohos.nfc.tag
类名: NdefRecord
方法名 or 属性名:payload|@ohos.nfc.tag.d.ts| +|新增|NA|模块名: ohos.nfc.tag
类名: ndef|@ohos.nfc.tag.d.ts| +|新增|NA|模块名: ohos.nfc.tag
类名: ndef
方法名 or 属性名:makeUriRecord|@ohos.nfc.tag.d.ts| +|新增|NA|模块名: ohos.nfc.tag
类名: ndef
方法名 or 属性名:makeTextRecord|@ohos.nfc.tag.d.ts| +|新增|NA|模块名: ohos.nfc.tag
类名: ndef
方法名 or 属性名:makeMimeRecord|@ohos.nfc.tag.d.ts| +|新增|NA|模块名: ohos.nfc.tag
类名: ndef
方法名 or 属性名:makeExternalRecord|@ohos.nfc.tag.d.ts| +|新增|NA|模块名: ohos.nfc.tag
类名: ndef
方法名 or 属性名:createNdefMessage|@ohos.nfc.tag.d.ts| +|新增|NA|模块名: ohos.nfc.tag
类名: ndef
方法名 or 属性名:createNdefMessage|@ohos.nfc.tag.d.ts| +|新增|NA|模块名: ohos.nfc.tag
类名: ndef
方法名 or 属性名:messageToBytes|@ohos.nfc.tag.d.ts| +|新增|NA|模块名: ohos.rpc
类名: ErrorCode|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: ErrorCode
方法名 or 属性名:CHECK_PARAM_ERROR|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: ErrorCode
方法名 or 属性名:OS_MMAP_ERROR|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: ErrorCode
方法名 or 属性名:OS_IOCTL_ERROR|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: ErrorCode
方法名 or 属性名:WRITE_TO_ASHMEM_ERROR|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: ErrorCode
方法名 or 属性名:READ_FROM_ASHMEM_ERROR|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: ErrorCode
方法名 or 属性名:ONLY_PROXY_OBJECT_PERMITTED_ERROR|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: ErrorCode
方法名 or 属性名:ONLY_REMOTE_OBJECT_PERMITTED_ERROR|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: ErrorCode
方法名 or 属性名:COMMUNICATION_ERROR|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: ErrorCode
方法名 or 属性名:PROXY_OR_REMOTE_OBJECT_INVALID_ERROR|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: ErrorCode
方法名 or 属性名:WRITE_DATA_TO_MESSAGE_SEQUENCE_ERROR|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: ErrorCode
方法名 or 属性名:READ_DATA_FROM_MESSAGE_SEQUENCE_ERROR|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: ErrorCode
方法名 or 属性名:PARCEL_MEMORY_ALLOC_ERROR|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: ErrorCode
方法名 or 属性名:CALL_JS_METHOD_ERROR|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: ErrorCode
方法名 or 属性名:OS_DUP_ERROR|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:create|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:reclaim|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:writeRemoteObject|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readRemoteObject|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:writeInterfaceToken|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readInterfaceToken|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:getSize|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:getCapacity|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:setSize|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:setCapacity|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:getWritableBytes|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:getReadableBytes|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:getReadPosition|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:getWritePosition|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:rewindRead|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:rewindWrite|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:writeNoException|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readException|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:writeByte|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:writeShort|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:writeInt|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:writeLong|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:writeFloat|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:writeDouble|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:writeBoolean|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:writeChar|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:writeString|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:writeParcelable|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:writeByteArray|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:writeShortArray|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:writeIntArray|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:writeLongArray|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:writeFloatArray|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:writeDoubleArray|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:writeBooleanArray|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:writeCharArray|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:writeStringArray|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:writeParcelableArray|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:writeRemoteObjectArray|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readByte|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readShort|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readInt|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readLong|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readFloat|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readDouble|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readBoolean|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readChar|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readString|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readParcelable|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readByteArray|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readByteArray|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readShortArray|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readShortArray|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readIntArray|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readIntArray|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readLongArray|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readLongArray|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readFloatArray|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readFloatArray|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readDoubleArray|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readDoubleArray|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readBooleanArray|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readBooleanArray|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readCharArray|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readCharArray|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readStringArray|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readStringArray|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readParcelableArray|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readRemoteObjectArray|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readRemoteObjectArray|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:closeFileDescriptor|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:dupFileDescriptor|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:containFileDescriptors|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:writeFileDescriptor|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readFileDescriptor|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:writeAshmem|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readAshmem|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:getRawDataCapacity|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:writeRawData|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageSequence
方法名 or 属性名:readRawData|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: Parcelable|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: Parcelable
方法名 or 属性名:marshalling|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: Parcelable
方法名 or 属性名:unmarshalling|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: RequestResult|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: RequestResult
方法名 or 属性名:errCode|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: RequestResult
方法名 or 属性名:code|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: RequestResult
方法名 or 属性名:data|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: RequestResult
方法名 or 属性名:reply|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageOption
方法名 or 属性名:ructor(async?|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageOption
方法名 or 属性名:isAsync|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.rpc
类名: MessageOption
方法名 or 属性名:setAsync|@ohos.rpc.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: enableWifi|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: disableWifi|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: isWifiActive|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: scan|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: getScanResults|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: getScanResults|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: getScanResultsSync|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: addDeviceConfig|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: addDeviceConfig|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: addCandidateConfig|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: addCandidateConfig|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: removeCandidateConfig|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: removeCandidateConfig|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: getCandidateConfigs|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: connectToCandidateConfig|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: connectToNetwork|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: connectToDevice|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: disconnect|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: getSignalLevel|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: getLinkedInfo|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: getLinkedInfo|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: isConnected|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: getSupportedFeatures|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: isFeatureSupported|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: getDeviceMacAddress|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: getIpInfo|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: getCountryCode|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: reassociate|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: reconnect|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: getDeviceConfigs|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: updateNetwork|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: disableNetwork|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: removeAllNetwork|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: removeDevice|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: enableHotspot|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: disableHotspot|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: isHotspotDualBandSupported|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: isHotspotActive|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: setHotspotConfig|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: getHotspotConfig|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: getStations|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: getP2pLinkedInfo|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: getP2pLinkedInfo|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: getCurrentGroup|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: getCurrentGroup|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: getP2pPeerDevices|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: getP2pPeerDevices|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: getP2pLocalDevice|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: getP2pLocalDevice|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: createGroup|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: removeGroup|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: p2pConnect|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: p2pDisconnect|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: startDiscoverDevices|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: stopDiscoverDevices|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: deletePersistentGroup|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: getP2pGroups|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: getP2pGroups|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: setDeviceName|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: on_wifiStateChange|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: off_wifiStateChange|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: on_wifiConnectionChange|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: off_wifiConnectionChange|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: on_wifiScanStateChange|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: off_wifiScanStateChange|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: on_wifiRssiChange|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: off_wifiRssiChange|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: on_streamChange|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: off_streamChange|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: on_deviceConfigChange|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: off_deviceConfigChange|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: on_hotspotStateChange|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: off_hotspotStateChange|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: on_hotspotStaJoin|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: off_hotspotStaJoin|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: on_hotspotStaLeave|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: off_hotspotStaLeave|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: on_p2pStateChange|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: off_p2pStateChange|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: on_p2pConnectionChange|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: off_p2pConnectionChange|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: on_p2pDeviceChange|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: off_p2pDeviceChange|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: on_p2pPeerDeviceChange|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: off_p2pPeerDeviceChange|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: on_p2pPersistentGroupChange|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: off_p2pPersistentGroupChange|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: on_p2pDiscoveryChange|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: wifiManager
方法名 or 属性名: off_p2pDiscoveryChange|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: EapMethod|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: EapMethod
方法名 or 属性名: EAP_NONE|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: EapMethod
方法名 or 属性名: EAP_PEAP|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: EapMethod
方法名 or 属性名: EAP_TLS|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: EapMethod
方法名 or 属性名: EAP_TTLS|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: EapMethod
方法名 or 属性名: EAP_PWD|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: EapMethod
方法名 or 属性名: EAP_SIM|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: EapMethod
方法名 or 属性名: EAP_AKA|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: EapMethod
方法名 or 属性名: EAP_AKA_PRIME|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: EapMethod
方法名 or 属性名: EAP_UNAUTH_TLS|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: Phase2Method|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: Phase2Method
方法名 or 属性名: PHASE2_NONE|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: Phase2Method
方法名 or 属性名: PHASE2_PAP|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: Phase2Method
方法名 or 属性名: PHASE2_MSCHAP|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: Phase2Method
方法名 or 属性名: PHASE2_MSCHAPV2|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: Phase2Method
方法名 or 属性名: PHASE2_GTC|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: Phase2Method
方法名 or 属性名: PHASE2_SIM|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: Phase2Method
方法名 or 属性名: PHASE2_AKA|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: Phase2Method
方法名 or 属性名: PHASE2_AKA_PRIME|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiEapConfig|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiEapConfig
方法名 or 属性名: eapMethod|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiEapConfig
方法名 or 属性名: phase2Method|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiEapConfig
方法名 or 属性名: identity|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiEapConfig
方法名 or 属性名: anonymousIdentity|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiEapConfig
方法名 or 属性名: password|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiEapConfig
方法名 or 属性名: caCertAliases|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiEapConfig
方法名 or 属性名: caPath|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiEapConfig
方法名 or 属性名: clientCertAliases|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiEapConfig
方法名 or 属性名: altSubjectMatch|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiEapConfig
方法名 or 属性名: domainSuffixMatch|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiEapConfig
方法名 or 属性名: realm|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiEapConfig
方法名 or 属性名: plmn|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiEapConfig
方法名 or 属性名: eapSubId|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiDeviceConfig|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiDeviceConfig
方法名 or 属性名: ssid|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiDeviceConfig
方法名 or 属性名: bssid|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiDeviceConfig
方法名 or 属性名: preSharedKey|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiDeviceConfig
方法名 or 属性名: isHiddenSsid|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiDeviceConfig
方法名 or 属性名: securityType|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiDeviceConfig
方法名 or 属性名: creatorUid|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiDeviceConfig
方法名 or 属性名: disableReason|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiDeviceConfig
方法名 or 属性名: netId|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiDeviceConfig
方法名 or 属性名: randomMacType|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiDeviceConfig
方法名 or 属性名: randomMacAddr|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiDeviceConfig
方法名 or 属性名: ipType|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiDeviceConfig
方法名 or 属性名: staticIp|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiDeviceConfig
方法名 or 属性名: eapConfig|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: IpConfig|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: IpConfig
方法名 or 属性名: ipAddress|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: IpConfig
方法名 or 属性名: gateway|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: IpConfig
方法名 or 属性名: prefixLength|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: IpConfig
方法名 or 属性名: dnsServers|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: IpConfig
方法名 or 属性名: domains|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiInfoElem|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiInfoElem
方法名 or 属性名: eid|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiInfoElem
方法名 or 属性名: content|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiChannelWidth|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiChannelWidth
方法名 or 属性名: WIDTH_20MHZ|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiChannelWidth
方法名 or 属性名: WIDTH_40MHZ|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiChannelWidth
方法名 or 属性名: WIDTH_80MHZ|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiChannelWidth
方法名 or 属性名: WIDTH_160MHZ|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiChannelWidth
方法名 or 属性名: WIDTH_80MHZ_PLUS|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiChannelWidth
方法名 or 属性名: WIDTH_INVALID|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiScanInfo|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiScanInfo
方法名 or 属性名: ssid|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiScanInfo
方法名 or 属性名: bssid|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiScanInfo
方法名 or 属性名: capabilities|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiScanInfo
方法名 or 属性名: securityType|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiScanInfo
方法名 or 属性名: rssi|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiScanInfo
方法名 or 属性名: band|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiScanInfo
方法名 or 属性名: frequency|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiScanInfo
方法名 or 属性名: channelWidth|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiScanInfo
方法名 or 属性名: centerFrequency0|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiScanInfo
方法名 or 属性名: centerFrequency1|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiScanInfo
方法名 or 属性名: infoElems|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiScanInfo
方法名 or 属性名: timestamp|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiSecurityType|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiSecurityType
方法名 or 属性名: WIFI_SEC_TYPE_INVALID|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiSecurityType
方法名 or 属性名: WIFI_SEC_TYPE_OPEN|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiSecurityType
方法名 or 属性名: WIFI_SEC_TYPE_WEP|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiSecurityType
方法名 or 属性名: WIFI_SEC_TYPE_PSK|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiSecurityType
方法名 or 属性名: WIFI_SEC_TYPE_SAE|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiSecurityType
方法名 or 属性名: WIFI_SEC_TYPE_EAP|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiSecurityType
方法名 or 属性名: WIFI_SEC_TYPE_EAP_SUITE_B|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiSecurityType
方法名 or 属性名: WIFI_SEC_TYPE_OWE|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiSecurityType
方法名 or 属性名: WIFI_SEC_TYPE_WAPI_CERT|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiSecurityType
方法名 or 属性名: WIFI_SEC_TYPE_WAPI_PSK|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiLinkedInfo|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiLinkedInfo
方法名 or 属性名: ssid|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiLinkedInfo
方法名 or 属性名: bssid|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiLinkedInfo
方法名 or 属性名: networkId|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiLinkedInfo
方法名 or 属性名: rssi|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiLinkedInfo
方法名 or 属性名: band|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiLinkedInfo
方法名 or 属性名: linkSpeed|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiLinkedInfo
方法名 or 属性名: frequency|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiLinkedInfo
方法名 or 属性名: isHidden|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiLinkedInfo
方法名 or 属性名: isRestricted|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiLinkedInfo
方法名 or 属性名: chload|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiLinkedInfo
方法名 or 属性名: snr|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiLinkedInfo
方法名 or 属性名: macType|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiLinkedInfo
方法名 or 属性名: macAddress|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiLinkedInfo
方法名 or 属性名: ipAddress|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiLinkedInfo
方法名 or 属性名: suppState|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiLinkedInfo
方法名 or 属性名: connState|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: IpInfo|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: IpInfo
方法名 or 属性名: ipAddress|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: IpInfo
方法名 or 属性名: gateway|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: IpInfo
方法名 or 属性名: netmask|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: IpInfo
方法名 or 属性名: primaryDns|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: IpInfo
方法名 or 属性名: secondDns|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: IpInfo
方法名 or 属性名: serverIp|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: IpInfo
方法名 or 属性名: leaseDuration|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: HotspotConfig|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: HotspotConfig
方法名 or 属性名: ssid|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: HotspotConfig
方法名 or 属性名: securityType|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: HotspotConfig
方法名 or 属性名: band|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: HotspotConfig
方法名 or 属性名: preSharedKey|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: HotspotConfig
方法名 or 属性名: maxConn|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: StationInfo|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: StationInfo
方法名 or 属性名: name|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: StationInfo
方法名 or 属性名: macAddress|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: StationInfo
方法名 or 属性名: ipAddress|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: IpType|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: IpType
方法名 or 属性名: STATIC|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: IpType
方法名 or 属性名: DHCP|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: IpType
方法名 or 属性名: UNKNOWN|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: SuppState|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: SuppState
方法名 or 属性名: DISCONNECTED|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: SuppState
方法名 or 属性名: INTERFACE_DISABLED|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: SuppState
方法名 or 属性名: INACTIVE|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: SuppState
方法名 or 属性名: SCANNING|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: SuppState
方法名 or 属性名: AUTHENTICATING|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: SuppState
方法名 or 属性名: ASSOCIATING|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: SuppState
方法名 or 属性名: ASSOCIATED|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: SuppState
方法名 or 属性名: FOUR_WAY_HANDSHAKE|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: SuppState
方法名 or 属性名: GROUP_HANDSHAKE|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: SuppState
方法名 or 属性名: COMPLETED|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: SuppState
方法名 or 属性名: UNINITIALIZED|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: SuppState
方法名 or 属性名: INVALID|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: ConnState|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: ConnState
方法名 or 属性名: SCANNING|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: ConnState
方法名 or 属性名: CONNECTING|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: ConnState
方法名 or 属性名: AUTHENTICATING|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: ConnState
方法名 or 属性名: OBTAINING_IPADDR|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: ConnState
方法名 or 属性名: CONNECTED|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: ConnState
方法名 or 属性名: DISCONNECTING|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: ConnState
方法名 or 属性名: DISCONNECTED|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: ConnState
方法名 or 属性名: UNKNOWN|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiP2pDevice|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiP2pDevice
方法名 or 属性名: deviceName|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiP2pDevice
方法名 or 属性名: deviceAddress|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiP2pDevice
方法名 or 属性名: primaryDeviceType|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiP2pDevice
方法名 or 属性名: deviceStatus|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiP2pDevice
方法名 or 属性名: groupCapabilities|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiP2PConfig|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiP2PConfig
方法名 or 属性名: deviceAddress|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiP2PConfig
方法名 or 属性名: netId|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiP2PConfig
方法名 or 属性名: passphrase|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiP2PConfig
方法名 or 属性名: groupName|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiP2PConfig
方法名 or 属性名: goBand|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiP2pGroupInfo|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiP2pGroupInfo
方法名 or 属性名: isP2pGo|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiP2pGroupInfo
方法名 or 属性名: ownerInfo|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiP2pGroupInfo
方法名 or 属性名: passphrase|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiP2pGroupInfo
方法名 or 属性名: interface|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiP2pGroupInfo
方法名 or 属性名: groupName|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiP2pGroupInfo
方法名 or 属性名: networkId|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiP2pGroupInfo
方法名 or 属性名: frequency|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiP2pGroupInfo
方法名 or 属性名: clientDevices|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiP2pGroupInfo
方法名 or 属性名: goIpAddress|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: P2pConnectState|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: P2pConnectState
方法名 or 属性名: DISCONNECTED|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: P2pConnectState
方法名 or 属性名: CONNECTED|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiP2pLinkedInfo|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiP2pLinkedInfo
方法名 or 属性名: connectState|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiP2pLinkedInfo
方法名 or 属性名: isGroupOwner|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: WifiP2pLinkedInfo
方法名 or 属性名: groupOwnerAddr|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: P2pDeviceStatus|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: P2pDeviceStatus
方法名 or 属性名: CONNECTED|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: P2pDeviceStatus
方法名 or 属性名: INVITED|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: P2pDeviceStatus
方法名 or 属性名: FAILED|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: P2pDeviceStatus
方法名 or 属性名: AVAILABLE|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: P2pDeviceStatus
方法名 or 属性名: UNAVAILABLE|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: GroupOwnerBand|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: GroupOwnerBand
方法名 or 属性名: GO_BAND_AUTO|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: GroupOwnerBand
方法名 or 属性名: GO_BAND_2GHZ|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManager
类名: GroupOwnerBand
方法名 or 属性名: GO_BAND_5GHZ|@ohos.wifiManager.d.ts| +|新增|NA|模块名: ohos.wifiManagerExt
类名: wifiManagerExt|@ohos.wifiManagerExt.d.ts| +|新增|NA|模块名: ohos.wifiManagerExt
类名: wifiManagerExt
方法名 or 属性名: enableHotspot|@ohos.wifiManagerExt.d.ts| +|新增|NA|模块名: ohos.wifiManagerExt
类名: wifiManagerExt
方法名 or 属性名: disableHotspot|@ohos.wifiManagerExt.d.ts| +|新增|NA|模块名: ohos.wifiManagerExt
类名: wifiManagerExt
方法名 or 属性名: getSupportedPowerMode|@ohos.wifiManagerExt.d.ts| +|新增|NA|模块名: ohos.wifiManagerExt
类名: wifiManagerExt
方法名 or 属性名: getSupportedPowerMode|@ohos.wifiManagerExt.d.ts| +|新增|NA|模块名: ohos.wifiManagerExt
类名: wifiManagerExt
方法名 or 属性名: getPowerMode|@ohos.wifiManagerExt.d.ts| +|新增|NA|模块名: ohos.wifiManagerExt
类名: wifiManagerExt
方法名 or 属性名: getPowerMode|@ohos.wifiManagerExt.d.ts| +|新增|NA|模块名: ohos.wifiManagerExt
类名: wifiManagerExt
方法名 or 属性名: setPowerMode|@ohos.wifiManagerExt.d.ts| +|新增|NA|模块名: ohos.wifiManagerExt
类名: PowerMode|@ohos.wifiManagerExt.d.ts| +|新增|NA|模块名: ohos.wifiManagerExt
类名: PowerMode
方法名 or 属性名: SLEEPING|@ohos.wifiManagerExt.d.ts| +|新增|NA|模块名: ohos.wifiManagerExt
类名: PowerMode
方法名 or 属性名: GENERAL|@ohos.wifiManagerExt.d.ts| +|新增|NA|模块名: ohos.wifiManagerExt
类名: PowerMode
方法名 or 属性名: THROUGH_WALL|@ohos.wifiManagerExt.d.ts| +|新增|NA|方法名 or 属性名:getHistoricalBytes
函数:getHistoricalBytes(): number[];|nfctech.d.ts| +|新增|NA|方法名 or 属性名:getHiLayerResponse
函数:getHiLayerResponse(): number[];|nfctech.d.ts| +|新增|NA|方法名 or 属性名:getNdefRecords
函数:getNdefRecords(): tag.NdefRecord[];|nfctech.d.ts| +|新增|NA|方法名 or 属性名:getNdefTagType
函数:getNdefTagType(): tag.NfcForumType;|nfctech.d.ts| +|新增|NA|方法名 or 属性名:isNdefWritable
函数:isNdefWritable(): boolean;|nfctech.d.ts| +|新增|NA|方法名 or 属性名:writeNdef
函数:writeNdef(msg: NdefMessage): Promise;|nfctech.d.ts| +|新增|NA|方法名 or 属性名:writeNdef
函数:writeNdef(msg: NdefMessage, callback: AsyncCallback): void;|nfctech.d.ts| +|新增|NA|方法名 or 属性名:canSetReadOnly
函数:canSetReadOnly(): boolean;|nfctech.d.ts| +|新增|NA|方法名 or 属性名:setReadOnly
函数:setReadOnly(): Promise;|nfctech.d.ts| +|新增|NA|方法名 or 属性名:setReadOnly
函数:setReadOnly(callback: AsyncCallback): void;|nfctech.d.ts| +|新增|NA|方法名 or 属性名:getNdefTagTypeString
函数:getNdefTagTypeString(type: tag.NfcForumType): string;|nfctech.d.ts| +|新增|NA|方法名 or 属性名:authenticateSector
函数:authenticateSector(sectorIndex: number, key: number[], isKeyA: boolean): Promise;|nfctech.d.ts| +|新增|NA|方法名 or 属性名:authenticateSector
函数:authenticateSector(sectorIndex: number, key: number[], isKeyA: boolean, callback: AsyncCallback): void;|nfctech.d.ts| +|新增|NA|方法名 or 属性名:readSingleBlock
函数:readSingleBlock(blockIndex: number): Promise;|nfctech.d.ts| +|新增|NA|方法名 or 属性名:readSingleBlock
函数:readSingleBlock(blockIndex: number, callback: AsyncCallback): void;|nfctech.d.ts| +|新增|NA|方法名 or 属性名:writeSingleBlock
函数:writeSingleBlock(blockIndex: number, data: number[]): Promise;|nfctech.d.ts| +|新增|NA|方法名 or 属性名:writeSingleBlock
函数:writeSingleBlock(blockIndex: number, data: number[], callback: AsyncCallback): void;|nfctech.d.ts| +|新增|NA|方法名 or 属性名:incrementBlock
函数:incrementBlock(blockIndex: number, value: number): Promise;|nfctech.d.ts| +|新增|NA|方法名 or 属性名:incrementBlock
函数:incrementBlock(blockIndex: number, value: number, callback: AsyncCallback): void;|nfctech.d.ts| +|新增|NA|方法名 or 属性名:decrementBlock
函数:decrementBlock(blockIndex: number, value: number): Promise;|nfctech.d.ts| +|新增|NA|方法名 or 属性名:decrementBlock
函数:decrementBlock(blockIndex: number, value: number, callback: AsyncCallback): void;|nfctech.d.ts| +|新增|NA|方法名 or 属性名:transferToBlock
函数:transferToBlock(blockIndex: number): Promise;|nfctech.d.ts| +|新增|NA|方法名 or 属性名:transferToBlock
函数:transferToBlock(blockIndex: number, callback: AsyncCallback): void;|nfctech.d.ts| +|新增|NA|方法名 or 属性名:restoreFromBlock
函数:restoreFromBlock(blockIndex: number): Promise;|nfctech.d.ts| +|新增|NA|方法名 or 属性名:restoreFromBlock
函数:restoreFromBlock(blockIndex: number, callback: AsyncCallback): void;|nfctech.d.ts| +|新增|NA|方法名 or 属性名:getType
函数:getType(): tag.MifareClassicType;|nfctech.d.ts| +|新增|NA|方法名 or 属性名:readMultiplePages
函数:readMultiplePages(pageIndex: number): Promise;|nfctech.d.ts| +|新增|NA|方法名 or 属性名:readMultiplePages
函数:readMultiplePages(pageIndex: number, callback: AsyncCallback): void;|nfctech.d.ts| +|新增|NA|方法名 or 属性名:getType
函数:getType(): tag.MifareUltralightType;|nfctech.d.ts| +|新增|NA|方法名 or 属性名:format
函数:format(message: NdefMessage): Promise;|nfctech.d.ts| +|新增|NA|方法名 or 属性名:format
函数:format(message: NdefMessage, callback: AsyncCallback): void;|nfctech.d.ts| +|新增|NA|方法名 or 属性名:formatReadOnly
函数:formatReadOnly(message: NdefMessage): Promise;|nfctech.d.ts| +|新增|NA|方法名 or 属性名:formatReadOnly
函数:formatReadOnly(message: NdefMessage, callback: AsyncCallback): void;|nfctech.d.ts| +|删除|模块名:ohos.nfc.tag
类名:tag
方法名 or 属性名:getIsoDepTag|NA|@ohos.nfc.tag.d.ts| +|删除|模块名:ohos.nfc.tag
类名:tag
方法名 or 属性名:getNdefTag|NA|@ohos.nfc.tag.d.ts| +|删除|模块名:ohos.nfc.tag
类名:tag
方法名 or 属性名:getMifareClassicTag|NA|@ohos.nfc.tag.d.ts| +|删除|模块名:ohos.nfc.tag
类名:tag
方法名 or 属性名:getMifareUltralightTag|NA|@ohos.nfc.tag.d.ts| +|删除|模块名:ohos.nfc.tag
类名:tag
方法名 or 属性名:getNdefFormatableTag|NA|@ohos.nfc.tag.d.ts| +|删除|模块名:ohos.rpc
类名:IRemoteObject
方法名 or 属性名:sendRequestAsync|NA|@ohos.rpc.d.ts| +|删除|模块名:ohos.rpc
类名:RemoteObject
方法名 or 属性名:onRemoteRequestEx|NA|@ohos.rpc.d.ts| +|删除|模块名:ohos.rpc
类名:RemoteObject
方法名 or 属性名:sendRequestAsync|NA|@ohos.rpc.d.ts| +|删除|模块名:ohos.rpc
类名:RemoteProxy
方法名 or 属性名:sendRequestAsync|NA|@ohos.rpc.d.ts| +|删除|模块名:ohos.wifi
类名:wifi
方法名 or 属性名:getScanInfosSync|NA|@ohos.wifi.d.ts| +|删除|模块名:ohos.wifi
类名:wifi
方法名 or 属性名:addCandidateConfig|NA|@ohos.wifi.d.ts| +|删除|模块名:ohos.wifi
类名:wifi
方法名 or 属性名:addCandidateConfig|NA|@ohos.wifi.d.ts| +|删除|模块名:ohos.wifi
类名:wifi
方法名 or 属性名:removeCandidateConfig|NA|@ohos.wifi.d.ts| +|删除|模块名:ohos.wifi
类名:wifi
方法名 or 属性名:removeCandidateConfig|NA|@ohos.wifi.d.ts| +|删除|模块名:ohos.wifi
类名:wifi
方法名 or 属性名:getCandidateConfigs|NA|@ohos.wifi.d.ts| +|删除|模块名:ohos.wifi
类名:wifi
方法名 or 属性名:connectToCandidateConfig|NA|@ohos.wifi.d.ts| +|删除|模块名:ohos.wifi
类名:wifi
方法名 or 属性名:getP2pLocalDevice|NA|@ohos.wifi.d.ts| +|删除|模块名:ohos.wifi
类名:wifi
方法名 or 属性名:getP2pLocalDevice|NA|@ohos.wifi.d.ts| +|删除|模块名:ohos.wifi
类名:wifi
方法名 or 属性名:getP2pGroups|NA|@ohos.wifi.d.ts| +|删除|模块名:ohos.wifi
类名:wifi
方法名 or 属性名:getP2pGroups|NA|@ohos.wifi.d.ts| +|删除|模块名:ohos.wifi
类名:wifi
方法名 or 属性名:on_deviceConfigChange|NA|@ohos.wifi.d.ts| +|删除|模块名:ohos.wifi
类名:wifi
方法名 or 属性名:off_deviceConfigChange|NA|@ohos.wifi.d.ts| +|删除|模块名: ohos.wifi
类名: EapMethod|NA|@ohos.wifi.d.ts| +|删除|模块名: ohos.wifi
类名: EapMethod
方法名 or 属性名:EAP_NONE|NA|@ohos.wifi.d.ts| +|删除|模块名: ohos.wifi
类名: EapMethod
方法名 or 属性名:EAP_PEAP|NA|@ohos.wifi.d.ts| +|删除|模块名: ohos.wifi
类名: EapMethod
方法名 or 属性名:EAP_TLS|NA|@ohos.wifi.d.ts| +|删除|模块名: ohos.wifi
类名: EapMethod
方法名 or 属性名:EAP_TTLS|NA|@ohos.wifi.d.ts| +|删除|模块名: ohos.wifi
类名: EapMethod
方法名 or 属性名:EAP_PWD|NA|@ohos.wifi.d.ts| +|删除|模块名: ohos.wifi
类名: EapMethod
方法名 or 属性名:EAP_SIM|NA|@ohos.wifi.d.ts| +|删除|模块名: ohos.wifi
类名: EapMethod
方法名 or 属性名:EAP_AKA|NA|@ohos.wifi.d.ts| +|删除|模块名: ohos.wifi
类名: EapMethod
方法名 or 属性名:EAP_AKA_PRIME|NA|@ohos.wifi.d.ts| +|删除|模块名: ohos.wifi
类名: EapMethod
方法名 or 属性名:EAP_UNAUTH_TLS|NA|@ohos.wifi.d.ts| +|删除|模块名: ohos.wifi
类名: Phase2Method|NA|@ohos.wifi.d.ts| +|删除|模块名: ohos.wifi
类名: Phase2Method
方法名 or 属性名:PHASE2_NONE|NA|@ohos.wifi.d.ts| +|删除|模块名: ohos.wifi
类名: Phase2Method
方法名 or 属性名:PHASE2_PAP|NA|@ohos.wifi.d.ts| +|删除|模块名: ohos.wifi
类名: Phase2Method
方法名 or 属性名:PHASE2_MSCHAP|NA|@ohos.wifi.d.ts| +|删除|模块名: ohos.wifi
类名: Phase2Method
方法名 or 属性名:PHASE2_MSCHAPV2|NA|@ohos.wifi.d.ts| +|删除|模块名: ohos.wifi
类名: Phase2Method
方法名 or 属性名:PHASE2_GTC|NA|@ohos.wifi.d.ts| +|删除|模块名: ohos.wifi
类名: Phase2Method
方法名 or 属性名:PHASE2_SIM|NA|@ohos.wifi.d.ts| +|删除|模块名: ohos.wifi
类名: Phase2Method
方法名 or 属性名:PHASE2_AKA|NA|@ohos.wifi.d.ts| +|删除|模块名: ohos.wifi
类名: Phase2Method
方法名 or 属性名:PHASE2_AKA_PRIME|NA|@ohos.wifi.d.ts| +|删除|模块名: ohos.wifi
类名: WifiEapConfig|NA|@ohos.wifi.d.ts| +|删除|模块名: ohos.wifi
类名: WifiEapConfig
方法名 or 属性名:eapMethod|NA|@ohos.wifi.d.ts| +|删除|模块名: ohos.wifi
类名: WifiEapConfig
方法名 or 属性名:phase2Method|NA|@ohos.wifi.d.ts| +|删除|模块名: ohos.wifi
类名: WifiEapConfig
方法名 or 属性名:identity|NA|@ohos.wifi.d.ts| +|删除|模块名: ohos.wifi
类名: WifiEapConfig
方法名 or 属性名:anonymousIdentity|NA|@ohos.wifi.d.ts| +|删除|模块名: ohos.wifi
类名: WifiEapConfig
方法名 or 属性名:password|NA|@ohos.wifi.d.ts| +|删除|模块名: ohos.wifi
类名: WifiEapConfig
方法名 or 属性名:caCertAliases|NA|@ohos.wifi.d.ts| +|删除|模块名: ohos.wifi
类名: WifiEapConfig
方法名 or 属性名:caPath|NA|@ohos.wifi.d.ts| +|删除|模块名: ohos.wifi
类名: WifiEapConfig
方法名 or 属性名:clientCertAliases|NA|@ohos.wifi.d.ts| +|删除|模块名: ohos.wifi
类名: WifiEapConfig
方法名 or 属性名:altSubjectMatch|NA|@ohos.wifi.d.ts| +|删除|模块名: ohos.wifi
类名: WifiEapConfig
方法名 or 属性名:domainSuffixMatch|NA|@ohos.wifi.d.ts| +|删除|模块名: ohos.wifi
类名: WifiEapConfig
方法名 or 属性名:realm|NA|@ohos.wifi.d.ts| +|删除|模块名: ohos.wifi
类名: WifiEapConfig
方法名 or 属性名:plmn|NA|@ohos.wifi.d.ts| +|删除|模块名: ohos.wifi
类名: WifiEapConfig
方法名 or 属性名:eapSubId|NA|@ohos.wifi.d.ts| +|删除|模块名:ohos.wifi
类名:WifiDeviceConfig
方法名 or 属性名:eapConfig|NA|@ohos.wifi.d.ts| +|删除|模块名: ohos.wifi
类名: WifiInfoElem|NA|@ohos.wifi.d.ts| +|删除|模块名: ohos.wifi
类名: WifiInfoElem
方法名 or 属性名:eid|NA|@ohos.wifi.d.ts| +|删除|模块名: ohos.wifi
类名: WifiInfoElem
方法名 or 属性名:content|NA|@ohos.wifi.d.ts| +|删除|模块名: ohos.wifi
类名: WifiChannelWidth|NA|@ohos.wifi.d.ts| +|删除|模块名: ohos.wifi
类名: WifiChannelWidth
方法名 or 属性名:WIDTH_20MHZ|NA|@ohos.wifi.d.ts| +|删除|模块名: ohos.wifi
类名: WifiChannelWidth
方法名 or 属性名:WIDTH_40MHZ|NA|@ohos.wifi.d.ts| +|删除|模块名: ohos.wifi
类名: WifiChannelWidth
方法名 or 属性名:WIDTH_80MHZ|NA|@ohos.wifi.d.ts| +|删除|模块名: ohos.wifi
类名: WifiChannelWidth
方法名 or 属性名:WIDTH_160MHZ|NA|@ohos.wifi.d.ts| +|删除|模块名: ohos.wifi
类名: WifiChannelWidth
方法名 or 属性名:WIDTH_80MHZ_PLUS|NA|@ohos.wifi.d.ts| +|删除|模块名: ohos.wifi
类名: WifiChannelWidth
方法名 or 属性名:WIDTH_INVALID|NA|@ohos.wifi.d.ts| +|删除|模块名:ohos.wifi
类名:WifiScanInfo
方法名 or 属性名:centerFrequency0|NA|@ohos.wifi.d.ts| +|删除|模块名:ohos.wifi
类名:WifiScanInfo
方法名 or 属性名:centerFrequency1|NA|@ohos.wifi.d.ts| +|删除|模块名:ohos.wifi
类名:WifiScanInfo
方法名 or 属性名:infoElems|NA|@ohos.wifi.d.ts| +|删除|模块名:ohos.wifi
类名:WifiSecurityType
方法名 or 属性名:WIFI_SEC_TYPE_EAP|NA|@ohos.wifi.d.ts| +|删除|模块名:ohos.wifi
类名:WifiSecurityType
方法名 or 属性名:WIFI_SEC_TYPE_EAP_SUITE_B|NA|@ohos.wifi.d.ts| +|删除|模块名:ohos.wifi
类名:WifiSecurityType
方法名 or 属性名:WIFI_SEC_TYPE_OWE|NA|@ohos.wifi.d.ts| +|删除|模块名:ohos.wifi
类名:WifiSecurityType
方法名 or 属性名:WIFI_SEC_TYPE_WAPI_CERT|NA|@ohos.wifi.d.ts| +|删除|模块名:ohos.wifi
类名:WifiSecurityType
方法名 or 属性名:WIFI_SEC_TYPE_WAPI_PSK|NA|@ohos.wifi.d.ts| +|删除|模块名:ohos.wifi
类名:WifiLinkedInfo
方法名 or 属性名:macType|NA|@ohos.wifi.d.ts| +|删除|模块名: nfctech
类名: NdefRecord|NA|nfctech.d.ts| +|删除|模块名: nfctech
类名: NdefRecord
方法名 or 属性名:tnf|NA|nfctech.d.ts| +|删除|模块名: nfctech
类名: NdefRecord
方法名 or 属性名:rtdType|NA|nfctech.d.ts| +|删除|模块名: nfctech
类名: NdefRecord
方法名 or 属性名:id|NA|nfctech.d.ts| +|删除|模块名: nfctech
类名: NdefRecord
方法名 or 属性名:payload|NA|nfctech.d.ts| +|删除|模块名: nfctech
类名: TnfType|NA|nfctech.d.ts| +|删除|模块名: nfctech
类名: TnfType
方法名 or 属性名:TNF_EMPTY|NA|nfctech.d.ts| +|删除|模块名: nfctech
类名: TnfType
方法名 or 属性名:TNF_WELL_KNOWN|NA|nfctech.d.ts| +|删除|模块名: nfctech
类名: TnfType
方法名 or 属性名:TNF_MEDIA|NA|nfctech.d.ts| +|删除|模块名: nfctech
类名: TnfType
方法名 or 属性名:TNF_ABSOLUTE_URI|NA|nfctech.d.ts| +|删除|模块名: nfctech
类名: TnfType
方法名 or 属性名:TNF_EXT_APP|NA|nfctech.d.ts| +|删除|模块名: nfctech
类名: TnfType
方法名 or 属性名:TNF_UNKNOWN|NA|nfctech.d.ts| +|删除|模块名: nfctech
类名: TnfType
方法名 or 属性名:TNF_UNCHANGED|NA|nfctech.d.ts| +|删除|模块名: nfctech
类名: RtdType|NA|nfctech.d.ts| +|删除|模块名: nfctech
类名: RtdType
方法名 or 属性名:RTD_TEXT|NA|nfctech.d.ts| +|删除|模块名: nfctech
类名: RtdType
方法名 or 属性名:RTD_URI|NA|nfctech.d.ts| +|删除|模块名:nfctech
类名:NdefMessage
方法名 or 属性名:makeUriRecord|NA|nfctech.d.ts| +|删除|模块名:nfctech
类名:NdefMessage
方法名 or 属性名:makeTextRecord|NA|nfctech.d.ts| +|删除|模块名:nfctech
类名:NdefMessage
方法名 or 属性名:makeMimeRecord|NA|nfctech.d.ts| +|删除|模块名:nfctech
类名:NdefMessage
方法名 or 属性名:makeExternalRecord|NA|nfctech.d.ts| +|删除|模块名:nfctech
类名:NdefMessage
方法名 or 属性名:messageToString|NA|nfctech.d.ts| +|删除|模块名: nfctech
类名: NfcForumType|NA|nfctech.d.ts| +|删除|模块名: nfctech
类名: NfcForumType
方法名 or 属性名:NFC_FORUM_TYPE_1|NA|nfctech.d.ts| +|删除|模块名: nfctech
类名: NfcForumType
方法名 or 属性名:NFC_FORUM_TYPE_2|NA|nfctech.d.ts| +|删除|模块名: nfctech
类名: NfcForumType
方法名 or 属性名:NFC_FORUM_TYPE_3|NA|nfctech.d.ts| +|删除|模块名: nfctech
类名: NfcForumType
方法名 or 属性名:NFC_FORUM_TYPE_4|NA|nfctech.d.ts| +|删除|模块名: nfctech
类名: NfcForumType
方法名 or 属性名:MIFARE_CLASSIC|NA|nfctech.d.ts| +|删除|模块名:nfctech
类名:NdefTag
方法名 or 属性名:createNdefMessage|NA|nfctech.d.ts| +|删除|模块名:nfctech
类名:NdefTag
方法名 or 属性名:createNdefMessage|NA|nfctech.d.ts| +|删除|模块名: nfctech
类名: MifareClassicType|NA|nfctech.d.ts| +|删除|模块名: nfctech
类名: MifareClassicType
方法名 or 属性名:TYPE_UNKNOWN|NA|nfctech.d.ts| +|删除|模块名: nfctech
类名: MifareClassicType
方法名 or 属性名:TYPE_CLASSIC|NA|nfctech.d.ts| +|删除|模块名: nfctech
类名: MifareClassicType
方法名 or 属性名:TYPE_PLUS|NA|nfctech.d.ts| +|删除|模块名: nfctech
类名: MifareClassicType
方法名 or 属性名:TYPE_PRO|NA|nfctech.d.ts| +|删除|模块名: nfctech
类名: MifareTagSize|NA|nfctech.d.ts| +|删除|模块名: nfctech
类名: MifareTagSize
方法名 or 属性名:MC_SIZE_MINI|NA|nfctech.d.ts| +|删除|模块名: nfctech
类名: MifareTagSize
方法名 or 属性名:MC_SIZE_1K|NA|nfctech.d.ts| +|删除|模块名: nfctech
类名: MifareTagSize
方法名 or 属性名:MC_SIZE_2K|NA|nfctech.d.ts| +|删除|模块名: nfctech
类名: MifareTagSize
方法名 or 属性名:MC_SIZE_4K|NA|nfctech.d.ts| +|删除|模块名: nfctech
类名: MifareUltralightType|NA|nfctech.d.ts| +|删除|模块名: nfctech
类名: MifareUltralightType
方法名 or 属性名:TYPE_UNKOWN|NA|nfctech.d.ts| +|删除|模块名: nfctech
类名: MifareUltralightType
方法名 or 属性名:TYPE_ULTRALIGHT|NA|nfctech.d.ts| +|删除|模块名: nfctech
类名: MifareUltralightType
方法名 or 属性名:TYPE_ULTRALIGHT_C|NA|nfctech.d.ts| +|删除|模块名:nfctech
类名:MifareUltralightTag
方法名 or 属性名:writeSinglePages|NA|nfctech.d.ts| +|删除|模块名:nfctech
类名:MifareUltralightTag
方法名 or 属性名:writeSinglePages|NA|nfctech.d.ts| |废弃版本有变化|类名:MessageParcel
废弃版本:N/A|类名:MessageParcel
废弃版本:9
代替接口:ohos.rpc.MessageSequence |@ohos.rpc.d.ts| |废弃版本有变化|类名:Sequenceable
废弃版本:N/A|类名:Sequenceable
废弃版本:9
代替接口:ohos.rpc.Parcelable |@ohos.rpc.d.ts| |废弃版本有变化|类名:SendRequestResult
废弃版本:N/A|类名:SendRequestResult
废弃版本:9
代替接口:ohos.rpc.RequestResult |@ohos.rpc.d.ts| @@ -859,8 +821,8 @@ |删除(权限)|方法名 or 属性名:isEmulatedTag
权限:ohos.permission.NFC_TAG|方法名 or 属性名:isEmulatedTag
权限:N/A|nfctech.d.ts| |删除(权限)|方法名 or 属性名:getBlockIndex
权限:ohos.permission.NFC_TAG|方法名 or 属性名:getBlockIndex
权限:N/A|nfctech.d.ts| |删除(权限)|方法名 or 属性名:getSectorIndex
权限:ohos.permission.NFC_TAG|方法名 or 属性名:getSectorIndex
权限:N/A|nfctech.d.ts| -|新增(错误码)||方法名 or 属性名:isExtendedApduSupported
错误码内容:201,401,3100201|nfctech.d.ts| -|新增(错误码)||方法名 or 属性名:readNdef
错误码内容:201,401,3100201|nfctech.d.ts| -|新增(错误码)||方法名 or 属性名:getBlockCountInSector
错误码内容:401|nfctech.d.ts| -|新增(错误码)||方法名 or 属性名:getBlockIndex
错误码内容:401|nfctech.d.ts| -|新增(错误码)||方法名 or 属性名:getSectorIndex
错误码内容:401|nfctech.d.ts| +|新增(错误码)|NA|方法名 or 属性名:isExtendedApduSupported
错误码内容:201,401,3100201|nfctech.d.ts| +|新增(错误码)|NA|方法名 or 属性名:readNdef
错误码内容:201,401,3100201|nfctech.d.ts| +|新增(错误码)|NA|方法名 or 属性名:getBlockCountInSector
错误码内容:401|nfctech.d.ts| +|新增(错误码)|NA|方法名 or 属性名:getBlockIndex
错误码内容:401|nfctech.d.ts| +|新增(错误码)|NA|方法名 or 属性名:getSectorIndex
错误码内容:401|nfctech.d.ts| diff --git a/zh-cn/release-notes/api-diff/v3.2-beta4/js-apidiff-compiler-and-runtime.md b/zh-cn/release-notes/api-diff/v3.2-beta4/js-apidiff-compiler-and-runtime.md index 07db32e5642e862ae3bfd7000d6ae10c022e86ee..3cda7bdac5cb5fc629bd22cba93416e4e665ad3d 100644 --- a/zh-cn/release-notes/api-diff/v3.2-beta4/js-apidiff-compiler-and-runtime.md +++ b/zh-cn/release-notes/api-diff/v3.2-beta4/js-apidiff-compiler-and-runtime.md @@ -1,140 +1,130 @@ -| 操作 | 新版本 | 旧版本 | d.ts文件 | +| 操作 | 旧版本 | 新版本 | d.ts文件 | | ---- | ------ | ------ | -------- | -|新增||模块名:ohos.convertxml
类名:ConvertXML
方法名 or 属性名:convertToJSObject|@ohos.convertxml.d.ts| -|新增||模块名: ohos.process
类名: ProcessManager|@ohos.process.d.ts| -|新增||模块名: ohos.process
类名: ProcessManager
方法名 or 属性名:isAppUid|@ohos.process.d.ts| -|新增||模块名: ohos.process
类名: ProcessManager
方法名 or 属性名:getUidForName|@ohos.process.d.ts| -|新增||模块名: ohos.process
类名: ProcessManager
方法名 or 属性名:getThreadPriority|@ohos.process.d.ts| -|新增||模块名: ohos.process
类名: ProcessManager
方法名 or 属性名:getSystemConfig|@ohos.process.d.ts| -|新增||模块名: ohos.process
类名: ProcessManager
方法名 or 属性名:getEnvironmentVar|@ohos.process.d.ts| -|新增||模块名: ohos.process
类名: ProcessManager
方法名 or 属性名:exit|@ohos.process.d.ts| -|新增||模块名: ohos.process
类名: ProcessManager
方法名 or 属性名:kill|@ohos.process.d.ts| -|新增||模块名:ohos.uri
类名:URI
方法名 or 属性名:equalsTo|@ohos.uri.d.ts| -|新增||方法名 or 属性名:forEach
函数:forEach(callbackFn: (value: string, key: string, searchParams: this) => void, thisArg?: Object): void;|@ohos.url.d.ts| -|新增||模块名: ohos.url
类名: URLParams|@ohos.url.d.ts| -|新增||模块名: ohos.url
类名: URLParams
方法名 or 属性名:ructor(init?|@ohos.url.d.ts| -|新增||模块名: ohos.url
类名: URLParams
方法名 or 属性名:append|@ohos.url.d.ts| -|新增||模块名: ohos.url
类名: URLParams
方法名 or 属性名:delete|@ohos.url.d.ts| -|新增||模块名: ohos.url
类名: URLParams
方法名 or 属性名:getAll|@ohos.url.d.ts| -|新增||模块名: ohos.url
类名: URLParams
方法名 or 属性名:entries|@ohos.url.d.ts| -|新增||模块名: ohos.url
类名: URLParams
方法名 or 属性名:forEach|@ohos.url.d.ts| -|新增||模块名: ohos.url
类名: URLParams
方法名 or 属性名:get|@ohos.url.d.ts| -|新增||模块名: ohos.url
类名: URLParams
方法名 or 属性名:has|@ohos.url.d.ts| -|新增||模块名: ohos.url
类名: URLParams
方法名 or 属性名:set|@ohos.url.d.ts| -|新增||模块名: ohos.url
类名: URLParams
方法名 or 属性名:sort|@ohos.url.d.ts| -|新增||模块名: ohos.url
类名: URLParams
方法名 or 属性名:keys|@ohos.url.d.ts| -|新增||模块名: ohos.url
类名: URLParams
方法名 or 属性名:values|@ohos.url.d.ts| -|新增||模块名: ohos.url
类名: URLParams
方法名 or 属性名:[Symbol.iterator]|@ohos.url.d.ts| -|新增||模块名: ohos.url
类名: URLParams
方法名 or 属性名:toString|@ohos.url.d.ts| -|新增||模块名:ohos.url
类名:URL
方法名 or 属性名:parseURL|@ohos.url.d.ts| -|新增||方法名 or 属性名:replaceAllElements
函数:replaceAllElements(callbackFn: (value: T, index?: number, arrlist?: ArrayList) => T,

thisArg?: Object): void;|@ohos.util.ArrayList.d.ts| -|新增||方法名 or 属性名:forEach
函数:forEach(callbackFn: (value: T, index?: number, arrlist?: ArrayList) => void,

thisArg?: Object): void;|@ohos.util.ArrayList.d.ts| -|新增||模块名:ohos.util
类名:util
方法名 or 属性名:format|@ohos.util.d.ts| -|新增||模块名:ohos.util
类名:util
方法名 or 属性名:errnoToString|@ohos.util.d.ts| -|新增||模块名:ohos.util
类名:TextDecoder
方法名 or 属性名:create|@ohos.util.d.ts| -|新增||方法名 or 属性名:encodeInto
函数:encodeInto(input?: string): Uint8Array;|@ohos.util.d.ts| -|新增||模块名:ohos.util
类名:TextEncoder
方法名 or 属性名:encodeIntoUint8Array|@ohos.util.d.ts| -|新增||模块名:ohos.util
类名:RationalNumber
方法名 or 属性名:parseRationalNumber|@ohos.util.d.ts| -|新增||模块名:ohos.util
类名:RationalNumber
方法名 or 属性名:compare|@ohos.util.d.ts| -|新增||模块名:ohos.util
类名:RationalNumber
方法名 or 属性名:getCommonFactor|@ohos.util.d.ts| -|新增||模块名: ohos.util
类名: LRUCache|@ohos.util.d.ts| -|新增||模块名: ohos.util
类名: LRUCache
方法名 or 属性名:ructor(capacity?|@ohos.util.d.ts| -|新增||模块名: ohos.util
类名: LRUCache
方法名 or 属性名:updateCapacity|@ohos.util.d.ts| -|新增||模块名: ohos.util
类名: LRUCache
方法名 or 属性名:toString|@ohos.util.d.ts| -|新增||模块名: ohos.util
类名: LRUCache
方法名 or 属性名:length|@ohos.util.d.ts| -|新增||模块名: ohos.util
类名: LRUCache
方法名 or 属性名:getCapacity|@ohos.util.d.ts| -|新增||模块名: ohos.util
类名: LRUCache
方法名 or 属性名:clear|@ohos.util.d.ts| -|新增||模块名: ohos.util
类名: LRUCache
方法名 or 属性名:getCreateCount|@ohos.util.d.ts| -|新增||模块名: ohos.util
类名: LRUCache
方法名 or 属性名:getMissCount|@ohos.util.d.ts| -|新增||模块名: ohos.util
类名: LRUCache
方法名 or 属性名:getRemovalCount|@ohos.util.d.ts| -|新增||模块名: ohos.util
类名: LRUCache
方法名 or 属性名:getMatchCount|@ohos.util.d.ts| -|新增||模块名: ohos.util
类名: LRUCache
方法名 or 属性名:getPutCount|@ohos.util.d.ts| -|新增||模块名: ohos.util
类名: LRUCache
方法名 or 属性名:isEmpty|@ohos.util.d.ts| -|新增||模块名: ohos.util
类名: LRUCache
方法名 or 属性名:get|@ohos.util.d.ts| -|新增||模块名: ohos.util
类名: LRUCache
方法名 or 属性名:put|@ohos.util.d.ts| -|新增||模块名: ohos.util
类名: LRUCache
方法名 or 属性名:values|@ohos.util.d.ts| -|新增||模块名: ohos.util
类名: LRUCache
方法名 or 属性名:keys|@ohos.util.d.ts| -|新增||模块名: ohos.util
类名: LRUCache
方法名 or 属性名:remove|@ohos.util.d.ts| -|新增||模块名: ohos.util
类名: LRUCache
方法名 or 属性名:afterRemoval|@ohos.util.d.ts| -|新增||模块名: ohos.util
类名: LRUCache
方法名 or 属性名:contains|@ohos.util.d.ts| -|新增||模块名: ohos.util
类名: LRUCache
方法名 or 属性名:createDefault|@ohos.util.d.ts| -|新增||模块名: ohos.util
类名: LRUCache
方法名 or 属性名:entries|@ohos.util.d.ts| -|新增||模块名: ohos.util
类名: LRUCache
方法名 or 属性名:[Symbol.iterator]|@ohos.util.d.ts| -|新增||模块名: ohos.util
类名: ScopeHelper|@ohos.util.d.ts| -|新增||模块名: ohos.util
类名: ScopeHelper
方法名 or 属性名:ructor(lowerObj|@ohos.util.d.ts| -|新增||模块名: ohos.util
类名: ScopeHelper
方法名 or 属性名:toString|@ohos.util.d.ts| -|新增||模块名: ohos.util
类名: ScopeHelper
方法名 or 属性名:intersect|@ohos.util.d.ts| -|新增||模块名: ohos.util
类名: ScopeHelper
方法名 or 属性名:intersect|@ohos.util.d.ts| -|新增||模块名: ohos.util
类名: ScopeHelper
方法名 or 属性名:getUpper|@ohos.util.d.ts| -|新增||模块名: ohos.util
类名: ScopeHelper
方法名 or 属性名:getLower|@ohos.util.d.ts| -|新增||模块名: ohos.util
类名: ScopeHelper
方法名 or 属性名:expand|@ohos.util.d.ts| -|新增||模块名: ohos.util
类名: ScopeHelper
方法名 or 属性名:expand|@ohos.util.d.ts| -|新增||模块名: ohos.util
类名: ScopeHelper
方法名 or 属性名:expand|@ohos.util.d.ts| -|新增||模块名: ohos.util
类名: ScopeHelper
方法名 or 属性名:contains|@ohos.util.d.ts| -|新增||模块名: ohos.util
类名: ScopeHelper
方法名 or 属性名:contains|@ohos.util.d.ts| -|新增||模块名: ohos.util
类名: ScopeHelper
方法名 or 属性名:clamp|@ohos.util.d.ts| -|新增||模块名: ohos.util
类名: Base64Helper|@ohos.util.d.ts| -|新增||模块名: ohos.util
类名: Base64Helper
方法名 or 属性名:encodeSync|@ohos.util.d.ts| -|新增||模块名: ohos.util
类名: Base64Helper
方法名 or 属性名:encodeToStringSync|@ohos.util.d.ts| -|新增||模块名: ohos.util
类名: Base64Helper
方法名 or 属性名:decodeSync|@ohos.util.d.ts| -|新增||模块名: ohos.util
类名: Base64Helper
方法名 or 属性名:encode|@ohos.util.d.ts| -|新增||模块名: ohos.util
类名: Base64Helper
方法名 or 属性名:encodeToString|@ohos.util.d.ts| -|新增||模块名: ohos.util
类名: Base64Helper
方法名 or 属性名:decode|@ohos.util.d.ts| -|新增||方法名 or 属性名:forEach
函数:forEach(callbackFn: (value: T, index?: number, deque?: Deque) => void,

thisArg?: Object): void;|@ohos.util.Deque.d.ts| -|新增||方法名 or 属性名:forEach
函数:forEach(callbackFn: (value?: V, key?: K, map?: HashMap) => void,

thisArg?: Object): void;|@ohos.util.HashMap.d.ts| -|新增||方法名 or 属性名:forEach
函数:forEach(callbackFn: (value?: T, key?: T, set?: HashSet) => void,

thisArg?: Object): void;|@ohos.util.HashSet.d.ts| -|新增||方法名 or 属性名:forEach
函数:forEach(callbackFn: (value?: V, key?: K, map?: LightWeightMap) => void,

thisArg?: Object): void;|@ohos.util.LightWeightMap.d.ts| -|新增||方法名 or 属性名:forEach
函数:forEach(callbackFn: (value?: T, key?: T, set?: LightWeightSet) => void,

thisArg?: Object): void;|@ohos.util.LightWeightSet.d.ts| -|新增||方法名 or 属性名:forEach
函数:forEach(callbackFn: (value: T, index?: number, LinkedList?: LinkedList) => void,

thisArg?: Object): void;|@ohos.util.LinkedList.d.ts| -|新增||方法名 or 属性名:forEach
函数:forEach(callbackFn: (value: T, index?: number, List?: List) => void,

thisArg?: Object): void;|@ohos.util.List.d.ts| -|新增||方法名 or 属性名:replaceAllElements
函数:replaceAllElements(callbackFn: (value: T, index?: number, list?: List) => T,

thisArg?: Object): void;|@ohos.util.List.d.ts| -|新增||方法名 or 属性名:forEach
函数:forEach(callbackFn: (value: T, index?: number, PlainArray?: PlainArray) => void,

thisArg?: Object): void;|@ohos.util.PlainArray.d.ts| -|新增||方法名 or 属性名:forEach
函数:forEach(callbackFn: (value: T, index?: number, Queue?: Queue) => void,

thisArg?: Object): void;|@ohos.util.Queue.d.ts| -|新增||方法名 or 属性名:forEach
函数:forEach(callbackFn: (value: T, index?: number, stack?: Stack) => void,

thisArg?: Object): void;|@ohos.util.Stack.d.ts| -|新增||方法名 or 属性名:forEach
函数:forEach(callbackFn: (value?: V, key?: K, map?: TreeMap) => void,

thisArg?: Object): void;|@ohos.util.TreeMap.d.ts| -|新增||方法名 or 属性名:forEach
函数:forEach(callbackFn: (value?: T, key?: T, set?: TreeSet) => void,

thisArg?: Object): void;|@ohos.util.TreeSet.d.ts| -|新增||方法名 or 属性名:replaceAllElements
函数:replaceAllElements(callbackFn: (value: T, index?: number, vector?: Vector) => T,

thisArg?: Object): void;|@ohos.util.Vector.d.ts| -|新增||方法名 or 属性名:forEach
函数:forEach(callbackFn: (value: T, index?: number, vector?: Vector) => void,

thisArg?: Object): void;|@ohos.util.Vector.d.ts| -|新增||模块名: ohos.worker
类名: MessageEvents|@ohos.worker.d.ts| -|新增||模块名: ohos.worker
类名: MessageEvents
方法名 or 属性名:data|@ohos.worker.d.ts| -|新增||模块名: ohos.worker
类名: WorkerEventListener|@ohos.worker.d.ts| -|新增||模块名: ohos.worker
类名: WorkerEventListener
方法名 or 属性名:WorkerEventListener|@ohos.worker.d.ts| -|新增||模块名: ohos.worker
类名: WorkerEventTarget|@ohos.worker.d.ts| -|新增||模块名: ohos.worker
类名: WorkerEventTarget
方法名 or 属性名:addEventListener|@ohos.worker.d.ts| -|新增||模块名: ohos.worker
类名: WorkerEventTarget
方法名 or 属性名:dispatchEvent|@ohos.worker.d.ts| -|新增||模块名: ohos.worker
类名: WorkerEventTarget
方法名 or 属性名:removeEventListener|@ohos.worker.d.ts| -|新增||模块名: ohos.worker
类名: WorkerEventTarget
方法名 or 属性名:removeAllListener|@ohos.worker.d.ts| -|新增||模块名: ohos.worker
类名: GlobalScope|@ohos.worker.d.ts| -|新增||模块名: ohos.worker
类名: GlobalScope
方法名 or 属性名:name|@ohos.worker.d.ts| -|新增||模块名: ohos.worker
类名: GlobalScope
方法名 or 属性名:onerror|@ohos.worker.d.ts| -|新增||模块名: ohos.worker
类名: GlobalScope
方法名 or 属性名:self|@ohos.worker.d.ts| -|新增||模块名: ohos.worker
类名: ThreadWorkerGlobalScope|@ohos.worker.d.ts| -|新增||模块名: ohos.worker
类名: ThreadWorkerGlobalScope
方法名 or 属性名:onmessage|@ohos.worker.d.ts| -|新增||模块名: ohos.worker
类名: ThreadWorkerGlobalScope
方法名 or 属性名:onmessageerror|@ohos.worker.d.ts| -|新增||模块名: ohos.worker
类名: ThreadWorkerGlobalScope
方法名 or 属性名:close|@ohos.worker.d.ts| -|新增||模块名: ohos.worker
类名: ThreadWorkerGlobalScope
方法名 or 属性名:postMessage|@ohos.worker.d.ts| -|新增||模块名: ohos.worker
类名: ThreadWorkerGlobalScope
方法名 or 属性名:postMessage|@ohos.worker.d.ts| -|新增||模块名: ohos.worker
类名: ThreadWorker|@ohos.worker.d.ts| -|新增||模块名: ohos.worker
类名: ThreadWorker
方法名 or 属性名:ructor(scriptURL|@ohos.worker.d.ts| -|新增||模块名: ohos.worker
类名: ThreadWorker
方法名 or 属性名:onexit|@ohos.worker.d.ts| -|新增||模块名: ohos.worker
类名: ThreadWorker
方法名 or 属性名:onerror|@ohos.worker.d.ts| -|新增||模块名: ohos.worker
类名: ThreadWorker
方法名 or 属性名:onmessage|@ohos.worker.d.ts| -|新增||模块名: ohos.worker
类名: ThreadWorker
方法名 or 属性名:onmessageerror|@ohos.worker.d.ts| -|新增||模块名: ohos.worker
类名: ThreadWorker
方法名 or 属性名:postMessage|@ohos.worker.d.ts| -|新增||模块名: ohos.worker
类名: ThreadWorker
方法名 or 属性名:postMessage|@ohos.worker.d.ts| -|新增||模块名: ohos.worker
类名: ThreadWorker
方法名 or 属性名:on|@ohos.worker.d.ts| -|新增||模块名: ohos.worker
类名: ThreadWorker
方法名 or 属性名:once|@ohos.worker.d.ts| -|新增||模块名: ohos.worker
类名: ThreadWorker
方法名 or 属性名:off|@ohos.worker.d.ts| -|新增||模块名: ohos.worker
类名: ThreadWorker
方法名 or 属性名:terminate|@ohos.worker.d.ts| -|新增||模块名: ohos.worker
类名: ThreadWorker
方法名 or 属性名:addEventListener|@ohos.worker.d.ts| -|新增||模块名: ohos.worker
类名: ThreadWorker
方法名 or 属性名:dispatchEvent|@ohos.worker.d.ts| -|新增||模块名: ohos.worker
类名: ThreadWorker
方法名 or 属性名:removeEventListener|@ohos.worker.d.ts| -|新增||模块名: ohos.worker
类名: ThreadWorker
方法名 or 属性名:removeAllListener|@ohos.worker.d.ts| -|新增||模块名: ohos.worker
类名: worker
方法名 or 属性名:workerPort|@ohos.worker.d.ts| -|删除|模块名:ohos.worker
类名:Worker
方法名 or 属性名:addEventListener||@ohos.worker.d.ts| -|删除|模块名:ohos.worker
类名:Worker
方法名 or 属性名:dispatchEvent||@ohos.worker.d.ts| -|删除|模块名:ohos.worker
类名:Worker
方法名 or 属性名:removeEventListener||@ohos.worker.d.ts| -|删除|模块名:ohos.worker
类名:Worker
方法名 or 属性名:removeAllListener||@ohos.worker.d.ts| +|新增|NA|模块名: ohos.process
类名: ProcessManager|@ohos.process.d.ts| +|新增|NA|模块名: ohos.process
类名: ProcessManager
方法名 or 属性名:isAppUid|@ohos.process.d.ts| +|新增|NA|模块名: ohos.process
类名: ProcessManager
方法名 or 属性名:getUidForName|@ohos.process.d.ts| +|新增|NA|模块名: ohos.process
类名: ProcessManager
方法名 or 属性名:getThreadPriority|@ohos.process.d.ts| +|新增|NA|模块名: ohos.process
类名: ProcessManager
方法名 or 属性名:getSystemConfig|@ohos.process.d.ts| +|新增|NA|模块名: ohos.process
类名: ProcessManager
方法名 or 属性名:getEnvironmentVar|@ohos.process.d.ts| +|新增|NA|模块名: ohos.process
类名: ProcessManager
方法名 or 属性名:exit|@ohos.process.d.ts| +|新增|NA|模块名: ohos.process
类名: ProcessManager
方法名 or 属性名:kill|@ohos.process.d.ts| +|新增|NA|方法名 or 属性名:forEach
函数:forEach(callbackFn: (value: string, key: string, searchParams: this) => void, thisArg?: Object): void;|@ohos.url.d.ts| +|新增|NA|模块名: ohos.url
类名: URLParams|@ohos.url.d.ts| +|新增|NA|模块名: ohos.url
类名: URLParams
方法名 or 属性名:ructor(init?|@ohos.url.d.ts| +|新增|NA|模块名: ohos.url
类名: URLParams
方法名 or 属性名:append|@ohos.url.d.ts| +|新增|NA|模块名: ohos.url
类名: URLParams
方法名 or 属性名:delete|@ohos.url.d.ts| +|新增|NA|模块名: ohos.url
类名: URLParams
方法名 or 属性名:getAll|@ohos.url.d.ts| +|新增|NA|模块名: ohos.url
类名: URLParams
方法名 or 属性名:entries|@ohos.url.d.ts| +|新增|NA|模块名: ohos.url
类名: URLParams
方法名 or 属性名:forEach|@ohos.url.d.ts| +|新增|NA|模块名: ohos.url
类名: URLParams
方法名 or 属性名:get|@ohos.url.d.ts| +|新增|NA|模块名: ohos.url
类名: URLParams
方法名 or 属性名:has|@ohos.url.d.ts| +|新增|NA|模块名: ohos.url
类名: URLParams
方法名 or 属性名:set|@ohos.url.d.ts| +|新增|NA|模块名: ohos.url
类名: URLParams
方法名 or 属性名:sort|@ohos.url.d.ts| +|新增|NA|模块名: ohos.url
类名: URLParams
方法名 or 属性名:keys|@ohos.url.d.ts| +|新增|NA|模块名: ohos.url
类名: URLParams
方法名 or 属性名:values|@ohos.url.d.ts| +|新增|NA|模块名: ohos.url
类名: URLParams
方法名 or 属性名:[Symbol.iterator]|@ohos.url.d.ts| +|新增|NA|模块名: ohos.url
类名: URLParams
方法名 or 属性名:toString|@ohos.url.d.ts| +|新增|NA|方法名 or 属性名:replaceAllElements
函数:replaceAllElements(callbackFn: (value: T, index?: number, arrlist?: ArrayList) => T,

thisArg?: Object): void;|@ohos.util.ArrayList.d.ts| +|新增|NA|方法名 or 属性名:forEach
函数:forEach(callbackFn: (value: T, index?: number, arrlist?: ArrayList) => void,

thisArg?: Object): void;|@ohos.util.ArrayList.d.ts| +|新增|NA|方法名 or 属性名:encodeInto
函数:encodeInto(input?: string): Uint8Array;|@ohos.util.d.ts| +|新增|NA|模块名: ohos.util
类名: LRUCache|@ohos.util.d.ts| +|新增|NA|模块名: ohos.util
类名: LRUCache
方法名 or 属性名:ructor(capacity?|@ohos.util.d.ts| +|新增|NA|模块名: ohos.util
类名: LRUCache
方法名 or 属性名:updateCapacity|@ohos.util.d.ts| +|新增|NA|模块名: ohos.util
类名: LRUCache
方法名 or 属性名:toString|@ohos.util.d.ts| +|新增|NA|模块名: ohos.util
类名: LRUCache
方法名 or 属性名:length|@ohos.util.d.ts| +|新增|NA|模块名: ohos.util
类名: LRUCache
方法名 or 属性名:getCapacity|@ohos.util.d.ts| +|新增|NA|模块名: ohos.util
类名: LRUCache
方法名 or 属性名:clear|@ohos.util.d.ts| +|新增|NA|模块名: ohos.util
类名: LRUCache
方法名 or 属性名:getCreateCount|@ohos.util.d.ts| +|新增|NA|模块名: ohos.util
类名: LRUCache
方法名 or 属性名:getMissCount|@ohos.util.d.ts| +|新增|NA|模块名: ohos.util
类名: LRUCache
方法名 or 属性名:getRemovalCount|@ohos.util.d.ts| +|新增|NA|模块名: ohos.util
类名: LRUCache
方法名 or 属性名:getMatchCount|@ohos.util.d.ts| +|新增|NA|模块名: ohos.util
类名: LRUCache
方法名 or 属性名:getPutCount|@ohos.util.d.ts| +|新增|NA|模块名: ohos.util
类名: LRUCache
方法名 or 属性名:isEmpty|@ohos.util.d.ts| +|新增|NA|模块名: ohos.util
类名: LRUCache
方法名 or 属性名:get|@ohos.util.d.ts| +|新增|NA|模块名: ohos.util
类名: LRUCache
方法名 or 属性名:put|@ohos.util.d.ts| +|新增|NA|模块名: ohos.util
类名: LRUCache
方法名 or 属性名:values|@ohos.util.d.ts| +|新增|NA|模块名: ohos.util
类名: LRUCache
方法名 or 属性名:keys|@ohos.util.d.ts| +|新增|NA|模块名: ohos.util
类名: LRUCache
方法名 or 属性名:remove|@ohos.util.d.ts| +|新增|NA|模块名: ohos.util
类名: LRUCache
方法名 or 属性名:afterRemoval|@ohos.util.d.ts| +|新增|NA|模块名: ohos.util
类名: LRUCache
方法名 or 属性名:contains|@ohos.util.d.ts| +|新增|NA|模块名: ohos.util
类名: LRUCache
方法名 or 属性名:createDefault|@ohos.util.d.ts| +|新增|NA|模块名: ohos.util
类名: LRUCache
方法名 or 属性名:entries|@ohos.util.d.ts| +|新增|NA|模块名: ohos.util
类名: LRUCache
方法名 or 属性名:[Symbol.iterator]|@ohos.util.d.ts| +|新增|NA|模块名: ohos.util
类名: ScopeHelper|@ohos.util.d.ts| +|新增|NA|模块名: ohos.util
类名: ScopeHelper
方法名 or 属性名:ructor(lowerObj|@ohos.util.d.ts| +|新增|NA|模块名: ohos.util
类名: ScopeHelper
方法名 or 属性名:toString|@ohos.util.d.ts| +|新增|NA|模块名: ohos.util
类名: ScopeHelper
方法名 or 属性名:intersect|@ohos.util.d.ts| +|新增|NA|模块名: ohos.util
类名: ScopeHelper
方法名 or 属性名:intersect|@ohos.util.d.ts| +|新增|NA|模块名: ohos.util
类名: ScopeHelper
方法名 or 属性名:getUpper|@ohos.util.d.ts| +|新增|NA|模块名: ohos.util
类名: ScopeHelper
方法名 or 属性名:getLower|@ohos.util.d.ts| +|新增|NA|模块名: ohos.util
类名: ScopeHelper
方法名 or 属性名:expand|@ohos.util.d.ts| +|新增|NA|模块名: ohos.util
类名: ScopeHelper
方法名 or 属性名:expand|@ohos.util.d.ts| +|新增|NA|模块名: ohos.util
类名: ScopeHelper
方法名 or 属性名:expand|@ohos.util.d.ts| +|新增|NA|模块名: ohos.util
类名: ScopeHelper
方法名 or 属性名:contains|@ohos.util.d.ts| +|新增|NA|模块名: ohos.util
类名: ScopeHelper
方法名 or 属性名:contains|@ohos.util.d.ts| +|新增|NA|模块名: ohos.util
类名: ScopeHelper
方法名 or 属性名:clamp|@ohos.util.d.ts| +|新增|NA|模块名: ohos.util
类名: Base64Helper|@ohos.util.d.ts| +|新增|NA|模块名: ohos.util
类名: Base64Helper
方法名 or 属性名:encodeSync|@ohos.util.d.ts| +|新增|NA|模块名: ohos.util
类名: Base64Helper
方法名 or 属性名:encodeToStringSync|@ohos.util.d.ts| +|新增|NA|模块名: ohos.util
类名: Base64Helper
方法名 or 属性名:decodeSync|@ohos.util.d.ts| +|新增|NA|模块名: ohos.util
类名: Base64Helper
方法名 or 属性名:encode|@ohos.util.d.ts| +|新增|NA|模块名: ohos.util
类名: Base64Helper
方法名 or 属性名:encodeToString|@ohos.util.d.ts| +|新增|NA|模块名: ohos.util
类名: Base64Helper
方法名 or 属性名:decode|@ohos.util.d.ts| +|新增|NA|方法名 or 属性名:forEach
函数:forEach(callbackFn: (value: T, index?: number, deque?: Deque) => void,

thisArg?: Object): void;|@ohos.util.Deque.d.ts| +|新增|NA|方法名 or 属性名:forEach
函数:forEach(callbackFn: (value?: V, key?: K, map?: HashMap) => void,

thisArg?: Object): void;|@ohos.util.HashMap.d.ts| +|新增|NA|方法名 or 属性名:forEach
函数:forEach(callbackFn: (value?: T, key?: T, set?: HashSet) => void,

thisArg?: Object): void;|@ohos.util.HashSet.d.ts| +|新增|NA|方法名 or 属性名:forEach
函数:forEach(callbackFn: (value?: V, key?: K, map?: LightWeightMap) => void,

thisArg?: Object): void;|@ohos.util.LightWeightMap.d.ts| +|新增|NA|方法名 or 属性名:forEach
函数:forEach(callbackFn: (value?: T, key?: T, set?: LightWeightSet) => void,

thisArg?: Object): void;|@ohos.util.LightWeightSet.d.ts| +|新增|NA|方法名 or 属性名:forEach
函数:forEach(callbackFn: (value: T, index?: number, LinkedList?: LinkedList) => void,

thisArg?: Object): void;|@ohos.util.LinkedList.d.ts| +|新增|NA|方法名 or 属性名:forEach
函数:forEach(callbackFn: (value: T, index?: number, List?: List) => void,

thisArg?: Object): void;|@ohos.util.List.d.ts| +|新增|NA|方法名 or 属性名:replaceAllElements
函数:replaceAllElements(callbackFn: (value: T, index?: number, list?: List) => T,

thisArg?: Object): void;|@ohos.util.List.d.ts| +|新增|NA|方法名 or 属性名:forEach
函数:forEach(callbackFn: (value: T, index?: number, PlainArray?: PlainArray) => void,

thisArg?: Object): void;|@ohos.util.PlainArray.d.ts| +|新增|NA|方法名 or 属性名:forEach
函数:forEach(callbackFn: (value: T, index?: number, Queue?: Queue) => void,

thisArg?: Object): void;|@ohos.util.Queue.d.ts| +|新增|NA|方法名 or 属性名:forEach
函数:forEach(callbackFn: (value: T, index?: number, stack?: Stack) => void,

thisArg?: Object): void;|@ohos.util.Stack.d.ts| +|新增|NA|方法名 or 属性名:forEach
函数:forEach(callbackFn: (value?: V, key?: K, map?: TreeMap) => void,

thisArg?: Object): void;|@ohos.util.TreeMap.d.ts| +|新增|NA|方法名 or 属性名:forEach
函数:forEach(callbackFn: (value?: T, key?: T, set?: TreeSet) => void,

thisArg?: Object): void;|@ohos.util.TreeSet.d.ts| +|新增|NA|方法名 or 属性名:replaceAllElements
函数:replaceAllElements(callbackFn: (value: T, index?: number, vector?: Vector) => T,

thisArg?: Object): void;|@ohos.util.Vector.d.ts| +|新增|NA|方法名 or 属性名:forEach
函数:forEach(callbackFn: (value: T, index?: number, vector?: Vector) => void,

thisArg?: Object): void;|@ohos.util.Vector.d.ts| +|新增|NA|模块名: ohos.worker
类名: MessageEvents|@ohos.worker.d.ts| +|新增|NA|模块名: ohos.worker
类名: MessageEvents
方法名 or 属性名:data|@ohos.worker.d.ts| +|新增|NA|模块名: ohos.worker
类名: WorkerEventListener|@ohos.worker.d.ts| +|新增|NA|模块名: ohos.worker
类名: WorkerEventListener
方法名 or 属性名:WorkerEventListener|@ohos.worker.d.ts| +|新增|NA|模块名: ohos.worker
类名: WorkerEventTarget|@ohos.worker.d.ts| +|新增|NA|模块名: ohos.worker
类名: WorkerEventTarget
方法名 or 属性名:addEventListener|@ohos.worker.d.ts| +|新增|NA|模块名: ohos.worker
类名: WorkerEventTarget
方法名 or 属性名:dispatchEvent|@ohos.worker.d.ts| +|新增|NA|模块名: ohos.worker
类名: WorkerEventTarget
方法名 or 属性名:removeEventListener|@ohos.worker.d.ts| +|新增|NA|模块名: ohos.worker
类名: WorkerEventTarget
方法名 or 属性名:removeAllListener|@ohos.worker.d.ts| +|新增|NA|模块名: ohos.worker
类名: GlobalScope|@ohos.worker.d.ts| +|新增|NA|模块名: ohos.worker
类名: GlobalScope
方法名 or 属性名:name|@ohos.worker.d.ts| +|新增|NA|模块名: ohos.worker
类名: GlobalScope
方法名 or 属性名:onerror|@ohos.worker.d.ts| +|新增|NA|模块名: ohos.worker
类名: GlobalScope
方法名 or 属性名:self|@ohos.worker.d.ts| +|新增|NA|模块名: ohos.worker
类名: ThreadWorkerGlobalScope|@ohos.worker.d.ts| +|新增|NA|模块名: ohos.worker
类名: ThreadWorkerGlobalScope
方法名 or 属性名:onmessage|@ohos.worker.d.ts| +|新增|NA|模块名: ohos.worker
类名: ThreadWorkerGlobalScope
方法名 or 属性名:onmessageerror|@ohos.worker.d.ts| +|新增|NA|模块名: ohos.worker
类名: ThreadWorkerGlobalScope
方法名 or 属性名:close|@ohos.worker.d.ts| +|新增|NA|模块名: ohos.worker
类名: ThreadWorkerGlobalScope
方法名 or 属性名:postMessage|@ohos.worker.d.ts| +|新增|NA|模块名: ohos.worker
类名: ThreadWorkerGlobalScope
方法名 or 属性名:postMessage|@ohos.worker.d.ts| +|新增|NA|模块名: ohos.worker
类名: ThreadWorker|@ohos.worker.d.ts| +|新增|NA|模块名: ohos.worker
类名: ThreadWorker
方法名 or 属性名:ructor(scriptURL|@ohos.worker.d.ts| +|新增|NA|模块名: ohos.worker
类名: ThreadWorker
方法名 or 属性名:onexit|@ohos.worker.d.ts| +|新增|NA|模块名: ohos.worker
类名: ThreadWorker
方法名 or 属性名:onerror|@ohos.worker.d.ts| +|新增|NA|模块名: ohos.worker
类名: ThreadWorker
方法名 or 属性名:onmessage|@ohos.worker.d.ts| +|新增|NA|模块名: ohos.worker
类名: ThreadWorker
方法名 or 属性名:onmessageerror|@ohos.worker.d.ts| +|新增|NA|模块名: ohos.worker
类名: ThreadWorker
方法名 or 属性名:postMessage|@ohos.worker.d.ts| +|新增|NA|模块名: ohos.worker
类名: ThreadWorker
方法名 or 属性名:postMessage|@ohos.worker.d.ts| +|新增|NA|模块名: ohos.worker
类名: ThreadWorker
方法名 or 属性名:on|@ohos.worker.d.ts| +|新增|NA|模块名: ohos.worker
类名: ThreadWorker
方法名 or 属性名:once|@ohos.worker.d.ts| +|新增|NA|模块名: ohos.worker
类名: ThreadWorker
方法名 or 属性名:off|@ohos.worker.d.ts| +|新增|NA|模块名: ohos.worker
类名: ThreadWorker
方法名 or 属性名:terminate|@ohos.worker.d.ts| +|新增|NA|模块名: ohos.worker
类名: ThreadWorker
方法名 or 属性名:addEventListener|@ohos.worker.d.ts| +|新增|NA|模块名: ohos.worker
类名: ThreadWorker
方法名 or 属性名:dispatchEvent|@ohos.worker.d.ts| +|新增|NA|模块名: ohos.worker
类名: ThreadWorker
方法名 or 属性名:removeEventListener|@ohos.worker.d.ts| +|新增|NA|模块名: ohos.worker
类名: ThreadWorker
方法名 or 属性名:removeAllListener|@ohos.worker.d.ts| +|新增|NA|模块名: ohos.worker
类名: worker
方法名 or 属性名:workerPort|@ohos.worker.d.ts| +|删除|模块名:ohos.worker
类名:Worker
方法名 or 属性名:addEventListener|NA|@ohos.worker.d.ts| +|删除|模块名:ohos.worker
类名:Worker
方法名 or 属性名:dispatchEvent|NA|@ohos.worker.d.ts| +|删除|模块名:ohos.worker
类名:Worker
方法名 or 属性名:removeEventListener|NA|@ohos.worker.d.ts| +|删除|模块名:ohos.worker
类名:Worker
方法名 or 属性名:removeAllListener|NA|@ohos.worker.d.ts| |废弃版本有变化|方法名 or 属性名:convert
废弃版本:N/A|方法名 or 属性名:convert
废弃版本:9
代替接口:ohos.convertxml.ConvertXML.convertToJSObject |@ohos.convertxml.d.ts| |废弃版本有变化|方法名 or 属性名:isAppUid
废弃版本:N/A|方法名 or 属性名:isAppUid
废弃版本:9
代替接口:ohos.process.ProcessManager.isAppUid |@ohos.process.d.ts| |废弃版本有变化|方法名 or 属性名:getUidForName
废弃版本:N/A|方法名 or 属性名:getUidForName
废弃版本:9
代替接口:ohos.process.ProcessManager.getUidForName |@ohos.process.d.ts| diff --git a/zh-cn/release-notes/api-diff/v3.2-beta4/js-apidiff-customization.md b/zh-cn/release-notes/api-diff/v3.2-beta4/js-apidiff-customization.md index 23be6883e42d61e3d0d479a13c24623bc12206b9..760d8c9c615cd758b2cbba2b93796b97f1bd99fa 100644 --- a/zh-cn/release-notes/api-diff/v3.2-beta4/js-apidiff-customization.md +++ b/zh-cn/release-notes/api-diff/v3.2-beta4/js-apidiff-customization.md @@ -1,78 +1,78 @@ -| 操作 | 新版本 | 旧版本 | d.ts文件 | +| 操作 | 旧版本 | 新版本 | d.ts文件 | | ---- | ------ | ------ | -------- | -|新增||模块名: ohos.enterprise.adminManager
类名: adminManager|@ohos.enterprise.adminManager.d.ts| -|新增||模块名: ohos.enterprise.adminManager
类名: EnterpriseInfo|@ohos.enterprise.adminManager.d.ts| -|新增||模块名: ohos.enterprise.adminManager
类名: EnterpriseInfo
方法名 or 属性名: name|@ohos.enterprise.adminManager.d.ts| -|新增||模块名: ohos.enterprise.adminManager
类名: EnterpriseInfo
方法名 or 属性名: description|@ohos.enterprise.adminManager.d.ts| -|新增||模块名: ohos.enterprise.adminManager
类名: AdminType|@ohos.enterprise.adminManager.d.ts| -|新增||模块名: ohos.enterprise.adminManager
类名: AdminType
方法名 or 属性名: ADMIN_TYPE_NORMAL|@ohos.enterprise.adminManager.d.ts| -|新增||模块名: ohos.enterprise.adminManager
类名: AdminType
方法名 or 属性名: ADMIN_TYPE_SUPER|@ohos.enterprise.adminManager.d.ts| -|新增||模块名: ohos.enterprise.adminManager
类名: ManagedEvent|@ohos.enterprise.adminManager.d.ts| -|新增||模块名: ohos.enterprise.adminManager
类名: ManagedEvent
方法名 or 属性名: MANAGED_EVENT_BUNDLE_ADDED|@ohos.enterprise.adminManager.d.ts| -|新增||模块名: ohos.enterprise.adminManager
类名: ManagedEvent
方法名 or 属性名: MANAGED_EVENT_BUNDLE_REMOVED|@ohos.enterprise.adminManager.d.ts| -|新增||模块名: ohos.enterprise.adminManager
类名: adminManager
方法名 or 属性名: enableAdmin|@ohos.enterprise.adminManager.d.ts| -|新增||模块名: ohos.enterprise.adminManager
类名: adminManager
方法名 or 属性名: enableAdmin|@ohos.enterprise.adminManager.d.ts| -|新增||模块名: ohos.enterprise.adminManager
类名: adminManager
方法名 or 属性名: enableAdmin|@ohos.enterprise.adminManager.d.ts| -|新增||模块名: ohos.enterprise.adminManager
类名: adminManager
方法名 or 属性名: disableAdmin|@ohos.enterprise.adminManager.d.ts| -|新增||模块名: ohos.enterprise.adminManager
类名: adminManager
方法名 or 属性名: disableAdmin|@ohos.enterprise.adminManager.d.ts| -|新增||模块名: ohos.enterprise.adminManager
类名: adminManager
方法名 or 属性名: disableAdmin|@ohos.enterprise.adminManager.d.ts| -|新增||模块名: ohos.enterprise.adminManager
类名: adminManager
方法名 or 属性名: disableSuperAdmin|@ohos.enterprise.adminManager.d.ts| -|新增||模块名: ohos.enterprise.adminManager
类名: adminManager
方法名 or 属性名: disableSuperAdmin|@ohos.enterprise.adminManager.d.ts| -|新增||模块名: ohos.enterprise.adminManager
类名: adminManager
方法名 or 属性名: isAdminEnabled|@ohos.enterprise.adminManager.d.ts| -|新增||模块名: ohos.enterprise.adminManager
类名: adminManager
方法名 or 属性名: isAdminEnabled|@ohos.enterprise.adminManager.d.ts| -|新增||模块名: ohos.enterprise.adminManager
类名: adminManager
方法名 or 属性名: isAdminEnabled|@ohos.enterprise.adminManager.d.ts| -|新增||模块名: ohos.enterprise.adminManager
类名: adminManager
方法名 or 属性名: getEnterpriseInfo|@ohos.enterprise.adminManager.d.ts| -|新增||模块名: ohos.enterprise.adminManager
类名: adminManager
方法名 or 属性名: getEnterpriseInfo|@ohos.enterprise.adminManager.d.ts| -|新增||模块名: ohos.enterprise.adminManager
类名: adminManager
方法名 or 属性名: setEnterpriseInfo|@ohos.enterprise.adminManager.d.ts| -|新增||模块名: ohos.enterprise.adminManager
类名: adminManager
方法名 or 属性名: setEnterpriseInfo|@ohos.enterprise.adminManager.d.ts| -|新增||模块名: ohos.enterprise.adminManager
类名: adminManager
方法名 or 属性名: isSuperAdmin|@ohos.enterprise.adminManager.d.ts| -|新增||模块名: ohos.enterprise.adminManager
类名: adminManager
方法名 or 属性名: isSuperAdmin|@ohos.enterprise.adminManager.d.ts| -|新增||模块名: ohos.enterprise.adminManager
类名: adminManager
方法名 or 属性名: subscribeManagedEvent|@ohos.enterprise.adminManager.d.ts| -|新增||模块名: ohos.enterprise.adminManager
类名: adminManager
方法名 or 属性名: subscribeManagedEvent|@ohos.enterprise.adminManager.d.ts| -|新增||模块名: ohos.enterprise.adminManager
类名: adminManager
方法名 or 属性名: unsubscribeManagedEvent|@ohos.enterprise.adminManager.d.ts| -|新增||模块名: ohos.enterprise.adminManager
类名: adminManager
方法名 or 属性名: unsubscribeManagedEvent|@ohos.enterprise.adminManager.d.ts| -|新增||模块名: ohos.enterprise.dateTimeManager
类名: dateTimeManager|@ohos.enterprise.dateTimeManager.d.ts| -|新增||模块名: ohos.enterprise.dateTimeManager
类名: dateTimeManager
方法名 or 属性名: setDateTime|@ohos.enterprise.dateTimeManager.d.ts| -|新增||模块名: ohos.enterprise.dateTimeManager
类名: dateTimeManager
方法名 or 属性名: setDateTime|@ohos.enterprise.dateTimeManager.d.ts| -|新增||模块名: ohos.enterprise.EnterpriseAdminExtensionAbility
类名: EnterpriseAdminExtensionAbility|@ohos.enterprise.EnterpriseAdminExtensionAbility.d.ts| -|新增||模块名: ohos.enterprise.EnterpriseAdminExtensionAbility
类名: EnterpriseAdminExtensionAbility
方法名 or 属性名: onAdminEnabled|@ohos.enterprise.EnterpriseAdminExtensionAbility.d.ts| -|新增||模块名: ohos.enterprise.EnterpriseAdminExtensionAbility
类名: EnterpriseAdminExtensionAbility
方法名 or 属性名: onAdminDisabled|@ohos.enterprise.EnterpriseAdminExtensionAbility.d.ts| -|新增||模块名: ohos.enterprise.EnterpriseAdminExtensionAbility
类名: EnterpriseAdminExtensionAbility
方法名 or 属性名: onBundleAdded|@ohos.enterprise.EnterpriseAdminExtensionAbility.d.ts| -|新增||模块名: ohos.enterprise.EnterpriseAdminExtensionAbility
类名: EnterpriseAdminExtensionAbility
方法名 or 属性名: onBundleRemoved|@ohos.enterprise.EnterpriseAdminExtensionAbility.d.ts| -|删除|模块名: ohos.EnterpriseAdminExtensionAbility
类名: EnterpriseAdminExtensionAbility||@ohos.EnterpriseAdminExtensionAbility.d.ts| -|删除|模块名: ohos.EnterpriseAdminExtensionAbility
类名: EnterpriseAdminExtensionAbility
方法名 or 属性名: onAdminEnabled||@ohos.EnterpriseAdminExtensionAbility.d.ts| -|删除|模块名: ohos.EnterpriseAdminExtensionAbility
类名: EnterpriseAdminExtensionAbility
方法名 or 属性名: onAdminDisabled||@ohos.EnterpriseAdminExtensionAbility.d.ts| -|删除|模块名: ohos.enterpriseDeviceManager
类名: enterpriseDeviceManager||@ohos.enterpriseDeviceManager.d.ts| -|删除|模块名: ohos.enterpriseDeviceManager
类名: EnterpriseInfo||@ohos.enterpriseDeviceManager.d.ts| -|删除|模块名: ohos.enterpriseDeviceManager
类名: EnterpriseInfo
方法名 or 属性名: name||@ohos.enterpriseDeviceManager.d.ts| -|删除|模块名: ohos.enterpriseDeviceManager
类名: EnterpriseInfo
方法名 or 属性名: description||@ohos.enterpriseDeviceManager.d.ts| -|删除|模块名: ohos.enterpriseDeviceManager
类名: AdminType||@ohos.enterpriseDeviceManager.d.ts| -|删除|模块名: ohos.enterpriseDeviceManager
类名: AdminType
方法名 or 属性名: ADMIN_TYPE_NORMAL||@ohos.enterpriseDeviceManager.d.ts| -|删除|模块名: ohos.enterpriseDeviceManager
类名: AdminType
方法名 or 属性名: ADMIN_TYPE_SUPER||@ohos.enterpriseDeviceManager.d.ts| -|删除|模块名: ohos.enterpriseDeviceManager
类名: enterpriseDeviceManager
方法名 or 属性名: enableAdmin||@ohos.enterpriseDeviceManager.d.ts| -|删除|模块名: ohos.enterpriseDeviceManager
类名: enterpriseDeviceManager
方法名 or 属性名: enableAdmin||@ohos.enterpriseDeviceManager.d.ts| -|删除|模块名: ohos.enterpriseDeviceManager
类名: enterpriseDeviceManager
方法名 or 属性名: enableAdmin||@ohos.enterpriseDeviceManager.d.ts| -|删除|模块名: ohos.enterpriseDeviceManager
类名: enterpriseDeviceManager
方法名 or 属性名: disableAdmin||@ohos.enterpriseDeviceManager.d.ts| -|删除|模块名: ohos.enterpriseDeviceManager
类名: enterpriseDeviceManager
方法名 or 属性名: disableAdmin||@ohos.enterpriseDeviceManager.d.ts| -|删除|模块名: ohos.enterpriseDeviceManager
类名: enterpriseDeviceManager
方法名 or 属性名: disableAdmin||@ohos.enterpriseDeviceManager.d.ts| -|删除|模块名: ohos.enterpriseDeviceManager
类名: enterpriseDeviceManager
方法名 or 属性名: disableSuperAdmin||@ohos.enterpriseDeviceManager.d.ts| -|删除|模块名: ohos.enterpriseDeviceManager
类名: enterpriseDeviceManager
方法名 or 属性名: disableSuperAdmin||@ohos.enterpriseDeviceManager.d.ts| -|删除|模块名: ohos.enterpriseDeviceManager
类名: enterpriseDeviceManager
方法名 or 属性名: isAdminEnabled||@ohos.enterpriseDeviceManager.d.ts| -|删除|模块名: ohos.enterpriseDeviceManager
类名: enterpriseDeviceManager
方法名 or 属性名: isAdminEnabled||@ohos.enterpriseDeviceManager.d.ts| -|删除|模块名: ohos.enterpriseDeviceManager
类名: enterpriseDeviceManager
方法名 or 属性名: isAdminEnabled||@ohos.enterpriseDeviceManager.d.ts| -|删除|模块名: ohos.enterpriseDeviceManager
类名: enterpriseDeviceManager
方法名 or 属性名: getEnterpriseInfo||@ohos.enterpriseDeviceManager.d.ts| -|删除|模块名: ohos.enterpriseDeviceManager
类名: enterpriseDeviceManager
方法名 or 属性名: getEnterpriseInfo||@ohos.enterpriseDeviceManager.d.ts| -|删除|模块名: ohos.enterpriseDeviceManager
类名: enterpriseDeviceManager
方法名 or 属性名: setEnterpriseInfo||@ohos.enterpriseDeviceManager.d.ts| -|删除|模块名: ohos.enterpriseDeviceManager
类名: enterpriseDeviceManager
方法名 or 属性名: setEnterpriseInfo||@ohos.enterpriseDeviceManager.d.ts| -|删除|模块名: ohos.enterpriseDeviceManager
类名: enterpriseDeviceManager
方法名 or 属性名: isSuperAdmin||@ohos.enterpriseDeviceManager.d.ts| -|删除|模块名: ohos.enterpriseDeviceManager
类名: enterpriseDeviceManager
方法名 or 属性名: isSuperAdmin||@ohos.enterpriseDeviceManager.d.ts| -|删除|模块名: ohos.enterpriseDeviceManager
类名: enterpriseDeviceManager
方法名 or 属性名: getDeviceSettingsManager||@ohos.enterpriseDeviceManager.d.ts| -|删除|模块名: ohos.enterpriseDeviceManager
类名: enterpriseDeviceManager
方法名 or 属性名: getDeviceSettingsManager||@ohos.enterpriseDeviceManager.d.ts| -|删除|模块名: DeviceSettingsManager
类名: DeviceSettingsManager||DeviceSettingsManager.d.ts| -|删除|模块名: DeviceSettingsManager
类名: DeviceSettingsManager
方法名 or 属性名: setDateTime||DeviceSettingsManager.d.ts| -|删除|模块名: DeviceSettingsManager
类名: DeviceSettingsManager
方法名 or 属性名: setDateTime||DeviceSettingsManager.d.ts| +|新增|NA|模块名: ohos.enterprise.adminManager
类名: adminManager|@ohos.enterprise.adminManager.d.ts| +|新增|NA|模块名: ohos.enterprise.adminManager
类名: EnterpriseInfo|@ohos.enterprise.adminManager.d.ts| +|新增|NA|模块名: ohos.enterprise.adminManager
类名: EnterpriseInfo
方法名 or 属性名: name|@ohos.enterprise.adminManager.d.ts| +|新增|NA|模块名: ohos.enterprise.adminManager
类名: EnterpriseInfo
方法名 or 属性名: description|@ohos.enterprise.adminManager.d.ts| +|新增|NA|模块名: ohos.enterprise.adminManager
类名: AdminType|@ohos.enterprise.adminManager.d.ts| +|新增|NA|模块名: ohos.enterprise.adminManager
类名: AdminType
方法名 or 属性名: ADMIN_TYPE_NORMAL|@ohos.enterprise.adminManager.d.ts| +|新增|NA|模块名: ohos.enterprise.adminManager
类名: AdminType
方法名 or 属性名: ADMIN_TYPE_SUPER|@ohos.enterprise.adminManager.d.ts| +|新增|NA|模块名: ohos.enterprise.adminManager
类名: ManagedEvent|@ohos.enterprise.adminManager.d.ts| +|新增|NA|模块名: ohos.enterprise.adminManager
类名: ManagedEvent
方法名 or 属性名: MANAGED_EVENT_BUNDLE_ADDED|@ohos.enterprise.adminManager.d.ts| +|新增|NA|模块名: ohos.enterprise.adminManager
类名: ManagedEvent
方法名 or 属性名: MANAGED_EVENT_BUNDLE_REMOVED|@ohos.enterprise.adminManager.d.ts| +|新增|NA|模块名: ohos.enterprise.adminManager
类名: adminManager
方法名 or 属性名: enableAdmin|@ohos.enterprise.adminManager.d.ts| +|新增|NA|模块名: ohos.enterprise.adminManager
类名: adminManager
方法名 or 属性名: enableAdmin|@ohos.enterprise.adminManager.d.ts| +|新增|NA|模块名: ohos.enterprise.adminManager
类名: adminManager
方法名 or 属性名: enableAdmin|@ohos.enterprise.adminManager.d.ts| +|新增|NA|模块名: ohos.enterprise.adminManager
类名: adminManager
方法名 or 属性名: disableAdmin|@ohos.enterprise.adminManager.d.ts| +|新增|NA|模块名: ohos.enterprise.adminManager
类名: adminManager
方法名 or 属性名: disableAdmin|@ohos.enterprise.adminManager.d.ts| +|新增|NA|模块名: ohos.enterprise.adminManager
类名: adminManager
方法名 or 属性名: disableAdmin|@ohos.enterprise.adminManager.d.ts| +|新增|NA|模块名: ohos.enterprise.adminManager
类名: adminManager
方法名 or 属性名: disableSuperAdmin|@ohos.enterprise.adminManager.d.ts| +|新增|NA|模块名: ohos.enterprise.adminManager
类名: adminManager
方法名 or 属性名: disableSuperAdmin|@ohos.enterprise.adminManager.d.ts| +|新增|NA|模块名: ohos.enterprise.adminManager
类名: adminManager
方法名 or 属性名: isAdminEnabled|@ohos.enterprise.adminManager.d.ts| +|新增|NA|模块名: ohos.enterprise.adminManager
类名: adminManager
方法名 or 属性名: isAdminEnabled|@ohos.enterprise.adminManager.d.ts| +|新增|NA|模块名: ohos.enterprise.adminManager
类名: adminManager
方法名 or 属性名: isAdminEnabled|@ohos.enterprise.adminManager.d.ts| +|新增|NA|模块名: ohos.enterprise.adminManager
类名: adminManager
方法名 or 属性名: getEnterpriseInfo|@ohos.enterprise.adminManager.d.ts| +|新增|NA|模块名: ohos.enterprise.adminManager
类名: adminManager
方法名 or 属性名: getEnterpriseInfo|@ohos.enterprise.adminManager.d.ts| +|新增|NA|模块名: ohos.enterprise.adminManager
类名: adminManager
方法名 or 属性名: setEnterpriseInfo|@ohos.enterprise.adminManager.d.ts| +|新增|NA|模块名: ohos.enterprise.adminManager
类名: adminManager
方法名 or 属性名: setEnterpriseInfo|@ohos.enterprise.adminManager.d.ts| +|新增|NA|模块名: ohos.enterprise.adminManager
类名: adminManager
方法名 or 属性名: isSuperAdmin|@ohos.enterprise.adminManager.d.ts| +|新增|NA|模块名: ohos.enterprise.adminManager
类名: adminManager
方法名 or 属性名: isSuperAdmin|@ohos.enterprise.adminManager.d.ts| +|新增|NA|模块名: ohos.enterprise.adminManager
类名: adminManager
方法名 or 属性名: subscribeManagedEvent|@ohos.enterprise.adminManager.d.ts| +|新增|NA|模块名: ohos.enterprise.adminManager
类名: adminManager
方法名 or 属性名: subscribeManagedEvent|@ohos.enterprise.adminManager.d.ts| +|新增|NA|模块名: ohos.enterprise.adminManager
类名: adminManager
方法名 or 属性名: unsubscribeManagedEvent|@ohos.enterprise.adminManager.d.ts| +|新增|NA|模块名: ohos.enterprise.adminManager
类名: adminManager
方法名 or 属性名: unsubscribeManagedEvent|@ohos.enterprise.adminManager.d.ts| +|新增|NA|模块名: ohos.enterprise.dateTimeManager
类名: dateTimeManager|@ohos.enterprise.dateTimeManager.d.ts| +|新增|NA|模块名: ohos.enterprise.dateTimeManager
类名: dateTimeManager
方法名 or 属性名: setDateTime|@ohos.enterprise.dateTimeManager.d.ts| +|新增|NA|模块名: ohos.enterprise.dateTimeManager
类名: dateTimeManager
方法名 or 属性名: setDateTime|@ohos.enterprise.dateTimeManager.d.ts| +|新增|NA|模块名: ohos.enterprise.EnterpriseAdminExtensionAbility
类名: EnterpriseAdminExtensionAbility|@ohos.enterprise.EnterpriseAdminExtensionAbility.d.ts| +|新增|NA|模块名: ohos.enterprise.EnterpriseAdminExtensionAbility
类名: EnterpriseAdminExtensionAbility
方法名 or 属性名: onAdminEnabled|@ohos.enterprise.EnterpriseAdminExtensionAbility.d.ts| +|新增|NA|模块名: ohos.enterprise.EnterpriseAdminExtensionAbility
类名: EnterpriseAdminExtensionAbility
方法名 or 属性名: onAdminDisabled|@ohos.enterprise.EnterpriseAdminExtensionAbility.d.ts| +|新增|NA|模块名: ohos.enterprise.EnterpriseAdminExtensionAbility
类名: EnterpriseAdminExtensionAbility
方法名 or 属性名: onBundleAdded|@ohos.enterprise.EnterpriseAdminExtensionAbility.d.ts| +|新增|NA|模块名: ohos.enterprise.EnterpriseAdminExtensionAbility
类名: EnterpriseAdminExtensionAbility
方法名 or 属性名: onBundleRemoved|@ohos.enterprise.EnterpriseAdminExtensionAbility.d.ts| +|删除|模块名: ohos.EnterpriseAdminExtensionAbility
类名: EnterpriseAdminExtensionAbility|NA|@ohos.EnterpriseAdminExtensionAbility.d.ts| +|删除|模块名: ohos.EnterpriseAdminExtensionAbility
类名: EnterpriseAdminExtensionAbility
方法名 or 属性名: onAdminEnabled|NA|@ohos.EnterpriseAdminExtensionAbility.d.ts| +|删除|模块名: ohos.EnterpriseAdminExtensionAbility
类名: EnterpriseAdminExtensionAbility
方法名 or 属性名: onAdminDisabled|NA|@ohos.EnterpriseAdminExtensionAbility.d.ts| +|删除|模块名: ohos.enterpriseDeviceManager
类名: enterpriseDeviceManager|NA|@ohos.enterpriseDeviceManager.d.ts| +|删除|模块名: ohos.enterpriseDeviceManager
类名: EnterpriseInfo|NA|@ohos.enterpriseDeviceManager.d.ts| +|删除|模块名: ohos.enterpriseDeviceManager
类名: EnterpriseInfo
方法名 or 属性名: name|NA|@ohos.enterpriseDeviceManager.d.ts| +|删除|模块名: ohos.enterpriseDeviceManager
类名: EnterpriseInfo
方法名 or 属性名: description|NA|@ohos.enterpriseDeviceManager.d.ts| +|删除|模块名: ohos.enterpriseDeviceManager
类名: AdminType|NA|@ohos.enterpriseDeviceManager.d.ts| +|删除|模块名: ohos.enterpriseDeviceManager
类名: AdminType
方法名 or 属性名: ADMIN_TYPE_NORMAL|NA|@ohos.enterpriseDeviceManager.d.ts| +|删除|模块名: ohos.enterpriseDeviceManager
类名: AdminType
方法名 or 属性名: ADMIN_TYPE_SUPER|NA|@ohos.enterpriseDeviceManager.d.ts| +|删除|模块名: ohos.enterpriseDeviceManager
类名: enterpriseDeviceManager
方法名 or 属性名: enableAdmin|NA|@ohos.enterpriseDeviceManager.d.ts| +|删除|模块名: ohos.enterpriseDeviceManager
类名: enterpriseDeviceManager
方法名 or 属性名: enableAdmin|NA|@ohos.enterpriseDeviceManager.d.ts| +|删除|模块名: ohos.enterpriseDeviceManager
类名: enterpriseDeviceManager
方法名 or 属性名: enableAdmin|NA|@ohos.enterpriseDeviceManager.d.ts| +|删除|模块名: ohos.enterpriseDeviceManager
类名: enterpriseDeviceManager
方法名 or 属性名: disableAdmin|NA|@ohos.enterpriseDeviceManager.d.ts| +|删除|模块名: ohos.enterpriseDeviceManager
类名: enterpriseDeviceManager
方法名 or 属性名: disableAdmin|NA|@ohos.enterpriseDeviceManager.d.ts| +|删除|模块名: ohos.enterpriseDeviceManager
类名: enterpriseDeviceManager
方法名 or 属性名: disableAdmin|NA|@ohos.enterpriseDeviceManager.d.ts| +|删除|模块名: ohos.enterpriseDeviceManager
类名: enterpriseDeviceManager
方法名 or 属性名: disableSuperAdmin|NA|@ohos.enterpriseDeviceManager.d.ts| +|删除|模块名: ohos.enterpriseDeviceManager
类名: enterpriseDeviceManager
方法名 or 属性名: disableSuperAdmin|NA|@ohos.enterpriseDeviceManager.d.ts| +|删除|模块名: ohos.enterpriseDeviceManager
类名: enterpriseDeviceManager
方法名 or 属性名: isAdminEnabled|NA|@ohos.enterpriseDeviceManager.d.ts| +|删除|模块名: ohos.enterpriseDeviceManager
类名: enterpriseDeviceManager
方法名 or 属性名: isAdminEnabled|NA|@ohos.enterpriseDeviceManager.d.ts| +|删除|模块名: ohos.enterpriseDeviceManager
类名: enterpriseDeviceManager
方法名 or 属性名: isAdminEnabled|NA|@ohos.enterpriseDeviceManager.d.ts| +|删除|模块名: ohos.enterpriseDeviceManager
类名: enterpriseDeviceManager
方法名 or 属性名: getEnterpriseInfo|NA|@ohos.enterpriseDeviceManager.d.ts| +|删除|模块名: ohos.enterpriseDeviceManager
类名: enterpriseDeviceManager
方法名 or 属性名: getEnterpriseInfo|NA|@ohos.enterpriseDeviceManager.d.ts| +|删除|模块名: ohos.enterpriseDeviceManager
类名: enterpriseDeviceManager
方法名 or 属性名: setEnterpriseInfo|NA|@ohos.enterpriseDeviceManager.d.ts| +|删除|模块名: ohos.enterpriseDeviceManager
类名: enterpriseDeviceManager
方法名 or 属性名: setEnterpriseInfo|NA|@ohos.enterpriseDeviceManager.d.ts| +|删除|模块名: ohos.enterpriseDeviceManager
类名: enterpriseDeviceManager
方法名 or 属性名: isSuperAdmin|NA|@ohos.enterpriseDeviceManager.d.ts| +|删除|模块名: ohos.enterpriseDeviceManager
类名: enterpriseDeviceManager
方法名 or 属性名: isSuperAdmin|NA|@ohos.enterpriseDeviceManager.d.ts| +|删除|模块名: ohos.enterpriseDeviceManager
类名: enterpriseDeviceManager
方法名 or 属性名: getDeviceSettingsManager|NA|@ohos.enterpriseDeviceManager.d.ts| +|删除|模块名: ohos.enterpriseDeviceManager
类名: enterpriseDeviceManager
方法名 or 属性名: getDeviceSettingsManager|NA|@ohos.enterpriseDeviceManager.d.ts| +|删除|模块名: DeviceSettingsManager
类名: DeviceSettingsManager|NA|DeviceSettingsManager.d.ts| +|删除|模块名: DeviceSettingsManager
类名: DeviceSettingsManager
方法名 or 属性名: setDateTime|NA|DeviceSettingsManager.d.ts| +|删除|模块名: DeviceSettingsManager
类名: DeviceSettingsManager
方法名 or 属性名: setDateTime|NA|DeviceSettingsManager.d.ts| |访问级别有变化|类名:configPolicy
访问级别:公开API|类名:configPolicy
访问级别:系统API|@ohos.configPolicy.d.ts| -|新增(错误码)||方法名 or 属性名:getOneCfgFile
错误码内容:401|@ohos.configPolicy.d.ts| -|新增(错误码)||方法名 or 属性名:getCfgFiles
错误码内容:401|@ohos.configPolicy.d.ts| -|新增(错误码)||方法名 or 属性名:getCfgDirList
错误码内容:401|@ohos.configPolicy.d.ts| +|新增(错误码)|NA|方法名 or 属性名:getOneCfgFile
错误码内容:401|@ohos.configPolicy.d.ts| +|新增(错误码)|NA|方法名 or 属性名:getCfgFiles
错误码内容:401|@ohos.configPolicy.d.ts| +|新增(错误码)|NA|方法名 or 属性名:getCfgDirList
错误码内容:401|@ohos.configPolicy.d.ts| |访问级别有变化|类名:configPolicy
访问级别:公开API|类名:configPolicy
访问级别:系统API|@ohos.configPolicy.d.ts| diff --git a/zh-cn/release-notes/api-diff/v3.2-beta4/js-apidiff-dfx.md b/zh-cn/release-notes/api-diff/v3.2-beta4/js-apidiff-dfx.md index f70afc64d7c00c1519b27daa284ba7a375d068ce..900f0baeac4f115bb539eec2ef7a0da8dda67869 100644 --- a/zh-cn/release-notes/api-diff/v3.2-beta4/js-apidiff-dfx.md +++ b/zh-cn/release-notes/api-diff/v3.2-beta4/js-apidiff-dfx.md @@ -1,96 +1,88 @@ -| 操作 | 新版本 | 旧版本 | d.ts文件 | +| 操作 | 旧版本 | 新版本 | d.ts文件 | | ---- | ------ | ------ | -------- | -|新增||模块名:ohos.faultLogger
类名:FaultLogger
方法名 or 属性名:query|@ohos.faultLogger.d.ts| -|新增||模块名:ohos.faultLogger
类名:FaultLogger
方法名 or 属性名:query|@ohos.faultLogger.d.ts| -|新增||模块名:ohos.hichecker
类名:hichecker
方法名 or 属性名:addCheckRule|@ohos.hichecker.d.ts| -|新增||模块名:ohos.hichecker
类名:hichecker
方法名 or 属性名:removeCheckRule|@ohos.hichecker.d.ts| -|新增||模块名:ohos.hichecker
类名:hichecker
方法名 or 属性名:containsCheckRule|@ohos.hichecker.d.ts| -|新增||模块名:ohos.hidebug
类名:hidebug
方法名 or 属性名:startJsCpuProfiling|@ohos.hidebug.d.ts| -|新增||模块名:ohos.hidebug
类名:hidebug
方法名 or 属性名:stopJsCpuProfiling|@ohos.hidebug.d.ts| -|新增||模块名:ohos.hidebug
类名:hidebug
方法名 or 属性名:dumpJsHeapData|@ohos.hidebug.d.ts| -|新增||方法名 or 属性名:getServiceDump
函数:function getServiceDump(serviceid : number, fd : number, args : Array) : void;|@ohos.hidebug.d.ts| -|新增||方法名 or 属性名:onQuery
函数:onQuery: (infos: SysEventInfo[]) => void;|@ohos.hiSysEvent.d.ts| -|新增||方法名 or 属性名:addWatcher
函数:function addWatcher(watcher: Watcher): void;|@ohos.hiSysEvent.d.ts| -|新增||方法名 or 属性名:removeWatcher
函数:function removeWatcher(watcher: Watcher): void;|@ohos.hiSysEvent.d.ts| -|新增||方法名 or 属性名:query
函数:function query(queryArg: QueryArg, rules: QueryRule[], querier: Querier): void;|@ohos.hiSysEvent.d.ts| -|新增||模块名: ohos.hiviewdfx.hiAppEvent
类名: hiAppEvent|@ohos.hiviewdfx.hiAppEvent.d.ts| -|新增||模块名: ohos.hiviewdfx.hiAppEvent
类名: EventType|@ohos.hiviewdfx.hiAppEvent.d.ts| -|新增||模块名: ohos.hiviewdfx.hiAppEvent
类名: EventType
方法名 or 属性名: FAULT|@ohos.hiviewdfx.hiAppEvent.d.ts| -|新增||模块名: ohos.hiviewdfx.hiAppEvent
类名: EventType
方法名 or 属性名: STATISTIC|@ohos.hiviewdfx.hiAppEvent.d.ts| -|新增||模块名: ohos.hiviewdfx.hiAppEvent
类名: EventType
方法名 or 属性名: SECURITY|@ohos.hiviewdfx.hiAppEvent.d.ts| -|新增||模块名: ohos.hiviewdfx.hiAppEvent
类名: EventType
方法名 or 属性名: BEHAVIOR|@ohos.hiviewdfx.hiAppEvent.d.ts| -|新增||模块名: ohos.hiviewdfx.hiAppEvent
类名: Event|@ohos.hiviewdfx.hiAppEvent.d.ts| -|新增||模块名: ohos.hiviewdfx.hiAppEvent
类名: Event
方法名 or 属性名: USER_LOGIN|@ohos.hiviewdfx.hiAppEvent.d.ts| -|新增||模块名: ohos.hiviewdfx.hiAppEvent
类名: Event
方法名 or 属性名: USER_LOGOUT|@ohos.hiviewdfx.hiAppEvent.d.ts| -|新增||模块名: ohos.hiviewdfx.hiAppEvent
类名: Event
方法名 or 属性名: DISTRIBUTED_SERVICE_START|@ohos.hiviewdfx.hiAppEvent.d.ts| -|新增||模块名: ohos.hiviewdfx.hiAppEvent
类名: Param|@ohos.hiviewdfx.hiAppEvent.d.ts| -|新增||模块名: ohos.hiviewdfx.hiAppEvent
类名: Param
方法名 or 属性名: USER_ID|@ohos.hiviewdfx.hiAppEvent.d.ts| -|新增||模块名: ohos.hiviewdfx.hiAppEvent
类名: Param
方法名 or 属性名: DISTRIBUTED_SERVICE_NAME|@ohos.hiviewdfx.hiAppEvent.d.ts| -|新增||模块名: ohos.hiviewdfx.hiAppEvent
类名: Param
方法名 or 属性名: DISTRIBUTED_SERVICE_INSTANCE_ID|@ohos.hiviewdfx.hiAppEvent.d.ts| -|新增||模块名: ohos.hiviewdfx.hiAppEvent
类名: hiAppEvent
方法名 or 属性名: configure|@ohos.hiviewdfx.hiAppEvent.d.ts| -|新增||模块名: ohos.hiviewdfx.hiAppEvent
类名: ConfigOption|@ohos.hiviewdfx.hiAppEvent.d.ts| -|新增||模块名: ohos.hiviewdfx.hiAppEvent
类名: ConfigOption
方法名 or 属性名: disable|@ohos.hiviewdfx.hiAppEvent.d.ts| -|新增||模块名: ohos.hiviewdfx.hiAppEvent
类名: ConfigOption
方法名 or 属性名: maxStorage|@ohos.hiviewdfx.hiAppEvent.d.ts| -|新增||模块名: ohos.hiviewdfx.hiAppEvent
类名: AppEventInfo|@ohos.hiviewdfx.hiAppEvent.d.ts| -|新增||模块名: ohos.hiviewdfx.hiAppEvent
类名: AppEventInfo
方法名 or 属性名: domain|@ohos.hiviewdfx.hiAppEvent.d.ts| -|新增||模块名: ohos.hiviewdfx.hiAppEvent
类名: AppEventInfo
方法名 or 属性名: name|@ohos.hiviewdfx.hiAppEvent.d.ts| -|新增||模块名: ohos.hiviewdfx.hiAppEvent
类名: AppEventInfo
方法名 or 属性名: eventType|@ohos.hiviewdfx.hiAppEvent.d.ts| -|新增||模块名: ohos.hiviewdfx.hiAppEvent
类名: AppEventInfo
方法名 or 属性名: params|@ohos.hiviewdfx.hiAppEvent.d.ts| -|新增||模块名: ohos.hiviewdfx.hiAppEvent
类名: hiAppEvent
方法名 or 属性名: write|@ohos.hiviewdfx.hiAppEvent.d.ts| -|新增||模块名: ohos.hiviewdfx.hiAppEvent
类名: hiAppEvent
方法名 or 属性名: write|@ohos.hiviewdfx.hiAppEvent.d.ts| -|新增||模块名: ohos.hiviewdfx.hiAppEvent
类名: AppEventPackage|@ohos.hiviewdfx.hiAppEvent.d.ts| -|新增||模块名: ohos.hiviewdfx.hiAppEvent
类名: AppEventPackage
方法名 or 属性名: packageId|@ohos.hiviewdfx.hiAppEvent.d.ts| -|新增||模块名: ohos.hiviewdfx.hiAppEvent
类名: AppEventPackage
方法名 or 属性名: row|@ohos.hiviewdfx.hiAppEvent.d.ts| -|新增||模块名: ohos.hiviewdfx.hiAppEvent
类名: AppEventPackage
方法名 or 属性名: size|@ohos.hiviewdfx.hiAppEvent.d.ts| -|新增||模块名: ohos.hiviewdfx.hiAppEvent
类名: AppEventPackage
方法名 or 属性名: data|@ohos.hiviewdfx.hiAppEvent.d.ts| -|新增||模块名: ohos.hiviewdfx.hiAppEvent
类名: AppEventPackageHolder|@ohos.hiviewdfx.hiAppEvent.d.ts| -|新增||模块名: ohos.hiviewdfx.hiAppEvent
类名: AppEventPackageHolder
方法名 or 属性名: ructor(watcherName|@ohos.hiviewdfx.hiAppEvent.d.ts| -|新增||模块名: ohos.hiviewdfx.hiAppEvent
类名: AppEventPackageHolder
方法名 or 属性名: setSize|@ohos.hiviewdfx.hiAppEvent.d.ts| -|新增||模块名: ohos.hiviewdfx.hiAppEvent
类名: AppEventPackageHolder
方法名 or 属性名: takeNext|@ohos.hiviewdfx.hiAppEvent.d.ts| -|新增||模块名: ohos.hiviewdfx.hiAppEvent
类名: TriggerCondition|@ohos.hiviewdfx.hiAppEvent.d.ts| -|新增||模块名: ohos.hiviewdfx.hiAppEvent
类名: TriggerCondition
方法名 or 属性名: row|@ohos.hiviewdfx.hiAppEvent.d.ts| -|新增||模块名: ohos.hiviewdfx.hiAppEvent
类名: TriggerCondition
方法名 or 属性名: size|@ohos.hiviewdfx.hiAppEvent.d.ts| -|新增||模块名: ohos.hiviewdfx.hiAppEvent
类名: TriggerCondition
方法名 or 属性名: timeOut|@ohos.hiviewdfx.hiAppEvent.d.ts| -|新增||模块名: ohos.hiviewdfx.hiAppEvent
类名: AppEventFilter|@ohos.hiviewdfx.hiAppEvent.d.ts| -|新增||模块名: ohos.hiviewdfx.hiAppEvent
类名: AppEventFilter
方法名 or 属性名: domain|@ohos.hiviewdfx.hiAppEvent.d.ts| -|新增||模块名: ohos.hiviewdfx.hiAppEvent
类名: AppEventFilter
方法名 or 属性名: eventTypes|@ohos.hiviewdfx.hiAppEvent.d.ts| -|新增||模块名: ohos.hiviewdfx.hiAppEvent
类名: Watcher|@ohos.hiviewdfx.hiAppEvent.d.ts| -|新增||模块名: ohos.hiviewdfx.hiAppEvent
类名: Watcher
方法名 or 属性名: name|@ohos.hiviewdfx.hiAppEvent.d.ts| -|新增||模块名: ohos.hiviewdfx.hiAppEvent
类名: Watcher
方法名 or 属性名: triggerCondition|@ohos.hiviewdfx.hiAppEvent.d.ts| -|新增||模块名: ohos.hiviewdfx.hiAppEvent
类名: Watcher
方法名 or 属性名: appEventFilters|@ohos.hiviewdfx.hiAppEvent.d.ts| -|新增||模块名: ohos.hiviewdfx.hiAppEvent
类名: Watcher
方法名 or 属性名: onTrigger|@ohos.hiviewdfx.hiAppEvent.d.ts| -|新增||模块名: ohos.hiviewdfx.hiAppEvent
类名: hiAppEvent
方法名 or 属性名: addWatcher|@ohos.hiviewdfx.hiAppEvent.d.ts| -|新增||模块名: ohos.hiviewdfx.hiAppEvent
类名: hiAppEvent
方法名 or 属性名: removeWatcher|@ohos.hiviewdfx.hiAppEvent.d.ts| -|新增||模块名: ohos.hiviewdfx.hiAppEvent
类名: hiAppEvent
方法名 or 属性名: clearData|@ohos.hiviewdfx.hiAppEvent.d.ts| -|删除|模块名: ohos.hiAppEvent
类名: AppEventInfo||@ohos.hiAppEvent.d.ts| -|删除|模块名: ohos.hiAppEvent
类名: AppEventInfo
方法名 or 属性名:domain||@ohos.hiAppEvent.d.ts| -|删除|模块名: ohos.hiAppEvent
类名: AppEventInfo
方法名 or 属性名:name||@ohos.hiAppEvent.d.ts| -|删除|模块名: ohos.hiAppEvent
类名: AppEventInfo
方法名 or 属性名:eventType||@ohos.hiAppEvent.d.ts| -|删除|模块名: ohos.hiAppEvent
类名: AppEventInfo
方法名 or 属性名:params||@ohos.hiAppEvent.d.ts| -|删除|模块名: ohos.hiAppEvent
类名: AppEventPackage||@ohos.hiAppEvent.d.ts| -|删除|模块名: ohos.hiAppEvent
类名: AppEventPackage
方法名 or 属性名:packageId||@ohos.hiAppEvent.d.ts| -|删除|模块名: ohos.hiAppEvent
类名: AppEventPackage
方法名 or 属性名:row||@ohos.hiAppEvent.d.ts| -|删除|模块名: ohos.hiAppEvent
类名: AppEventPackage
方法名 or 属性名:size||@ohos.hiAppEvent.d.ts| -|删除|模块名: ohos.hiAppEvent
类名: AppEventPackage
方法名 or 属性名:data||@ohos.hiAppEvent.d.ts| -|删除|模块名: ohos.hiAppEvent
类名: AppEventPackageHolder||@ohos.hiAppEvent.d.ts| -|删除|模块名: ohos.hiAppEvent
类名: AppEventPackageHolder
方法名 or 属性名:ructor(watcherName||@ohos.hiAppEvent.d.ts| -|删除|模块名: ohos.hiAppEvent
类名: AppEventPackageHolder
方法名 or 属性名:setSize||@ohos.hiAppEvent.d.ts| -|删除|模块名: ohos.hiAppEvent
类名: AppEventPackageHolder
方法名 or 属性名:takeNext||@ohos.hiAppEvent.d.ts| -|删除|模块名: ohos.hiAppEvent
类名: TriggerCondition||@ohos.hiAppEvent.d.ts| -|删除|模块名: ohos.hiAppEvent
类名: TriggerCondition
方法名 or 属性名:row||@ohos.hiAppEvent.d.ts| -|删除|模块名: ohos.hiAppEvent
类名: TriggerCondition
方法名 or 属性名:size||@ohos.hiAppEvent.d.ts| -|删除|模块名: ohos.hiAppEvent
类名: TriggerCondition
方法名 or 属性名:timeOut||@ohos.hiAppEvent.d.ts| -|删除|模块名: ohos.hiAppEvent
类名: AppEventFilter||@ohos.hiAppEvent.d.ts| -|删除|模块名: ohos.hiAppEvent
类名: AppEventFilter
方法名 or 属性名:domain||@ohos.hiAppEvent.d.ts| -|删除|模块名: ohos.hiAppEvent
类名: AppEventFilter
方法名 or 属性名:eventTypes||@ohos.hiAppEvent.d.ts| -|删除|模块名: ohos.hiAppEvent
类名: Watcher||@ohos.hiAppEvent.d.ts| -|删除|模块名: ohos.hiAppEvent
类名: Watcher
方法名 or 属性名:name||@ohos.hiAppEvent.d.ts| -|删除|模块名: ohos.hiAppEvent
类名: Watcher
方法名 or 属性名:triggerCondition||@ohos.hiAppEvent.d.ts| -|删除|模块名: ohos.hiAppEvent
类名: Watcher
方法名 or 属性名:appEventFilters||@ohos.hiAppEvent.d.ts| -|删除|模块名: ohos.hiAppEvent
类名: Watcher
方法名 or 属性名:onTrigger||@ohos.hiAppEvent.d.ts| -|删除|模块名:ohos.hiAppEvent
类名:hiAppEvent
方法名 or 属性名:addWatcher||@ohos.hiAppEvent.d.ts| -|删除|模块名:ohos.hiAppEvent
类名:hiAppEvent
方法名 or 属性名:removeWatcher||@ohos.hiAppEvent.d.ts| -|删除|模块名:ohos.hiAppEvent
类名:hiAppEvent
方法名 or 属性名:clearData||@ohos.hiAppEvent.d.ts| +|新增|NA|方法名 or 属性名:getServiceDump
函数:function getServiceDump(serviceid : number, fd : number, args : Array) : void;|@ohos.hidebug.d.ts| +|新增|NA|方法名 or 属性名:onQuery
函数:onQuery: (infos: SysEventInfo[]) => void;|@ohos.hiSysEvent.d.ts| +|新增|NA|方法名 or 属性名:addWatcher
函数:function addWatcher(watcher: Watcher): void;|@ohos.hiSysEvent.d.ts| +|新增|NA|方法名 or 属性名:removeWatcher
函数:function removeWatcher(watcher: Watcher): void;|@ohos.hiSysEvent.d.ts| +|新增|NA|方法名 or 属性名:query
函数:function query(queryArg: QueryArg, rules: QueryRule[], querier: Querier): void;|@ohos.hiSysEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: hiAppEvent|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: EventType|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: EventType
方法名 or 属性名: FAULT|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: EventType
方法名 or 属性名: STATISTIC|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: EventType
方法名 or 属性名: SECURITY|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: EventType
方法名 or 属性名: BEHAVIOR|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: Event|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: Event
方法名 or 属性名: USER_LOGIN|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: Event
方法名 or 属性名: USER_LOGOUT|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: Event
方法名 or 属性名: DISTRIBUTED_SERVICE_START|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: Param|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: Param
方法名 or 属性名: USER_ID|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: Param
方法名 or 属性名: DISTRIBUTED_SERVICE_NAME|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: Param
方法名 or 属性名: DISTRIBUTED_SERVICE_INSTANCE_ID|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: hiAppEvent
方法名 or 属性名: configure|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: ConfigOption|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: ConfigOption
方法名 or 属性名: disable|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: ConfigOption
方法名 or 属性名: maxStorage|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: AppEventInfo|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: AppEventInfo
方法名 or 属性名: domain|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: AppEventInfo
方法名 or 属性名: name|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: AppEventInfo
方法名 or 属性名: eventType|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: AppEventInfo
方法名 or 属性名: params|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: hiAppEvent
方法名 or 属性名: write|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: hiAppEvent
方法名 or 属性名: write|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: AppEventPackage|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: AppEventPackage
方法名 or 属性名: packageId|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: AppEventPackage
方法名 or 属性名: row|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: AppEventPackage
方法名 or 属性名: size|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: AppEventPackage
方法名 or 属性名: data|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: AppEventPackageHolder|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: AppEventPackageHolder
方法名 or 属性名: ructor(watcherName|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: AppEventPackageHolder
方法名 or 属性名: setSize|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: AppEventPackageHolder
方法名 or 属性名: takeNext|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: TriggerCondition|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: TriggerCondition
方法名 or 属性名: row|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: TriggerCondition
方法名 or 属性名: size|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: TriggerCondition
方法名 or 属性名: timeOut|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: AppEventFilter|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: AppEventFilter
方法名 or 属性名: domain|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: AppEventFilter
方法名 or 属性名: eventTypes|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: Watcher|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: Watcher
方法名 or 属性名: name|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: Watcher
方法名 or 属性名: triggerCondition|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: Watcher
方法名 or 属性名: appEventFilters|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: Watcher
方法名 or 属性名: onTrigger|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: hiAppEvent
方法名 or 属性名: addWatcher|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: hiAppEvent
方法名 or 属性名: removeWatcher|@ohos.hiviewdfx.hiAppEvent.d.ts| +|新增|NA|模块名: ohos.hiviewdfx.hiAppEvent
类名: hiAppEvent
方法名 or 属性名: clearData|@ohos.hiviewdfx.hiAppEvent.d.ts| +|删除|模块名: ohos.hiAppEvent
类名: AppEventInfo|NA|@ohos.hiAppEvent.d.ts| +|删除|模块名: ohos.hiAppEvent
类名: AppEventInfo
方法名 or 属性名:domain|NA|@ohos.hiAppEvent.d.ts| +|删除|模块名: ohos.hiAppEvent
类名: AppEventInfo
方法名 or 属性名:name|NA|@ohos.hiAppEvent.d.ts| +|删除|模块名: ohos.hiAppEvent
类名: AppEventInfo
方法名 or 属性名:eventType|NA|@ohos.hiAppEvent.d.ts| +|删除|模块名: ohos.hiAppEvent
类名: AppEventInfo
方法名 or 属性名:params|NA|@ohos.hiAppEvent.d.ts| +|删除|模块名: ohos.hiAppEvent
类名: AppEventPackage|NA|@ohos.hiAppEvent.d.ts| +|删除|模块名: ohos.hiAppEvent
类名: AppEventPackage
方法名 or 属性名:packageId|NA|@ohos.hiAppEvent.d.ts| +|删除|模块名: ohos.hiAppEvent
类名: AppEventPackage
方法名 or 属性名:row|NA|@ohos.hiAppEvent.d.ts| +|删除|模块名: ohos.hiAppEvent
类名: AppEventPackage
方法名 or 属性名:size|NA|@ohos.hiAppEvent.d.ts| +|删除|模块名: ohos.hiAppEvent
类名: AppEventPackage
方法名 or 属性名:data|NA|@ohos.hiAppEvent.d.ts| +|删除|模块名: ohos.hiAppEvent
类名: AppEventPackageHolder|NA|@ohos.hiAppEvent.d.ts| +|删除|模块名: ohos.hiAppEvent
类名: AppEventPackageHolder
方法名 or 属性名:ructor(watcherName|NA|@ohos.hiAppEvent.d.ts| +|删除|模块名: ohos.hiAppEvent
类名: AppEventPackageHolder
方法名 or 属性名:setSize|NA|@ohos.hiAppEvent.d.ts| +|删除|模块名: ohos.hiAppEvent
类名: AppEventPackageHolder
方法名 or 属性名:takeNext|NA|@ohos.hiAppEvent.d.ts| +|删除|模块名: ohos.hiAppEvent
类名: TriggerCondition|NA|@ohos.hiAppEvent.d.ts| +|删除|模块名: ohos.hiAppEvent
类名: TriggerCondition
方法名 or 属性名:row|NA|@ohos.hiAppEvent.d.ts| +|删除|模块名: ohos.hiAppEvent
类名: TriggerCondition
方法名 or 属性名:size|NA|@ohos.hiAppEvent.d.ts| +|删除|模块名: ohos.hiAppEvent
类名: TriggerCondition
方法名 or 属性名:timeOut|NA|@ohos.hiAppEvent.d.ts| +|删除|模块名: ohos.hiAppEvent
类名: AppEventFilter|NA|@ohos.hiAppEvent.d.ts| +|删除|模块名: ohos.hiAppEvent
类名: AppEventFilter
方法名 or 属性名:domain|NA|@ohos.hiAppEvent.d.ts| +|删除|模块名: ohos.hiAppEvent
类名: AppEventFilter
方法名 or 属性名:eventTypes|NA|@ohos.hiAppEvent.d.ts| +|删除|模块名: ohos.hiAppEvent
类名: Watcher|NA|@ohos.hiAppEvent.d.ts| +|删除|模块名: ohos.hiAppEvent
类名: Watcher
方法名 or 属性名:name|NA|@ohos.hiAppEvent.d.ts| +|删除|模块名: ohos.hiAppEvent
类名: Watcher
方法名 or 属性名:triggerCondition|NA|@ohos.hiAppEvent.d.ts| +|删除|模块名: ohos.hiAppEvent
类名: Watcher
方法名 or 属性名:appEventFilters|NA|@ohos.hiAppEvent.d.ts| +|删除|模块名: ohos.hiAppEvent
类名: Watcher
方法名 or 属性名:onTrigger|NA|@ohos.hiAppEvent.d.ts| +|删除|模块名:ohos.hiAppEvent
类名:hiAppEvent
方法名 or 属性名:addWatcher|NA|@ohos.hiAppEvent.d.ts| +|删除|模块名:ohos.hiAppEvent
类名:hiAppEvent
方法名 or 属性名:removeWatcher|NA|@ohos.hiAppEvent.d.ts| +|删除|模块名:ohos.hiAppEvent
类名:hiAppEvent
方法名 or 属性名:clearData|NA|@ohos.hiAppEvent.d.ts| |废弃版本有变化|类名:bytrace
废弃版本:N/A|类名:bytrace
废弃版本:8
代替接口:ohos.hiTraceMeter |@ohos.bytrace.d.ts| |废弃版本有变化|方法名 or 属性名:startTrace
废弃版本:N/A|方法名 or 属性名:startTrace
废弃版本:8
代替接口:ohos.hiTraceMeter.startTrace |@ohos.bytrace.d.ts| |废弃版本有变化|方法名 or 属性名:finishTrace
废弃版本:N/A|方法名 or 属性名:finishTrace
废弃版本:8
代替接口:ohos.hiTraceMeter.finishTrace |@ohos.bytrace.d.ts| diff --git a/zh-cn/release-notes/api-diff/v3.2-beta4/js-apidiff-distributed-data.md b/zh-cn/release-notes/api-diff/v3.2-beta4/js-apidiff-distributed-data.md index 2554c2680fc13dfc42c24146a2b97799014b5383..47ae5cdd520133aa17785202102ba64b9767c013 100644 --- a/zh-cn/release-notes/api-diff/v3.2-beta4/js-apidiff-distributed-data.md +++ b/zh-cn/release-notes/api-diff/v3.2-beta4/js-apidiff-distributed-data.md @@ -1,347 +1,342 @@ -| 操作 | 新版本 | 旧版本 | d.ts文件 | +| 操作 | 旧版本 | 新版本 | d.ts文件 | | ---- | ------ | ------ | -------- | -|新增||模块名:ohos.data.distributedDataObject
类名:distributedDataObject
方法名 or 属性名:create|@ohos.data.distributedDataObject.d.ts| -|新增||模块名: ohos.data.distributedDataObject
类名: DistributedObjectV9|@ohos.data.distributedDataObject.d.ts| -|新增||模块名: ohos.data.distributedDataObject
类名: DistributedObjectV9
方法名 or 属性名:setSessionId|@ohos.data.distributedDataObject.d.ts| -|新增||模块名: ohos.data.distributedDataObject
类名: DistributedObjectV9
方法名 or 属性名:setSessionId|@ohos.data.distributedDataObject.d.ts| -|新增||模块名: ohos.data.distributedDataObject
类名: DistributedObjectV9
方法名 or 属性名:setSessionId|@ohos.data.distributedDataObject.d.ts| -|新增||模块名: ohos.data.distributedDataObject
类名: DistributedObjectV9
方法名 or 属性名:on_change|@ohos.data.distributedDataObject.d.ts| -|新增||模块名: ohos.data.distributedDataObject
类名: DistributedObjectV9
方法名 or 属性名:off_change|@ohos.data.distributedDataObject.d.ts| -|新增||模块名: ohos.data.distributedDataObject
类名: DistributedObjectV9
方法名 or 属性名:on_status|@ohos.data.distributedDataObject.d.ts| -|新增||模块名: ohos.data.distributedDataObject
类名: DistributedObjectV9
方法名 or 属性名:off_status|@ohos.data.distributedDataObject.d.ts| -|新增||模块名: ohos.data.distributedDataObject
类名: DistributedObjectV9
方法名 or 属性名:save|@ohos.data.distributedDataObject.d.ts| -|新增||模块名: ohos.data.distributedDataObject
类名: DistributedObjectV9
方法名 or 属性名:save|@ohos.data.distributedDataObject.d.ts| -|新增||模块名: ohos.data.distributedDataObject
类名: DistributedObjectV9
方法名 or 属性名:revokeSave|@ohos.data.distributedDataObject.d.ts| -|新增||模块名: ohos.data.distributedDataObject
类名: DistributedObjectV9
方法名 or 属性名:revokeSave|@ohos.data.distributedDataObject.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: distributedKVStore|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: KVManagerConfig|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: KVManagerConfig
方法名 or 属性名: bundleName|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: KVManagerConfig
方法名 or 属性名: context|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: Constants|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: Constants
方法名 or 属性名: MAX_KEY_LENGTH|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: Constants
方法名 or 属性名: MAX_VALUE_LENGTH|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: Constants
方法名 or 属性名: MAX_KEY_LENGTH_DEVICE|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: Constants
方法名 or 属性名: MAX_STORE_ID_LENGTH|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: Constants
方法名 or 属性名: MAX_QUERY_LENGTH|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: Constants
方法名 or 属性名: MAX_BATCH_SIZE|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: ValueType|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: ValueType
方法名 or 属性名: STRING|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: ValueType
方法名 or 属性名: INTEGER|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: ValueType
方法名 or 属性名: FLOAT|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: ValueType
方法名 or 属性名: BYTE_ARRAY|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: ValueType
方法名 or 属性名: BOOLEAN|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: ValueType
方法名 or 属性名: DOUBLE|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: Value|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: Value
方法名 or 属性名: type|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: Value
方法名 or 属性名: value|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: Entry|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: Entry
方法名 or 属性名: key|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: Entry
方法名 or 属性名: value|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: ChangeNotification|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: ChangeNotification
方法名 or 属性名: insertEntries|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: ChangeNotification
方法名 or 属性名: updateEntries|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: ChangeNotification
方法名 or 属性名: deleteEntries|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: ChangeNotification
方法名 or 属性名: deviceId|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SyncMode|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SyncMode
方法名 or 属性名: PULL_ONLY|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SyncMode
方法名 or 属性名: PUSH_ONLY|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SyncMode
方法名 or 属性名: PUSH_PULL|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SubscribeType|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SubscribeType
方法名 or 属性名: SUBSCRIBE_TYPE_LOCAL|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SubscribeType
方法名 or 属性名: SUBSCRIBE_TYPE_REMOTE|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SubscribeType
方法名 or 属性名: SUBSCRIBE_TYPE_ALL|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: KVStoreType|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: KVStoreType
方法名 or 属性名: DEVICE_COLLABORATION|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: KVStoreType
方法名 or 属性名: SINGLE_VERSION|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SecurityLevel|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SecurityLevel
方法名 or 属性名: S1|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SecurityLevel
方法名 or 属性名: S2|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SecurityLevel
方法名 or 属性名: S3|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SecurityLevel
方法名 or 属性名: S4|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: Options|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: Options
方法名 or 属性名: createIfMissing|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: Options
方法名 or 属性名: encrypt|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: Options
方法名 or 属性名: backup|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: Options
方法名 or 属性名: autoSync|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: Options
方法名 or 属性名: kvStoreType|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: Options
方法名 or 属性名: securityLevel|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: Options
方法名 or 属性名: schema|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: Schema|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: Schema
方法名 or 属性名: root|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: Schema
方法名 or 属性名: indexes|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: Schema
方法名 or 属性名: mode|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: Schema
方法名 or 属性名: skip|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: FieldNode|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: FieldNode
方法名 or 属性名: ructor(name|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: FieldNode
方法名 or 属性名: appendChild|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: FieldNode
方法名 or 属性名: default|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: FieldNode
方法名 or 属性名: nullable|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: FieldNode
方法名 or 属性名: type|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: KVStoreResultSet|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: KVStoreResultSet
方法名 or 属性名: getCount|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: KVStoreResultSet
方法名 or 属性名: getPosition|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: KVStoreResultSet
方法名 or 属性名: moveToFirst|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: KVStoreResultSet
方法名 or 属性名: moveToLast|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: KVStoreResultSet
方法名 or 属性名: moveToNext|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: KVStoreResultSet
方法名 or 属性名: moveToPrevious|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: KVStoreResultSet
方法名 or 属性名: move|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: KVStoreResultSet
方法名 or 属性名: moveToPosition|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: KVStoreResultSet
方法名 or 属性名: isFirst|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: KVStoreResultSet
方法名 or 属性名: isLast|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: KVStoreResultSet
方法名 or 属性名: isBeforeFirst|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: KVStoreResultSet
方法名 or 属性名: isAfterLast|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: KVStoreResultSet
方法名 or 属性名: getEntry|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: Query|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: Query
方法名 or 属性名: reset|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: Query
方法名 or 属性名: equalTo|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: Query
方法名 or 属性名: notEqualTo|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: Query
方法名 or 属性名: greaterThan|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: Query
方法名 or 属性名: lessThan|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: Query
方法名 or 属性名: greaterThanOrEqualTo|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: Query
方法名 or 属性名: lessThanOrEqualTo|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: Query
方法名 or 属性名: isNull|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: Query
方法名 or 属性名: inNumber|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: Query
方法名 or 属性名: inString|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: Query
方法名 or 属性名: notInNumber|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: Query
方法名 or 属性名: notInString|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: Query
方法名 or 属性名: like|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: Query
方法名 or 属性名: unlike|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: Query
方法名 or 属性名: and|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: Query
方法名 or 属性名: or|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: Query
方法名 or 属性名: orderByAsc|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: Query
方法名 or 属性名: orderByDesc|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: Query
方法名 or 属性名: limit|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: Query
方法名 or 属性名: isNotNull|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: Query
方法名 or 属性名: beginGroup|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: Query
方法名 or 属性名: endGroup|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: Query
方法名 or 属性名: prefixKey|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: Query
方法名 or 属性名: setSuggestIndex|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: Query
方法名 or 属性名: deviceId|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: Query
方法名 or 属性名: getSqlLike|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SingleKVStore|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: put|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: put|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: putBatch|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: putBatch|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: putBatch|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: putBatch|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: delete|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: delete|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: delete|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: delete|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: deleteBatch|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: deleteBatch|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: removeDeviceData|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: removeDeviceData|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: get|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: get|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: getEntries|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: getEntries|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: getEntries|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: getEntries|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: getResultSet|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: getResultSet|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: getResultSet|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: getResultSet|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: getResultSet|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: getResultSet|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: closeResultSet|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: closeResultSet|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: getResultSize|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: getResultSize|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: backup|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: backup|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: restore|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: restore|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: deleteBackup|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: deleteBackup|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: startTransaction|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: startTransaction|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: commit|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: commit|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: rollback|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: rollback|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: enableSync|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: enableSync|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: setSyncRange|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: setSyncRange|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: setSyncParam|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: setSyncParam|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: sync|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: sync|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: on_dataChange|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: on_syncComplete|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: off_dataChange|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: off_syncComplete|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: getSecurityLevel|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: getSecurityLevel|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: DeviceKVStore|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法名 or 属性名: get|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法名 or 属性名: get|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法名 or 属性名: get|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法名 or 属性名: get|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法名 or 属性名: getEntries|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法名 or 属性名: getEntries|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法名 or 属性名: getEntries|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法名 or 属性名: getEntries|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法名 or 属性名: getEntries|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法名 or 属性名: getEntries|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法名 or 属性名: getEntries|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法名 or 属性名: getEntries|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法名 or 属性名: getResultSet|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法名 or 属性名: getResultSet|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法名 or 属性名: getResultSet|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法名 or 属性名: getResultSet|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法名 or 属性名: getResultSet|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法名 or 属性名: getResultSet|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法名 or 属性名: getResultSet|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法名 or 属性名: getResultSet|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法名 or 属性名: getResultSet|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法名 or 属性名: getResultSet|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法名 or 属性名: getResultSet|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法名 or 属性名: getResultSet|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法名 or 属性名: getResultSize|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法名 or 属性名: getResultSize|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法名 or 属性名: getResultSize|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法名 or 属性名: getResultSize|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: distributedKVStore
方法名 or 属性名: createKVManager|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: distributedKVStore
方法名 or 属性名: createKVManager|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: KVManager|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: KVManager
方法名 or 属性名: getKVStore|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: KVManager
方法名 or 属性名: getKVStore|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: KVManager
方法名 or 属性名: closeKVStore|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: KVManager
方法名 or 属性名: closeKVStore|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: KVManager
方法名 or 属性名: deleteKVStore|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: KVManager
方法名 or 属性名: deleteKVStore|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: KVManager
方法名 or 属性名: getAllKVStoreId|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: KVManager
方法名 or 属性名: getAllKVStoreId|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: KVManager
方法名 or 属性名: on_distributedDataServiceDie|@ohos.data.distributedKVStore.d.ts| -|新增||模块名: ohos.data.distributedKVStore
类名: KVManager
方法名 or 属性名: off_distributedDataServiceDie|@ohos.data.distributedKVStore.d.ts| -|新增||模块名:ohos.data.rdb
类名:rdb
方法名 or 属性名:getRdbStoreV9|@ohos.data.rdb.d.ts| -|新增||模块名:ohos.data.rdb
类名:rdb
方法名 or 属性名:getRdbStoreV9|@ohos.data.rdb.d.ts| -|新增||模块名:ohos.data.rdb
类名:rdb
方法名 or 属性名:deleteRdbStoreV9|@ohos.data.rdb.d.ts| -|新增||模块名:ohos.data.rdb
类名:rdb
方法名 or 属性名:deleteRdbStoreV9|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: SecurityLevel|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: SecurityLevel
方法名 or 属性名:S1|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: SecurityLevel
方法名 or 属性名:S2|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: SecurityLevel
方法名 or 属性名:S3|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: SecurityLevel
方法名 or 属性名:S4|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbStoreV9|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:insert|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:insert|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:batchInsert|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:batchInsert|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:update|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:update|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:update|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:update|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:delete|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:delete|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:delete|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:delete|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:query|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:query|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:query|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:query|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:remoteQuery|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:remoteQuery|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:querySql|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:querySql|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:executeSql|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:executeSql|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:beginTransaction|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:commit|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:rollBack|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:backup|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:backup|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:restore|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:restore|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:setDistributedTables|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:setDistributedTables|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:obtainDistributedTableName|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:obtainDistributedTableName|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:sync|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:sync|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:on_dataChange|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:off_dataChange|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: StoreConfigV9|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: StoreConfigV9
方法名 or 属性名:name|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: StoreConfigV9
方法名 or 属性名:securityLevel|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: StoreConfigV9
方法名 or 属性名:encrypt|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbPredicatesV9|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法名 or 属性名:ructor(name|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法名 or 属性名:inDevices|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法名 or 属性名:inAllDevices|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法名 or 属性名:equalTo|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法名 or 属性名:notEqualTo|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法名 or 属性名:beginWrap|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法名 or 属性名:endWrap|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法名 or 属性名:or|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法名 or 属性名:and|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法名 or 属性名:contains|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法名 or 属性名:beginsWith|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法名 or 属性名:endsWith|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法名 or 属性名:isNull|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法名 or 属性名:isNotNull|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法名 or 属性名:like|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法名 or 属性名:glob|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法名 or 属性名:between|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法名 or 属性名:notBetween|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法名 or 属性名:greaterThan|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法名 or 属性名:lessThan|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法名 or 属性名:greaterThanOrEqualTo|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法名 or 属性名:lessThanOrEqualTo|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法名 or 属性名:orderByAsc|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法名 or 属性名:orderByDesc|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法名 or 属性名:distinct|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法名 or 属性名:limitAs|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法名 or 属性名:offsetAs|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法名 or 属性名:groupBy|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法名 or 属性名:indexedBy|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法名 or 属性名:in|@ohos.data.rdb.d.ts| -|新增||模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法名 or 属性名:notIn|@ohos.data.rdb.d.ts| -|新增||模块名: resultSet
类名: ResultSetV9|resultSet.d.ts| -|新增||模块名: resultSet
类名: ResultSetV9
方法名 or 属性名:columnNames|resultSet.d.ts| -|新增||模块名: resultSet
类名: ResultSetV9
方法名 or 属性名:columnCount|resultSet.d.ts| -|新增||模块名: resultSet
类名: ResultSetV9
方法名 or 属性名:rowCount|resultSet.d.ts| -|新增||模块名: resultSet
类名: ResultSetV9
方法名 or 属性名:rowIndex|resultSet.d.ts| -|新增||模块名: resultSet
类名: ResultSetV9
方法名 or 属性名:isAtFirstRow|resultSet.d.ts| -|新增||模块名: resultSet
类名: ResultSetV9
方法名 or 属性名:isAtLastRow|resultSet.d.ts| -|新增||模块名: resultSet
类名: ResultSetV9
方法名 or 属性名:isEnded|resultSet.d.ts| -|新增||模块名: resultSet
类名: ResultSetV9
方法名 or 属性名:isStarted|resultSet.d.ts| -|新增||模块名: resultSet
类名: ResultSetV9
方法名 or 属性名:isClosed|resultSet.d.ts| -|新增||模块名: resultSet
类名: ResultSetV9
方法名 or 属性名:getColumnIndex|resultSet.d.ts| -|新增||模块名: resultSet
类名: ResultSetV9
方法名 or 属性名:getColumnName|resultSet.d.ts| -|新增||模块名: resultSet
类名: ResultSetV9
方法名 or 属性名:goTo|resultSet.d.ts| -|新增||模块名: resultSet
类名: ResultSetV9
方法名 or 属性名:goToRow|resultSet.d.ts| -|新增||模块名: resultSet
类名: ResultSetV9
方法名 or 属性名:goToFirstRow|resultSet.d.ts| -|新增||模块名: resultSet
类名: ResultSetV9
方法名 or 属性名:goToLastRow|resultSet.d.ts| -|新增||模块名: resultSet
类名: ResultSetV9
方法名 or 属性名:goToNextRow|resultSet.d.ts| -|新增||模块名: resultSet
类名: ResultSetV9
方法名 or 属性名:goToPreviousRow|resultSet.d.ts| -|新增||模块名: resultSet
类名: ResultSetV9
方法名 or 属性名:getBlob|resultSet.d.ts| -|新增||模块名: resultSet
类名: ResultSetV9
方法名 or 属性名:getString|resultSet.d.ts| -|新增||模块名: resultSet
类名: ResultSetV9
方法名 or 属性名:getLong|resultSet.d.ts| -|新增||模块名: resultSet
类名: ResultSetV9
方法名 or 属性名:getDouble|resultSet.d.ts| -|新增||模块名: resultSet
类名: ResultSetV9
方法名 or 属性名:isColumnNull|resultSet.d.ts| -|新增||模块名: resultSet
类名: ResultSetV9
方法名 or 属性名:close|resultSet.d.ts| -|删除|模块名:ohos.data.distributedData
类名:KVManagerConfig
方法名 or 属性名:context||@ohos.data.distributedData.d.ts| -|删除|模块名:ohos.data.distributedData
类名:KVStore
方法名 or 属性名:backup||@ohos.data.distributedData.d.ts| -|删除|模块名:ohos.data.distributedData
类名:KVStore
方法名 or 属性名:backup||@ohos.data.distributedData.d.ts| -|删除|模块名:ohos.data.distributedData
类名:KVStore
方法名 or 属性名:restore||@ohos.data.distributedData.d.ts| -|删除|模块名:ohos.data.distributedData
类名:KVStore
方法名 or 属性名:restore||@ohos.data.distributedData.d.ts| -|删除|模块名:ohos.data.distributedData
类名:KVStore
方法名 or 属性名:deleteBackup||@ohos.data.distributedData.d.ts| -|删除|模块名:ohos.data.distributedData
类名:KVStore
方法名 or 属性名:deleteBackup||@ohos.data.distributedData.d.ts| -|删除|模块名:ohos.data.distributedDataObject
类名:DistributedObject
方法名 or 属性名:save||@ohos.data.distributedDataObject.d.ts| -|删除|模块名:ohos.data.distributedDataObject
类名:DistributedObject
方法名 or 属性名:save||@ohos.data.distributedDataObject.d.ts| -|删除|模块名:ohos.data.distributedDataObject
类名:DistributedObject
方法名 or 属性名:revokeSave||@ohos.data.distributedDataObject.d.ts| -|删除|模块名:ohos.data.distributedDataObject
类名:DistributedObject
方法名 or 属性名:revokeSave||@ohos.data.distributedDataObject.d.ts| -|删除|模块名:ohos.data.rdb
类名:RdbStore
方法名 or 属性名:remoteQuery||@ohos.data.rdb.d.ts| -|删除|模块名:ohos.data.rdb
类名:RdbStore
方法名 or 属性名:remoteQuery||@ohos.data.rdb.d.ts| -|删除|模块名:ohos.data.rdb
类名:RdbStore
方法名 or 属性名:backup||@ohos.data.rdb.d.ts| -|删除|模块名:ohos.data.rdb
类名:RdbStore
方法名 or 属性名:backup||@ohos.data.rdb.d.ts| -|删除|模块名:ohos.data.rdb
类名:RdbStore
方法名 or 属性名:restore||@ohos.data.rdb.d.ts| -|删除|模块名:ohos.data.rdb
类名:RdbStore
方法名 or 属性名:restore||@ohos.data.rdb.d.ts| -|删除|模块名:ohos.data.rdb
类名:StoreConfig
方法名 or 属性名:encrypt||@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.distributedDataObject
类名: DistributedObjectV9|@ohos.data.distributedDataObject.d.ts| +|新增|NA|模块名: ohos.data.distributedDataObject
类名: DistributedObjectV9
方法名 or 属性名:setSessionId|@ohos.data.distributedDataObject.d.ts| +|新增|NA|模块名: ohos.data.distributedDataObject
类名: DistributedObjectV9
方法名 or 属性名:setSessionId|@ohos.data.distributedDataObject.d.ts| +|新增|NA|模块名: ohos.data.distributedDataObject
类名: DistributedObjectV9
方法名 or 属性名:setSessionId|@ohos.data.distributedDataObject.d.ts| +|新增|NA|模块名: ohos.data.distributedDataObject
类名: DistributedObjectV9
方法名 or 属性名:on_change|@ohos.data.distributedDataObject.d.ts| +|新增|NA|模块名: ohos.data.distributedDataObject
类名: DistributedObjectV9
方法名 or 属性名:off_change|@ohos.data.distributedDataObject.d.ts| +|新增|NA|模块名: ohos.data.distributedDataObject
类名: DistributedObjectV9
方法名 or 属性名:on_status|@ohos.data.distributedDataObject.d.ts| +|新增|NA|模块名: ohos.data.distributedDataObject
类名: DistributedObjectV9
方法名 or 属性名:off_status|@ohos.data.distributedDataObject.d.ts| +|新增|NA|模块名: ohos.data.distributedDataObject
类名: DistributedObjectV9
方法名 or 属性名:save|@ohos.data.distributedDataObject.d.ts| +|新增|NA|模块名: ohos.data.distributedDataObject
类名: DistributedObjectV9
方法名 or 属性名:save|@ohos.data.distributedDataObject.d.ts| +|新增|NA|模块名: ohos.data.distributedDataObject
类名: DistributedObjectV9
方法名 or 属性名:revokeSave|@ohos.data.distributedDataObject.d.ts| +|新增|NA|模块名: ohos.data.distributedDataObject
类名: DistributedObjectV9
方法名 or 属性名:revokeSave|@ohos.data.distributedDataObject.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: distributedKVStore|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: KVManagerConfig|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: KVManagerConfig
方法名 or 属性名: bundleName|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: KVManagerConfig
方法名 or 属性名: context|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Constants|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Constants
方法名 or 属性名: MAX_KEY_LENGTH|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Constants
方法名 or 属性名: MAX_VALUE_LENGTH|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Constants
方法名 or 属性名: MAX_KEY_LENGTH_DEVICE|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Constants
方法名 or 属性名: MAX_STORE_ID_LENGTH|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Constants
方法名 or 属性名: MAX_QUERY_LENGTH|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Constants
方法名 or 属性名: MAX_BATCH_SIZE|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: ValueType|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: ValueType
方法名 or 属性名: STRING|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: ValueType
方法名 or 属性名: INTEGER|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: ValueType
方法名 or 属性名: FLOAT|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: ValueType
方法名 or 属性名: BYTE_ARRAY|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: ValueType
方法名 or 属性名: BOOLEAN|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: ValueType
方法名 or 属性名: DOUBLE|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Value|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Value
方法名 or 属性名: type|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Value
方法名 or 属性名: value|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Entry|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Entry
方法名 or 属性名: key|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Entry
方法名 or 属性名: value|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: ChangeNotification|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: ChangeNotification
方法名 or 属性名: insertEntries|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: ChangeNotification
方法名 or 属性名: updateEntries|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: ChangeNotification
方法名 or 属性名: deleteEntries|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: ChangeNotification
方法名 or 属性名: deviceId|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SyncMode|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SyncMode
方法名 or 属性名: PULL_ONLY|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SyncMode
方法名 or 属性名: PUSH_ONLY|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SyncMode
方法名 or 属性名: PUSH_PULL|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SubscribeType|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SubscribeType
方法名 or 属性名: SUBSCRIBE_TYPE_LOCAL|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SubscribeType
方法名 or 属性名: SUBSCRIBE_TYPE_REMOTE|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SubscribeType
方法名 or 属性名: SUBSCRIBE_TYPE_ALL|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: KVStoreType|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: KVStoreType
方法名 or 属性名: DEVICE_COLLABORATION|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: KVStoreType
方法名 or 属性名: SINGLE_VERSION|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SecurityLevel|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SecurityLevel
方法名 or 属性名: S1|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SecurityLevel
方法名 or 属性名: S2|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SecurityLevel
方法名 or 属性名: S3|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SecurityLevel
方法名 or 属性名: S4|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Options|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Options
方法名 or 属性名: createIfMissing|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Options
方法名 or 属性名: encrypt|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Options
方法名 or 属性名: backup|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Options
方法名 or 属性名: autoSync|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Options
方法名 or 属性名: kvStoreType|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Options
方法名 or 属性名: securityLevel|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Options
方法名 or 属性名: schema|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Schema|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Schema
方法名 or 属性名: root|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Schema
方法名 or 属性名: indexes|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Schema
方法名 or 属性名: mode|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Schema
方法名 or 属性名: skip|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: FieldNode|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: FieldNode
方法名 or 属性名: ructor(name|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: FieldNode
方法名 or 属性名: appendChild|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: FieldNode
方法名 or 属性名: default|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: FieldNode
方法名 or 属性名: nullable|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: FieldNode
方法名 or 属性名: type|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: KVStoreResultSet|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: KVStoreResultSet
方法名 or 属性名: getCount|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: KVStoreResultSet
方法名 or 属性名: getPosition|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: KVStoreResultSet
方法名 or 属性名: moveToFirst|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: KVStoreResultSet
方法名 or 属性名: moveToLast|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: KVStoreResultSet
方法名 or 属性名: moveToNext|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: KVStoreResultSet
方法名 or 属性名: moveToPrevious|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: KVStoreResultSet
方法名 or 属性名: move|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: KVStoreResultSet
方法名 or 属性名: moveToPosition|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: KVStoreResultSet
方法名 or 属性名: isFirst|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: KVStoreResultSet
方法名 or 属性名: isLast|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: KVStoreResultSet
方法名 or 属性名: isBeforeFirst|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: KVStoreResultSet
方法名 or 属性名: isAfterLast|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: KVStoreResultSet
方法名 or 属性名: getEntry|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Query|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Query
方法名 or 属性名: reset|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Query
方法名 or 属性名: equalTo|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Query
方法名 or 属性名: notEqualTo|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Query
方法名 or 属性名: greaterThan|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Query
方法名 or 属性名: lessThan|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Query
方法名 or 属性名: greaterThanOrEqualTo|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Query
方法名 or 属性名: lessThanOrEqualTo|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Query
方法名 or 属性名: isNull|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Query
方法名 or 属性名: inNumber|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Query
方法名 or 属性名: inString|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Query
方法名 or 属性名: notInNumber|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Query
方法名 or 属性名: notInString|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Query
方法名 or 属性名: like|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Query
方法名 or 属性名: unlike|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Query
方法名 or 属性名: and|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Query
方法名 or 属性名: or|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Query
方法名 or 属性名: orderByAsc|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Query
方法名 or 属性名: orderByDesc|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Query
方法名 or 属性名: limit|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Query
方法名 or 属性名: isNotNull|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Query
方法名 or 属性名: beginGroup|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Query
方法名 or 属性名: endGroup|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Query
方法名 or 属性名: prefixKey|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Query
方法名 or 属性名: setSuggestIndex|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Query
方法名 or 属性名: deviceId|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: Query
方法名 or 属性名: getSqlLike|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: put|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: put|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: putBatch|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: putBatch|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: putBatch|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: putBatch|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: delete|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: delete|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: delete|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: delete|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: deleteBatch|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: deleteBatch|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: removeDeviceData|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: removeDeviceData|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: get|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: get|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: getEntries|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: getEntries|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: getEntries|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: getEntries|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: getResultSet|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: getResultSet|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: getResultSet|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: getResultSet|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: getResultSet|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: getResultSet|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: closeResultSet|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: closeResultSet|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: getResultSize|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: getResultSize|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: backup|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: backup|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: restore|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: restore|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: deleteBackup|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: deleteBackup|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: startTransaction|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: startTransaction|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: commit|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: commit|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: rollback|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: rollback|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: enableSync|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: enableSync|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: setSyncRange|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: setSyncRange|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: setSyncParam|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: setSyncParam|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: sync|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: sync|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: on_dataChange|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: on_syncComplete|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: off_dataChange|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: off_syncComplete|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: getSecurityLevel|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: SingleKVStore
方法名 or 属性名: getSecurityLevel|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: DeviceKVStore|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法名 or 属性名: get|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法名 or 属性名: get|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法名 or 属性名: get|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法名 or 属性名: get|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法名 or 属性名: getEntries|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法名 or 属性名: getEntries|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法名 or 属性名: getEntries|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法名 or 属性名: getEntries|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法名 or 属性名: getEntries|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法名 or 属性名: getEntries|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法名 or 属性名: getEntries|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法名 or 属性名: getEntries|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法名 or 属性名: getResultSet|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法名 or 属性名: getResultSet|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法名 or 属性名: getResultSet|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法名 or 属性名: getResultSet|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法名 or 属性名: getResultSet|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法名 or 属性名: getResultSet|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法名 or 属性名: getResultSet|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法名 or 属性名: getResultSet|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法名 or 属性名: getResultSet|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法名 or 属性名: getResultSet|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法名 or 属性名: getResultSet|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法名 or 属性名: getResultSet|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法名 or 属性名: getResultSize|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法名 or 属性名: getResultSize|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法名 or 属性名: getResultSize|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: DeviceKVStore
方法名 or 属性名: getResultSize|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: distributedKVStore
方法名 or 属性名: createKVManager|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: distributedKVStore
方法名 or 属性名: createKVManager|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: KVManager|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: KVManager
方法名 or 属性名: getKVStore|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: KVManager
方法名 or 属性名: getKVStore|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: KVManager
方法名 or 属性名: closeKVStore|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: KVManager
方法名 or 属性名: closeKVStore|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: KVManager
方法名 or 属性名: deleteKVStore|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: KVManager
方法名 or 属性名: deleteKVStore|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: KVManager
方法名 or 属性名: getAllKVStoreId|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: KVManager
方法名 or 属性名: getAllKVStoreId|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: KVManager
方法名 or 属性名: on_distributedDataServiceDie|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.distributedKVStore
类名: KVManager
方法名 or 属性名: off_distributedDataServiceDie|@ohos.data.distributedKVStore.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: SecurityLevel|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: SecurityLevel
方法名 or 属性名:S1|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: SecurityLevel
方法名 or 属性名:S2|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: SecurityLevel
方法名 or 属性名:S3|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: SecurityLevel
方法名 or 属性名:S4|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbStoreV9|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:insert|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:insert|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:batchInsert|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:batchInsert|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:update|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:update|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:update|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:update|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:delete|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:delete|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:delete|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:delete|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:query|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:query|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:query|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:query|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:remoteQuery|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:remoteQuery|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:querySql|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:querySql|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:executeSql|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:executeSql|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:beginTransaction|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:commit|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:rollBack|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:backup|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:backup|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:restore|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:restore|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:setDistributedTables|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:setDistributedTables|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:obtainDistributedTableName|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:obtainDistributedTableName|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:sync|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:sync|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:on_dataChange|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbStoreV9
方法名 or 属性名:off_dataChange|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: StoreConfigV9|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: StoreConfigV9
方法名 or 属性名:name|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: StoreConfigV9
方法名 or 属性名:securityLevel|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: StoreConfigV9
方法名 or 属性名:encrypt|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbPredicatesV9|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法名 or 属性名:ructor(name|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法名 or 属性名:inDevices|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法名 or 属性名:inAllDevices|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法名 or 属性名:equalTo|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法名 or 属性名:notEqualTo|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法名 or 属性名:beginWrap|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法名 or 属性名:endWrap|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法名 or 属性名:or|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法名 or 属性名:and|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法名 or 属性名:contains|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法名 or 属性名:beginsWith|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法名 or 属性名:endsWith|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法名 or 属性名:isNull|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法名 or 属性名:isNotNull|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法名 or 属性名:like|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法名 or 属性名:glob|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法名 or 属性名:between|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法名 or 属性名:notBetween|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法名 or 属性名:greaterThan|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法名 or 属性名:lessThan|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法名 or 属性名:greaterThanOrEqualTo|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法名 or 属性名:lessThanOrEqualTo|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法名 or 属性名:orderByAsc|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法名 or 属性名:orderByDesc|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法名 or 属性名:distinct|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法名 or 属性名:limitAs|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法名 or 属性名:offsetAs|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法名 or 属性名:groupBy|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法名 or 属性名:indexedBy|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法名 or 属性名:in|@ohos.data.rdb.d.ts| +|新增|NA|模块名: ohos.data.rdb
类名: RdbPredicatesV9
方法名 or 属性名:notIn|@ohos.data.rdb.d.ts| +|新增|NA|模块名: resultSet
类名: ResultSetV9|resultSet.d.ts| +|新增|NA|模块名: resultSet
类名: ResultSetV9
方法名 or 属性名:columnNames|resultSet.d.ts| +|新增|NA|模块名: resultSet
类名: ResultSetV9
方法名 or 属性名:columnCount|resultSet.d.ts| +|新增|NA|模块名: resultSet
类名: ResultSetV9
方法名 or 属性名:rowCount|resultSet.d.ts| +|新增|NA|模块名: resultSet
类名: ResultSetV9
方法名 or 属性名:rowIndex|resultSet.d.ts| +|新增|NA|模块名: resultSet
类名: ResultSetV9
方法名 or 属性名:isAtFirstRow|resultSet.d.ts| +|新增|NA|模块名: resultSet
类名: ResultSetV9
方法名 or 属性名:isAtLastRow|resultSet.d.ts| +|新增|NA|模块名: resultSet
类名: ResultSetV9
方法名 or 属性名:isEnded|resultSet.d.ts| +|新增|NA|模块名: resultSet
类名: ResultSetV9
方法名 or 属性名:isStarted|resultSet.d.ts| +|新增|NA|模块名: resultSet
类名: ResultSetV9
方法名 or 属性名:isClosed|resultSet.d.ts| +|新增|NA|模块名: resultSet
类名: ResultSetV9
方法名 or 属性名:getColumnIndex|resultSet.d.ts| +|新增|NA|模块名: resultSet
类名: ResultSetV9
方法名 or 属性名:getColumnName|resultSet.d.ts| +|新增|NA|模块名: resultSet
类名: ResultSetV9
方法名 or 属性名:goTo|resultSet.d.ts| +|新增|NA|模块名: resultSet
类名: ResultSetV9
方法名 or 属性名:goToRow|resultSet.d.ts| +|新增|NA|模块名: resultSet
类名: ResultSetV9
方法名 or 属性名:goToFirstRow|resultSet.d.ts| +|新增|NA|模块名: resultSet
类名: ResultSetV9
方法名 or 属性名:goToLastRow|resultSet.d.ts| +|新增|NA|模块名: resultSet
类名: ResultSetV9
方法名 or 属性名:goToNextRow|resultSet.d.ts| +|新增|NA|模块名: resultSet
类名: ResultSetV9
方法名 or 属性名:goToPreviousRow|resultSet.d.ts| +|新增|NA|模块名: resultSet
类名: ResultSetV9
方法名 or 属性名:getBlob|resultSet.d.ts| +|新增|NA|模块名: resultSet
类名: ResultSetV9
方法名 or 属性名:getString|resultSet.d.ts| +|新增|NA|模块名: resultSet
类名: ResultSetV9
方法名 or 属性名:getLong|resultSet.d.ts| +|新增|NA|模块名: resultSet
类名: ResultSetV9
方法名 or 属性名:getDouble|resultSet.d.ts| +|新增|NA|模块名: resultSet
类名: ResultSetV9
方法名 or 属性名:isColumnNull|resultSet.d.ts| +|新增|NA|模块名: resultSet
类名: ResultSetV9
方法名 or 属性名:close|resultSet.d.ts| +|删除|模块名:ohos.data.distributedData
类名:KVManagerConfig
方法名 or 属性名:context|NA|@ohos.data.distributedData.d.ts| +|删除|模块名:ohos.data.distributedData
类名:KVStore
方法名 or 属性名:backup|NA|@ohos.data.distributedData.d.ts| +|删除|模块名:ohos.data.distributedData
类名:KVStore
方法名 or 属性名:backup|NA|@ohos.data.distributedData.d.ts| +|删除|模块名:ohos.data.distributedData
类名:KVStore
方法名 or 属性名:restore|NA|@ohos.data.distributedData.d.ts| +|删除|模块名:ohos.data.distributedData
类名:KVStore
方法名 or 属性名:restore|NA|@ohos.data.distributedData.d.ts| +|删除|模块名:ohos.data.distributedData
类名:KVStore
方法名 or 属性名:deleteBackup|NA|@ohos.data.distributedData.d.ts| +|删除|模块名:ohos.data.distributedData
类名:KVStore
方法名 or 属性名:deleteBackup|NA|@ohos.data.distributedData.d.ts| +|删除|模块名:ohos.data.distributedDataObject
类名:DistributedObject
方法名 or 属性名:save|NA|@ohos.data.distributedDataObject.d.ts| +|删除|模块名:ohos.data.distributedDataObject
类名:DistributedObject
方法名 or 属性名:save|NA|@ohos.data.distributedDataObject.d.ts| +|删除|模块名:ohos.data.distributedDataObject
类名:DistributedObject
方法名 or 属性名:revokeSave|NA|@ohos.data.distributedDataObject.d.ts| +|删除|模块名:ohos.data.distributedDataObject
类名:DistributedObject
方法名 or 属性名:revokeSave|NA|@ohos.data.distributedDataObject.d.ts| +|删除|模块名:ohos.data.rdb
类名:RdbStore
方法名 or 属性名:remoteQuery|NA|@ohos.data.rdb.d.ts| +|删除|模块名:ohos.data.rdb
类名:RdbStore
方法名 or 属性名:remoteQuery|NA|@ohos.data.rdb.d.ts| +|删除|模块名:ohos.data.rdb
类名:RdbStore
方法名 or 属性名:backup|NA|@ohos.data.rdb.d.ts| +|删除|模块名:ohos.data.rdb
类名:RdbStore
方法名 or 属性名:backup|NA|@ohos.data.rdb.d.ts| +|删除|模块名:ohos.data.rdb
类名:RdbStore
方法名 or 属性名:restore|NA|@ohos.data.rdb.d.ts| +|删除|模块名:ohos.data.rdb
类名:RdbStore
方法名 or 属性名:restore|NA|@ohos.data.rdb.d.ts| +|删除|模块名:ohos.data.rdb
类名:StoreConfig
方法名 or 属性名:encrypt|NA|@ohos.data.rdb.d.ts| |model有变化|类名:dataShare
model:|类名:dataShare
model:@StageModelOnly|@ohos.data.dataShare.d.ts| |访问级别有变化|类名:dataShare
访问级别:公开API|类名:dataShare
访问级别:系统API|@ohos.data.dataShare.d.ts| |废弃版本有变化|类名:distributedData
废弃版本:N/A|类名:distributedData
废弃版本:9
代替接口:ohos.data.distributedKVStore |@ohos.data.distributedData.d.ts| diff --git a/zh-cn/release-notes/api-diff/v3.2-beta4/js-apidiff-distributed-hardware.md b/zh-cn/release-notes/api-diff/v3.2-beta4/js-apidiff-distributed-hardware.md index a51c9cf666c95920991c99d183a8d51046b0ecf2..6893b7a86c19d4f33fec8492f7ce3fc2b3ea827c 100644 --- a/zh-cn/release-notes/api-diff/v3.2-beta4/js-apidiff-distributed-hardware.md +++ b/zh-cn/release-notes/api-diff/v3.2-beta4/js-apidiff-distributed-hardware.md @@ -1,5 +1,5 @@ -| 操作 | 新版本 | 旧版本 | d.ts文件 | +| 操作 | 旧版本 | 新版本 | d.ts文件 | | ---- | ------ | ------ | -------- | -|新增||模块名: ohos.distributedHardware.deviceManager
类名: DeviceManager
方法名 or 属性名: setUserOperation|@ohos.distributedHardware.deviceManager.d.ts| -|新增||模块名: ohos.distributedHardware.deviceManager
类名: DeviceManager
方法名 or 属性名: on_uiStateChange|@ohos.distributedHardware.deviceManager.d.ts| -|新增||模块名: ohos.distributedHardware.deviceManager
类名: DeviceManager
方法名 or 属性名: off_uiStateChange|@ohos.distributedHardware.deviceManager.d.ts| +|新增|NA|模块名: ohos.distributedHardware.deviceManager
类名: DeviceManager
方法名 or 属性名: setUserOperation|@ohos.distributedHardware.deviceManager.d.ts| +|新增|NA|模块名: ohos.distributedHardware.deviceManager
类名: DeviceManager
方法名 or 属性名: on_uiStateChange|@ohos.distributedHardware.deviceManager.d.ts| +|新增|NA|模块名: ohos.distributedHardware.deviceManager
类名: DeviceManager
方法名 or 属性名: off_uiStateChange|@ohos.distributedHardware.deviceManager.d.ts| diff --git a/zh-cn/release-notes/api-diff/v3.2-beta4/js-apidiff-file-management.md b/zh-cn/release-notes/api-diff/v3.2-beta4/js-apidiff-file-management.md index 52f674bca1d72264a5520f679a752fd32d245b1b..bfcfdb12a596983eede8903a87d8caa748d0efe4 100644 --- a/zh-cn/release-notes/api-diff/v3.2-beta4/js-apidiff-file-management.md +++ b/zh-cn/release-notes/api-diff/v3.2-beta4/js-apidiff-file-management.md @@ -1,342 +1,342 @@ -| 操作 | 新版本 | 旧版本 | d.ts文件 | +| 操作 | 旧版本 | 新版本 | d.ts文件 | | ---- | ------ | ------ | -------- | -|新增||模块名: ohos.file.fs
类名: fileIo|@ohos.file.fs.d.ts| -|新增||模块名: ohos.file.fs
类名: OpenMode|@ohos.file.fs.d.ts| -|新增||模块名: ohos.file.fs
类名: OpenMode
方法名 or 属性名: READ_ONLY|@ohos.file.fs.d.ts| -|新增||模块名: ohos.file.fs
类名: OpenMode
方法名 or 属性名: WRITE_ONLY|@ohos.file.fs.d.ts| -|新增||模块名: ohos.file.fs
类名: OpenMode
方法名 or 属性名: READ_WRITE|@ohos.file.fs.d.ts| -|新增||模块名: ohos.file.fs
类名: OpenMode
方法名 or 属性名: CREATE|@ohos.file.fs.d.ts| -|新增||模块名: ohos.file.fs
类名: OpenMode
方法名 or 属性名: TRUNC|@ohos.file.fs.d.ts| -|新增||模块名: ohos.file.fs
类名: OpenMode
方法名 or 属性名: APPEND|@ohos.file.fs.d.ts| -|新增||模块名: ohos.file.fs
类名: OpenMode
方法名 or 属性名: NONBLOCK|@ohos.file.fs.d.ts| -|新增||模块名: ohos.file.fs
类名: OpenMode
方法名 or 属性名: DIR|@ohos.file.fs.d.ts| -|新增||模块名: ohos.file.fs
类名: OpenMode
方法名 or 属性名: NOFOLLOW|@ohos.file.fs.d.ts| -|新增||模块名: ohos.file.fs
类名: OpenMode
方法名 or 属性名: SYNC|@ohos.file.fs.d.ts| -|新增||模块名: ohos.file.fs
类名: fileIo
方法名 or 属性名: open|@ohos.file.fs.d.ts| -|新增||模块名: ohos.file.fs
类名: fileIo
方法名 or 属性名: open|@ohos.file.fs.d.ts| -|新增||模块名: ohos.file.fs
类名: fileIo
方法名 or 属性名: open|@ohos.file.fs.d.ts| -|新增||模块名: ohos.file.fs
类名: fileIo
方法名 or 属性名: openSync|@ohos.file.fs.d.ts| -|新增||模块名: ohos.file.fs
类名: fileIo
方法名 or 属性名: read|@ohos.file.fs.d.ts| -|新增||模块名: ohos.file.fs
类名: fileIo
方法名 or 属性名: read|@ohos.file.fs.d.ts| -|新增||模块名: ohos.file.fs
类名: fileIo
方法名 or 属性名: read|@ohos.file.fs.d.ts| -|新增||模块名: ohos.file.fs
类名: fileIo
方法名 or 属性名: readSync|@ohos.file.fs.d.ts| -|新增||模块名: ohos.file.fs
类名: fileIo
方法名 or 属性名: stat|@ohos.file.fs.d.ts| -|新增||模块名: ohos.file.fs
类名: fileIo
方法名 or 属性名: stat|@ohos.file.fs.d.ts| -|新增||模块名: ohos.file.fs
类名: fileIo
方法名 or 属性名: statSync|@ohos.file.fs.d.ts| -|新增||模块名: ohos.file.fs
类名: fileIo
方法名 or 属性名: truncate|@ohos.file.fs.d.ts| -|新增||模块名: ohos.file.fs
类名: fileIo
方法名 or 属性名: truncate|@ohos.file.fs.d.ts| -|新增||模块名: ohos.file.fs
类名: fileIo
方法名 or 属性名: truncate|@ohos.file.fs.d.ts| -|新增||模块名: ohos.file.fs
类名: fileIo
方法名 or 属性名: truncateSync|@ohos.file.fs.d.ts| -|新增||模块名: ohos.file.fs
类名: fileIo
方法名 or 属性名: write|@ohos.file.fs.d.ts| -|新增||模块名: ohos.file.fs
类名: fileIo
方法名 or 属性名: write|@ohos.file.fs.d.ts| -|新增||模块名: ohos.file.fs
类名: fileIo
方法名 or 属性名: write|@ohos.file.fs.d.ts| -|新增||模块名: ohos.file.fs
类名: fileIo
方法名 or 属性名: writeSync|@ohos.file.fs.d.ts| -|新增||模块名: ohos.file.fs
类名: File|@ohos.file.fs.d.ts| -|新增||模块名: ohos.file.fs
类名: File
方法名 or 属性名: fd|@ohos.file.fs.d.ts| -|新增||模块名: ohos.file.fs
类名: Stat|@ohos.file.fs.d.ts| -|新增||模块名: ohos.file.fs
类名: Stat
方法名 or 属性名: ino|@ohos.file.fs.d.ts| -|新增||模块名: ohos.file.fs
类名: Stat
方法名 or 属性名: mode|@ohos.file.fs.d.ts| -|新增||模块名: ohos.file.fs
类名: Stat
方法名 or 属性名: uid|@ohos.file.fs.d.ts| -|新增||模块名: ohos.file.fs
类名: Stat
方法名 or 属性名: gid|@ohos.file.fs.d.ts| -|新增||模块名: ohos.file.fs
类名: Stat
方法名 or 属性名: size|@ohos.file.fs.d.ts| -|新增||模块名: ohos.file.fs
类名: Stat
方法名 or 属性名: atime|@ohos.file.fs.d.ts| -|新增||模块名: ohos.file.fs
类名: Stat
方法名 or 属性名: mtime|@ohos.file.fs.d.ts| -|新增||模块名: ohos.file.fs
类名: Stat
方法名 or 属性名: ctime|@ohos.file.fs.d.ts| -|新增||模块名: ohos.file.fs
类名: Stat
方法名 or 属性名: isBlockDevice|@ohos.file.fs.d.ts| -|新增||模块名: ohos.file.fs
类名: Stat
方法名 or 属性名: isCharacterDevice|@ohos.file.fs.d.ts| -|新增||模块名: ohos.file.fs
类名: Stat
方法名 or 属性名: isDirectory|@ohos.file.fs.d.ts| -|新增||模块名: ohos.file.fs
类名: Stat
方法名 or 属性名: isFIFO|@ohos.file.fs.d.ts| -|新增||模块名: ohos.file.fs
类名: Stat
方法名 or 属性名: isFile|@ohos.file.fs.d.ts| -|新增||模块名: ohos.file.fs
类名: Stat
方法名 or 属性名: isSocket|@ohos.file.fs.d.ts| -|新增||模块名: ohos.file.fs
类名: Stat
方法名 or 属性名: isSymbolicLink|@ohos.file.fs.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: userFileManager|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: userFileManager
方法名 or 属性名: getUserFileMgr|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: FileType|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: FileType
方法名 or 属性名: IMAGE|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: FileType
方法名 or 属性名: VIDEO|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: FileType
方法名 or 属性名: AUDIO|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: FileAsset|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: FileAsset
方法名 or 属性名: uri|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: FileAsset
方法名 or 属性名: fileType|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: FileAsset
方法名 or 属性名: displayName|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: FileAsset
方法名 or 属性名: get|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: FileAsset
方法名 or 属性名: set|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: FileAsset
方法名 or 属性名: commitModify|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: FileAsset
方法名 or 属性名: commitModify|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: FileAsset
方法名 or 属性名: open|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: FileAsset
方法名 or 属性名: open|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: FileAsset
方法名 or 属性名: close|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: FileAsset
方法名 or 属性名: close|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: FileAsset
方法名 or 属性名: getThumbnail|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: FileAsset
方法名 or 属性名: getThumbnail|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: FileAsset
方法名 or 属性名: getThumbnail|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: FileAsset
方法名 or 属性名: favorite|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: FileAsset
方法名 or 属性名: favorite|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: AudioKey|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: AudioKey
方法名 or 属性名: URI|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: AudioKey
方法名 or 属性名: DISPLAY_NAME|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: AudioKey
方法名 or 属性名: DATE_ADDED|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: AudioKey
方法名 or 属性名: DATE_MODIFIED|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: AudioKey
方法名 or 属性名: TITLE|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: AudioKey
方法名 or 属性名: ARTIST|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: AudioKey
方法名 or 属性名: AUDIOALBUM|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: AudioKey
方法名 or 属性名: DURATION|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: AudioKey
方法名 or 属性名: FAVORITE|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: ImageVideoKey|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: ImageVideoKey
方法名 or 属性名: URI|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: ImageVideoKey
方法名 or 属性名: FILE_TYPE|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: ImageVideoKey
方法名 or 属性名: DISPLAY_NAME|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: ImageVideoKey
方法名 or 属性名: DATE_ADDED|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: ImageVideoKey
方法名 or 属性名: DATE_MODIFIED|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: ImageVideoKey
方法名 or 属性名: TITLE|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: ImageVideoKey
方法名 or 属性名: DURATION|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: ImageVideoKey
方法名 or 属性名: WIDTH|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: ImageVideoKey
方法名 or 属性名: HEIGHT|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: ImageVideoKey
方法名 or 属性名: DATE_TAKEN|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: ImageVideoKey
方法名 or 属性名: ORIENTATION|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: ImageVideoKey
方法名 or 属性名: FAVORITE|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: AlbumKey|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: AlbumKey
方法名 or 属性名: URI|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: AlbumKey
方法名 or 属性名: FILE_TYPE|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: AlbumKey
方法名 or 属性名: ALBUM_NAME|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: AlbumKey
方法名 or 属性名: DATE_ADDED|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: AlbumKey
方法名 or 属性名: DATE_MODIFIED|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: FetchOptions|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: FetchOptions
方法名 or 属性名: fetchColumns|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: FetchOptions
方法名 or 属性名: predicates|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: AlbumFetchOptions|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: AlbumFetchOptions
方法名 or 属性名: predicates|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: FetchResult|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: FetchResult
方法名 or 属性名: getCount|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: FetchResult
方法名 or 属性名: isAfterLast|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: FetchResult
方法名 or 属性名: close|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: FetchResult
方法名 or 属性名: getFirstObject|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: FetchResult
方法名 or 属性名: getFirstObject|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: FetchResult
方法名 or 属性名: getNextObject|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: FetchResult
方法名 or 属性名: getNextObject|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: FetchResult
方法名 or 属性名: getLastObject|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: FetchResult
方法名 or 属性名: getLastObject|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: FetchResult
方法名 or 属性名: getPositionObject|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: FetchResult
方法名 or 属性名: getPositionObject|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: AbsAlbum|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: AbsAlbum
方法名 or 属性名: albumName|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: AbsAlbum
方法名 or 属性名: albumUri|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: AbsAlbum
方法名 or 属性名: dateModified|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: AbsAlbum
方法名 or 属性名: count|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: AbsAlbum
方法名 or 属性名: coverUri|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: AbsAlbum
方法名 or 属性名: getPhotoAssets|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: AbsAlbum
方法名 or 属性名: getPhotoAssets|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: Album|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: Album
方法名 or 属性名: commitModify|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: Album
方法名 or 属性名: commitModify|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: UserFileManager|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法名 or 属性名: getPhotoAssets|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法名 or 属性名: getPhotoAssets|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法名 or 属性名: createPhotoAsset|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法名 or 属性名: createPhotoAsset|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法名 or 属性名: createPhotoAsset|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法名 or 属性名: getPhotoAlbums|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法名 or 属性名: getPhotoAlbums|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法名 or 属性名: getPrivateAlbum|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法名 or 属性名: getPrivateAlbum|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法名 or 属性名: getAudioAssets|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法名 or 属性名: getAudioAssets|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法名 or 属性名: delete|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法名 or 属性名: delete|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法名 or 属性名: on_deviceChange|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法名 or 属性名: on_albumChange|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法名 or 属性名: on_imageChange|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法名 or 属性名: on_audioChange|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法名 or 属性名: on_videoChange|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法名 or 属性名: on_remoteFileChange|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法名 or 属性名: off_deviceChange|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法名 or 属性名: off_albumChange|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法名 or 属性名: off_imageChange|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法名 or 属性名: off_audioChange|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法名 or 属性名: off_videoChange|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法名 or 属性名: off_remoteFileChange|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法名 or 属性名: getActivePeers|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法名 or 属性名: getActivePeers|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法名 or 属性名: getAllPeers|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法名 or 属性名: getAllPeers|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法名 or 属性名: release|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法名 or 属性名: release|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: PeerInfo|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: PeerInfo
方法名 or 属性名: deviceName|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: PeerInfo
方法名 or 属性名: networkId|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: PeerInfo
方法名 or 属性名: isOnline|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: PrivateAlbumType|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: PrivateAlbumType
方法名 or 属性名: TYPE_FAVORITE|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: PrivateAlbumType
方法名 or 属性名: TYPE_TRASH|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: PrivateAlbum|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: PrivateAlbum
方法名 or 属性名: delete|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: PrivateAlbum
方法名 or 属性名: delete|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: PrivateAlbum
方法名 or 属性名: recover|@ohos.filemanagement.userFileManager.d.ts| -|新增||模块名: ohos.filemanagement.userFileManager
类名: PrivateAlbum
方法名 or 属性名: recover|@ohos.filemanagement.userFileManager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: userfile_manager||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: userfile_manager
方法名 or 属性名: getUserFileMgr||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: userfile_manager
方法名 or 属性名: getUserFileMgr||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: MediaType||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: MediaType
方法名 or 属性名: FILE||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: MediaType
方法名 or 属性名: IMAGE||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: MediaType
方法名 or 属性名: VIDEO||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: MediaType
方法名 or 属性名: AUDIO||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: FileAsset||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: FileAsset
方法名 or 属性名: uri||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: FileAsset
方法名 or 属性名: mediaType||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: FileAsset
方法名 or 属性名: displayName||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: FileAsset
方法名 or 属性名: isDirectory||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: FileAsset
方法名 or 属性名: isDirectory||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: FileAsset
方法名 or 属性名: commitModify||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: FileAsset
方法名 or 属性名: commitModify||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: FileAsset
方法名 or 属性名: open||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: FileAsset
方法名 or 属性名: open||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: FileAsset
方法名 or 属性名: close||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: FileAsset
方法名 or 属性名: close||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: FileAsset
方法名 or 属性名: getThumbnail||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: FileAsset
方法名 or 属性名: getThumbnail||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: FileAsset
方法名 or 属性名: getThumbnail||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: FileAsset
方法名 or 属性名: favorite||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: FileAsset
方法名 or 属性名: favorite||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: FileAsset
方法名 or 属性名: isFavorite||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: FileAsset
方法名 or 属性名: isFavorite||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: FileAsset
方法名 or 属性名: trash||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: FileAsset
方法名 or 属性名: trash||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: FileAsset
方法名 or 属性名: isTrash||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: FileAsset
方法名 or 属性名: isTrash||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: FileKey||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: FileKey
方法名 or 属性名: URI||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: FileKey
方法名 or 属性名: RELATIVE_PATH||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: FileKey
方法名 or 属性名: DISPLAY_NAME||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: FileKey
方法名 or 属性名: DATE_ADDED||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: FileKey
方法名 or 属性名: DATE_MODIFIED||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: FileKey
方法名 or 属性名: TITLE||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: AudioKey||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: AudioKey
方法名 or 属性名: URI||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: AudioKey
方法名 or 属性名: RELATIVE_PATH||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: AudioKey
方法名 or 属性名: DISPLAY_NAME||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: AudioKey
方法名 or 属性名: DATE_ADDED||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: AudioKey
方法名 or 属性名: DATE_MODIFIED||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: AudioKey
方法名 or 属性名: TITLE||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: AudioKey
方法名 or 属性名: ARTIST||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: AudioKey
方法名 or 属性名: AUDIOALBUM||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: AudioKey
方法名 or 属性名: DURATION||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: ImageVideoKey||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: ImageVideoKey
方法名 or 属性名: URI||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: ImageVideoKey
方法名 or 属性名: RELATIVE_PATH||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: ImageVideoKey
方法名 or 属性名: DISPLAY_NAME||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: ImageVideoKey
方法名 or 属性名: DATE_ADDED||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: ImageVideoKey
方法名 or 属性名: DATE_MODIFIED||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: ImageVideoKey
方法名 or 属性名: TITLE||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: ImageVideoKey
方法名 or 属性名: DURATION||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: ImageVideoKey
方法名 or 属性名: WIDTH||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: ImageVideoKey
方法名 or 属性名: HEIGHT||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: ImageVideoKey
方法名 or 属性名: DATE_TAKEN||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: AlbumKey||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: AlbumKey
方法名 or 属性名: URI||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: AlbumKey
方法名 or 属性名: RELATIVE_PATH||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: AlbumKey
方法名 or 属性名: DISPLAY_NAME||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: AlbumKey
方法名 or 属性名: DATE_ADDED||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: AlbumKey
方法名 or 属性名: DATE_MODIFIED||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: MediaFetchOptions||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: MediaFetchOptions
方法名 or 属性名: selections||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: MediaFetchOptions
方法名 or 属性名: selectionArgs||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: FetchFileResult||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: FetchFileResult
方法名 or 属性名: getCount||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: FetchFileResult
方法名 or 属性名: isAfterLast||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: FetchFileResult
方法名 or 属性名: close||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: FetchFileResult
方法名 or 属性名: getFirstObject||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: FetchFileResult
方法名 or 属性名: getFirstObject||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: FetchFileResult
方法名 or 属性名: getNextObject||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: FetchFileResult
方法名 or 属性名: getNextObject||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: FetchFileResult
方法名 or 属性名: getLastObject||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: FetchFileResult
方法名 or 属性名: getLastObject||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: FetchFileResult
方法名 or 属性名: getPositionObject||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: FetchFileResult
方法名 or 属性名: getPositionObject||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: Album||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: Album
方法名 or 属性名: albumName||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: Album
方法名 or 属性名: albumUri||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: Album
方法名 or 属性名: dateModified||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: Album
方法名 or 属性名: count||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: Album
方法名 or 属性名: relativePath||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: Album
方法名 or 属性名: coverUri||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: Album
方法名 or 属性名: commitModify||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: Album
方法名 or 属性名: commitModify||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: Album
方法名 or 属性名: getFileAssets||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: Album
方法名 or 属性名: getFileAssets||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: Album
方法名 or 属性名: getFileAssets||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: DirectoryType||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: DirectoryType
方法名 or 属性名: DIR_CAMERA||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: DirectoryType
方法名 or 属性名: DIR_VIDEO||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: DirectoryType
方法名 or 属性名: DIR_IMAGE||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: DirectoryType
方法名 or 属性名: DIR_AUDIO||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: DirectoryType
方法名 or 属性名: DIR_DOCUMENTS||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: DirectoryType
方法名 or 属性名: DIR_DOWNLOAD||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: UserFileManager||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: UserFileManager
方法名 or 属性名: getPublicDirectory||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: UserFileManager
方法名 or 属性名: getPublicDirectory||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: UserFileManager
方法名 or 属性名: getFileAssets||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: UserFileManager
方法名 or 属性名: getFileAssets||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: UserFileManager
方法名 or 属性名: on_deviceChange||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: UserFileManager
方法名 or 属性名: on_albumChange||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: UserFileManager
方法名 or 属性名: on_imageChange||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: UserFileManager
方法名 or 属性名: on_audioChange||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: UserFileManager
方法名 or 属性名: on_videoChange||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: UserFileManager
方法名 or 属性名: on_fileChange||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: UserFileManager
方法名 or 属性名: on_remoteFileChange||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: UserFileManager
方法名 or 属性名: off_deviceChange||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: UserFileManager
方法名 or 属性名: off_albumChange||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: UserFileManager
方法名 or 属性名: off_imageChange||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: UserFileManager
方法名 or 属性名: off_audioChange||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: UserFileManager
方法名 or 属性名: off_videoChange||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: UserFileManager
方法名 or 属性名: off_fileChange||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: UserFileManager
方法名 or 属性名: off_remoteFileChange||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: UserFileManager
方法名 or 属性名: createAsset||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: UserFileManager
方法名 or 属性名: createAsset||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: UserFileManager
方法名 or 属性名: deleteAsset||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: UserFileManager
方法名 or 属性名: deleteAsset||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: UserFileManager
方法名 or 属性名: getAlbums||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: UserFileManager
方法名 or 属性名: getAlbums||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: UserFileManager
方法名 or 属性名: getPrivateAlbum||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: UserFileManager
方法名 or 属性名: getPrivateAlbum||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: UserFileManager
方法名 or 属性名: getActivePeers||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: UserFileManager
方法名 or 属性名: getActivePeers||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: UserFileManager
方法名 or 属性名: getAllPeers||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: UserFileManager
方法名 or 属性名: getAllPeers||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: UserFileManager
方法名 or 属性名: release||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: UserFileManager
方法名 or 属性名: release||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: Size||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: Size
方法名 or 属性名: width||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: Size
方法名 or 属性名: height||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: PeerInfo||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: PeerInfo
方法名 or 属性名: deviceName||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: PeerInfo
方法名 or 属性名: networkId||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: PeerInfo
方法名 or 属性名: isOnline||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: VirtualAlbumType||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: VirtualAlbumType
方法名 or 属性名: TYPE_FAVORITE||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: VirtualAlbumType
方法名 or 属性名: TYPE_TRASH||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: VirtualAlbum||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: VirtualAlbum
方法名 or 属性名: getFileAssets||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.filemanagement.userfile_manager
类名: VirtualAlbum
方法名 or 属性名: getFileAssets||@ohos.filemanagement.userfile_manager.d.ts| -|删除|模块名: ohos.fileManager
类名: filemanager||@ohos.fileManager.d.ts| -|删除|模块名: ohos.fileManager
类名: filemanager
方法名 or 属性名: listFile||@ohos.fileManager.d.ts| -|删除|模块名: ohos.fileManager
类名: filemanager
方法名 or 属性名: listFile||@ohos.fileManager.d.ts| -|删除|模块名: ohos.fileManager
类名: filemanager
方法名 or 属性名: listFile||@ohos.fileManager.d.ts| -|删除|模块名: ohos.fileManager
类名: filemanager
方法名 or 属性名: getRoot||@ohos.fileManager.d.ts| -|删除|模块名: ohos.fileManager
类名: filemanager
方法名 or 属性名: getRoot||@ohos.fileManager.d.ts| -|删除|模块名: ohos.fileManager
类名: filemanager
方法名 or 属性名: getRoot||@ohos.fileManager.d.ts| -|删除|模块名: ohos.fileManager
类名: filemanager
方法名 or 属性名: createFile||@ohos.fileManager.d.ts| -|删除|模块名: ohos.fileManager
类名: filemanager
方法名 or 属性名: createFile||@ohos.fileManager.d.ts| -|删除|模块名: ohos.fileManager
类名: filemanager
方法名 or 属性名: createFile||@ohos.fileManager.d.ts| -|删除|模块名: ohos.fileManager
类名: FileInfo||@ohos.fileManager.d.ts| -|删除|模块名: ohos.fileManager
类名: FileInfo
方法名 or 属性名: name||@ohos.fileManager.d.ts| -|删除|模块名: ohos.fileManager
类名: FileInfo
方法名 or 属性名: path||@ohos.fileManager.d.ts| -|删除|模块名: ohos.fileManager
类名: FileInfo
方法名 or 属性名: type||@ohos.fileManager.d.ts| -|删除|模块名: ohos.fileManager
类名: FileInfo
方法名 or 属性名: size||@ohos.fileManager.d.ts| -|删除|模块名: ohos.fileManager
类名: FileInfo
方法名 or 属性名: addedTime||@ohos.fileManager.d.ts| -|删除|模块名: ohos.fileManager
类名: FileInfo
方法名 or 属性名: modifiedTime||@ohos.fileManager.d.ts| -|删除|模块名: ohos.fileManager
类名: DevInfo||@ohos.fileManager.d.ts| -|删除|模块名: ohos.fileManager
类名: DevInfo
方法名 or 属性名: name||@ohos.fileManager.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: fileIo|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: OpenMode|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: OpenMode
方法名 or 属性名: READ_ONLY|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: OpenMode
方法名 or 属性名: WRITE_ONLY|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: OpenMode
方法名 or 属性名: READ_WRITE|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: OpenMode
方法名 or 属性名: CREATE|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: OpenMode
方法名 or 属性名: TRUNC|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: OpenMode
方法名 or 属性名: APPEND|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: OpenMode
方法名 or 属性名: NONBLOCK|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: OpenMode
方法名 or 属性名: DIR|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: OpenMode
方法名 or 属性名: NOFOLLOW|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: OpenMode
方法名 or 属性名: SYNC|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: fileIo
方法名 or 属性名: open|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: fileIo
方法名 or 属性名: open|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: fileIo
方法名 or 属性名: open|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: fileIo
方法名 or 属性名: openSync|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: fileIo
方法名 or 属性名: read|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: fileIo
方法名 or 属性名: read|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: fileIo
方法名 or 属性名: read|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: fileIo
方法名 or 属性名: readSync|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: fileIo
方法名 or 属性名: stat|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: fileIo
方法名 or 属性名: stat|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: fileIo
方法名 or 属性名: statSync|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: fileIo
方法名 or 属性名: truncate|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: fileIo
方法名 or 属性名: truncate|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: fileIo
方法名 or 属性名: truncate|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: fileIo
方法名 or 属性名: truncateSync|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: fileIo
方法名 or 属性名: write|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: fileIo
方法名 or 属性名: write|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: fileIo
方法名 or 属性名: write|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: fileIo
方法名 or 属性名: writeSync|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: File|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: File
方法名 or 属性名: fd|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: Stat|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: Stat
方法名 or 属性名: ino|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: Stat
方法名 or 属性名: mode|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: Stat
方法名 or 属性名: uid|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: Stat
方法名 or 属性名: gid|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: Stat
方法名 or 属性名: size|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: Stat
方法名 or 属性名: atime|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: Stat
方法名 or 属性名: mtime|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: Stat
方法名 or 属性名: ctime|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: Stat
方法名 or 属性名: isBlockDevice|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: Stat
方法名 or 属性名: isCharacterDevice|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: Stat
方法名 or 属性名: isDirectory|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: Stat
方法名 or 属性名: isFIFO|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: Stat
方法名 or 属性名: isFile|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: Stat
方法名 or 属性名: isSocket|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.file.fs
类名: Stat
方法名 or 属性名: isSymbolicLink|@ohos.file.fs.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: userFileManager|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: userFileManager
方法名 or 属性名: getUserFileMgr|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: FileType|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: FileType
方法名 or 属性名: IMAGE|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: FileType
方法名 or 属性名: VIDEO|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: FileType
方法名 or 属性名: AUDIO|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: FileAsset|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: FileAsset
方法名 or 属性名: uri|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: FileAsset
方法名 or 属性名: fileType|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: FileAsset
方法名 or 属性名: displayName|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: FileAsset
方法名 or 属性名: get|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: FileAsset
方法名 or 属性名: set|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: FileAsset
方法名 or 属性名: commitModify|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: FileAsset
方法名 or 属性名: commitModify|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: FileAsset
方法名 or 属性名: open|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: FileAsset
方法名 or 属性名: open|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: FileAsset
方法名 or 属性名: close|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: FileAsset
方法名 or 属性名: close|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: FileAsset
方法名 or 属性名: getThumbnail|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: FileAsset
方法名 or 属性名: getThumbnail|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: FileAsset
方法名 or 属性名: getThumbnail|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: FileAsset
方法名 or 属性名: favorite|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: FileAsset
方法名 or 属性名: favorite|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: AudioKey|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: AudioKey
方法名 or 属性名: URI|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: AudioKey
方法名 or 属性名: DISPLAY_NAME|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: AudioKey
方法名 or 属性名: DATE_ADDED|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: AudioKey
方法名 or 属性名: DATE_MODIFIED|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: AudioKey
方法名 or 属性名: TITLE|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: AudioKey
方法名 or 属性名: ARTIST|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: AudioKey
方法名 or 属性名: AUDIOALBUM|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: AudioKey
方法名 or 属性名: DURATION|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: AudioKey
方法名 or 属性名: FAVORITE|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: ImageVideoKey|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: ImageVideoKey
方法名 or 属性名: URI|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: ImageVideoKey
方法名 or 属性名: FILE_TYPE|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: ImageVideoKey
方法名 or 属性名: DISPLAY_NAME|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: ImageVideoKey
方法名 or 属性名: DATE_ADDED|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: ImageVideoKey
方法名 or 属性名: DATE_MODIFIED|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: ImageVideoKey
方法名 or 属性名: TITLE|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: ImageVideoKey
方法名 or 属性名: DURATION|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: ImageVideoKey
方法名 or 属性名: WIDTH|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: ImageVideoKey
方法名 or 属性名: HEIGHT|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: ImageVideoKey
方法名 or 属性名: DATE_TAKEN|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: ImageVideoKey
方法名 or 属性名: ORIENTATION|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: ImageVideoKey
方法名 or 属性名: FAVORITE|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: AlbumKey|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: AlbumKey
方法名 or 属性名: URI|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: AlbumKey
方法名 or 属性名: FILE_TYPE|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: AlbumKey
方法名 or 属性名: ALBUM_NAME|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: AlbumKey
方法名 or 属性名: DATE_ADDED|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: AlbumKey
方法名 or 属性名: DATE_MODIFIED|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: FetchOptions|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: FetchOptions
方法名 or 属性名: fetchColumns|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: FetchOptions
方法名 or 属性名: predicates|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: AlbumFetchOptions|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: AlbumFetchOptions
方法名 or 属性名: predicates|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: FetchResult|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: FetchResult
方法名 or 属性名: getCount|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: FetchResult
方法名 or 属性名: isAfterLast|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: FetchResult
方法名 or 属性名: close|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: FetchResult
方法名 or 属性名: getFirstObject|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: FetchResult
方法名 or 属性名: getFirstObject|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: FetchResult
方法名 or 属性名: getNextObject|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: FetchResult
方法名 or 属性名: getNextObject|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: FetchResult
方法名 or 属性名: getLastObject|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: FetchResult
方法名 or 属性名: getLastObject|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: FetchResult
方法名 or 属性名: getPositionObject|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: FetchResult
方法名 or 属性名: getPositionObject|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: AbsAlbum|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: AbsAlbum
方法名 or 属性名: albumName|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: AbsAlbum
方法名 or 属性名: albumUri|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: AbsAlbum
方法名 or 属性名: dateModified|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: AbsAlbum
方法名 or 属性名: count|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: AbsAlbum
方法名 or 属性名: coverUri|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: AbsAlbum
方法名 or 属性名: getPhotoAssets|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: AbsAlbum
方法名 or 属性名: getPhotoAssets|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: Album|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: Album
方法名 or 属性名: commitModify|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: Album
方法名 or 属性名: commitModify|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: UserFileManager|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法名 or 属性名: getPhotoAssets|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法名 or 属性名: getPhotoAssets|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法名 or 属性名: createPhotoAsset|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法名 or 属性名: createPhotoAsset|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法名 or 属性名: createPhotoAsset|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法名 or 属性名: getPhotoAlbums|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法名 or 属性名: getPhotoAlbums|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法名 or 属性名: getPrivateAlbum|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法名 or 属性名: getPrivateAlbum|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法名 or 属性名: getAudioAssets|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法名 or 属性名: getAudioAssets|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法名 or 属性名: delete|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法名 or 属性名: delete|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法名 or 属性名: on_deviceChange|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法名 or 属性名: on_albumChange|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法名 or 属性名: on_imageChange|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法名 or 属性名: on_audioChange|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法名 or 属性名: on_videoChange|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法名 or 属性名: on_remoteFileChange|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法名 or 属性名: off_deviceChange|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法名 or 属性名: off_albumChange|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法名 or 属性名: off_imageChange|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法名 or 属性名: off_audioChange|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法名 or 属性名: off_videoChange|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法名 or 属性名: off_remoteFileChange|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法名 or 属性名: getActivePeers|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法名 or 属性名: getActivePeers|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法名 or 属性名: getAllPeers|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法名 or 属性名: getAllPeers|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法名 or 属性名: release|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: UserFileManager
方法名 or 属性名: release|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: PeerInfo|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: PeerInfo
方法名 or 属性名: deviceName|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: PeerInfo
方法名 or 属性名: networkId|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: PeerInfo
方法名 or 属性名: isOnline|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: PrivateAlbumType|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: PrivateAlbumType
方法名 or 属性名: TYPE_FAVORITE|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: PrivateAlbumType
方法名 or 属性名: TYPE_TRASH|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: PrivateAlbum|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: PrivateAlbum
方法名 or 属性名: delete|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: PrivateAlbum
方法名 or 属性名: delete|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: PrivateAlbum
方法名 or 属性名: recover|@ohos.filemanagement.userFileManager.d.ts| +|新增|NA|模块名: ohos.filemanagement.userFileManager
类名: PrivateAlbum
方法名 or 属性名: recover|@ohos.filemanagement.userFileManager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: userfile_manager|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: userfile_manager
方法名 or 属性名: getUserFileMgr|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: userfile_manager
方法名 or 属性名: getUserFileMgr|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: MediaType|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: MediaType
方法名 or 属性名: FILE|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: MediaType
方法名 or 属性名: IMAGE|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: MediaType
方法名 or 属性名: VIDEO|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: MediaType
方法名 or 属性名: AUDIO|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: FileAsset|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: FileAsset
方法名 or 属性名: uri|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: FileAsset
方法名 or 属性名: mediaType|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: FileAsset
方法名 or 属性名: displayName|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: FileAsset
方法名 or 属性名: isDirectory|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: FileAsset
方法名 or 属性名: isDirectory|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: FileAsset
方法名 or 属性名: commitModify|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: FileAsset
方法名 or 属性名: commitModify|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: FileAsset
方法名 or 属性名: open|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: FileAsset
方法名 or 属性名: open|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: FileAsset
方法名 or 属性名: close|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: FileAsset
方法名 or 属性名: close|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: FileAsset
方法名 or 属性名: getThumbnail|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: FileAsset
方法名 or 属性名: getThumbnail|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: FileAsset
方法名 or 属性名: getThumbnail|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: FileAsset
方法名 or 属性名: favorite|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: FileAsset
方法名 or 属性名: favorite|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: FileAsset
方法名 or 属性名: isFavorite|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: FileAsset
方法名 or 属性名: isFavorite|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: FileAsset
方法名 or 属性名: trash|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: FileAsset
方法名 or 属性名: trash|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: FileAsset
方法名 or 属性名: isTrash|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: FileAsset
方法名 or 属性名: isTrash|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: FileKey|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: FileKey
方法名 or 属性名: URI|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: FileKey
方法名 or 属性名: RELATIVE_PATH|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: FileKey
方法名 or 属性名: DISPLAY_NAME|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: FileKey
方法名 or 属性名: DATE_ADDED|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: FileKey
方法名 or 属性名: DATE_MODIFIED|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: FileKey
方法名 or 属性名: TITLE|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: AudioKey|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: AudioKey
方法名 or 属性名: URI|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: AudioKey
方法名 or 属性名: RELATIVE_PATH|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: AudioKey
方法名 or 属性名: DISPLAY_NAME|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: AudioKey
方法名 or 属性名: DATE_ADDED|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: AudioKey
方法名 or 属性名: DATE_MODIFIED|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: AudioKey
方法名 or 属性名: TITLE|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: AudioKey
方法名 or 属性名: ARTIST|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: AudioKey
方法名 or 属性名: AUDIOALBUM|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: AudioKey
方法名 or 属性名: DURATION|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: ImageVideoKey|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: ImageVideoKey
方法名 or 属性名: URI|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: ImageVideoKey
方法名 or 属性名: RELATIVE_PATH|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: ImageVideoKey
方法名 or 属性名: DISPLAY_NAME|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: ImageVideoKey
方法名 or 属性名: DATE_ADDED|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: ImageVideoKey
方法名 or 属性名: DATE_MODIFIED|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: ImageVideoKey
方法名 or 属性名: TITLE|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: ImageVideoKey
方法名 or 属性名: DURATION|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: ImageVideoKey
方法名 or 属性名: WIDTH|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: ImageVideoKey
方法名 or 属性名: HEIGHT|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: ImageVideoKey
方法名 or 属性名: DATE_TAKEN|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: AlbumKey|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: AlbumKey
方法名 or 属性名: URI|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: AlbumKey
方法名 or 属性名: RELATIVE_PATH|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: AlbumKey
方法名 or 属性名: DISPLAY_NAME|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: AlbumKey
方法名 or 属性名: DATE_ADDED|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: AlbumKey
方法名 or 属性名: DATE_MODIFIED|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: MediaFetchOptions|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: MediaFetchOptions
方法名 or 属性名: selections|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: MediaFetchOptions
方法名 or 属性名: selectionArgs|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: FetchFileResult|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: FetchFileResult
方法名 or 属性名: getCount|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: FetchFileResult
方法名 or 属性名: isAfterLast|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: FetchFileResult
方法名 or 属性名: close|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: FetchFileResult
方法名 or 属性名: getFirstObject|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: FetchFileResult
方法名 or 属性名: getFirstObject|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: FetchFileResult
方法名 or 属性名: getNextObject|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: FetchFileResult
方法名 or 属性名: getNextObject|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: FetchFileResult
方法名 or 属性名: getLastObject|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: FetchFileResult
方法名 or 属性名: getLastObject|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: FetchFileResult
方法名 or 属性名: getPositionObject|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: FetchFileResult
方法名 or 属性名: getPositionObject|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: Album|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: Album
方法名 or 属性名: albumName|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: Album
方法名 or 属性名: albumUri|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: Album
方法名 or 属性名: dateModified|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: Album
方法名 or 属性名: count|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: Album
方法名 or 属性名: relativePath|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: Album
方法名 or 属性名: coverUri|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: Album
方法名 or 属性名: commitModify|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: Album
方法名 or 属性名: commitModify|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: Album
方法名 or 属性名: getFileAssets|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: Album
方法名 or 属性名: getFileAssets|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: Album
方法名 or 属性名: getFileAssets|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: DirectoryType|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: DirectoryType
方法名 or 属性名: DIR_CAMERA|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: DirectoryType
方法名 or 属性名: DIR_VIDEO|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: DirectoryType
方法名 or 属性名: DIR_IMAGE|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: DirectoryType
方法名 or 属性名: DIR_AUDIO|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: DirectoryType
方法名 or 属性名: DIR_DOCUMENTS|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: DirectoryType
方法名 or 属性名: DIR_DOWNLOAD|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: UserFileManager|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: UserFileManager
方法名 or 属性名: getPublicDirectory|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: UserFileManager
方法名 or 属性名: getPublicDirectory|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: UserFileManager
方法名 or 属性名: getFileAssets|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: UserFileManager
方法名 or 属性名: getFileAssets|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: UserFileManager
方法名 or 属性名: on_deviceChange|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: UserFileManager
方法名 or 属性名: on_albumChange|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: UserFileManager
方法名 or 属性名: on_imageChange|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: UserFileManager
方法名 or 属性名: on_audioChange|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: UserFileManager
方法名 or 属性名: on_videoChange|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: UserFileManager
方法名 or 属性名: on_fileChange|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: UserFileManager
方法名 or 属性名: on_remoteFileChange|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: UserFileManager
方法名 or 属性名: off_deviceChange|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: UserFileManager
方法名 or 属性名: off_albumChange|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: UserFileManager
方法名 or 属性名: off_imageChange|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: UserFileManager
方法名 or 属性名: off_audioChange|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: UserFileManager
方法名 or 属性名: off_videoChange|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: UserFileManager
方法名 or 属性名: off_fileChange|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: UserFileManager
方法名 or 属性名: off_remoteFileChange|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: UserFileManager
方法名 or 属性名: createAsset|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: UserFileManager
方法名 or 属性名: createAsset|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: UserFileManager
方法名 or 属性名: deleteAsset|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: UserFileManager
方法名 or 属性名: deleteAsset|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: UserFileManager
方法名 or 属性名: getAlbums|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: UserFileManager
方法名 or 属性名: getAlbums|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: UserFileManager
方法名 or 属性名: getPrivateAlbum|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: UserFileManager
方法名 or 属性名: getPrivateAlbum|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: UserFileManager
方法名 or 属性名: getActivePeers|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: UserFileManager
方法名 or 属性名: getActivePeers|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: UserFileManager
方法名 or 属性名: getAllPeers|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: UserFileManager
方法名 or 属性名: getAllPeers|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: UserFileManager
方法名 or 属性名: release|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: UserFileManager
方法名 or 属性名: release|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: Size|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: Size
方法名 or 属性名: width|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: Size
方法名 or 属性名: height|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: PeerInfo|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: PeerInfo
方法名 or 属性名: deviceName|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: PeerInfo
方法名 or 属性名: networkId|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: PeerInfo
方法名 or 属性名: isOnline|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: VirtualAlbumType|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: VirtualAlbumType
方法名 or 属性名: TYPE_FAVORITE|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: VirtualAlbumType
方法名 or 属性名: TYPE_TRASH|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: VirtualAlbum|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: VirtualAlbum
方法名 or 属性名: getFileAssets|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.filemanagement.userfile_manager
类名: VirtualAlbum
方法名 or 属性名: getFileAssets|NA|@ohos.filemanagement.userfile_manager.d.ts| +|删除|模块名: ohos.fileManager
类名: filemanager|NA|@ohos.fileManager.d.ts| +|删除|模块名: ohos.fileManager
类名: filemanager
方法名 or 属性名: listFile|NA|@ohos.fileManager.d.ts| +|删除|模块名: ohos.fileManager
类名: filemanager
方法名 or 属性名: listFile|NA|@ohos.fileManager.d.ts| +|删除|模块名: ohos.fileManager
类名: filemanager
方法名 or 属性名: listFile|NA|@ohos.fileManager.d.ts| +|删除|模块名: ohos.fileManager
类名: filemanager
方法名 or 属性名: getRoot|NA|@ohos.fileManager.d.ts| +|删除|模块名: ohos.fileManager
类名: filemanager
方法名 or 属性名: getRoot|NA|@ohos.fileManager.d.ts| +|删除|模块名: ohos.fileManager
类名: filemanager
方法名 or 属性名: getRoot|NA|@ohos.fileManager.d.ts| +|删除|模块名: ohos.fileManager
类名: filemanager
方法名 or 属性名: createFile|NA|@ohos.fileManager.d.ts| +|删除|模块名: ohos.fileManager
类名: filemanager
方法名 or 属性名: createFile|NA|@ohos.fileManager.d.ts| +|删除|模块名: ohos.fileManager
类名: filemanager
方法名 or 属性名: createFile|NA|@ohos.fileManager.d.ts| +|删除|模块名: ohos.fileManager
类名: FileInfo|NA|@ohos.fileManager.d.ts| +|删除|模块名: ohos.fileManager
类名: FileInfo
方法名 or 属性名: name|NA|@ohos.fileManager.d.ts| +|删除|模块名: ohos.fileManager
类名: FileInfo
方法名 or 属性名: path|NA|@ohos.fileManager.d.ts| +|删除|模块名: ohos.fileManager
类名: FileInfo
方法名 or 属性名: type|NA|@ohos.fileManager.d.ts| +|删除|模块名: ohos.fileManager
类名: FileInfo
方法名 or 属性名: size|NA|@ohos.fileManager.d.ts| +|删除|模块名: ohos.fileManager
类名: FileInfo
方法名 or 属性名: addedTime|NA|@ohos.fileManager.d.ts| +|删除|模块名: ohos.fileManager
类名: FileInfo
方法名 or 属性名: modifiedTime|NA|@ohos.fileManager.d.ts| +|删除|模块名: ohos.fileManager
类名: DevInfo|NA|@ohos.fileManager.d.ts| +|删除|模块名: ohos.fileManager
类名: DevInfo
方法名 or 属性名: name|NA|@ohos.fileManager.d.ts| |废弃版本有变化|方法名 or 属性名:ftruncate
废弃版本:N/A|方法名 or 属性名:ftruncate
废弃版本:9
代替接口:ohos.file.fs.truncate |@ohos.fileio.d.ts| |废弃版本有变化|方法名 or 属性名:ftruncate
废弃版本:N/A|方法名 or 属性名:ftruncate
废弃版本:9|@ohos.fileio.d.ts| |废弃版本有变化|方法名 or 属性名:ftruncate
废弃版本:N/A|方法名 or 属性名:ftruncate
废弃版本:9|@ohos.fileio.d.ts| diff --git a/zh-cn/release-notes/api-diff/v3.2-beta4/js-apidiff-geolocation.md b/zh-cn/release-notes/api-diff/v3.2-beta4/js-apidiff-geolocation.md index 3bdaadbe48dbe969a5e6ddf033fd0b4630a4c7ce..a3ee9ca64cbb86c7ae443a90fddb5519a69b8175 100644 --- a/zh-cn/release-notes/api-diff/v3.2-beta4/js-apidiff-geolocation.md +++ b/zh-cn/release-notes/api-diff/v3.2-beta4/js-apidiff-geolocation.md @@ -1,173 +1,173 @@ -| 操作 | 新版本 | 旧版本 | d.ts文件 | +| 操作 | 旧版本 | 新版本 | d.ts文件 | | ---- | ------ | ------ | -------- | -|新增||模块名: ohos.geoLocationManager
类名: geoLocationManager|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: geoLocationManager
方法名 or 属性名: on_countryCodeChange|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: geoLocationManager
方法名 or 属性名: off_countryCodeChange|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: geoLocationManager
方法名 or 属性名: enableLocation|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: geoLocationManager
方法名 or 属性名: enableLocation|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: geoLocationManager
方法名 or 属性名: disableLocation|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: geoLocationManager
方法名 or 属性名: disableLocation|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: geoLocationManager
方法名 or 属性名: getCountryCode|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: geoLocationManager
方法名 or 属性名: getCountryCode|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: geoLocationManager
方法名 or 属性名: enableLocationMock|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: geoLocationManager
方法名 or 属性名: enableLocationMock|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: geoLocationManager
方法名 or 属性名: disableLocationMock|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: geoLocationManager
方法名 or 属性名: disableLocationMock|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: geoLocationManager
方法名 or 属性名: setMockedLocations|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: geoLocationManager
方法名 or 属性名: setMockedLocations|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: geoLocationManager
方法名 or 属性名: enableReverseGeocodingMock|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: geoLocationManager
方法名 or 属性名: enableReverseGeocodingMock|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: geoLocationManager
方法名 or 属性名: disableReverseGeocodingMock|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: geoLocationManager
方法名 or 属性名: disableReverseGeocodingMock|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: geoLocationManager
方法名 or 属性名: setReverseGeocodingMockInfo|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: geoLocationManager
方法名 or 属性名: setReverseGeocodingMockInfo|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: geoLocationManager
方法名 or 属性名: isLocationPrivacyConfirmed|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: geoLocationManager
方法名 or 属性名: isLocationPrivacyConfirmed|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: geoLocationManager
方法名 or 属性名: setLocationPrivacyConfirmStatus|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: geoLocationManager
方法名 or 属性名: setLocationPrivacyConfirmStatus|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: ReverseGeocodingMockInfo|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: ReverseGeocodingMockInfo
方法名 or 属性名: location|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: ReverseGeocodingMockInfo
方法名 or 属性名: geoAddress|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: LocationMockConfig|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: LocationMockConfig
方法名 or 属性名: timeInterval|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: LocationMockConfig
方法名 or 属性名: locations|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: SatelliteStatusInfo|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: SatelliteStatusInfo
方法名 or 属性名: satellitesNumber|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: SatelliteStatusInfo
方法名 or 属性名: satelliteIds|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: SatelliteStatusInfo
方法名 or 属性名: carrierToNoiseDensitys|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: SatelliteStatusInfo
方法名 or 属性名: altitudes|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: SatelliteStatusInfo
方法名 or 属性名: azimuths|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: SatelliteStatusInfo
方法名 or 属性名: carrierFrequencies|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: CachedGnssLocationsRequest|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: CachedGnssLocationsRequest
方法名 or 属性名: reportingPeriodSec|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: CachedGnssLocationsRequest
方法名 or 属性名: wakeUpCacheQueueFull|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: GeofenceRequest|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: GeofenceRequest
方法名 or 属性名: priority|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: GeofenceRequest
方法名 or 属性名: scenario|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: GeofenceRequest
方法名 or 属性名: geofence|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: Geofence|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: Geofence
方法名 or 属性名: latitude|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: Geofence
方法名 or 属性名: longitude|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: Geofence
方法名 or 属性名: radius|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: Geofence
方法名 or 属性名: expiration|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: ReverseGeoCodeRequest|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: ReverseGeoCodeRequest
方法名 or 属性名: locale|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: ReverseGeoCodeRequest
方法名 or 属性名: latitude|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: ReverseGeoCodeRequest
方法名 or 属性名: longitude|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: ReverseGeoCodeRequest
方法名 or 属性名: maxItems|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: GeoCodeRequest|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: GeoCodeRequest
方法名 or 属性名: locale|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: GeoCodeRequest
方法名 or 属性名: description|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: GeoCodeRequest
方法名 or 属性名: maxItems|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: GeoCodeRequest
方法名 or 属性名: minLatitude|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: GeoCodeRequest
方法名 or 属性名: minLongitude|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: GeoCodeRequest
方法名 or 属性名: maxLatitude|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: GeoCodeRequest
方法名 or 属性名: maxLongitude|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: GeoAddress|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: GeoAddress
方法名 or 属性名: latitude|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: GeoAddress
方法名 or 属性名: longitude|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: GeoAddress
方法名 or 属性名: locale|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: GeoAddress
方法名 or 属性名: placeName|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: GeoAddress
方法名 or 属性名: countryCode|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: GeoAddress
方法名 or 属性名: countryName|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: GeoAddress
方法名 or 属性名: administrativeArea|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: GeoAddress
方法名 or 属性名: subAdministrativeArea|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: GeoAddress
方法名 or 属性名: locality|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: GeoAddress
方法名 or 属性名: subLocality|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: GeoAddress
方法名 or 属性名: roadName|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: GeoAddress
方法名 or 属性名: subRoadName|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: GeoAddress
方法名 or 属性名: premises|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: GeoAddress
方法名 or 属性名: postalCode|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: GeoAddress
方法名 or 属性名: phoneNumber|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: GeoAddress
方法名 or 属性名: addressUrl|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: GeoAddress
方法名 or 属性名: descriptions|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: GeoAddress
方法名 or 属性名: descriptionsSize|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: GeoAddress
方法名 or 属性名: isFromMock|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: LocationRequest|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: LocationRequest
方法名 or 属性名: priority|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: LocationRequest
方法名 or 属性名: scenario|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: LocationRequest
方法名 or 属性名: timeInterval|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: LocationRequest
方法名 or 属性名: distanceInterval|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: LocationRequest
方法名 or 属性名: maxAccuracy|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: CurrentLocationRequest|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: CurrentLocationRequest
方法名 or 属性名: priority|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: CurrentLocationRequest
方法名 or 属性名: scenario|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: CurrentLocationRequest
方法名 or 属性名: maxAccuracy|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: CurrentLocationRequest
方法名 or 属性名: timeoutMs|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: Location|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: Location
方法名 or 属性名: latitude|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: Location
方法名 or 属性名: longitude|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: Location
方法名 or 属性名: altitude|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: Location
方法名 or 属性名: accuracy|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: Location
方法名 or 属性名: speed|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: Location
方法名 or 属性名: timeStamp|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: Location
方法名 or 属性名: direction|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: Location
方法名 or 属性名: timeSinceBoot|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: Location
方法名 or 属性名: additions|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: Location
方法名 or 属性名: additionSize|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: Location
方法名 or 属性名: isFromMock|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: LocationRequestPriority|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: LocationRequestPriority
方法名 or 属性名: UNSET|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: LocationRequestPriority
方法名 or 属性名: ACCURACY|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: LocationRequestPriority
方法名 or 属性名: LOW_POWER|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: LocationRequestPriority
方法名 or 属性名: FIRST_FIX|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: LocationRequestScenario|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: LocationRequestScenario
方法名 or 属性名: UNSET|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: LocationRequestScenario
方法名 or 属性名: NAVIGATION|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: LocationRequestScenario
方法名 or 属性名: TRAJECTORY_TRACKING|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: LocationRequestScenario
方法名 or 属性名: CAR_HAILING|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: LocationRequestScenario
方法名 or 属性名: DAILY_LIFE_SERVICE|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: LocationRequestScenario
方法名 or 属性名: NO_POWER|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: LocationPrivacyType|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: LocationPrivacyType
方法名 or 属性名: OTHERS|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: LocationPrivacyType
方法名 or 属性名: STARTUP|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: LocationPrivacyType
方法名 or 属性名: CORE_LOCATION|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: LocationCommand|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: LocationCommand
方法名 or 属性名: scenario|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: LocationCommand
方法名 or 属性名: command|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: CountryCode|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: CountryCode
方法名 or 属性名: country|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: CountryCode
方法名 or 属性名: type|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: CountryCodeType|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: CountryCodeType
方法名 or 属性名: COUNTRY_CODE_FROM_LOCALE|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: CountryCodeType
方法名 or 属性名: COUNTRY_CODE_FROM_SIM|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: CountryCodeType
方法名 or 属性名: COUNTRY_CODE_FROM_LOCATION|@ohos.geoLocationManager.d.ts| -|新增||模块名: ohos.geoLocationManager
类名: CountryCodeType
方法名 or 属性名: COUNTRY_CODE_FROM_NETWORK|@ohos.geoLocationManager.d.ts| -|删除|模块名:ohos.geolocation
类名:geolocation
方法名 or 属性名:on_countryCodeChange||@ohos.geolocation.d.ts| -|删除|模块名:ohos.geolocation
类名:geolocation
方法名 or 属性名:off_countryCodeChange||@ohos.geolocation.d.ts| -|删除|模块名:ohos.geolocation
类名:geolocation
方法名 or 属性名:getCountryCode||@ohos.geolocation.d.ts| -|删除|模块名:ohos.geolocation
类名:geolocation
方法名 or 属性名:getCountryCode||@ohos.geolocation.d.ts| -|删除|模块名:ohos.geolocation
类名:geolocation
方法名 or 属性名:enableLocationMock||@ohos.geolocation.d.ts| -|删除|模块名:ohos.geolocation
类名:geolocation
方法名 or 属性名:enableLocationMock||@ohos.geolocation.d.ts| -|删除|模块名:ohos.geolocation
类名:geolocation
方法名 or 属性名:disableLocationMock||@ohos.geolocation.d.ts| -|删除|模块名:ohos.geolocation
类名:geolocation
方法名 or 属性名:disableLocationMock||@ohos.geolocation.d.ts| -|删除|模块名:ohos.geolocation
类名:geolocation
方法名 or 属性名:setMockedLocations||@ohos.geolocation.d.ts| -|删除|模块名:ohos.geolocation
类名:geolocation
方法名 or 属性名:setMockedLocations||@ohos.geolocation.d.ts| -|删除|模块名:ohos.geolocation
类名:geolocation
方法名 or 属性名:enableReverseGeocodingMock||@ohos.geolocation.d.ts| -|删除|模块名:ohos.geolocation
类名:geolocation
方法名 or 属性名:enableReverseGeocodingMock||@ohos.geolocation.d.ts| -|删除|模块名:ohos.geolocation
类名:geolocation
方法名 or 属性名:disableReverseGeocodingMock||@ohos.geolocation.d.ts| -|删除|模块名:ohos.geolocation
类名:geolocation
方法名 or 属性名:disableReverseGeocodingMock||@ohos.geolocation.d.ts| -|删除|模块名:ohos.geolocation
类名:geolocation
方法名 or 属性名:setReverseGeocodingMockInfo||@ohos.geolocation.d.ts| -|删除|模块名:ohos.geolocation
类名:geolocation
方法名 or 属性名:setReverseGeocodingMockInfo||@ohos.geolocation.d.ts| -|删除|模块名: ohos.geolocation
类名: ReverseGeocodingMockInfo||@ohos.geolocation.d.ts| -|删除|模块名: ohos.geolocation
类名: ReverseGeocodingMockInfo
方法名 or 属性名:location||@ohos.geolocation.d.ts| -|删除|模块名: ohos.geolocation
类名: ReverseGeocodingMockInfo
方法名 or 属性名:geoAddress||@ohos.geolocation.d.ts| -|删除|模块名: ohos.geolocation
类名: LocationMockConfig||@ohos.geolocation.d.ts| -|删除|模块名: ohos.geolocation
类名: LocationMockConfig
方法名 or 属性名:timeInterval||@ohos.geolocation.d.ts| -|删除|模块名: ohos.geolocation
类名: LocationMockConfig
方法名 or 属性名:locations||@ohos.geolocation.d.ts| -|删除|模块名:ohos.geolocation
类名:geolocation
方法名 or 属性名:isLocationPrivacyConfirmed||@ohos.geolocation.d.ts| -|删除|模块名:ohos.geolocation
类名:geolocation
方法名 or 属性名:isLocationPrivacyConfirmed||@ohos.geolocation.d.ts| -|删除|模块名:ohos.geolocation
类名:geolocation
方法名 or 属性名:setLocationPrivacyConfirmStatus||@ohos.geolocation.d.ts| -|删除|模块名:ohos.geolocation
类名:geolocation
方法名 or 属性名:setLocationPrivacyConfirmStatus||@ohos.geolocation.d.ts| -|删除|模块名: ohos.geolocation
类名: GeoAddress
方法名 or 属性名:isFromMock||@ohos.geolocation.d.ts| -|删除|模块名: ohos.geolocation
类名: Location
方法名 or 属性名:isFromMock||@ohos.geolocation.d.ts| -|删除|模块名: ohos.geolocation
类名: GeoLocationErrorCode
方法名 or 属性名:NOT_SUPPORTED||@ohos.geolocation.d.ts| -|删除|模块名: ohos.geolocation
类名: GeoLocationErrorCode
方法名 or 属性名:QUERY_COUNTRY_CODE_ERROR||@ohos.geolocation.d.ts| -|删除|模块名: ohos.geolocation
类名: CountryCode||@ohos.geolocation.d.ts| -|删除|模块名: ohos.geolocation
类名: CountryCode
方法名 or 属性名:country||@ohos.geolocation.d.ts| -|删除|模块名: ohos.geolocation
类名: CountryCode
方法名 or 属性名:type||@ohos.geolocation.d.ts| -|删除|模块名: ohos.geolocation
类名: CountryCodeType||@ohos.geolocation.d.ts| -|删除|模块名: ohos.geolocation
类名: CountryCodeType
方法名 or 属性名:COUNTRY_CODE_FROM_LOCALE||@ohos.geolocation.d.ts| -|删除|模块名: ohos.geolocation
类名: CountryCodeType
方法名 or 属性名:COUNTRY_CODE_FROM_SIM||@ohos.geolocation.d.ts| -|删除|模块名: ohos.geolocation
类名: CountryCodeType
方法名 or 属性名:COUNTRY_CODE_FROM_LOCATION||@ohos.geolocation.d.ts| -|删除|模块名: ohos.geolocation
类名: CountryCodeType
方法名 or 属性名:COUNTRY_CODE_FROM_NETWORK||@ohos.geolocation.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: geoLocationManager|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: geoLocationManager
方法名 or 属性名: on_countryCodeChange|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: geoLocationManager
方法名 or 属性名: off_countryCodeChange|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: geoLocationManager
方法名 or 属性名: enableLocation|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: geoLocationManager
方法名 or 属性名: enableLocation|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: geoLocationManager
方法名 or 属性名: disableLocation|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: geoLocationManager
方法名 or 属性名: disableLocation|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: geoLocationManager
方法名 or 属性名: getCountryCode|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: geoLocationManager
方法名 or 属性名: getCountryCode|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: geoLocationManager
方法名 or 属性名: enableLocationMock|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: geoLocationManager
方法名 or 属性名: enableLocationMock|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: geoLocationManager
方法名 or 属性名: disableLocationMock|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: geoLocationManager
方法名 or 属性名: disableLocationMock|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: geoLocationManager
方法名 or 属性名: setMockedLocations|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: geoLocationManager
方法名 or 属性名: setMockedLocations|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: geoLocationManager
方法名 or 属性名: enableReverseGeocodingMock|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: geoLocationManager
方法名 or 属性名: enableReverseGeocodingMock|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: geoLocationManager
方法名 or 属性名: disableReverseGeocodingMock|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: geoLocationManager
方法名 or 属性名: disableReverseGeocodingMock|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: geoLocationManager
方法名 or 属性名: setReverseGeocodingMockInfo|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: geoLocationManager
方法名 or 属性名: setReverseGeocodingMockInfo|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: geoLocationManager
方法名 or 属性名: isLocationPrivacyConfirmed|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: geoLocationManager
方法名 or 属性名: isLocationPrivacyConfirmed|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: geoLocationManager
方法名 or 属性名: setLocationPrivacyConfirmStatus|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: geoLocationManager
方法名 or 属性名: setLocationPrivacyConfirmStatus|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: ReverseGeocodingMockInfo|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: ReverseGeocodingMockInfo
方法名 or 属性名: location|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: ReverseGeocodingMockInfo
方法名 or 属性名: geoAddress|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: LocationMockConfig|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: LocationMockConfig
方法名 or 属性名: timeInterval|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: LocationMockConfig
方法名 or 属性名: locations|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: SatelliteStatusInfo|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: SatelliteStatusInfo
方法名 or 属性名: satellitesNumber|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: SatelliteStatusInfo
方法名 or 属性名: satelliteIds|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: SatelliteStatusInfo
方法名 or 属性名: carrierToNoiseDensitys|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: SatelliteStatusInfo
方法名 or 属性名: altitudes|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: SatelliteStatusInfo
方法名 or 属性名: azimuths|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: SatelliteStatusInfo
方法名 or 属性名: carrierFrequencies|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: CachedGnssLocationsRequest|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: CachedGnssLocationsRequest
方法名 or 属性名: reportingPeriodSec|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: CachedGnssLocationsRequest
方法名 or 属性名: wakeUpCacheQueueFull|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: GeofenceRequest|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: GeofenceRequest
方法名 or 属性名: priority|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: GeofenceRequest
方法名 or 属性名: scenario|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: GeofenceRequest
方法名 or 属性名: geofence|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: Geofence|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: Geofence
方法名 or 属性名: latitude|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: Geofence
方法名 or 属性名: longitude|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: Geofence
方法名 or 属性名: radius|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: Geofence
方法名 or 属性名: expiration|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: ReverseGeoCodeRequest|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: ReverseGeoCodeRequest
方法名 or 属性名: locale|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: ReverseGeoCodeRequest
方法名 or 属性名: latitude|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: ReverseGeoCodeRequest
方法名 or 属性名: longitude|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: ReverseGeoCodeRequest
方法名 or 属性名: maxItems|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: GeoCodeRequest|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: GeoCodeRequest
方法名 or 属性名: locale|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: GeoCodeRequest
方法名 or 属性名: description|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: GeoCodeRequest
方法名 or 属性名: maxItems|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: GeoCodeRequest
方法名 or 属性名: minLatitude|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: GeoCodeRequest
方法名 or 属性名: minLongitude|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: GeoCodeRequest
方法名 or 属性名: maxLatitude|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: GeoCodeRequest
方法名 or 属性名: maxLongitude|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: GeoAddress|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: GeoAddress
方法名 or 属性名: latitude|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: GeoAddress
方法名 or 属性名: longitude|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: GeoAddress
方法名 or 属性名: locale|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: GeoAddress
方法名 or 属性名: placeName|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: GeoAddress
方法名 or 属性名: countryCode|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: GeoAddress
方法名 or 属性名: countryName|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: GeoAddress
方法名 or 属性名: administrativeArea|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: GeoAddress
方法名 or 属性名: subAdministrativeArea|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: GeoAddress
方法名 or 属性名: locality|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: GeoAddress
方法名 or 属性名: subLocality|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: GeoAddress
方法名 or 属性名: roadName|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: GeoAddress
方法名 or 属性名: subRoadName|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: GeoAddress
方法名 or 属性名: premises|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: GeoAddress
方法名 or 属性名: postalCode|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: GeoAddress
方法名 or 属性名: phoneNumber|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: GeoAddress
方法名 or 属性名: addressUrl|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: GeoAddress
方法名 or 属性名: descriptions|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: GeoAddress
方法名 or 属性名: descriptionsSize|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: GeoAddress
方法名 or 属性名: isFromMock|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: LocationRequest|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: LocationRequest
方法名 or 属性名: priority|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: LocationRequest
方法名 or 属性名: scenario|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: LocationRequest
方法名 or 属性名: timeInterval|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: LocationRequest
方法名 or 属性名: distanceInterval|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: LocationRequest
方法名 or 属性名: maxAccuracy|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: CurrentLocationRequest|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: CurrentLocationRequest
方法名 or 属性名: priority|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: CurrentLocationRequest
方法名 or 属性名: scenario|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: CurrentLocationRequest
方法名 or 属性名: maxAccuracy|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: CurrentLocationRequest
方法名 or 属性名: timeoutMs|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: Location|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: Location
方法名 or 属性名: latitude|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: Location
方法名 or 属性名: longitude|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: Location
方法名 or 属性名: altitude|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: Location
方法名 or 属性名: accuracy|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: Location
方法名 or 属性名: speed|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: Location
方法名 or 属性名: timeStamp|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: Location
方法名 or 属性名: direction|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: Location
方法名 or 属性名: timeSinceBoot|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: Location
方法名 or 属性名: additions|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: Location
方法名 or 属性名: additionSize|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: Location
方法名 or 属性名: isFromMock|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: LocationRequestPriority|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: LocationRequestPriority
方法名 or 属性名: UNSET|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: LocationRequestPriority
方法名 or 属性名: ACCURACY|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: LocationRequestPriority
方法名 or 属性名: LOW_POWER|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: LocationRequestPriority
方法名 or 属性名: FIRST_FIX|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: LocationRequestScenario|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: LocationRequestScenario
方法名 or 属性名: UNSET|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: LocationRequestScenario
方法名 or 属性名: NAVIGATION|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: LocationRequestScenario
方法名 or 属性名: TRAJECTORY_TRACKING|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: LocationRequestScenario
方法名 or 属性名: CAR_HAILING|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: LocationRequestScenario
方法名 or 属性名: DAILY_LIFE_SERVICE|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: LocationRequestScenario
方法名 or 属性名: NO_POWER|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: LocationPrivacyType|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: LocationPrivacyType
方法名 or 属性名: OTHERS|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: LocationPrivacyType
方法名 or 属性名: STARTUP|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: LocationPrivacyType
方法名 or 属性名: CORE_LOCATION|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: LocationCommand|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: LocationCommand
方法名 or 属性名: scenario|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: LocationCommand
方法名 or 属性名: command|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: CountryCode|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: CountryCode
方法名 or 属性名: country|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: CountryCode
方法名 or 属性名: type|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: CountryCodeType|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: CountryCodeType
方法名 or 属性名: COUNTRY_CODE_FROM_LOCALE|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: CountryCodeType
方法名 or 属性名: COUNTRY_CODE_FROM_SIM|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: CountryCodeType
方法名 or 属性名: COUNTRY_CODE_FROM_LOCATION|@ohos.geoLocationManager.d.ts| +|新增|NA|模块名: ohos.geoLocationManager
类名: CountryCodeType
方法名 or 属性名: COUNTRY_CODE_FROM_NETWORK|@ohos.geoLocationManager.d.ts| +|删除|模块名:ohos.geolocation
类名:geolocation
方法名 or 属性名:on_countryCodeChange|NA|@ohos.geolocation.d.ts| +|删除|模块名:ohos.geolocation
类名:geolocation
方法名 or 属性名:off_countryCodeChange|NA|@ohos.geolocation.d.ts| +|删除|模块名:ohos.geolocation
类名:geolocation
方法名 or 属性名:getCountryCode|NA|@ohos.geolocation.d.ts| +|删除|模块名:ohos.geolocation
类名:geolocation
方法名 or 属性名:getCountryCode|NA|@ohos.geolocation.d.ts| +|删除|模块名:ohos.geolocation
类名:geolocation
方法名 or 属性名:enableLocationMock|NA|@ohos.geolocation.d.ts| +|删除|模块名:ohos.geolocation
类名:geolocation
方法名 or 属性名:enableLocationMock|NA|@ohos.geolocation.d.ts| +|删除|模块名:ohos.geolocation
类名:geolocation
方法名 or 属性名:disableLocationMock|NA|@ohos.geolocation.d.ts| +|删除|模块名:ohos.geolocation
类名:geolocation
方法名 or 属性名:disableLocationMock|NA|@ohos.geolocation.d.ts| +|删除|模块名:ohos.geolocation
类名:geolocation
方法名 or 属性名:setMockedLocations|NA|@ohos.geolocation.d.ts| +|删除|模块名:ohos.geolocation
类名:geolocation
方法名 or 属性名:setMockedLocations|NA|@ohos.geolocation.d.ts| +|删除|模块名:ohos.geolocation
类名:geolocation
方法名 or 属性名:enableReverseGeocodingMock|NA|@ohos.geolocation.d.ts| +|删除|模块名:ohos.geolocation
类名:geolocation
方法名 or 属性名:enableReverseGeocodingMock|NA|@ohos.geolocation.d.ts| +|删除|模块名:ohos.geolocation
类名:geolocation
方法名 or 属性名:disableReverseGeocodingMock|NA|@ohos.geolocation.d.ts| +|删除|模块名:ohos.geolocation
类名:geolocation
方法名 or 属性名:disableReverseGeocodingMock|NA|@ohos.geolocation.d.ts| +|删除|模块名:ohos.geolocation
类名:geolocation
方法名 or 属性名:setReverseGeocodingMockInfo|NA|@ohos.geolocation.d.ts| +|删除|模块名:ohos.geolocation
类名:geolocation
方法名 or 属性名:setReverseGeocodingMockInfo|NA|@ohos.geolocation.d.ts| +|删除|模块名: ohos.geolocation
类名: ReverseGeocodingMockInfo|NA|@ohos.geolocation.d.ts| +|删除|模块名: ohos.geolocation
类名: ReverseGeocodingMockInfo
方法名 or 属性名:location|NA|@ohos.geolocation.d.ts| +|删除|模块名: ohos.geolocation
类名: ReverseGeocodingMockInfo
方法名 or 属性名:geoAddress|NA|@ohos.geolocation.d.ts| +|删除|模块名: ohos.geolocation
类名: LocationMockConfig|NA|@ohos.geolocation.d.ts| +|删除|模块名: ohos.geolocation
类名: LocationMockConfig
方法名 or 属性名:timeInterval|NA|@ohos.geolocation.d.ts| +|删除|模块名: ohos.geolocation
类名: LocationMockConfig
方法名 or 属性名:locations|NA|@ohos.geolocation.d.ts| +|删除|模块名:ohos.geolocation
类名:geolocation
方法名 or 属性名:isLocationPrivacyConfirmed|NA|@ohos.geolocation.d.ts| +|删除|模块名:ohos.geolocation
类名:geolocation
方法名 or 属性名:isLocationPrivacyConfirmed|NA|@ohos.geolocation.d.ts| +|删除|模块名:ohos.geolocation
类名:geolocation
方法名 or 属性名:setLocationPrivacyConfirmStatus|NA|@ohos.geolocation.d.ts| +|删除|模块名:ohos.geolocation
类名:geolocation
方法名 or 属性名:setLocationPrivacyConfirmStatus|NA|@ohos.geolocation.d.ts| +|删除|模块名: ohos.geolocation
类名: GeoAddress
方法名 or 属性名:isFromMock|NA|@ohos.geolocation.d.ts| +|删除|模块名: ohos.geolocation
类名: Location
方法名 or 属性名:isFromMock|NA|@ohos.geolocation.d.ts| +|删除|模块名: ohos.geolocation
类名: GeoLocationErrorCode
方法名 or 属性名:NOT_SUPPORTED|NA|@ohos.geolocation.d.ts| +|删除|模块名: ohos.geolocation
类名: GeoLocationErrorCode
方法名 or 属性名:QUERY_COUNTRY_CODE_ERROR|NA|@ohos.geolocation.d.ts| +|删除|模块名: ohos.geolocation
类名: CountryCode|NA|@ohos.geolocation.d.ts| +|删除|模块名: ohos.geolocation
类名: CountryCode
方法名 or 属性名:country|NA|@ohos.geolocation.d.ts| +|删除|模块名: ohos.geolocation
类名: CountryCode
方法名 or 属性名:type|NA|@ohos.geolocation.d.ts| +|删除|模块名: ohos.geolocation
类名: CountryCodeType|NA|@ohos.geolocation.d.ts| +|删除|模块名: ohos.geolocation
类名: CountryCodeType
方法名 or 属性名:COUNTRY_CODE_FROM_LOCALE|NA|@ohos.geolocation.d.ts| +|删除|模块名: ohos.geolocation
类名: CountryCodeType
方法名 or 属性名:COUNTRY_CODE_FROM_SIM|NA|@ohos.geolocation.d.ts| +|删除|模块名: ohos.geolocation
类名: CountryCodeType
方法名 or 属性名:COUNTRY_CODE_FROM_LOCATION|NA|@ohos.geolocation.d.ts| +|删除|模块名: ohos.geolocation
类名: CountryCodeType
方法名 or 属性名:COUNTRY_CODE_FROM_NETWORK|NA|@ohos.geolocation.d.ts| diff --git a/zh-cn/release-notes/api-diff/v3.2-beta4/js-apidiff-global.md b/zh-cn/release-notes/api-diff/v3.2-beta4/js-apidiff-global.md index 1405d898d5569c8b02b8467e8bf19adf4b287ee0..08048f7af92ed0b979d81aa08023251bef7ce358 100644 --- a/zh-cn/release-notes/api-diff/v3.2-beta4/js-apidiff-global.md +++ b/zh-cn/release-notes/api-diff/v3.2-beta4/js-apidiff-global.md @@ -1,63 +1,37 @@ -| 操作 | 新版本 | 旧版本 | d.ts文件 | +| 操作 | 旧版本 | 新版本 | d.ts文件 | | ---- | ------ | ------ | -------- | -|新增||模块名: ohos.i18n
类名: System|@ohos.i18n.d.ts| -|新增||模块名: ohos.i18n
类名: System
方法名 or 属性名:getDisplayCountry|@ohos.i18n.d.ts| -|新增||模块名: ohos.i18n
类名: System
方法名 or 属性名:getDisplayLanguage|@ohos.i18n.d.ts| -|新增||模块名: ohos.i18n
类名: System
方法名 or 属性名:getSystemLanguages|@ohos.i18n.d.ts| -|新增||模块名: ohos.i18n
类名: System
方法名 or 属性名:getSystemCountries|@ohos.i18n.d.ts| -|新增||模块名: ohos.i18n
类名: System
方法名 or 属性名:isSuggested|@ohos.i18n.d.ts| -|新增||模块名: ohos.i18n
类名: System
方法名 or 属性名:getSystemLanguage|@ohos.i18n.d.ts| -|新增||模块名: ohos.i18n
类名: System
方法名 or 属性名:setSystemLanguage|@ohos.i18n.d.ts| -|新增||模块名: ohos.i18n
类名: System
方法名 or 属性名:getSystemRegion|@ohos.i18n.d.ts| -|新增||模块名: ohos.i18n
类名: System
方法名 or 属性名:setSystemRegion|@ohos.i18n.d.ts| -|新增||模块名: ohos.i18n
类名: System
方法名 or 属性名:getSystemLocale|@ohos.i18n.d.ts| -|新增||模块名: ohos.i18n
类名: System
方法名 or 属性名:setSystemLocale|@ohos.i18n.d.ts| -|新增||模块名: ohos.i18n
类名: System
方法名 or 属性名:is24HourClock|@ohos.i18n.d.ts| -|新增||模块名: ohos.i18n
类名: System
方法名 or 属性名:set24HourClock|@ohos.i18n.d.ts| -|新增||模块名: ohos.i18n
类名: System
方法名 or 属性名:addPreferredLanguage|@ohos.i18n.d.ts| -|新增||模块名: ohos.i18n
类名: System
方法名 or 属性名:removePreferredLanguage|@ohos.i18n.d.ts| -|新增||模块名: ohos.i18n
类名: System
方法名 or 属性名:getPreferredLanguageList|@ohos.i18n.d.ts| -|新增||模块名: ohos.i18n
类名: System
方法名 or 属性名:getFirstPreferredLanguage|@ohos.i18n.d.ts| -|新增||模块名: ohos.i18n
类名: System
方法名 or 属性名:getAppPreferredLanguage|@ohos.i18n.d.ts| -|新增||模块名: ohos.i18n
类名: System
方法名 or 属性名:setUsingLocalDigit|@ohos.i18n.d.ts| -|新增||模块名: ohos.i18n
类名: System
方法名 or 属性名:getUsingLocalDigit|@ohos.i18n.d.ts| -|新增||模块名:ohos.resourceManager
类名:ResourceManager
方法名 or 属性名:getStringValue|@ohos.resourceManager.d.ts| -|新增||模块名:ohos.resourceManager
类名:ResourceManager
方法名 or 属性名:getStringValue|@ohos.resourceManager.d.ts| -|新增||模块名:ohos.resourceManager
类名:ResourceManager
方法名 or 属性名:getStringArrayValue|@ohos.resourceManager.d.ts| -|新增||模块名:ohos.resourceManager
类名:ResourceManager
方法名 or 属性名:getStringArrayValue|@ohos.resourceManager.d.ts| -|新增||模块名:ohos.resourceManager
类名:ResourceManager
方法名 or 属性名:getMediaContent|@ohos.resourceManager.d.ts| -|新增||模块名:ohos.resourceManager
类名:ResourceManager
方法名 or 属性名:getMediaContent|@ohos.resourceManager.d.ts| -|新增||模块名:ohos.resourceManager
类名:ResourceManager
方法名 or 属性名:getMediaContentBase64|@ohos.resourceManager.d.ts| -|新增||模块名:ohos.resourceManager
类名:ResourceManager
方法名 or 属性名:getMediaContentBase64|@ohos.resourceManager.d.ts| -|新增||模块名:ohos.resourceManager
类名:ResourceManager
方法名 or 属性名:getPluralStringValue|@ohos.resourceManager.d.ts| -|新增||模块名:ohos.resourceManager
类名:ResourceManager
方法名 or 属性名:getPluralStringValue|@ohos.resourceManager.d.ts| -|新增||模块名:ohos.resourceManager
类名:ResourceManager
方法名 or 属性名:getStringValue|@ohos.resourceManager.d.ts| -|新增||模块名:ohos.resourceManager
类名:ResourceManager
方法名 or 属性名:getStringValue|@ohos.resourceManager.d.ts| -|新增||模块名:ohos.resourceManager
类名:ResourceManager
方法名 or 属性名:getStringArrayValue|@ohos.resourceManager.d.ts| -|新增||模块名:ohos.resourceManager
类名:ResourceManager
方法名 or 属性名:getStringArrayValue|@ohos.resourceManager.d.ts| -|新增||模块名:ohos.resourceManager
类名:ResourceManager
方法名 or 属性名:getPluralStringValue|@ohos.resourceManager.d.ts| -|新增||模块名:ohos.resourceManager
类名:ResourceManager
方法名 or 属性名:getPluralStringValue|@ohos.resourceManager.d.ts| -|新增||模块名:ohos.resourceManager
类名:ResourceManager
方法名 or 属性名:getMediaContent|@ohos.resourceManager.d.ts| -|新增||模块名:ohos.resourceManager
类名:ResourceManager
方法名 or 属性名:getMediaContent|@ohos.resourceManager.d.ts| -|新增||模块名:ohos.resourceManager
类名:ResourceManager
方法名 or 属性名:getMediaContentBase64|@ohos.resourceManager.d.ts| -|新增||模块名:ohos.resourceManager
类名:ResourceManager
方法名 or 属性名:getMediaContentBase64|@ohos.resourceManager.d.ts| -|新增||模块名:ohos.resourceManager
类名:ResourceManager
方法名 or 属性名:getRawFileContent|@ohos.resourceManager.d.ts| -|新增||模块名:ohos.resourceManager
类名:ResourceManager
方法名 or 属性名:getRawFileContent|@ohos.resourceManager.d.ts| -|新增||模块名:ohos.resourceManager
类名:ResourceManager
方法名 or 属性名:getRawFd|@ohos.resourceManager.d.ts| -|新增||模块名:ohos.resourceManager
类名:ResourceManager
方法名 or 属性名:getRawFd|@ohos.resourceManager.d.ts| -|新增||模块名:ohos.resourceManager
类名:ResourceManager
方法名 or 属性名:closeRawFd|@ohos.resourceManager.d.ts| -|新增||模块名:ohos.resourceManager
类名:ResourceManager
方法名 or 属性名:closeRawFd|@ohos.resourceManager.d.ts| -|删除|模块名:ohos.i18n
类名:i18n
方法名 or 属性名:getSystemLanguages||@ohos.i18n.d.ts| -|删除|模块名:ohos.i18n
类名:i18n
方法名 or 属性名:getSystemCountries||@ohos.i18n.d.ts| -|删除|模块名:ohos.i18n
类名:i18n
方法名 or 属性名:isSuggested||@ohos.i18n.d.ts| -|删除|模块名:ohos.i18n
类名:i18n
方法名 or 属性名:setSystemLanguage||@ohos.i18n.d.ts| -|删除|模块名:ohos.i18n
类名:i18n
方法名 or 属性名:setSystemRegion||@ohos.i18n.d.ts| -|删除|模块名:ohos.i18n
类名:i18n
方法名 or 属性名:setSystemLocale||@ohos.i18n.d.ts| -|删除|模块名:ohos.i18n
类名:i18n
方法名 or 属性名:getAppPreferredLanguage||@ohos.i18n.d.ts| -|删除|模块名:ohos.i18n
类名:i18n
方法名 or 属性名:setUsingLocalDigit||@ohos.i18n.d.ts| -|删除|模块名:ohos.i18n
类名:i18n
方法名 or 属性名:getUsingLocalDigit||@ohos.i18n.d.ts| -|删除|模块名: ohos.resourceManager
类名: AsyncCallback||@ohos.resourceManager.d.ts| -|删除|模块名: ohos.resourceManager
类名: AsyncCallback
方法名 or 属性名:AsyncCallback||@ohos.resourceManager.d.ts| +|新增|NA|模块名: ohos.i18n
类名: System|@ohos.i18n.d.ts| +|新增|NA|模块名: ohos.i18n
类名: System
方法名 or 属性名:getDisplayCountry|@ohos.i18n.d.ts| +|新增|NA|模块名: ohos.i18n
类名: System
方法名 or 属性名:getDisplayLanguage|@ohos.i18n.d.ts| +|新增|NA|模块名: ohos.i18n
类名: System
方法名 or 属性名:getSystemLanguages|@ohos.i18n.d.ts| +|新增|NA|模块名: ohos.i18n
类名: System
方法名 or 属性名:getSystemCountries|@ohos.i18n.d.ts| +|新增|NA|模块名: ohos.i18n
类名: System
方法名 or 属性名:isSuggested|@ohos.i18n.d.ts| +|新增|NA|模块名: ohos.i18n
类名: System
方法名 or 属性名:getSystemLanguage|@ohos.i18n.d.ts| +|新增|NA|模块名: ohos.i18n
类名: System
方法名 or 属性名:setSystemLanguage|@ohos.i18n.d.ts| +|新增|NA|模块名: ohos.i18n
类名: System
方法名 or 属性名:getSystemRegion|@ohos.i18n.d.ts| +|新增|NA|模块名: ohos.i18n
类名: System
方法名 or 属性名:setSystemRegion|@ohos.i18n.d.ts| +|新增|NA|模块名: ohos.i18n
类名: System
方法名 or 属性名:getSystemLocale|@ohos.i18n.d.ts| +|新增|NA|模块名: ohos.i18n
类名: System
方法名 or 属性名:setSystemLocale|@ohos.i18n.d.ts| +|新增|NA|模块名: ohos.i18n
类名: System
方法名 or 属性名:is24HourClock|@ohos.i18n.d.ts| +|新增|NA|模块名: ohos.i18n
类名: System
方法名 or 属性名:set24HourClock|@ohos.i18n.d.ts| +|新增|NA|模块名: ohos.i18n
类名: System
方法名 or 属性名:addPreferredLanguage|@ohos.i18n.d.ts| +|新增|NA|模块名: ohos.i18n
类名: System
方法名 or 属性名:removePreferredLanguage|@ohos.i18n.d.ts| +|新增|NA|模块名: ohos.i18n
类名: System
方法名 or 属性名:getPreferredLanguageList|@ohos.i18n.d.ts| +|新增|NA|模块名: ohos.i18n
类名: System
方法名 or 属性名:getFirstPreferredLanguage|@ohos.i18n.d.ts| +|新增|NA|模块名: ohos.i18n
类名: System
方法名 or 属性名:getAppPreferredLanguage|@ohos.i18n.d.ts| +|新增|NA|模块名: ohos.i18n
类名: System
方法名 or 属性名:setUsingLocalDigit|@ohos.i18n.d.ts| +|新增|NA|模块名: ohos.i18n
类名: System
方法名 or 属性名:getUsingLocalDigit|@ohos.i18n.d.ts| +|删除|模块名:ohos.i18n
类名:i18n
方法名 or 属性名:getSystemLanguages|NA|@ohos.i18n.d.ts| +|删除|模块名:ohos.i18n
类名:i18n
方法名 or 属性名:getSystemCountries|NA|@ohos.i18n.d.ts| +|删除|模块名:ohos.i18n
类名:i18n
方法名 or 属性名:isSuggested|NA|@ohos.i18n.d.ts| +|删除|模块名:ohos.i18n
类名:i18n
方法名 or 属性名:setSystemLanguage|NA|@ohos.i18n.d.ts| +|删除|模块名:ohos.i18n
类名:i18n
方法名 or 属性名:setSystemRegion|NA|@ohos.i18n.d.ts| +|删除|模块名:ohos.i18n
类名:i18n
方法名 or 属性名:setSystemLocale|NA|@ohos.i18n.d.ts| +|删除|模块名:ohos.i18n
类名:i18n
方法名 or 属性名:getAppPreferredLanguage|NA|@ohos.i18n.d.ts| +|删除|模块名:ohos.i18n
类名:i18n
方法名 or 属性名:setUsingLocalDigit|NA|@ohos.i18n.d.ts| +|删除|模块名:ohos.i18n
类名:i18n
方法名 or 属性名:getUsingLocalDigit|NA|@ohos.i18n.d.ts| +|删除|模块名: ohos.resourceManager
类名: AsyncCallback|NA|@ohos.resourceManager.d.ts| +|删除|模块名: ohos.resourceManager
类名: AsyncCallback
方法名 or 属性名:AsyncCallback|NA|@ohos.resourceManager.d.ts| |废弃版本有变化|方法名 or 属性名:getDisplayCountry
废弃版本:N/A|方法名 or 属性名:getDisplayCountry
废弃版本:9
代替接口:ohos.System.getDisplayCountry |@ohos.i18n.d.ts| |废弃版本有变化|方法名 or 属性名:getDisplayLanguage
废弃版本:N/A|方法名 or 属性名:getDisplayLanguage
废弃版本:9
代替接口:ohos.System.getDisplayLanguage |@ohos.i18n.d.ts| |废弃版本有变化|方法名 or 属性名:getSystemLanguage
废弃版本:N/A|方法名 or 属性名:getSystemLanguage
废弃版本:9
代替接口:ohos.System.getSystemLanguage |@ohos.i18n.d.ts| @@ -85,22 +59,22 @@ |废弃版本有变化|方法名 or 属性名:getRawFileDescriptor
废弃版本:N/A|方法名 or 属性名:getRawFileDescriptor
废弃版本:9
代替接口:ohos.resourceManager.getRawFd |@ohos.resourceManager.d.ts| |废弃版本有变化|方法名 or 属性名:closeRawFileDescriptor
废弃版本:N/A|方法名 or 属性名:closeRawFileDescriptor
废弃版本:9
代替接口:ohos.resourceManager.closeRawFd |@ohos.resourceManager.d.ts| |废弃版本有变化|方法名 or 属性名:closeRawFileDescriptor
废弃版本:N/A|方法名 or 属性名:closeRawFileDescriptor
废弃版本:9
代替接口:ohos.resourceManager.closeRawFd |@ohos.resourceManager.d.ts| -|新增(错误码)||方法名 or 属性名:getStringByName
错误码内容:401,9001003,9001004,9001006|@ohos.resourceManager.d.ts| -|新增(错误码)||方法名 or 属性名:getStringByName
错误码内容:401,9001003,9001004,9001006|@ohos.resourceManager.d.ts| -|新增(错误码)||方法名 or 属性名:getStringArrayByName
错误码内容:401,9001003,9001004,9001006|@ohos.resourceManager.d.ts| -|新增(错误码)||方法名 or 属性名:getStringArrayByName
错误码内容:401,9001003,9001004,9001006|@ohos.resourceManager.d.ts| -|新增(错误码)||方法名 or 属性名:getMediaByName
错误码内容:401,9001003,9001004|@ohos.resourceManager.d.ts| -|新增(错误码)||方法名 or 属性名:getMediaByName
错误码内容:401,9001003,9001004|@ohos.resourceManager.d.ts| -|新增(错误码)||方法名 or 属性名:getMediaBase64ByName
错误码内容:401,9001003,9001004|@ohos.resourceManager.d.ts| -|新增(错误码)||方法名 or 属性名:getMediaBase64ByName
错误码内容:401,9001003,9001004|@ohos.resourceManager.d.ts| -|新增(错误码)||方法名 or 属性名:getPluralStringByName
错误码内容:401,9001003,9001004,9001006|@ohos.resourceManager.d.ts| -|新增(错误码)||方法名 or 属性名:getPluralStringByName
错误码内容:401,9001003,9001004,9001006|@ohos.resourceManager.d.ts| -|新增(错误码)||方法名 or 属性名:getStringSync
错误码内容:401,9001001,9001002,9001006|@ohos.resourceManager.d.ts| -|新增(错误码)||方法名 or 属性名:getStringSync
错误码内容:401,9001001,9001002,9001006|@ohos.resourceManager.d.ts| -|新增(错误码)||方法名 or 属性名:getStringByNameSync
错误码内容:401,9001003,9001004,9001006|@ohos.resourceManager.d.ts| -|新增(错误码)||方法名 or 属性名:getBoolean
错误码内容:401,9001001,9001002,9001006|@ohos.resourceManager.d.ts| -|新增(错误码)||方法名 or 属性名:getBoolean
错误码内容:401,9001001,9001002,9001006|@ohos.resourceManager.d.ts| -|新增(错误码)||方法名 or 属性名:getBooleanByName
错误码内容:401,9001003,9001004,9001006|@ohos.resourceManager.d.ts| -|新增(错误码)||方法名 or 属性名:getNumber
错误码内容:401,9001001,9001002,9001006|@ohos.resourceManager.d.ts| -|新增(错误码)||方法名 or 属性名:getNumber
错误码内容:401,9001001,9001002,9001006|@ohos.resourceManager.d.ts| -|新增(错误码)||方法名 or 属性名:getNumberByName
错误码内容:401,9001003,9001004,9001006|@ohos.resourceManager.d.ts| +|新增(错误码)|NA|方法名 or 属性名:getStringByName
错误码内容:401,9001003,9001004,9001006|@ohos.resourceManager.d.ts| +|新增(错误码)|NA|方法名 or 属性名:getStringByName
错误码内容:401,9001003,9001004,9001006|@ohos.resourceManager.d.ts| +|新增(错误码)|NA|方法名 or 属性名:getStringArrayByName
错误码内容:401,9001003,9001004,9001006|@ohos.resourceManager.d.ts| +|新增(错误码)|NA|方法名 or 属性名:getStringArrayByName
错误码内容:401,9001003,9001004,9001006|@ohos.resourceManager.d.ts| +|新增(错误码)|NA|方法名 or 属性名:getMediaByName
错误码内容:401,9001003,9001004|@ohos.resourceManager.d.ts| +|新增(错误码)|NA|方法名 or 属性名:getMediaByName
错误码内容:401,9001003,9001004|@ohos.resourceManager.d.ts| +|新增(错误码)|NA|方法名 or 属性名:getMediaBase64ByName
错误码内容:401,9001003,9001004|@ohos.resourceManager.d.ts| +|新增(错误码)|NA|方法名 or 属性名:getMediaBase64ByName
错误码内容:401,9001003,9001004|@ohos.resourceManager.d.ts| +|新增(错误码)|NA|方法名 or 属性名:getPluralStringByName
错误码内容:401,9001003,9001004,9001006|@ohos.resourceManager.d.ts| +|新增(错误码)|NA|方法名 or 属性名:getPluralStringByName
错误码内容:401,9001003,9001004,9001006|@ohos.resourceManager.d.ts| +|新增(错误码)|NA|方法名 or 属性名:getStringSync
错误码内容:401,9001001,9001002,9001006|@ohos.resourceManager.d.ts| +|新增(错误码)|NA|方法名 or 属性名:getStringSync
错误码内容:401,9001001,9001002,9001006|@ohos.resourceManager.d.ts| +|新增(错误码)|NA|方法名 or 属性名:getStringByNameSync
错误码内容:401,9001003,9001004,9001006|@ohos.resourceManager.d.ts| +|新增(错误码)|NA|方法名 or 属性名:getBoolean
错误码内容:401,9001001,9001002,9001006|@ohos.resourceManager.d.ts| +|新增(错误码)|NA|方法名 or 属性名:getBoolean
错误码内容:401,9001001,9001002,9001006|@ohos.resourceManager.d.ts| +|新增(错误码)|NA|方法名 or 属性名:getBooleanByName
错误码内容:401,9001003,9001004,9001006|@ohos.resourceManager.d.ts| +|新增(错误码)|NA|方法名 or 属性名:getNumber
错误码内容:401,9001001,9001002,9001006|@ohos.resourceManager.d.ts| +|新增(错误码)|NA|方法名 or 属性名:getNumber
错误码内容:401,9001001,9001002,9001006|@ohos.resourceManager.d.ts| +|新增(错误码)|NA|方法名 or 属性名:getNumberByName
错误码内容:401,9001003,9001004,9001006|@ohos.resourceManager.d.ts| diff --git a/zh-cn/release-notes/api-diff/v3.2-beta4/js-apidiff-misc.md b/zh-cn/release-notes/api-diff/v3.2-beta4/js-apidiff-misc.md index 07429bbc36587eceefd045fcd16def9a82e86979..fa02c7e05a4973fc3f3e6f4f053b62ebebca8dc6 100644 --- a/zh-cn/release-notes/api-diff/v3.2-beta4/js-apidiff-misc.md +++ b/zh-cn/release-notes/api-diff/v3.2-beta4/js-apidiff-misc.md @@ -1,155 +1,66 @@ -| 操作 | 新版本 | 旧版本 | d.ts文件 | +| 操作 | 旧版本 | 新版本 | d.ts文件 | | ---- | ------ | ------ | -------- | -|新增||模块名:ohos.inputmethod
类名:inputMethod
方法名 or 属性名:getSetting|@ohos.inputmethod.d.ts| -|新增||模块名:ohos.inputmethod
类名:inputMethod
方法名 or 属性名:getController|@ohos.inputmethod.d.ts| -|新增||模块名:ohos.inputmethod
类名:inputMethod
方法名 or 属性名:switchCurrentInputMethodSubtype|@ohos.inputmethod.d.ts| -|新增||模块名:ohos.inputmethod
类名:inputMethod
方法名 or 属性名:switchCurrentInputMethodSubtype|@ohos.inputmethod.d.ts| -|新增||模块名:ohos.inputmethod
类名:inputMethod
方法名 or 属性名:getCurrentInputMethodSubtype|@ohos.inputmethod.d.ts| -|新增||模块名:ohos.inputmethod
类名:inputMethod
方法名 or 属性名:switchCurrentInputMethodAndSubtype|@ohos.inputmethod.d.ts| -|新增||模块名:ohos.inputmethod
类名:inputMethod
方法名 or 属性名:switchCurrentInputMethodAndSubtype|@ohos.inputmethod.d.ts| -|新增||模块名:ohos.inputmethod
类名:InputMethodSetting
方法名 or 属性名:on_imeChange|@ohos.inputmethod.d.ts| -|新增||模块名:ohos.inputmethod
类名:InputMethodSetting
方法名 or 属性名:off_imeChange|@ohos.inputmethod.d.ts| -|新增||模块名:ohos.inputmethod
类名:InputMethodSetting
方法名 or 属性名:listInputMethodSubtype|@ohos.inputmethod.d.ts| -|新增||模块名:ohos.inputmethod
类名:InputMethodSetting
方法名 or 属性名:listInputMethodSubtype|@ohos.inputmethod.d.ts| -|新增||模块名:ohos.inputmethod
类名:InputMethodSetting
方法名 or 属性名:listCurrentInputMethodSubtype|@ohos.inputmethod.d.ts| -|新增||模块名:ohos.inputmethod
类名:InputMethodSetting
方法名 or 属性名:listCurrentInputMethodSubtype|@ohos.inputmethod.d.ts| -|新增||模块名:ohos.inputmethod
类名:InputMethodSetting
方法名 or 属性名:getInputMethods|@ohos.inputmethod.d.ts| -|新增||模块名:ohos.inputmethod
类名:InputMethodSetting
方法名 or 属性名:getInputMethods|@ohos.inputmethod.d.ts| -|新增||模块名:ohos.inputmethod
类名:InputMethodSetting
方法名 or 属性名:showOptionalInputMethods|@ohos.inputmethod.d.ts| -|新增||模块名:ohos.inputmethod
类名:InputMethodSetting
方法名 or 属性名:showOptionalInputMethods|@ohos.inputmethod.d.ts| -|新增||模块名:ohos.inputmethod
类名:InputMethodController
方法名 or 属性名:stopInputSession|@ohos.inputmethod.d.ts| -|新增||模块名:ohos.inputmethod
类名:InputMethodController
方法名 or 属性名:stopInputSession|@ohos.inputmethod.d.ts| -|新增||模块名:ohos.inputmethod
类名:InputMethodProperty
方法名 or 属性名:name|@ohos.inputmethod.d.ts| -|新增||模块名:ohos.inputmethod
类名:InputMethodProperty
方法名 or 属性名:id|@ohos.inputmethod.d.ts| -|新增||模块名:ohos.inputmethod
类名:InputMethodProperty
方法名 or 属性名:label|@ohos.inputmethod.d.ts| -|新增||模块名:ohos.inputmethod
类名:InputMethodProperty
方法名 or 属性名:icon|@ohos.inputmethod.d.ts| -|新增||模块名:ohos.inputmethod
类名:InputMethodProperty
方法名 or 属性名:iconId|@ohos.inputmethod.d.ts| -|新增||模块名:ohos.inputmethod
类名:InputMethodProperty
方法名 or 属性名:extra|@ohos.inputmethod.d.ts| -|新增||模块名:ohos.inputmethodengine
类名:inputMethodEngine
方法名 or 属性名:getInputMethodAbility|@ohos.inputmethodengine.d.ts| -|新增||模块名:ohos.inputmethodengine
类名:inputMethodEngine
方法名 or 属性名:getKeyboardDelegate|@ohos.inputmethodengine.d.ts| -|新增||模块名:ohos.inputmethodengine
类名:KeyboardController
方法名 or 属性名:hide|@ohos.inputmethodengine.d.ts| -|新增||模块名:ohos.inputmethodengine
类名:KeyboardController
方法名 or 属性名:hide|@ohos.inputmethodengine.d.ts| -|新增||模块名: ohos.inputmethodengine
类名: InputMethodAbility|@ohos.inputmethodengine.d.ts| -|新增||模块名: ohos.inputmethodengine
类名: InputMethodAbility
方法名 or 属性名:on_inputStart|@ohos.inputmethodengine.d.ts| -|新增||模块名: ohos.inputmethodengine
类名: InputMethodAbility
方法名 or 属性名:off_inputStart|@ohos.inputmethodengine.d.ts| -|新增||模块名: ohos.inputmethodengine
类名: InputMethodAbility
方法名 or 属性名:on_inputStop|@ohos.inputmethodengine.d.ts| -|新增||模块名: ohos.inputmethodengine
类名: InputMethodAbility
方法名 or 属性名:off_inputStop|@ohos.inputmethodengine.d.ts| -|新增||模块名: ohos.inputmethodengine
类名: InputMethodAbility
方法名 or 属性名:on_setCallingWindow|@ohos.inputmethodengine.d.ts| -|新增||模块名: ohos.inputmethodengine
类名: InputMethodAbility
方法名 or 属性名:off_setCallingWindow|@ohos.inputmethodengine.d.ts| -|新增||模块名: ohos.inputmethodengine
类名: InputMethodAbility
方法名 or 属性名:on_keyboardShow|@ohos.inputmethodengine.d.ts| -|新增||模块名: ohos.inputmethodengine
类名: InputMethodAbility
方法名 or 属性名:on_keyboardHide|@ohos.inputmethodengine.d.ts| -|新增||模块名: ohos.inputmethodengine
类名: InputMethodAbility
方法名 or 属性名:off_keyboardShow|@ohos.inputmethodengine.d.ts| -|新增||模块名: ohos.inputmethodengine
类名: InputMethodAbility
方法名 or 属性名:off_keyboardHide|@ohos.inputmethodengine.d.ts| -|新增||模块名: ohos.inputmethodengine
类名: InputMethodAbility
方法名 or 属性名:on_setSubtype|@ohos.inputmethodengine.d.ts| -|新增||模块名: ohos.inputmethodengine
类名: InputMethodAbility
方法名 or 属性名:off_setSubtype|@ohos.inputmethodengine.d.ts| -|新增||模块名: ohos.inputmethodengine
类名: InputClient|@ohos.inputmethodengine.d.ts| -|新增||模块名: ohos.inputmethodengine
类名: InputClient
方法名 or 属性名:sendKeyFunction|@ohos.inputmethodengine.d.ts| -|新增||模块名: ohos.inputmethodengine
类名: InputClient
方法名 or 属性名:sendKeyFunction|@ohos.inputmethodengine.d.ts| -|新增||模块名: ohos.inputmethodengine
类名: InputClient
方法名 or 属性名:deleteForward|@ohos.inputmethodengine.d.ts| -|新增||模块名: ohos.inputmethodengine
类名: InputClient
方法名 or 属性名:deleteForward|@ohos.inputmethodengine.d.ts| -|新增||模块名: ohos.inputmethodengine
类名: InputClient
方法名 or 属性名:deleteBackward|@ohos.inputmethodengine.d.ts| -|新增||模块名: ohos.inputmethodengine
类名: InputClient
方法名 or 属性名:deleteBackward|@ohos.inputmethodengine.d.ts| -|新增||模块名: ohos.inputmethodengine
类名: InputClient
方法名 or 属性名:insertText|@ohos.inputmethodengine.d.ts| -|新增||模块名: ohos.inputmethodengine
类名: InputClient
方法名 or 属性名:insertText|@ohos.inputmethodengine.d.ts| -|新增||模块名: ohos.inputmethodengine
类名: InputClient
方法名 or 属性名:getForward|@ohos.inputmethodengine.d.ts| -|新增||模块名: ohos.inputmethodengine
类名: InputClient
方法名 or 属性名:getForward|@ohos.inputmethodengine.d.ts| -|新增||模块名: ohos.inputmethodengine
类名: InputClient
方法名 or 属性名:getBackward|@ohos.inputmethodengine.d.ts| -|新增||模块名: ohos.inputmethodengine
类名: InputClient
方法名 or 属性名:getBackward|@ohos.inputmethodengine.d.ts| -|新增||模块名: ohos.inputmethodengine
类名: InputClient
方法名 or 属性名:getEditorAttribute|@ohos.inputmethodengine.d.ts| -|新增||模块名: ohos.inputmethodengine
类名: InputClient
方法名 or 属性名:getEditorAttribute|@ohos.inputmethodengine.d.ts| -|新增||模块名: ohos.inputmethodengine
类名: InputClient
方法名 or 属性名:moveCursor|@ohos.inputmethodengine.d.ts| -|新增||模块名: ohos.inputmethodengine
类名: InputClient
方法名 or 属性名:moveCursor|@ohos.inputmethodengine.d.ts| -|新增||模块名:ohos.inputmethodextensioncontext
类名:InputMethodExtensionContext
方法名 or 属性名:destroy|@ohos.inputmethodextensioncontext.d.ts| -|新增||模块名:ohos.inputmethodextensioncontext
类名:InputMethodExtensionContext
方法名 or 属性名:destroy|@ohos.inputmethodextensioncontext.d.ts| -|新增||模块名: ohos.inputMethodSubtype
类名: InputMethodSubtype|@ohos.inputMethodSubtype.d.ts| -|新增||模块名: ohos.inputMethodSubtype
类名: InputMethodSubtype
方法名 or 属性名: label|@ohos.inputMethodSubtype.d.ts| -|新增||模块名: ohos.inputMethodSubtype
类名: InputMethodSubtype
方法名 or 属性名: name|@ohos.inputMethodSubtype.d.ts| -|新增||模块名: ohos.inputMethodSubtype
类名: InputMethodSubtype
方法名 or 属性名: id|@ohos.inputMethodSubtype.d.ts| -|新增||模块名: ohos.inputMethodSubtype
类名: InputMethodSubtype
方法名 or 属性名: mode|@ohos.inputMethodSubtype.d.ts| -|新增||模块名: ohos.inputMethodSubtype
类名: InputMethodSubtype
方法名 or 属性名: locale|@ohos.inputMethodSubtype.d.ts| -|新增||模块名: ohos.inputMethodSubtype
类名: InputMethodSubtype
方法名 or 属性名: language|@ohos.inputMethodSubtype.d.ts| -|新增||模块名: ohos.inputMethodSubtype
类名: InputMethodSubtype
方法名 or 属性名: icon|@ohos.inputMethodSubtype.d.ts| -|新增||模块名: ohos.inputMethodSubtype
类名: InputMethodSubtype
方法名 or 属性名: iconId|@ohos.inputMethodSubtype.d.ts| -|新增||模块名: ohos.inputMethodSubtype
类名: InputMethodSubtype
方法名 or 属性名: extra|@ohos.inputMethodSubtype.d.ts| -|新增||方法名 or 属性名:createData
函数:function createData(mimeType: string, value: ValueType): PasteData;|@ohos.pasteboard.d.ts| -|新增||方法名 or 属性名:createRecord
函数:function createRecord(mimeType: string, value: ValueType): PasteDataRecord;|@ohos.pasteboard.d.ts| -|新增||模块名:ohos.pasteboard
类名:PasteDataRecord
方法名 or 属性名:convertToTextV9|@ohos.pasteboard.d.ts| -|新增||模块名:ohos.pasteboard
类名:PasteDataRecord
方法名 or 属性名:convertToTextV9|@ohos.pasteboard.d.ts| -|新增||方法名 or 属性名:addRecord
函数:addRecord(mimeType: string, value: ValueType): void;|@ohos.pasteboard.d.ts| -|新增||模块名:ohos.pasteboard
类名:PasteData
方法名 or 属性名:getRecord|@ohos.pasteboard.d.ts| -|新增||模块名:ohos.pasteboard
类名:PasteData
方法名 or 属性名:hasType|@ohos.pasteboard.d.ts| -|新增||模块名:ohos.pasteboard
类名:PasteData
方法名 or 属性名:removeRecord|@ohos.pasteboard.d.ts| -|新增||模块名:ohos.pasteboard
类名:PasteData
方法名 or 属性名:replaceRecord|@ohos.pasteboard.d.ts| -|新增||模块名:ohos.pasteboard
类名:SystemPasteboard
方法名 or 属性名:clearData|@ohos.pasteboard.d.ts| -|新增||模块名:ohos.pasteboard
类名:SystemPasteboard
方法名 or 属性名:clearData|@ohos.pasteboard.d.ts| -|新增||模块名:ohos.pasteboard
类名:SystemPasteboard
方法名 or 属性名:getData|@ohos.pasteboard.d.ts| -|新增||模块名:ohos.pasteboard
类名:SystemPasteboard
方法名 or 属性名:getData|@ohos.pasteboard.d.ts| -|新增||模块名:ohos.pasteboard
类名:SystemPasteboard
方法名 or 属性名:hasData|@ohos.pasteboard.d.ts| -|新增||模块名:ohos.pasteboard
类名:SystemPasteboard
方法名 or 属性名:hasData|@ohos.pasteboard.d.ts| -|新增||模块名:ohos.pasteboard
类名:SystemPasteboard
方法名 or 属性名:setData|@ohos.pasteboard.d.ts| -|新增||模块名:ohos.pasteboard
类名:SystemPasteboard
方法名 or 属性名:setData|@ohos.pasteboard.d.ts| -|新增||模块名:ohos.request
类名:request
方法名 or 属性名:EXCEPTION_PERMISSION|@ohos.request.d.ts| -|新增||模块名:ohos.request
类名:request
方法名 or 属性名:EXCEPTION_PARAMCHECK|@ohos.request.d.ts| -|新增||模块名:ohos.request
类名:request
方法名 or 属性名:EXCEPTION_UNSUPPORTED|@ohos.request.d.ts| -|新增||模块名:ohos.request
类名:request
方法名 or 属性名:EXCEPTION_FILEIO|@ohos.request.d.ts| -|新增||模块名:ohos.request
类名:request
方法名 or 属性名:EXCEPTION_FILEPATH|@ohos.request.d.ts| -|新增||模块名:ohos.request
类名:request
方法名 or 属性名:EXCEPTION_SERVICE|@ohos.request.d.ts| -|新增||模块名:ohos.request
类名:request
方法名 or 属性名:EXCEPTION_OTHERS|@ohos.request.d.ts| -|新增||模块名:ohos.request
类名:request
方法名 or 属性名:ERROR_OFFLINE|@ohos.request.d.ts| -|新增||模块名:ohos.request
类名:request
方法名 or 属性名:ERROR_UNSUPPORTED_NETWORK_TYPE|@ohos.request.d.ts| -|新增||模块名:ohos.request
类名:request
方法名 or 属性名:downloadFile|@ohos.request.d.ts| -|新增||模块名:ohos.request
类名:request
方法名 or 属性名:downloadFile|@ohos.request.d.ts| -|新增||模块名:ohos.request
类名:request
方法名 or 属性名:uploadFile|@ohos.request.d.ts| -|新增||模块名:ohos.request
类名:request
方法名 or 属性名:uploadFile|@ohos.request.d.ts| -|新增||模块名:ohos.request
类名:DownloadTask
方法名 or 属性名:delete|@ohos.request.d.ts| -|新增||模块名:ohos.request
类名:DownloadTask
方法名 or 属性名:delete|@ohos.request.d.ts| -|新增||模块名:ohos.request
类名:DownloadTask
方法名 or 属性名:suspend|@ohos.request.d.ts| -|新增||模块名:ohos.request
类名:DownloadTask
方法名 or 属性名:suspend|@ohos.request.d.ts| -|新增||模块名:ohos.request
类名:DownloadTask
方法名 or 属性名:restore|@ohos.request.d.ts| -|新增||模块名:ohos.request
类名:DownloadTask
方法名 or 属性名:restore|@ohos.request.d.ts| -|新增||模块名:ohos.request
类名:DownloadTask
方法名 or 属性名:getTaskInfo|@ohos.request.d.ts| -|新增||模块名:ohos.request
类名:DownloadTask
方法名 or 属性名:getTaskInfo|@ohos.request.d.ts| -|新增||模块名:ohos.request
类名:DownloadTask
方法名 or 属性名:getTaskMimeType|@ohos.request.d.ts| -|新增||模块名:ohos.request
类名:DownloadTask
方法名 or 属性名:getTaskMimeType|@ohos.request.d.ts| -|新增||模块名:ohos.request
类名:UploadTask
方法名 or 属性名:delete|@ohos.request.d.ts| -|新增||模块名:ohos.request
类名:UploadTask
方法名 or 属性名:delete|@ohos.request.d.ts| -|新增||模块名:ohos.screenLock
类名:screenLock
方法名 or 属性名:isLocked|@ohos.screenLock.d.ts| -|新增||模块名:ohos.screenLock
类名:screenLock
方法名 or 属性名:isSecure|@ohos.screenLock.d.ts| -|新增||模块名:ohos.screenLock
类名:screenLock
方法名 or 属性名:unlock|@ohos.screenLock.d.ts| -|新增||模块名:ohos.screenLock
类名:screenLock
方法名 or 属性名:unlock|@ohos.screenLock.d.ts| -|新增||模块名:ohos.screenLock
类名:screenLock
方法名 or 属性名:lock|@ohos.screenLock.d.ts| -|新增||模块名:ohos.screenLock
类名:screenLock
方法名 or 属性名:lock|@ohos.screenLock.d.ts| -|新增||模块名:ohos.wallpaper
类名:wallpaper
方法名 or 属性名:getColorsSync|@ohos.wallpaper.d.ts| -|新增||模块名:ohos.wallpaper
类名:wallpaper
方法名 or 属性名:getIdSync|@ohos.wallpaper.d.ts| -|新增||模块名:ohos.wallpaper
类名:wallpaper
方法名 or 属性名:getFileSync|@ohos.wallpaper.d.ts| -|新增||模块名:ohos.wallpaper
类名:wallpaper
方法名 or 属性名:getMinHeightSync|@ohos.wallpaper.d.ts| -|新增||模块名:ohos.wallpaper
类名:wallpaper
方法名 or 属性名:getMinWidthSync|@ohos.wallpaper.d.ts| -|新增||模块名:ohos.wallpaper
类名:wallpaper
方法名 or 属性名:isChangeAllowed|@ohos.wallpaper.d.ts| -|新增||模块名:ohos.wallpaper
类名:wallpaper
方法名 or 属性名:isUserChangeAllowed|@ohos.wallpaper.d.ts| -|新增||模块名:ohos.wallpaper
类名:wallpaper
方法名 or 属性名:restore|@ohos.wallpaper.d.ts| -|新增||模块名:ohos.wallpaper
类名:wallpaper
方法名 or 属性名:restore|@ohos.wallpaper.d.ts| -|新增||模块名:ohos.wallpaper
类名:wallpaper
方法名 or 属性名:setImage|@ohos.wallpaper.d.ts| -|新增||模块名:ohos.wallpaper
类名:wallpaper
方法名 or 属性名:setImage|@ohos.wallpaper.d.ts| -|新增||模块名:ohos.wallpaper
类名:wallpaper
方法名 or 属性名:getImage|@ohos.wallpaper.d.ts| -|新增||模块名:ohos.wallpaper
类名:wallpaper
方法名 or 属性名:getImage|@ohos.wallpaper.d.ts| -|删除|模块名: ohos.inputmethodengine
类名: InputMethodEngine
方法名 or 属性名:on_inputStop||@ohos.inputmethodengine.d.ts| -|删除|模块名: ohos.inputmethodengine
类名: InputMethodEngine
方法名 or 属性名:off_inputStop||@ohos.inputmethodengine.d.ts| -|删除|模块名: ohos.inputmethodengine
类名: InputMethodEngine
方法名 or 属性名:on_setCallingWindow||@ohos.inputmethodengine.d.ts| -|删除|模块名: ohos.inputmethodengine
类名: InputMethodEngine
方法名 or 属性名:off_setCallingWindow||@ohos.inputmethodengine.d.ts| -|删除|模块名:ohos.inputmethodengine
类名:TextInputClient
方法名 or 属性名:moveCursor||@ohos.inputmethodengine.d.ts| -|删除|模块名:ohos.inputmethodengine
类名:TextInputClient
方法名 or 属性名:moveCursor||@ohos.inputmethodengine.d.ts| -|删除|模块名:ohos.inputmethodextensioncontext
类名:InputMethodExtensionContext
方法名 or 属性名:startAbility||@ohos.inputmethodextensioncontext.d.ts| -|删除|模块名:ohos.inputmethodextensioncontext
类名:InputMethodExtensionContext
方法名 or 属性名:startAbility||@ohos.inputmethodextensioncontext.d.ts| -|删除|模块名:ohos.inputmethodextensioncontext
类名:InputMethodExtensionContext
方法名 or 属性名:startAbility||@ohos.inputmethodextensioncontext.d.ts| -|删除|模块名:ohos.inputmethodextensioncontext
类名:InputMethodExtensionContext
方法名 or 属性名:terminateSelf||@ohos.inputmethodextensioncontext.d.ts| -|删除|模块名:ohos.inputmethodextensioncontext
类名:InputMethodExtensionContext
方法名 or 属性名:terminateSelf||@ohos.inputmethodextensioncontext.d.ts| -|删除|模块名:ohos.pasteboard
类名:pasteboard
方法名 or 属性名:createPixelMapData||@ohos.pasteboard.d.ts| -|删除|模块名:ohos.pasteboard
类名:pasteboard
方法名 or 属性名:createPixelMapRecord||@ohos.pasteboard.d.ts| -|删除|模块名:ohos.pasteboard
类名:PasteData
方法名 or 属性名:addPixelMapRecord||@ohos.pasteboard.d.ts| -|删除|模块名:ohos.screenLock
类名:screenLock
方法名 or 属性名:lockScreen||@ohos.screenLock.d.ts| -|删除|模块名:ohos.screenLock
类名:screenLock
方法名 or 属性名:lockScreen||@ohos.screenLock.d.ts| -|删除|模块名:ohos.wallpaper
类名:wallpaper
方法名 or 属性名:screenshotLiveWallpaper||@ohos.wallpaper.d.ts| -|删除|模块名:ohos.wallpaper
类名:wallpaper
方法名 or 属性名:screenshotLiveWallpaper||@ohos.wallpaper.d.ts| +|新增|NA|模块名: ohos.inputmethodengine
类名: InputMethodAbility|@ohos.inputmethodengine.d.ts| +|新增|NA|模块名: ohos.inputmethodengine
类名: InputMethodAbility
方法名 or 属性名:on_inputStart|@ohos.inputmethodengine.d.ts| +|新增|NA|模块名: ohos.inputmethodengine
类名: InputMethodAbility
方法名 or 属性名:off_inputStart|@ohos.inputmethodengine.d.ts| +|新增|NA|模块名: ohos.inputmethodengine
类名: InputMethodAbility
方法名 or 属性名:on_inputStop|@ohos.inputmethodengine.d.ts| +|新增|NA|模块名: ohos.inputmethodengine
类名: InputMethodAbility
方法名 or 属性名:off_inputStop|@ohos.inputmethodengine.d.ts| +|新增|NA|模块名: ohos.inputmethodengine
类名: InputMethodAbility
方法名 or 属性名:on_setCallingWindow|@ohos.inputmethodengine.d.ts| +|新增|NA|模块名: ohos.inputmethodengine
类名: InputMethodAbility
方法名 or 属性名:off_setCallingWindow|@ohos.inputmethodengine.d.ts| +|新增|NA|模块名: ohos.inputmethodengine
类名: InputMethodAbility
方法名 or 属性名:on_keyboardShow|@ohos.inputmethodengine.d.ts| +|新增|NA|模块名: ohos.inputmethodengine
类名: InputMethodAbility
方法名 or 属性名:on_keyboardHide|@ohos.inputmethodengine.d.ts| +|新增|NA|模块名: ohos.inputmethodengine
类名: InputMethodAbility
方法名 or 属性名:off_keyboardShow|@ohos.inputmethodengine.d.ts| +|新增|NA|模块名: ohos.inputmethodengine
类名: InputMethodAbility
方法名 or 属性名:off_keyboardHide|@ohos.inputmethodengine.d.ts| +|新增|NA|模块名: ohos.inputmethodengine
类名: InputMethodAbility
方法名 or 属性名:on_setSubtype|@ohos.inputmethodengine.d.ts| +|新增|NA|模块名: ohos.inputmethodengine
类名: InputMethodAbility
方法名 or 属性名:off_setSubtype|@ohos.inputmethodengine.d.ts| +|新增|NA|模块名: ohos.inputmethodengine
类名: InputClient|@ohos.inputmethodengine.d.ts| +|新增|NA|模块名: ohos.inputmethodengine
类名: InputClient
方法名 or 属性名:sendKeyFunction|@ohos.inputmethodengine.d.ts| +|新增|NA|模块名: ohos.inputmethodengine
类名: InputClient
方法名 or 属性名:sendKeyFunction|@ohos.inputmethodengine.d.ts| +|新增|NA|模块名: ohos.inputmethodengine
类名: InputClient
方法名 or 属性名:deleteForward|@ohos.inputmethodengine.d.ts| +|新增|NA|模块名: ohos.inputmethodengine
类名: InputClient
方法名 or 属性名:deleteForward|@ohos.inputmethodengine.d.ts| +|新增|NA|模块名: ohos.inputmethodengine
类名: InputClient
方法名 or 属性名:deleteBackward|@ohos.inputmethodengine.d.ts| +|新增|NA|模块名: ohos.inputmethodengine
类名: InputClient
方法名 or 属性名:deleteBackward|@ohos.inputmethodengine.d.ts| +|新增|NA|模块名: ohos.inputmethodengine
类名: InputClient
方法名 or 属性名:insertText|@ohos.inputmethodengine.d.ts| +|新增|NA|模块名: ohos.inputmethodengine
类名: InputClient
方法名 or 属性名:insertText|@ohos.inputmethodengine.d.ts| +|新增|NA|模块名: ohos.inputmethodengine
类名: InputClient
方法名 or 属性名:getForward|@ohos.inputmethodengine.d.ts| +|新增|NA|模块名: ohos.inputmethodengine
类名: InputClient
方法名 or 属性名:getForward|@ohos.inputmethodengine.d.ts| +|新增|NA|模块名: ohos.inputmethodengine
类名: InputClient
方法名 or 属性名:getBackward|@ohos.inputmethodengine.d.ts| +|新增|NA|模块名: ohos.inputmethodengine
类名: InputClient
方法名 or 属性名:getBackward|@ohos.inputmethodengine.d.ts| +|新增|NA|模块名: ohos.inputmethodengine
类名: InputClient
方法名 or 属性名:getEditorAttribute|@ohos.inputmethodengine.d.ts| +|新增|NA|模块名: ohos.inputmethodengine
类名: InputClient
方法名 or 属性名:getEditorAttribute|@ohos.inputmethodengine.d.ts| +|新增|NA|模块名: ohos.inputmethodengine
类名: InputClient
方法名 or 属性名:moveCursor|@ohos.inputmethodengine.d.ts| +|新增|NA|模块名: ohos.inputmethodengine
类名: InputClient
方法名 or 属性名:moveCursor|@ohos.inputmethodengine.d.ts| +|新增|NA|模块名: ohos.inputMethodSubtype
类名: InputMethodSubtype|@ohos.inputMethodSubtype.d.ts| +|新增|NA|模块名: ohos.inputMethodSubtype
类名: InputMethodSubtype
方法名 or 属性名: label|@ohos.inputMethodSubtype.d.ts| +|新增|NA|模块名: ohos.inputMethodSubtype
类名: InputMethodSubtype
方法名 or 属性名: name|@ohos.inputMethodSubtype.d.ts| +|新增|NA|模块名: ohos.inputMethodSubtype
类名: InputMethodSubtype
方法名 or 属性名: id|@ohos.inputMethodSubtype.d.ts| +|新增|NA|模块名: ohos.inputMethodSubtype
类名: InputMethodSubtype
方法名 or 属性名: mode|@ohos.inputMethodSubtype.d.ts| +|新增|NA|模块名: ohos.inputMethodSubtype
类名: InputMethodSubtype
方法名 or 属性名: locale|@ohos.inputMethodSubtype.d.ts| +|新增|NA|模块名: ohos.inputMethodSubtype
类名: InputMethodSubtype
方法名 or 属性名: language|@ohos.inputMethodSubtype.d.ts| +|新增|NA|模块名: ohos.inputMethodSubtype
类名: InputMethodSubtype
方法名 or 属性名: icon|@ohos.inputMethodSubtype.d.ts| +|新增|NA|模块名: ohos.inputMethodSubtype
类名: InputMethodSubtype
方法名 or 属性名: iconId|@ohos.inputMethodSubtype.d.ts| +|新增|NA|模块名: ohos.inputMethodSubtype
类名: InputMethodSubtype
方法名 or 属性名: extra|@ohos.inputMethodSubtype.d.ts| +|新增|NA|方法名 or 属性名:createData
函数:function createData(mimeType: string, value: ValueType): PasteData;|@ohos.pasteboard.d.ts| +|新增|NA|方法名 or 属性名:createRecord
函数:function createRecord(mimeType: string, value: ValueType): PasteDataRecord;|@ohos.pasteboard.d.ts| +|新增|NA|方法名 or 属性名:addRecord
函数:addRecord(mimeType: string, value: ValueType): void;|@ohos.pasteboard.d.ts| +|删除|模块名: ohos.inputmethodengine
类名: InputMethodEngine
方法名 or 属性名:on_inputStop|NA|@ohos.inputmethodengine.d.ts| +|删除|模块名: ohos.inputmethodengine
类名: InputMethodEngine
方法名 or 属性名:off_inputStop|NA|@ohos.inputmethodengine.d.ts| +|删除|模块名: ohos.inputmethodengine
类名: InputMethodEngine
方法名 or 属性名:on_setCallingWindow|NA|@ohos.inputmethodengine.d.ts| +|删除|模块名: ohos.inputmethodengine
类名: InputMethodEngine
方法名 or 属性名:off_setCallingWindow|NA|@ohos.inputmethodengine.d.ts| +|删除|模块名:ohos.inputmethodengine
类名:TextInputClient
方法名 or 属性名:moveCursor|NA|@ohos.inputmethodengine.d.ts| +|删除|模块名:ohos.inputmethodengine
类名:TextInputClient
方法名 or 属性名:moveCursor|NA|@ohos.inputmethodengine.d.ts| +|删除|模块名:ohos.inputmethodextensioncontext
类名:InputMethodExtensionContext
方法名 or 属性名:startAbility|NA|@ohos.inputmethodextensioncontext.d.ts| +|删除|模块名:ohos.inputmethodextensioncontext
类名:InputMethodExtensionContext
方法名 or 属性名:startAbility|NA|@ohos.inputmethodextensioncontext.d.ts| +|删除|模块名:ohos.inputmethodextensioncontext
类名:InputMethodExtensionContext
方法名 or 属性名:startAbility|NA|@ohos.inputmethodextensioncontext.d.ts| +|删除|模块名:ohos.inputmethodextensioncontext
类名:InputMethodExtensionContext
方法名 or 属性名:terminateSelf|NA|@ohos.inputmethodextensioncontext.d.ts| +|删除|模块名:ohos.inputmethodextensioncontext
类名:InputMethodExtensionContext
方法名 or 属性名:terminateSelf|NA|@ohos.inputmethodextensioncontext.d.ts| +|删除|模块名:ohos.pasteboard
类名:pasteboard
方法名 or 属性名:createPixelMapData|NA|@ohos.pasteboard.d.ts| +|删除|模块名:ohos.pasteboard
类名:pasteboard
方法名 or 属性名:createPixelMapRecord|NA|@ohos.pasteboard.d.ts| +|删除|模块名:ohos.pasteboard
类名:PasteData
方法名 or 属性名:addPixelMapRecord|NA|@ohos.pasteboard.d.ts| +|删除|模块名:ohos.screenLock
类名:screenLock
方法名 or 属性名:lockScreen|NA|@ohos.screenLock.d.ts| +|删除|模块名:ohos.screenLock
类名:screenLock
方法名 or 属性名:lockScreen|NA|@ohos.screenLock.d.ts| +|删除|模块名:ohos.wallpaper
类名:wallpaper
方法名 or 属性名:screenshotLiveWallpaper|NA|@ohos.wallpaper.d.ts| +|删除|模块名:ohos.wallpaper
类名:wallpaper
方法名 or 属性名:screenshotLiveWallpaper|NA|@ohos.wallpaper.d.ts| |model有变化|方法名 or 属性名:switchInputMethod
model:@StageModelOnly|方法名 or 属性名:switchInputMethod
model:|@ohos.inputmethod.d.ts| |model有变化|方法名 or 属性名:switchInputMethod
model:@StageModelOnly|方法名 or 属性名:switchInputMethod
model:|@ohos.inputmethod.d.ts| |model有变化|方法名 or 属性名:getCurrentInputMethod
model:@StageModelOnly|方法名 or 属性名:getCurrentInputMethod
model:|@ohos.inputmethod.d.ts| @@ -306,9 +217,9 @@ |起始版本有变化|方法名 or 属性名:getFile
起始版本:9|方法名 or 属性名:getFile
起始版本:8|@ohos.wallpaper.d.ts| |起始版本有变化|方法名 or 属性名:on_colorChange
起始版本:7|方法名 or 属性名:on_colorChange
起始版本:9|@ohos.wallpaper.d.ts| |起始版本有变化|方法名 or 属性名:off_colorChange
起始版本:7|方法名 or 属性名:off_colorChange
起始版本:9|@ohos.wallpaper.d.ts| -|新增(错误码)||方法名 or 属性名:setProperty
错误码内容:401|@ohos.pasteboard.d.ts| -|新增(错误码)||方法名 or 属性名:on_update
错误码内容:401|@ohos.pasteboard.d.ts| -|新增(错误码)||方法名 or 属性名:off_update
错误码内容:401|@ohos.pasteboard.d.ts| +|新增(错误码)|NA|方法名 or 属性名:setProperty
错误码内容:401|@ohos.pasteboard.d.ts| +|新增(错误码)|NA|方法名 or 属性名:on_update
错误码内容:401|@ohos.pasteboard.d.ts| +|新增(错误码)|NA|方法名 or 属性名:off_update
错误码内容:401|@ohos.pasteboard.d.ts| |新增(权限)|方法名 or 属性名:switchInputMethod
权限:N/A|方法名 or 属性名:switchInputMethod
权限:ohos.permission.CONNECT_IME_ABILITY|@ohos.inputmethod.d.ts| |新增(权限)|方法名 or 属性名:switchInputMethod
权限:N/A|方法名 or 属性名:switchInputMethod
权限:ohos.permission.CONNECT_IME_ABILITY|@ohos.inputmethod.d.ts| |新增(权限)|方法名 or 属性名:showSoftKeyboard
权限:N/A|方法名 or 属性名:showSoftKeyboard
权限:ohos.permission.CONNECT_IME_ABILITY|@ohos.inputmethod.d.ts| diff --git a/zh-cn/release-notes/api-diff/v3.2-beta4/js-apidiff-msdp.md b/zh-cn/release-notes/api-diff/v3.2-beta4/js-apidiff-msdp.md index 08b844eb6d58ee05af59bc52b32cbe3f6db14545..b5968a30d6813c858484e505ab4f7970663ccc33 100644 --- a/zh-cn/release-notes/api-diff/v3.2-beta4/js-apidiff-msdp.md +++ b/zh-cn/release-notes/api-diff/v3.2-beta4/js-apidiff-msdp.md @@ -1,15 +1,15 @@ -| 操作 | 新版本 | 旧版本 | d.ts文件 | +| 操作 | 旧版本 | 新版本 | d.ts文件 | | ---- | ------ | ------ | -------- | -|新增||模块名: ohos.stationary
类名: stationary|@ohos.stationary.d.ts| -|新增||模块名: ohos.stationary
类名: ActivityResponse|@ohos.stationary.d.ts| -|新增||模块名: ohos.stationary
类名: ActivityResponse
方法名 or 属性名: state|@ohos.stationary.d.ts| -|新增||模块名: ohos.stationary
类名: ActivityEvent|@ohos.stationary.d.ts| -|新增||模块名: ohos.stationary
类名: ActivityEvent
方法名 or 属性名: ENTER|@ohos.stationary.d.ts| -|新增||模块名: ohos.stationary
类名: ActivityEvent
方法名 or 属性名: EXIT|@ohos.stationary.d.ts| -|新增||模块名: ohos.stationary
类名: ActivityEvent
方法名 or 属性名: ENTER_EXIT|@ohos.stationary.d.ts| -|新增||模块名: ohos.stationary
类名: ActivityState|@ohos.stationary.d.ts| -|新增||模块名: ohos.stationary
类名: ActivityState
方法名 or 属性名: ENTER|@ohos.stationary.d.ts| -|新增||模块名: ohos.stationary
类名: ActivityState
方法名 or 属性名: EXIT|@ohos.stationary.d.ts| -|新增||模块名: ohos.stationary
类名: stationary
方法名 or 属性名: on|@ohos.stationary.d.ts| -|新增||模块名: ohos.stationary
类名: stationary
方法名 or 属性名: once|@ohos.stationary.d.ts| -|新增||模块名: ohos.stationary
类名: stationary
方法名 or 属性名: off|@ohos.stationary.d.ts| +|新增|NA|模块名: ohos.stationary
类名: stationary|@ohos.stationary.d.ts| +|新增|NA|模块名: ohos.stationary
类名: ActivityResponse|@ohos.stationary.d.ts| +|新增|NA|模块名: ohos.stationary
类名: ActivityResponse
方法名 or 属性名: state|@ohos.stationary.d.ts| +|新增|NA|模块名: ohos.stationary
类名: ActivityEvent|@ohos.stationary.d.ts| +|新增|NA|模块名: ohos.stationary
类名: ActivityEvent
方法名 or 属性名: ENTER|@ohos.stationary.d.ts| +|新增|NA|模块名: ohos.stationary
类名: ActivityEvent
方法名 or 属性名: EXIT|@ohos.stationary.d.ts| +|新增|NA|模块名: ohos.stationary
类名: ActivityEvent
方法名 or 属性名: ENTER_EXIT|@ohos.stationary.d.ts| +|新增|NA|模块名: ohos.stationary
类名: ActivityState|@ohos.stationary.d.ts| +|新增|NA|模块名: ohos.stationary
类名: ActivityState
方法名 or 属性名: ENTER|@ohos.stationary.d.ts| +|新增|NA|模块名: ohos.stationary
类名: ActivityState
方法名 or 属性名: EXIT|@ohos.stationary.d.ts| +|新增|NA|模块名: ohos.stationary
类名: stationary
方法名 or 属性名: on|@ohos.stationary.d.ts| +|新增|NA|模块名: ohos.stationary
类名: stationary
方法名 or 属性名: once|@ohos.stationary.d.ts| +|新增|NA|模块名: ohos.stationary
类名: stationary
方法名 or 属性名: off|@ohos.stationary.d.ts| diff --git a/zh-cn/release-notes/api-diff/v3.2-beta4/js-apidiff-multi-modal-input.md b/zh-cn/release-notes/api-diff/v3.2-beta4/js-apidiff-multi-modal-input.md index b15892c0cd7eb18692a182f89c9553564dad4745..929e1ec0cc9e2931ce7ce3e7a95764258c4977e6 100644 --- a/zh-cn/release-notes/api-diff/v3.2-beta4/js-apidiff-multi-modal-input.md +++ b/zh-cn/release-notes/api-diff/v3.2-beta4/js-apidiff-multi-modal-input.md @@ -1,16 +1,6 @@ -| 操作 | 新版本 | 旧版本 | d.ts文件 | +| 操作 | 旧版本 | 新版本 | d.ts文件 | | ---- | ------ | ------ | -------- | -|新增||模块名:ohos.multimodalInput.inputDevice
类名:inputDevice
方法名 or 属性名:getDeviceList|@ohos.multimodalInput.inputDevice.d.ts| -|新增||模块名:ohos.multimodalInput.inputDevice
类名:inputDevice
方法名 or 属性名:getDeviceList|@ohos.multimodalInput.inputDevice.d.ts| -|新增||模块名:ohos.multimodalInput.inputDevice
类名:inputDevice
方法名 or 属性名:getDeviceInfo|@ohos.multimodalInput.inputDevice.d.ts| -|新增||模块名:ohos.multimodalInput.inputDevice
类名:inputDevice
方法名 or 属性名:getDeviceInfo|@ohos.multimodalInput.inputDevice.d.ts| -|新增||方法名 or 属性名:supportKeys
函数:function supportKeys(deviceId: number, keys: Array, callback: AsyncCallback>): void;|@ohos.multimodalInput.inputDevice.d.ts| -|新增||模块名:ohos.multimodalInput.inputDeviceCooperate
类名:EventMsg|@ohos.multimodalInput.inputDeviceCooperate.d.ts| -|新增||模块名:ohos.multimodalInput.inputDeviceCooperate
类名:EventMsg
方法名 or 属性名:MSG_COOPERATE_INFO_START|@ohos.multimodalInput.inputDeviceCooperate.d.ts| -|新增||模块名:ohos.multimodalInput.inputDeviceCooperate
类名:EventMsg
方法名 or 属性名:MSG_COOPERATE_INFO_SUCCESS|@ohos.multimodalInput.inputDeviceCooperate.d.ts| -|新增||模块名:ohos.multimodalInput.inputDeviceCooperate
类名:EventMsg
方法名 or 属性名:MSG_COOPERATE_INFO_FAIL|@ohos.multimodalInput.inputDeviceCooperate.d.ts| -|新增||模块名:ohos.multimodalInput.inputDeviceCooperate
类名:EventMsg
方法名 or 属性名:MSG_COOPERATE_STATE_ON|@ohos.multimodalInput.inputDeviceCooperate.d.ts| -|新增||模块名:ohos.multimodalInput.inputDeviceCooperate
类名:EventMsg
方法名 or 属性名:MSG_COOPERATE_STATE_OFF|@ohos.multimodalInput.inputDeviceCooperate.d.ts| +|新增|NA|方法名 or 属性名:supportKeys
函数:function supportKeys(deviceId: number, keys: Array, callback: AsyncCallback>): void;|@ohos.multimodalInput.inputDevice.d.ts| |废弃版本有变化|方法名 or 属性名:getDeviceIds
废弃版本:N/A|方法名 or 属性名:getDeviceIds
废弃版本:9
代替接口:ohos.multimodalInput.inputDevice|@ohos.multimodalInput.inputDevice.d.ts| |废弃版本有变化|方法名 or 属性名:getDeviceIds
废弃版本:N/A|方法名 or 属性名:getDeviceIds
废弃版本:9
代替接口:ohos.multimodalInput.inputDevice|@ohos.multimodalInput.inputDevice.d.ts| |废弃版本有变化|方法名 or 属性名:getDevice
废弃版本:N/A|方法名 or 属性名:getDevice
废弃版本:9
代替接口:ohos.multimodalInput.inputDevice|@ohos.multimodalInput.inputDevice.d.ts| diff --git a/zh-cn/release-notes/api-diff/v3.2-beta4/js-apidiff-multimedia.md b/zh-cn/release-notes/api-diff/v3.2-beta4/js-apidiff-multimedia.md index 04f8f96e82803b8b432f1dae37f5bce86ae47fd2..c47aff2c80bf37bfd2f26a14af0b5d02c3f72efa 100644 --- a/zh-cn/release-notes/api-diff/v3.2-beta4/js-apidiff-multimedia.md +++ b/zh-cn/release-notes/api-diff/v3.2-beta4/js-apidiff-multimedia.md @@ -1,574 +1,471 @@ -| 操作 | 新版本 | 旧版本 | d.ts文件 | +| 操作 | 旧版本 | 新版本 | d.ts文件 | | ---- | ------ | ------ | -------- | -|新增||模块名:ohos.multimedia.audio
类名:audio|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: AudioErrors|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: AudioErrors
方法名 or 属性名:ERROR_INVALID_PARAM|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: AudioErrors
方法名 or 属性名:ERROR_NO_MEMORY|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: AudioErrors
方法名 or 属性名:ERROR_ILLEGAL_STATE|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: AudioErrors
方法名 or 属性名:ERROR_UNSUPPORTED|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: AudioErrors
方法名 or 属性名:ERROR_TIMEOUT|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: AudioErrors
方法名 or 属性名:ERROR_STREAM_LIMIT|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: AudioErrors
方法名 or 属性名:ERROR_SYSTEM|@ohos.multimedia.audio.d.ts| -|新增||模块名:ohos.multimedia.audio
类名:audio
方法名 or 属性名:DEFAULT_VOLUME_GROUP_ID|@ohos.multimedia.audio.d.ts| -|新增||模块名:ohos.multimedia.audio
类名:audio
方法名 or 属性名:DEFAULT_INTERRUPT_GROUP_ID|@ohos.multimedia.audio.d.ts| -|新增||模块名:ohos.multimedia.audio
类名:audio
方法名 or 属性名:createTonePlayer|@ohos.multimedia.audio.d.ts| -|新增||模块名:ohos.multimedia.audio
类名:audio
方法名 or 属性名:createTonePlayer|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: CommunicationDeviceType|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: CommunicationDeviceType
方法名 or 属性名:SPEAKER|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: StreamUsage
方法名 or 属性名:STREAM_USAGE_VOICE_ASSISTANT|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: InterruptRequestType|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: InterruptRequestType
方法名 or 属性名:INTERRUPT_REQUEST_TYPE_DEFAULT|@ohos.multimedia.audio.d.ts| -|新增||模块名:ohos.multimedia.audio
类名:InterruptMode|@ohos.multimedia.audio.d.ts| -|新增||模块名:ohos.multimedia.audio
类名:InterruptMode
方法名 or 属性名:SHARE_MODE|@ohos.multimedia.audio.d.ts| -|新增||模块名:ohos.multimedia.audio
类名:InterruptMode
方法名 or 属性名:INDEPENDENT_MODE|@ohos.multimedia.audio.d.ts| -|新增||模块名:ohos.multimedia.audio
类名:AudioManager
方法名 or 属性名:getVolumeManager|@ohos.multimedia.audio.d.ts| -|新增||方法名 or 属性名:getStreamManager
函数:getStreamManager(): AudioStreamManager;|@ohos.multimedia.audio.d.ts| -|新增||方法名 or 属性名:getRoutingManager
函数:getRoutingManager(): AudioRoutingManager;|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: InterruptRequestResultType|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: InterruptRequestResultType
方法名 or 属性名:INTERRUPT_REQUEST_GRANT|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: InterruptRequestResultType
方法名 or 属性名:INTERRUPT_REQUEST_REJECT|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: InterruptResult|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: InterruptResult
方法名 or 属性名:requestResult|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: InterruptResult
方法名 or 属性名:interruptNode|@ohos.multimedia.audio.d.ts| -|新增||模块名:ohos.multimedia.audio
类名:AudioRoutingManager
方法名 or 属性名:setCommunicationDevice|@ohos.multimedia.audio.d.ts| -|新增||模块名:ohos.multimedia.audio
类名:AudioRoutingManager
方法名 or 属性名:setCommunicationDevice|@ohos.multimedia.audio.d.ts| -|新增||模块名:ohos.multimedia.audio
类名:AudioRoutingManager
方法名 or 属性名:isCommunicationDeviceActive|@ohos.multimedia.audio.d.ts| -|新增||模块名:ohos.multimedia.audio
类名:AudioRoutingManager
方法名 or 属性名:isCommunicationDeviceActive|@ohos.multimedia.audio.d.ts| -|新增||模块名:ohos.multimedia.audio
类名:AudioRoutingManager
方法名 or 属性名:selectInputDevice|@ohos.multimedia.audio.d.ts| -|新增||模块名:ohos.multimedia.audio
类名:AudioRoutingManager
方法名 or 属性名:selectInputDevice|@ohos.multimedia.audio.d.ts| -|新增||方法名 or 属性名:off_audioRendererChange
函数:off(type: "audioRendererChange"): void;|@ohos.multimedia.audio.d.ts| -|新增||方法名 or 属性名:off_audioCapturerChange
函数:off(type: "audioCapturerChange"): void;|@ohos.multimedia.audio.d.ts| -|新增||模块名:ohos.multimedia.audio
类名:AudioStreamManager
方法名 or 属性名:isActive|@ohos.multimedia.audio.d.ts| -|新增||模块名:ohos.multimedia.audio
类名:AudioStreamManager
方法名 or 属性名:isActive|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: AudioVolumeManager|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: AudioVolumeManager
方法名 or 属性名:getVolumeGroupInfos|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: AudioVolumeManager
方法名 or 属性名:getVolumeGroupInfos|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: AudioVolumeManager
方法名 or 属性名:getVolumeGroupManager|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: AudioVolumeManager
方法名 or 属性名:getVolumeGroupManager|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: AudioVolumeManager
方法名 or 属性名:on_volumeChange|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: AudioVolumeGroupManager|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: AudioVolumeGroupManager
方法名 or 属性名:setVolume|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: AudioVolumeGroupManager
方法名 or 属性名:setVolume|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: AudioVolumeGroupManager
方法名 or 属性名:getVolume|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: AudioVolumeGroupManager
方法名 or 属性名:getVolume|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: AudioVolumeGroupManager
方法名 or 属性名:getMinVolume|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: AudioVolumeGroupManager
方法名 or 属性名:getMinVolume|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: AudioVolumeGroupManager
方法名 or 属性名:getMaxVolume|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: AudioVolumeGroupManager
方法名 or 属性名:getMaxVolume|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: AudioVolumeGroupManager
方法名 or 属性名:mute|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: AudioVolumeGroupManager
方法名 or 属性名:mute|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: AudioVolumeGroupManager
方法名 or 属性名:isMute|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: AudioVolumeGroupManager
方法名 or 属性名:isMute|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: AudioVolumeGroupManager
方法名 or 属性名:setRingerMode|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: AudioVolumeGroupManager
方法名 or 属性名:setRingerMode|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: AudioVolumeGroupManager
方法名 or 属性名:getRingerMode|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: AudioVolumeGroupManager
方法名 or 属性名:getRingerMode|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: AudioVolumeGroupManager
方法名 or 属性名:on_ringerModeChange|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: AudioVolumeGroupManager
方法名 or 属性名:setMicrophoneMute|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: AudioVolumeGroupManager
方法名 or 属性名:setMicrophoneMute|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: AudioVolumeGroupManager
方法名 or 属性名:isMicrophoneMute|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: AudioVolumeGroupManager
方法名 or 属性名:isMicrophoneMute|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: AudioVolumeGroupManager
方法名 or 属性名:on_micStateChange|@ohos.multimedia.audio.d.ts| -|新增||模块名:ohos.multimedia.audio
类名:ConnectType
方法名 or 属性名:CONNECT_TYPE_LOCAL|@ohos.multimedia.audio.d.ts| -|新增||模块名:ohos.multimedia.audio
类名:ConnectType
方法名 or 属性名:CONNECT_TYPE_DISTRIBUTED|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: MicStateChangeEvent|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: MicStateChangeEvent
方法名 or 属性名:mute|@ohos.multimedia.audio.d.ts| -|新增||模块名:ohos.multimedia.audio
类名:AudioRenderer
方法名 or 属性名:getAudioStreamId|@ohos.multimedia.audio.d.ts| -|新增||模块名:ohos.multimedia.audio
类名:AudioRenderer
方法名 or 属性名:getAudioStreamId|@ohos.multimedia.audio.d.ts| -|新增||模块名:ohos.multimedia.audio
类名:AudioRenderer
方法名 or 属性名:setVolume|@ohos.multimedia.audio.d.ts| -|新增||模块名:ohos.multimedia.audio
类名:AudioRenderer
方法名 or 属性名:setVolume|@ohos.multimedia.audio.d.ts| -|新增||模块名:ohos.multimedia.audio
类名:AudioRenderer
方法名 or 属性名:on_audioInterrupt|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: SourceType
方法名 or 属性名:SOURCE_TYPE_VOICE_RECOGNITION|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: AudioCapturer
方法名 or 属性名:getAudioStreamId|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: AudioCapturer
方法名 or 属性名:getAudioStreamId|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: ToneType|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: ToneType
方法名 or 属性名:TONE_TYPE_DIAL_0|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: ToneType
方法名 or 属性名:TONE_TYPE_DIAL_1|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: ToneType
方法名 or 属性名:TONE_TYPE_DIAL_2|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: ToneType
方法名 or 属性名:TONE_TYPE_DIAL_3|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: ToneType
方法名 or 属性名:TONE_TYPE_DIAL_4|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: ToneType
方法名 or 属性名:TONE_TYPE_DIAL_5|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: ToneType
方法名 or 属性名:TONE_TYPE_DIAL_6|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: ToneType
方法名 or 属性名:TONE_TYPE_DIAL_7|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: ToneType
方法名 or 属性名:TONE_TYPE_DIAL_8|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: ToneType
方法名 or 属性名:TONE_TYPE_DIAL_9|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: ToneType
方法名 or 属性名:TONE_TYPE_DIAL_S|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: ToneType
方法名 or 属性名:TONE_TYPE_DIAL_P|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: ToneType
方法名 or 属性名:TONE_TYPE_DIAL_A|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: ToneType
方法名 or 属性名:TONE_TYPE_DIAL_B|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: ToneType
方法名 or 属性名:TONE_TYPE_DIAL_C|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: ToneType
方法名 or 属性名:TONE_TYPE_DIAL_D|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: ToneType
方法名 or 属性名:TONE_TYPE_COMMON_SUPERVISORY_DIAL|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: ToneType
方法名 or 属性名:TONE_TYPE_COMMON_SUPERVISORY_BUSY|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: ToneType
方法名 or 属性名:TONE_TYPE_COMMON_SUPERVISORY_CONGESTION|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: ToneType
方法名 or 属性名:TONE_TYPE_COMMON_SUPERVISORY_RADIO_ACK|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: ToneType
方法名 or 属性名:TONE_TYPE_COMMON_SUPERVISORY_RADIO_NOT_AVAILABLE|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: ToneType
方法名 or 属性名:TONE_TYPE_COMMON_SUPERVISORY_CALL_WAITING|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: ToneType
方法名 or 属性名:TONE_TYPE_COMMON_SUPERVISORY_RINGTONE|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: ToneType
方法名 or 属性名:TONE_TYPE_COMMON_PROPRIETARY_BEEP|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: ToneType
方法名 or 属性名:TONE_TYPE_COMMON_PROPRIETARY_ACK|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: ToneType
方法名 or 属性名:TONE_TYPE_COMMON_PROPRIETARY_PROMPT|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: ToneType
方法名 or 属性名:TONE_TYPE_COMMON_PROPRIETARY_DOUBLE_BEEP|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: TonePlayer|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: TonePlayer
方法名 or 属性名:load|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: TonePlayer
方法名 or 属性名:load|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: TonePlayer
方法名 or 属性名:start|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: TonePlayer
方法名 or 属性名:start|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: TonePlayer
方法名 or 属性名:stop|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: TonePlayer
方法名 or 属性名:stop|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: TonePlayer
方法名 or 属性名:release|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.audio
类名: TonePlayer
方法名 or 属性名:release|@ohos.multimedia.audio.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: avSession|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: avSession
方法名 or 属性名: createAVSession|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: avSession
方法名 or 属性名: createAVSession|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: avSession
方法名 or 属性名: getAllSessionDescriptors|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: avSession
方法名 or 属性名: getAllSessionDescriptors|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: avSession
方法名 or 属性名: createController|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: avSession
方法名 or 属性名: createController|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: avSession
方法名 or 属性名: castAudio|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: avSession
方法名 or 属性名: castAudio|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: SessionToken|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: SessionToken
方法名 or 属性名: sessionId|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: SessionToken
方法名 or 属性名: pid|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: SessionToken
方法名 or 属性名: uid|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: avSession
方法名 or 属性名: on_sessionCreate|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: avSession
方法名 or 属性名: on_sessionDestroy|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: avSession
方法名 or 属性名: on_topSessionChange|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: avSession
方法名 or 属性名: off_sessionCreate|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: avSession
方法名 or 属性名: off_sessionDestroy|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: avSession
方法名 or 属性名: off_topSessionChange|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: avSession
方法名 or 属性名: on_sessionServiceDie|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: avSession
方法名 or 属性名: off_sessionServiceDie|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: avSession
方法名 or 属性名: sendSystemAVKeyEvent|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: avSession
方法名 or 属性名: sendSystemAVKeyEvent|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: avSession
方法名 or 属性名: sendSystemControlCommand|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: avSession
方法名 or 属性名: sendSystemControlCommand|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSession|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: sessionId|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: setAVMetadata|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: setAVMetadata|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: setAVPlaybackState|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: setAVPlaybackState|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: setLaunchAbility|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: setLaunchAbility|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: getController|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: getController|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: getOutputDevice|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: getOutputDevice|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: on_play|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: on_pause|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: on_stop|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: on_playNext|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: on_playPrevious|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: on_fastForward|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: on_rewind|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: off_play|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: off_pause|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: off_stop|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: off_playNext|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: off_playPrevious|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: off_fastForward|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: off_rewind|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: on_seek|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: off_seek|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: on_setSpeed|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: off_setSpeed|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: on_setLoopMode|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: off_setLoopMode|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: on_toggleFavorite|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: off_toggleFavorite|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: on_handleKeyEvent|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: off_handleKeyEvent|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: on_outputDeviceChange|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: off_outputDeviceChange|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: activate|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: activate|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: deactivate|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: deactivate|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: destroy|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: destroy|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVMetadata|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVMetadata
方法名 or 属性名: assetId|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVMetadata
方法名 or 属性名: title|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVMetadata
方法名 or 属性名: artist|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVMetadata
方法名 or 属性名: author|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVMetadata
方法名 or 属性名: album|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVMetadata
方法名 or 属性名: writer|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVMetadata
方法名 or 属性名: composer|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVMetadata
方法名 or 属性名: duration|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVMetadata
方法名 or 属性名: mediaImage|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVMetadata
方法名 or 属性名: publishDate|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVMetadata
方法名 or 属性名: subtitle|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVMetadata
方法名 or 属性名: description|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVMetadata
方法名 or 属性名: lyric|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVMetadata
方法名 or 属性名: previousAssetId|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVMetadata
方法名 or 属性名: nextAssetId|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVPlaybackState|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVPlaybackState
方法名 or 属性名: state|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVPlaybackState
方法名 or 属性名: speed|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVPlaybackState
方法名 or 属性名: position|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVPlaybackState
方法名 or 属性名: bufferedTime|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVPlaybackState
方法名 or 属性名: loopMode|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVPlaybackState
方法名 or 属性名: isFavorite|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: PlaybackPosition|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: PlaybackPosition
方法名 or 属性名: elapsedTime|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: PlaybackPosition
方法名 or 属性名: updateTime|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: OutputDeviceInfo|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: OutputDeviceInfo
方法名 or 属性名: isRemote|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: OutputDeviceInfo
方法名 or 属性名: audioDeviceId|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: OutputDeviceInfo
方法名 or 属性名: deviceName|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: LoopMode|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: LoopMode
方法名 or 属性名: LOOP_MODE_SEQUENCE|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: LoopMode
方法名 or 属性名: LOOP_MODE_SINGLE|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: LoopMode
方法名 or 属性名: LOOP_MODE_LIST|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: LoopMode
方法名 or 属性名: LOOP_MODE_SHUFFLE|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: PlaybackState|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: PlaybackState
方法名 or 属性名: PLAYBACK_STATE_INITIAL|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: PlaybackState
方法名 or 属性名: PLAYBACK_STATE_PREPARE|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: PlaybackState
方法名 or 属性名: PLAYBACK_STATE_PLAY|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: PlaybackState
方法名 or 属性名: PLAYBACK_STATE_PAUSE|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: PlaybackState
方法名 or 属性名: PLAYBACK_STATE_FAST_FORWARD|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: PlaybackState
方法名 or 属性名: PLAYBACK_STATE_REWIND|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: PlaybackState
方法名 or 属性名: PLAYBACK_STATE_STOP|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSessionDescriptor|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSessionDescriptor
方法名 or 属性名: sessionId|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSessionDescriptor
方法名 or 属性名: type|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSessionDescriptor
方法名 or 属性名: sessionTag|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSessionDescriptor
方法名 or 属性名: elementName|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSessionDescriptor
方法名 or 属性名: isActive|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSessionDescriptor
方法名 or 属性名: isTopSession|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSessionDescriptor
方法名 or 属性名: outputDevice|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSessionController|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSessionController
方法名 or 属性名: sessionId|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSessionController
方法名 or 属性名: getAVPlaybackState|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSessionController
方法名 or 属性名: getAVPlaybackState|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSessionController
方法名 or 属性名: getAVMetadata|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSessionController
方法名 or 属性名: getAVMetadata|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSessionController
方法名 or 属性名: getOutputDevice|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSessionController
方法名 or 属性名: getOutputDevice|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSessionController
方法名 or 属性名: sendAVKeyEvent|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSessionController
方法名 or 属性名: sendAVKeyEvent|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSessionController
方法名 or 属性名: getLaunchAbility|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSessionController
方法名 or 属性名: getLaunchAbility|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSessionController
方法名 or 属性名: getRealPlaybackPositionSync|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSessionController
方法名 or 属性名: isActive|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSessionController
方法名 or 属性名: isActive|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSessionController
方法名 or 属性名: destroy|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSessionController
方法名 or 属性名: destroy|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSessionController
方法名 or 属性名: getValidCommands|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSessionController
方法名 or 属性名: getValidCommands|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSessionController
方法名 or 属性名: sendControlCommand|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSessionController
方法名 or 属性名: sendControlCommand|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSessionController
方法名 or 属性名: on_metadataChange|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSessionController
方法名 or 属性名: off_metadataChange|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSessionController
方法名 or 属性名: on_playbackStateChange|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSessionController
方法名 or 属性名: off_playbackStateChange|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSessionController
方法名 or 属性名: on_sessionDestroy|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSessionController
方法名 or 属性名: off_sessionDestroy|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSessionController
方法名 or 属性名: on_activeStateChange|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSessionController
方法名 or 属性名: off_activeStateChange|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSessionController
方法名 or 属性名: on_validCommandChange|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSessionController
方法名 or 属性名: off_validCommandChange|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSessionController
方法名 or 属性名: on_outputDeviceChange|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSessionController
方法名 or 属性名: off_outputDeviceChange|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVControlCommand|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVControlCommand
方法名 or 属性名: command|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVControlCommand
方法名 or 属性名: parameter|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSessionErrorCode|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSessionErrorCode
方法名 or 属性名: ERR_CODE_SERVICE_EXCEPTION|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSessionErrorCode
方法名 or 属性名: ERR_CODE_SESSION_NOT_EXIST|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSessionErrorCode
方法名 or 属性名: ERR_CODE_CONTROLLER_NOT_EXIST|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSessionErrorCode
方法名 or 属性名: ERR_CODE_REMOTE_CONNECTION_ERR|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSessionErrorCode
方法名 or 属性名: ERR_CODE_COMMAND_INVALID|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSessionErrorCode
方法名 or 属性名: ERR_CODE_SESSION_INACTIVE|@ohos.multimedia.avsession.d.ts| -|新增||模块名: ohos.multimedia.avsession
类名: AVSessionErrorCode
方法名 or 属性名: ERR_CODE_MESSAGE_OVERLOAD|@ohos.multimedia.avsession.d.ts| -|新增||方法名 or 属性名:CAMERA_STATUS_DISAPPEAR
函数:CAMERA_STATUS_DISAPPEAR = 1|@ohos.multimedia.camera.d.ts| -|新增||方法名 or 属性名:CAMERA_STATUS_AVAILABLE
函数:CAMERA_STATUS_AVAILABLE = 2|@ohos.multimedia.camera.d.ts| -|新增||方法名 or 属性名:CAMERA_STATUS_UNAVAILABLE
函数:CAMERA_STATUS_UNAVAILABLE = 3|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: Profile|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: Profile
方法名 or 属性名:format|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: Profile
方法名 or 属性名:size|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: FrameRateRange|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: FrameRateRange
方法名 or 属性名:min|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: FrameRateRange
方法名 or 属性名:max|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: VideoProfile|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: VideoProfile
方法名 or 属性名:frameRateRange|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: CameraOutputCapability|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: CameraOutputCapability
方法名 or 属性名:previewProfiles|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: CameraOutputCapability
方法名 or 属性名:photoProfiles|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: CameraOutputCapability
方法名 or 属性名:videoProfiles|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: CameraOutputCapability
方法名 or 属性名:supportedMetadataObjectTypes|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CameraManager
方法名 or 属性名:getSupportedCameras|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CameraManager
方法名 or 属性名:getSupportedCameras|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CameraManager
方法名 or 属性名:getSupportedOutputCapability|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CameraManager
方法名 or 属性名:getSupportedOutputCapability|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CameraManager
方法名 or 属性名:isCameraMuted|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CameraManager
方法名 or 属性名:isCameraMuteSupported|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CameraManager
方法名 or 属性名:muteCamera|@ohos.multimedia.camera.d.ts| -|新增||方法名 or 属性名:createCameraInput
函数:createCameraInput(camera: CameraDevice, callback: AsyncCallback): void;|@ohos.multimedia.camera.d.ts| -|新增||方法名 or 属性名:createCameraInput
函数:createCameraInput(camera: CameraDevice): Promise;|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CameraManager
方法名 or 属性名:createPreviewOutput|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CameraManager
方法名 or 属性名:createPreviewOutput|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CameraManager
方法名 or 属性名:createPhotoOutput|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CameraManager
方法名 or 属性名:createPhotoOutput|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CameraManager
方法名 or 属性名:createVideoOutput|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CameraManager
方法名 or 属性名:createVideoOutput|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CameraManager
方法名 or 属性名:createMetadataOutput|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CameraManager
方法名 or 属性名:createMetadataOutput|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CameraManager
方法名 or 属性名:createCaptureSession|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CameraManager
方法名 or 属性名:createCaptureSession|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CameraManager
方法名 or 属性名:on_cameraMute|@ohos.multimedia.camera.d.ts| -|新增||方法名 or 属性名:camera
函数:camera: CameraDevice;|@ohos.multimedia.camera.d.ts| -|新增||方法名 or 属性名:CAMERA_POSITION_BACK
函数:CAMERA_POSITION_BACK = 1|@ohos.multimedia.camera.d.ts| -|新增||方法名 or 属性名:CAMERA_POSITION_FRONT
函数:CAMERA_POSITION_FRONT = 2|@ohos.multimedia.camera.d.ts| -|新增||方法名 or 属性名:CAMERA_TYPE_WIDE_ANGLE
函数:CAMERA_TYPE_WIDE_ANGLE = 1|@ohos.multimedia.camera.d.ts| -|新增||方法名 or 属性名:CAMERA_TYPE_ULTRA_WIDE
函数:CAMERA_TYPE_ULTRA_WIDE = 2|@ohos.multimedia.camera.d.ts| -|新增||方法名 or 属性名:CAMERA_TYPE_TELEPHOTO
函数:CAMERA_TYPE_TELEPHOTO = 3|@ohos.multimedia.camera.d.ts| -|新增||方法名 or 属性名:CAMERA_TYPE_TRUE_DEPTH
函数:CAMERA_TYPE_TRUE_DEPTH = 4|@ohos.multimedia.camera.d.ts| -|新增||方法名 or 属性名:CAMERA_CONNECTION_USB_PLUGIN
函数:CAMERA_CONNECTION_USB_PLUGIN = 1|@ohos.multimedia.camera.d.ts| -|新增||方法名 or 属性名:CAMERA_CONNECTION_REMOTE
函数:CAMERA_CONNECTION_REMOTE = 2|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: CameraDevice|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: CameraDevice
方法名 or 属性名:cameraId|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: CameraDevice
方法名 or 属性名:cameraPosition|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: CameraDevice
方法名 or 属性名:cameraType|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: CameraDevice
方法名 or 属性名:connectionType|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: Point|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: Point
方法名 or 属性名:x|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: Point
方法名 or 属性名:y|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CameraInput
方法名 or 属性名:open|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CameraInput
方法名 or 属性名:open|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CameraInput
方法名 or 属性名:close|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CameraInput
方法名 or 属性名:close|@ohos.multimedia.camera.d.ts| -|新增||方法名 or 属性名:on_error
函数:on(type: 'error', camera: CameraDevice, callback: ErrorCallback): void;|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: CameraInputErrorCode
方法名 or 属性名:ERROR_NO_PERMISSION|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: CameraInputErrorCode
方法名 or 属性名:ERROR_DEVICE_PREEMPTED|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: CameraInputErrorCode
方法名 or 属性名:ERROR_DEVICE_DISCONNECTED|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: CameraInputErrorCode
方法名 or 属性名:ERROR_DEVICE_IN_USE|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: CameraInputErrorCode
方法名 or 属性名:ERROR_DRIVER_ERROR|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: CameraFormat|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: CameraFormat
方法名 or 属性名:CAMERA_FORMAT_RGBA_8888|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: CameraFormat
方法名 or 属性名:CAMERA_FORMAT_YUV_420_SP|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: CameraFormat
方法名 or 属性名:CAMERA_FORMAT_JPEG|@ohos.multimedia.camera.d.ts| -|新增||方法名 or 属性名:FLASH_MODE_OPEN
函数:FLASH_MODE_OPEN = 1|@ohos.multimedia.camera.d.ts| -|新增||方法名 or 属性名:FLASH_MODE_AUTO
函数:FLASH_MODE_AUTO = 2|@ohos.multimedia.camera.d.ts| -|新增||方法名 or 属性名:FLASH_MODE_ALWAYS_OPEN
函数:FLASH_MODE_ALWAYS_OPEN = 3|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: ExposureMode|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: ExposureMode
方法名 or 属性名:EXPOSURE_MODE_LOCKED|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: ExposureMode
方法名 or 属性名:EXPOSURE_MODE_AUTO|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: ExposureMode
方法名 or 属性名:EXPOSURE_MODE_CONTINUOUS_AUTO|@ohos.multimedia.camera.d.ts| -|新增||方法名 or 属性名:FOCUS_MODE_CONTINUOUS_AUTO
函数:FOCUS_MODE_CONTINUOUS_AUTO = 1|@ohos.multimedia.camera.d.ts| -|新增||方法名 or 属性名:FOCUS_MODE_AUTO
函数:FOCUS_MODE_AUTO = 2|@ohos.multimedia.camera.d.ts| -|新增||方法名 or 属性名:FOCUS_MODE_LOCKED
函数:FOCUS_MODE_LOCKED = 3|@ohos.multimedia.camera.d.ts| -|新增||方法名 or 属性名:FOCUS_STATE_FOCUSED
函数:FOCUS_STATE_FOCUSED = 1|@ohos.multimedia.camera.d.ts| -|新增||方法名 or 属性名:FOCUS_STATE_UNFOCUSED
函数:FOCUS_STATE_UNFOCUSED = 2|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: VideoStabilizationMode|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: VideoStabilizationMode
方法名 or 属性名:OFF|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: VideoStabilizationMode
方法名 or 属性名:LOW|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: VideoStabilizationMode
方法名 or 属性名:MIDDLE|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: VideoStabilizationMode
方法名 or 属性名:HIGH|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: VideoStabilizationMode
方法名 or 属性名:AUTO|@ohos.multimedia.camera.d.ts| -|新增||方法名 or 属性名:addOutput
函数:addOutput(cameraOutput: CameraOutput, callback: AsyncCallback): void;|@ohos.multimedia.camera.d.ts| -|新增||方法名 or 属性名:addOutput
函数:addOutput(cameraOutput: CameraOutput): Promise;|@ohos.multimedia.camera.d.ts| -|新增||方法名 or 属性名:removeOutput
函数:removeOutput(cameraOutput: CameraOutput, callback: AsyncCallback): void;|@ohos.multimedia.camera.d.ts| -|新增||方法名 or 属性名:removeOutput
函数:removeOutput(cameraOutput: CameraOutput): Promise;|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CaptureSession
方法名 or 属性名:hasFlash|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CaptureSession
方法名 or 属性名:hasFlash|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CaptureSession
方法名 or 属性名:isFlashModeSupported|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CaptureSession
方法名 or 属性名:isFlashModeSupported|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CaptureSession
方法名 or 属性名:getFlashMode|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CaptureSession
方法名 or 属性名:getFlashMode|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CaptureSession
方法名 or 属性名:setFlashMode|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CaptureSession
方法名 or 属性名:setFlashMode|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CaptureSession
方法名 or 属性名:isExposureModeSupported|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CaptureSession
方法名 or 属性名:isExposureModeSupported|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CaptureSession
方法名 or 属性名:getExposureMode|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CaptureSession
方法名 or 属性名:getExposureMode|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CaptureSession
方法名 or 属性名:setExposureMode|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CaptureSession
方法名 or 属性名:setExposureMode|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CaptureSession
方法名 or 属性名:getMeteringPoint|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CaptureSession
方法名 or 属性名:getMeteringPoint|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CaptureSession
方法名 or 属性名:setMeteringPoint|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CaptureSession
方法名 or 属性名:setMeteringPoint|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CaptureSession
方法名 or 属性名:getExposureBiasRange|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CaptureSession
方法名 or 属性名:getExposureBiasRange|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CaptureSession
方法名 or 属性名:setExposureBias|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CaptureSession
方法名 or 属性名:setExposureBias|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CaptureSession
方法名 or 属性名:getExposureValue|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CaptureSession
方法名 or 属性名:getExposureValue|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CaptureSession
方法名 or 属性名:isFocusModeSupported|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CaptureSession
方法名 or 属性名:isFocusModeSupported|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CaptureSession
方法名 or 属性名:getFocusMode|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CaptureSession
方法名 or 属性名:getFocusMode|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CaptureSession
方法名 or 属性名:setFocusMode|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CaptureSession
方法名 or 属性名:setFocusMode|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CaptureSession
方法名 or 属性名:setFocusPoint|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CaptureSession
方法名 or 属性名:setFocusPoint|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CaptureSession
方法名 or 属性名:getFocusPoint|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CaptureSession
方法名 or 属性名:getFocusPoint|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CaptureSession
方法名 or 属性名:getFocalLength|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CaptureSession
方法名 or 属性名:getFocalLength|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CaptureSession
方法名 or 属性名:getZoomRatioRange|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CaptureSession
方法名 or 属性名:getZoomRatioRange|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CaptureSession
方法名 or 属性名:getZoomRatio|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CaptureSession
方法名 or 属性名:getZoomRatio|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CaptureSession
方法名 or 属性名:setZoomRatio|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CaptureSession
方法名 or 属性名:setZoomRatio|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CaptureSession
方法名 or 属性名:isVideoStabilizationModeSupported|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CaptureSession
方法名 or 属性名:isVideoStabilizationModeSupported|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CaptureSession
方法名 or 属性名:getActiveVideoStabilizationMode|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CaptureSession
方法名 or 属性名:getActiveVideoStabilizationMode|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CaptureSession
方法名 or 属性名:setVideoStabilizationMode|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CaptureSession
方法名 or 属性名:setVideoStabilizationMode|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:CaptureSession
方法名 or 属性名:on_focusStateChange|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: CaptureSessionErrorCode
方法名 or 属性名:ERROR_INSUFFICIENT_RESOURCES|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: CaptureSessionErrorCode
方法名 or 属性名:ERROR_TIMEOUT|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: CameraOutput|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: CameraOutput
方法名 or 属性名:release|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: CameraOutput
方法名 or 属性名:release|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:PreviewOutput
方法名 or 属性名:start|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:PreviewOutput
方法名 or 属性名:start|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:PreviewOutput
方法名 or 属性名:stop|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:PreviewOutput
方法名 or 属性名:stop|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: Location|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: Location
方法名 or 属性名:latitude|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: Location
方法名 or 属性名:longitude|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: Location
方法名 or 属性名:altitude|@ohos.multimedia.camera.d.ts| -|新增||方法名 or 属性名:QUALITY_LEVEL_MEDIUM
函数:QUALITY_LEVEL_MEDIUM = 1|@ohos.multimedia.camera.d.ts| -|新增||方法名 or 属性名:QUALITY_LEVEL_LOW
函数:QUALITY_LEVEL_LOW = 2|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: PhotoCaptureSetting
方法名 or 属性名:location|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: PhotoCaptureSetting
方法名 or 属性名:mirror|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:PhotoOutput
方法名 or 属性名:isMirrorSupported|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.camera
类名:PhotoOutput
方法名 or 属性名:isMirrorSupported|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: PhotoOutputErrorCode
方法名 or 属性名:ERROR_DRIVER_ERROR|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: PhotoOutputErrorCode
方法名 or 属性名:ERROR_INSUFFICIENT_RESOURCES|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: PhotoOutputErrorCode
方法名 or 属性名:ERROR_TIMEOUT|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: VideoOutputErrorCode
方法名 or 属性名:ERROR_DRIVER_ERROR|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: MetadataObjectType|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: MetadataObjectType
方法名 or 属性名:FACE_DETECTION|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: Rect|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: Rect
方法名 or 属性名:topLeftX|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: Rect
方法名 or 属性名:topLeftY|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: Rect
方法名 or 属性名:width|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: Rect
方法名 or 属性名:height|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: MetadataObject|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: MetadataObject
方法名 or 属性名:getType|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: MetadataObject
方法名 or 属性名:getType|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: MetadataObject
方法名 or 属性名:getTimestamp|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: MetadataObject
方法名 or 属性名:getTimestamp|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: MetadataObject
方法名 or 属性名:getBoundingBox|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: MetadataObject
方法名 or 属性名:getBoundingBox|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: MetadataFaceObject|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: MetadataOutput|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: MetadataOutput
方法名 or 属性名:start|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: MetadataOutput
方法名 or 属性名:start|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: MetadataOutput
方法名 or 属性名:stop|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: MetadataOutput
方法名 or 属性名:stop|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: MetadataOutput
方法名 or 属性名:on_metadataObjectsAvailable|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: MetadataOutput
方法名 or 属性名:on_error|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: MetadataOutputErrorCode|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: MetadataOutputErrorCode
方法名 or 属性名:ERROR_UNKNOWN|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: MetadataOutputErrorCode
方法名 or 属性名:ERROR_INSUFFICIENT_RESOURCES|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: MetadataOutputError|@ohos.multimedia.camera.d.ts| -|新增||模块名: ohos.multimedia.camera
类名: MetadataOutputError
方法名 or 属性名:code|@ohos.multimedia.camera.d.ts| -|新增||模块名:ohos.multimedia.image
类名:image|@ohos.multimedia.image.d.ts| -|新增||模块名: ohos.multimedia.image
类名: PixelMapFormat
方法名 or 属性名:RGB_888|@ohos.multimedia.image.d.ts| -|新增||模块名: ohos.multimedia.image
类名: PixelMapFormat
方法名 or 属性名:ALPHA_8|@ohos.multimedia.image.d.ts| -|新增||模块名: ohos.multimedia.image
类名: PixelMapFormat
方法名 or 属性名:RGBA_F16|@ohos.multimedia.image.d.ts| -|新增||模块名: ohos.multimedia.image
类名: PixelMapFormat
方法名 or 属性名:NV21|@ohos.multimedia.image.d.ts| -|新增||模块名: ohos.multimedia.image
类名: PixelMapFormat
方法名 or 属性名:NV12|@ohos.multimedia.image.d.ts| -|新增||模块名: ohos.multimedia.image
类名: PropertyKey
方法名 or 属性名:DATE_TIME_ORIGINAL|@ohos.multimedia.image.d.ts| -|新增||模块名: ohos.multimedia.image
类名: PropertyKey
方法名 or 属性名:EXPOSURE_TIME|@ohos.multimedia.image.d.ts| -|新增||模块名: ohos.multimedia.image
类名: PropertyKey
方法名 or 属性名:SCENE_TYPE|@ohos.multimedia.image.d.ts| -|新增||模块名: ohos.multimedia.image
类名: PropertyKey
方法名 or 属性名:ISO_SPEED_RATINGS|@ohos.multimedia.image.d.ts| -|新增||模块名: ohos.multimedia.image
类名: PropertyKey
方法名 or 属性名:F_NUMBER|@ohos.multimedia.image.d.ts| -|新增||模块名: ohos.multimedia.image
类名: ImageInfo
方法名 or 属性名:density|@ohos.multimedia.image.d.ts| -|新增||模块名: ohos.multimedia.image
类名: PackingOption
方法名 or 属性名:bufferSize|@ohos.multimedia.image.d.ts| -|新增||模块名: ohos.multimedia.image
类名: DecodingOptions
方法名 or 属性名:fitDensity|@ohos.multimedia.image.d.ts| -|新增||模块名:ohos.multimedia.image
类名:image
方法名 or 属性名:createImageCreator|@ohos.multimedia.image.d.ts| -|新增||模块名: ohos.multimedia.image
类名: ImageCreator|@ohos.multimedia.image.d.ts| -|新增||模块名: ohos.multimedia.image
类名: ImageCreator
方法名 or 属性名:capacity|@ohos.multimedia.image.d.ts| -|新增||模块名: ohos.multimedia.image
类名: ImageCreator
方法名 or 属性名:format|@ohos.multimedia.image.d.ts| -|新增||模块名: ohos.multimedia.image
类名: ImageCreator
方法名 or 属性名:dequeueImage|@ohos.multimedia.image.d.ts| -|新增||模块名: ohos.multimedia.image
类名: ImageCreator
方法名 or 属性名:dequeueImage|@ohos.multimedia.image.d.ts| -|新增||模块名: ohos.multimedia.image
类名: ImageCreator
方法名 or 属性名:queueImage|@ohos.multimedia.image.d.ts| -|新增||模块名: ohos.multimedia.image
类名: ImageCreator
方法名 or 属性名:queueImage|@ohos.multimedia.image.d.ts| -|新增||模块名: ohos.multimedia.image
类名: ImageCreator
方法名 or 属性名:on_imageRelease|@ohos.multimedia.image.d.ts| -|新增||模块名: ohos.multimedia.image
类名: ImageCreator
方法名 or 属性名:release|@ohos.multimedia.image.d.ts| -|新增||模块名: ohos.multimedia.image
类名: ImageCreator
方法名 or 属性名:release|@ohos.multimedia.image.d.ts| -|新增||方法名 or 属性名:audioSourceType
函数:audioSourceType?: AudioSourceType;|@ohos.multimedia.media.d.ts| -|删除|模块名: ohos.multimedia.audio
类名: FocusType||@ohos.multimedia.audio.d.ts| -|删除|模块名: ohos.multimedia.audio
类名: FocusType
方法名 or 属性名:FOCUS_TYPE_RECORDING||@ohos.multimedia.audio.d.ts| -|删除|模块名:ohos.multimedia.audio
类名:AudioManager
方法名 or 属性名:getVolumeGroups||@ohos.multimedia.audio.d.ts| -|删除|模块名:ohos.multimedia.audio
类名:AudioManager
方法名 or 属性名:getVolumeGroups||@ohos.multimedia.audio.d.ts| -|删除|模块名:ohos.multimedia.audio
类名:AudioManager
方法名 or 属性名:getGroupManager||@ohos.multimedia.audio.d.ts| -|删除|模块名:ohos.multimedia.audio
类名:AudioManager
方法名 or 属性名:getGroupManager||@ohos.multimedia.audio.d.ts| -|删除|模块名:ohos.multimedia.audio
类名:AudioManager
方法名 or 属性名:requestIndependentInterrupt||@ohos.multimedia.audio.d.ts| -|删除|模块名:ohos.multimedia.audio
类名:AudioManager
方法名 or 属性名:requestIndependentInterrupt||@ohos.multimedia.audio.d.ts| -|删除|模块名:ohos.multimedia.audio
类名:AudioManager
方法名 or 属性名:abandonIndependentInterrupt||@ohos.multimedia.audio.d.ts| -|删除|模块名:ohos.multimedia.audio
类名:AudioManager
方法名 or 属性名:abandonIndependentInterrupt||@ohos.multimedia.audio.d.ts| -|删除|模块名:ohos.multimedia.audio
类名:AudioManager
方法名 or 属性名:on_independentInterrupt||@ohos.multimedia.audio.d.ts| -|删除|模块名:ohos.multimedia.audio
类名:AudioManager
方法名 or 属性名:off_independentInterrupt||@ohos.multimedia.audio.d.ts| -|删除|模块名: ohos.multimedia.audio
类名: AudioGroupManager||@ohos.multimedia.audio.d.ts| -|删除|模块名: ohos.multimedia.audio
类名: AudioGroupManager
方法名 or 属性名:setVolume||@ohos.multimedia.audio.d.ts| -|删除|模块名: ohos.multimedia.audio
类名: AudioGroupManager
方法名 or 属性名:setVolume||@ohos.multimedia.audio.d.ts| -|删除|模块名: ohos.multimedia.audio
类名: AudioGroupManager
方法名 or 属性名:getVolume||@ohos.multimedia.audio.d.ts| -|删除|模块名: ohos.multimedia.audio
类名: AudioGroupManager
方法名 or 属性名:getVolume||@ohos.multimedia.audio.d.ts| -|删除|模块名: ohos.multimedia.audio
类名: AudioGroupManager
方法名 or 属性名:getMinVolume||@ohos.multimedia.audio.d.ts| -|删除|模块名: ohos.multimedia.audio
类名: AudioGroupManager
方法名 or 属性名:getMinVolume||@ohos.multimedia.audio.d.ts| -|删除|模块名: ohos.multimedia.audio
类名: AudioGroupManager
方法名 or 属性名:getMaxVolume||@ohos.multimedia.audio.d.ts| -|删除|模块名: ohos.multimedia.audio
类名: AudioGroupManager
方法名 or 属性名:getMaxVolume||@ohos.multimedia.audio.d.ts| -|删除|模块名: ohos.multimedia.audio
类名: AudioGroupManager
方法名 or 属性名:mute||@ohos.multimedia.audio.d.ts| -|删除|模块名: ohos.multimedia.audio
类名: AudioGroupManager
方法名 or 属性名:mute||@ohos.multimedia.audio.d.ts| -|删除|模块名: ohos.multimedia.audio
类名: AudioGroupManager
方法名 or 属性名:isMute||@ohos.multimedia.audio.d.ts| -|删除|模块名: ohos.multimedia.audio
类名: AudioGroupManager
方法名 or 属性名:isMute||@ohos.multimedia.audio.d.ts| -|删除|模块名:ohos.multimedia.audio
类名:AudioRenderer
方法名 or 属性名:on_interrupt||@ohos.multimedia.audio.d.ts| -|删除|模块名:ohos.multimedia.camera
类名:CameraManager
方法名 or 属性名:getCameras||@ohos.multimedia.camera.d.ts| -|删除|模块名:ohos.multimedia.camera
类名:CameraManager
方法名 or 属性名:getCameras||@ohos.multimedia.camera.d.ts| -|删除|模块名: ohos.multimedia.camera
类名: Camera||@ohos.multimedia.camera.d.ts| -|删除|模块名: ohos.multimedia.camera
类名: Camera
方法名 or 属性名:cameraId||@ohos.multimedia.camera.d.ts| -|删除|模块名: ohos.multimedia.camera
类名: Camera
方法名 or 属性名:cameraPosition||@ohos.multimedia.camera.d.ts| -|删除|模块名: ohos.multimedia.camera
类名: Camera
方法名 or 属性名:cameraType||@ohos.multimedia.camera.d.ts| -|删除|模块名: ohos.multimedia.camera
类名: Camera
方法名 or 属性名:connectionType||@ohos.multimedia.camera.d.ts| -|删除|模块名:ohos.multimedia.camera
类名:CameraInput
方法名 or 属性名:getCameraId||@ohos.multimedia.camera.d.ts| -|删除|模块名:ohos.multimedia.camera
类名:CameraInput
方法名 or 属性名:getCameraId||@ohos.multimedia.camera.d.ts| -|删除|模块名:ohos.multimedia.camera
类名:CameraInput
方法名 or 属性名:hasFlash||@ohos.multimedia.camera.d.ts| -|删除|模块名:ohos.multimedia.camera
类名:CameraInput
方法名 or 属性名:hasFlash||@ohos.multimedia.camera.d.ts| -|删除|模块名:ohos.multimedia.camera
类名:CameraInput
方法名 or 属性名:isFlashModeSupported||@ohos.multimedia.camera.d.ts| -|删除|模块名:ohos.multimedia.camera
类名:CameraInput
方法名 or 属性名:isFlashModeSupported||@ohos.multimedia.camera.d.ts| -|删除|模块名:ohos.multimedia.camera
类名:CameraInput
方法名 or 属性名:getFlashMode||@ohos.multimedia.camera.d.ts| -|删除|模块名:ohos.multimedia.camera
类名:CameraInput
方法名 or 属性名:getFlashMode||@ohos.multimedia.camera.d.ts| -|删除|模块名:ohos.multimedia.camera
类名:CameraInput
方法名 or 属性名:setFlashMode||@ohos.multimedia.camera.d.ts| -|删除|模块名:ohos.multimedia.camera
类名:CameraInput
方法名 or 属性名:setFlashMode||@ohos.multimedia.camera.d.ts| -|删除|模块名:ohos.multimedia.camera
类名:CameraInput
方法名 or 属性名:isFocusModeSupported||@ohos.multimedia.camera.d.ts| -|删除|模块名:ohos.multimedia.camera
类名:CameraInput
方法名 or 属性名:isFocusModeSupported||@ohos.multimedia.camera.d.ts| -|删除|模块名:ohos.multimedia.camera
类名:CameraInput
方法名 or 属性名:getFocusMode||@ohos.multimedia.camera.d.ts| -|删除|模块名:ohos.multimedia.camera
类名:CameraInput
方法名 or 属性名:getFocusMode||@ohos.multimedia.camera.d.ts| -|删除|模块名:ohos.multimedia.camera
类名:CameraInput
方法名 or 属性名:setFocusMode||@ohos.multimedia.camera.d.ts| -|删除|模块名:ohos.multimedia.camera
类名:CameraInput
方法名 or 属性名:setFocusMode||@ohos.multimedia.camera.d.ts| -|删除|模块名:ohos.multimedia.camera
类名:CameraInput
方法名 or 属性名:getZoomRatioRange||@ohos.multimedia.camera.d.ts| -|删除|模块名:ohos.multimedia.camera
类名:CameraInput
方法名 or 属性名:getZoomRatioRange||@ohos.multimedia.camera.d.ts| -|删除|模块名:ohos.multimedia.camera
类名:CameraInput
方法名 or 属性名:getZoomRatio||@ohos.multimedia.camera.d.ts| -|删除|模块名:ohos.multimedia.camera
类名:CameraInput
方法名 or 属性名:getZoomRatio||@ohos.multimedia.camera.d.ts| -|删除|模块名:ohos.multimedia.camera
类名:CameraInput
方法名 or 属性名:setZoomRatio||@ohos.multimedia.camera.d.ts| -|删除|模块名:ohos.multimedia.camera
类名:CameraInput
方法名 or 属性名:setZoomRatio||@ohos.multimedia.camera.d.ts| -|删除|模块名:ohos.multimedia.camera
类名:CameraInput
方法名 or 属性名:on_focusStateChange||@ohos.multimedia.camera.d.ts| -|删除|模块名: ohos.multimedia.camera
类名: camera
方法名 or 属性名:createCaptureSession||@ohos.multimedia.camera.d.ts| -|删除|模块名: ohos.multimedia.camera
类名: camera
方法名 or 属性名:createCaptureSession||@ohos.multimedia.camera.d.ts| -|删除|模块名: ohos.multimedia.camera
类名: camera
方法名 or 属性名:createPreviewOutput||@ohos.multimedia.camera.d.ts| -|删除|模块名: ohos.multimedia.camera
类名: camera
方法名 or 属性名:createPreviewOutput||@ohos.multimedia.camera.d.ts| -|删除|模块名:ohos.multimedia.camera
类名:PreviewOutput
方法名 or 属性名:release||@ohos.multimedia.camera.d.ts| -|删除|模块名:ohos.multimedia.camera
类名:PreviewOutput
方法名 or 属性名:release||@ohos.multimedia.camera.d.ts| -|删除|模块名: ohos.multimedia.camera
类名: camera
方法名 or 属性名:createPhotoOutput||@ohos.multimedia.camera.d.ts| -|删除|模块名: ohos.multimedia.camera
类名: camera
方法名 or 属性名:createPhotoOutput||@ohos.multimedia.camera.d.ts| -|删除|模块名:ohos.multimedia.camera
类名:PhotoOutput
方法名 or 属性名:release||@ohos.multimedia.camera.d.ts| -|删除|模块名:ohos.multimedia.camera
类名:PhotoOutput
方法名 or 属性名:release||@ohos.multimedia.camera.d.ts| -|删除|模块名: ohos.multimedia.camera
类名: camera
方法名 or 属性名:createVideoOutput||@ohos.multimedia.camera.d.ts| -|删除|模块名: ohos.multimedia.camera
类名: camera
方法名 or 属性名:createVideoOutput||@ohos.multimedia.camera.d.ts| -|删除|模块名: ohos.multimedia.camera
类名: VideoOutput
方法名 or 属性名:release||@ohos.multimedia.camera.d.ts| -|删除|模块名: ohos.multimedia.camera
类名: VideoOutput
方法名 or 属性名:release||@ohos.multimedia.camera.d.ts| -|删除|模块名: ohos.multimedia.media
类名: VideoPlayer
方法名 or 属性名:selectBitrate||@ohos.multimedia.media.d.ts| -|删除|模块名: ohos.multimedia.media
类名: VideoPlayer
方法名 or 属性名:selectBitrate||@ohos.multimedia.media.d.ts| -|删除|模块名: ohos.multimedia.media
类名: VideoPlayer
方法名 or 属性名:on_availableBitratesCollect||@ohos.multimedia.media.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioErrors|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioErrors
方法名 or 属性名:ERROR_INVALID_PARAM|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioErrors
方法名 or 属性名:ERROR_NO_MEMORY|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioErrors
方法名 or 属性名:ERROR_ILLEGAL_STATE|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioErrors
方法名 or 属性名:ERROR_UNSUPPORTED|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioErrors
方法名 or 属性名:ERROR_TIMEOUT|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioErrors
方法名 or 属性名:ERROR_STREAM_LIMIT|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioErrors
方法名 or 属性名:ERROR_SYSTEM|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: CommunicationDeviceType|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: CommunicationDeviceType
方法名 or 属性名:SPEAKER|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: StreamUsage
方法名 or 属性名:STREAM_USAGE_VOICE_ASSISTANT|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: InterruptRequestType|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: InterruptRequestType
方法名 or 属性名:INTERRUPT_REQUEST_TYPE_DEFAULT|@ohos.multimedia.audio.d.ts| +|新增|NA|方法名 or 属性名:getStreamManager
函数:getStreamManager(): AudioStreamManager;|@ohos.multimedia.audio.d.ts| +|新增|NA|方法名 or 属性名:getRoutingManager
函数:getRoutingManager(): AudioRoutingManager;|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: InterruptRequestResultType|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: InterruptRequestResultType
方法名 or 属性名:INTERRUPT_REQUEST_GRANT|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: InterruptRequestResultType
方法名 or 属性名:INTERRUPT_REQUEST_REJECT|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: InterruptResult|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: InterruptResult
方法名 or 属性名:requestResult|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: InterruptResult
方法名 or 属性名:interruptNode|@ohos.multimedia.audio.d.ts| +|新增|NA|方法名 or 属性名:off_audioRendererChange
函数:off(type: "audioRendererChange"): void;|@ohos.multimedia.audio.d.ts| +|新增|NA|方法名 or 属性名:off_audioCapturerChange
函数:off(type: "audioCapturerChange"): void;|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioVolumeManager|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioVolumeManager
方法名 or 属性名:getVolumeGroupInfos|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioVolumeManager
方法名 or 属性名:getVolumeGroupInfos|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioVolumeManager
方法名 or 属性名:getVolumeGroupManager|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioVolumeManager
方法名 or 属性名:getVolumeGroupManager|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioVolumeManager
方法名 or 属性名:on_volumeChange|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioVolumeGroupManager|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioVolumeGroupManager
方法名 or 属性名:setVolume|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioVolumeGroupManager
方法名 or 属性名:setVolume|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioVolumeGroupManager
方法名 or 属性名:getVolume|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioVolumeGroupManager
方法名 or 属性名:getVolume|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioVolumeGroupManager
方法名 or 属性名:getMinVolume|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioVolumeGroupManager
方法名 or 属性名:getMinVolume|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioVolumeGroupManager
方法名 or 属性名:getMaxVolume|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioVolumeGroupManager
方法名 or 属性名:getMaxVolume|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioVolumeGroupManager
方法名 or 属性名:mute|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioVolumeGroupManager
方法名 or 属性名:mute|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioVolumeGroupManager
方法名 or 属性名:isMute|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioVolumeGroupManager
方法名 or 属性名:isMute|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioVolumeGroupManager
方法名 or 属性名:setRingerMode|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioVolumeGroupManager
方法名 or 属性名:setRingerMode|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioVolumeGroupManager
方法名 or 属性名:getRingerMode|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioVolumeGroupManager
方法名 or 属性名:getRingerMode|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioVolumeGroupManager
方法名 or 属性名:on_ringerModeChange|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioVolumeGroupManager
方法名 or 属性名:setMicrophoneMute|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioVolumeGroupManager
方法名 or 属性名:setMicrophoneMute|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioVolumeGroupManager
方法名 or 属性名:isMicrophoneMute|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioVolumeGroupManager
方法名 or 属性名:isMicrophoneMute|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioVolumeGroupManager
方法名 or 属性名:on_micStateChange|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: MicStateChangeEvent|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: MicStateChangeEvent
方法名 or 属性名:mute|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: SourceType
方法名 or 属性名:SOURCE_TYPE_VOICE_RECOGNITION|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioCapturer
方法名 or 属性名:getAudioStreamId|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: AudioCapturer
方法名 or 属性名:getAudioStreamId|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: ToneType|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: ToneType
方法名 or 属性名:TONE_TYPE_DIAL_0|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: ToneType
方法名 or 属性名:TONE_TYPE_DIAL_1|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: ToneType
方法名 or 属性名:TONE_TYPE_DIAL_2|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: ToneType
方法名 or 属性名:TONE_TYPE_DIAL_3|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: ToneType
方法名 or 属性名:TONE_TYPE_DIAL_4|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: ToneType
方法名 or 属性名:TONE_TYPE_DIAL_5|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: ToneType
方法名 or 属性名:TONE_TYPE_DIAL_6|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: ToneType
方法名 or 属性名:TONE_TYPE_DIAL_7|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: ToneType
方法名 or 属性名:TONE_TYPE_DIAL_8|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: ToneType
方法名 or 属性名:TONE_TYPE_DIAL_9|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: ToneType
方法名 or 属性名:TONE_TYPE_DIAL_S|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: ToneType
方法名 or 属性名:TONE_TYPE_DIAL_P|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: ToneType
方法名 or 属性名:TONE_TYPE_DIAL_A|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: ToneType
方法名 or 属性名:TONE_TYPE_DIAL_B|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: ToneType
方法名 or 属性名:TONE_TYPE_DIAL_C|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: ToneType
方法名 or 属性名:TONE_TYPE_DIAL_D|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: ToneType
方法名 or 属性名:TONE_TYPE_COMMON_SUPERVISORY_DIAL|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: ToneType
方法名 or 属性名:TONE_TYPE_COMMON_SUPERVISORY_BUSY|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: ToneType
方法名 or 属性名:TONE_TYPE_COMMON_SUPERVISORY_CONGESTION|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: ToneType
方法名 or 属性名:TONE_TYPE_COMMON_SUPERVISORY_RADIO_ACK|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: ToneType
方法名 or 属性名:TONE_TYPE_COMMON_SUPERVISORY_RADIO_NOT_AVAILABLE|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: ToneType
方法名 or 属性名:TONE_TYPE_COMMON_SUPERVISORY_CALL_WAITING|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: ToneType
方法名 or 属性名:TONE_TYPE_COMMON_SUPERVISORY_RINGTONE|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: ToneType
方法名 or 属性名:TONE_TYPE_COMMON_PROPRIETARY_BEEP|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: ToneType
方法名 or 属性名:TONE_TYPE_COMMON_PROPRIETARY_ACK|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: ToneType
方法名 or 属性名:TONE_TYPE_COMMON_PROPRIETARY_PROMPT|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: ToneType
方法名 or 属性名:TONE_TYPE_COMMON_PROPRIETARY_DOUBLE_BEEP|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: TonePlayer|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: TonePlayer
方法名 or 属性名:load|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: TonePlayer
方法名 or 属性名:load|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: TonePlayer
方法名 or 属性名:start|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: TonePlayer
方法名 or 属性名:start|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: TonePlayer
方法名 or 属性名:stop|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: TonePlayer
方法名 or 属性名:stop|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: TonePlayer
方法名 or 属性名:release|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.audio
类名: TonePlayer
方法名 or 属性名:release|@ohos.multimedia.audio.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: avSession|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: avSession
方法名 or 属性名: createAVSession|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: avSession
方法名 or 属性名: createAVSession|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: avSession
方法名 or 属性名: getAllSessionDescriptors|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: avSession
方法名 or 属性名: getAllSessionDescriptors|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: avSession
方法名 or 属性名: createController|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: avSession
方法名 or 属性名: createController|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: avSession
方法名 or 属性名: castAudio|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: avSession
方法名 or 属性名: castAudio|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: SessionToken|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: SessionToken
方法名 or 属性名: sessionId|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: SessionToken
方法名 or 属性名: pid|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: SessionToken
方法名 or 属性名: uid|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: avSession
方法名 or 属性名: on_sessionCreate|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: avSession
方法名 or 属性名: on_sessionDestroy|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: avSession
方法名 or 属性名: on_topSessionChange|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: avSession
方法名 or 属性名: off_sessionCreate|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: avSession
方法名 or 属性名: off_sessionDestroy|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: avSession
方法名 or 属性名: off_topSessionChange|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: avSession
方法名 or 属性名: on_sessionServiceDie|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: avSession
方法名 or 属性名: off_sessionServiceDie|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: avSession
方法名 or 属性名: sendSystemAVKeyEvent|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: avSession
方法名 or 属性名: sendSystemAVKeyEvent|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: avSession
方法名 or 属性名: sendSystemControlCommand|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: avSession
方法名 or 属性名: sendSystemControlCommand|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSession|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: sessionId|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: setAVMetadata|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: setAVMetadata|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: setAVPlaybackState|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: setAVPlaybackState|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: setLaunchAbility|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: setLaunchAbility|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: getController|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: getController|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: getOutputDevice|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: getOutputDevice|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: on_play|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: on_pause|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: on_stop|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: on_playNext|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: on_playPrevious|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: on_fastForward|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: on_rewind|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: off_play|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: off_pause|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: off_stop|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: off_playNext|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: off_playPrevious|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: off_fastForward|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: off_rewind|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: on_seek|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: off_seek|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: on_setSpeed|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: off_setSpeed|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: on_setLoopMode|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: off_setLoopMode|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: on_toggleFavorite|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: off_toggleFavorite|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: on_handleKeyEvent|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: off_handleKeyEvent|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: on_outputDeviceChange|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: off_outputDeviceChange|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: activate|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: activate|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: deactivate|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: deactivate|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: destroy|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSession
方法名 or 属性名: destroy|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVMetadata|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVMetadata
方法名 or 属性名: assetId|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVMetadata
方法名 or 属性名: title|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVMetadata
方法名 or 属性名: artist|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVMetadata
方法名 or 属性名: author|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVMetadata
方法名 or 属性名: album|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVMetadata
方法名 or 属性名: writer|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVMetadata
方法名 or 属性名: composer|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVMetadata
方法名 or 属性名: duration|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVMetadata
方法名 or 属性名: mediaImage|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVMetadata
方法名 or 属性名: publishDate|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVMetadata
方法名 or 属性名: subtitle|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVMetadata
方法名 or 属性名: description|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVMetadata
方法名 or 属性名: lyric|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVMetadata
方法名 or 属性名: previousAssetId|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVMetadata
方法名 or 属性名: nextAssetId|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVPlaybackState|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVPlaybackState
方法名 or 属性名: state|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVPlaybackState
方法名 or 属性名: speed|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVPlaybackState
方法名 or 属性名: position|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVPlaybackState
方法名 or 属性名: bufferedTime|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVPlaybackState
方法名 or 属性名: loopMode|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVPlaybackState
方法名 or 属性名: isFavorite|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: PlaybackPosition|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: PlaybackPosition
方法名 or 属性名: elapsedTime|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: PlaybackPosition
方法名 or 属性名: updateTime|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: OutputDeviceInfo|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: OutputDeviceInfo
方法名 or 属性名: isRemote|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: OutputDeviceInfo
方法名 or 属性名: audioDeviceId|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: OutputDeviceInfo
方法名 or 属性名: deviceName|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: LoopMode|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: LoopMode
方法名 or 属性名: LOOP_MODE_SEQUENCE|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: LoopMode
方法名 or 属性名: LOOP_MODE_SINGLE|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: LoopMode
方法名 or 属性名: LOOP_MODE_LIST|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: LoopMode
方法名 or 属性名: LOOP_MODE_SHUFFLE|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: PlaybackState|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: PlaybackState
方法名 or 属性名: PLAYBACK_STATE_INITIAL|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: PlaybackState
方法名 or 属性名: PLAYBACK_STATE_PREPARE|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: PlaybackState
方法名 or 属性名: PLAYBACK_STATE_PLAY|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: PlaybackState
方法名 or 属性名: PLAYBACK_STATE_PAUSE|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: PlaybackState
方法名 or 属性名: PLAYBACK_STATE_FAST_FORWARD|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: PlaybackState
方法名 or 属性名: PLAYBACK_STATE_REWIND|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: PlaybackState
方法名 or 属性名: PLAYBACK_STATE_STOP|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionDescriptor|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionDescriptor
方法名 or 属性名: sessionId|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionDescriptor
方法名 or 属性名: type|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionDescriptor
方法名 or 属性名: sessionTag|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionDescriptor
方法名 or 属性名: elementName|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionDescriptor
方法名 or 属性名: isActive|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionDescriptor
方法名 or 属性名: isTopSession|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionDescriptor
方法名 or 属性名: outputDevice|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionController|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionController
方法名 or 属性名: sessionId|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionController
方法名 or 属性名: getAVPlaybackState|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionController
方法名 or 属性名: getAVPlaybackState|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionController
方法名 or 属性名: getAVMetadata|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionController
方法名 or 属性名: getAVMetadata|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionController
方法名 or 属性名: getOutputDevice|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionController
方法名 or 属性名: getOutputDevice|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionController
方法名 or 属性名: sendAVKeyEvent|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionController
方法名 or 属性名: sendAVKeyEvent|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionController
方法名 or 属性名: getLaunchAbility|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionController
方法名 or 属性名: getLaunchAbility|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionController
方法名 or 属性名: getRealPlaybackPositionSync|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionController
方法名 or 属性名: isActive|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionController
方法名 or 属性名: isActive|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionController
方法名 or 属性名: destroy|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionController
方法名 or 属性名: destroy|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionController
方法名 or 属性名: getValidCommands|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionController
方法名 or 属性名: getValidCommands|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionController
方法名 or 属性名: sendControlCommand|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionController
方法名 or 属性名: sendControlCommand|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionController
方法名 or 属性名: on_metadataChange|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionController
方法名 or 属性名: off_metadataChange|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionController
方法名 or 属性名: on_playbackStateChange|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionController
方法名 or 属性名: off_playbackStateChange|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionController
方法名 or 属性名: on_sessionDestroy|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionController
方法名 or 属性名: off_sessionDestroy|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionController
方法名 or 属性名: on_activeStateChange|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionController
方法名 or 属性名: off_activeStateChange|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionController
方法名 or 属性名: on_validCommandChange|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionController
方法名 or 属性名: off_validCommandChange|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionController
方法名 or 属性名: on_outputDeviceChange|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionController
方法名 or 属性名: off_outputDeviceChange|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVControlCommand|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVControlCommand
方法名 or 属性名: command|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVControlCommand
方法名 or 属性名: parameter|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionErrorCode|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionErrorCode
方法名 or 属性名: ERR_CODE_SERVICE_EXCEPTION|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionErrorCode
方法名 or 属性名: ERR_CODE_SESSION_NOT_EXIST|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionErrorCode
方法名 or 属性名: ERR_CODE_CONTROLLER_NOT_EXIST|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionErrorCode
方法名 or 属性名: ERR_CODE_REMOTE_CONNECTION_ERR|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionErrorCode
方法名 or 属性名: ERR_CODE_COMMAND_INVALID|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionErrorCode
方法名 or 属性名: ERR_CODE_SESSION_INACTIVE|@ohos.multimedia.avsession.d.ts| +|新增|NA|模块名: ohos.multimedia.avsession
类名: AVSessionErrorCode
方法名 or 属性名: ERR_CODE_MESSAGE_OVERLOAD|@ohos.multimedia.avsession.d.ts| +|新增|NA|方法名 or 属性名:CAMERA_STATUS_DISAPPEAR
函数:CAMERA_STATUS_DISAPPEAR = 1|@ohos.multimedia.camera.d.ts| +|新增|NA|方法名 or 属性名:CAMERA_STATUS_AVAILABLE
函数:CAMERA_STATUS_AVAILABLE = 2|@ohos.multimedia.camera.d.ts| +|新增|NA|方法名 or 属性名:CAMERA_STATUS_UNAVAILABLE
函数:CAMERA_STATUS_UNAVAILABLE = 3|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: Profile|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: Profile
方法名 or 属性名:format|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: Profile
方法名 or 属性名:size|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: FrameRateRange|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: FrameRateRange
方法名 or 属性名:min|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: FrameRateRange
方法名 or 属性名:max|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: VideoProfile|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: VideoProfile
方法名 or 属性名:frameRateRange|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CameraOutputCapability|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CameraOutputCapability
方法名 or 属性名:previewProfiles|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CameraOutputCapability
方法名 or 属性名:photoProfiles|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CameraOutputCapability
方法名 or 属性名:videoProfiles|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CameraOutputCapability
方法名 or 属性名:supportedMetadataObjectTypes|@ohos.multimedia.camera.d.ts| +|新增|NA|方法名 or 属性名:createCameraInput
函数:createCameraInput(camera: CameraDevice, callback: AsyncCallback): void;|@ohos.multimedia.camera.d.ts| +|新增|NA|方法名 or 属性名:createCameraInput
函数:createCameraInput(camera: CameraDevice): Promise;|@ohos.multimedia.camera.d.ts| +|新增|NA|方法名 or 属性名:camera
函数:camera: CameraDevice;|@ohos.multimedia.camera.d.ts| +|新增|NA|方法名 or 属性名:CAMERA_POSITION_BACK
函数:CAMERA_POSITION_BACK = 1|@ohos.multimedia.camera.d.ts| +|新增|NA|方法名 or 属性名:CAMERA_POSITION_FRONT
函数:CAMERA_POSITION_FRONT = 2|@ohos.multimedia.camera.d.ts| +|新增|NA|方法名 or 属性名:CAMERA_TYPE_WIDE_ANGLE
函数:CAMERA_TYPE_WIDE_ANGLE = 1|@ohos.multimedia.camera.d.ts| +|新增|NA|方法名 or 属性名:CAMERA_TYPE_ULTRA_WIDE
函数:CAMERA_TYPE_ULTRA_WIDE = 2|@ohos.multimedia.camera.d.ts| +|新增|NA|方法名 or 属性名:CAMERA_TYPE_TELEPHOTO
函数:CAMERA_TYPE_TELEPHOTO = 3|@ohos.multimedia.camera.d.ts| +|新增|NA|方法名 or 属性名:CAMERA_TYPE_TRUE_DEPTH
函数:CAMERA_TYPE_TRUE_DEPTH = 4|@ohos.multimedia.camera.d.ts| +|新增|NA|方法名 or 属性名:CAMERA_CONNECTION_USB_PLUGIN
函数:CAMERA_CONNECTION_USB_PLUGIN = 1|@ohos.multimedia.camera.d.ts| +|新增|NA|方法名 or 属性名:CAMERA_CONNECTION_REMOTE
函数:CAMERA_CONNECTION_REMOTE = 2|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CameraDevice|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CameraDevice
方法名 or 属性名:cameraId|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CameraDevice
方法名 or 属性名:cameraPosition|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CameraDevice
方法名 or 属性名:cameraType|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CameraDevice
方法名 or 属性名:connectionType|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: Point|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: Point
方法名 or 属性名:x|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: Point
方法名 or 属性名:y|@ohos.multimedia.camera.d.ts| +|新增|NA|方法名 or 属性名:on_error
函数:on(type: 'error', camera: CameraDevice, callback: ErrorCallback): void;|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CameraInputErrorCode
方法名 or 属性名:ERROR_NO_PERMISSION|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CameraInputErrorCode
方法名 or 属性名:ERROR_DEVICE_PREEMPTED|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CameraInputErrorCode
方法名 or 属性名:ERROR_DEVICE_DISCONNECTED|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CameraInputErrorCode
方法名 or 属性名:ERROR_DEVICE_IN_USE|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CameraInputErrorCode
方法名 or 属性名:ERROR_DRIVER_ERROR|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CameraFormat|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CameraFormat
方法名 or 属性名:CAMERA_FORMAT_RGBA_8888|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CameraFormat
方法名 or 属性名:CAMERA_FORMAT_YUV_420_SP|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CameraFormat
方法名 or 属性名:CAMERA_FORMAT_JPEG|@ohos.multimedia.camera.d.ts| +|新增|NA|方法名 or 属性名:FLASH_MODE_OPEN
函数:FLASH_MODE_OPEN = 1|@ohos.multimedia.camera.d.ts| +|新增|NA|方法名 or 属性名:FLASH_MODE_AUTO
函数:FLASH_MODE_AUTO = 2|@ohos.multimedia.camera.d.ts| +|新增|NA|方法名 or 属性名:FLASH_MODE_ALWAYS_OPEN
函数:FLASH_MODE_ALWAYS_OPEN = 3|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: ExposureMode|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: ExposureMode
方法名 or 属性名:EXPOSURE_MODE_LOCKED|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: ExposureMode
方法名 or 属性名:EXPOSURE_MODE_AUTO|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: ExposureMode
方法名 or 属性名:EXPOSURE_MODE_CONTINUOUS_AUTO|@ohos.multimedia.camera.d.ts| +|新增|NA|方法名 or 属性名:FOCUS_MODE_CONTINUOUS_AUTO
函数:FOCUS_MODE_CONTINUOUS_AUTO = 1|@ohos.multimedia.camera.d.ts| +|新增|NA|方法名 or 属性名:FOCUS_MODE_AUTO
函数:FOCUS_MODE_AUTO = 2|@ohos.multimedia.camera.d.ts| +|新增|NA|方法名 or 属性名:FOCUS_MODE_LOCKED
函数:FOCUS_MODE_LOCKED = 3|@ohos.multimedia.camera.d.ts| +|新增|NA|方法名 or 属性名:FOCUS_STATE_FOCUSED
函数:FOCUS_STATE_FOCUSED = 1|@ohos.multimedia.camera.d.ts| +|新增|NA|方法名 or 属性名:FOCUS_STATE_UNFOCUSED
函数:FOCUS_STATE_UNFOCUSED = 2|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: VideoStabilizationMode|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: VideoStabilizationMode
方法名 or 属性名:OFF|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: VideoStabilizationMode
方法名 or 属性名:LOW|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: VideoStabilizationMode
方法名 or 属性名:MIDDLE|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: VideoStabilizationMode
方法名 or 属性名:HIGH|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: VideoStabilizationMode
方法名 or 属性名:AUTO|@ohos.multimedia.camera.d.ts| +|新增|NA|方法名 or 属性名:addOutput
函数:addOutput(cameraOutput: CameraOutput, callback: AsyncCallback): void;|@ohos.multimedia.camera.d.ts| +|新增|NA|方法名 or 属性名:addOutput
函数:addOutput(cameraOutput: CameraOutput): Promise;|@ohos.multimedia.camera.d.ts| +|新增|NA|方法名 or 属性名:removeOutput
函数:removeOutput(cameraOutput: CameraOutput, callback: AsyncCallback): void;|@ohos.multimedia.camera.d.ts| +|新增|NA|方法名 or 属性名:removeOutput
函数:removeOutput(cameraOutput: CameraOutput): Promise;|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CaptureSessionErrorCode
方法名 or 属性名:ERROR_INSUFFICIENT_RESOURCES|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CaptureSessionErrorCode
方法名 or 属性名:ERROR_TIMEOUT|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CameraOutput|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CameraOutput
方法名 or 属性名:release|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: CameraOutput
方法名 or 属性名:release|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: Location|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: Location
方法名 or 属性名:latitude|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: Location
方法名 or 属性名:longitude|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: Location
方法名 or 属性名:altitude|@ohos.multimedia.camera.d.ts| +|新增|NA|方法名 or 属性名:QUALITY_LEVEL_MEDIUM
函数:QUALITY_LEVEL_MEDIUM = 1|@ohos.multimedia.camera.d.ts| +|新增|NA|方法名 or 属性名:QUALITY_LEVEL_LOW
函数:QUALITY_LEVEL_LOW = 2|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: PhotoCaptureSetting
方法名 or 属性名:location|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: PhotoCaptureSetting
方法名 or 属性名:mirror|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: PhotoOutputErrorCode
方法名 or 属性名:ERROR_DRIVER_ERROR|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: PhotoOutputErrorCode
方法名 or 属性名:ERROR_INSUFFICIENT_RESOURCES|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: PhotoOutputErrorCode
方法名 or 属性名:ERROR_TIMEOUT|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: VideoOutputErrorCode
方法名 or 属性名:ERROR_DRIVER_ERROR|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: MetadataObjectType|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: MetadataObjectType
方法名 or 属性名:FACE_DETECTION|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: Rect|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: Rect
方法名 or 属性名:topLeftX|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: Rect
方法名 or 属性名:topLeftY|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: Rect
方法名 or 属性名:width|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: Rect
方法名 or 属性名:height|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: MetadataObject|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: MetadataObject
方法名 or 属性名:getType|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: MetadataObject
方法名 or 属性名:getType|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: MetadataObject
方法名 or 属性名:getTimestamp|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: MetadataObject
方法名 or 属性名:getTimestamp|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: MetadataObject
方法名 or 属性名:getBoundingBox|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: MetadataObject
方法名 or 属性名:getBoundingBox|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: MetadataFaceObject|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: MetadataOutput|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: MetadataOutput
方法名 or 属性名:start|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: MetadataOutput
方法名 or 属性名:start|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: MetadataOutput
方法名 or 属性名:stop|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: MetadataOutput
方法名 or 属性名:stop|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: MetadataOutput
方法名 or 属性名:on_metadataObjectsAvailable|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: MetadataOutput
方法名 or 属性名:on_error|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: MetadataOutputErrorCode|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: MetadataOutputErrorCode
方法名 or 属性名:ERROR_UNKNOWN|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: MetadataOutputErrorCode
方法名 or 属性名:ERROR_INSUFFICIENT_RESOURCES|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: MetadataOutputError|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.camera
类名: MetadataOutputError
方法名 or 属性名:code|@ohos.multimedia.camera.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: PixelMapFormat
方法名 or 属性名:RGB_888|@ohos.multimedia.image.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: PixelMapFormat
方法名 or 属性名:ALPHA_8|@ohos.multimedia.image.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: PixelMapFormat
方法名 or 属性名:RGBA_F16|@ohos.multimedia.image.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: PixelMapFormat
方法名 or 属性名:NV21|@ohos.multimedia.image.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: PixelMapFormat
方法名 or 属性名:NV12|@ohos.multimedia.image.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: PropertyKey
方法名 or 属性名:DATE_TIME_ORIGINAL|@ohos.multimedia.image.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: PropertyKey
方法名 or 属性名:EXPOSURE_TIME|@ohos.multimedia.image.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: PropertyKey
方法名 or 属性名:SCENE_TYPE|@ohos.multimedia.image.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: PropertyKey
方法名 or 属性名:ISO_SPEED_RATINGS|@ohos.multimedia.image.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: PropertyKey
方法名 or 属性名:F_NUMBER|@ohos.multimedia.image.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: ImageInfo
方法名 or 属性名:density|@ohos.multimedia.image.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: PackingOption
方法名 or 属性名:bufferSize|@ohos.multimedia.image.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: DecodingOptions
方法名 or 属性名:fitDensity|@ohos.multimedia.image.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: ImageCreator|@ohos.multimedia.image.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: ImageCreator
方法名 or 属性名:capacity|@ohos.multimedia.image.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: ImageCreator
方法名 or 属性名:format|@ohos.multimedia.image.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: ImageCreator
方法名 or 属性名:dequeueImage|@ohos.multimedia.image.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: ImageCreator
方法名 or 属性名:dequeueImage|@ohos.multimedia.image.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: ImageCreator
方法名 or 属性名:queueImage|@ohos.multimedia.image.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: ImageCreator
方法名 or 属性名:queueImage|@ohos.multimedia.image.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: ImageCreator
方法名 or 属性名:on_imageRelease|@ohos.multimedia.image.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: ImageCreator
方法名 or 属性名:release|@ohos.multimedia.image.d.ts| +|新增|NA|模块名: ohos.multimedia.image
类名: ImageCreator
方法名 or 属性名:release|@ohos.multimedia.image.d.ts| +|新增|NA|方法名 or 属性名:audioSourceType
函数:audioSourceType?: AudioSourceType;|@ohos.multimedia.media.d.ts| +|删除|模块名: ohos.multimedia.audio
类名: FocusType|NA|@ohos.multimedia.audio.d.ts| +|删除|模块名: ohos.multimedia.audio
类名: FocusType
方法名 or 属性名:FOCUS_TYPE_RECORDING|NA|@ohos.multimedia.audio.d.ts| +|删除|模块名:ohos.multimedia.audio
类名:AudioManager
方法名 or 属性名:getVolumeGroups|NA|@ohos.multimedia.audio.d.ts| +|删除|模块名:ohos.multimedia.audio
类名:AudioManager
方法名 or 属性名:getVolumeGroups|NA|@ohos.multimedia.audio.d.ts| +|删除|模块名:ohos.multimedia.audio
类名:AudioManager
方法名 or 属性名:getGroupManager|NA|@ohos.multimedia.audio.d.ts| +|删除|模块名:ohos.multimedia.audio
类名:AudioManager
方法名 or 属性名:getGroupManager|NA|@ohos.multimedia.audio.d.ts| +|删除|模块名:ohos.multimedia.audio
类名:AudioManager
方法名 or 属性名:requestIndependentInterrupt|NA|@ohos.multimedia.audio.d.ts| +|删除|模块名:ohos.multimedia.audio
类名:AudioManager
方法名 or 属性名:requestIndependentInterrupt|NA|@ohos.multimedia.audio.d.ts| +|删除|模块名:ohos.multimedia.audio
类名:AudioManager
方法名 or 属性名:abandonIndependentInterrupt|NA|@ohos.multimedia.audio.d.ts| +|删除|模块名:ohos.multimedia.audio
类名:AudioManager
方法名 or 属性名:abandonIndependentInterrupt|NA|@ohos.multimedia.audio.d.ts| +|删除|模块名:ohos.multimedia.audio
类名:AudioManager
方法名 or 属性名:on_independentInterrupt|NA|@ohos.multimedia.audio.d.ts| +|删除|模块名:ohos.multimedia.audio
类名:AudioManager
方法名 or 属性名:off_independentInterrupt|NA|@ohos.multimedia.audio.d.ts| +|删除|模块名: ohos.multimedia.audio
类名: AudioGroupManager|NA|@ohos.multimedia.audio.d.ts| +|删除|模块名: ohos.multimedia.audio
类名: AudioGroupManager
方法名 or 属性名:setVolume|NA|@ohos.multimedia.audio.d.ts| +|删除|模块名: ohos.multimedia.audio
类名: AudioGroupManager
方法名 or 属性名:setVolume|NA|@ohos.multimedia.audio.d.ts| +|删除|模块名: ohos.multimedia.audio
类名: AudioGroupManager
方法名 or 属性名:getVolume|NA|@ohos.multimedia.audio.d.ts| +|删除|模块名: ohos.multimedia.audio
类名: AudioGroupManager
方法名 or 属性名:getVolume|NA|@ohos.multimedia.audio.d.ts| +|删除|模块名: ohos.multimedia.audio
类名: AudioGroupManager
方法名 or 属性名:getMinVolume|NA|@ohos.multimedia.audio.d.ts| +|删除|模块名: ohos.multimedia.audio
类名: AudioGroupManager
方法名 or 属性名:getMinVolume|NA|@ohos.multimedia.audio.d.ts| +|删除|模块名: ohos.multimedia.audio
类名: AudioGroupManager
方法名 or 属性名:getMaxVolume|NA|@ohos.multimedia.audio.d.ts| +|删除|模块名: ohos.multimedia.audio
类名: AudioGroupManager
方法名 or 属性名:getMaxVolume|NA|@ohos.multimedia.audio.d.ts| +|删除|模块名: ohos.multimedia.audio
类名: AudioGroupManager
方法名 or 属性名:mute|NA|@ohos.multimedia.audio.d.ts| +|删除|模块名: ohos.multimedia.audio
类名: AudioGroupManager
方法名 or 属性名:mute|NA|@ohos.multimedia.audio.d.ts| +|删除|模块名: ohos.multimedia.audio
类名: AudioGroupManager
方法名 or 属性名:isMute|NA|@ohos.multimedia.audio.d.ts| +|删除|模块名: ohos.multimedia.audio
类名: AudioGroupManager
方法名 or 属性名:isMute|NA|@ohos.multimedia.audio.d.ts| +|删除|模块名:ohos.multimedia.audio
类名:AudioRenderer
方法名 or 属性名:on_interrupt|NA|@ohos.multimedia.audio.d.ts| +|删除|模块名:ohos.multimedia.camera
类名:CameraManager
方法名 or 属性名:getCameras|NA|@ohos.multimedia.camera.d.ts| +|删除|模块名:ohos.multimedia.camera
类名:CameraManager
方法名 or 属性名:getCameras|NA|@ohos.multimedia.camera.d.ts| +|删除|模块名: ohos.multimedia.camera
类名: Camera|NA|@ohos.multimedia.camera.d.ts| +|删除|模块名: ohos.multimedia.camera
类名: Camera
方法名 or 属性名:cameraId|NA|@ohos.multimedia.camera.d.ts| +|删除|模块名: ohos.multimedia.camera
类名: Camera
方法名 or 属性名:cameraPosition|NA|@ohos.multimedia.camera.d.ts| +|删除|模块名: ohos.multimedia.camera
类名: Camera
方法名 or 属性名:cameraType|NA|@ohos.multimedia.camera.d.ts| +|删除|模块名: ohos.multimedia.camera
类名: Camera
方法名 or 属性名:connectionType|NA|@ohos.multimedia.camera.d.ts| +|删除|模块名:ohos.multimedia.camera
类名:CameraInput
方法名 or 属性名:getCameraId|NA|@ohos.multimedia.camera.d.ts| +|删除|模块名:ohos.multimedia.camera
类名:CameraInput
方法名 or 属性名:getCameraId|NA|@ohos.multimedia.camera.d.ts| +|删除|模块名:ohos.multimedia.camera
类名:CameraInput
方法名 or 属性名:hasFlash|NA|@ohos.multimedia.camera.d.ts| +|删除|模块名:ohos.multimedia.camera
类名:CameraInput
方法名 or 属性名:hasFlash|NA|@ohos.multimedia.camera.d.ts| +|删除|模块名:ohos.multimedia.camera
类名:CameraInput
方法名 or 属性名:isFlashModeSupported|NA|@ohos.multimedia.camera.d.ts| +|删除|模块名:ohos.multimedia.camera
类名:CameraInput
方法名 or 属性名:isFlashModeSupported|NA|@ohos.multimedia.camera.d.ts| +|删除|模块名:ohos.multimedia.camera
类名:CameraInput
方法名 or 属性名:getFlashMode|NA|@ohos.multimedia.camera.d.ts| +|删除|模块名:ohos.multimedia.camera
类名:CameraInput
方法名 or 属性名:getFlashMode|NA|@ohos.multimedia.camera.d.ts| +|删除|模块名:ohos.multimedia.camera
类名:CameraInput
方法名 or 属性名:setFlashMode|NA|@ohos.multimedia.camera.d.ts| +|删除|模块名:ohos.multimedia.camera
类名:CameraInput
方法名 or 属性名:setFlashMode|NA|@ohos.multimedia.camera.d.ts| +|删除|模块名:ohos.multimedia.camera
类名:CameraInput
方法名 or 属性名:isFocusModeSupported|NA|@ohos.multimedia.camera.d.ts| +|删除|模块名:ohos.multimedia.camera
类名:CameraInput
方法名 or 属性名:isFocusModeSupported|NA|@ohos.multimedia.camera.d.ts| +|删除|模块名:ohos.multimedia.camera
类名:CameraInput
方法名 or 属性名:getFocusMode|NA|@ohos.multimedia.camera.d.ts| +|删除|模块名:ohos.multimedia.camera
类名:CameraInput
方法名 or 属性名:getFocusMode|NA|@ohos.multimedia.camera.d.ts| +|删除|模块名:ohos.multimedia.camera
类名:CameraInput
方法名 or 属性名:setFocusMode|NA|@ohos.multimedia.camera.d.ts| +|删除|模块名:ohos.multimedia.camera
类名:CameraInput
方法名 or 属性名:setFocusMode|NA|@ohos.multimedia.camera.d.ts| +|删除|模块名:ohos.multimedia.camera
类名:CameraInput
方法名 or 属性名:getZoomRatioRange|NA|@ohos.multimedia.camera.d.ts| +|删除|模块名:ohos.multimedia.camera
类名:CameraInput
方法名 or 属性名:getZoomRatioRange|NA|@ohos.multimedia.camera.d.ts| +|删除|模块名:ohos.multimedia.camera
类名:CameraInput
方法名 or 属性名:getZoomRatio|NA|@ohos.multimedia.camera.d.ts| +|删除|模块名:ohos.multimedia.camera
类名:CameraInput
方法名 or 属性名:getZoomRatio|NA|@ohos.multimedia.camera.d.ts| +|删除|模块名:ohos.multimedia.camera
类名:CameraInput
方法名 or 属性名:setZoomRatio|NA|@ohos.multimedia.camera.d.ts| +|删除|模块名:ohos.multimedia.camera
类名:CameraInput
方法名 or 属性名:setZoomRatio|NA|@ohos.multimedia.camera.d.ts| +|删除|模块名:ohos.multimedia.camera
类名:CameraInput
方法名 or 属性名:on_focusStateChange|NA|@ohos.multimedia.camera.d.ts| +|删除|模块名: ohos.multimedia.camera
类名: camera
方法名 or 属性名:createCaptureSession|NA|@ohos.multimedia.camera.d.ts| +|删除|模块名: ohos.multimedia.camera
类名: camera
方法名 or 属性名:createCaptureSession|NA|@ohos.multimedia.camera.d.ts| +|删除|模块名: ohos.multimedia.camera
类名: camera
方法名 or 属性名:createPreviewOutput|NA|@ohos.multimedia.camera.d.ts| +|删除|模块名: ohos.multimedia.camera
类名: camera
方法名 or 属性名:createPreviewOutput|NA|@ohos.multimedia.camera.d.ts| +|删除|模块名:ohos.multimedia.camera
类名:PreviewOutput
方法名 or 属性名:release|NA|@ohos.multimedia.camera.d.ts| +|删除|模块名:ohos.multimedia.camera
类名:PreviewOutput
方法名 or 属性名:release|NA|@ohos.multimedia.camera.d.ts| +|删除|模块名: ohos.multimedia.camera
类名: camera
方法名 or 属性名:createPhotoOutput|NA|@ohos.multimedia.camera.d.ts| +|删除|模块名: ohos.multimedia.camera
类名: camera
方法名 or 属性名:createPhotoOutput|NA|@ohos.multimedia.camera.d.ts| +|删除|模块名:ohos.multimedia.camera
类名:PhotoOutput
方法名 or 属性名:release|NA|@ohos.multimedia.camera.d.ts| +|删除|模块名:ohos.multimedia.camera
类名:PhotoOutput
方法名 or 属性名:release|NA|@ohos.multimedia.camera.d.ts| +|删除|模块名: ohos.multimedia.camera
类名: camera
方法名 or 属性名:createVideoOutput|NA|@ohos.multimedia.camera.d.ts| +|删除|模块名: ohos.multimedia.camera
类名: camera
方法名 or 属性名:createVideoOutput|NA|@ohos.multimedia.camera.d.ts| +|删除|模块名: ohos.multimedia.camera
类名: VideoOutput
方法名 or 属性名:release|NA|@ohos.multimedia.camera.d.ts| +|删除|模块名: ohos.multimedia.camera
类名: VideoOutput
方法名 or 属性名:release|NA|@ohos.multimedia.camera.d.ts| +|删除|模块名: ohos.multimedia.media
类名: VideoPlayer
方法名 or 属性名:selectBitrate|NA|@ohos.multimedia.media.d.ts| +|删除|模块名: ohos.multimedia.media
类名: VideoPlayer
方法名 or 属性名:selectBitrate|NA|@ohos.multimedia.media.d.ts| +|删除|模块名: ohos.multimedia.media
类名: VideoPlayer
方法名 or 属性名:on_availableBitratesCollect|NA|@ohos.multimedia.media.d.ts| |访问级别有变化|方法名 or 属性名:createVideoRecorder
访问级别:公开API|方法名 or 属性名:createVideoRecorder
访问级别:系统API|@ohos.multimedia.media.d.ts| |访问级别有变化|方法名 or 属性名:createVideoRecorder
访问级别:公开API|方法名 or 属性名:createVideoRecorder
访问级别:系统API|@ohos.multimedia.media.d.ts| |访问级别有变化|类名:VideoRecorder
访问级别:公开API|类名:VideoRecorder
访问级别:系统API|@ohos.multimedia.media.d.ts| @@ -817,29 +714,29 @@ |废弃版本有变化|方法名 or 属性名:TYPE_WATCH
废弃版本:9|方法名 or 属性名:TYPE_WATCH
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| |废弃版本有变化|方法名 or 属性名:TYPE_CAR
废弃版本:9|方法名 or 属性名:TYPE_CAR
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| |废弃版本有变化|方法名 or 属性名:TYPE_TV
废弃版本:9|方法名 or 属性名:TYPE_TV
废弃版本:N/A|@ohos.multimedia.mediaLibrary.d.ts| -|新增(错误码)||方法名 or 属性名:on_deviceChange
错误码内容:401,6800101|@ohos.multimedia.audio.d.ts| -|新增(错误码)||方法名 or 属性名:off_deviceChange
错误码内容:401,6800101|@ohos.multimedia.audio.d.ts| -|新增(错误码)||方法名 or 属性名:on_audioRendererChange
错误码内容:401,6800101|@ohos.multimedia.audio.d.ts| -|新增(错误码)||方法名 or 属性名:on_audioCapturerChange
错误码内容:401,6800101|@ohos.multimedia.audio.d.ts| -|新增(错误码)||方法名 or 属性名:createVideoRecorder
错误码内容:5400101|@ohos.multimedia.media.d.ts| -|新增(错误码)||方法名 or 属性名:createVideoRecorder
错误码内容:5400101|@ohos.multimedia.media.d.ts| -|新增(错误码)||方法名 or 属性名:prepare
错误码内容:201,401,5400102,5400105|@ohos.multimedia.media.d.ts| -|新增(错误码)||方法名 or 属性名:prepare
错误码内容:201,401,5400102,5400105|@ohos.multimedia.media.d.ts| -|新增(错误码)||方法名 or 属性名:getInputSurface
错误码内容:5400102,5400103,5400105|@ohos.multimedia.media.d.ts| -|新增(错误码)||方法名 or 属性名:getInputSurface
错误码内容:5400102,5400103,5400105|@ohos.multimedia.media.d.ts| -|新增(错误码)||方法名 or 属性名:start
错误码内容:5400102,5400103,5400105|@ohos.multimedia.media.d.ts| -|新增(错误码)||方法名 or 属性名:start
错误码内容:5400102,5400103,5400105|@ohos.multimedia.media.d.ts| -|新增(错误码)||方法名 or 属性名:pause
错误码内容:5400102,5400103,5400105|@ohos.multimedia.media.d.ts| -|新增(错误码)||方法名 or 属性名:pause
错误码内容:5400102,5400103,5400105|@ohos.multimedia.media.d.ts| -|新增(错误码)||方法名 or 属性名:resume
错误码内容:5400102,5400103,5400105|@ohos.multimedia.media.d.ts| -|新增(错误码)||方法名 or 属性名:resume
错误码内容:5400102,5400103,5400105|@ohos.multimedia.media.d.ts| -|新增(错误码)||方法名 or 属性名:stop
错误码内容:5400102,5400103,5400105|@ohos.multimedia.media.d.ts| -|新增(错误码)||方法名 or 属性名:stop
错误码内容:5400102,5400103,5400105|@ohos.multimedia.media.d.ts| -|新增(错误码)||方法名 or 属性名:release
错误码内容:5400105|@ohos.multimedia.media.d.ts| -|新增(错误码)||方法名 or 属性名:release
错误码内容:5400105|@ohos.multimedia.media.d.ts| -|新增(错误码)||方法名 or 属性名:reset
错误码内容:5400103,5400105|@ohos.multimedia.media.d.ts| -|新增(错误码)||方法名 or 属性名:reset
错误码内容:5400103,5400105|@ohos.multimedia.media.d.ts| -|新增(错误码)||方法名 or 属性名:on_error
错误码内容:5400103,5400105|@ohos.multimedia.media.d.ts| +|新增(错误码)|NA|方法名 or 属性名:on_deviceChange
错误码内容:401,6800101|@ohos.multimedia.audio.d.ts| +|新增(错误码)|NA|方法名 or 属性名:off_deviceChange
错误码内容:401,6800101|@ohos.multimedia.audio.d.ts| +|新增(错误码)|NA|方法名 or 属性名:on_audioRendererChange
错误码内容:401,6800101|@ohos.multimedia.audio.d.ts| +|新增(错误码)|NA|方法名 or 属性名:on_audioCapturerChange
错误码内容:401,6800101|@ohos.multimedia.audio.d.ts| +|新增(错误码)|NA|方法名 or 属性名:createVideoRecorder
错误码内容:5400101|@ohos.multimedia.media.d.ts| +|新增(错误码)|NA|方法名 or 属性名:createVideoRecorder
错误码内容:5400101|@ohos.multimedia.media.d.ts| +|新增(错误码)|NA|方法名 or 属性名:prepare
错误码内容:201,401,5400102,5400105|@ohos.multimedia.media.d.ts| +|新增(错误码)|NA|方法名 or 属性名:prepare
错误码内容:201,401,5400102,5400105|@ohos.multimedia.media.d.ts| +|新增(错误码)|NA|方法名 or 属性名:getInputSurface
错误码内容:5400102,5400103,5400105|@ohos.multimedia.media.d.ts| +|新增(错误码)|NA|方法名 or 属性名:getInputSurface
错误码内容:5400102,5400103,5400105|@ohos.multimedia.media.d.ts| +|新增(错误码)|NA|方法名 or 属性名:start
错误码内容:5400102,5400103,5400105|@ohos.multimedia.media.d.ts| +|新增(错误码)|NA|方法名 or 属性名:start
错误码内容:5400102,5400103,5400105|@ohos.multimedia.media.d.ts| +|新增(错误码)|NA|方法名 or 属性名:pause
错误码内容:5400102,5400103,5400105|@ohos.multimedia.media.d.ts| +|新增(错误码)|NA|方法名 or 属性名:pause
错误码内容:5400102,5400103,5400105|@ohos.multimedia.media.d.ts| +|新增(错误码)|NA|方法名 or 属性名:resume
错误码内容:5400102,5400103,5400105|@ohos.multimedia.media.d.ts| +|新增(错误码)|NA|方法名 or 属性名:resume
错误码内容:5400102,5400103,5400105|@ohos.multimedia.media.d.ts| +|新增(错误码)|NA|方法名 or 属性名:stop
错误码内容:5400102,5400103,5400105|@ohos.multimedia.media.d.ts| +|新增(错误码)|NA|方法名 or 属性名:stop
错误码内容:5400102,5400103,5400105|@ohos.multimedia.media.d.ts| +|新增(错误码)|NA|方法名 or 属性名:release
错误码内容:5400105|@ohos.multimedia.media.d.ts| +|新增(错误码)|NA|方法名 or 属性名:release
错误码内容:5400105|@ohos.multimedia.media.d.ts| +|新增(错误码)|NA|方法名 or 属性名:reset
错误码内容:5400103,5400105|@ohos.multimedia.media.d.ts| +|新增(错误码)|NA|方法名 or 属性名:reset
错误码内容:5400103,5400105|@ohos.multimedia.media.d.ts| +|新增(错误码)|NA|方法名 or 属性名:on_error
错误码内容:5400103,5400105|@ohos.multimedia.media.d.ts| |访问级别有变化|方法名 or 属性名:createVideoRecorder
访问级别:公开API|方法名 or 属性名:createVideoRecorder
访问级别:系统API|@ohos.multimedia.media.d.ts| |访问级别有变化|方法名 or 属性名:createVideoRecorder
访问级别:公开API|方法名 or 属性名:createVideoRecorder
访问级别:系统API|@ohos.multimedia.media.d.ts| |访问级别有变化|类名:VideoRecorder
访问级别:公开API|类名:VideoRecorder
访问级别:系统API|@ohos.multimedia.media.d.ts| diff --git a/zh-cn/release-notes/api-diff/v3.2-beta4/js-apidiff-notification.md b/zh-cn/release-notes/api-diff/v3.2-beta4/js-apidiff-notification.md index b5cae683259e8b573f2a2a7d237e7fb7856669c6..49811d9382af19e9cecdd9b983883b2d0969aeaf 100644 --- a/zh-cn/release-notes/api-diff/v3.2-beta4/js-apidiff-notification.md +++ b/zh-cn/release-notes/api-diff/v3.2-beta4/js-apidiff-notification.md @@ -1,381 +1,381 @@ -| 操作 | 新版本 | 旧版本 | d.ts文件 | +| 操作 | 旧版本 | 新版本 | d.ts文件 | | ---- | ------ | ------ | -------- | -|新增||模块名: ohos.commonEventManager
类名: commonEventManager|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: commonEventManager
方法名 or 属性名: publish|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: commonEventManager
方法名 or 属性名: publish|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: commonEventManager
方法名 or 属性名: publishAsUser|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: commonEventManager
方法名 or 属性名: publishAsUser|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: commonEventManager
方法名 or 属性名: createSubscriber|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: commonEventManager
方法名 or 属性名: createSubscriber|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: commonEventManager
方法名 or 属性名: subscribe|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: commonEventManager
方法名 or 属性名: unsubscribe|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BOOT_COMPLETED|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_LOCKED_BOOT_COMPLETED|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_SHUTDOWN|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BATTERY_CHANGED|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BATTERY_LOW|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BATTERY_OKAY|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_POWER_CONNECTED|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_POWER_DISCONNECTED|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_SCREEN_OFF|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_SCREEN_ON|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_THERMAL_LEVEL_CHANGED|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_USER_PRESENT|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_TIME_TICK|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_TIME_CHANGED|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_DATE_CHANGED|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_TIMEZONE_CHANGED|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_CLOSE_SYSTEM_DIALOGS|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_PACKAGE_ADDED|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_PACKAGE_REPLACED|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_MY_PACKAGE_REPLACED|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_PACKAGE_REMOVED|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BUNDLE_REMOVED|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_PACKAGE_FULLY_REMOVED|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_PACKAGE_CHANGED|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_PACKAGE_RESTARTED|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_PACKAGE_DATA_CLEARED|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_PACKAGE_CACHE_CLEARED|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_PACKAGES_SUSPENDED|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_PACKAGES_UNSUSPENDED|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_MY_PACKAGE_SUSPENDED|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_MY_PACKAGE_UNSUSPENDED|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_UID_REMOVED|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_PACKAGE_FIRST_LAUNCH|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_PACKAGE_NEEDS_VERIFICATION|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_PACKAGE_VERIFIED|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_EXTERNAL_APPLICATIONS_AVAILABLE|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_EXTERNAL_APPLICATIONS_UNAVAILABLE|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_CONFIGURATION_CHANGED|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_LOCALE_CHANGED|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_MANAGE_PACKAGE_STORAGE|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_DRIVE_MODE|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_HOME_MODE|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_OFFICE_MODE|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_USER_STARTED|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_USER_BACKGROUND|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_USER_FOREGROUND|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_USER_SWITCHED|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_USER_STARTING|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_USER_UNLOCKED|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_USER_STOPPING|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_USER_STOPPED|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_DISTRIBUTED_ACCOUNT_LOGIN|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_DISTRIBUTED_ACCOUNT_LOGOUT|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_DISTRIBUTED_ACCOUNT_TOKEN_INVALID|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_DISTRIBUTED_ACCOUNT_LOGOFF|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_WIFI_POWER_STATE|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_WIFI_SCAN_FINISHED|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_WIFI_RSSI_VALUE|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_WIFI_CONN_STATE|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_WIFI_HOTSPOT_STATE|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_WIFI_AP_STA_JOIN|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_WIFI_AP_STA_LEAVE|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_WIFI_MPLINK_STATE_CHANGE|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_WIFI_P2P_CONN_STATE|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_WIFI_P2P_STATE_CHANGED|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_WIFI_P2P_PEERS_STATE_CHANGED|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_WIFI_P2P_PEERS_DISCOVERY_STATE_CHANGED|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_WIFI_P2P_CURRENT_DEVICE_STATE_CHANGED|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_WIFI_P2P_GROUP_STATE_CHANGED|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_HANDSFREE_AG_CONNECT_STATE_UPDATE|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_HANDSFREE_AG_CURRENT_DEVICE_UPDATE|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_HANDSFREE_AG_AUDIO_STATE_UPDATE|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_A2DPSOURCE_CONNECT_STATE_UPDATE|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_A2DPSOURCE_CURRENT_DEVICE_UPDATE|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_A2DPSOURCE_PLAYING_STATE_UPDATE|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_A2DPSOURCE_AVRCP_CONNECT_STATE_UPDATE|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_A2DPSOURCE_CODEC_VALUE_UPDATE|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_DISCOVERED|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_CLASS_VALUE_UPDATE|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_ACL_CONNECTED|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_ACL_DISCONNECTED|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_NAME_UPDATE|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_PAIR_STATE|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_BATTERY_VALUE_UPDATE|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_SDP_RESULT|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_UUID_VALUE|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_PAIRING_REQ|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_PAIRING_CANCEL|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_CONNECT_REQ|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_CONNECT_REPLY|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_CONNECT_CANCEL|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_HANDSFREEUNIT_CONNECT_STATE_UPDATE|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_HANDSFREEUNIT_AUDIO_STATE_UPDATE|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_HANDSFREEUNIT_AG_COMMON_EVENT|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_HANDSFREEUNIT_AG_CALL_STATE_UPDATE|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_HOST_STATE_UPDATE|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_HOST_REQ_DISCOVERABLE|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_HOST_REQ_ENABLE|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_HOST_REQ_DISABLE|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_HOST_SCAN_MODE_UPDATE|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_HOST_DISCOVERY_STARTED|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_HOST_DISCOVERY_FINISHED|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_HOST_NAME_UPDATE|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_A2DPSINK_CONNECT_STATE_UPDATE|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_A2DPSINK_PLAYING_STATE_UPDATE|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_A2DPSINK_AUDIO_STATE_UPDATE|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_NFC_ACTION_ADAPTER_STATE_CHANGED|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_NFC_ACTION_RF_FIELD_ON_DETECTED|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_NFC_ACTION_RF_FIELD_OFF_DETECTED|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_DISCHARGING|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_CHARGING|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_DEVICE_IDLE_MODE_CHANGED|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_POWER_SAVE_MODE_CHANGED|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_USER_ADDED|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_USER_REMOVED|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_ABILITY_ADDED|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_ABILITY_REMOVED|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_ABILITY_UPDATED|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_LOCATION_MODE_STATE_CHANGED|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_IVI_SLEEP|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_IVI_PAUSE|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_IVI_STANDBY|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_IVI_LASTMODE_SAVE|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_IVI_VOLTAGE_ABNORMAL|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_IVI_HIGH_TEMPERATURE|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_IVI_EXTREME_TEMPERATURE|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_IVI_TEMPERATURE_ABNORMAL|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_IVI_VOLTAGE_RECOVERY|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_IVI_TEMPERATURE_RECOVERY|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_IVI_ACTIVE|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_USB_STATE|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_USB_PORT_CHANGED|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_USB_DEVICE_ATTACHED|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_USB_DEVICE_DETACHED|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_USB_ACCESSORY_ATTACHED|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_USB_ACCESSORY_DETACHED|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_DISK_REMOVED|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_DISK_UNMOUNTED|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_DISK_MOUNTED|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_DISK_BAD_REMOVAL|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_DISK_UNMOUNTABLE|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_DISK_EJECT|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_VOLUME_REMOVED|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_VOLUME_UNMOUNTED|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_VOLUME_MOUNTED|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_VOLUME_BAD_REMOVAL|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_VOLUME_EJECT|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_VISIBLE_ACCOUNTS_UPDATED|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_ACCOUNT_DELETED|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_FOUNDATION_READY|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_AIRPLANE_MODE_CHANGED|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_SPLIT_SCREEN|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_SLOT_CHANGE|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_SPN_INFO_CHANGED|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_QUICK_FIX_APPLY_RESULT|@ohos.commonEventManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: publish|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: publish|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: publish|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: publish|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: publishAsBundle|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: publishAsBundle|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: cancel|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: cancel|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: cancel|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: cancelAsBundle|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: cancelAsBundle|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: cancelAll|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: cancelAll|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: addSlot|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: addSlot|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: addSlot|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: addSlot|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: addSlots|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: addSlots|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: getSlot|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: getSlot|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: getSlots|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: getSlots|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: removeSlot|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: removeSlot|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: removeAllSlots|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: removeAllSlots|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: setNotificationEnable|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: setNotificationEnable|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: isNotificationEnabled|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: isNotificationEnabled|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: isNotificationEnabled|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: isNotificationEnabled|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: isNotificationEnabled|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: isNotificationEnabled|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: displayBadge|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: displayBadge|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: isBadgeDisplayed|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: isBadgeDisplayed|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: setSlotByBundle|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: setSlotByBundle|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: getSlotsByBundle|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: getSlotsByBundle|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: getSlotNumByBundle|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: getSlotNumByBundle|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: getAllActiveNotifications|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: getAllActiveNotifications|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: getActiveNotificationCount|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: getActiveNotificationCount|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: getActiveNotifications|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: getActiveNotifications|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: cancelGroup|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: cancelGroup|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: removeGroupByBundle|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: removeGroupByBundle|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: setDoNotDisturbDate|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: setDoNotDisturbDate|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: setDoNotDisturbDate|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: setDoNotDisturbDate|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: getDoNotDisturbDate|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: getDoNotDisturbDate|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: getDoNotDisturbDate|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: getDoNotDisturbDate|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: supportDoNotDisturbMode|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: supportDoNotDisturbMode|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: isSupportTemplate|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: isSupportTemplate|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: requestEnableNotification|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: requestEnableNotification|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: setDistributedEnable|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: setDistributedEnable|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: isDistributedEnabled|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: isDistributedEnabled|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: setDistributedEnableByBundle|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: setDistributedEnableByBundle|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: isDistributedEnabledByBundle|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: isDistributedEnabledByBundle|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: getDeviceRemindType|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: getDeviceRemindType|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: setNotificationEnableSlot|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: setNotificationEnableSlot|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: isNotificationSlotEnabled|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: isNotificationSlotEnabled|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: setSyncNotificationEnabledWithoutApp|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: setSyncNotificationEnabledWithoutApp|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: getSyncNotificationEnabledWithoutApp|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: getSyncNotificationEnabledWithoutApp|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: SlotType|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: SlotType
方法名 or 属性名: UNKNOWN_TYPE|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: SlotType
方法名 or 属性名: SOCIAL_COMMUNICATION|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: SlotType
方法名 or 属性名: SERVICE_INFORMATION|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: SlotType
方法名 or 属性名: CONTENT_INFORMATION|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: SlotType
方法名 or 属性名: OTHER_TYPES|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: ContentType|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: ContentType
方法名 or 属性名: NOTIFICATION_CONTENT_BASIC_TEXT|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: ContentType
方法名 or 属性名: NOTIFICATION_CONTENT_LONG_TEXT|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: ContentType
方法名 or 属性名: NOTIFICATION_CONTENT_PICTURE|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: ContentType
方法名 or 属性名: NOTIFICATION_CONTENT_CONVERSATION|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: ContentType
方法名 or 属性名: NOTIFICATION_CONTENT_MULTILINE|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: SlotLevel|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: SlotLevel
方法名 or 属性名: LEVEL_NONE|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: SlotLevel
方法名 or 属性名: LEVEL_MIN|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: SlotLevel
方法名 or 属性名: LEVEL_LOW|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: SlotLevel
方法名 or 属性名: LEVEL_DEFAULT|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: SlotLevel
方法名 or 属性名: LEVEL_HIGH|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: BundleOption|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: BundleOption
方法名 or 属性名: bundle|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: BundleOption
方法名 or 属性名: uid|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: DoNotDisturbType|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: DoNotDisturbType
方法名 or 属性名: TYPE_NONE|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: DoNotDisturbType
方法名 or 属性名: TYPE_ONCE|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: DoNotDisturbType
方法名 or 属性名: TYPE_DAILY|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: DoNotDisturbType
方法名 or 属性名: TYPE_CLEARLY|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: DoNotDisturbDate|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: DoNotDisturbDate
方法名 or 属性名: type|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: DoNotDisturbDate
方法名 or 属性名: begin|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: DoNotDisturbDate
方法名 or 属性名: end|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: DeviceRemindType|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: DeviceRemindType
方法名 or 属性名: IDLE_DONOT_REMIND|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: DeviceRemindType
方法名 or 属性名: IDLE_REMIND|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: DeviceRemindType
方法名 or 属性名: ACTIVE_DONOT_REMIND|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: DeviceRemindType
方法名 or 属性名: ACTIVE_REMIND|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: SourceType|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: SourceType
方法名 or 属性名: TYPE_NORMAL|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: SourceType
方法名 or 属性名: TYPE_CONTINUOUS|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationManager
类名: SourceType
方法名 or 属性名: TYPE_TIMER|@ohos.notificationManager.d.ts| -|新增||模块名: ohos.notificationSubscribe
类名: notificationSubscribe|@ohos.notificationSubscribe.d.ts| -|新增||模块名: ohos.notificationSubscribe
类名: BundleOption|@ohos.notificationSubscribe.d.ts| -|新增||模块名: ohos.notificationSubscribe
类名: BundleOption
方法名 or 属性名: bundle|@ohos.notificationSubscribe.d.ts| -|新增||模块名: ohos.notificationSubscribe
类名: BundleOption
方法名 or 属性名: uid|@ohos.notificationSubscribe.d.ts| -|新增||模块名: ohos.notificationSubscribe
类名: NotificationKey|@ohos.notificationSubscribe.d.ts| -|新增||模块名: ohos.notificationSubscribe
类名: NotificationKey
方法名 or 属性名: id|@ohos.notificationSubscribe.d.ts| -|新增||模块名: ohos.notificationSubscribe
类名: NotificationKey
方法名 or 属性名: label|@ohos.notificationSubscribe.d.ts| -|新增||模块名: ohos.notificationSubscribe
类名: RemoveReason|@ohos.notificationSubscribe.d.ts| -|新增||模块名: ohos.notificationSubscribe
类名: RemoveReason
方法名 or 属性名: CLICK_REASON_REMOVE|@ohos.notificationSubscribe.d.ts| -|新增||模块名: ohos.notificationSubscribe
类名: RemoveReason
方法名 or 属性名: CANCEL_REASON_REMOVE|@ohos.notificationSubscribe.d.ts| -|新增||模块名: ohos.notificationSubscribe
类名: notificationSubscribe
方法名 or 属性名: subscribe|@ohos.notificationSubscribe.d.ts| -|新增||模块名: ohos.notificationSubscribe
类名: notificationSubscribe
方法名 or 属性名: subscribe|@ohos.notificationSubscribe.d.ts| -|新增||模块名: ohos.notificationSubscribe
类名: notificationSubscribe
方法名 or 属性名: subscribe|@ohos.notificationSubscribe.d.ts| -|新增||模块名: ohos.notificationSubscribe
类名: notificationSubscribe
方法名 or 属性名: unsubscribe|@ohos.notificationSubscribe.d.ts| -|新增||模块名: ohos.notificationSubscribe
类名: notificationSubscribe
方法名 or 属性名: unsubscribe|@ohos.notificationSubscribe.d.ts| -|新增||模块名: ohos.notificationSubscribe
类名: notificationSubscribe
方法名 or 属性名: remove|@ohos.notificationSubscribe.d.ts| -|新增||模块名: ohos.notificationSubscribe
类名: notificationSubscribe
方法名 or 属性名: remove|@ohos.notificationSubscribe.d.ts| -|新增||模块名: ohos.notificationSubscribe
类名: notificationSubscribe
方法名 or 属性名: remove|@ohos.notificationSubscribe.d.ts| -|新增||模块名: ohos.notificationSubscribe
类名: notificationSubscribe
方法名 or 属性名: remove|@ohos.notificationSubscribe.d.ts| -|新增||模块名: ohos.notificationSubscribe
类名: notificationSubscribe
方法名 or 属性名: removeAll|@ohos.notificationSubscribe.d.ts| -|新增||模块名: ohos.notificationSubscribe
类名: notificationSubscribe
方法名 or 属性名: removeAll|@ohos.notificationSubscribe.d.ts| -|新增||模块名: ohos.notificationSubscribe
类名: notificationSubscribe
方法名 or 属性名: removeAll|@ohos.notificationSubscribe.d.ts| -|新增||模块名: ohos.notificationSubscribe
类名: notificationSubscribe
方法名 or 属性名: removeAll|@ohos.notificationSubscribe.d.ts| -|新增||模块名: ohos.notificationSubscribe
类名: notificationSubscribe
方法名 or 属性名: removeAll|@ohos.notificationSubscribe.d.ts| -|新增||模块名: ohos.reminderAgentManager
类名: reminderAgentManager|@ohos.reminderAgentManager.d.ts| -|新增||模块名: ohos.reminderAgentManager
类名: reminderAgentManager
方法名 or 属性名: publishReminder|@ohos.reminderAgentManager.d.ts| -|新增||模块名: ohos.reminderAgentManager
类名: reminderAgentManager
方法名 or 属性名: publishReminder|@ohos.reminderAgentManager.d.ts| -|新增||模块名: ohos.reminderAgentManager
类名: reminderAgentManager
方法名 or 属性名: cancelReminder|@ohos.reminderAgentManager.d.ts| -|新增||模块名: ohos.reminderAgentManager
类名: reminderAgentManager
方法名 or 属性名: cancelReminder|@ohos.reminderAgentManager.d.ts| -|新增||模块名: ohos.reminderAgentManager
类名: reminderAgentManager
方法名 or 属性名: getValidReminders|@ohos.reminderAgentManager.d.ts| -|新增||模块名: ohos.reminderAgentManager
类名: reminderAgentManager
方法名 or 属性名: getValidReminders|@ohos.reminderAgentManager.d.ts| -|新增||模块名: ohos.reminderAgentManager
类名: reminderAgentManager
方法名 or 属性名: cancelAllReminders|@ohos.reminderAgentManager.d.ts| -|新增||模块名: ohos.reminderAgentManager
类名: reminderAgentManager
方法名 or 属性名: cancelAllReminders|@ohos.reminderAgentManager.d.ts| -|新增||模块名: ohos.reminderAgentManager
类名: reminderAgentManager
方法名 or 属性名: addNotificationSlot|@ohos.reminderAgentManager.d.ts| -|新增||模块名: ohos.reminderAgentManager
类名: reminderAgentManager
方法名 or 属性名: addNotificationSlot|@ohos.reminderAgentManager.d.ts| -|新增||模块名: ohos.reminderAgentManager
类名: reminderAgentManager
方法名 or 属性名: removeNotificationSlot|@ohos.reminderAgentManager.d.ts| -|新增||模块名: ohos.reminderAgentManager
类名: reminderAgentManager
方法名 or 属性名: removeNotificationSlot|@ohos.reminderAgentManager.d.ts| -|新增||模块名: ohos.reminderAgentManager
类名: ActionButtonType|@ohos.reminderAgentManager.d.ts| -|新增||模块名: ohos.reminderAgentManager
类名: ActionButtonType
方法名 or 属性名: ACTION_BUTTON_TYPE_CLOSE|@ohos.reminderAgentManager.d.ts| -|新增||模块名: ohos.reminderAgentManager
类名: ActionButtonType
方法名 or 属性名: ACTION_BUTTON_TYPE_SNOOZE|@ohos.reminderAgentManager.d.ts| -|新增||模块名: ohos.reminderAgentManager
类名: ReminderType|@ohos.reminderAgentManager.d.ts| -|新增||模块名: ohos.reminderAgentManager
类名: ReminderType
方法名 or 属性名: REMINDER_TYPE_TIMER|@ohos.reminderAgentManager.d.ts| -|新增||模块名: ohos.reminderAgentManager
类名: ReminderType
方法名 or 属性名: REMINDER_TYPE_CALENDAR|@ohos.reminderAgentManager.d.ts| -|新增||模块名: ohos.reminderAgentManager
类名: ReminderType
方法名 or 属性名: REMINDER_TYPE_ALARM|@ohos.reminderAgentManager.d.ts| -|新增||模块名: ohos.reminderAgentManager
类名: ActionButton|@ohos.reminderAgentManager.d.ts| -|新增||模块名: ohos.reminderAgentManager
类名: ActionButton
方法名 or 属性名: title|@ohos.reminderAgentManager.d.ts| -|新增||模块名: ohos.reminderAgentManager
类名: ActionButton
方法名 or 属性名: type|@ohos.reminderAgentManager.d.ts| -|新增||模块名: ohos.reminderAgentManager
类名: WantAgent|@ohos.reminderAgentManager.d.ts| -|新增||模块名: ohos.reminderAgentManager
类名: WantAgent
方法名 or 属性名: pkgName|@ohos.reminderAgentManager.d.ts| -|新增||模块名: ohos.reminderAgentManager
类名: WantAgent
方法名 or 属性名: abilityName|@ohos.reminderAgentManager.d.ts| -|新增||模块名: ohos.reminderAgentManager
类名: MaxScreenWantAgent|@ohos.reminderAgentManager.d.ts| -|新增||模块名: ohos.reminderAgentManager
类名: MaxScreenWantAgent
方法名 or 属性名: pkgName|@ohos.reminderAgentManager.d.ts| -|新增||模块名: ohos.reminderAgentManager
类名: MaxScreenWantAgent
方法名 or 属性名: abilityName|@ohos.reminderAgentManager.d.ts| -|新增||模块名: ohos.reminderAgentManager
类名: ReminderRequest|@ohos.reminderAgentManager.d.ts| -|新增||模块名: ohos.reminderAgentManager
类名: ReminderRequest
方法名 or 属性名: reminderType|@ohos.reminderAgentManager.d.ts| -|新增||模块名: ohos.reminderAgentManager
类名: ReminderRequest
方法名 or 属性名: actionButton|@ohos.reminderAgentManager.d.ts| -|新增||模块名: ohos.reminderAgentManager
类名: ReminderRequest
方法名 or 属性名: wantAgent|@ohos.reminderAgentManager.d.ts| -|新增||模块名: ohos.reminderAgentManager
类名: ReminderRequest
方法名 or 属性名: maxScreenWantAgent|@ohos.reminderAgentManager.d.ts| -|新增||模块名: ohos.reminderAgentManager
类名: ReminderRequest
方法名 or 属性名: ringDuration|@ohos.reminderAgentManager.d.ts| -|新增||模块名: ohos.reminderAgentManager
类名: ReminderRequest
方法名 or 属性名: snoozeTimes|@ohos.reminderAgentManager.d.ts| -|新增||模块名: ohos.reminderAgentManager
类名: ReminderRequest
方法名 or 属性名: timeInterval|@ohos.reminderAgentManager.d.ts| -|新增||模块名: ohos.reminderAgentManager
类名: ReminderRequest
方法名 or 属性名: title|@ohos.reminderAgentManager.d.ts| -|新增||模块名: ohos.reminderAgentManager
类名: ReminderRequest
方法名 or 属性名: content|@ohos.reminderAgentManager.d.ts| -|新增||模块名: ohos.reminderAgentManager
类名: ReminderRequest
方法名 or 属性名: expiredContent|@ohos.reminderAgentManager.d.ts| -|新增||模块名: ohos.reminderAgentManager
类名: ReminderRequest
方法名 or 属性名: snoozeContent|@ohos.reminderAgentManager.d.ts| -|新增||模块名: ohos.reminderAgentManager
类名: ReminderRequest
方法名 or 属性名: notificationId|@ohos.reminderAgentManager.d.ts| -|新增||模块名: ohos.reminderAgentManager
类名: ReminderRequest
方法名 or 属性名: slotType|@ohos.reminderAgentManager.d.ts| -|新增||模块名: ohos.reminderAgentManager
类名: ReminderRequestCalendar|@ohos.reminderAgentManager.d.ts| -|新增||模块名: ohos.reminderAgentManager
类名: ReminderRequestCalendar
方法名 or 属性名: dateTime|@ohos.reminderAgentManager.d.ts| -|新增||模块名: ohos.reminderAgentManager
类名: ReminderRequestCalendar
方法名 or 属性名: repeatMonths|@ohos.reminderAgentManager.d.ts| -|新增||模块名: ohos.reminderAgentManager
类名: ReminderRequestCalendar
方法名 or 属性名: repeatDays|@ohos.reminderAgentManager.d.ts| -|新增||模块名: ohos.reminderAgentManager
类名: ReminderRequestAlarm|@ohos.reminderAgentManager.d.ts| -|新增||模块名: ohos.reminderAgentManager
类名: ReminderRequestAlarm
方法名 or 属性名: hour|@ohos.reminderAgentManager.d.ts| -|新增||模块名: ohos.reminderAgentManager
类名: ReminderRequestAlarm
方法名 or 属性名: minute|@ohos.reminderAgentManager.d.ts| -|新增||模块名: ohos.reminderAgentManager
类名: ReminderRequestAlarm
方法名 or 属性名: daysOfWeek|@ohos.reminderAgentManager.d.ts| -|新增||模块名: ohos.reminderAgentManager
类名: ReminderRequestTimer|@ohos.reminderAgentManager.d.ts| -|新增||模块名: ohos.reminderAgentManager
类名: ReminderRequestTimer
方法名 or 属性名: triggerTimeInSeconds|@ohos.reminderAgentManager.d.ts| -|新增||模块名: ohos.reminderAgentManager
类名: LocalDateTime|@ohos.reminderAgentManager.d.ts| -|新增||模块名: ohos.reminderAgentManager
类名: LocalDateTime
方法名 or 属性名: year|@ohos.reminderAgentManager.d.ts| -|新增||模块名: ohos.reminderAgentManager
类名: LocalDateTime
方法名 or 属性名: month|@ohos.reminderAgentManager.d.ts| -|新增||模块名: ohos.reminderAgentManager
类名: LocalDateTime
方法名 or 属性名: day|@ohos.reminderAgentManager.d.ts| -|新增||模块名: ohos.reminderAgentManager
类名: LocalDateTime
方法名 or 属性名: hour|@ohos.reminderAgentManager.d.ts| -|新增||模块名: ohos.reminderAgentManager
类名: LocalDateTime
方法名 or 属性名: minute|@ohos.reminderAgentManager.d.ts| -|新增||模块名: ohos.reminderAgentManager
类名: LocalDateTime
方法名 or 属性名: second|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: commonEventManager|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: commonEventManager
方法名 or 属性名: publish|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: commonEventManager
方法名 or 属性名: publish|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: commonEventManager
方法名 or 属性名: publishAsUser|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: commonEventManager
方法名 or 属性名: publishAsUser|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: commonEventManager
方法名 or 属性名: createSubscriber|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: commonEventManager
方法名 or 属性名: createSubscriber|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: commonEventManager
方法名 or 属性名: subscribe|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: commonEventManager
方法名 or 属性名: unsubscribe|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BOOT_COMPLETED|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_LOCKED_BOOT_COMPLETED|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_SHUTDOWN|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BATTERY_CHANGED|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BATTERY_LOW|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BATTERY_OKAY|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_POWER_CONNECTED|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_POWER_DISCONNECTED|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_SCREEN_OFF|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_SCREEN_ON|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_THERMAL_LEVEL_CHANGED|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_USER_PRESENT|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_TIME_TICK|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_TIME_CHANGED|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_DATE_CHANGED|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_TIMEZONE_CHANGED|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_CLOSE_SYSTEM_DIALOGS|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_PACKAGE_ADDED|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_PACKAGE_REPLACED|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_MY_PACKAGE_REPLACED|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_PACKAGE_REMOVED|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BUNDLE_REMOVED|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_PACKAGE_FULLY_REMOVED|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_PACKAGE_CHANGED|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_PACKAGE_RESTARTED|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_PACKAGE_DATA_CLEARED|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_PACKAGE_CACHE_CLEARED|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_PACKAGES_SUSPENDED|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_PACKAGES_UNSUSPENDED|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_MY_PACKAGE_SUSPENDED|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_MY_PACKAGE_UNSUSPENDED|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_UID_REMOVED|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_PACKAGE_FIRST_LAUNCH|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_PACKAGE_NEEDS_VERIFICATION|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_PACKAGE_VERIFIED|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_EXTERNAL_APPLICATIONS_AVAILABLE|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_EXTERNAL_APPLICATIONS_UNAVAILABLE|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_CONFIGURATION_CHANGED|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_LOCALE_CHANGED|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_MANAGE_PACKAGE_STORAGE|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_DRIVE_MODE|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_HOME_MODE|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_OFFICE_MODE|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_USER_STARTED|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_USER_BACKGROUND|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_USER_FOREGROUND|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_USER_SWITCHED|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_USER_STARTING|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_USER_UNLOCKED|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_USER_STOPPING|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_USER_STOPPED|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_DISTRIBUTED_ACCOUNT_LOGIN|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_DISTRIBUTED_ACCOUNT_LOGOUT|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_DISTRIBUTED_ACCOUNT_TOKEN_INVALID|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_DISTRIBUTED_ACCOUNT_LOGOFF|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_WIFI_POWER_STATE|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_WIFI_SCAN_FINISHED|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_WIFI_RSSI_VALUE|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_WIFI_CONN_STATE|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_WIFI_HOTSPOT_STATE|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_WIFI_AP_STA_JOIN|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_WIFI_AP_STA_LEAVE|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_WIFI_MPLINK_STATE_CHANGE|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_WIFI_P2P_CONN_STATE|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_WIFI_P2P_STATE_CHANGED|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_WIFI_P2P_PEERS_STATE_CHANGED|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_WIFI_P2P_PEERS_DISCOVERY_STATE_CHANGED|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_WIFI_P2P_CURRENT_DEVICE_STATE_CHANGED|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_WIFI_P2P_GROUP_STATE_CHANGED|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_HANDSFREE_AG_CONNECT_STATE_UPDATE|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_HANDSFREE_AG_CURRENT_DEVICE_UPDATE|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_HANDSFREE_AG_AUDIO_STATE_UPDATE|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_A2DPSOURCE_CONNECT_STATE_UPDATE|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_A2DPSOURCE_CURRENT_DEVICE_UPDATE|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_A2DPSOURCE_PLAYING_STATE_UPDATE|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_A2DPSOURCE_AVRCP_CONNECT_STATE_UPDATE|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_A2DPSOURCE_CODEC_VALUE_UPDATE|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_DISCOVERED|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_CLASS_VALUE_UPDATE|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_ACL_CONNECTED|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_ACL_DISCONNECTED|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_NAME_UPDATE|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_PAIR_STATE|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_BATTERY_VALUE_UPDATE|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_SDP_RESULT|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_UUID_VALUE|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_PAIRING_REQ|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_PAIRING_CANCEL|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_CONNECT_REQ|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_CONNECT_REPLY|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_CONNECT_CANCEL|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_HANDSFREEUNIT_CONNECT_STATE_UPDATE|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_HANDSFREEUNIT_AUDIO_STATE_UPDATE|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_HANDSFREEUNIT_AG_COMMON_EVENT|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_HANDSFREEUNIT_AG_CALL_STATE_UPDATE|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_HOST_STATE_UPDATE|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_HOST_REQ_DISCOVERABLE|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_HOST_REQ_ENABLE|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_HOST_REQ_DISABLE|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_HOST_SCAN_MODE_UPDATE|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_HOST_DISCOVERY_STARTED|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_HOST_DISCOVERY_FINISHED|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_HOST_NAME_UPDATE|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_A2DPSINK_CONNECT_STATE_UPDATE|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_A2DPSINK_PLAYING_STATE_UPDATE|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_BLUETOOTH_A2DPSINK_AUDIO_STATE_UPDATE|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_NFC_ACTION_ADAPTER_STATE_CHANGED|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_NFC_ACTION_RF_FIELD_ON_DETECTED|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_NFC_ACTION_RF_FIELD_OFF_DETECTED|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_DISCHARGING|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_CHARGING|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_DEVICE_IDLE_MODE_CHANGED|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_POWER_SAVE_MODE_CHANGED|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_USER_ADDED|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_USER_REMOVED|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_ABILITY_ADDED|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_ABILITY_REMOVED|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_ABILITY_UPDATED|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_LOCATION_MODE_STATE_CHANGED|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_IVI_SLEEP|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_IVI_PAUSE|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_IVI_STANDBY|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_IVI_LASTMODE_SAVE|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_IVI_VOLTAGE_ABNORMAL|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_IVI_HIGH_TEMPERATURE|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_IVI_EXTREME_TEMPERATURE|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_IVI_TEMPERATURE_ABNORMAL|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_IVI_VOLTAGE_RECOVERY|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_IVI_TEMPERATURE_RECOVERY|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_IVI_ACTIVE|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_USB_STATE|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_USB_PORT_CHANGED|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_USB_DEVICE_ATTACHED|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_USB_DEVICE_DETACHED|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_USB_ACCESSORY_ATTACHED|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_USB_ACCESSORY_DETACHED|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_DISK_REMOVED|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_DISK_UNMOUNTED|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_DISK_MOUNTED|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_DISK_BAD_REMOVAL|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_DISK_UNMOUNTABLE|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_DISK_EJECT|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_VOLUME_REMOVED|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_VOLUME_UNMOUNTED|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_VOLUME_MOUNTED|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_VOLUME_BAD_REMOVAL|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_VOLUME_EJECT|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_VISIBLE_ACCOUNTS_UPDATED|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_ACCOUNT_DELETED|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_FOUNDATION_READY|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_AIRPLANE_MODE_CHANGED|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_SPLIT_SCREEN|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_SLOT_CHANGE|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_SPN_INFO_CHANGED|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.commonEventManager
类名: Support
方法名 or 属性名: COMMON_EVENT_QUICK_FIX_APPLY_RESULT|@ohos.commonEventManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: publish|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: publish|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: publish|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: publish|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: publishAsBundle|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: publishAsBundle|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: cancel|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: cancel|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: cancel|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: cancelAsBundle|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: cancelAsBundle|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: cancelAll|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: cancelAll|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: addSlot|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: addSlot|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: addSlot|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: addSlot|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: addSlots|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: addSlots|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: getSlot|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: getSlot|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: getSlots|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: getSlots|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: removeSlot|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: removeSlot|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: removeAllSlots|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: removeAllSlots|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: setNotificationEnable|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: setNotificationEnable|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: isNotificationEnabled|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: isNotificationEnabled|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: isNotificationEnabled|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: isNotificationEnabled|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: isNotificationEnabled|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: isNotificationEnabled|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: displayBadge|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: displayBadge|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: isBadgeDisplayed|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: isBadgeDisplayed|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: setSlotByBundle|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: setSlotByBundle|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: getSlotsByBundle|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: getSlotsByBundle|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: getSlotNumByBundle|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: getSlotNumByBundle|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: getAllActiveNotifications|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: getAllActiveNotifications|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: getActiveNotificationCount|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: getActiveNotificationCount|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: getActiveNotifications|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: getActiveNotifications|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: cancelGroup|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: cancelGroup|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: removeGroupByBundle|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: removeGroupByBundle|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: setDoNotDisturbDate|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: setDoNotDisturbDate|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: setDoNotDisturbDate|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: setDoNotDisturbDate|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: getDoNotDisturbDate|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: getDoNotDisturbDate|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: getDoNotDisturbDate|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: getDoNotDisturbDate|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: supportDoNotDisturbMode|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: supportDoNotDisturbMode|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: isSupportTemplate|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: isSupportTemplate|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: requestEnableNotification|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: requestEnableNotification|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: setDistributedEnable|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: setDistributedEnable|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: isDistributedEnabled|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: isDistributedEnabled|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: setDistributedEnableByBundle|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: setDistributedEnableByBundle|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: isDistributedEnabledByBundle|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: isDistributedEnabledByBundle|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: getDeviceRemindType|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: getDeviceRemindType|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: setNotificationEnableSlot|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: setNotificationEnableSlot|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: isNotificationSlotEnabled|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: isNotificationSlotEnabled|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: setSyncNotificationEnabledWithoutApp|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: setSyncNotificationEnabledWithoutApp|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: getSyncNotificationEnabledWithoutApp|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: notificationManager
方法名 or 属性名: getSyncNotificationEnabledWithoutApp|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: SlotType|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: SlotType
方法名 or 属性名: UNKNOWN_TYPE|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: SlotType
方法名 or 属性名: SOCIAL_COMMUNICATION|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: SlotType
方法名 or 属性名: SERVICE_INFORMATION|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: SlotType
方法名 or 属性名: CONTENT_INFORMATION|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: SlotType
方法名 or 属性名: OTHER_TYPES|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: ContentType|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: ContentType
方法名 or 属性名: NOTIFICATION_CONTENT_BASIC_TEXT|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: ContentType
方法名 or 属性名: NOTIFICATION_CONTENT_LONG_TEXT|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: ContentType
方法名 or 属性名: NOTIFICATION_CONTENT_PICTURE|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: ContentType
方法名 or 属性名: NOTIFICATION_CONTENT_CONVERSATION|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: ContentType
方法名 or 属性名: NOTIFICATION_CONTENT_MULTILINE|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: SlotLevel|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: SlotLevel
方法名 or 属性名: LEVEL_NONE|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: SlotLevel
方法名 or 属性名: LEVEL_MIN|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: SlotLevel
方法名 or 属性名: LEVEL_LOW|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: SlotLevel
方法名 or 属性名: LEVEL_DEFAULT|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: SlotLevel
方法名 or 属性名: LEVEL_HIGH|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: BundleOption|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: BundleOption
方法名 or 属性名: bundle|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: BundleOption
方法名 or 属性名: uid|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: DoNotDisturbType|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: DoNotDisturbType
方法名 or 属性名: TYPE_NONE|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: DoNotDisturbType
方法名 or 属性名: TYPE_ONCE|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: DoNotDisturbType
方法名 or 属性名: TYPE_DAILY|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: DoNotDisturbType
方法名 or 属性名: TYPE_CLEARLY|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: DoNotDisturbDate|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: DoNotDisturbDate
方法名 or 属性名: type|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: DoNotDisturbDate
方法名 or 属性名: begin|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: DoNotDisturbDate
方法名 or 属性名: end|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: DeviceRemindType|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: DeviceRemindType
方法名 or 属性名: IDLE_DONOT_REMIND|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: DeviceRemindType
方法名 or 属性名: IDLE_REMIND|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: DeviceRemindType
方法名 or 属性名: ACTIVE_DONOT_REMIND|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: DeviceRemindType
方法名 or 属性名: ACTIVE_REMIND|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: SourceType|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: SourceType
方法名 or 属性名: TYPE_NORMAL|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: SourceType
方法名 or 属性名: TYPE_CONTINUOUS|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationManager
类名: SourceType
方法名 or 属性名: TYPE_TIMER|@ohos.notificationManager.d.ts| +|新增|NA|模块名: ohos.notificationSubscribe
类名: notificationSubscribe|@ohos.notificationSubscribe.d.ts| +|新增|NA|模块名: ohos.notificationSubscribe
类名: BundleOption|@ohos.notificationSubscribe.d.ts| +|新增|NA|模块名: ohos.notificationSubscribe
类名: BundleOption
方法名 or 属性名: bundle|@ohos.notificationSubscribe.d.ts| +|新增|NA|模块名: ohos.notificationSubscribe
类名: BundleOption
方法名 or 属性名: uid|@ohos.notificationSubscribe.d.ts| +|新增|NA|模块名: ohos.notificationSubscribe
类名: NotificationKey|@ohos.notificationSubscribe.d.ts| +|新增|NA|模块名: ohos.notificationSubscribe
类名: NotificationKey
方法名 or 属性名: id|@ohos.notificationSubscribe.d.ts| +|新增|NA|模块名: ohos.notificationSubscribe
类名: NotificationKey
方法名 or 属性名: label|@ohos.notificationSubscribe.d.ts| +|新增|NA|模块名: ohos.notificationSubscribe
类名: RemoveReason|@ohos.notificationSubscribe.d.ts| +|新增|NA|模块名: ohos.notificationSubscribe
类名: RemoveReason
方法名 or 属性名: CLICK_REASON_REMOVE|@ohos.notificationSubscribe.d.ts| +|新增|NA|模块名: ohos.notificationSubscribe
类名: RemoveReason
方法名 or 属性名: CANCEL_REASON_REMOVE|@ohos.notificationSubscribe.d.ts| +|新增|NA|模块名: ohos.notificationSubscribe
类名: notificationSubscribe
方法名 or 属性名: subscribe|@ohos.notificationSubscribe.d.ts| +|新增|NA|模块名: ohos.notificationSubscribe
类名: notificationSubscribe
方法名 or 属性名: subscribe|@ohos.notificationSubscribe.d.ts| +|新增|NA|模块名: ohos.notificationSubscribe
类名: notificationSubscribe
方法名 or 属性名: subscribe|@ohos.notificationSubscribe.d.ts| +|新增|NA|模块名: ohos.notificationSubscribe
类名: notificationSubscribe
方法名 or 属性名: unsubscribe|@ohos.notificationSubscribe.d.ts| +|新增|NA|模块名: ohos.notificationSubscribe
类名: notificationSubscribe
方法名 or 属性名: unsubscribe|@ohos.notificationSubscribe.d.ts| +|新增|NA|模块名: ohos.notificationSubscribe
类名: notificationSubscribe
方法名 or 属性名: remove|@ohos.notificationSubscribe.d.ts| +|新增|NA|模块名: ohos.notificationSubscribe
类名: notificationSubscribe
方法名 or 属性名: remove|@ohos.notificationSubscribe.d.ts| +|新增|NA|模块名: ohos.notificationSubscribe
类名: notificationSubscribe
方法名 or 属性名: remove|@ohos.notificationSubscribe.d.ts| +|新增|NA|模块名: ohos.notificationSubscribe
类名: notificationSubscribe
方法名 or 属性名: remove|@ohos.notificationSubscribe.d.ts| +|新增|NA|模块名: ohos.notificationSubscribe
类名: notificationSubscribe
方法名 or 属性名: removeAll|@ohos.notificationSubscribe.d.ts| +|新增|NA|模块名: ohos.notificationSubscribe
类名: notificationSubscribe
方法名 or 属性名: removeAll|@ohos.notificationSubscribe.d.ts| +|新增|NA|模块名: ohos.notificationSubscribe
类名: notificationSubscribe
方法名 or 属性名: removeAll|@ohos.notificationSubscribe.d.ts| +|新增|NA|模块名: ohos.notificationSubscribe
类名: notificationSubscribe
方法名 or 属性名: removeAll|@ohos.notificationSubscribe.d.ts| +|新增|NA|模块名: ohos.notificationSubscribe
类名: notificationSubscribe
方法名 or 属性名: removeAll|@ohos.notificationSubscribe.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: reminderAgentManager|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: reminderAgentManager
方法名 or 属性名: publishReminder|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: reminderAgentManager
方法名 or 属性名: publishReminder|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: reminderAgentManager
方法名 or 属性名: cancelReminder|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: reminderAgentManager
方法名 or 属性名: cancelReminder|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: reminderAgentManager
方法名 or 属性名: getValidReminders|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: reminderAgentManager
方法名 or 属性名: getValidReminders|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: reminderAgentManager
方法名 or 属性名: cancelAllReminders|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: reminderAgentManager
方法名 or 属性名: cancelAllReminders|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: reminderAgentManager
方法名 or 属性名: addNotificationSlot|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: reminderAgentManager
方法名 or 属性名: addNotificationSlot|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: reminderAgentManager
方法名 or 属性名: removeNotificationSlot|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: reminderAgentManager
方法名 or 属性名: removeNotificationSlot|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: ActionButtonType|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: ActionButtonType
方法名 or 属性名: ACTION_BUTTON_TYPE_CLOSE|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: ActionButtonType
方法名 or 属性名: ACTION_BUTTON_TYPE_SNOOZE|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: ReminderType|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: ReminderType
方法名 or 属性名: REMINDER_TYPE_TIMER|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: ReminderType
方法名 or 属性名: REMINDER_TYPE_CALENDAR|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: ReminderType
方法名 or 属性名: REMINDER_TYPE_ALARM|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: ActionButton|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: ActionButton
方法名 or 属性名: title|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: ActionButton
方法名 or 属性名: type|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: WantAgent|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: WantAgent
方法名 or 属性名: pkgName|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: WantAgent
方法名 or 属性名: abilityName|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: MaxScreenWantAgent|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: MaxScreenWantAgent
方法名 or 属性名: pkgName|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: MaxScreenWantAgent
方法名 or 属性名: abilityName|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: ReminderRequest|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: ReminderRequest
方法名 or 属性名: reminderType|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: ReminderRequest
方法名 or 属性名: actionButton|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: ReminderRequest
方法名 or 属性名: wantAgent|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: ReminderRequest
方法名 or 属性名: maxScreenWantAgent|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: ReminderRequest
方法名 or 属性名: ringDuration|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: ReminderRequest
方法名 or 属性名: snoozeTimes|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: ReminderRequest
方法名 or 属性名: timeInterval|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: ReminderRequest
方法名 or 属性名: title|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: ReminderRequest
方法名 or 属性名: content|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: ReminderRequest
方法名 or 属性名: expiredContent|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: ReminderRequest
方法名 or 属性名: snoozeContent|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: ReminderRequest
方法名 or 属性名: notificationId|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: ReminderRequest
方法名 or 属性名: slotType|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: ReminderRequestCalendar|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: ReminderRequestCalendar
方法名 or 属性名: dateTime|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: ReminderRequestCalendar
方法名 or 属性名: repeatMonths|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: ReminderRequestCalendar
方法名 or 属性名: repeatDays|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: ReminderRequestAlarm|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: ReminderRequestAlarm
方法名 or 属性名: hour|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: ReminderRequestAlarm
方法名 or 属性名: minute|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: ReminderRequestAlarm
方法名 or 属性名: daysOfWeek|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: ReminderRequestTimer|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: ReminderRequestTimer
方法名 or 属性名: triggerTimeInSeconds|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: LocalDateTime|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: LocalDateTime
方法名 or 属性名: year|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: LocalDateTime
方法名 or 属性名: month|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: LocalDateTime
方法名 or 属性名: day|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: LocalDateTime
方法名 or 属性名: hour|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: LocalDateTime
方法名 or 属性名: minute|@ohos.reminderAgentManager.d.ts| +|新增|NA|模块名: ohos.reminderAgentManager
类名: LocalDateTime
方法名 or 属性名: second|@ohos.reminderAgentManager.d.ts| |废弃版本有变化|类名:commonEvent
废弃版本:N/A|类名:commonEvent
废弃版本:9
代替接口:ohos.commonEventManager |@ohos.commonEvent.d.ts| |废弃版本有变化|方法名 or 属性名:publish
废弃版本:N/A|方法名 or 属性名:publish
废弃版本:9
代替接口:ohos.commonEventManager.publish |@ohos.commonEvent.d.ts| |废弃版本有变化|方法名 or 属性名:publish
废弃版本:N/A|方法名 or 属性名:publish
废弃版本:9
代替接口:ohos.commonEventManager.publish |@ohos.commonEvent.d.ts| diff --git a/zh-cn/release-notes/api-diff/v3.2-beta4/js-apidiff-resource-scheduler.md b/zh-cn/release-notes/api-diff/v3.2-beta4/js-apidiff-resource-scheduler.md index d04552e968d1f5357c375f42aa005ad4dfbcf40c..48ed81fb4c71d2067468834500a3e342d21df0bb 100644 --- a/zh-cn/release-notes/api-diff/v3.2-beta4/js-apidiff-resource-scheduler.md +++ b/zh-cn/release-notes/api-diff/v3.2-beta4/js-apidiff-resource-scheduler.md @@ -1,233 +1,233 @@ -| 操作 | 新版本 | 旧版本 | d.ts文件 | +| 操作 | 旧版本 | 新版本 | d.ts文件 | | ---- | ------ | ------ | -------- | -|新增||模块名: ohos.resourceschedule.backgroundTaskManager
类名: backgroundTaskManager|@ohos.resourceschedule.backgroundTaskManager.d.ts| -|新增||模块名: ohos.resourceschedule.backgroundTaskManager
类名: DelaySuspendInfo|@ohos.resourceschedule.backgroundTaskManager.d.ts| -|新增||模块名: ohos.resourceschedule.backgroundTaskManager
类名: DelaySuspendInfo
方法名 or 属性名: requestId|@ohos.resourceschedule.backgroundTaskManager.d.ts| -|新增||模块名: ohos.resourceschedule.backgroundTaskManager
类名: DelaySuspendInfo
方法名 or 属性名: actualDelayTime|@ohos.resourceschedule.backgroundTaskManager.d.ts| -|新增||模块名: ohos.resourceschedule.backgroundTaskManager
类名: backgroundTaskManager
方法名 or 属性名: cancelSuspendDelay|@ohos.resourceschedule.backgroundTaskManager.d.ts| -|新增||模块名: ohos.resourceschedule.backgroundTaskManager
类名: backgroundTaskManager
方法名 or 属性名: getRemainingDelayTime|@ohos.resourceschedule.backgroundTaskManager.d.ts| -|新增||模块名: ohos.resourceschedule.backgroundTaskManager
类名: backgroundTaskManager
方法名 or 属性名: getRemainingDelayTime|@ohos.resourceschedule.backgroundTaskManager.d.ts| -|新增||模块名: ohos.resourceschedule.backgroundTaskManager
类名: backgroundTaskManager
方法名 or 属性名: requestSuspendDelay|@ohos.resourceschedule.backgroundTaskManager.d.ts| -|新增||模块名: ohos.resourceschedule.backgroundTaskManager
类名: backgroundTaskManager
方法名 or 属性名: startBackgroundRunning|@ohos.resourceschedule.backgroundTaskManager.d.ts| -|新增||模块名: ohos.resourceschedule.backgroundTaskManager
类名: backgroundTaskManager
方法名 or 属性名: startBackgroundRunning|@ohos.resourceschedule.backgroundTaskManager.d.ts| -|新增||模块名: ohos.resourceschedule.backgroundTaskManager
类名: backgroundTaskManager
方法名 or 属性名: stopBackgroundRunning|@ohos.resourceschedule.backgroundTaskManager.d.ts| -|新增||模块名: ohos.resourceschedule.backgroundTaskManager
类名: backgroundTaskManager
方法名 or 属性名: stopBackgroundRunning|@ohos.resourceschedule.backgroundTaskManager.d.ts| -|新增||模块名: ohos.resourceschedule.backgroundTaskManager
类名: backgroundTaskManager
方法名 or 属性名: applyEfficiencyResources|@ohos.resourceschedule.backgroundTaskManager.d.ts| -|新增||模块名: ohos.resourceschedule.backgroundTaskManager
类名: backgroundTaskManager
方法名 or 属性名: resetAllEfficiencyResources|@ohos.resourceschedule.backgroundTaskManager.d.ts| -|新增||模块名: ohos.resourceschedule.backgroundTaskManager
类名: BackgroundMode|@ohos.resourceschedule.backgroundTaskManager.d.ts| -|新增||模块名: ohos.resourceschedule.backgroundTaskManager
类名: BackgroundMode
方法名 or 属性名: DATA_TRANSFER|@ohos.resourceschedule.backgroundTaskManager.d.ts| -|新增||模块名: ohos.resourceschedule.backgroundTaskManager
类名: BackgroundMode
方法名 or 属性名: AUDIO_PLAYBACK|@ohos.resourceschedule.backgroundTaskManager.d.ts| -|新增||模块名: ohos.resourceschedule.backgroundTaskManager
类名: BackgroundMode
方法名 or 属性名: AUDIO_RECORDING|@ohos.resourceschedule.backgroundTaskManager.d.ts| -|新增||模块名: ohos.resourceschedule.backgroundTaskManager
类名: BackgroundMode
方法名 or 属性名: LOCATION|@ohos.resourceschedule.backgroundTaskManager.d.ts| -|新增||模块名: ohos.resourceschedule.backgroundTaskManager
类名: BackgroundMode
方法名 or 属性名: BLUETOOTH_INTERACTION|@ohos.resourceschedule.backgroundTaskManager.d.ts| -|新增||模块名: ohos.resourceschedule.backgroundTaskManager
类名: BackgroundMode
方法名 or 属性名: MULTI_DEVICE_CONNECTION|@ohos.resourceschedule.backgroundTaskManager.d.ts| -|新增||模块名: ohos.resourceschedule.backgroundTaskManager
类名: BackgroundMode
方法名 or 属性名: WIFI_INTERACTION|@ohos.resourceschedule.backgroundTaskManager.d.ts| -|新增||模块名: ohos.resourceschedule.backgroundTaskManager
类名: BackgroundMode
方法名 or 属性名: VOIP|@ohos.resourceschedule.backgroundTaskManager.d.ts| -|新增||模块名: ohos.resourceschedule.backgroundTaskManager
类名: BackgroundMode
方法名 or 属性名: TASK_KEEPING|@ohos.resourceschedule.backgroundTaskManager.d.ts| -|新增||模块名: ohos.resourceschedule.backgroundTaskManager
类名: ResourceType|@ohos.resourceschedule.backgroundTaskManager.d.ts| -|新增||模块名: ohos.resourceschedule.backgroundTaskManager
类名: ResourceType
方法名 or 属性名: CPU|@ohos.resourceschedule.backgroundTaskManager.d.ts| -|新增||模块名: ohos.resourceschedule.backgroundTaskManager
类名: ResourceType
方法名 or 属性名: COMMON_EVENT|@ohos.resourceschedule.backgroundTaskManager.d.ts| -|新增||模块名: ohos.resourceschedule.backgroundTaskManager
类名: ResourceType
方法名 or 属性名: TIMER|@ohos.resourceschedule.backgroundTaskManager.d.ts| -|新增||模块名: ohos.resourceschedule.backgroundTaskManager
类名: ResourceType
方法名 or 属性名: WORK_SCHEDULER|@ohos.resourceschedule.backgroundTaskManager.d.ts| -|新增||模块名: ohos.resourceschedule.backgroundTaskManager
类名: ResourceType
方法名 or 属性名: BLUETOOTH|@ohos.resourceschedule.backgroundTaskManager.d.ts| -|新增||模块名: ohos.resourceschedule.backgroundTaskManager
类名: ResourceType
方法名 or 属性名: GPS|@ohos.resourceschedule.backgroundTaskManager.d.ts| -|新增||模块名: ohos.resourceschedule.backgroundTaskManager
类名: ResourceType
方法名 or 属性名: AUDIO|@ohos.resourceschedule.backgroundTaskManager.d.ts| -|新增||模块名: ohos.resourceschedule.backgroundTaskManager
类名: EfficiencyResourcesRequest|@ohos.resourceschedule.backgroundTaskManager.d.ts| -|新增||模块名: ohos.resourceschedule.backgroundTaskManager
类名: EfficiencyResourcesRequest
方法名 or 属性名: resourceTypes|@ohos.resourceschedule.backgroundTaskManager.d.ts| -|新增||模块名: ohos.resourceschedule.backgroundTaskManager
类名: EfficiencyResourcesRequest
方法名 or 属性名: isApply|@ohos.resourceschedule.backgroundTaskManager.d.ts| -|新增||模块名: ohos.resourceschedule.backgroundTaskManager
类名: EfficiencyResourcesRequest
方法名 or 属性名: timeOut|@ohos.resourceschedule.backgroundTaskManager.d.ts| -|新增||模块名: ohos.resourceschedule.backgroundTaskManager
类名: EfficiencyResourcesRequest
方法名 or 属性名: isPersist|@ohos.resourceschedule.backgroundTaskManager.d.ts| -|新增||模块名: ohos.resourceschedule.backgroundTaskManager
类名: EfficiencyResourcesRequest
方法名 or 属性名: isProcess|@ohos.resourceschedule.backgroundTaskManager.d.ts| -|新增||模块名: ohos.resourceschedule.backgroundTaskManager
类名: EfficiencyResourcesRequest
方法名 or 属性名: reason|@ohos.resourceschedule.backgroundTaskManager.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: BundleStatsInfo|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: BundleStatsInfo
方法名 or 属性名: id|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: BundleStatsInfo
方法名 or 属性名: abilityInFgTotalTime|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: BundleStatsInfo
方法名 or 属性名: abilityPrevAccessTime|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: BundleStatsInfo
方法名 or 属性名: abilityPrevSeenTime|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: BundleStatsInfo
方法名 or 属性名: abilitySeenTotalTime|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: BundleStatsInfo
方法名 or 属性名: bundleName|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: BundleStatsInfo
方法名 or 属性名: fgAbilityAccessTotalTime|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: BundleStatsInfo
方法名 or 属性名: fgAbilityPrevAccessTime|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: BundleStatsInfo
方法名 or 属性名: infosBeginTime|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: BundleStatsInfo
方法名 or 属性名: infosEndTime|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: HapFormInfo|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: HapFormInfo
方法名 or 属性名: formName|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: HapFormInfo
方法名 or 属性名: formDimension|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: HapFormInfo
方法名 or 属性名: formId|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: HapFormInfo
方法名 or 属性名: formLastUsedTime|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: HapFormInfo
方法名 or 属性名: count|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: HapModuleInfo|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: HapModuleInfo
方法名 or 属性名: deviceId|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: HapModuleInfo
方法名 or 属性名: bundleName|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: HapModuleInfo
方法名 or 属性名: moduleName|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: HapModuleInfo
方法名 or 属性名: abilityName|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: HapModuleInfo
方法名 or 属性名: appLabelId|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: HapModuleInfo
方法名 or 属性名: labelId|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: HapModuleInfo
方法名 or 属性名: descriptionId|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: HapModuleInfo
方法名 or 属性名: abilityLableId|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: HapModuleInfo
方法名 or 属性名: abilityDescriptionId|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: HapModuleInfo
方法名 or 属性名: abilityIconId|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: HapModuleInfo
方法名 or 属性名: launchedCount|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: HapModuleInfo
方法名 or 属性名: lastModuleUsedTime|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: HapModuleInfo
方法名 or 属性名: formRecords|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: DeviceEventStats|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: DeviceEventStats
方法名 or 属性名: name|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: DeviceEventStats
方法名 or 属性名: eventId|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: DeviceEventStats
方法名 or 属性名: count|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: BundleEvents|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: BundleEvents
方法名 or 属性名: appGroup|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: BundleEvents
方法名 or 属性名: bundleName|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: BundleEvents
方法名 or 属性名: indexOfLink|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: BundleEvents
方法名 or 属性名: nameOfClass|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: BundleEvents
方法名 or 属性名: eventOccurredTime|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: BundleEvents
方法名 or 属性名: eventId|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: AppGroupCallbackInfo|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: AppGroupCallbackInfo
方法名 or 属性名: appOldGroup|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: AppGroupCallbackInfo
方法名 or 属性名: appNewGroup|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: AppGroupCallbackInfo
方法名 or 属性名: userId|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: AppGroupCallbackInfo
方法名 or 属性名: changeReason|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: AppGroupCallbackInfo
方法名 or 属性名: bundleName|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法名 or 属性名: isIdleState|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法名 or 属性名: isIdleState|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法名 or 属性名: queryAppGroup|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法名 or 属性名: queryAppGroup|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法名 or 属性名: queryAppGroup|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法名 or 属性名: queryAppGroup|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: BundleStatsMap|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: BundleStatsMap
方法名 or 属性名: BundleStatsMap|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法名 or 属性名: queryBundleStatsInfos|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法名 or 属性名: queryBundleStatsInfos|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: IntervalType|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: IntervalType
方法名 or 属性名: BY_OPTIMIZED|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: IntervalType
方法名 or 属性名: BY_DAILY|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: IntervalType
方法名 or 属性名: BY_WEEKLY|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: IntervalType
方法名 or 属性名: BY_MONTHLY|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: IntervalType
方法名 or 属性名: BY_ANNUALLY|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法名 or 属性名: queryBundleStatsInfoByInterval|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法名 or 属性名: queryBundleStatsInfoByInterval|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法名 or 属性名: queryBundleEvents|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法名 or 属性名: queryBundleEvents|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法名 or 属性名: queryCurrentBundleEvents|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法名 or 属性名: queryCurrentBundleEvents|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法名 or 属性名: queryModuleUsageRecords|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法名 or 属性名: queryModuleUsageRecords|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法名 or 属性名: queryModuleUsageRecords|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法名 or 属性名: queryModuleUsageRecords|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: GroupType|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: GroupType
方法名 or 属性名: ALIVE_GROUP|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: GroupType
方法名 or 属性名: DAILY_GROUP|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: GroupType
方法名 or 属性名: FIXED_GROUP|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: GroupType
方法名 or 属性名: RARE_GROUP|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: GroupType
方法名 or 属性名: LIMITED_GROUP|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: GroupType
方法名 or 属性名: NEVER_GROUP|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法名 or 属性名: setAppGroup|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法名 or 属性名: setAppGroup|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法名 or 属性名: registerAppGroupCallBack|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法名 or 属性名: registerAppGroupCallBack|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法名 or 属性名: unregisterAppGroupCallBack|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法名 or 属性名: unregisterAppGroupCallBack|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法名 or 属性名: queryDeviceEventStats|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法名 or 属性名: queryDeviceEventStats|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法名 or 属性名: queryNotificationEventStats|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法名 or 属性名: queryNotificationEventStats|@ohos.resourceschedule.usageStatistics.d.ts| -|新增||模块名: ohos.resourceschedule.workScheduler
类名: workScheduler|@ohos.resourceschedule.workScheduler.d.ts| -|新增||模块名: ohos.resourceschedule.workScheduler
类名: WorkInfo|@ohos.resourceschedule.workScheduler.d.ts| -|新增||模块名: ohos.resourceschedule.workScheduler
类名: WorkInfo
方法名 or 属性名: workId|@ohos.resourceschedule.workScheduler.d.ts| -|新增||模块名: ohos.resourceschedule.workScheduler
类名: WorkInfo
方法名 or 属性名: bundleName|@ohos.resourceschedule.workScheduler.d.ts| -|新增||模块名: ohos.resourceschedule.workScheduler
类名: WorkInfo
方法名 or 属性名: abilityName|@ohos.resourceschedule.workScheduler.d.ts| -|新增||模块名: ohos.resourceschedule.workScheduler
类名: WorkInfo
方法名 or 属性名: isPersisted|@ohos.resourceschedule.workScheduler.d.ts| -|新增||模块名: ohos.resourceschedule.workScheduler
类名: WorkInfo
方法名 or 属性名: networkType|@ohos.resourceschedule.workScheduler.d.ts| -|新增||模块名: ohos.resourceschedule.workScheduler
类名: WorkInfo
方法名 or 属性名: isCharging|@ohos.resourceschedule.workScheduler.d.ts| -|新增||模块名: ohos.resourceschedule.workScheduler
类名: WorkInfo
方法名 or 属性名: chargerType|@ohos.resourceschedule.workScheduler.d.ts| -|新增||模块名: ohos.resourceschedule.workScheduler
类名: WorkInfo
方法名 or 属性名: batteryLevel|@ohos.resourceschedule.workScheduler.d.ts| -|新增||模块名: ohos.resourceschedule.workScheduler
类名: WorkInfo
方法名 or 属性名: batteryStatus|@ohos.resourceschedule.workScheduler.d.ts| -|新增||模块名: ohos.resourceschedule.workScheduler
类名: WorkInfo
方法名 or 属性名: storageRequest|@ohos.resourceschedule.workScheduler.d.ts| -|新增||模块名: ohos.resourceschedule.workScheduler
类名: WorkInfo
方法名 or 属性名: repeatCycleTime|@ohos.resourceschedule.workScheduler.d.ts| -|新增||模块名: ohos.resourceschedule.workScheduler
类名: WorkInfo
方法名 or 属性名: isRepeat|@ohos.resourceschedule.workScheduler.d.ts| -|新增||模块名: ohos.resourceschedule.workScheduler
类名: WorkInfo
方法名 or 属性名: repeatCount|@ohos.resourceschedule.workScheduler.d.ts| -|新增||模块名: ohos.resourceschedule.workScheduler
类名: WorkInfo
方法名 or 属性名: isDeepIdle|@ohos.resourceschedule.workScheduler.d.ts| -|新增||模块名: ohos.resourceschedule.workScheduler
类名: WorkInfo
方法名 or 属性名: idleWaitTime|@ohos.resourceschedule.workScheduler.d.ts| -|新增||模块名: ohos.resourceschedule.workScheduler
类名: WorkInfo
方法名 or 属性名: parameters|@ohos.resourceschedule.workScheduler.d.ts| -|新增||模块名: ohos.resourceschedule.workScheduler
类名: workScheduler
方法名 or 属性名: startWork|@ohos.resourceschedule.workScheduler.d.ts| -|新增||模块名: ohos.resourceschedule.workScheduler
类名: workScheduler
方法名 or 属性名: stopWork|@ohos.resourceschedule.workScheduler.d.ts| -|新增||模块名: ohos.resourceschedule.workScheduler
类名: workScheduler
方法名 or 属性名: getWorkStatus|@ohos.resourceschedule.workScheduler.d.ts| -|新增||模块名: ohos.resourceschedule.workScheduler
类名: workScheduler
方法名 or 属性名: getWorkStatus|@ohos.resourceschedule.workScheduler.d.ts| -|新增||模块名: ohos.resourceschedule.workScheduler
类名: workScheduler
方法名 or 属性名: obtainAllWorks|@ohos.resourceschedule.workScheduler.d.ts| -|新增||模块名: ohos.resourceschedule.workScheduler
类名: workScheduler
方法名 or 属性名: obtainAllWorks|@ohos.resourceschedule.workScheduler.d.ts| -|新增||模块名: ohos.resourceschedule.workScheduler
类名: workScheduler
方法名 or 属性名: stopAndClearWorks|@ohos.resourceschedule.workScheduler.d.ts| -|新增||模块名: ohos.resourceschedule.workScheduler
类名: workScheduler
方法名 or 属性名: isLastWorkTimeOut|@ohos.resourceschedule.workScheduler.d.ts| -|新增||模块名: ohos.resourceschedule.workScheduler
类名: workScheduler
方法名 or 属性名: isLastWorkTimeOut|@ohos.resourceschedule.workScheduler.d.ts| -|新增||模块名: ohos.resourceschedule.workScheduler
类名: NetworkType|@ohos.resourceschedule.workScheduler.d.ts| -|新增||模块名: ohos.resourceschedule.workScheduler
类名: NetworkType
方法名 or 属性名: NETWORK_TYPE_ANY|@ohos.resourceschedule.workScheduler.d.ts| -|新增||模块名: ohos.resourceschedule.workScheduler
类名: NetworkType
方法名 or 属性名: NETWORK_TYPE_MOBILE|@ohos.resourceschedule.workScheduler.d.ts| -|新增||模块名: ohos.resourceschedule.workScheduler
类名: NetworkType
方法名 or 属性名: NETWORK_TYPE_WIFI|@ohos.resourceschedule.workScheduler.d.ts| -|新增||模块名: ohos.resourceschedule.workScheduler
类名: NetworkType
方法名 or 属性名: NETWORK_TYPE_BLUETOOTH|@ohos.resourceschedule.workScheduler.d.ts| -|新增||模块名: ohos.resourceschedule.workScheduler
类名: NetworkType
方法名 or 属性名: NETWORK_TYPE_WIFI_P2P|@ohos.resourceschedule.workScheduler.d.ts| -|新增||模块名: ohos.resourceschedule.workScheduler
类名: NetworkType
方法名 or 属性名: NETWORK_TYPE_ETHERNET|@ohos.resourceschedule.workScheduler.d.ts| -|新增||模块名: ohos.resourceschedule.workScheduler
类名: ChargingType|@ohos.resourceschedule.workScheduler.d.ts| -|新增||模块名: ohos.resourceschedule.workScheduler
类名: ChargingType
方法名 or 属性名: CHARGING_PLUGGED_ANY|@ohos.resourceschedule.workScheduler.d.ts| -|新增||模块名: ohos.resourceschedule.workScheduler
类名: ChargingType
方法名 or 属性名: CHARGING_PLUGGED_AC|@ohos.resourceschedule.workScheduler.d.ts| -|新增||模块名: ohos.resourceschedule.workScheduler
类名: ChargingType
方法名 or 属性名: CHARGING_PLUGGED_USB|@ohos.resourceschedule.workScheduler.d.ts| -|新增||模块名: ohos.resourceschedule.workScheduler
类名: ChargingType
方法名 or 属性名: CHARGING_PLUGGED_WIRELESS|@ohos.resourceschedule.workScheduler.d.ts| -|新增||模块名: ohos.resourceschedule.workScheduler
类名: BatteryStatus|@ohos.resourceschedule.workScheduler.d.ts| -|新增||模块名: ohos.resourceschedule.workScheduler
类名: BatteryStatus
方法名 or 属性名: BATTERY_STATUS_LOW|@ohos.resourceschedule.workScheduler.d.ts| -|新增||模块名: ohos.resourceschedule.workScheduler
类名: BatteryStatus
方法名 or 属性名: BATTERY_STATUS_OKAY|@ohos.resourceschedule.workScheduler.d.ts| -|新增||模块名: ohos.resourceschedule.workScheduler
类名: BatteryStatus
方法名 or 属性名: BATTERY_STATUS_LOW_OR_OKAY|@ohos.resourceschedule.workScheduler.d.ts| -|新增||模块名: ohos.resourceschedule.workScheduler
类名: StorageRequest|@ohos.resourceschedule.workScheduler.d.ts| -|新增||模块名: ohos.resourceschedule.workScheduler
类名: StorageRequest
方法名 or 属性名: STORAGE_LEVEL_LOW|@ohos.resourceschedule.workScheduler.d.ts| -|新增||模块名: ohos.resourceschedule.workScheduler
类名: StorageRequest
方法名 or 属性名: STORAGE_LEVEL_OKAY|@ohos.resourceschedule.workScheduler.d.ts| -|新增||模块名: ohos.resourceschedule.workScheduler
类名: StorageRequest
方法名 or 属性名: STORAGE_LEVEL_LOW_OR_OKAY|@ohos.resourceschedule.workScheduler.d.ts| -|删除|模块名: ohos.bundleState
类名: BundleActiveFormInfo||@ohos.bundleState.d.ts| -|删除|模块名: ohos.bundleState
类名: BundleActiveFormInfo
方法名 or 属性名:formName||@ohos.bundleState.d.ts| -|删除|模块名: ohos.bundleState
类名: BundleActiveFormInfo
方法名 or 属性名:formDimension||@ohos.bundleState.d.ts| -|删除|模块名: ohos.bundleState
类名: BundleActiveFormInfo
方法名 or 属性名:formId||@ohos.bundleState.d.ts| -|删除|模块名: ohos.bundleState
类名: BundleActiveFormInfo
方法名 or 属性名:formLastUsedTime||@ohos.bundleState.d.ts| -|删除|模块名: ohos.bundleState
类名: BundleActiveFormInfo
方法名 or 属性名:count||@ohos.bundleState.d.ts| -|删除|模块名: ohos.bundleState
类名: BundleActiveModuleInfo||@ohos.bundleState.d.ts| -|删除|模块名: ohos.bundleState
类名: BundleActiveModuleInfo
方法名 or 属性名:deviceId||@ohos.bundleState.d.ts| -|删除|模块名: ohos.bundleState
类名: BundleActiveModuleInfo
方法名 or 属性名:bundleName||@ohos.bundleState.d.ts| -|删除|模块名: ohos.bundleState
类名: BundleActiveModuleInfo
方法名 or 属性名:moduleName||@ohos.bundleState.d.ts| -|删除|模块名: ohos.bundleState
类名: BundleActiveModuleInfo
方法名 or 属性名:abilityName||@ohos.bundleState.d.ts| -|删除|模块名: ohos.bundleState
类名: BundleActiveModuleInfo
方法名 or 属性名:appLabelId||@ohos.bundleState.d.ts| -|删除|模块名: ohos.bundleState
类名: BundleActiveModuleInfo
方法名 or 属性名:labelId||@ohos.bundleState.d.ts| -|删除|模块名: ohos.bundleState
类名: BundleActiveModuleInfo
方法名 or 属性名:descriptionId||@ohos.bundleState.d.ts| -|删除|模块名: ohos.bundleState
类名: BundleActiveModuleInfo
方法名 or 属性名:abilityLableId||@ohos.bundleState.d.ts| -|删除|模块名: ohos.bundleState
类名: BundleActiveModuleInfo
方法名 or 属性名:abilityDescriptionId||@ohos.bundleState.d.ts| -|删除|模块名: ohos.bundleState
类名: BundleActiveModuleInfo
方法名 or 属性名:abilityIconId||@ohos.bundleState.d.ts| -|删除|模块名: ohos.bundleState
类名: BundleActiveModuleInfo
方法名 or 属性名:launchedCount||@ohos.bundleState.d.ts| -|删除|模块名: ohos.bundleState
类名: BundleActiveModuleInfo
方法名 or 属性名:lastModuleUsedTime||@ohos.bundleState.d.ts| -|删除|模块名: ohos.bundleState
类名: BundleActiveModuleInfo
方法名 or 属性名:formRecords||@ohos.bundleState.d.ts| -|删除|模块名: ohos.bundleState
类名: BundleActiveEventState||@ohos.bundleState.d.ts| -|删除|模块名: ohos.bundleState
类名: BundleActiveEventState
方法名 or 属性名:name||@ohos.bundleState.d.ts| -|删除|模块名: ohos.bundleState
类名: BundleActiveEventState
方法名 or 属性名:eventId||@ohos.bundleState.d.ts| -|删除|模块名: ohos.bundleState
类名: BundleActiveEventState
方法名 or 属性名:count||@ohos.bundleState.d.ts| -|删除|模块名: ohos.bundleState
类名: BundleActiveGroupCallbackInfo||@ohos.bundleState.d.ts| -|删除|模块名: ohos.bundleState
类名: BundleActiveGroupCallbackInfo
方法名 or 属性名:appUsageOldGroup||@ohos.bundleState.d.ts| -|删除|模块名: ohos.bundleState
类名: BundleActiveGroupCallbackInfo
方法名 or 属性名:appUsageNewGroup||@ohos.bundleState.d.ts| -|删除|模块名: ohos.bundleState
类名: BundleActiveGroupCallbackInfo
方法名 or 属性名:userId||@ohos.bundleState.d.ts| -|删除|模块名: ohos.bundleState
类名: BundleActiveGroupCallbackInfo
方法名 or 属性名:changeReason||@ohos.bundleState.d.ts| -|删除|模块名: ohos.bundleState
类名: BundleActiveGroupCallbackInfo
方法名 or 属性名:bundleName||@ohos.bundleState.d.ts| -|删除|模块名:ohos.bundleState
类名:bundleState
方法名 or 属性名:getRecentlyUsedModules||@ohos.bundleState.d.ts| -|删除|模块名:ohos.bundleState
类名:bundleState
方法名 or 属性名:getRecentlyUsedModules||@ohos.bundleState.d.ts| -|删除|模块名:ohos.bundleState
类名:bundleState
方法名 or 属性名:getRecentlyUsedModules||@ohos.bundleState.d.ts| -|删除|模块名: ohos.bundleState
类名: GroupType||@ohos.bundleState.d.ts| -|删除|模块名: ohos.bundleState
类名: GroupType
方法名 or 属性名:ACTIVE_GROUP_ALIVE||@ohos.bundleState.d.ts| -|删除|模块名: ohos.bundleState
类名: GroupType
方法名 or 属性名:ACTIVE_GROUP_DAILY||@ohos.bundleState.d.ts| -|删除|模块名: ohos.bundleState
类名: GroupType
方法名 or 属性名:ACTIVE_GROUP_FIXED||@ohos.bundleState.d.ts| -|删除|模块名: ohos.bundleState
类名: GroupType
方法名 or 属性名:ACTIVE_GROUP_RARE||@ohos.bundleState.d.ts| -|删除|模块名: ohos.bundleState
类名: GroupType
方法名 or 属性名:ACTIVE_GROUP_LIMIT||@ohos.bundleState.d.ts| -|删除|模块名: ohos.bundleState
类名: GroupType
方法名 or 属性名:ACTIVE_GROUP_NEVER||@ohos.bundleState.d.ts| -|删除|模块名:ohos.bundleState
类名:bundleState
方法名 or 属性名:setBundleGroup||@ohos.bundleState.d.ts| -|删除|模块名:ohos.bundleState
类名:bundleState
方法名 or 属性名:setBundleGroup||@ohos.bundleState.d.ts| -|删除|模块名:ohos.bundleState
类名:bundleState
方法名 or 属性名:registerGroupCallBack||@ohos.bundleState.d.ts| -|删除|模块名:ohos.bundleState
类名:bundleState
方法名 or 属性名:registerGroupCallBack||@ohos.bundleState.d.ts| -|删除|模块名:ohos.bundleState
类名:bundleState
方法名 or 属性名:unRegisterGroupCallBack||@ohos.bundleState.d.ts| -|删除|模块名:ohos.bundleState
类名:bundleState
方法名 or 属性名:unRegisterGroupCallBack||@ohos.bundleState.d.ts| -|删除|模块名:ohos.bundleState
类名:bundleState
方法名 or 属性名:queryBundleActiveEventStates||@ohos.bundleState.d.ts| -|删除|模块名:ohos.bundleState
类名:bundleState
方法名 or 属性名:queryBundleActiveEventStates||@ohos.bundleState.d.ts| -|删除|模块名:ohos.bundleState
类名:bundleState
方法名 or 属性名:queryAppNotificationNumber||@ohos.bundleState.d.ts| -|删除|模块名:ohos.bundleState
类名:bundleState
方法名 or 属性名:queryAppNotificationNumber||@ohos.bundleState.d.ts| +|新增|NA|模块名: ohos.resourceschedule.backgroundTaskManager
类名: backgroundTaskManager|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|新增|NA|模块名: ohos.resourceschedule.backgroundTaskManager
类名: DelaySuspendInfo|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|新增|NA|模块名: ohos.resourceschedule.backgroundTaskManager
类名: DelaySuspendInfo
方法名 or 属性名: requestId|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|新增|NA|模块名: ohos.resourceschedule.backgroundTaskManager
类名: DelaySuspendInfo
方法名 or 属性名: actualDelayTime|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|新增|NA|模块名: ohos.resourceschedule.backgroundTaskManager
类名: backgroundTaskManager
方法名 or 属性名: cancelSuspendDelay|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|新增|NA|模块名: ohos.resourceschedule.backgroundTaskManager
类名: backgroundTaskManager
方法名 or 属性名: getRemainingDelayTime|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|新增|NA|模块名: ohos.resourceschedule.backgroundTaskManager
类名: backgroundTaskManager
方法名 or 属性名: getRemainingDelayTime|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|新增|NA|模块名: ohos.resourceschedule.backgroundTaskManager
类名: backgroundTaskManager
方法名 or 属性名: requestSuspendDelay|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|新增|NA|模块名: ohos.resourceschedule.backgroundTaskManager
类名: backgroundTaskManager
方法名 or 属性名: startBackgroundRunning|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|新增|NA|模块名: ohos.resourceschedule.backgroundTaskManager
类名: backgroundTaskManager
方法名 or 属性名: startBackgroundRunning|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|新增|NA|模块名: ohos.resourceschedule.backgroundTaskManager
类名: backgroundTaskManager
方法名 or 属性名: stopBackgroundRunning|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|新增|NA|模块名: ohos.resourceschedule.backgroundTaskManager
类名: backgroundTaskManager
方法名 or 属性名: stopBackgroundRunning|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|新增|NA|模块名: ohos.resourceschedule.backgroundTaskManager
类名: backgroundTaskManager
方法名 or 属性名: applyEfficiencyResources|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|新增|NA|模块名: ohos.resourceschedule.backgroundTaskManager
类名: backgroundTaskManager
方法名 or 属性名: resetAllEfficiencyResources|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|新增|NA|模块名: ohos.resourceschedule.backgroundTaskManager
类名: BackgroundMode|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|新增|NA|模块名: ohos.resourceschedule.backgroundTaskManager
类名: BackgroundMode
方法名 or 属性名: DATA_TRANSFER|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|新增|NA|模块名: ohos.resourceschedule.backgroundTaskManager
类名: BackgroundMode
方法名 or 属性名: AUDIO_PLAYBACK|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|新增|NA|模块名: ohos.resourceschedule.backgroundTaskManager
类名: BackgroundMode
方法名 or 属性名: AUDIO_RECORDING|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|新增|NA|模块名: ohos.resourceschedule.backgroundTaskManager
类名: BackgroundMode
方法名 or 属性名: LOCATION|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|新增|NA|模块名: ohos.resourceschedule.backgroundTaskManager
类名: BackgroundMode
方法名 or 属性名: BLUETOOTH_INTERACTION|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|新增|NA|模块名: ohos.resourceschedule.backgroundTaskManager
类名: BackgroundMode
方法名 or 属性名: MULTI_DEVICE_CONNECTION|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|新增|NA|模块名: ohos.resourceschedule.backgroundTaskManager
类名: BackgroundMode
方法名 or 属性名: WIFI_INTERACTION|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|新增|NA|模块名: ohos.resourceschedule.backgroundTaskManager
类名: BackgroundMode
方法名 or 属性名: VOIP|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|新增|NA|模块名: ohos.resourceschedule.backgroundTaskManager
类名: BackgroundMode
方法名 or 属性名: TASK_KEEPING|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|新增|NA|模块名: ohos.resourceschedule.backgroundTaskManager
类名: ResourceType|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|新增|NA|模块名: ohos.resourceschedule.backgroundTaskManager
类名: ResourceType
方法名 or 属性名: CPU|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|新增|NA|模块名: ohos.resourceschedule.backgroundTaskManager
类名: ResourceType
方法名 or 属性名: COMMON_EVENT|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|新增|NA|模块名: ohos.resourceschedule.backgroundTaskManager
类名: ResourceType
方法名 or 属性名: TIMER|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|新增|NA|模块名: ohos.resourceschedule.backgroundTaskManager
类名: ResourceType
方法名 or 属性名: WORK_SCHEDULER|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|新增|NA|模块名: ohos.resourceschedule.backgroundTaskManager
类名: ResourceType
方法名 or 属性名: BLUETOOTH|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|新增|NA|模块名: ohos.resourceschedule.backgroundTaskManager
类名: ResourceType
方法名 or 属性名: GPS|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|新增|NA|模块名: ohos.resourceschedule.backgroundTaskManager
类名: ResourceType
方法名 or 属性名: AUDIO|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|新增|NA|模块名: ohos.resourceschedule.backgroundTaskManager
类名: EfficiencyResourcesRequest|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|新增|NA|模块名: ohos.resourceschedule.backgroundTaskManager
类名: EfficiencyResourcesRequest
方法名 or 属性名: resourceTypes|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|新增|NA|模块名: ohos.resourceschedule.backgroundTaskManager
类名: EfficiencyResourcesRequest
方法名 or 属性名: isApply|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|新增|NA|模块名: ohos.resourceschedule.backgroundTaskManager
类名: EfficiencyResourcesRequest
方法名 or 属性名: timeOut|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|新增|NA|模块名: ohos.resourceschedule.backgroundTaskManager
类名: EfficiencyResourcesRequest
方法名 or 属性名: isPersist|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|新增|NA|模块名: ohos.resourceschedule.backgroundTaskManager
类名: EfficiencyResourcesRequest
方法名 or 属性名: isProcess|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|新增|NA|模块名: ohos.resourceschedule.backgroundTaskManager
类名: EfficiencyResourcesRequest
方法名 or 属性名: reason|@ohos.resourceschedule.backgroundTaskManager.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: BundleStatsInfo|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: BundleStatsInfo
方法名 or 属性名: id|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: BundleStatsInfo
方法名 or 属性名: abilityInFgTotalTime|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: BundleStatsInfo
方法名 or 属性名: abilityPrevAccessTime|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: BundleStatsInfo
方法名 or 属性名: abilityPrevSeenTime|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: BundleStatsInfo
方法名 or 属性名: abilitySeenTotalTime|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: BundleStatsInfo
方法名 or 属性名: bundleName|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: BundleStatsInfo
方法名 or 属性名: fgAbilityAccessTotalTime|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: BundleStatsInfo
方法名 or 属性名: fgAbilityPrevAccessTime|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: BundleStatsInfo
方法名 or 属性名: infosBeginTime|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: BundleStatsInfo
方法名 or 属性名: infosEndTime|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: HapFormInfo|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: HapFormInfo
方法名 or 属性名: formName|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: HapFormInfo
方法名 or 属性名: formDimension|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: HapFormInfo
方法名 or 属性名: formId|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: HapFormInfo
方法名 or 属性名: formLastUsedTime|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: HapFormInfo
方法名 or 属性名: count|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: HapModuleInfo|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: HapModuleInfo
方法名 or 属性名: deviceId|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: HapModuleInfo
方法名 or 属性名: bundleName|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: HapModuleInfo
方法名 or 属性名: moduleName|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: HapModuleInfo
方法名 or 属性名: abilityName|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: HapModuleInfo
方法名 or 属性名: appLabelId|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: HapModuleInfo
方法名 or 属性名: labelId|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: HapModuleInfo
方法名 or 属性名: descriptionId|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: HapModuleInfo
方法名 or 属性名: abilityLableId|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: HapModuleInfo
方法名 or 属性名: abilityDescriptionId|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: HapModuleInfo
方法名 or 属性名: abilityIconId|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: HapModuleInfo
方法名 or 属性名: launchedCount|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: HapModuleInfo
方法名 or 属性名: lastModuleUsedTime|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: HapModuleInfo
方法名 or 属性名: formRecords|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: DeviceEventStats|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: DeviceEventStats
方法名 or 属性名: name|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: DeviceEventStats
方法名 or 属性名: eventId|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: DeviceEventStats
方法名 or 属性名: count|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: BundleEvents|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: BundleEvents
方法名 or 属性名: appGroup|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: BundleEvents
方法名 or 属性名: bundleName|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: BundleEvents
方法名 or 属性名: indexOfLink|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: BundleEvents
方法名 or 属性名: nameOfClass|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: BundleEvents
方法名 or 属性名: eventOccurredTime|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: BundleEvents
方法名 or 属性名: eventId|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: AppGroupCallbackInfo|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: AppGroupCallbackInfo
方法名 or 属性名: appOldGroup|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: AppGroupCallbackInfo
方法名 or 属性名: appNewGroup|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: AppGroupCallbackInfo
方法名 or 属性名: userId|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: AppGroupCallbackInfo
方法名 or 属性名: changeReason|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: AppGroupCallbackInfo
方法名 or 属性名: bundleName|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法名 or 属性名: isIdleState|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法名 or 属性名: isIdleState|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法名 or 属性名: queryAppGroup|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法名 or 属性名: queryAppGroup|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法名 or 属性名: queryAppGroup|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法名 or 属性名: queryAppGroup|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: BundleStatsMap|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: BundleStatsMap
方法名 or 属性名: BundleStatsMap|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法名 or 属性名: queryBundleStatsInfos|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法名 or 属性名: queryBundleStatsInfos|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: IntervalType|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: IntervalType
方法名 or 属性名: BY_OPTIMIZED|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: IntervalType
方法名 or 属性名: BY_DAILY|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: IntervalType
方法名 or 属性名: BY_WEEKLY|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: IntervalType
方法名 or 属性名: BY_MONTHLY|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: IntervalType
方法名 or 属性名: BY_ANNUALLY|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法名 or 属性名: queryBundleStatsInfoByInterval|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法名 or 属性名: queryBundleStatsInfoByInterval|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法名 or 属性名: queryBundleEvents|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法名 or 属性名: queryBundleEvents|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法名 or 属性名: queryCurrentBundleEvents|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法名 or 属性名: queryCurrentBundleEvents|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法名 or 属性名: queryModuleUsageRecords|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法名 or 属性名: queryModuleUsageRecords|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法名 or 属性名: queryModuleUsageRecords|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法名 or 属性名: queryModuleUsageRecords|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: GroupType|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: GroupType
方法名 or 属性名: ALIVE_GROUP|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: GroupType
方法名 or 属性名: DAILY_GROUP|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: GroupType
方法名 or 属性名: FIXED_GROUP|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: GroupType
方法名 or 属性名: RARE_GROUP|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: GroupType
方法名 or 属性名: LIMITED_GROUP|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: GroupType
方法名 or 属性名: NEVER_GROUP|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法名 or 属性名: setAppGroup|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法名 or 属性名: setAppGroup|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法名 or 属性名: registerAppGroupCallBack|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法名 or 属性名: registerAppGroupCallBack|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法名 or 属性名: unregisterAppGroupCallBack|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法名 or 属性名: unregisterAppGroupCallBack|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法名 or 属性名: queryDeviceEventStats|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法名 or 属性名: queryDeviceEventStats|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法名 or 属性名: queryNotificationEventStats|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.usageStatistics
类名: usageStatistics
方法名 or 属性名: queryNotificationEventStats|@ohos.resourceschedule.usageStatistics.d.ts| +|新增|NA|模块名: ohos.resourceschedule.workScheduler
类名: workScheduler|@ohos.resourceschedule.workScheduler.d.ts| +|新增|NA|模块名: ohos.resourceschedule.workScheduler
类名: WorkInfo|@ohos.resourceschedule.workScheduler.d.ts| +|新增|NA|模块名: ohos.resourceschedule.workScheduler
类名: WorkInfo
方法名 or 属性名: workId|@ohos.resourceschedule.workScheduler.d.ts| +|新增|NA|模块名: ohos.resourceschedule.workScheduler
类名: WorkInfo
方法名 or 属性名: bundleName|@ohos.resourceschedule.workScheduler.d.ts| +|新增|NA|模块名: ohos.resourceschedule.workScheduler
类名: WorkInfo
方法名 or 属性名: abilityName|@ohos.resourceschedule.workScheduler.d.ts| +|新增|NA|模块名: ohos.resourceschedule.workScheduler
类名: WorkInfo
方法名 or 属性名: isPersisted|@ohos.resourceschedule.workScheduler.d.ts| +|新增|NA|模块名: ohos.resourceschedule.workScheduler
类名: WorkInfo
方法名 or 属性名: networkType|@ohos.resourceschedule.workScheduler.d.ts| +|新增|NA|模块名: ohos.resourceschedule.workScheduler
类名: WorkInfo
方法名 or 属性名: isCharging|@ohos.resourceschedule.workScheduler.d.ts| +|新增|NA|模块名: ohos.resourceschedule.workScheduler
类名: WorkInfo
方法名 or 属性名: chargerType|@ohos.resourceschedule.workScheduler.d.ts| +|新增|NA|模块名: ohos.resourceschedule.workScheduler
类名: WorkInfo
方法名 or 属性名: batteryLevel|@ohos.resourceschedule.workScheduler.d.ts| +|新增|NA|模块名: ohos.resourceschedule.workScheduler
类名: WorkInfo
方法名 or 属性名: batteryStatus|@ohos.resourceschedule.workScheduler.d.ts| +|新增|NA|模块名: ohos.resourceschedule.workScheduler
类名: WorkInfo
方法名 or 属性名: storageRequest|@ohos.resourceschedule.workScheduler.d.ts| +|新增|NA|模块名: ohos.resourceschedule.workScheduler
类名: WorkInfo
方法名 or 属性名: repeatCycleTime|@ohos.resourceschedule.workScheduler.d.ts| +|新增|NA|模块名: ohos.resourceschedule.workScheduler
类名: WorkInfo
方法名 or 属性名: isRepeat|@ohos.resourceschedule.workScheduler.d.ts| +|新增|NA|模块名: ohos.resourceschedule.workScheduler
类名: WorkInfo
方法名 or 属性名: repeatCount|@ohos.resourceschedule.workScheduler.d.ts| +|新增|NA|模块名: ohos.resourceschedule.workScheduler
类名: WorkInfo
方法名 or 属性名: isDeepIdle|@ohos.resourceschedule.workScheduler.d.ts| +|新增|NA|模块名: ohos.resourceschedule.workScheduler
类名: WorkInfo
方法名 or 属性名: idleWaitTime|@ohos.resourceschedule.workScheduler.d.ts| +|新增|NA|模块名: ohos.resourceschedule.workScheduler
类名: WorkInfo
方法名 or 属性名: parameters|@ohos.resourceschedule.workScheduler.d.ts| +|新增|NA|模块名: ohos.resourceschedule.workScheduler
类名: workScheduler
方法名 or 属性名: startWork|@ohos.resourceschedule.workScheduler.d.ts| +|新增|NA|模块名: ohos.resourceschedule.workScheduler
类名: workScheduler
方法名 or 属性名: stopWork|@ohos.resourceschedule.workScheduler.d.ts| +|新增|NA|模块名: ohos.resourceschedule.workScheduler
类名: workScheduler
方法名 or 属性名: getWorkStatus|@ohos.resourceschedule.workScheduler.d.ts| +|新增|NA|模块名: ohos.resourceschedule.workScheduler
类名: workScheduler
方法名 or 属性名: getWorkStatus|@ohos.resourceschedule.workScheduler.d.ts| +|新增|NA|模块名: ohos.resourceschedule.workScheduler
类名: workScheduler
方法名 or 属性名: obtainAllWorks|@ohos.resourceschedule.workScheduler.d.ts| +|新增|NA|模块名: ohos.resourceschedule.workScheduler
类名: workScheduler
方法名 or 属性名: obtainAllWorks|@ohos.resourceschedule.workScheduler.d.ts| +|新增|NA|模块名: ohos.resourceschedule.workScheduler
类名: workScheduler
方法名 or 属性名: stopAndClearWorks|@ohos.resourceschedule.workScheduler.d.ts| +|新增|NA|模块名: ohos.resourceschedule.workScheduler
类名: workScheduler
方法名 or 属性名: isLastWorkTimeOut|@ohos.resourceschedule.workScheduler.d.ts| +|新增|NA|模块名: ohos.resourceschedule.workScheduler
类名: workScheduler
方法名 or 属性名: isLastWorkTimeOut|@ohos.resourceschedule.workScheduler.d.ts| +|新增|NA|模块名: ohos.resourceschedule.workScheduler
类名: NetworkType|@ohos.resourceschedule.workScheduler.d.ts| +|新增|NA|模块名: ohos.resourceschedule.workScheduler
类名: NetworkType
方法名 or 属性名: NETWORK_TYPE_ANY|@ohos.resourceschedule.workScheduler.d.ts| +|新增|NA|模块名: ohos.resourceschedule.workScheduler
类名: NetworkType
方法名 or 属性名: NETWORK_TYPE_MOBILE|@ohos.resourceschedule.workScheduler.d.ts| +|新增|NA|模块名: ohos.resourceschedule.workScheduler
类名: NetworkType
方法名 or 属性名: NETWORK_TYPE_WIFI|@ohos.resourceschedule.workScheduler.d.ts| +|新增|NA|模块名: ohos.resourceschedule.workScheduler
类名: NetworkType
方法名 or 属性名: NETWORK_TYPE_BLUETOOTH|@ohos.resourceschedule.workScheduler.d.ts| +|新增|NA|模块名: ohos.resourceschedule.workScheduler
类名: NetworkType
方法名 or 属性名: NETWORK_TYPE_WIFI_P2P|@ohos.resourceschedule.workScheduler.d.ts| +|新增|NA|模块名: ohos.resourceschedule.workScheduler
类名: NetworkType
方法名 or 属性名: NETWORK_TYPE_ETHERNET|@ohos.resourceschedule.workScheduler.d.ts| +|新增|NA|模块名: ohos.resourceschedule.workScheduler
类名: ChargingType|@ohos.resourceschedule.workScheduler.d.ts| +|新增|NA|模块名: ohos.resourceschedule.workScheduler
类名: ChargingType
方法名 or 属性名: CHARGING_PLUGGED_ANY|@ohos.resourceschedule.workScheduler.d.ts| +|新增|NA|模块名: ohos.resourceschedule.workScheduler
类名: ChargingType
方法名 or 属性名: CHARGING_PLUGGED_AC|@ohos.resourceschedule.workScheduler.d.ts| +|新增|NA|模块名: ohos.resourceschedule.workScheduler
类名: ChargingType
方法名 or 属性名: CHARGING_PLUGGED_USB|@ohos.resourceschedule.workScheduler.d.ts| +|新增|NA|模块名: ohos.resourceschedule.workScheduler
类名: ChargingType
方法名 or 属性名: CHARGING_PLUGGED_WIRELESS|@ohos.resourceschedule.workScheduler.d.ts| +|新增|NA|模块名: ohos.resourceschedule.workScheduler
类名: BatteryStatus|@ohos.resourceschedule.workScheduler.d.ts| +|新增|NA|模块名: ohos.resourceschedule.workScheduler
类名: BatteryStatus
方法名 or 属性名: BATTERY_STATUS_LOW|@ohos.resourceschedule.workScheduler.d.ts| +|新增|NA|模块名: ohos.resourceschedule.workScheduler
类名: BatteryStatus
方法名 or 属性名: BATTERY_STATUS_OKAY|@ohos.resourceschedule.workScheduler.d.ts| +|新增|NA|模块名: ohos.resourceschedule.workScheduler
类名: BatteryStatus
方法名 or 属性名: BATTERY_STATUS_LOW_OR_OKAY|@ohos.resourceschedule.workScheduler.d.ts| +|新增|NA|模块名: ohos.resourceschedule.workScheduler
类名: StorageRequest|@ohos.resourceschedule.workScheduler.d.ts| +|新增|NA|模块名: ohos.resourceschedule.workScheduler
类名: StorageRequest
方法名 or 属性名: STORAGE_LEVEL_LOW|@ohos.resourceschedule.workScheduler.d.ts| +|新增|NA|模块名: ohos.resourceschedule.workScheduler
类名: StorageRequest
方法名 or 属性名: STORAGE_LEVEL_OKAY|@ohos.resourceschedule.workScheduler.d.ts| +|新增|NA|模块名: ohos.resourceschedule.workScheduler
类名: StorageRequest
方法名 or 属性名: STORAGE_LEVEL_LOW_OR_OKAY|@ohos.resourceschedule.workScheduler.d.ts| +|删除|模块名: ohos.bundleState
类名: BundleActiveFormInfo|NA|@ohos.bundleState.d.ts| +|删除|模块名: ohos.bundleState
类名: BundleActiveFormInfo
方法名 or 属性名:formName|NA|@ohos.bundleState.d.ts| +|删除|模块名: ohos.bundleState
类名: BundleActiveFormInfo
方法名 or 属性名:formDimension|NA|@ohos.bundleState.d.ts| +|删除|模块名: ohos.bundleState
类名: BundleActiveFormInfo
方法名 or 属性名:formId|NA|@ohos.bundleState.d.ts| +|删除|模块名: ohos.bundleState
类名: BundleActiveFormInfo
方法名 or 属性名:formLastUsedTime|NA|@ohos.bundleState.d.ts| +|删除|模块名: ohos.bundleState
类名: BundleActiveFormInfo
方法名 or 属性名:count|NA|@ohos.bundleState.d.ts| +|删除|模块名: ohos.bundleState
类名: BundleActiveModuleInfo|NA|@ohos.bundleState.d.ts| +|删除|模块名: ohos.bundleState
类名: BundleActiveModuleInfo
方法名 or 属性名:deviceId|NA|@ohos.bundleState.d.ts| +|删除|模块名: ohos.bundleState
类名: BundleActiveModuleInfo
方法名 or 属性名:bundleName|NA|@ohos.bundleState.d.ts| +|删除|模块名: ohos.bundleState
类名: BundleActiveModuleInfo
方法名 or 属性名:moduleName|NA|@ohos.bundleState.d.ts| +|删除|模块名: ohos.bundleState
类名: BundleActiveModuleInfo
方法名 or 属性名:abilityName|NA|@ohos.bundleState.d.ts| +|删除|模块名: ohos.bundleState
类名: BundleActiveModuleInfo
方法名 or 属性名:appLabelId|NA|@ohos.bundleState.d.ts| +|删除|模块名: ohos.bundleState
类名: BundleActiveModuleInfo
方法名 or 属性名:labelId|NA|@ohos.bundleState.d.ts| +|删除|模块名: ohos.bundleState
类名: BundleActiveModuleInfo
方法名 or 属性名:descriptionId|NA|@ohos.bundleState.d.ts| +|删除|模块名: ohos.bundleState
类名: BundleActiveModuleInfo
方法名 or 属性名:abilityLableId|NA|@ohos.bundleState.d.ts| +|删除|模块名: ohos.bundleState
类名: BundleActiveModuleInfo
方法名 or 属性名:abilityDescriptionId|NA|@ohos.bundleState.d.ts| +|删除|模块名: ohos.bundleState
类名: BundleActiveModuleInfo
方法名 or 属性名:abilityIconId|NA|@ohos.bundleState.d.ts| +|删除|模块名: ohos.bundleState
类名: BundleActiveModuleInfo
方法名 or 属性名:launchedCount|NA|@ohos.bundleState.d.ts| +|删除|模块名: ohos.bundleState
类名: BundleActiveModuleInfo
方法名 or 属性名:lastModuleUsedTime|NA|@ohos.bundleState.d.ts| +|删除|模块名: ohos.bundleState
类名: BundleActiveModuleInfo
方法名 or 属性名:formRecords|NA|@ohos.bundleState.d.ts| +|删除|模块名: ohos.bundleState
类名: BundleActiveEventState|NA|@ohos.bundleState.d.ts| +|删除|模块名: ohos.bundleState
类名: BundleActiveEventState
方法名 or 属性名:name|NA|@ohos.bundleState.d.ts| +|删除|模块名: ohos.bundleState
类名: BundleActiveEventState
方法名 or 属性名:eventId|NA|@ohos.bundleState.d.ts| +|删除|模块名: ohos.bundleState
类名: BundleActiveEventState
方法名 or 属性名:count|NA|@ohos.bundleState.d.ts| +|删除|模块名: ohos.bundleState
类名: BundleActiveGroupCallbackInfo|NA|@ohos.bundleState.d.ts| +|删除|模块名: ohos.bundleState
类名: BundleActiveGroupCallbackInfo
方法名 or 属性名:appUsageOldGroup|NA|@ohos.bundleState.d.ts| +|删除|模块名: ohos.bundleState
类名: BundleActiveGroupCallbackInfo
方法名 or 属性名:appUsageNewGroup|NA|@ohos.bundleState.d.ts| +|删除|模块名: ohos.bundleState
类名: BundleActiveGroupCallbackInfo
方法名 or 属性名:userId|NA|@ohos.bundleState.d.ts| +|删除|模块名: ohos.bundleState
类名: BundleActiveGroupCallbackInfo
方法名 or 属性名:changeReason|NA|@ohos.bundleState.d.ts| +|删除|模块名: ohos.bundleState
类名: BundleActiveGroupCallbackInfo
方法名 or 属性名:bundleName|NA|@ohos.bundleState.d.ts| +|删除|模块名:ohos.bundleState
类名:bundleState
方法名 or 属性名:getRecentlyUsedModules|NA|@ohos.bundleState.d.ts| +|删除|模块名:ohos.bundleState
类名:bundleState
方法名 or 属性名:getRecentlyUsedModules|NA|@ohos.bundleState.d.ts| +|删除|模块名:ohos.bundleState
类名:bundleState
方法名 or 属性名:getRecentlyUsedModules|NA|@ohos.bundleState.d.ts| +|删除|模块名: ohos.bundleState
类名: GroupType|NA|@ohos.bundleState.d.ts| +|删除|模块名: ohos.bundleState
类名: GroupType
方法名 or 属性名:ACTIVE_GROUP_ALIVE|NA|@ohos.bundleState.d.ts| +|删除|模块名: ohos.bundleState
类名: GroupType
方法名 or 属性名:ACTIVE_GROUP_DAILY|NA|@ohos.bundleState.d.ts| +|删除|模块名: ohos.bundleState
类名: GroupType
方法名 or 属性名:ACTIVE_GROUP_FIXED|NA|@ohos.bundleState.d.ts| +|删除|模块名: ohos.bundleState
类名: GroupType
方法名 or 属性名:ACTIVE_GROUP_RARE|NA|@ohos.bundleState.d.ts| +|删除|模块名: ohos.bundleState
类名: GroupType
方法名 or 属性名:ACTIVE_GROUP_LIMIT|NA|@ohos.bundleState.d.ts| +|删除|模块名: ohos.bundleState
类名: GroupType
方法名 or 属性名:ACTIVE_GROUP_NEVER|NA|@ohos.bundleState.d.ts| +|删除|模块名:ohos.bundleState
类名:bundleState
方法名 or 属性名:setBundleGroup|NA|@ohos.bundleState.d.ts| +|删除|模块名:ohos.bundleState
类名:bundleState
方法名 or 属性名:setBundleGroup|NA|@ohos.bundleState.d.ts| +|删除|模块名:ohos.bundleState
类名:bundleState
方法名 or 属性名:registerGroupCallBack|NA|@ohos.bundleState.d.ts| +|删除|模块名:ohos.bundleState
类名:bundleState
方法名 or 属性名:registerGroupCallBack|NA|@ohos.bundleState.d.ts| +|删除|模块名:ohos.bundleState
类名:bundleState
方法名 or 属性名:unRegisterGroupCallBack|NA|@ohos.bundleState.d.ts| +|删除|模块名:ohos.bundleState
类名:bundleState
方法名 or 属性名:unRegisterGroupCallBack|NA|@ohos.bundleState.d.ts| +|删除|模块名:ohos.bundleState
类名:bundleState
方法名 or 属性名:queryBundleActiveEventStates|NA|@ohos.bundleState.d.ts| +|删除|模块名:ohos.bundleState
类名:bundleState
方法名 or 属性名:queryBundleActiveEventStates|NA|@ohos.bundleState.d.ts| +|删除|模块名:ohos.bundleState
类名:bundleState
方法名 or 属性名:queryAppNotificationNumber|NA|@ohos.bundleState.d.ts| +|删除|模块名:ohos.bundleState
类名:bundleState
方法名 or 属性名:queryAppNotificationNumber|NA|@ohos.bundleState.d.ts| |废弃版本有变化|方法名 or 属性名:startBackgroundRunning
废弃版本:N/A|方法名 or 属性名:startBackgroundRunning
废弃版本:9
代替接口:ohos.resourceschedule.backgroundTaskManager.startBackgroundRunning |@ohos.ability.particleAbility.d.ts| |废弃版本有变化|方法名 or 属性名:startBackgroundRunning
废弃版本:N/A|方法名 or 属性名:startBackgroundRunning
废弃版本:9|@ohos.ability.particleAbility.d.ts| |废弃版本有变化|方法名 or 属性名:cancelBackgroundRunning
废弃版本:N/A|方法名 or 属性名:cancelBackgroundRunning
废弃版本:9
代替接口:ohos.resourceschedule.backgroundTaskManager.stopBackgroundRunning |@ohos.ability.particleAbility.d.ts| diff --git a/zh-cn/release-notes/api-diff/v3.2-beta4/js-apidiff-security.md b/zh-cn/release-notes/api-diff/v3.2-beta4/js-apidiff-security.md index 1b13390af56fada68a336f1e0fcd207a888c3141..de7457ee5faa52268e94525b9e2637d7af929eb4 100644 --- a/zh-cn/release-notes/api-diff/v3.2-beta4/js-apidiff-security.md +++ b/zh-cn/release-notes/api-diff/v3.2-beta4/js-apidiff-security.md @@ -1,76 +1,48 @@ -| 操作 | 新版本 | 旧版本 | d.ts文件 | +| 操作 | 旧版本 | 新版本 | d.ts文件 | | ---- | ------ | ------ | -------- | -|新增||模块名:ohos.abilityAccessCtrl
类名:AtManager
方法名 or 属性名:checkAccessToken|@ohos.abilityAccessCtrl.d.ts| -|新增||方法名 or 属性名:grantUserGrantedPermission
函数:grantUserGrantedPermission(tokenID: number, permissionName: Permissions, permissionFlag: number): Promise;|@ohos.abilityAccessCtrl.d.ts| -|新增||方法名 or 属性名:grantUserGrantedPermission
函数:grantUserGrantedPermission(tokenID: number, permissionName: Permissions, permissionFlag: number, callback: AsyncCallback): void;|@ohos.abilityAccessCtrl.d.ts| -|新增||方法名 or 属性名:revokeUserGrantedPermission
函数:revokeUserGrantedPermission(tokenID: number, permissionName: Permissions, permissionFlag: number): Promise;|@ohos.abilityAccessCtrl.d.ts| -|新增||方法名 or 属性名:revokeUserGrantedPermission
函数:revokeUserGrantedPermission(tokenID: number, permissionName: Permissions, permissionFlag: number, callback: AsyncCallback): void;|@ohos.abilityAccessCtrl.d.ts| -|新增||方法名 or 属性名:permissionName
函数:permissionName: Permissions;|@ohos.abilityAccessCtrl.d.ts| -|新增||方法名 or 属性名:addPermissionUsedRecord
函数:function addPermissionUsedRecord(tokenID: number, permissionName: Permissions, successCount: number, failCount: number): Promise;|@ohos.privacyManager.d.ts| -|新增||方法名 or 属性名:addPermissionUsedRecord
函数:function addPermissionUsedRecord(tokenID: number, permissionName: Permissions, successCount: number, failCount: number, callback: AsyncCallback): void;|@ohos.privacyManager.d.ts| -|新增||方法名 or 属性名:startUsingPermission
函数:function startUsingPermission(tokenID: number, permissionName: Permissions): Promise;|@ohos.privacyManager.d.ts| -|新增||方法名 or 属性名:startUsingPermission
函数:function startUsingPermission(tokenID: number, permissionName: Permissions, callback: AsyncCallback): void;|@ohos.privacyManager.d.ts| -|新增||方法名 or 属性名:stopUsingPermission
函数:function stopUsingPermission(tokenID: number, permissionName: Permissions): Promise;|@ohos.privacyManager.d.ts| -|新增||方法名 or 属性名:stopUsingPermission
函数:function stopUsingPermission(tokenID: number, permissionName: Permissions, callback: AsyncCallback): void;|@ohos.privacyManager.d.ts| -|新增||方法名 or 属性名:permissionNames
函数:permissionNames: Array;|@ohos.privacyManager.d.ts| -|新增||模块名:ohos.security.cryptoFramework
类名:Result
方法名 or 属性名:ERR_RUNTIME_ERROR|@ohos.security.cryptoFramework.d.ts| -|新增||模块名:ohos.security.huks
类名:huks
方法名 or 属性名:generateKeyItem|@ohos.security.huks.d.ts| -|新增||模块名:ohos.security.huks
类名:huks
方法名 or 属性名:generateKeyItem|@ohos.security.huks.d.ts| -|新增||模块名:ohos.security.huks
类名:huks
方法名 or 属性名:deleteKeyItem|@ohos.security.huks.d.ts| -|新增||模块名:ohos.security.huks
类名:huks
方法名 or 属性名:deleteKeyItem|@ohos.security.huks.d.ts| -|新增||模块名:ohos.security.huks
类名:huks
方法名 or 属性名:importKeyItem|@ohos.security.huks.d.ts| -|新增||模块名:ohos.security.huks
类名:huks
方法名 or 属性名:importKeyItem|@ohos.security.huks.d.ts| -|新增||模块名:ohos.security.huks
类名:huks
方法名 or 属性名:importWrappedKeyItem|@ohos.security.huks.d.ts| -|新增||模块名:ohos.security.huks
类名:huks
方法名 or 属性名:importWrappedKeyItem|@ohos.security.huks.d.ts| -|新增||模块名:ohos.security.huks
类名:huks
方法名 or 属性名:exportKeyItem|@ohos.security.huks.d.ts| -|新增||模块名:ohos.security.huks
类名:huks
方法名 or 属性名:exportKeyItem|@ohos.security.huks.d.ts| -|新增||模块名:ohos.security.huks
类名:huks
方法名 or 属性名:getKeyItemProperties|@ohos.security.huks.d.ts| -|新增||模块名:ohos.security.huks
类名:huks
方法名 or 属性名:getKeyItemProperties|@ohos.security.huks.d.ts| -|新增||模块名:ohos.security.huks
类名:huks
方法名 or 属性名:isKeyItemExist|@ohos.security.huks.d.ts| -|新增||模块名:ohos.security.huks
类名:huks
方法名 or 属性名:isKeyItemExist|@ohos.security.huks.d.ts| -|新增||模块名:ohos.security.huks
类名:huks
方法名 or 属性名:initSession|@ohos.security.huks.d.ts| -|新增||模块名:ohos.security.huks
类名:huks
方法名 or 属性名:initSession|@ohos.security.huks.d.ts| -|新增||模块名:ohos.security.huks
类名:huks
方法名 or 属性名:updateSession|@ohos.security.huks.d.ts| -|新增||模块名:ohos.security.huks
类名:huks
方法名 or 属性名:updateSession|@ohos.security.huks.d.ts| -|新增||模块名:ohos.security.huks
类名:huks
方法名 or 属性名:updateSession|@ohos.security.huks.d.ts| -|新增||模块名:ohos.security.huks
类名:huks
方法名 or 属性名:finishSession|@ohos.security.huks.d.ts| -|新增||模块名:ohos.security.huks
类名:huks
方法名 or 属性名:finishSession|@ohos.security.huks.d.ts| -|新增||模块名:ohos.security.huks
类名:huks
方法名 or 属性名:finishSession|@ohos.security.huks.d.ts| -|新增||模块名:ohos.security.huks
类名:huks
方法名 or 属性名:abortSession|@ohos.security.huks.d.ts| -|新增||模块名:ohos.security.huks
类名:huks
方法名 or 属性名:abortSession|@ohos.security.huks.d.ts| -|新增||模块名:ohos.security.huks
类名:huks
方法名 or 属性名:attestKeyItem|@ohos.security.huks.d.ts| -|新增||模块名:ohos.security.huks
类名:huks
方法名 or 属性名:attestKeyItem|@ohos.security.huks.d.ts| -|新增||模块名: ohos.security.huks
类名: HuksSessionHandle|@ohos.security.huks.d.ts| -|新增||模块名: ohos.security.huks
类名: HuksSessionHandle
方法名 or 属性名:handle|@ohos.security.huks.d.ts| -|新增||模块名: ohos.security.huks
类名: HuksSessionHandle
方法名 or 属性名:challenge|@ohos.security.huks.d.ts| -|新增||模块名: ohos.security.huks
类名: HuksReturnResult|@ohos.security.huks.d.ts| -|新增||模块名: ohos.security.huks
类名: HuksReturnResult
方法名 or 属性名:outData|@ohos.security.huks.d.ts| -|新增||模块名: ohos.security.huks
类名: HuksReturnResult
方法名 or 属性名:properties|@ohos.security.huks.d.ts| -|新增||模块名: ohos.security.huks
类名: HuksReturnResult
方法名 or 属性名:certChains|@ohos.security.huks.d.ts| -|新增||模块名: ohos.security.huks
类名: HuksExceptionErrCode|@ohos.security.huks.d.ts| -|新增||模块名: ohos.security.huks
类名: HuksExceptionErrCode
方法名 or 属性名:HUKS_ERR_CODE_PERMISSION_FAIL|@ohos.security.huks.d.ts| -|新增||模块名: ohos.security.huks
类名: HuksExceptionErrCode
方法名 or 属性名:HUKS_ERR_CODE_ILLEGAL_ARGUMENT|@ohos.security.huks.d.ts| -|新增||模块名: ohos.security.huks
类名: HuksExceptionErrCode
方法名 or 属性名:HUKS_ERR_CODE_NOT_SUPPORTED_API|@ohos.security.huks.d.ts| -|新增||模块名: ohos.security.huks
类名: HuksExceptionErrCode
方法名 or 属性名:HUKS_ERR_CODE_FEATURE_NOT_SUPPORTED|@ohos.security.huks.d.ts| -|新增||模块名: ohos.security.huks
类名: HuksExceptionErrCode
方法名 or 属性名:HUKS_ERR_CODE_MISSING_CRYPTO_ALG_ARGUMENT|@ohos.security.huks.d.ts| -|新增||模块名: ohos.security.huks
类名: HuksExceptionErrCode
方法名 or 属性名:HUKS_ERR_CODE_INVALID_CRYPTO_ALG_ARGUMENT|@ohos.security.huks.d.ts| -|新增||模块名: ohos.security.huks
类名: HuksExceptionErrCode
方法名 or 属性名:HUKS_ERR_CODE_FILE_OPERATION_FAIL|@ohos.security.huks.d.ts| -|新增||模块名: ohos.security.huks
类名: HuksExceptionErrCode
方法名 or 属性名:HUKS_ERR_CODE_COMMUNICATION_FAIL|@ohos.security.huks.d.ts| -|新增||模块名: ohos.security.huks
类名: HuksExceptionErrCode
方法名 or 属性名:HUKS_ERR_CODE_CRYPTO_FAIL|@ohos.security.huks.d.ts| -|新增||模块名: ohos.security.huks
类名: HuksExceptionErrCode
方法名 or 属性名:HUKS_ERR_CODE_KEY_AUTH_PERMANENTLY_INVALIDATED|@ohos.security.huks.d.ts| -|新增||模块名: ohos.security.huks
类名: HuksExceptionErrCode
方法名 or 属性名:HUKS_ERR_CODE_KEY_AUTH_VERIFY_FAILED|@ohos.security.huks.d.ts| -|新增||模块名: ohos.security.huks
类名: HuksExceptionErrCode
方法名 or 属性名:HUKS_ERR_CODE_KEY_AUTH_TIME_OUT|@ohos.security.huks.d.ts| -|新增||模块名: ohos.security.huks
类名: HuksExceptionErrCode
方法名 or 属性名:HUKS_ERR_CODE_SESSION_LIMIT|@ohos.security.huks.d.ts| -|新增||模块名: ohos.security.huks
类名: HuksExceptionErrCode
方法名 or 属性名:HUKS_ERR_CODE_ITEM_NOT_EXIST|@ohos.security.huks.d.ts| -|新增||模块名: ohos.security.huks
类名: HuksExceptionErrCode
方法名 or 属性名:HUKS_ERR_CODE_EXTERNAL_ERROR|@ohos.security.huks.d.ts| -|新增||模块名: ohos.security.huks
类名: HuksExceptionErrCode
方法名 or 属性名:HUKS_ERR_CODE_CREDENTIAL_NOT_EXIST|@ohos.security.huks.d.ts| -|新增||模块名: ohos.security.huks
类名: HuksExceptionErrCode
方法名 or 属性名:HUKS_ERR_CODE_INSUFFICIENT_MEMORY|@ohos.security.huks.d.ts| -|新增||模块名: ohos.security.huks
类名: HuksExceptionErrCode
方法名 or 属性名:HUKS_ERR_CODE_CALL_SERVICE_FAILED|@ohos.security.huks.d.ts| -|删除|模块名:ohos.security.cryptoFramework
类名:Result
方法名 or 属性名:ERR_EXTERNAL_ERROR||@ohos.security.cryptoFramework.d.ts| -|删除|模块名:ohos.security.huks
类名:huks
方法名 or 属性名:importWrappedKey||@ohos.security.huks.d.ts| -|删除|模块名:ohos.security.huks
类名:huks
方法名 or 属性名:importWrappedKey||@ohos.security.huks.d.ts| -|删除|模块名:ohos.security.huks
类名:huks
方法名 or 属性名:attestKey||@ohos.security.huks.d.ts| -|删除|模块名:ohos.security.huks
类名:huks
方法名 or 属性名:attestKey||@ohos.security.huks.d.ts| +|新增|NA|方法名 or 属性名:grantUserGrantedPermission
函数:grantUserGrantedPermission(tokenID: number, permissionName: Permissions, permissionFlag: number): Promise;|@ohos.abilityAccessCtrl.d.ts| +|新增|NA|方法名 or 属性名:grantUserGrantedPermission
函数:grantUserGrantedPermission(tokenID: number, permissionName: Permissions, permissionFlag: number, callback: AsyncCallback): void;|@ohos.abilityAccessCtrl.d.ts| +|新增|NA|方法名 or 属性名:revokeUserGrantedPermission
函数:revokeUserGrantedPermission(tokenID: number, permissionName: Permissions, permissionFlag: number): Promise;|@ohos.abilityAccessCtrl.d.ts| +|新增|NA|方法名 or 属性名:revokeUserGrantedPermission
函数:revokeUserGrantedPermission(tokenID: number, permissionName: Permissions, permissionFlag: number, callback: AsyncCallback): void;|@ohos.abilityAccessCtrl.d.ts| +|新增|NA|方法名 or 属性名:permissionName
函数:permissionName: Permissions;|@ohos.abilityAccessCtrl.d.ts| +|新增|NA|方法名 or 属性名:addPermissionUsedRecord
函数:function addPermissionUsedRecord(tokenID: number, permissionName: Permissions, successCount: number, failCount: number): Promise;|@ohos.privacyManager.d.ts| +|新增|NA|方法名 or 属性名:addPermissionUsedRecord
函数:function addPermissionUsedRecord(tokenID: number, permissionName: Permissions, successCount: number, failCount: number, callback: AsyncCallback): void;|@ohos.privacyManager.d.ts| +|新增|NA|方法名 or 属性名:startUsingPermission
函数:function startUsingPermission(tokenID: number, permissionName: Permissions): Promise;|@ohos.privacyManager.d.ts| +|新增|NA|方法名 or 属性名:startUsingPermission
函数:function startUsingPermission(tokenID: number, permissionName: Permissions, callback: AsyncCallback): void;|@ohos.privacyManager.d.ts| +|新增|NA|方法名 or 属性名:stopUsingPermission
函数:function stopUsingPermission(tokenID: number, permissionName: Permissions): Promise;|@ohos.privacyManager.d.ts| +|新增|NA|方法名 or 属性名:stopUsingPermission
函数:function stopUsingPermission(tokenID: number, permissionName: Permissions, callback: AsyncCallback): void;|@ohos.privacyManager.d.ts| +|新增|NA|方法名 or 属性名:permissionNames
函数:permissionNames: Array;|@ohos.privacyManager.d.ts| +|新增|NA|模块名: ohos.security.huks
类名: HuksSessionHandle|@ohos.security.huks.d.ts| +|新增|NA|模块名: ohos.security.huks
类名: HuksSessionHandle
方法名 or 属性名:handle|@ohos.security.huks.d.ts| +|新增|NA|模块名: ohos.security.huks
类名: HuksSessionHandle
方法名 or 属性名:challenge|@ohos.security.huks.d.ts| +|新增|NA|模块名: ohos.security.huks
类名: HuksReturnResult|@ohos.security.huks.d.ts| +|新增|NA|模块名: ohos.security.huks
类名: HuksReturnResult
方法名 or 属性名:outData|@ohos.security.huks.d.ts| +|新增|NA|模块名: ohos.security.huks
类名: HuksReturnResult
方法名 or 属性名:properties|@ohos.security.huks.d.ts| +|新增|NA|模块名: ohos.security.huks
类名: HuksReturnResult
方法名 or 属性名:certChains|@ohos.security.huks.d.ts| +|新增|NA|模块名: ohos.security.huks
类名: HuksExceptionErrCode|@ohos.security.huks.d.ts| +|新增|NA|模块名: ohos.security.huks
类名: HuksExceptionErrCode
方法名 or 属性名:HUKS_ERR_CODE_PERMISSION_FAIL|@ohos.security.huks.d.ts| +|新增|NA|模块名: ohos.security.huks
类名: HuksExceptionErrCode
方法名 or 属性名:HUKS_ERR_CODE_ILLEGAL_ARGUMENT|@ohos.security.huks.d.ts| +|新增|NA|模块名: ohos.security.huks
类名: HuksExceptionErrCode
方法名 or 属性名:HUKS_ERR_CODE_NOT_SUPPORTED_API|@ohos.security.huks.d.ts| +|新增|NA|模块名: ohos.security.huks
类名: HuksExceptionErrCode
方法名 or 属性名:HUKS_ERR_CODE_FEATURE_NOT_SUPPORTED|@ohos.security.huks.d.ts| +|新增|NA|模块名: ohos.security.huks
类名: HuksExceptionErrCode
方法名 or 属性名:HUKS_ERR_CODE_MISSING_CRYPTO_ALG_ARGUMENT|@ohos.security.huks.d.ts| +|新增|NA|模块名: ohos.security.huks
类名: HuksExceptionErrCode
方法名 or 属性名:HUKS_ERR_CODE_INVALID_CRYPTO_ALG_ARGUMENT|@ohos.security.huks.d.ts| +|新增|NA|模块名: ohos.security.huks
类名: HuksExceptionErrCode
方法名 or 属性名:HUKS_ERR_CODE_FILE_OPERATION_FAIL|@ohos.security.huks.d.ts| +|新增|NA|模块名: ohos.security.huks
类名: HuksExceptionErrCode
方法名 or 属性名:HUKS_ERR_CODE_COMMUNICATION_FAIL|@ohos.security.huks.d.ts| +|新增|NA|模块名: ohos.security.huks
类名: HuksExceptionErrCode
方法名 or 属性名:HUKS_ERR_CODE_CRYPTO_FAIL|@ohos.security.huks.d.ts| +|新增|NA|模块名: ohos.security.huks
类名: HuksExceptionErrCode
方法名 or 属性名:HUKS_ERR_CODE_KEY_AUTH_PERMANENTLY_INVALIDATED|@ohos.security.huks.d.ts| +|新增|NA|模块名: ohos.security.huks
类名: HuksExceptionErrCode
方法名 or 属性名:HUKS_ERR_CODE_KEY_AUTH_VERIFY_FAILED|@ohos.security.huks.d.ts| +|新增|NA|模块名: ohos.security.huks
类名: HuksExceptionErrCode
方法名 or 属性名:HUKS_ERR_CODE_KEY_AUTH_TIME_OUT|@ohos.security.huks.d.ts| +|新增|NA|模块名: ohos.security.huks
类名: HuksExceptionErrCode
方法名 or 属性名:HUKS_ERR_CODE_SESSION_LIMIT|@ohos.security.huks.d.ts| +|新增|NA|模块名: ohos.security.huks
类名: HuksExceptionErrCode
方法名 or 属性名:HUKS_ERR_CODE_ITEM_NOT_EXIST|@ohos.security.huks.d.ts| +|新增|NA|模块名: ohos.security.huks
类名: HuksExceptionErrCode
方法名 or 属性名:HUKS_ERR_CODE_EXTERNAL_ERROR|@ohos.security.huks.d.ts| +|新增|NA|模块名: ohos.security.huks
类名: HuksExceptionErrCode
方法名 or 属性名:HUKS_ERR_CODE_CREDENTIAL_NOT_EXIST|@ohos.security.huks.d.ts| +|新增|NA|模块名: ohos.security.huks
类名: HuksExceptionErrCode
方法名 or 属性名:HUKS_ERR_CODE_INSUFFICIENT_MEMORY|@ohos.security.huks.d.ts| +|新增|NA|模块名: ohos.security.huks
类名: HuksExceptionErrCode
方法名 or 属性名:HUKS_ERR_CODE_CALL_SERVICE_FAILED|@ohos.security.huks.d.ts| +|删除|模块名:ohos.security.cryptoFramework
类名:Result
方法名 or 属性名:ERR_EXTERNAL_ERROR|NA|@ohos.security.cryptoFramework.d.ts| +|删除|模块名:ohos.security.huks
类名:huks
方法名 or 属性名:importWrappedKey|NA|@ohos.security.huks.d.ts| +|删除|模块名:ohos.security.huks
类名:huks
方法名 or 属性名:importWrappedKey|NA|@ohos.security.huks.d.ts| +|删除|模块名:ohos.security.huks
类名:huks
方法名 or 属性名:attestKey|NA|@ohos.security.huks.d.ts| +|删除|模块名:ohos.security.huks
类名:huks
方法名 or 属性名:attestKey|NA|@ohos.security.huks.d.ts| |废弃版本有变化|方法名 or 属性名:verifyAccessToken
废弃版本:N/A|方法名 or 属性名:verifyAccessToken
废弃版本:9
代替接口:ohos.abilityAccessCtrl.AtManager|@ohos.abilityAccessCtrl.d.ts| |废弃版本有变化|方法名 or 属性名:generateKey
废弃版本:N/A|方法名 or 属性名:generateKey
废弃版本:9
代替接口:ohos.security.huks.generateKeyItem |@ohos.security.huks.d.ts| |废弃版本有变化|方法名 or 属性名:generateKey
废弃版本:N/A|方法名 or 属性名:generateKey
废弃版本:9|@ohos.security.huks.d.ts| @@ -103,10 +75,10 @@ |起始版本有变化|方法名 or 属性名:update
起始版本:9|方法名 or 属性名:update
起始版本:8|@ohos.security.huks.d.ts| |起始版本有变化|方法名 or 属性名:update
起始版本:9|方法名 or 属性名:update
起始版本:8|@ohos.security.huks.d.ts| |起始版本有变化|方法名 or 属性名:update
起始版本:9|方法名 or 属性名:update
起始版本:8|@ohos.security.huks.d.ts| -|新增(错误码)||方法名 or 属性名:verifyAccessTokenSync
错误码内容:401,12100001|@ohos.abilityAccessCtrl.d.ts| -|新增(错误码)||方法名 or 属性名:getPermissionFlags
错误码内容:401,201,12100001,12100002,12100003,12100006,12100007|@ohos.abilityAccessCtrl.d.ts| -|新增(错误码)||方法名 or 属性名:on_permissionStateChange
错误码内容:401,201,12100001,12100004,12100005,12100007,12100008|@ohos.abilityAccessCtrl.d.ts| -|新增(错误码)||方法名 or 属性名:off_permissionStateChange
错误码内容:401,201,12100001,12100004,12100007,12100008|@ohos.abilityAccessCtrl.d.ts| -|新增(错误码)||方法名 or 属性名:getPermissionUsedRecords
错误码内容:401,201,12100001,12100002,12100003,12100007,12100008|@ohos.privacyManager.d.ts| -|新增(错误码)||方法名 or 属性名:on_activeStateChange
错误码内容:401,201,12100001,12100004,12100005,12100007,12100008|@ohos.privacyManager.d.ts| -|新增(错误码)||方法名 or 属性名:off_activeStateChange
错误码内容:401,201,12100001,12100004,12100007,12100008|@ohos.privacyManager.d.ts| +|新增(错误码)|NA|方法名 or 属性名:verifyAccessTokenSync
错误码内容:401,12100001|@ohos.abilityAccessCtrl.d.ts| +|新增(错误码)|NA|方法名 or 属性名:getPermissionFlags
错误码内容:401,201,12100001,12100002,12100003,12100006,12100007|@ohos.abilityAccessCtrl.d.ts| +|新增(错误码)|NA|方法名 or 属性名:on_permissionStateChange
错误码内容:401,201,12100001,12100004,12100005,12100007,12100008|@ohos.abilityAccessCtrl.d.ts| +|新增(错误码)|NA|方法名 or 属性名:off_permissionStateChange
错误码内容:401,201,12100001,12100004,12100007,12100008|@ohos.abilityAccessCtrl.d.ts| +|新增(错误码)|NA|方法名 or 属性名:getPermissionUsedRecords
错误码内容:401,201,12100001,12100002,12100003,12100007,12100008|@ohos.privacyManager.d.ts| +|新增(错误码)|NA|方法名 or 属性名:on_activeStateChange
错误码内容:401,201,12100001,12100004,12100005,12100007,12100008|@ohos.privacyManager.d.ts| +|新增(错误码)|NA|方法名 or 属性名:off_activeStateChange
错误码内容:401,201,12100001,12100004,12100007,12100008|@ohos.privacyManager.d.ts| diff --git a/zh-cn/release-notes/api-diff/v3.2-beta4/js-apidiff-sensor.md b/zh-cn/release-notes/api-diff/v3.2-beta4/js-apidiff-sensor.md index 114398c93017a8548e9ffe9d4435b87443cad225..03de66ebabdf7700d005de363138fe9c7e7cb65e 100644 --- a/zh-cn/release-notes/api-diff/v3.2-beta4/js-apidiff-sensor.md +++ b/zh-cn/release-notes/api-diff/v3.2-beta4/js-apidiff-sensor.md @@ -1,128 +1,59 @@ -| 操作 | 新版本 | 旧版本 | d.ts文件 | +| 操作 | 旧版本 | 新版本 | d.ts文件 | | ---- | ------ | ------ | -------- | -|新增||模块名: ohos.sensor
类名: SensorId|@ohos.sensor.d.ts| -|新增||模块名: ohos.sensor
类名: SensorId
方法名 or 属性名:ACCELEROMETER|@ohos.sensor.d.ts| -|新增||模块名: ohos.sensor
类名: SensorId
方法名 or 属性名:GYROSCOPE|@ohos.sensor.d.ts| -|新增||模块名: ohos.sensor
类名: SensorId
方法名 or 属性名:AMBIENT_LIGHT|@ohos.sensor.d.ts| -|新增||模块名: ohos.sensor
类名: SensorId
方法名 or 属性名:MAGNETIC_FIELD|@ohos.sensor.d.ts| -|新增||模块名: ohos.sensor
类名: SensorId
方法名 or 属性名:BAROMETER|@ohos.sensor.d.ts| -|新增||模块名: ohos.sensor
类名: SensorId
方法名 or 属性名:HALL|@ohos.sensor.d.ts| -|新增||模块名: ohos.sensor
类名: SensorId
方法名 or 属性名:PROXIMITY|@ohos.sensor.d.ts| -|新增||模块名: ohos.sensor
类名: SensorId
方法名 or 属性名:HUMIDITY|@ohos.sensor.d.ts| -|新增||模块名: ohos.sensor
类名: SensorId
方法名 or 属性名:ORIENTATION|@ohos.sensor.d.ts| -|新增||模块名: ohos.sensor
类名: SensorId
方法名 or 属性名:GRAVITY|@ohos.sensor.d.ts| -|新增||模块名: ohos.sensor
类名: SensorId
方法名 or 属性名:LINEAR_ACCELEROMETER|@ohos.sensor.d.ts| -|新增||模块名: ohos.sensor
类名: SensorId
方法名 or 属性名:ROTATION_VECTOR|@ohos.sensor.d.ts| -|新增||模块名: ohos.sensor
类名: SensorId
方法名 or 属性名:AMBIENT_TEMPERATURE|@ohos.sensor.d.ts| -|新增||模块名: ohos.sensor
类名: SensorId
方法名 or 属性名:MAGNETIC_FIELD_UNCALIBRATED|@ohos.sensor.d.ts| -|新增||模块名: ohos.sensor
类名: SensorId
方法名 or 属性名:GYROSCOPE_UNCALIBRATED|@ohos.sensor.d.ts| -|新增||模块名: ohos.sensor
类名: SensorId
方法名 or 属性名:SIGNIFICANT_MOTION|@ohos.sensor.d.ts| -|新增||模块名: ohos.sensor
类名: SensorId
方法名 or 属性名:PEDOMETER_DETECTION|@ohos.sensor.d.ts| -|新增||模块名: ohos.sensor
类名: SensorId
方法名 or 属性名:PEDOMETER|@ohos.sensor.d.ts| -|新增||模块名: ohos.sensor
类名: SensorId
方法名 or 属性名:HEART_RATE|@ohos.sensor.d.ts| -|新增||模块名: ohos.sensor
类名: SensorId
方法名 or 属性名:WEAR_DETECTION|@ohos.sensor.d.ts| -|新增||模块名: ohos.sensor
类名: SensorId
方法名 or 属性名:ACCELEROMETER_UNCALIBRATED|@ohos.sensor.d.ts| -|新增||模块名:ohos.sensor
类名:sensor
方法名 or 属性名:on_SensorId_ACCELEROMETER|@ohos.sensor.d.ts| -|新增||模块名:ohos.sensor
类名:sensor
方法名 or 属性名:on_SensorId_ACCELEROMETER_UNCALIBRATED|@ohos.sensor.d.ts| -|新增||模块名:ohos.sensor
类名:sensor
方法名 or 属性名:on_SensorId_AMBIENT_LIGHT|@ohos.sensor.d.ts| -|新增||模块名:ohos.sensor
类名:sensor
方法名 or 属性名:on_SensorId_AMBIENT_TEMPERATURE|@ohos.sensor.d.ts| -|新增||模块名:ohos.sensor
类名:sensor
方法名 or 属性名:on_SensorId_BAROMETER|@ohos.sensor.d.ts| -|新增||模块名:ohos.sensor
类名:sensor
方法名 or 属性名:on_SensorId_GRAVITY|@ohos.sensor.d.ts| -|新增||模块名:ohos.sensor
类名:sensor
方法名 or 属性名:on_SensorId_GYROSCOPE|@ohos.sensor.d.ts| -|新增||模块名:ohos.sensor
类名:sensor
方法名 or 属性名:on_SensorId_GYROSCOPE_UNCALIBRATED|@ohos.sensor.d.ts| -|新增||模块名:ohos.sensor
类名:sensor
方法名 or 属性名:on_SensorId_HALL|@ohos.sensor.d.ts| -|新增||模块名:ohos.sensor
类名:sensor
方法名 or 属性名:on_SensorId_HEART_RATE|@ohos.sensor.d.ts| -|新增||模块名:ohos.sensor
类名:sensor
方法名 or 属性名:on_SensorId_HUMIDITY|@ohos.sensor.d.ts| -|新增||模块名:ohos.sensor
类名:sensor
方法名 or 属性名:on_SensorId_LINEAR_ACCELEROMETER|@ohos.sensor.d.ts| -|新增||模块名:ohos.sensor
类名:sensor
方法名 or 属性名:on_SensorId_MAGNETIC_FIELD|@ohos.sensor.d.ts| -|新增||模块名:ohos.sensor
类名:sensor
方法名 or 属性名:on_SensorId_MAGNETIC_FIELD_UNCALIBRATED|@ohos.sensor.d.ts| -|新增||模块名:ohos.sensor
类名:sensor
方法名 or 属性名:on_SensorId_ORIENTATION|@ohos.sensor.d.ts| -|新增||模块名:ohos.sensor
类名:sensor
方法名 or 属性名:on_SensorId_PEDOMETER|@ohos.sensor.d.ts| -|新增||模块名:ohos.sensor
类名:sensor
方法名 or 属性名:on_SensorId_PEDOMETER_DETECTION|@ohos.sensor.d.ts| -|新增||模块名:ohos.sensor
类名:sensor
方法名 or 属性名:on_SensorId_PROXIMITY|@ohos.sensor.d.ts| -|新增||模块名:ohos.sensor
类名:sensor
方法名 or 属性名:on_SensorId_ROTATION_VECTOR|@ohos.sensor.d.ts| -|新增||模块名:ohos.sensor
类名:sensor
方法名 or 属性名:on_SensorId_SIGNIFICANT_MOTION|@ohos.sensor.d.ts| -|新增||模块名:ohos.sensor
类名:sensor
方法名 or 属性名:on_SensorId_WEAR_DETECTION|@ohos.sensor.d.ts| -|新增||方法名 or 属性名:once
函数:function once(type: SensorId.ACCELEROMETER, callback: Callback): void;|@ohos.sensor.d.ts| -|新增||方法名 or 属性名:once
函数:function once(type: SensorId.ACCELEROMETER_UNCALIBRATED, callback: Callback): void;|@ohos.sensor.d.ts| -|新增||方法名 or 属性名:once
函数:function once(type: SensorId.AMBIENT_LIGHT, callback: Callback): void;|@ohos.sensor.d.ts| -|新增||方法名 or 属性名:once
函数:function once(type: SensorId.AMBIENT_TEMPERATURE, callback: Callback): void;|@ohos.sensor.d.ts| -|新增||方法名 or 属性名:once
函数:function once(type: SensorId.BAROMETER, callback: Callback): void;|@ohos.sensor.d.ts| -|新增||方法名 or 属性名:once
函数:function once(type: SensorId.GRAVITY, callback: Callback): void;|@ohos.sensor.d.ts| -|新增||方法名 or 属性名:once
函数:function once(type: SensorId.GYROSCOPE, callback: Callback): void;|@ohos.sensor.d.ts| -|新增||方法名 or 属性名:once
函数:function once(type: SensorId.GYROSCOPE_UNCALIBRATED, callback: Callback): void;|@ohos.sensor.d.ts| -|新增||方法名 or 属性名:once
函数:function once(type: SensorId.HALL, callback: Callback): void;|@ohos.sensor.d.ts| -|新增||方法名 or 属性名:once
函数:function once(type: SensorId.HEART_RATE, callback: Callback): void;|@ohos.sensor.d.ts| -|新增||方法名 or 属性名:once
函数:function once(type: SensorId.HUMIDITY, callback: Callback): void;|@ohos.sensor.d.ts| -|新增||方法名 or 属性名:once
函数:function once(type: SensorId.LINEAR_ACCELEROMETER, callback: Callback): void;|@ohos.sensor.d.ts| -|新增||方法名 or 属性名:once
函数:function once(type: SensorId.MAGNETIC_FIELD, callback: Callback): void;|@ohos.sensor.d.ts| -|新增||方法名 or 属性名:once
函数:function once(type: SensorId.MAGNETIC_FIELD_UNCALIBRATED, callback: Callback): void;|@ohos.sensor.d.ts| -|新增||方法名 or 属性名:once
函数:function once(type: SensorId.ORIENTATION, callback: Callback): void;|@ohos.sensor.d.ts| -|新增||方法名 or 属性名:once
函数:function once(type: SensorId.PEDOMETER, callback: Callback): void;|@ohos.sensor.d.ts| -|新增||方法名 or 属性名:once
函数:function once(type: SensorId.PEDOMETER_DETECTION, callback: Callback): void;|@ohos.sensor.d.ts| -|新增||方法名 or 属性名:once
函数:function once(type: SensorId.PROXIMITY, callback: Callback): void;|@ohos.sensor.d.ts| -|新增||方法名 or 属性名:once
函数:function once(type: SensorId.ROTATION_VECTOR, callback: Callback): void;|@ohos.sensor.d.ts| -|新增||方法名 or 属性名:once
函数:function once(type: SensorId.SIGNIFICANT_MOTION, callback: Callback): void;|@ohos.sensor.d.ts| -|新增||方法名 or 属性名:once
函数:function once(type: SensorId.WEAR_DETECTION, callback: Callback): void;|@ohos.sensor.d.ts| -|新增||模块名:ohos.sensor
类名:sensor
方法名 or 属性名:off_SensorId_ACCELEROMETER|@ohos.sensor.d.ts| -|新增||模块名:ohos.sensor
类名:sensor
方法名 or 属性名:off_SensorId_ACCELEROMETER_UNCALIBRATED|@ohos.sensor.d.ts| -|新增||模块名:ohos.sensor
类名:sensor
方法名 or 属性名:off_SensorId_AMBIENT_LIGHT|@ohos.sensor.d.ts| -|新增||模块名:ohos.sensor
类名:sensor
方法名 or 属性名:off_SensorId_AMBIENT_TEMPERATURE|@ohos.sensor.d.ts| -|新增||模块名:ohos.sensor
类名:sensor
方法名 or 属性名:off_SensorId_BAROMETER|@ohos.sensor.d.ts| -|新增||模块名:ohos.sensor
类名:sensor
方法名 or 属性名:off_SensorId_GRAVITY|@ohos.sensor.d.ts| -|新增||模块名:ohos.sensor
类名:sensor
方法名 or 属性名:off_SensorId_GYROSCOPE|@ohos.sensor.d.ts| -|新增||模块名:ohos.sensor
类名:sensor
方法名 or 属性名:off_SensorId_GYROSCOPE_UNCALIBRATED|@ohos.sensor.d.ts| -|新增||模块名:ohos.sensor
类名:sensor
方法名 or 属性名:off_SensorId_HALL|@ohos.sensor.d.ts| -|新增||模块名:ohos.sensor
类名:sensor
方法名 or 属性名:off_SensorId_HEART_RATE|@ohos.sensor.d.ts| -|新增||模块名:ohos.sensor
类名:sensor
方法名 or 属性名:off_SensorId_HUMIDITY|@ohos.sensor.d.ts| -|新增||模块名:ohos.sensor
类名:sensor
方法名 or 属性名:off_SensorId_LINEAR_ACCELEROMETER|@ohos.sensor.d.ts| -|新增||模块名:ohos.sensor
类名:sensor
方法名 or 属性名:off_SensorId_MAGNETIC_FIELD|@ohos.sensor.d.ts| -|新增||模块名:ohos.sensor
类名:sensor
方法名 or 属性名:off_SensorId_MAGNETIC_FIELD_UNCALIBRATED|@ohos.sensor.d.ts| -|新增||模块名:ohos.sensor
类名:sensor
方法名 or 属性名:off_SensorId_ORIENTATION|@ohos.sensor.d.ts| -|新增||模块名:ohos.sensor
类名:sensor
方法名 or 属性名:off_SensorId_PEDOMETER|@ohos.sensor.d.ts| -|新增||模块名:ohos.sensor
类名:sensor
方法名 or 属性名:off_SensorId_PEDOMETER_DETECTION|@ohos.sensor.d.ts| -|新增||模块名:ohos.sensor
类名:sensor
方法名 or 属性名:off_SensorId_PROXIMITY|@ohos.sensor.d.ts| -|新增||模块名:ohos.sensor
类名:sensor
方法名 or 属性名:off_SensorId_ROTATION_VECTOR|@ohos.sensor.d.ts| -|新增||模块名:ohos.sensor
类名:sensor
方法名 or 属性名:off_SensorId_SIGNIFICANT_MOTION|@ohos.sensor.d.ts| -|新增||模块名:ohos.sensor
类名:sensor
方法名 or 属性名:off_SensorId_WEAR_DETECTION|@ohos.sensor.d.ts| -|新增||模块名:ohos.sensor
类名:Sensor
方法名 or 属性名:sensorId|@ohos.sensor.d.ts| -|新增||模块名:ohos.sensor
类名:Sensor
方法名 or 属性名:minSamplePeriod|@ohos.sensor.d.ts| -|新增||模块名:ohos.sensor
类名:Sensor
方法名 or 属性名:maxSamplePeriod|@ohos.sensor.d.ts| -|新增||方法名 or 属性名:getSingleSensor
函数:function getSingleSensor(type: SensorId, callback: AsyncCallback): void;|@ohos.sensor.d.ts| -|新增||方法名 or 属性名:getSingleSensor
函数:function getSingleSensor(type: SensorId): Promise;|@ohos.sensor.d.ts| -|新增||模块名:ohos.sensor
类名:sensor
方法名 or 属性名:getSensorList|@ohos.sensor.d.ts| -|新增||模块名:ohos.sensor
类名:sensor
方法名 or 属性名:getSensorList|@ohos.sensor.d.ts| -|新增||模块名:ohos.sensor
类名:sensor
方法名 or 属性名:getGeomagneticInfo|@ohos.sensor.d.ts| -|新增||模块名:ohos.sensor
类名:sensor
方法名 or 属性名:getGeomagneticInfo|@ohos.sensor.d.ts| -|新增||模块名:ohos.sensor
类名:sensor
方法名 or 属性名:getDeviceAltitude|@ohos.sensor.d.ts| -|新增||模块名:ohos.sensor
类名:sensor
方法名 or 属性名:getDeviceAltitude|@ohos.sensor.d.ts| -|新增||模块名:ohos.sensor
类名:sensor
方法名 or 属性名:getInclination|@ohos.sensor.d.ts| -|新增||模块名:ohos.sensor
类名:sensor
方法名 or 属性名:getInclination|@ohos.sensor.d.ts| -|新增||模块名:ohos.sensor
类名:sensor
方法名 or 属性名:getAngleVariation|@ohos.sensor.d.ts| -|新增||模块名:ohos.sensor
类名:sensor
方法名 or 属性名:getAngleVariation|@ohos.sensor.d.ts| -|新增||模块名:ohos.sensor
类名:sensor
方法名 or 属性名:getRotationMatrix|@ohos.sensor.d.ts| -|新增||模块名:ohos.sensor
类名:sensor
方法名 or 属性名:getRotationMatrix|@ohos.sensor.d.ts| -|新增||模块名:ohos.sensor
类名:sensor
方法名 or 属性名:transformRotationMatrix|@ohos.sensor.d.ts| -|新增||模块名:ohos.sensor
类名:sensor
方法名 or 属性名:transformRotationMatrix|@ohos.sensor.d.ts| -|新增||模块名:ohos.sensor
类名:sensor
方法名 or 属性名:getQuaternion|@ohos.sensor.d.ts| -|新增||模块名:ohos.sensor
类名:sensor
方法名 or 属性名:getQuaternion|@ohos.sensor.d.ts| -|新增||模块名:ohos.sensor
类名:sensor
方法名 or 属性名:getOrientation|@ohos.sensor.d.ts| -|新增||模块名:ohos.sensor
类名:sensor
方法名 or 属性名:getOrientation|@ohos.sensor.d.ts| -|新增||模块名:ohos.sensor
类名:sensor
方法名 or 属性名:getRotationMatrix|@ohos.sensor.d.ts| -|新增||模块名:ohos.sensor
类名:sensor
方法名 or 属性名:getRotationMatrix|@ohos.sensor.d.ts| -|新增||模块名:ohos.vibrator
类名:vibrator
方法名 or 属性名:startVibration|@ohos.vibrator.d.ts| -|新增||模块名:ohos.vibrator
类名:vibrator
方法名 or 属性名:startVibration|@ohos.vibrator.d.ts| -|新增||模块名:ohos.vibrator
类名:vibrator
方法名 or 属性名:stopVibration|@ohos.vibrator.d.ts| -|新增||模块名:ohos.vibrator
类名:vibrator
方法名 or 属性名:stopVibration|@ohos.vibrator.d.ts| -|删除|模块名:ohos.sensor
类名:sensor
方法名 or 属性名:on_SensorType_SENSOR_TYPE_ID_HEART_BEAT_RATE||@ohos.sensor.d.ts| -|删除|模块名:ohos.sensor
类名:sensor
方法名 or 属性名:on_SensorType_SENSOR_TYPE_ID_LINEAR_ACCELEROMETER||@ohos.sensor.d.ts| -|删除|模块名:ohos.sensor
类名:sensor
方法名 or 属性名:off_SensorType_SENSOR_TYPE_ID_HEART_BEAT_RATE||@ohos.sensor.d.ts| -|删除|模块名:ohos.sensor
类名:sensor
方法名 or 属性名:off_SensorType_SENSOR_TYPE_ID_LINEAR_ACCELEROMETER||@ohos.sensor.d.ts| -|删除|模块名:ohos.sensor
类名:Sensor
方法名 or 属性名:sensorTypeId||@ohos.sensor.d.ts| -|删除|模块名:ohos.sensor
类名:sensor
方法名 or 属性名:getSensorLists||@ohos.sensor.d.ts| -|删除|模块名:ohos.sensor
类名:sensor
方法名 or 属性名:getSensorLists||@ohos.sensor.d.ts| -|删除|模块名:ohos.sensor
类名:SensorType
方法名 or 属性名:SENSOR_TYPE_ID_LINEAR_ACCELEROMETER||@ohos.sensor.d.ts| -|删除|模块名:ohos.sensor
类名:SensorType
方法名 or 属性名:SENSOR_TYPE_ID_HEART_BEAT_RATE||@ohos.sensor.d.ts| +|新增|NA|模块名: ohos.sensor
类名: SensorId|@ohos.sensor.d.ts| +|新增|NA|模块名: ohos.sensor
类名: SensorId
方法名 or 属性名:ACCELEROMETER|@ohos.sensor.d.ts| +|新增|NA|模块名: ohos.sensor
类名: SensorId
方法名 or 属性名:GYROSCOPE|@ohos.sensor.d.ts| +|新增|NA|模块名: ohos.sensor
类名: SensorId
方法名 or 属性名:AMBIENT_LIGHT|@ohos.sensor.d.ts| +|新增|NA|模块名: ohos.sensor
类名: SensorId
方法名 or 属性名:MAGNETIC_FIELD|@ohos.sensor.d.ts| +|新增|NA|模块名: ohos.sensor
类名: SensorId
方法名 or 属性名:BAROMETER|@ohos.sensor.d.ts| +|新增|NA|模块名: ohos.sensor
类名: SensorId
方法名 or 属性名:HALL|@ohos.sensor.d.ts| +|新增|NA|模块名: ohos.sensor
类名: SensorId
方法名 or 属性名:PROXIMITY|@ohos.sensor.d.ts| +|新增|NA|模块名: ohos.sensor
类名: SensorId
方法名 or 属性名:HUMIDITY|@ohos.sensor.d.ts| +|新增|NA|模块名: ohos.sensor
类名: SensorId
方法名 or 属性名:ORIENTATION|@ohos.sensor.d.ts| +|新增|NA|模块名: ohos.sensor
类名: SensorId
方法名 or 属性名:GRAVITY|@ohos.sensor.d.ts| +|新增|NA|模块名: ohos.sensor
类名: SensorId
方法名 or 属性名:LINEAR_ACCELEROMETER|@ohos.sensor.d.ts| +|新增|NA|模块名: ohos.sensor
类名: SensorId
方法名 or 属性名:ROTATION_VECTOR|@ohos.sensor.d.ts| +|新增|NA|模块名: ohos.sensor
类名: SensorId
方法名 or 属性名:AMBIENT_TEMPERATURE|@ohos.sensor.d.ts| +|新增|NA|模块名: ohos.sensor
类名: SensorId
方法名 or 属性名:MAGNETIC_FIELD_UNCALIBRATED|@ohos.sensor.d.ts| +|新增|NA|模块名: ohos.sensor
类名: SensorId
方法名 or 属性名:GYROSCOPE_UNCALIBRATED|@ohos.sensor.d.ts| +|新增|NA|模块名: ohos.sensor
类名: SensorId
方法名 or 属性名:SIGNIFICANT_MOTION|@ohos.sensor.d.ts| +|新增|NA|模块名: ohos.sensor
类名: SensorId
方法名 or 属性名:PEDOMETER_DETECTION|@ohos.sensor.d.ts| +|新增|NA|模块名: ohos.sensor
类名: SensorId
方法名 or 属性名:PEDOMETER|@ohos.sensor.d.ts| +|新增|NA|模块名: ohos.sensor
类名: SensorId
方法名 or 属性名:HEART_RATE|@ohos.sensor.d.ts| +|新增|NA|模块名: ohos.sensor
类名: SensorId
方法名 or 属性名:WEAR_DETECTION|@ohos.sensor.d.ts| +|新增|NA|模块名: ohos.sensor
类名: SensorId
方法名 or 属性名:ACCELEROMETER_UNCALIBRATED|@ohos.sensor.d.ts| +|新增|NA|方法名 or 属性名:once
函数:function once(type: SensorId.ACCELEROMETER, callback: Callback): void;|@ohos.sensor.d.ts| +|新增|NA|方法名 or 属性名:once
函数:function once(type: SensorId.ACCELEROMETER_UNCALIBRATED, callback: Callback): void;|@ohos.sensor.d.ts| +|新增|NA|方法名 or 属性名:once
函数:function once(type: SensorId.AMBIENT_LIGHT, callback: Callback): void;|@ohos.sensor.d.ts| +|新增|NA|方法名 or 属性名:once
函数:function once(type: SensorId.AMBIENT_TEMPERATURE, callback: Callback): void;|@ohos.sensor.d.ts| +|新增|NA|方法名 or 属性名:once
函数:function once(type: SensorId.BAROMETER, callback: Callback): void;|@ohos.sensor.d.ts| +|新增|NA|方法名 or 属性名:once
函数:function once(type: SensorId.GRAVITY, callback: Callback): void;|@ohos.sensor.d.ts| +|新增|NA|方法名 or 属性名:once
函数:function once(type: SensorId.GYROSCOPE, callback: Callback): void;|@ohos.sensor.d.ts| +|新增|NA|方法名 or 属性名:once
函数:function once(type: SensorId.GYROSCOPE_UNCALIBRATED, callback: Callback): void;|@ohos.sensor.d.ts| +|新增|NA|方法名 or 属性名:once
函数:function once(type: SensorId.HALL, callback: Callback): void;|@ohos.sensor.d.ts| +|新增|NA|方法名 or 属性名:once
函数:function once(type: SensorId.HEART_RATE, callback: Callback): void;|@ohos.sensor.d.ts| +|新增|NA|方法名 or 属性名:once
函数:function once(type: SensorId.HUMIDITY, callback: Callback): void;|@ohos.sensor.d.ts| +|新增|NA|方法名 or 属性名:once
函数:function once(type: SensorId.LINEAR_ACCELEROMETER, callback: Callback): void;|@ohos.sensor.d.ts| +|新增|NA|方法名 or 属性名:once
函数:function once(type: SensorId.MAGNETIC_FIELD, callback: Callback): void;|@ohos.sensor.d.ts| +|新增|NA|方法名 or 属性名:once
函数:function once(type: SensorId.MAGNETIC_FIELD_UNCALIBRATED, callback: Callback): void;|@ohos.sensor.d.ts| +|新增|NA|方法名 or 属性名:once
函数:function once(type: SensorId.ORIENTATION, callback: Callback): void;|@ohos.sensor.d.ts| +|新增|NA|方法名 or 属性名:once
函数:function once(type: SensorId.PEDOMETER, callback: Callback): void;|@ohos.sensor.d.ts| +|新增|NA|方法名 or 属性名:once
函数:function once(type: SensorId.PEDOMETER_DETECTION, callback: Callback): void;|@ohos.sensor.d.ts| +|新增|NA|方法名 or 属性名:once
函数:function once(type: SensorId.PROXIMITY, callback: Callback): void;|@ohos.sensor.d.ts| +|新增|NA|方法名 or 属性名:once
函数:function once(type: SensorId.ROTATION_VECTOR, callback: Callback): void;|@ohos.sensor.d.ts| +|新增|NA|方法名 or 属性名:once
函数:function once(type: SensorId.SIGNIFICANT_MOTION, callback: Callback): void;|@ohos.sensor.d.ts| +|新增|NA|方法名 or 属性名:once
函数:function once(type: SensorId.WEAR_DETECTION, callback: Callback): void;|@ohos.sensor.d.ts| +|新增|NA|方法名 or 属性名:getSingleSensor
函数:function getSingleSensor(type: SensorId, callback: AsyncCallback): void;|@ohos.sensor.d.ts| +|新增|NA|方法名 or 属性名:getSingleSensor
函数:function getSingleSensor(type: SensorId): Promise;|@ohos.sensor.d.ts| +|删除|模块名:ohos.sensor
类名:sensor
方法名 or 属性名:on_SensorType_SENSOR_TYPE_ID_HEART_BEAT_RATE|NA|@ohos.sensor.d.ts| +|删除|模块名:ohos.sensor
类名:sensor
方法名 or 属性名:on_SensorType_SENSOR_TYPE_ID_LINEAR_ACCELEROMETER|NA|@ohos.sensor.d.ts| +|删除|模块名:ohos.sensor
类名:sensor
方法名 or 属性名:off_SensorType_SENSOR_TYPE_ID_HEART_BEAT_RATE|NA|@ohos.sensor.d.ts| +|删除|模块名:ohos.sensor
类名:sensor
方法名 or 属性名:off_SensorType_SENSOR_TYPE_ID_LINEAR_ACCELEROMETER|NA|@ohos.sensor.d.ts| +|删除|模块名:ohos.sensor
类名:Sensor
方法名 or 属性名:sensorTypeId|NA|@ohos.sensor.d.ts| +|删除|模块名:ohos.sensor
类名:sensor
方法名 or 属性名:getSensorLists|NA|@ohos.sensor.d.ts| +|删除|模块名:ohos.sensor
类名:sensor
方法名 or 属性名:getSensorLists|NA|@ohos.sensor.d.ts| +|删除|模块名:ohos.sensor
类名:SensorType
方法名 or 属性名:SENSOR_TYPE_ID_LINEAR_ACCELEROMETER|NA|@ohos.sensor.d.ts| +|删除|模块名:ohos.sensor
类名:SensorType
方法名 or 属性名:SENSOR_TYPE_ID_HEART_BEAT_RATE|NA|@ohos.sensor.d.ts| |废弃版本有变化|方法名 or 属性名:on_SensorType_SENSOR_TYPE_ID_ACCELEROMETER
废弃版本:N/A|方法名 or 属性名:on_SensorType_SENSOR_TYPE_ID_ACCELEROMETER
废弃版本:9
代替接口:sensor|@ohos.sensor.d.ts| |废弃版本有变化|方法名 or 属性名:on_SensorType_SENSOR_TYPE_ID_ACCELEROMETER_UNCALIBRATED
废弃版本:N/A|方法名 or 属性名:on_SensorType_SENSOR_TYPE_ID_ACCELEROMETER_UNCALIBRATED
废弃版本:9
代替接口:sensor|@ohos.sensor.d.ts| |废弃版本有变化|方法名 or 属性名:on_SensorType_SENSOR_TYPE_ID_AMBIENT_LIGHT
废弃版本:N/A|方法名 or 属性名:on_SensorType_SENSOR_TYPE_ID_AMBIENT_LIGHT
废弃版本:9
代替接口:sensor|@ohos.sensor.d.ts| diff --git a/zh-cn/release-notes/api-diff/v3.2-beta4/js-apidiff-start-up.md b/zh-cn/release-notes/api-diff/v3.2-beta4/js-apidiff-start-up.md index 20d25dab9e4cfdf0b475e1e074e9414c5eaff13b..1c53c06941c6f29d7655825636eca6e56977e13d 100644 --- a/zh-cn/release-notes/api-diff/v3.2-beta4/js-apidiff-start-up.md +++ b/zh-cn/release-notes/api-diff/v3.2-beta4/js-apidiff-start-up.md @@ -1,10 +1,10 @@ -| 操作 | 新版本 | 旧版本 | d.ts文件 | +| 操作 | 旧版本 | 新版本 | d.ts文件 | | ---- | ------ | ------ | -------- | -|新增||模块名: ohos.systemParameterV9
类名: systemParameterV9|@ohos.systemParameterV9.d.ts| -|新增||模块名: ohos.systemParameterV9
类名: systemParameterV9
方法名 or 属性名: getSync|@ohos.systemParameterV9.d.ts| -|新增||模块名: ohos.systemParameterV9
类名: systemParameterV9
方法名 or 属性名: get|@ohos.systemParameterV9.d.ts| -|新增||模块名: ohos.systemParameterV9
类名: systemParameterV9
方法名 or 属性名: get|@ohos.systemParameterV9.d.ts| -|新增||模块名: ohos.systemParameterV9
类名: systemParameterV9
方法名 or 属性名: get|@ohos.systemParameterV9.d.ts| -|新增||模块名: ohos.systemParameterV9
类名: systemParameterV9
方法名 or 属性名: setSync|@ohos.systemParameterV9.d.ts| -|新增||模块名: ohos.systemParameterV9
类名: systemParameterV9
方法名 or 属性名: set|@ohos.systemParameterV9.d.ts| -|新增||模块名: ohos.systemParameterV9
类名: systemParameterV9
方法名 or 属性名: set|@ohos.systemParameterV9.d.ts| +|新增|NA|模块名: ohos.systemParameterV9
类名: systemParameterV9|@ohos.systemParameterV9.d.ts| +|新增|NA|模块名: ohos.systemParameterV9
类名: systemParameterV9
方法名 or 属性名: getSync|@ohos.systemParameterV9.d.ts| +|新增|NA|模块名: ohos.systemParameterV9
类名: systemParameterV9
方法名 or 属性名: get|@ohos.systemParameterV9.d.ts| +|新增|NA|模块名: ohos.systemParameterV9
类名: systemParameterV9
方法名 or 属性名: get|@ohos.systemParameterV9.d.ts| +|新增|NA|模块名: ohos.systemParameterV9
类名: systemParameterV9
方法名 or 属性名: get|@ohos.systemParameterV9.d.ts| +|新增|NA|模块名: ohos.systemParameterV9
类名: systemParameterV9
方法名 or 属性名: setSync|@ohos.systemParameterV9.d.ts| +|新增|NA|模块名: ohos.systemParameterV9
类名: systemParameterV9
方法名 or 属性名: set|@ohos.systemParameterV9.d.ts| +|新增|NA|模块名: ohos.systemParameterV9
类名: systemParameterV9
方法名 or 属性名: set|@ohos.systemParameterV9.d.ts| diff --git a/zh-cn/release-notes/api-diff/v3.2-beta4/js-apidiff-telephony.md b/zh-cn/release-notes/api-diff/v3.2-beta4/js-apidiff-telephony.md index de7f5113228236e36b583c3666038c58c9a3f049..423c7ed19678ad29d4e27714557c84a0c866a777 100644 --- a/zh-cn/release-notes/api-diff/v3.2-beta4/js-apidiff-telephony.md +++ b/zh-cn/release-notes/api-diff/v3.2-beta4/js-apidiff-telephony.md @@ -1,6 +1,6 @@ -| 操作 | 新版本 | 旧版本 | d.ts文件 | +| 操作 | 旧版本 | 新版本 | d.ts文件 | | ---- | ------ | ------ | -------- | -|新增||方法名 or 属性名:sendUpdateCellLocationRequest
函数:function sendUpdateCellLocationRequest(slotId?: number): Promise;|@ohos.telephony.radio.d.ts| +|新增|NA|方法名 or 属性名:sendUpdateCellLocationRequest
函数:function sendUpdateCellLocationRequest(slotId?: number): Promise;|@ohos.telephony.radio.d.ts| |起始版本有变化|方法名 or 属性名:sendUpdateCellLocationRequest
起始版本:9|方法名 or 属性名:sendUpdateCellLocationRequest
起始版本:8|@ohos.telephony.radio.d.ts| |删除(权限)|方法名 or 属性名:getDefaultCellularDataSlotId
权限:ohos.permission.GET_NETWORK_INFO|方法名 or 属性名:getDefaultCellularDataSlotId
权限:N/A|@ohos.telephony.data.d.ts| |删除(权限)|方法名 or 属性名:getDefaultCellularDataSlotId
权限:ohos.permission.GET_NETWORK_INFO|方法名 or 属性名:getDefaultCellularDataSlotId
权限:N/A|@ohos.telephony.data.d.ts| diff --git a/zh-cn/release-notes/api-diff/v3.2-beta4/js-apidiff-unitest.md b/zh-cn/release-notes/api-diff/v3.2-beta4/js-apidiff-unitest.md index 1574656c4d37968ff1a4216ad3b3b5bda5423a4b..ff4824c3b5df670b79fb9bc360fcf990f3dd3325 100644 --- a/zh-cn/release-notes/api-diff/v3.2-beta4/js-apidiff-unitest.md +++ b/zh-cn/release-notes/api-diff/v3.2-beta4/js-apidiff-unitest.md @@ -1,111 +1,111 @@ -| 操作 | 新版本 | 旧版本 | d.ts文件 | +| 操作 | 旧版本 | 新版本 | d.ts文件 | | ---- | ------ | ------ | -------- | -|新增||方法名 or 属性名:bundleName
函数:bundleName?: string;|@ohos.uitest.d.ts| -|新增||方法名 or 属性名:title
函数:title?: string;|@ohos.uitest.d.ts| -|新增||方法名 or 属性名:focused
函数:focused?: boolean;|@ohos.uitest.d.ts| -|新增||方法名 or 属性名:actived
函数:actived?: boolean;|@ohos.uitest.d.ts| -|新增||模块名: ohos.uitest
类名: On|@ohos.uitest.d.ts| -|新增||模块名: ohos.uitest
类名: On
方法名 or 属性名:text|@ohos.uitest.d.ts| -|新增||模块名: ohos.uitest
类名: On
方法名 or 属性名:id|@ohos.uitest.d.ts| -|新增||模块名: ohos.uitest
类名: On
方法名 or 属性名:type|@ohos.uitest.d.ts| -|新增||模块名: ohos.uitest
类名: On
方法名 or 属性名:clickable|@ohos.uitest.d.ts| -|新增||模块名: ohos.uitest
类名: On
方法名 or 属性名:longClickable|@ohos.uitest.d.ts| -|新增||模块名: ohos.uitest
类名: On
方法名 or 属性名:scrollable|@ohos.uitest.d.ts| -|新增||模块名: ohos.uitest
类名: On
方法名 or 属性名:enabled|@ohos.uitest.d.ts| -|新增||模块名: ohos.uitest
类名: On
方法名 or 属性名:focused|@ohos.uitest.d.ts| -|新增||模块名: ohos.uitest
类名: On
方法名 or 属性名:selected|@ohos.uitest.d.ts| -|新增||模块名: ohos.uitest
类名: On
方法名 or 属性名:checked|@ohos.uitest.d.ts| -|新增||模块名: ohos.uitest
类名: On
方法名 or 属性名:checkable|@ohos.uitest.d.ts| -|新增||模块名: ohos.uitest
类名: On
方法名 or 属性名:isBefore|@ohos.uitest.d.ts| -|新增||模块名: ohos.uitest
类名: On
方法名 or 属性名:isAfter|@ohos.uitest.d.ts| -|新增||模块名: ohos.uitest
类名: Component|@ohos.uitest.d.ts| -|新增||模块名: ohos.uitest
类名: Component
方法名 or 属性名:click|@ohos.uitest.d.ts| -|新增||模块名: ohos.uitest
类名: Component
方法名 or 属性名:doubleClick|@ohos.uitest.d.ts| -|新增||模块名: ohos.uitest
类名: Component
方法名 or 属性名:longClick|@ohos.uitest.d.ts| -|新增||模块名: ohos.uitest
类名: Component
方法名 or 属性名:getId|@ohos.uitest.d.ts| -|新增||模块名: ohos.uitest
类名: Component
方法名 or 属性名:getText|@ohos.uitest.d.ts| -|新增||模块名: ohos.uitest
类名: Component
方法名 or 属性名:getType|@ohos.uitest.d.ts| -|新增||模块名: ohos.uitest
类名: Component
方法名 or 属性名:isClickable|@ohos.uitest.d.ts| -|新增||模块名: ohos.uitest
类名: Component
方法名 or 属性名:isLongClickable|@ohos.uitest.d.ts| -|新增||模块名: ohos.uitest
类名: Component
方法名 or 属性名:isScrollable|@ohos.uitest.d.ts| -|新增||模块名: ohos.uitest
类名: Component
方法名 or 属性名:isEnabled|@ohos.uitest.d.ts| -|新增||模块名: ohos.uitest
类名: Component
方法名 or 属性名:isFocused|@ohos.uitest.d.ts| -|新增||模块名: ohos.uitest
类名: Component
方法名 or 属性名:isSelected|@ohos.uitest.d.ts| -|新增||模块名: ohos.uitest
类名: Component
方法名 or 属性名:isChecked|@ohos.uitest.d.ts| -|新增||模块名: ohos.uitest
类名: Component
方法名 or 属性名:isCheckable|@ohos.uitest.d.ts| -|新增||模块名: ohos.uitest
类名: Component
方法名 or 属性名:inputText|@ohos.uitest.d.ts| -|新增||模块名: ohos.uitest
类名: Component
方法名 or 属性名:clearText|@ohos.uitest.d.ts| -|新增||模块名: ohos.uitest
类名: Component
方法名 or 属性名:scrollToTop|@ohos.uitest.d.ts| -|新增||模块名: ohos.uitest
类名: Component
方法名 or 属性名:scrollToBottom|@ohos.uitest.d.ts| -|新增||模块名: ohos.uitest
类名: Component
方法名 or 属性名:scrollSearch|@ohos.uitest.d.ts| -|新增||模块名: ohos.uitest
类名: Component
方法名 or 属性名:getBounds|@ohos.uitest.d.ts| -|新增||模块名: ohos.uitest
类名: Component
方法名 or 属性名:getBoundsCenter|@ohos.uitest.d.ts| -|新增||模块名: ohos.uitest
类名: Component
方法名 or 属性名:dragTo|@ohos.uitest.d.ts| -|新增||模块名: ohos.uitest
类名: Component
方法名 or 属性名:pinchOut|@ohos.uitest.d.ts| -|新增||模块名: ohos.uitest
类名: Component
方法名 or 属性名:pinchIn|@ohos.uitest.d.ts| -|新增||模块名: ohos.uitest
类名: Driver|@ohos.uitest.d.ts| -|新增||模块名: ohos.uitest
类名: Driver
方法名 or 属性名:create|@ohos.uitest.d.ts| -|新增||模块名: ohos.uitest
类名: Driver
方法名 or 属性名:delayMs|@ohos.uitest.d.ts| -|新增||模块名: ohos.uitest
类名: Driver
方法名 or 属性名:findComponent|@ohos.uitest.d.ts| -|新增||模块名: ohos.uitest
类名: Driver
方法名 or 属性名:findWindow|@ohos.uitest.d.ts| -|新增||模块名: ohos.uitest
类名: Driver
方法名 or 属性名:waitForComponent|@ohos.uitest.d.ts| -|新增||模块名: ohos.uitest
类名: Driver
方法名 or 属性名:findComponents|@ohos.uitest.d.ts| -|新增||模块名: ohos.uitest
类名: Driver
方法名 or 属性名:assertComponentExist|@ohos.uitest.d.ts| -|新增||模块名: ohos.uitest
类名: Driver
方法名 or 属性名:pressBack|@ohos.uitest.d.ts| -|新增||模块名: ohos.uitest
类名: Driver
方法名 or 属性名:triggerKey|@ohos.uitest.d.ts| -|新增||模块名: ohos.uitest
类名: Driver
方法名 or 属性名:triggerCombineKeys|@ohos.uitest.d.ts| -|新增||模块名: ohos.uitest
类名: Driver
方法名 or 属性名:click|@ohos.uitest.d.ts| -|新增||模块名: ohos.uitest
类名: Driver
方法名 or 属性名:doubleClick|@ohos.uitest.d.ts| -|新增||模块名: ohos.uitest
类名: Driver
方法名 or 属性名:longClick|@ohos.uitest.d.ts| -|新增||模块名: ohos.uitest
类名: Driver
方法名 or 属性名:swipe|@ohos.uitest.d.ts| -|新增||模块名: ohos.uitest
类名: Driver
方法名 or 属性名:drag|@ohos.uitest.d.ts| -|新增||模块名: ohos.uitest
类名: Driver
方法名 or 属性名:screenCap|@ohos.uitest.d.ts| -|新增||模块名: ohos.uitest
类名: Driver
方法名 or 属性名:setDisplayRotation|@ohos.uitest.d.ts| -|新增||模块名: ohos.uitest
类名: Driver
方法名 or 属性名:getDisplayRotation|@ohos.uitest.d.ts| -|新增||模块名: ohos.uitest
类名: Driver
方法名 or 属性名:setDisplayRotationEnabled|@ohos.uitest.d.ts| -|新增||模块名: ohos.uitest
类名: Driver
方法名 or 属性名:getDisplaySize|@ohos.uitest.d.ts| -|新增||模块名: ohos.uitest
类名: Driver
方法名 or 属性名:getDisplayDensity|@ohos.uitest.d.ts| -|新增||模块名: ohos.uitest
类名: Driver
方法名 or 属性名:wakeUpDisplay|@ohos.uitest.d.ts| -|新增||模块名: ohos.uitest
类名: Driver
方法名 or 属性名:pressHome|@ohos.uitest.d.ts| -|新增||模块名: ohos.uitest
类名: Driver
方法名 or 属性名:waitForIdle|@ohos.uitest.d.ts| -|新增||模块名: ohos.uitest
类名: Driver
方法名 or 属性名:fling|@ohos.uitest.d.ts| -|新增||模块名: ohos.uitest
类名: Driver
方法名 or 属性名:injectMultiPointerAction|@ohos.uitest.d.ts| -|新增||方法名 or 属性名:focus
函数:focus(): Promise;|@ohos.uitest.d.ts| -|新增||方法名 or 属性名:moveTo
函数:moveTo(x: number, y: number): Promise;|@ohos.uitest.d.ts| -|新增||方法名 or 属性名:resize
函数:resize(wide: number, height: number, direction: ResizeDirection): Promise;|@ohos.uitest.d.ts| -|新增||方法名 or 属性名:split
函数:split(): Promise;|@ohos.uitest.d.ts| -|新增||方法名 or 属性名:maximize
函数:maximize(): Promise;|@ohos.uitest.d.ts| -|新增||方法名 or 属性名:minimize
函数:minimize(): Promise;|@ohos.uitest.d.ts| -|新增||方法名 or 属性名:resume
函数:resume(): Promise;|@ohos.uitest.d.ts| -|新增||方法名 or 属性名:close
函数:close(): Promise;|@ohos.uitest.d.ts| -|删除|模块名:ohos.uitest
类名:By
方法名 or 属性名:longClickable||@ohos.uitest.d.ts| -|删除|模块名:ohos.uitest
类名:By
方法名 or 属性名:checked||@ohos.uitest.d.ts| -|删除|模块名:ohos.uitest
类名:By
方法名 or 属性名:checkable||@ohos.uitest.d.ts| -|删除|模块名:ohos.uitest
类名:UiComponent
方法名 or 属性名:isLongClickable||@ohos.uitest.d.ts| -|删除|模块名:ohos.uitest
类名:UiComponent
方法名 or 属性名:isChecked||@ohos.uitest.d.ts| -|删除|模块名:ohos.uitest
类名:UiComponent
方法名 or 属性名:isCheckable||@ohos.uitest.d.ts| -|删除|模块名:ohos.uitest
类名:UiComponent
方法名 or 属性名:clearText||@ohos.uitest.d.ts| -|删除|模块名:ohos.uitest
类名:UiComponent
方法名 or 属性名:scrollToTop||@ohos.uitest.d.ts| -|删除|模块名:ohos.uitest
类名:UiComponent
方法名 or 属性名:scrollToBottom||@ohos.uitest.d.ts| -|删除|模块名:ohos.uitest
类名:UiComponent
方法名 or 属性名:getBounds||@ohos.uitest.d.ts| -|删除|模块名:ohos.uitest
类名:UiComponent
方法名 or 属性名:getBoundsCenter||@ohos.uitest.d.ts| -|删除|模块名:ohos.uitest
类名:UiComponent
方法名 or 属性名:dragTo||@ohos.uitest.d.ts| -|删除|模块名:ohos.uitest
类名:UiComponent
方法名 or 属性名:pinchOut||@ohos.uitest.d.ts| -|删除|模块名:ohos.uitest
类名:UiComponent
方法名 or 属性名:pinchIn||@ohos.uitest.d.ts| -|删除|模块名:ohos.uitest
类名:UiDriver
方法名 or 属性名:findWindow||@ohos.uitest.d.ts| -|删除|模块名:ohos.uitest
类名:UiDriver
方法名 or 属性名:waitForComponent||@ohos.uitest.d.ts| -|删除|模块名:ohos.uitest
类名:UiDriver
方法名 or 属性名:triggerCombineKeys||@ohos.uitest.d.ts| -|删除|模块名:ohos.uitest
类名:UiDriver
方法名 or 属性名:drag||@ohos.uitest.d.ts| -|删除|模块名:ohos.uitest
类名:UiDriver
方法名 or 属性名:setDisplayRotation||@ohos.uitest.d.ts| -|删除|模块名:ohos.uitest
类名:UiDriver
方法名 or 属性名:getDisplayRotation||@ohos.uitest.d.ts| -|删除|模块名:ohos.uitest
类名:UiDriver
方法名 or 属性名:setDisplayRotationEnabled||@ohos.uitest.d.ts| -|删除|模块名:ohos.uitest
类名:UiDriver
方法名 or 属性名:getDisplaySize||@ohos.uitest.d.ts| -|删除|模块名:ohos.uitest
类名:UiDriver
方法名 or 属性名:getDisplayDensity||@ohos.uitest.d.ts| -|删除|模块名:ohos.uitest
类名:UiDriver
方法名 or 属性名:wakeUpDisplay||@ohos.uitest.d.ts| -|删除|模块名:ohos.uitest
类名:UiDriver
方法名 or 属性名:pressHome||@ohos.uitest.d.ts| -|删除|模块名:ohos.uitest
类名:UiDriver
方法名 or 属性名:waitForIdle||@ohos.uitest.d.ts| -|删除|模块名:ohos.uitest
类名:UiDriver
方法名 or 属性名:fling||@ohos.uitest.d.ts| -|删除|模块名:ohos.uitest
类名:UiDriver
方法名 or 属性名:injectMultiPointerAction||@ohos.uitest.d.ts| +|新增|NA|方法名 or 属性名:bundleName
函数:bundleName?: string;|@ohos.uitest.d.ts| +|新增|NA|方法名 or 属性名:title
函数:title?: string;|@ohos.uitest.d.ts| +|新增|NA|方法名 or 属性名:focused
函数:focused?: boolean;|@ohos.uitest.d.ts| +|新增|NA|方法名 or 属性名:actived
函数:actived?: boolean;|@ohos.uitest.d.ts| +|新增|NA|模块名: ohos.uitest
类名: On|@ohos.uitest.d.ts| +|新增|NA|模块名: ohos.uitest
类名: On
方法名 or 属性名:text|@ohos.uitest.d.ts| +|新增|NA|模块名: ohos.uitest
类名: On
方法名 or 属性名:id|@ohos.uitest.d.ts| +|新增|NA|模块名: ohos.uitest
类名: On
方法名 or 属性名:type|@ohos.uitest.d.ts| +|新增|NA|模块名: ohos.uitest
类名: On
方法名 or 属性名:clickable|@ohos.uitest.d.ts| +|新增|NA|模块名: ohos.uitest
类名: On
方法名 or 属性名:longClickable|@ohos.uitest.d.ts| +|新增|NA|模块名: ohos.uitest
类名: On
方法名 or 属性名:scrollable|@ohos.uitest.d.ts| +|新增|NA|模块名: ohos.uitest
类名: On
方法名 or 属性名:enabled|@ohos.uitest.d.ts| +|新增|NA|模块名: ohos.uitest
类名: On
方法名 or 属性名:focused|@ohos.uitest.d.ts| +|新增|NA|模块名: ohos.uitest
类名: On
方法名 or 属性名:selected|@ohos.uitest.d.ts| +|新增|NA|模块名: ohos.uitest
类名: On
方法名 or 属性名:checked|@ohos.uitest.d.ts| +|新增|NA|模块名: ohos.uitest
类名: On
方法名 or 属性名:checkable|@ohos.uitest.d.ts| +|新增|NA|模块名: ohos.uitest
类名: On
方法名 or 属性名:isBefore|@ohos.uitest.d.ts| +|新增|NA|模块名: ohos.uitest
类名: On
方法名 or 属性名:isAfter|@ohos.uitest.d.ts| +|新增|NA|模块名: ohos.uitest
类名: Component|@ohos.uitest.d.ts| +|新增|NA|模块名: ohos.uitest
类名: Component
方法名 or 属性名:click|@ohos.uitest.d.ts| +|新增|NA|模块名: ohos.uitest
类名: Component
方法名 or 属性名:doubleClick|@ohos.uitest.d.ts| +|新增|NA|模块名: ohos.uitest
类名: Component
方法名 or 属性名:longClick|@ohos.uitest.d.ts| +|新增|NA|模块名: ohos.uitest
类名: Component
方法名 or 属性名:getId|@ohos.uitest.d.ts| +|新增|NA|模块名: ohos.uitest
类名: Component
方法名 or 属性名:getText|@ohos.uitest.d.ts| +|新增|NA|模块名: ohos.uitest
类名: Component
方法名 or 属性名:getType|@ohos.uitest.d.ts| +|新增|NA|模块名: ohos.uitest
类名: Component
方法名 or 属性名:isClickable|@ohos.uitest.d.ts| +|新增|NA|模块名: ohos.uitest
类名: Component
方法名 or 属性名:isLongClickable|@ohos.uitest.d.ts| +|新增|NA|模块名: ohos.uitest
类名: Component
方法名 or 属性名:isScrollable|@ohos.uitest.d.ts| +|新增|NA|模块名: ohos.uitest
类名: Component
方法名 or 属性名:isEnabled|@ohos.uitest.d.ts| +|新增|NA|模块名: ohos.uitest
类名: Component
方法名 or 属性名:isFocused|@ohos.uitest.d.ts| +|新增|NA|模块名: ohos.uitest
类名: Component
方法名 or 属性名:isSelected|@ohos.uitest.d.ts| +|新增|NA|模块名: ohos.uitest
类名: Component
方法名 or 属性名:isChecked|@ohos.uitest.d.ts| +|新增|NA|模块名: ohos.uitest
类名: Component
方法名 or 属性名:isCheckable|@ohos.uitest.d.ts| +|新增|NA|模块名: ohos.uitest
类名: Component
方法名 or 属性名:inputText|@ohos.uitest.d.ts| +|新增|NA|模块名: ohos.uitest
类名: Component
方法名 or 属性名:clearText|@ohos.uitest.d.ts| +|新增|NA|模块名: ohos.uitest
类名: Component
方法名 or 属性名:scrollToTop|@ohos.uitest.d.ts| +|新增|NA|模块名: ohos.uitest
类名: Component
方法名 or 属性名:scrollToBottom|@ohos.uitest.d.ts| +|新增|NA|模块名: ohos.uitest
类名: Component
方法名 or 属性名:scrollSearch|@ohos.uitest.d.ts| +|新增|NA|模块名: ohos.uitest
类名: Component
方法名 or 属性名:getBounds|@ohos.uitest.d.ts| +|新增|NA|模块名: ohos.uitest
类名: Component
方法名 or 属性名:getBoundsCenter|@ohos.uitest.d.ts| +|新增|NA|模块名: ohos.uitest
类名: Component
方法名 or 属性名:dragTo|@ohos.uitest.d.ts| +|新增|NA|模块名: ohos.uitest
类名: Component
方法名 or 属性名:pinchOut|@ohos.uitest.d.ts| +|新增|NA|模块名: ohos.uitest
类名: Component
方法名 or 属性名:pinchIn|@ohos.uitest.d.ts| +|新增|NA|模块名: ohos.uitest
类名: Driver|@ohos.uitest.d.ts| +|新增|NA|模块名: ohos.uitest
类名: Driver
方法名 or 属性名:create|@ohos.uitest.d.ts| +|新增|NA|模块名: ohos.uitest
类名: Driver
方法名 or 属性名:delayMs|@ohos.uitest.d.ts| +|新增|NA|模块名: ohos.uitest
类名: Driver
方法名 or 属性名:findComponent|@ohos.uitest.d.ts| +|新增|NA|模块名: ohos.uitest
类名: Driver
方法名 or 属性名:findWindow|@ohos.uitest.d.ts| +|新增|NA|模块名: ohos.uitest
类名: Driver
方法名 or 属性名:waitForComponent|@ohos.uitest.d.ts| +|新增|NA|模块名: ohos.uitest
类名: Driver
方法名 or 属性名:findComponents|@ohos.uitest.d.ts| +|新增|NA|模块名: ohos.uitest
类名: Driver
方法名 or 属性名:assertComponentExist|@ohos.uitest.d.ts| +|新增|NA|模块名: ohos.uitest
类名: Driver
方法名 or 属性名:pressBack|@ohos.uitest.d.ts| +|新增|NA|模块名: ohos.uitest
类名: Driver
方法名 or 属性名:triggerKey|@ohos.uitest.d.ts| +|新增|NA|模块名: ohos.uitest
类名: Driver
方法名 or 属性名:triggerCombineKeys|@ohos.uitest.d.ts| +|新增|NA|模块名: ohos.uitest
类名: Driver
方法名 or 属性名:click|@ohos.uitest.d.ts| +|新增|NA|模块名: ohos.uitest
类名: Driver
方法名 or 属性名:doubleClick|@ohos.uitest.d.ts| +|新增|NA|模块名: ohos.uitest
类名: Driver
方法名 or 属性名:longClick|@ohos.uitest.d.ts| +|新增|NA|模块名: ohos.uitest
类名: Driver
方法名 or 属性名:swipe|@ohos.uitest.d.ts| +|新增|NA|模块名: ohos.uitest
类名: Driver
方法名 or 属性名:drag|@ohos.uitest.d.ts| +|新增|NA|模块名: ohos.uitest
类名: Driver
方法名 or 属性名:screenCap|@ohos.uitest.d.ts| +|新增|NA|模块名: ohos.uitest
类名: Driver
方法名 or 属性名:setDisplayRotation|@ohos.uitest.d.ts| +|新增|NA|模块名: ohos.uitest
类名: Driver
方法名 or 属性名:getDisplayRotation|@ohos.uitest.d.ts| +|新增|NA|模块名: ohos.uitest
类名: Driver
方法名 or 属性名:setDisplayRotationEnabled|@ohos.uitest.d.ts| +|新增|NA|模块名: ohos.uitest
类名: Driver
方法名 or 属性名:getDisplaySize|@ohos.uitest.d.ts| +|新增|NA|模块名: ohos.uitest
类名: Driver
方法名 or 属性名:getDisplayDensity|@ohos.uitest.d.ts| +|新增|NA|模块名: ohos.uitest
类名: Driver
方法名 or 属性名:wakeUpDisplay|@ohos.uitest.d.ts| +|新增|NA|模块名: ohos.uitest
类名: Driver
方法名 or 属性名:pressHome|@ohos.uitest.d.ts| +|新增|NA|模块名: ohos.uitest
类名: Driver
方法名 or 属性名:waitForIdle|@ohos.uitest.d.ts| +|新增|NA|模块名: ohos.uitest
类名: Driver
方法名 or 属性名:fling|@ohos.uitest.d.ts| +|新增|NA|模块名: ohos.uitest
类名: Driver
方法名 or 属性名:injectMultiPointerAction|@ohos.uitest.d.ts| +|新增|NA|方法名 or 属性名:focus
函数:focus(): Promise;|@ohos.uitest.d.ts| +|新增|NA|方法名 or 属性名:moveTo
函数:moveTo(x: number, y: number): Promise;|@ohos.uitest.d.ts| +|新增|NA|方法名 or 属性名:resize
函数:resize(wide: number, height: number, direction: ResizeDirection): Promise;|@ohos.uitest.d.ts| +|新增|NA|方法名 or 属性名:split
函数:split(): Promise;|@ohos.uitest.d.ts| +|新增|NA|方法名 or 属性名:maximize
函数:maximize(): Promise;|@ohos.uitest.d.ts| +|新增|NA|方法名 or 属性名:minimize
函数:minimize(): Promise;|@ohos.uitest.d.ts| +|新增|NA|方法名 or 属性名:resume
函数:resume(): Promise;|@ohos.uitest.d.ts| +|新增|NA|方法名 or 属性名:close
函数:close(): Promise;|@ohos.uitest.d.ts| +|删除|模块名:ohos.uitest
类名:By
方法名 or 属性名:longClickable|NA|@ohos.uitest.d.ts| +|删除|模块名:ohos.uitest
类名:By
方法名 or 属性名:checked|NA|@ohos.uitest.d.ts| +|删除|模块名:ohos.uitest
类名:By
方法名 or 属性名:checkable|NA|@ohos.uitest.d.ts| +|删除|模块名:ohos.uitest
类名:UiComponent
方法名 or 属性名:isLongClickable|NA|@ohos.uitest.d.ts| +|删除|模块名:ohos.uitest
类名:UiComponent
方法名 or 属性名:isChecked|NA|@ohos.uitest.d.ts| +|删除|模块名:ohos.uitest
类名:UiComponent
方法名 or 属性名:isCheckable|NA|@ohos.uitest.d.ts| +|删除|模块名:ohos.uitest
类名:UiComponent
方法名 or 属性名:clearText|NA|@ohos.uitest.d.ts| +|删除|模块名:ohos.uitest
类名:UiComponent
方法名 or 属性名:scrollToTop|NA|@ohos.uitest.d.ts| +|删除|模块名:ohos.uitest
类名:UiComponent
方法名 or 属性名:scrollToBottom|NA|@ohos.uitest.d.ts| +|删除|模块名:ohos.uitest
类名:UiComponent
方法名 or 属性名:getBounds|NA|@ohos.uitest.d.ts| +|删除|模块名:ohos.uitest
类名:UiComponent
方法名 or 属性名:getBoundsCenter|NA|@ohos.uitest.d.ts| +|删除|模块名:ohos.uitest
类名:UiComponent
方法名 or 属性名:dragTo|NA|@ohos.uitest.d.ts| +|删除|模块名:ohos.uitest
类名:UiComponent
方法名 or 属性名:pinchOut|NA|@ohos.uitest.d.ts| +|删除|模块名:ohos.uitest
类名:UiComponent
方法名 or 属性名:pinchIn|NA|@ohos.uitest.d.ts| +|删除|模块名:ohos.uitest
类名:UiDriver
方法名 or 属性名:findWindow|NA|@ohos.uitest.d.ts| +|删除|模块名:ohos.uitest
类名:UiDriver
方法名 or 属性名:waitForComponent|NA|@ohos.uitest.d.ts| +|删除|模块名:ohos.uitest
类名:UiDriver
方法名 or 属性名:triggerCombineKeys|NA|@ohos.uitest.d.ts| +|删除|模块名:ohos.uitest
类名:UiDriver
方法名 or 属性名:drag|NA|@ohos.uitest.d.ts| +|删除|模块名:ohos.uitest
类名:UiDriver
方法名 or 属性名:setDisplayRotation|NA|@ohos.uitest.d.ts| +|删除|模块名:ohos.uitest
类名:UiDriver
方法名 or 属性名:getDisplayRotation|NA|@ohos.uitest.d.ts| +|删除|模块名:ohos.uitest
类名:UiDriver
方法名 or 属性名:setDisplayRotationEnabled|NA|@ohos.uitest.d.ts| +|删除|模块名:ohos.uitest
类名:UiDriver
方法名 or 属性名:getDisplaySize|NA|@ohos.uitest.d.ts| +|删除|模块名:ohos.uitest
类名:UiDriver
方法名 or 属性名:getDisplayDensity|NA|@ohos.uitest.d.ts| +|删除|模块名:ohos.uitest
类名:UiDriver
方法名 or 属性名:wakeUpDisplay|NA|@ohos.uitest.d.ts| +|删除|模块名:ohos.uitest
类名:UiDriver
方法名 or 属性名:pressHome|NA|@ohos.uitest.d.ts| +|删除|模块名:ohos.uitest
类名:UiDriver
方法名 or 属性名:waitForIdle|NA|@ohos.uitest.d.ts| +|删除|模块名:ohos.uitest
类名:UiDriver
方法名 or 属性名:fling|NA|@ohos.uitest.d.ts| +|删除|模块名:ohos.uitest
类名:UiDriver
方法名 or 属性名:injectMultiPointerAction|NA|@ohos.uitest.d.ts| |废弃版本有变化|类名:By
废弃版本:N/A|类名:By
废弃版本:9
代替接口:ohos.uitest.On |@ohos.uitest.d.ts| |废弃版本有变化|类名:UiComponent
废弃版本:N/A|类名:UiComponent
废弃版本:9
代替接口:ohos.uitest.Component |@ohos.uitest.d.ts| |废弃版本有变化|类名:UiDriver
废弃版本:N/A|类名:UiDriver
废弃版本:9
代替接口:ohos.uitest.Driver |@ohos.uitest.d.ts| diff --git a/zh-cn/release-notes/api-diff/v3.2-beta4/js-apidiff-update.md b/zh-cn/release-notes/api-diff/v3.2-beta4/js-apidiff-update.md index 9e5fc88df932c6ebceee8f45da7a5d5812e36fa0..07334dab4dd25db228b29ed81179e5d2d2c77ab1 100644 --- a/zh-cn/release-notes/api-diff/v3.2-beta4/js-apidiff-update.md +++ b/zh-cn/release-notes/api-diff/v3.2-beta4/js-apidiff-update.md @@ -1,26 +1,26 @@ -| 操作 | 新版本 | 旧版本 | d.ts文件 | +| 操作 | 旧版本 | 新版本 | d.ts文件 | | ---- | ------ | ------ | -------- | -|新增(错误码)||方法名 or 属性名:getOnlineUpdater
错误码内容:201,11500104|@ohos.update.d.ts| -|新增(错误码)||方法名 or 属性名:getRestorer
错误码内容:201,11500104|@ohos.update.d.ts| -|新增(错误码)||方法名 or 属性名:getLocalUpdater
错误码内容:201,11500104|@ohos.update.d.ts| -|新增(错误码)||方法名 or 属性名:checkNewVersion
错误码内容:201,11500104|@ohos.update.d.ts| -|新增(错误码)||方法名 or 属性名:getNewVersionInfo
错误码内容:201,11500104|@ohos.update.d.ts| -|新增(错误码)||方法名 or 属性名:getNewVersionDescription
错误码内容:201,401,11500104|@ohos.update.d.ts| -|新增(错误码)||方法名 or 属性名:getCurrentVersionInfo
错误码内容:201,11500104|@ohos.update.d.ts| -|新增(错误码)||方法名 or 属性名:getCurrentVersionDescription
错误码内容:201,401,11500104|@ohos.update.d.ts| -|新增(错误码)||方法名 or 属性名:getTaskInfo
错误码内容:201,11500104|@ohos.update.d.ts| -|新增(错误码)||方法名 or 属性名:download
错误码内容:201,401,11500104|@ohos.update.d.ts| -|新增(错误码)||方法名 or 属性名:resumeDownload
错误码内容:201,401,11500104|@ohos.update.d.ts| -|新增(错误码)||方法名 or 属性名:pauseDownload
错误码内容:201,401,11500104|@ohos.update.d.ts| -|新增(错误码)||方法名 or 属性名:upgrade
错误码内容:201,401,11500104|@ohos.update.d.ts| -|新增(错误码)||方法名 or 属性名:clearError
错误码内容:201,401,11500104|@ohos.update.d.ts| -|新增(错误码)||方法名 or 属性名:getUpgradePolicy
错误码内容:201,11500104|@ohos.update.d.ts| -|新增(错误码)||方法名 or 属性名:setUpgradePolicy
错误码内容:201,11500104|@ohos.update.d.ts| -|新增(错误码)||方法名 or 属性名:terminateUpgrade
错误码内容:201,11500104|@ohos.update.d.ts| -|新增(错误码)||方法名 or 属性名:on
错误码内容:201,401,11500104|@ohos.update.d.ts| -|新增(错误码)||方法名 or 属性名:off
错误码内容:201,401,11500104|@ohos.update.d.ts| -|新增(错误码)||方法名 or 属性名:factoryReset
错误码内容:201,11500104|@ohos.update.d.ts| -|新增(错误码)||方法名 or 属性名:verifyUpgradePackage
错误码内容:201,401,11500104|@ohos.update.d.ts| -|新增(错误码)||方法名 or 属性名:applyNewVersion
错误码内容:201,401,11500104|@ohos.update.d.ts| -|新增(错误码)||方法名 or 属性名:on
错误码内容:201,401,11500104|@ohos.update.d.ts| -|新增(错误码)||方法名 or 属性名:off
错误码内容:201,401,11500104|@ohos.update.d.ts| +|新增(错误码)|NA|方法名 or 属性名:getOnlineUpdater
错误码内容:201,11500104|@ohos.update.d.ts| +|新增(错误码)|NA|方法名 or 属性名:getRestorer
错误码内容:201,11500104|@ohos.update.d.ts| +|新增(错误码)|NA|方法名 or 属性名:getLocalUpdater
错误码内容:201,11500104|@ohos.update.d.ts| +|新增(错误码)|NA|方法名 or 属性名:checkNewVersion
错误码内容:201,11500104|@ohos.update.d.ts| +|新增(错误码)|NA|方法名 or 属性名:getNewVersionInfo
错误码内容:201,11500104|@ohos.update.d.ts| +|新增(错误码)|NA|方法名 or 属性名:getNewVersionDescription
错误码内容:201,401,11500104|@ohos.update.d.ts| +|新增(错误码)|NA|方法名 or 属性名:getCurrentVersionInfo
错误码内容:201,11500104|@ohos.update.d.ts| +|新增(错误码)|NA|方法名 or 属性名:getCurrentVersionDescription
错误码内容:201,401,11500104|@ohos.update.d.ts| +|新增(错误码)|NA|方法名 or 属性名:getTaskInfo
错误码内容:201,11500104|@ohos.update.d.ts| +|新增(错误码)|NA|方法名 or 属性名:download
错误码内容:201,401,11500104|@ohos.update.d.ts| +|新增(错误码)|NA|方法名 or 属性名:resumeDownload
错误码内容:201,401,11500104|@ohos.update.d.ts| +|新增(错误码)|NA|方法名 or 属性名:pauseDownload
错误码内容:201,401,11500104|@ohos.update.d.ts| +|新增(错误码)|NA|方法名 or 属性名:upgrade
错误码内容:201,401,11500104|@ohos.update.d.ts| +|新增(错误码)|NA|方法名 or 属性名:clearError
错误码内容:201,401,11500104|@ohos.update.d.ts| +|新增(错误码)|NA|方法名 or 属性名:getUpgradePolicy
错误码内容:201,11500104|@ohos.update.d.ts| +|新增(错误码)|NA|方法名 or 属性名:setUpgradePolicy
错误码内容:201,11500104|@ohos.update.d.ts| +|新增(错误码)|NA|方法名 or 属性名:terminateUpgrade
错误码内容:201,11500104|@ohos.update.d.ts| +|新增(错误码)|NA|方法名 or 属性名:on
错误码内容:201,401,11500104|@ohos.update.d.ts| +|新增(错误码)|NA|方法名 or 属性名:off
错误码内容:201,401,11500104|@ohos.update.d.ts| +|新增(错误码)|NA|方法名 or 属性名:factoryReset
错误码内容:201,11500104|@ohos.update.d.ts| +|新增(错误码)|NA|方法名 or 属性名:verifyUpgradePackage
错误码内容:201,401,11500104|@ohos.update.d.ts| +|新增(错误码)|NA|方法名 or 属性名:applyNewVersion
错误码内容:201,401,11500104|@ohos.update.d.ts| +|新增(错误码)|NA|方法名 or 属性名:on
错误码内容:201,401,11500104|@ohos.update.d.ts| +|新增(错误码)|NA|方法名 or 属性名:off
错误码内容:201,401,11500104|@ohos.update.d.ts| diff --git a/zh-cn/release-notes/api-diff/v3.2-beta4/js-apidiff-usb.md b/zh-cn/release-notes/api-diff/v3.2-beta4/js-apidiff-usb.md index 56122093d6e636dc6ddbb2f1f0684313b63df68d..d3fd8f26a342a786a39ee1231ed9acbfebafc39c 100644 --- a/zh-cn/release-notes/api-diff/v3.2-beta4/js-apidiff-usb.md +++ b/zh-cn/release-notes/api-diff/v3.2-beta4/js-apidiff-usb.md @@ -1,121 +1,121 @@ -| 操作 | 新版本 | 旧版本 | d.ts文件 | +| 操作 | 旧版本 | 新版本 | d.ts文件 | | ---- | ------ | ------ | -------- | -|新增||方法名 or 属性名:controlTransfer
函数:function controlTransfer(pipe: USBDevicePipe, controlparam: USBControlParams, timeout?: number): Promise;|@ohos.usb.d.ts| -|新增||模块名: ohos.usbV9
类名: usbV9|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: usbV9
方法名 or 属性名: getDevices|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: usbV9
方法名 or 属性名: connectDevice|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: usbV9
方法名 or 属性名: hasRight|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: usbV9
方法名 or 属性名: requestRight|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: usbV9
方法名 or 属性名: removeRight|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: usbV9
方法名 or 属性名: addRight|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: usbV9
方法名 or 属性名: usbFunctionsFromString|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: usbV9
方法名 or 属性名: usbFunctionsToString|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: usbV9
方法名 or 属性名: setCurrentFunctions|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: usbV9
方法名 or 属性名: getCurrentFunctions|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: usbV9
方法名 or 属性名: getPorts|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: usbV9
方法名 or 属性名: getSupportedModes|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: usbV9
方法名 or 属性名: setPortRoles|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: usbV9
方法名 or 属性名: claimInterface|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: usbV9
方法名 or 属性名: releaseInterface|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: usbV9
方法名 or 属性名: setConfiguration|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: usbV9
方法名 or 属性名: setInterface|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: usbV9
方法名 or 属性名: getRawDescriptor|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: usbV9
方法名 or 属性名: getFileDescriptor|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: usbV9
方法名 or 属性名: controlTransfer|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: usbV9
方法名 or 属性名: bulkTransfer|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: usbV9
方法名 or 属性名: closePipe|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: USBEndpoint|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: USBEndpoint
方法名 or 属性名: address|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: USBEndpoint
方法名 or 属性名: attributes|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: USBEndpoint
方法名 or 属性名: interval|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: USBEndpoint
方法名 or 属性名: maxPacketSize|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: USBEndpoint
方法名 or 属性名: direction|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: USBEndpoint
方法名 or 属性名: number|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: USBEndpoint
方法名 or 属性名: type|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: USBEndpoint
方法名 or 属性名: interfaceId|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: USBInterface|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: USBInterface
方法名 or 属性名: id|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: USBInterface
方法名 or 属性名: protocol|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: USBInterface
方法名 or 属性名: clazz|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: USBInterface
方法名 or 属性名: subClass|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: USBInterface
方法名 or 属性名: alternateSetting|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: USBInterface
方法名 or 属性名: name|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: USBInterface
方法名 or 属性名: endpoints|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: USBConfig|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: USBConfig
方法名 or 属性名: id|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: USBConfig
方法名 or 属性名: attributes|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: USBConfig
方法名 or 属性名: maxPower|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: USBConfig
方法名 or 属性名: name|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: USBConfig
方法名 or 属性名: isRemoteWakeup|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: USBConfig
方法名 or 属性名: isSelfPowered|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: USBConfig
方法名 or 属性名: interfaces|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: USBDevice|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: USBDevice
方法名 or 属性名: busNum|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: USBDevice
方法名 or 属性名: devAddress|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: USBDevice
方法名 or 属性名: serial|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: USBDevice
方法名 or 属性名: name|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: USBDevice
方法名 or 属性名: manufacturerName|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: USBDevice
方法名 or 属性名: productName|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: USBDevice
方法名 or 属性名: version|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: USBDevice
方法名 or 属性名: vendorId|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: USBDevice
方法名 or 属性名: productId|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: USBDevice
方法名 or 属性名: clazz|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: USBDevice
方法名 or 属性名: subClass|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: USBDevice
方法名 or 属性名: protocol|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: USBDevice
方法名 or 属性名: configs|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: USBDevicePipe|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: USBDevicePipe
方法名 or 属性名: busNum|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: USBDevicePipe
方法名 or 属性名: devAddress|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: PowerRoleType|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: PowerRoleType
方法名 or 属性名: NONE|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: PowerRoleType
方法名 or 属性名: SOURCE|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: PowerRoleType
方法名 or 属性名: SINK|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: DataRoleType|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: DataRoleType
方法名 or 属性名: NONE|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: DataRoleType
方法名 or 属性名: HOST|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: DataRoleType
方法名 or 属性名: DEVICE|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: PortModeType|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: PortModeType
方法名 or 属性名: NONE|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: PortModeType
方法名 or 属性名: UFP|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: PortModeType
方法名 or 属性名: DFP|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: PortModeType
方法名 or 属性名: DRP|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: PortModeType
方法名 or 属性名: NUM_MODES|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: USBPortStatus|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: USBPortStatus
方法名 or 属性名: currentMode|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: USBPortStatus
方法名 or 属性名: currentPowerRole|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: USBPortStatus
方法名 or 属性名: currentDataRole|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: USBPort|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: USBPort
方法名 or 属性名: id|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: USBPort
方法名 or 属性名: supportedModes|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: USBPort
方法名 or 属性名: status|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: USBControlParams|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: USBControlParams
方法名 or 属性名: request|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: USBControlParams
方法名 or 属性名: target|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: USBControlParams
方法名 or 属性名: reqType|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: USBControlParams
方法名 or 属性名: value|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: USBControlParams
方法名 or 属性名: index|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: USBControlParams
方法名 or 属性名: data|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: USBRequestTargetType|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: USBRequestTargetType
方法名 or 属性名: USB_REQUEST_TARGET_DEVICE|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: USBRequestTargetType
方法名 or 属性名: USB_REQUEST_TARGET_INTERFACE|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: USBRequestTargetType
方法名 or 属性名: USB_REQUEST_TARGET_ENDPOINT|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: USBRequestTargetType
方法名 or 属性名: USB_REQUEST_TARGET_OTHER|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: USBControlRequestType|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: USBControlRequestType
方法名 or 属性名: USB_REQUEST_TYPE_STANDARD|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: USBControlRequestType
方法名 or 属性名: USB_REQUEST_TYPE_CLASS|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: USBControlRequestType
方法名 or 属性名: USB_REQUEST_TYPE_VENDOR|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: USBRequestDirection|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: USBRequestDirection
方法名 or 属性名: USB_REQUEST_DIR_TO_DEVICE|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: USBRequestDirection
方法名 or 属性名: USB_REQUEST_DIR_FROM_DEVICE|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: FunctionType|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: FunctionType
方法名 or 属性名: NONE|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: FunctionType
方法名 or 属性名: ACM|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: FunctionType
方法名 or 属性名: ECM|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: FunctionType
方法名 or 属性名: HDC|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: FunctionType
方法名 or 属性名: MTP|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: FunctionType
方法名 or 属性名: PTP|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: FunctionType
方法名 or 属性名: RNDIS|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: FunctionType
方法名 or 属性名: MIDI|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: FunctionType
方法名 or 属性名: AUDIO_SOURCE|@ohos.usbV9.d.ts| -|新增||模块名: ohos.usbV9
类名: FunctionType
方法名 or 属性名: NCM|@ohos.usbV9.d.ts| +|新增|NA|方法名 or 属性名:controlTransfer
函数:function controlTransfer(pipe: USBDevicePipe, controlparam: USBControlParams, timeout?: number): Promise;|@ohos.usb.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: usbV9|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: usbV9
方法名 or 属性名: getDevices|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: usbV9
方法名 or 属性名: connectDevice|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: usbV9
方法名 or 属性名: hasRight|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: usbV9
方法名 or 属性名: requestRight|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: usbV9
方法名 or 属性名: removeRight|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: usbV9
方法名 or 属性名: addRight|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: usbV9
方法名 or 属性名: usbFunctionsFromString|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: usbV9
方法名 or 属性名: usbFunctionsToString|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: usbV9
方法名 or 属性名: setCurrentFunctions|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: usbV9
方法名 or 属性名: getCurrentFunctions|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: usbV9
方法名 or 属性名: getPorts|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: usbV9
方法名 or 属性名: getSupportedModes|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: usbV9
方法名 or 属性名: setPortRoles|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: usbV9
方法名 or 属性名: claimInterface|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: usbV9
方法名 or 属性名: releaseInterface|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: usbV9
方法名 or 属性名: setConfiguration|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: usbV9
方法名 or 属性名: setInterface|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: usbV9
方法名 or 属性名: getRawDescriptor|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: usbV9
方法名 or 属性名: getFileDescriptor|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: usbV9
方法名 or 属性名: controlTransfer|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: usbV9
方法名 or 属性名: bulkTransfer|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: usbV9
方法名 or 属性名: closePipe|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: USBEndpoint|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: USBEndpoint
方法名 or 属性名: address|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: USBEndpoint
方法名 or 属性名: attributes|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: USBEndpoint
方法名 or 属性名: interval|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: USBEndpoint
方法名 or 属性名: maxPacketSize|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: USBEndpoint
方法名 or 属性名: direction|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: USBEndpoint
方法名 or 属性名: number|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: USBEndpoint
方法名 or 属性名: type|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: USBEndpoint
方法名 or 属性名: interfaceId|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: USBInterface|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: USBInterface
方法名 or 属性名: id|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: USBInterface
方法名 or 属性名: protocol|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: USBInterface
方法名 or 属性名: clazz|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: USBInterface
方法名 or 属性名: subClass|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: USBInterface
方法名 or 属性名: alternateSetting|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: USBInterface
方法名 or 属性名: name|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: USBInterface
方法名 or 属性名: endpoints|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: USBConfig|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: USBConfig
方法名 or 属性名: id|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: USBConfig
方法名 or 属性名: attributes|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: USBConfig
方法名 or 属性名: maxPower|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: USBConfig
方法名 or 属性名: name|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: USBConfig
方法名 or 属性名: isRemoteWakeup|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: USBConfig
方法名 or 属性名: isSelfPowered|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: USBConfig
方法名 or 属性名: interfaces|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: USBDevice|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: USBDevice
方法名 or 属性名: busNum|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: USBDevice
方法名 or 属性名: devAddress|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: USBDevice
方法名 or 属性名: serial|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: USBDevice
方法名 or 属性名: name|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: USBDevice
方法名 or 属性名: manufacturerName|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: USBDevice
方法名 or 属性名: productName|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: USBDevice
方法名 or 属性名: version|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: USBDevice
方法名 or 属性名: vendorId|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: USBDevice
方法名 or 属性名: productId|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: USBDevice
方法名 or 属性名: clazz|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: USBDevice
方法名 or 属性名: subClass|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: USBDevice
方法名 or 属性名: protocol|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: USBDevice
方法名 or 属性名: configs|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: USBDevicePipe|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: USBDevicePipe
方法名 or 属性名: busNum|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: USBDevicePipe
方法名 or 属性名: devAddress|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: PowerRoleType|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: PowerRoleType
方法名 or 属性名: NONE|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: PowerRoleType
方法名 or 属性名: SOURCE|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: PowerRoleType
方法名 or 属性名: SINK|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: DataRoleType|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: DataRoleType
方法名 or 属性名: NONE|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: DataRoleType
方法名 or 属性名: HOST|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: DataRoleType
方法名 or 属性名: DEVICE|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: PortModeType|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: PortModeType
方法名 or 属性名: NONE|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: PortModeType
方法名 or 属性名: UFP|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: PortModeType
方法名 or 属性名: DFP|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: PortModeType
方法名 or 属性名: DRP|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: PortModeType
方法名 or 属性名: NUM_MODES|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: USBPortStatus|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: USBPortStatus
方法名 or 属性名: currentMode|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: USBPortStatus
方法名 or 属性名: currentPowerRole|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: USBPortStatus
方法名 or 属性名: currentDataRole|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: USBPort|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: USBPort
方法名 or 属性名: id|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: USBPort
方法名 or 属性名: supportedModes|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: USBPort
方法名 or 属性名: status|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: USBControlParams|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: USBControlParams
方法名 or 属性名: request|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: USBControlParams
方法名 or 属性名: target|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: USBControlParams
方法名 or 属性名: reqType|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: USBControlParams
方法名 or 属性名: value|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: USBControlParams
方法名 or 属性名: index|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: USBControlParams
方法名 or 属性名: data|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: USBRequestTargetType|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: USBRequestTargetType
方法名 or 属性名: USB_REQUEST_TARGET_DEVICE|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: USBRequestTargetType
方法名 or 属性名: USB_REQUEST_TARGET_INTERFACE|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: USBRequestTargetType
方法名 or 属性名: USB_REQUEST_TARGET_ENDPOINT|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: USBRequestTargetType
方法名 or 属性名: USB_REQUEST_TARGET_OTHER|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: USBControlRequestType|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: USBControlRequestType
方法名 or 属性名: USB_REQUEST_TYPE_STANDARD|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: USBControlRequestType
方法名 or 属性名: USB_REQUEST_TYPE_CLASS|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: USBControlRequestType
方法名 or 属性名: USB_REQUEST_TYPE_VENDOR|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: USBRequestDirection|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: USBRequestDirection
方法名 or 属性名: USB_REQUEST_DIR_TO_DEVICE|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: USBRequestDirection
方法名 or 属性名: USB_REQUEST_DIR_FROM_DEVICE|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: FunctionType|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: FunctionType
方法名 or 属性名: NONE|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: FunctionType
方法名 or 属性名: ACM|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: FunctionType
方法名 or 属性名: ECM|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: FunctionType
方法名 or 属性名: HDC|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: FunctionType
方法名 or 属性名: MTP|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: FunctionType
方法名 or 属性名: PTP|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: FunctionType
方法名 or 属性名: RNDIS|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: FunctionType
方法名 or 属性名: MIDI|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: FunctionType
方法名 or 属性名: AUDIO_SOURCE|@ohos.usbV9.d.ts| +|新增|NA|模块名: ohos.usbV9
类名: FunctionType
方法名 or 属性名: NCM|@ohos.usbV9.d.ts| |废弃版本有变化|类名:usb
废弃版本:N/A|类名:usb
废弃版本:9
代替接口:ohos.usbV9 |@ohos.usb.d.ts| diff --git a/zh-cn/release-notes/api-diff/v3.2-beta4/js-apidiff-user-iam.md b/zh-cn/release-notes/api-diff/v3.2-beta4/js-apidiff-user-iam.md index fe104fe08a3fc9330c1ea3354685ef41ac685497..2d28517db066c0cbc96736d762cf1dc1f405997d 100644 --- a/zh-cn/release-notes/api-diff/v3.2-beta4/js-apidiff-user-iam.md +++ b/zh-cn/release-notes/api-diff/v3.2-beta4/js-apidiff-user-iam.md @@ -1,38 +1,38 @@ -| 操作 | 新版本 | 旧版本 | d.ts文件 | +| 操作 | 旧版本 | 新版本 | d.ts文件 | | ---- | ------ | ------ | -------- | -|新增||方法名 or 属性名:setSurfaceId
函数:setSurfaceId(surfaceId: string): void;|@ohos.userIAM.faceAuth.d.ts| -|新增||模块名: ohos.userIAM.userAuth
类名: AuthEvent|@ohos.userIAM.userAuth.d.ts| -|新增||模块名: ohos.userIAM.userAuth
类名: AuthEvent
方法名 or 属性名:callback|@ohos.userIAM.userAuth.d.ts| -|新增||模块名: ohos.userIAM.userAuth
类名: AuthResultInfo|@ohos.userIAM.userAuth.d.ts| -|新增||模块名: ohos.userIAM.userAuth
类名: AuthResultInfo
方法名 or 属性名:result|@ohos.userIAM.userAuth.d.ts| -|新增||模块名: ohos.userIAM.userAuth
类名: AuthResultInfo
方法名 or 属性名:token|@ohos.userIAM.userAuth.d.ts| -|新增||模块名: ohos.userIAM.userAuth
类名: AuthResultInfo
方法名 or 属性名:remainAttempts|@ohos.userIAM.userAuth.d.ts| -|新增||模块名: ohos.userIAM.userAuth
类名: AuthResultInfo
方法名 or 属性名:lockoutDuration|@ohos.userIAM.userAuth.d.ts| -|新增||模块名: ohos.userIAM.userAuth
类名: TipInfo|@ohos.userIAM.userAuth.d.ts| -|新增||模块名: ohos.userIAM.userAuth
类名: TipInfo
方法名 or 属性名:module|@ohos.userIAM.userAuth.d.ts| -|新增||模块名: ohos.userIAM.userAuth
类名: TipInfo
方法名 or 属性名:tip|@ohos.userIAM.userAuth.d.ts| -|新增||模块名: ohos.userIAM.userAuth
类名: AuthInstance|@ohos.userIAM.userAuth.d.ts| -|新增||模块名: ohos.userIAM.userAuth
类名: AuthInstance
方法名 or 属性名:on|@ohos.userIAM.userAuth.d.ts| -|新增||模块名: ohos.userIAM.userAuth
类名: AuthInstance
方法名 or 属性名:off|@ohos.userIAM.userAuth.d.ts| -|新增||模块名: ohos.userIAM.userAuth
类名: AuthInstance
方法名 or 属性名:start|@ohos.userIAM.userAuth.d.ts| -|新增||模块名: ohos.userIAM.userAuth
类名: AuthInstance
方法名 or 属性名:cancel|@ohos.userIAM.userAuth.d.ts| -|新增||模块名: ohos.userIAM.userAuth
类名: userAuth
方法名 or 属性名:getVersion|@ohos.userIAM.userAuth.d.ts| -|新增||模块名: ohos.userIAM.userAuth
类名: userAuth
方法名 or 属性名:getAvailableStatus|@ohos.userIAM.userAuth.d.ts| -|新增||模块名: ohos.userIAM.userAuth
类名: userAuth
方法名 or 属性名:getAuthInstance|@ohos.userIAM.userAuth.d.ts| -|新增||模块名: ohos.userIAM.userAuth
类名: ResultCodeV9|@ohos.userIAM.userAuth.d.ts| -|新增||模块名: ohos.userIAM.userAuth
类名: ResultCodeV9
方法名 or 属性名:SUCCESS|@ohos.userIAM.userAuth.d.ts| -|新增||模块名: ohos.userIAM.userAuth
类名: ResultCodeV9
方法名 or 属性名:FAIL|@ohos.userIAM.userAuth.d.ts| -|新增||模块名: ohos.userIAM.userAuth
类名: ResultCodeV9
方法名 or 属性名:GENERAL_ERROR|@ohos.userIAM.userAuth.d.ts| -|新增||模块名: ohos.userIAM.userAuth
类名: ResultCodeV9
方法名 or 属性名:CANCELED|@ohos.userIAM.userAuth.d.ts| -|新增||模块名: ohos.userIAM.userAuth
类名: ResultCodeV9
方法名 or 属性名:TIMEOUT|@ohos.userIAM.userAuth.d.ts| -|新增||模块名: ohos.userIAM.userAuth
类名: ResultCodeV9
方法名 or 属性名:TYPE_NOT_SUPPORT|@ohos.userIAM.userAuth.d.ts| -|新增||模块名: ohos.userIAM.userAuth
类名: ResultCodeV9
方法名 or 属性名:TRUST_LEVEL_NOT_SUPPORT|@ohos.userIAM.userAuth.d.ts| -|新增||模块名: ohos.userIAM.userAuth
类名: ResultCodeV9
方法名 or 属性名:BUSY|@ohos.userIAM.userAuth.d.ts| -|新增||模块名: ohos.userIAM.userAuth
类名: ResultCodeV9
方法名 or 属性名:LOCKED|@ohos.userIAM.userAuth.d.ts| -|新增||模块名: ohos.userIAM.userAuth
类名: ResultCodeV9
方法名 or 属性名:NOT_ENROLLED|@ohos.userIAM.userAuth.d.ts| -|删除|模块名: ohos.userIAM.faceAuth
类名: ResultCode||@ohos.userIAM.faceAuth.d.ts| -|删除|模块名: ohos.userIAM.faceAuth
类名: ResultCode
方法名 or 属性名:SUCCESS||@ohos.userIAM.faceAuth.d.ts| -|删除|模块名: ohos.userIAM.faceAuth
类名: ResultCode
方法名 or 属性名:FAIL||@ohos.userIAM.faceAuth.d.ts| +|新增|NA|方法名 or 属性名:setSurfaceId
函数:setSurfaceId(surfaceId: string): void;|@ohos.userIAM.faceAuth.d.ts| +|新增|NA|模块名: ohos.userIAM.userAuth
类名: AuthEvent|@ohos.userIAM.userAuth.d.ts| +|新增|NA|模块名: ohos.userIAM.userAuth
类名: AuthEvent
方法名 or 属性名:callback|@ohos.userIAM.userAuth.d.ts| +|新增|NA|模块名: ohos.userIAM.userAuth
类名: AuthResultInfo|@ohos.userIAM.userAuth.d.ts| +|新增|NA|模块名: ohos.userIAM.userAuth
类名: AuthResultInfo
方法名 or 属性名:result|@ohos.userIAM.userAuth.d.ts| +|新增|NA|模块名: ohos.userIAM.userAuth
类名: AuthResultInfo
方法名 or 属性名:token|@ohos.userIAM.userAuth.d.ts| +|新增|NA|模块名: ohos.userIAM.userAuth
类名: AuthResultInfo
方法名 or 属性名:remainAttempts|@ohos.userIAM.userAuth.d.ts| +|新增|NA|模块名: ohos.userIAM.userAuth
类名: AuthResultInfo
方法名 or 属性名:lockoutDuration|@ohos.userIAM.userAuth.d.ts| +|新增|NA|模块名: ohos.userIAM.userAuth
类名: TipInfo|@ohos.userIAM.userAuth.d.ts| +|新增|NA|模块名: ohos.userIAM.userAuth
类名: TipInfo
方法名 or 属性名:module|@ohos.userIAM.userAuth.d.ts| +|新增|NA|模块名: ohos.userIAM.userAuth
类名: TipInfo
方法名 or 属性名:tip|@ohos.userIAM.userAuth.d.ts| +|新增|NA|模块名: ohos.userIAM.userAuth
类名: AuthInstance|@ohos.userIAM.userAuth.d.ts| +|新增|NA|模块名: ohos.userIAM.userAuth
类名: AuthInstance
方法名 or 属性名:on|@ohos.userIAM.userAuth.d.ts| +|新增|NA|模块名: ohos.userIAM.userAuth
类名: AuthInstance
方法名 or 属性名:off|@ohos.userIAM.userAuth.d.ts| +|新增|NA|模块名: ohos.userIAM.userAuth
类名: AuthInstance
方法名 or 属性名:start|@ohos.userIAM.userAuth.d.ts| +|新增|NA|模块名: ohos.userIAM.userAuth
类名: AuthInstance
方法名 or 属性名:cancel|@ohos.userIAM.userAuth.d.ts| +|新增|NA|模块名: ohos.userIAM.userAuth
类名: userAuth
方法名 or 属性名:getVersion|@ohos.userIAM.userAuth.d.ts| +|新增|NA|模块名: ohos.userIAM.userAuth
类名: userAuth
方法名 or 属性名:getAvailableStatus|@ohos.userIAM.userAuth.d.ts| +|新增|NA|模块名: ohos.userIAM.userAuth
类名: userAuth
方法名 or 属性名:getAuthInstance|@ohos.userIAM.userAuth.d.ts| +|新增|NA|模块名: ohos.userIAM.userAuth
类名: ResultCodeV9|@ohos.userIAM.userAuth.d.ts| +|新增|NA|模块名: ohos.userIAM.userAuth
类名: ResultCodeV9
方法名 or 属性名:SUCCESS|@ohos.userIAM.userAuth.d.ts| +|新增|NA|模块名: ohos.userIAM.userAuth
类名: ResultCodeV9
方法名 or 属性名:FAIL|@ohos.userIAM.userAuth.d.ts| +|新增|NA|模块名: ohos.userIAM.userAuth
类名: ResultCodeV9
方法名 or 属性名:GENERAL_ERROR|@ohos.userIAM.userAuth.d.ts| +|新增|NA|模块名: ohos.userIAM.userAuth
类名: ResultCodeV9
方法名 or 属性名:CANCELED|@ohos.userIAM.userAuth.d.ts| +|新增|NA|模块名: ohos.userIAM.userAuth
类名: ResultCodeV9
方法名 or 属性名:TIMEOUT|@ohos.userIAM.userAuth.d.ts| +|新增|NA|模块名: ohos.userIAM.userAuth
类名: ResultCodeV9
方法名 or 属性名:TYPE_NOT_SUPPORT|@ohos.userIAM.userAuth.d.ts| +|新增|NA|模块名: ohos.userIAM.userAuth
类名: ResultCodeV9
方法名 or 属性名:TRUST_LEVEL_NOT_SUPPORT|@ohos.userIAM.userAuth.d.ts| +|新增|NA|模块名: ohos.userIAM.userAuth
类名: ResultCodeV9
方法名 or 属性名:BUSY|@ohos.userIAM.userAuth.d.ts| +|新增|NA|模块名: ohos.userIAM.userAuth
类名: ResultCodeV9
方法名 or 属性名:LOCKED|@ohos.userIAM.userAuth.d.ts| +|新增|NA|模块名: ohos.userIAM.userAuth
类名: ResultCodeV9
方法名 or 属性名:NOT_ENROLLED|@ohos.userIAM.userAuth.d.ts| +|删除|模块名: ohos.userIAM.faceAuth
类名: ResultCode|NA|@ohos.userIAM.faceAuth.d.ts| +|删除|模块名: ohos.userIAM.faceAuth
类名: ResultCode
方法名 or 属性名:SUCCESS|NA|@ohos.userIAM.faceAuth.d.ts| +|删除|模块名: ohos.userIAM.faceAuth
类名: ResultCode
方法名 or 属性名:FAIL|NA|@ohos.userIAM.faceAuth.d.ts| |废弃版本有变化|类名:AuthenticationResult
废弃版本:N/A|类名:AuthenticationResult
废弃版本:8
代替接口:ohos.userIAM.userAuth.ResultCode |@ohos.userIAM.userAuth.d.ts| |废弃版本有变化|类名:Authenticator
废弃版本:N/A|类名:Authenticator
废弃版本:8|@ohos.userIAM.userAuth.d.ts| |废弃版本有变化|类名:UserAuth
废弃版本:N/A|类名:UserAuth
废弃版本:9
代替接口:ohos.userIAM.userAuth.AuthInstance |@ohos.userIAM.userAuth.d.ts| diff --git a/zh-cn/release-notes/api-diff/v3.2-beta4/js-apidiff-web.md b/zh-cn/release-notes/api-diff/v3.2-beta4/js-apidiff-web.md index 7793291f49b6006bd679d1f30cc1fde107912472..931415d46b4b2403108c5cae8b78f9cea53e053b 100644 --- a/zh-cn/release-notes/api-diff/v3.2-beta4/js-apidiff-web.md +++ b/zh-cn/release-notes/api-diff/v3.2-beta4/js-apidiff-web.md @@ -1,76 +1,76 @@ -| 操作 | 新版本 | 旧版本 | d.ts文件 | +| 操作 | 旧版本 | 新版本 | d.ts文件 | | ---- | ------ | ------ | -------- | -|新增||模块名: ohos.web.webview
类名: HeaderV9|@ohos.web.webview.d.ts| -|新增||模块名: ohos.web.webview
类名: HeaderV9
方法名 or 属性名:headerKey|@ohos.web.webview.d.ts| -|新增||模块名: ohos.web.webview
类名: HeaderV9
方法名 or 属性名:headerValue|@ohos.web.webview.d.ts| -|新增||模块名: ohos.web.webview
类名: HitTestTypeV9|@ohos.web.webview.d.ts| -|新增||模块名: ohos.web.webview
类名: HitTestTypeV9
方法名 or 属性名:EditText|@ohos.web.webview.d.ts| -|新增||模块名: ohos.web.webview
类名: HitTestTypeV9
方法名 or 属性名:Email|@ohos.web.webview.d.ts| -|新增||模块名: ohos.web.webview
类名: HitTestTypeV9
方法名 or 属性名:HttpAnchor|@ohos.web.webview.d.ts| -|新增||模块名: ohos.web.webview
类名: HitTestTypeV9
方法名 or 属性名:HttpAnchorImg|@ohos.web.webview.d.ts| -|新增||模块名: ohos.web.webview
类名: HitTestTypeV9
方法名 or 属性名:Img|@ohos.web.webview.d.ts| -|新增||模块名: ohos.web.webview
类名: HitTestTypeV9
方法名 or 属性名:Map|@ohos.web.webview.d.ts| -|新增||模块名: ohos.web.webview
类名: HitTestTypeV9
方法名 or 属性名:Phone|@ohos.web.webview.d.ts| -|新增||模块名: ohos.web.webview
类名: HitTestTypeV9
方法名 or 属性名:Unknown|@ohos.web.webview.d.ts| -|新增||模块名: ohos.web.webview
类名: HitTestValue|@ohos.web.webview.d.ts| -|新增||模块名: ohos.web.webview
类名: HitTestValue
方法名 or 属性名:type|@ohos.web.webview.d.ts| -|新增||模块名: ohos.web.webview
类名: HitTestValue
方法名 or 属性名:extra|@ohos.web.webview.d.ts| -|新增||方法名 or 属性名:setCookie
函数:static setCookie(url: string, value: string): void;|@ohos.web.webview.d.ts| -|新增||方法名 or 属性名:saveCookieAsync
函数:static saveCookieAsync(): Promise;|@ohos.web.webview.d.ts| -|新增||方法名 or 属性名:saveCookieAsync
函数:static saveCookieAsync(callback: AsyncCallback): void;|@ohos.web.webview.d.ts| -|新增||模块名: ohos.web.webview
类名: WebMessagePort|@ohos.web.webview.d.ts| -|新增||模块名: ohos.web.webview
类名: WebMessagePort
方法名 or 属性名:close|@ohos.web.webview.d.ts| -|新增||模块名: ohos.web.webview
类名: WebMessagePort
方法名 or 属性名:postMessageEvent|@ohos.web.webview.d.ts| -|新增||模块名: ohos.web.webview
类名: WebMessagePort
方法名 or 属性名:onMessageEvent|@ohos.web.webview.d.ts| -|新增||模块名: ohos.web.webview
类名: WebviewController|@ohos.web.webview.d.ts| -|新增||模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:accessForward|@ohos.web.webview.d.ts| -|新增||模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:accessBackward|@ohos.web.webview.d.ts| -|新增||模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:accessStep|@ohos.web.webview.d.ts| -|新增||模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:forward|@ohos.web.webview.d.ts| -|新增||模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:backward|@ohos.web.webview.d.ts| -|新增||模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:clearHistory|@ohos.web.webview.d.ts| -|新增||模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:onActive|@ohos.web.webview.d.ts| -|新增||模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:onInactive|@ohos.web.webview.d.ts| -|新增||模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:refresh|@ohos.web.webview.d.ts| -|新增||模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:loadData|@ohos.web.webview.d.ts| -|新增||模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:loadUrl|@ohos.web.webview.d.ts| -|新增||模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:getHitTest|@ohos.web.webview.d.ts| -|新增||模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:storeWebArchive|@ohos.web.webview.d.ts| -|新增||模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:storeWebArchive|@ohos.web.webview.d.ts| -|新增||模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:zoom|@ohos.web.webview.d.ts| -|新增||模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:zoomIn|@ohos.web.webview.d.ts| -|新增||模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:zoomOut|@ohos.web.webview.d.ts| -|新增||模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:getHitTestValue|@ohos.web.webview.d.ts| -|新增||模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:getWebId|@ohos.web.webview.d.ts| -|新增||模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:getUserAgent|@ohos.web.webview.d.ts| -|新增||模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:getTitle|@ohos.web.webview.d.ts| -|新增||模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:getPageHeight|@ohos.web.webview.d.ts| -|新增||模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:backOrForward|@ohos.web.webview.d.ts| -|新增||模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:requestFocus|@ohos.web.webview.d.ts| -|新增||模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:createWebMessagePorts|@ohos.web.webview.d.ts| -|新增||模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:postMessage|@ohos.web.webview.d.ts| -|新增||模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:stop|@ohos.web.webview.d.ts| -|新增||模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:registerJavaScriptProxy|@ohos.web.webview.d.ts| -|新增||模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:deleteJavaScriptRegister|@ohos.web.webview.d.ts| -|新增||模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:searchAllAsync|@ohos.web.webview.d.ts| -|新增||模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:clearMatches|@ohos.web.webview.d.ts| -|新增||模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:searchNext|@ohos.web.webview.d.ts| -|新增||模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:clearSslCache|@ohos.web.webview.d.ts| -|新增||模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:clearClientAuthenticationCache|@ohos.web.webview.d.ts| -|新增||模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:runJavaScript|@ohos.web.webview.d.ts| -|新增||模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:runJavaScript|@ohos.web.webview.d.ts| -|新增||模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:getUrl|@ohos.web.webview.d.ts| -|删除|模块名:ohos.web.webview
类名:WebCookieManager
方法名 or 属性名:saveCookieSync||@ohos.web.webview.d.ts| -|新增(错误码)||方法名 or 属性名:deleteOrigin
错误码内容:401,17100011|@ohos.web.webview.d.ts| -|新增(错误码)||方法名 or 属性名:getOrigins
错误码内容:401,17100012|@ohos.web.webview.d.ts| -|新增(错误码)||方法名 or 属性名:getOriginQuota
错误码内容:401,17100011|@ohos.web.webview.d.ts| -|新增(错误码)||方法名 or 属性名:getOriginUsage
错误码内容:401,17100011|@ohos.web.webview.d.ts| -|新增(错误码)||方法名 or 属性名:getHttpAuthCredentials
错误码内容:401|@ohos.web.webview.d.ts| -|新增(错误码)||方法名 or 属性名:saveHttpAuthCredentials
错误码内容:401|@ohos.web.webview.d.ts| -|新增(错误码)||方法名 or 属性名:allowGeolocation
错误码内容:401,17100011|@ohos.web.webview.d.ts| -|新增(错误码)||方法名 or 属性名:deleteGeolocation
错误码内容:401,17100011|@ohos.web.webview.d.ts| -|新增(错误码)||方法名 or 属性名:getAccessibleGeolocation
错误码内容:401,17100011|@ohos.web.webview.d.ts| -|新增(错误码)||方法名 or 属性名:getStoredGeolocation
错误码内容:401|@ohos.web.webview.d.ts| -|新增(错误码)||方法名 or 属性名:getCookie
错误码内容:401,17100002|@ohos.web.webview.d.ts| -|新增(错误码)||方法名 or 属性名:putAcceptCookieEnabled
错误码内容:401|@ohos.web.webview.d.ts| -|新增(错误码)||方法名 or 属性名:putAcceptThirdPartyCookieEnabled
错误码内容:401|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: HeaderV9|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: HeaderV9
方法名 or 属性名:headerKey|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: HeaderV9
方法名 or 属性名:headerValue|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: HitTestTypeV9|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: HitTestTypeV9
方法名 or 属性名:EditText|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: HitTestTypeV9
方法名 or 属性名:Email|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: HitTestTypeV9
方法名 or 属性名:HttpAnchor|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: HitTestTypeV9
方法名 or 属性名:HttpAnchorImg|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: HitTestTypeV9
方法名 or 属性名:Img|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: HitTestTypeV9
方法名 or 属性名:Map|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: HitTestTypeV9
方法名 or 属性名:Phone|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: HitTestTypeV9
方法名 or 属性名:Unknown|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: HitTestValue|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: HitTestValue
方法名 or 属性名:type|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: HitTestValue
方法名 or 属性名:extra|@ohos.web.webview.d.ts| +|新增|NA|方法名 or 属性名:setCookie
函数:static setCookie(url: string, value: string): void;|@ohos.web.webview.d.ts| +|新增|NA|方法名 or 属性名:saveCookieAsync
函数:static saveCookieAsync(): Promise;|@ohos.web.webview.d.ts| +|新增|NA|方法名 or 属性名:saveCookieAsync
函数:static saveCookieAsync(callback: AsyncCallback): void;|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebMessagePort|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebMessagePort
方法名 or 属性名:close|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebMessagePort
方法名 or 属性名:postMessageEvent|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebMessagePort
方法名 or 属性名:onMessageEvent|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebviewController|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:accessForward|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:accessBackward|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:accessStep|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:forward|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:backward|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:clearHistory|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:onActive|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:onInactive|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:refresh|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:loadData|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:loadUrl|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:getHitTest|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:storeWebArchive|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:storeWebArchive|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:zoom|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:zoomIn|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:zoomOut|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:getHitTestValue|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:getWebId|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:getUserAgent|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:getTitle|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:getPageHeight|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:backOrForward|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:requestFocus|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:createWebMessagePorts|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:postMessage|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:stop|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:registerJavaScriptProxy|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:deleteJavaScriptRegister|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:searchAllAsync|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:clearMatches|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:searchNext|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:clearSslCache|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:clearClientAuthenticationCache|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:runJavaScript|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:runJavaScript|@ohos.web.webview.d.ts| +|新增|NA|模块名: ohos.web.webview
类名: WebviewController
方法名 or 属性名:getUrl|@ohos.web.webview.d.ts| +|删除|模块名:ohos.web.webview
类名:WebCookieManager
方法名 or 属性名:saveCookieSync|NA|@ohos.web.webview.d.ts| +|新增(错误码)|NA|方法名 or 属性名:deleteOrigin
错误码内容:401,17100011|@ohos.web.webview.d.ts| +|新增(错误码)|NA|方法名 or 属性名:getOrigins
错误码内容:401,17100012|@ohos.web.webview.d.ts| +|新增(错误码)|NA|方法名 or 属性名:getOriginQuota
错误码内容:401,17100011|@ohos.web.webview.d.ts| +|新增(错误码)|NA|方法名 or 属性名:getOriginUsage
错误码内容:401,17100011|@ohos.web.webview.d.ts| +|新增(错误码)|NA|方法名 or 属性名:getHttpAuthCredentials
错误码内容:401|@ohos.web.webview.d.ts| +|新增(错误码)|NA|方法名 or 属性名:saveHttpAuthCredentials
错误码内容:401|@ohos.web.webview.d.ts| +|新增(错误码)|NA|方法名 or 属性名:allowGeolocation
错误码内容:401,17100011|@ohos.web.webview.d.ts| +|新增(错误码)|NA|方法名 or 属性名:deleteGeolocation
错误码内容:401,17100011|@ohos.web.webview.d.ts| +|新增(错误码)|NA|方法名 or 属性名:getAccessibleGeolocation
错误码内容:401,17100011|@ohos.web.webview.d.ts| +|新增(错误码)|NA|方法名 or 属性名:getStoredGeolocation
错误码内容:401|@ohos.web.webview.d.ts| +|新增(错误码)|NA|方法名 or 属性名:getCookie
错误码内容:401,17100002|@ohos.web.webview.d.ts| +|新增(错误码)|NA|方法名 or 属性名:putAcceptCookieEnabled
错误码内容:401|@ohos.web.webview.d.ts| +|新增(错误码)|NA|方法名 or 属性名:putAcceptThirdPartyCookieEnabled
错误码内容:401|@ohos.web.webview.d.ts| diff --git a/zh-cn/release-notes/api-diff/v3.2-beta4/js-apidiff-window.md b/zh-cn/release-notes/api-diff/v3.2-beta4/js-apidiff-window.md index 7bfe392f85cd1d52ff717e280df04c1db8706323..2b37898d98b0d0f58c3c7c4b5741dd6cdddde010 100644 --- a/zh-cn/release-notes/api-diff/v3.2-beta4/js-apidiff-window.md +++ b/zh-cn/release-notes/api-diff/v3.2-beta4/js-apidiff-window.md @@ -1,60 +1,16 @@ -| 操作 | 新版本 | 旧版本 | d.ts文件 | +| 操作 | 旧版本 | 新版本 | d.ts文件 | | ---- | ------ | ------ | -------- | -|新增||模块名:ohos.display
类名:display
方法名 or 属性名:getAllDisplays|@ohos.display.d.ts| -|新增||模块名:ohos.display
类名:display
方法名 or 属性名:getAllDisplays|@ohos.display.d.ts| -|新增||模块名: ohos.window
类名: Configuration|@ohos.window.d.ts| -|新增||模块名: ohos.window
类名: Configuration
方法名 or 属性名:name|@ohos.window.d.ts| -|新增||模块名: ohos.window
类名: Configuration
方法名 or 属性名:windowType|@ohos.window.d.ts| -|新增||模块名: ohos.window
类名: Configuration
方法名 or 属性名:ctx|@ohos.window.d.ts| -|新增||模块名: ohos.window
类名: Configuration
方法名 or 属性名:displayId|@ohos.window.d.ts| -|新增||模块名: ohos.window
类名: Configuration
方法名 or 属性名:parentId|@ohos.window.d.ts| -|新增||模块名:ohos.window
类名:window
方法名 or 属性名:createWindow|@ohos.window.d.ts| -|新增||模块名:ohos.window
类名:window
方法名 or 属性名:createWindow|@ohos.window.d.ts| -|新增||方法名 or 属性名:create
函数:function create(ctx: BaseContext, id: string, type: WindowType): Promise;|@ohos.window.d.ts| -|新增||方法名 or 属性名:create
函数:function create(ctx: BaseContext, id: string, type: WindowType, callback: AsyncCallback): void;|@ohos.window.d.ts| -|新增||模块名:ohos.window
类名:window
方法名 or 属性名:findWindow|@ohos.window.d.ts| -|新增||方法名 or 属性名:getTopWindow
函数:function getTopWindow(ctx: BaseContext): Promise;|@ohos.window.d.ts| -|新增||方法名 or 属性名:getTopWindow
函数:function getTopWindow(ctx: BaseContext, callback: AsyncCallback): void;|@ohos.window.d.ts| -|新增||模块名:ohos.window
类名:window
方法名 or 属性名:getLastWindow|@ohos.window.d.ts| -|新增||模块名:ohos.window
类名:window
方法名 or 属性名:getLastWindow|@ohos.window.d.ts| -|新增||模块名:ohos.window
类名:Window
方法名 or 属性名:showWindow|@ohos.window.d.ts| -|新增||模块名:ohos.window
类名:Window
方法名 or 属性名:showWindow|@ohos.window.d.ts| -|新增||模块名:ohos.window
类名:Window
方法名 or 属性名:destroyWindow|@ohos.window.d.ts| -|新增||模块名:ohos.window
类名:Window
方法名 or 属性名:destroyWindow|@ohos.window.d.ts| -|新增||模块名:ohos.window
类名:Window
方法名 or 属性名:moveWindowTo|@ohos.window.d.ts| -|新增||模块名:ohos.window
类名:Window
方法名 or 属性名:moveWindowTo|@ohos.window.d.ts| -|新增||模块名:ohos.window
类名:Window
方法名 or 属性名:resize|@ohos.window.d.ts| -|新增||模块名:ohos.window
类名:Window
方法名 or 属性名:resize|@ohos.window.d.ts| -|新增||模块名:ohos.window
类名:Window
方法名 or 属性名:setWindowMode|@ohos.window.d.ts| -|新增||模块名:ohos.window
类名:Window
方法名 or 属性名:setWindowMode|@ohos.window.d.ts| -|新增||模块名:ohos.window
类名:Window
方法名 or 属性名:getWindowProperties|@ohos.window.d.ts| -|新增||模块名:ohos.window
类名:Window
方法名 or 属性名:getWindowAvoidArea|@ohos.window.d.ts| -|新增||模块名:ohos.window
类名:Window
方法名 or 属性名:setWindowLayoutFullScreen|@ohos.window.d.ts| -|新增||模块名:ohos.window
类名:Window
方法名 or 属性名:setWindowLayoutFullScreen|@ohos.window.d.ts| -|新增||模块名:ohos.window
类名:Window
方法名 or 属性名:setWindowSystemBarEnable|@ohos.window.d.ts| -|新增||模块名:ohos.window
类名:Window
方法名 or 属性名:setWindowSystemBarEnable|@ohos.window.d.ts| -|新增||模块名:ohos.window
类名:Window
方法名 or 属性名:setWindowSystemBarProperties|@ohos.window.d.ts| -|新增||模块名:ohos.window
类名:Window
方法名 or 属性名:setWindowSystemBarProperties|@ohos.window.d.ts| -|新增||模块名:ohos.window
类名:Window
方法名 or 属性名:setUIContent|@ohos.window.d.ts| -|新增||模块名:ohos.window
类名:Window
方法名 or 属性名:setUIContent|@ohos.window.d.ts| -|新增||模块名:ohos.window
类名:Window
方法名 or 属性名:isWindowShowing|@ohos.window.d.ts| -|新增||模块名:ohos.window
类名:Window
方法名 or 属性名:isWindowSupportWideGamut|@ohos.window.d.ts| -|新增||模块名:ohos.window
类名:Window
方法名 or 属性名:isWindowSupportWideGamut|@ohos.window.d.ts| -|新增||模块名:ohos.window
类名:Window
方法名 or 属性名:setWindowColorSpace|@ohos.window.d.ts| -|新增||模块名:ohos.window
类名:Window
方法名 or 属性名:setWindowColorSpace|@ohos.window.d.ts| -|新增||模块名:ohos.window
类名:Window
方法名 or 属性名:getWindowColorSpace|@ohos.window.d.ts| -|新增||模块名:ohos.window
类名:Window
方法名 or 属性名:setWindowBackgroundColor|@ohos.window.d.ts| -|新增||模块名:ohos.window
类名:Window
方法名 or 属性名:setWindowBrightness|@ohos.window.d.ts| -|新增||模块名:ohos.window
类名:Window
方法名 or 属性名:setWindowBrightness|@ohos.window.d.ts| -|新增||模块名:ohos.window
类名:Window
方法名 or 属性名:setWindowFocusable|@ohos.window.d.ts| -|新增||模块名:ohos.window
类名:Window
方法名 or 属性名:setWindowFocusable|@ohos.window.d.ts| -|新增||模块名:ohos.window
类名:Window
方法名 or 属性名:setWindowKeepScreenOn|@ohos.window.d.ts| -|新增||模块名:ohos.window
类名:Window
方法名 or 属性名:setWindowKeepScreenOn|@ohos.window.d.ts| -|新增||模块名:ohos.window
类名:Window
方法名 or 属性名:setWindowPrivacyMode|@ohos.window.d.ts| -|新增||模块名:ohos.window
类名:Window
方法名 or 属性名:setWindowPrivacyMode|@ohos.window.d.ts| -|新增||模块名:ohos.window
类名:Window
方法名 or 属性名:setWindowTouchable|@ohos.window.d.ts| -|新增||模块名:ohos.window
类名:Window
方法名 or 属性名:setWindowTouchable|@ohos.window.d.ts| -|新增||模块名: ohos.window
类名: WindowStage
方法名 or 属性名:getMainWindowSync|@ohos.window.d.ts| +|新增|NA|模块名: ohos.window
类名: Configuration|@ohos.window.d.ts| +|新增|NA|模块名: ohos.window
类名: Configuration
方法名 or 属性名:name|@ohos.window.d.ts| +|新增|NA|模块名: ohos.window
类名: Configuration
方法名 or 属性名:windowType|@ohos.window.d.ts| +|新增|NA|模块名: ohos.window
类名: Configuration
方法名 or 属性名:ctx|@ohos.window.d.ts| +|新增|NA|模块名: ohos.window
类名: Configuration
方法名 or 属性名:displayId|@ohos.window.d.ts| +|新增|NA|模块名: ohos.window
类名: Configuration
方法名 or 属性名:parentId|@ohos.window.d.ts| +|新增|NA|方法名 or 属性名:create
函数:function create(ctx: BaseContext, id: string, type: WindowType): Promise;|@ohos.window.d.ts| +|新增|NA|方法名 or 属性名:create
函数:function create(ctx: BaseContext, id: string, type: WindowType, callback: AsyncCallback): void;|@ohos.window.d.ts| +|新增|NA|方法名 or 属性名:getTopWindow
函数:function getTopWindow(ctx: BaseContext): Promise;|@ohos.window.d.ts| +|新增|NA|方法名 or 属性名:getTopWindow
函数:function getTopWindow(ctx: BaseContext, callback: AsyncCallback): void;|@ohos.window.d.ts| +|新增|NA|模块名: ohos.window
类名: WindowStage
方法名 or 属性名:getMainWindowSync|@ohos.window.d.ts| |废弃版本有变化|方法名 or 属性名:getDefaultDisplay
废弃版本:N/A|方法名 or 属性名:getDefaultDisplay
废弃版本:9
代替接口:ohos.display|@ohos.display.d.ts| |废弃版本有变化|方法名 or 属性名:getDefaultDisplay
废弃版本:N/A|方法名 or 属性名:getDefaultDisplay
废弃版本:9
代替接口:ohos.display|@ohos.display.d.ts| |废弃版本有变化|方法名 or 属性名:getAllDisplay
废弃版本:N/A|方法名 or 属性名:getAllDisplay
废弃版本:9
代替接口:ohos.display|@ohos.display.d.ts| diff --git a/zh-cn/release-notes/changelogs/OpenHarmony_3.2.10.1/changelog-LocalStorage.md b/zh-cn/release-notes/changelogs/OpenHarmony_3.2.10.1/changelog-LocalStorage.md new file mode 100644 index 0000000000000000000000000000000000000000..b26cfb5125493aa5d9227e32f74f3ad8a9caba8e --- /dev/null +++ b/zh-cn/release-notes/changelogs/OpenHarmony_3.2.10.1/changelog-LocalStorage.md @@ -0,0 +1,116 @@ +# ArkUI子系统LocalStorage类接口ChangeLog + +## cl.LocalStorage.1 get接口返回类型变更 + +**变更影响** + +返回类型从get(propName: string): T变更为get(propName: string): T | undefined +应用不需要进行适配。 + +## cl.LocalStorage.2 setOrCreate参数newValue变成必选 +**变更影响** + +原接口声明: +```js +setOrCreate(propName: string, newValue?: T): boolean +``` +现接口声明: +```js +setOrCreate(propName: string, newValue: T): boolean +``` +第二个参数newValue变为必选。 +如果应用调用这个接口没有指定newValue参数,在替换新的sdk后会编译不过,需要手动指定newValue。 + +**适配指导** + +```js +let storage = new LocalStorage(); +storage.setOrCreate('propA', 'hello'); +``` +## cl.LocalStorage.3 link参数和返回类型变更 +**变更影响** + +原接口声明: +```js +link(propName: string, linkUser?: T, subscribersName?: string): T +``` +现接口声明: +```js +link(propName: string): SubscribedAbstractProperty +``` +1. link第二三个参数为框架内部调用,不应对外开发,所以将接口变更为一个参数; +2. 返回类型T变更为SubscribedAbstractProperty; + +**适配指导** + +```js +let storage = new LocalStorage({"PropA": "47"}); +let linA = storage.link("PropA"); +linA.set(50); +``` + +## cl.LocalStorage.4 setAndLink参数和返回类型变更 +**变更影响** + +原接口声明: +```js +setAndLink(propName: string, defaultValue: T, linkUser?: T, subscribersName?: string): T +``` +现接口声明: +```js +setAndLink(propName: string, defaultValue: T): SubscribedAbstractProperty +``` +1. setAndLink第三四个参数为框架内部调用,不应对外开发,所以将接口变更为2个参数; +2. 返回类型T变更为SubscribedAbstractProperty; + +**适配指导** + +```js +let storage = new LocalStorage({"PropA": "47"}); +let linA = storage.setAndLink("PropA", "48") +linA.set(50); +``` + +## cl.LocalStorage.5 prop参数和返回类型变更 +**变更影响** + +原接口声明: +```js +prop(propName: string, propUser?: T, subscribersName?: string): T +``` +现接口声明: +```js +prop(propName: string): SubscribedAbstractProperty +``` +1. prop第二三个参数为框架内部调用,不应对外开发,所以将接口变更为1个参数; +2. 返回类型T变更为SubscribedAbstractProperty; + +**适配指导** + +```js +let storage = new LocalStorage({"PropA": "47"}); +let propA = storage.prop("PropA"); +propA.set(51); // one-way sync +``` + +## cl.LocalStorage.6 setAndProp参数和返回类型变更 +**变更影响** + +原接口声明: +```js +setAndProp(propName: string, defaultValue: T, propUser?: T, subscribersName?: string): T +``` +现接口声明: +```js +setAndProp(propName: string, defaultValue: S): SubscribedAbstractProperty +``` +1. setAndProp第三四个参数为框架内部调用,不应对外开发,所以将接口变更为2个参数; +2. 返回类型T变更为SubscribedAbstractProperty; + +**适配指导** + +```js +let storage = new LocalStorage({"PropA": "47"}); +let propA = storage.setAndProp("PropA", "48"); +propA.set(51); // one-way sync +``` \ No newline at end of file diff --git a/zh-cn/release-notes/changelogs/OpenHarmony_3.2.10.1/changelogs-ability.md b/zh-cn/release-notes/changelogs/OpenHarmony_3.2.10.1/changelogs-ability.md index 9f4bb4556589e98c26ad2746c213c07c72bb2217..19e914fa005fa0acb6d9a0a59512a6454f36a38e 100644 --- a/zh-cn/release-notes/changelogs/OpenHarmony_3.2.10.1/changelogs-ability.md +++ b/zh-cn/release-notes/changelogs/OpenHarmony_3.2.10.1/changelogs-ability.md @@ -99,7 +99,7 @@ onWindowStageCreate() { - 方法 registerAbilityLifecycleCallback、unregisterAbilityLifecycleCallback、registerEnvironmentCallback、unregisterEnvironmentCallback 被删除。可以使用 on、off 替换。 - application/ServiceExtensionContext.d.ts - 方法 connectAbility、connectAbilityWithAccount、disconnectAbility 被删除。可以使用 connectServiceExtensionAbility、connectServiceExtensionAbilityWithAccount、disconnectServiceExtensionAbility 替换。 -- @ohos.application.ExtensionAbility.d.ts +- @ohos.application.FormExtension.d.ts - 生命周期onCreate、onCastToNormal、onUpdate、onVisibilityChange、onEvent、onDestroy、onAcquireFormState、onShare 被删除。可以使用@ohos.app.form.FormExtensionAbility.d.ts的onAddForm、onCastToNormalForm、onUpdateForm、onChangeFormVisibility、onFormEvent、onRemoveForm、onAcquireFormState、onShareForm - @ohos.application.abilityDelegatorRegistry.d.ts - 导出类 AbilityDelegator、AbilityDelegatorArgs、AbilityMonitor、ShellCmdResult 被删除。可以使用@ohos.app.ability.abilityDelegatorRegistry.d.ts中的同名导出类替换。 diff --git a/zh-cn/release-notes/changelogs/OpenHarmony_3.2.10.3/changelogs-account_os_account.md b/zh-cn/release-notes/changelogs/OpenHarmony_3.2.10.3/changelogs-account_os_account.md index 4ef6169a1e412d95b7ea091c17459ebd2bcc7b44..8b8cad7dbf026cb17c1599e61ebdbae510073a30 100644 --- a/zh-cn/release-notes/changelogs/OpenHarmony_3.2.10.3/changelogs-account_os_account.md +++ b/zh-cn/release-notes/changelogs/OpenHarmony_3.2.10.3/changelogs-account_os_account.md @@ -20,7 +20,6 @@ ```ts import account_osAccount from "@ohos.account.osAccount" -import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium' let accountMgr = account_osAccount.getAccountManager(); let domainInfo = { @@ -31,6 +30,67 @@ try { await accountMgr.createOsAccountForDomain(account_osAccount.OsAccountType.NORMAL, domainInfo); await accountMgr.createOsAccountForDomain(account_osAccount.OsAccountType.NORMAL, domainInfo); } catch (err) { - expect(err.code).assertEqual(12300004); + console.log("activateOsAccount err: " + JSON.stringify(err)); // error.code = 12300004; } ``` + +## cl.account_os_account.2 应用帐号getAllAccounts接口权限场景变更 + +应用使用getAllAccounts接口查询自己可访问的帐号列表时,不需要申请权限ohos.permission.GET_ALL_APP_ACCOUNTS。 + +**变更影响** + +基于此后版本开发的应用,查询自己可访问的帐号列表时,无需申请权限。 + +**关键接口/组件变更** +- AccountManager + - getAllAccounts(callback: AsyncCallback<Array<AppAccountInfo>>): void; + - getAllAccounts(): Promise<Array<AppAccountInfo>>; + +**适配指导** + +应用未申请ohos.permission.GET_ALL_APP_ACCOUNTS,查询自己可访问的帐号列表示例代码如下: + +```ts +import account_appAccount from "@ohos.account.appAccount" + +let accountMgr = account_appAccount.createAppAccountManager(); +try { + await accountMgr.addAccount("accessibleAccount_promise_nopermission"); + var data = await accountMgr.getAllAccounts(); + if (data[0].name == "accessibleAccount_promise_nopermission") { + console.log("getAllAccounts successfully"); + } +} catch (err) { + console.log("getAllAccounts err: " + JSON.stringify(err)); +} +``` + +## cl.account_os_account.3 应用帐号getAccountsByOwner接口权限场景变更 + +应用使用getAccountsByOwner接口查询可访问的指定应用的帐号列表时,不需要申请权限ohos.permission.GET_ALL_APP_ACCOUNTS。 + +**变更影响** + +基于此后版本开发的应用,查询指定应用可访问的帐号列表时,无需申请权限。 + +**关键接口/组件变更** +- AccountManager + - getAccountsByOwner(owner: string, callback: AsyncCallback<Array<AppAccountInfo>>): void; + - getAccountsByOwner(owner: string): Promise<Array<AppAccountInfo>>; + +**适配指导** + +应用未申请ohos.permission.GET_ALL_APP_ACCOUNTS,查询指定应用可访问的帐号列表示例代码如下: + +```ts +import account_appAccount from "@ohos.account.appAccount" + +let accountMgr = account_appAccount.createAppAccountManager(); +try { + var ownerName = "com.example.owner"; + var data = await accountMgr.getAllAccounts(ownerName); +} catch (err) { + console.log("getAllAccounts err: " + JSON.stringify(err)); +} +``` \ No newline at end of file diff --git a/zh-cn/release-notes/changelogs/OpenHarmony_4.0.2.2/changelogs-inputmethod-framworks.md b/zh-cn/release-notes/changelogs/OpenHarmony_3.2.10.5/changelogs-inputmethod-framworks.md similarity index 90% rename from zh-cn/release-notes/changelogs/OpenHarmony_4.0.2.2/changelogs-inputmethod-framworks.md rename to zh-cn/release-notes/changelogs/OpenHarmony_3.2.10.5/changelogs-inputmethod-framworks.md index 38edd589bb5fce2d395dc6036a8658b6174dc8a2..ba3fbf1df4e369ec72a031df204a0cb6cbb7ff47 100644 --- a/zh-cn/release-notes/changelogs/OpenHarmony_4.0.2.2/changelogs-inputmethod-framworks.md +++ b/zh-cn/release-notes/changelogs/OpenHarmony_3.2.10.5/changelogs-inputmethod-framworks.md @@ -2,7 +2,7 @@ ## cl.inputmethod_frameworks.1 API文件名变更 -下列模块与HarmonyOS中的SDK不兼容,且不符合OpenHarmony接口文件名命名规范。在API9进行变更。 +下列模块不符合OpenHarmony接口文件名命名规范。在API9进行变更。 **变更影响** diff --git a/zh-cn/release-notes/changelogs/OpenHarmony_3.2.10.6/changelogs-ability.md b/zh-cn/release-notes/changelogs/OpenHarmony_3.2.10.6/changelogs-ability.md new file mode 100644 index 0000000000000000000000000000000000000000..903fbad8c70147006c457bca8c4a7e6548a8b808 --- /dev/null +++ b/zh-cn/release-notes/changelogs/OpenHarmony_3.2.10.6/changelogs-ability.md @@ -0,0 +1,36 @@ +# 元能力子系统ChangeLog + +## cl.ability.1 appRecovery接口中RestartFlag属性名称变更,删除了未支持的属性 + +appRecovery接口中RestartFlag枚举命名从特定故障发生后**不重启**改成了特定故障发生后**重启**。 +删除了CPP_CRASH_NO_RESTART。 + +**变更影响** + +3.2.10.6版本之前使用CPP_CRASH_NO_RESTART/JS_CRASH_NO_RESTART/APP_FREEZE_NO_RESTART类型开发的应用,在3.2.10.6版本之后行为会发生变化。 + +**关键接口/组件变更** + +**RestartFlag** 9+ + +变更前: +| 名称 | 值 | 说明 | +| ----------------------------- | ---- | ------------------------------------------------------------ | +| ALWAYS_RESTART | 0 | 总是重启应用。 | +| CPP_CRASH_NO_RESTART | 0x0001 | 发生CPP_CRASH时**不重启**应用。 | +| JS_CRASH_NO_RESTART | 0x0002 | 发生JS_CRASH时**不重启**应用。 | +| APP_FREEZE_NO_RESTART | 0x0004 | 发生APP_FREEZE时**不重启**应用。 | +| NO_RESTART | 0xFFFF | 总是不重启应用。 | + +变更后: +| 名称 | 值 | 说明 | +| ---------- | ---- | ---------- | +| ALWAYS_RESTART | 0 | 总是重启应用。 | +| CPP_CRASH_NO_RESTART | NA | **删除**,不支持该场景的重启。 | +| RESTART_WHEN_JS_CRASH | 0x0001 | 发生JS_CRASH时**重启**应用。 | +| RESTART_WHEN_APP_FREEZE | 0x0002 | 发生APP_FREEZE时**重启**应用。 | +| NO_RESTART | 0xFFFF | 总是不重启应用。 | + +**适配指导** + +按新的语义进行适配。 \ No newline at end of file diff --git a/zh-cn/release-notes/changelogs/OpenHarmony_3.2.10.6/changelogs-request.md b/zh-cn/release-notes/changelogs/OpenHarmony_3.2.10.6/changelogs-request.md new file mode 100644 index 0000000000000000000000000000000000000000..6d7bc0e05cd183ff46328bbbbbe8722287961c70 --- /dev/null +++ b/zh-cn/release-notes/changelogs/OpenHarmony_3.2.10.6/changelogs-request.md @@ -0,0 +1,42 @@ +# 上传下载子系统ChangeLog + + +## cl.request.2 request上传下载接口变更 + +- 删除API9-beta接口: +1. function download(context: BaseContext, config: DownloadConfig, callback: AsyncCallback): void; +2. function download(context: BaseContext, config: DownloadConfig): Promise; +3. function upload(context: BaseContext, config: UploadConfig, callback: AsyncCallback): void; +4. function upload(context: BaseContext, config: UploadConfig): Promise; + +**变更影响** + +基于此前版本使用Stage模式开发的应用,需适配变更后的接口,否则会影响原有业务逻辑。 + +**关键的接口/组件变更** + +| 模块名 | 类名 | 方法/属性/枚举/常量 | 变更类型 | +|--------------|--------------|-------------------------------------------------------------------------------------------------------------------|------| +| ohos.request | request | function download(context: BaseContext, config: DownloadConfig, callback: AsyncCallback): void; | 删除 | +| ohos.request | request | function download(context: BaseContext, config: DownloadConfig): Promise; | 删除 | +| ohos.request | request | function upload(context: BaseContext, config: UploadConfig, callback: AsyncCallback): void; | 删除 | +| ohos.request | request | function upload(context: BaseContext, config: UploadConfig): Promise; | 删除 | + + +**适配指导** + +以download为例,在新版本上需要使用downloadFile, 如下方式进行调用: + +```ts +try { + request.downloadFile(globalThis.abilityContext, { url: 'https://xxxx/xxxxx.hap', + filePath: 'xxx/xxxxx.hap'}, (err, data) => { + if (err) { + console.error('Failed to request the download. Cause: ' + JSON.stringify(err)); + return; + } + }); +} catch (err) { + console.log("downloadFile callback fail." + "errCode:" + err.code + ",errMessage:" + err.message); +} +``` \ No newline at end of file diff --git a/zh-cn/release-notes/changelogs/OpenHarmony_3.2.10.7/changelog-web.md b/zh-cn/release-notes/changelogs/OpenHarmony_3.2.10.7/changelog-web.md new file mode 100644 index 0000000000000000000000000000000000000000..3aec00351eea402376251d19f99d695278f6a8ea --- /dev/null +++ b/zh-cn/release-notes/changelogs/OpenHarmony_3.2.10.7/changelog-web.md @@ -0,0 +1,183 @@ +# web子系统ChangeLog + +OpenHarmony 3.2.10.7 版本相较于OpenHarmony 之前的版本,web的API变更如下。 + +## cl.web.1 HitTestTypeV9命名变更 + +枚举类HitTestTypeV9由于命名规范问题,名称变更为WebHitTestType。 + +**变更影响** + +枚举类HitTestTypeV9,以及使用HitTestTypeV9作为参数或返回值的接口,在3.2.10.7版本及后续版本中无法继续正常使用。 + +**关键的接口/组件变更** + +- 涉及接口 + + enum HitTestTypeV9 + +- 变更前: + + ```ts + enum HitTestTypeV9 + ``` + +- 变更后: + + ```ts + enum WebHitTestType + ``` + +**适配指导** + +请使用WebHitTestType替换HitTestTypeV9。 + +## cl.web.2 HeaderV9命名变更 + +结构体HeaderV9由于命名规范问题,名称变更为WebHeader。 + +**变更影响** + +结构体HeaderV9,以及使用HeaderV9作为参数或返回值的接口,在3.2.10.7版本及后续版本中无法继续正常使用。 + +**关键的接口/组件变更** + +- 涉及接口 + + interface HeaderV9 + +- 变更前: + + ```ts + interface HeaderV9 + ``` + +- 变更后: + + ```ts + interface WebHeader + ``` + +**适配指导** + +请使用WebHeader替换HeaderV9。 + +## cl.web.3 HitTestValue结构体成员类型变更 + +结构体HitTestValue中的成员变量HitTestTypeV9由于命名规范问题,名称变更为WebHitTestType。 + +**变更影响** + +结构体HitTestValue,以及使用HitTestValue作为参数或返回值的接口,在3.2.10.7版本及后续版本中无法继续正常使用。 + +**关键的接口/组件变更** + +- 涉及接口 + + interface HitTestValue + +- 变更前: + + ```ts + interface HitTestValue { + + /** + * Get the hit test type. + * + * @since 9 + */ + type: HitTestTypeV9; + + /** + * Get the hit test extra data. + * + * @since 9 + */ + extra: string; + } + ``` + +- 变更后: + + ```ts + interface HitTestValue { + + /** + * Get the hit test type. + * + * @since 9 + */ + type: WebHitTestType; + + /** + * Get the hit test extra data. + * + * @since 9 + */ + extra: string; + } + ``` + +**适配指导** + +请使用WebHitTestType替换HitTestTypeV9。 + +## cl.web.4 loadUrl参数类型变更 + +loadUrl接口中的参数headers,由于其类型的命名规范问题,类型变更为WebHeader。 + +**变更影响** + +loadUrl接口若使用了headers参数,则在3.2.10.7版本及后续版本中无法继续正常使用。 + +**关键的接口/组件变更** + +- 涉及接口 + + loadUrl(url: string | Resource, headers?: Array): void + +- 变更前: + + ```ts + loadUrl(url: string | Resource, headers?: Array): void + ``` + +- 变更后: + + ```ts + loadUrl(url: string | Resource, headers?: Array): void + ``` + +**适配指导** + +在loadUrl中设置headers参数时,请使用WebHeader类型替换HeaderV9类型。 + +## cl.web.5 getHitTest返回值类型变更 + +getHitTest接口中的返回值,由于其类型的命名规范问题,变更为WebHitTest。 + +**变更影响** + +getHitTest接口,在3.2.10.7版本及后续版本中无法继续正常使用。 + +**关键的接口/组件变更** + +- 涉及接口 + + getHitTest(): HitTestTypeV9 + +- 变更前: + + ```ts + getHitTest(): HitTestTypeV9 + ``` + +- 变更后: + + ```ts + getHitTest(): WebHitTestType + ``` + +**适配指导** + +在使用getHitTest接口的返回值时,请使用WebHitTestType类型替换HitTestTypeV9类型。 \ No newline at end of file diff --git a/zh-cn/release-notes/changelogs/OpenHarmony_3.2.10.7/changelogs-ability.md b/zh-cn/release-notes/changelogs/OpenHarmony_3.2.10.7/changelogs-ability.md new file mode 100644 index 0000000000000000000000000000000000000000..5740c1bc54aa92cc3e32843d28ad907d7ad39e21 --- /dev/null +++ b/zh-cn/release-notes/changelogs/OpenHarmony_3.2.10.7/changelogs-ability.md @@ -0,0 +1,109 @@ +# 元能力子系统JS API变更Changelog + +## cl.ability.1 AreaMode接口变更 +AreaMode接口有多个重复,删除掉重复的AreaMode。 + +**变更影响** + +影响API9版本的JS接口,应用需要进行适配才可以在新版本SDK环境正常实现功能。 + +**关键的接口/组件变更** + +| 模块名 | 类名 | 方法/属性/枚举/常量 | 变更类型 | +| ------------------------- | ------------------- | ------------------------------------------------------------ | -------- | +| @ohos.app.ability.common.d.ts | common.AreaMode | | 删除 | +| application/Context.d.ts | AreaMode | | 删除 | + + +**适配指导** + +使用@ohos.app.ability.contextConstant.d.ts中的AreaMode + +```ts +import contextConstant from '@ohos.app.ability.contextConstant'; +let area: contextConstant.AreaMode = contextConstant.AreaMode.EL1; +``` + + + +## cl.ability.2 killProcessesBySelf接口变更 + +killProcessesBySelf接口命名不合理,修改为killAllProcesses。 + +**变更影响** + +影响API9版本的JS接口,应用需要进行适配才可以在新版本SDK环境正常实现功能。 + +**关键接口/组件变更** + +| 模块名 | 类名 | 方法/属性/枚举/常量 | 变更类型 | +| ------------------------------ | ------------------ | ----------------------------------------------------- | -------- | +| application/ApplicationContext | ApplicationContext | killProcessesBySelf(): Promise\; | 删除 | +| application/ApplicationContext | ApplicationContext | killProcessesBySelf(callback: AsyncCallback\); | 删除 | +| application/ApplicationContext | ApplicationContext | killAllProcesses(): Promise\; | 新增 | +| application/ApplicationContext | ApplicationContext | killAllProcesses(callback: AsyncCallback\); | 新增 | + + +**适配指导** + +应用中调用killProcessesBySelf可参考下列代码 + +变更前代码: + +```ts +let context: common.UIAbilityContext = globalThis.abilityContext; +let appContext = context.getApplicationContext(); +appContext.killProcessesBySelf() +``` + +变更后代码: + +```ts +let context: common.UIAbilityContext = globalThis.abilityContext; +let appContext = context.getApplicationContext(); +appContext.killAllProcesses() +``` + + + +## cl.ability.3 getProcessRunningInformation接口变更 + +getProcessRunningInformation接口命名不合理,修改为getRunningProcessInformation。 + +**变更影响** + +影响API9版本的JS接口,应用需要进行适配才可以在新版本SDK环境正常实现功能。 + +**关键接口/组件变更** + +| 模块名 | 类名 | 方法/属性/枚举/常量 | 变更类型 | +| ----------------------------------- | ------------------ | ------------------------------------------------------------ | -------- | +| @ohos.app.ability.appManager.d.ts | appManager | function getProcessRunningInformation(): Promise\\>; | 删除 | +| @ohos.app.ability.appManager.d.ts | appManager | function getProcessRunningInformation(callback: AsyncCallback\\>): void; | 删除 | +| @ohos.app.ability.appManager.d.ts | appManager | function getRunningProcessInformation(): Promise\\>; | 新增 | +| @ohos.app.ability.appManager.d.ts | appManager | function getRunningProcessInformation(callback: AsyncCallback\\>): void; | 新增 | +| application/ApplicationContext.d.ts | ApplicationContext | getProcessRunningInformation(): Promise\\>; | 删除 | +| application/ApplicationContext.d.ts | ApplicationContext | getProcessRunningInformation(callback: AsyncCallback\\>): void; | 删除 | +| application/ApplicationContext.d.ts | ApplicationContext | getRunningProcessInformation(): Promise\\>; | 新增 | +| application/ApplicationContext.d.ts | ApplicationContext | getRunningProcessInformation(callback: AsyncCallback\\>): void; | 新增 | + +**适配指导** + +应用中调用getProcessRunningInformation可参考下列代码 + +变更前代码: + +```ts +let context: common.UIAbilityContext = globalThis.abilityContext; +let appContext = context.getApplicationContext(); +appContext.getProcessRunningInformation() +``` + +变更后代码: + +```ts +let context: common.UIAbilityContext = globalThis.abilityContext; +let appContext = context.getApplicationContext(); +appContext.getRunningProcessInformation() +``` + diff --git a/zh-cn/release-notes/changelogs/OpenHarmony_3.2.10.7/changelogs-arkui.md b/zh-cn/release-notes/changelogs/OpenHarmony_3.2.10.7/changelogs-arkui.md new file mode 100644 index 0000000000000000000000000000000000000000..1dbe17d99b7290362d3982cc6834c753c9281e9a --- /dev/null +++ b/zh-cn/release-notes/changelogs/OpenHarmony_3.2.10.7/changelogs-arkui.md @@ -0,0 +1,39 @@ +# arkui子系统ChangeLog + +## cl.arkui.1 getInspectorTree接口返回值从string修改为Object。 + +**变更影响** + +3.2.10.7之前使用getInspectorTree接口的代码需要适配 + +**关键的接口/组件变更** + +getInspectorTree接口返回值从string修改为Object + +**适配指导** + +将getInspectorTree返回值作为string使用的代码需要修改,比如以下示例代码: + +```typescript +console.info(getInspectorTree()) +``` + +需要修改成 + +```typescript +console.info(JSON.stringify(getInspectorTree())) +``` + +## cl.arkui.2 废弃GridItem的forceRebuild属性 + +**变更影响** + +无,该属性无作用 + +**关键的接口/组件变更** + +GridItem的forceRebuild属性废弃 + +**适配指导** + +如有使用可以直接删除,不影响GridItem功能 diff --git a/zh-cn/release-notes/changelogs/OpenHarmony_3.2.10.7/changelogs-bundlemanager.md b/zh-cn/release-notes/changelogs/OpenHarmony_3.2.10.7/changelogs-bundlemanager.md new file mode 100644 index 0000000000000000000000000000000000000000..c6af59bceb2177840fc4d5a64ba2d8469a707909 --- /dev/null +++ b/zh-cn/release-notes/changelogs/OpenHarmony_3.2.10.7/changelogs-bundlemanager.md @@ -0,0 +1,73 @@ +# 包管理子系统ChangeLog + +## cl.bundlemanager.1 包管理删除@ohos.bundle.bundleManager.d.ts中的getAbilityIcon接口,可以使用@ohos.resourceManager.d.ts中的getMediaContent替换。 + +包管理删除[@ohos.bundle.bundleManager.d.ts](https://gitee.com/openharmony/interface_sdk-js/blob/master/api/@ohos.bundle.bundleManager.d.ts)中的getAbilityIcon接口,可以使用[@ohos.resourceManager.d.ts](https://gitee.com/openharmony/interface_sdk-js/blob/master/api/@ohos.resourceManager.d.ts)中的getMediaContent替换。 + +**变更影响**
+使用之前已发布的API 9各beta版本且使用到了getAbilityIcon接口的,需要改为使用getMediaContent接口。 + +**关键的接口/组件变更**
+删除@ohos.bundle.bundleManager.d.ts中的getAbilityIcon接口。 + +**适配指导**
+使用@ohos.bundle.bundleManager.d.ts下面的getAbilityIcon,需要修改为@ohos.resourceManager.d.ts中的getMediaContent。需要提前获取到图标的资源ID值,可参考该接口的[使用指导](../../../application-dev/reference/apis/js-apis-resource-manager.md#getmediacontent9)。 + +## cl.bundlemanager.2 包管理底层能力变更,仅支持系统资源HAP自定义权限,其它HAP均不支持自定义权限。 + +仅支持系统资源HAP自定义权限,其它HAP均不支持自定义权限。包管理在解析HAP时,仅支持解析资源HAP(包名为:ohos.global.systemres)的配置文件中的definePermissions字段,该字段用来定义权限。其它HAP中配置的definePermissions字段将不会解析。 +如果有应用需要自定义权限,可以在资源HAP的[配置文件](https://gitee.com/openharmony/utils_system_resources/blob/master/systemres/main/config.json)中definePermissions字段下面新增定义权限。格式可参考[定义权限](../../../application-dev/quick-start/module-structure.md#definepermissions对象内部结构)。 + + +**变更影响**
+升级新版本镜像后,应用自定义的权限将不会生效,使用方在申请该权限时,会授权失败。 + +**关键的接口/组件变更**
+包管理底层能力变更,仅支持系统资源HAP自定义权限,其它HAP均不支持自定义权限。 + +**适配指导**
+如果有应用需要自定义权限,可以在资源HAP的[配置文件](https://gitee.com/openharmony/utils_system_resources/blob/master/systemres/main/config.json)中definePermissions字段下面新增定义权限。格式可参考[定义权限](../../../application-dev/quick-start/module-structure.md#definepermissions对象内部结构)。 + +## cl.bundlemanager.3 包管理二级模块文件名称变更,修改为文件内对应的接口名称 + +包管理二级模块文件名称变更,修改为文件内对应的接口名称,变更文件如下: + +| 原文件名称 |变更后文件名称 | +|----|----| +| bundleManager/abilityInfo.d.ts | bundleManager/AbilityInfo.d.ts | +| bundleManager/applicationInfo.d.ts | bundleManager/ApplicationInfo.d.ts | +| bundleManager/bundleInfo.d.ts | bundleManager/BundleInfo.d.ts | +| bundleManager/dispatchInfo.d.ts | bundleManager/DispatchInfo.d.ts | +| bundleManager/elementName.d.ts | bundleManager/ElementName.d.ts | +| bundleManager/extensionAbilityInfo.d.ts | bundleManager/ExtensionAbilityInfo.d.ts | +| bundleManager/hapModuleInfo.d.ts | bundleManager/HapModuleInfo.d.ts | +| bundleManager/launcherAbilityInfo.d.ts | bundleManager/LauncherAbilityInfo.d.ts | +| bundleManager/metadata.d.ts | bundleManager/Metadata.d.ts | +| bundleManager/packInfo.d.ts | bundleManager/BundlePackInfo.d.ts | +| bundleManager/permissionDef.d.ts | bundleManager/PermissionDef.d.ts | +| bundleManager/remoteAbilityInfo.d.ts | bundleManager/RemoteAbilityInfo.d.ts | +| bundleManager/shortcutInfo.d.ts | bundleManager/ShortcutInfo.d.ts | + +除了免安装相关的BundlePackInfo文件名称增加了Bundle,其余文件名称均是修改为大写开头。 + +**变更影响**
+仅修改二级模块文件名称,不会影响一级模块的使用。在使用之前已发布的API 9各beta版本时,如果在ts文件中直接导入了bundleManager下面二级模块接口的,IDE中编译报错的话,需要修改导入的文件名称。 + +**关键的接口/组件变更**
+变更bundleManager文件夹下面的d.ts名称,修改为文件中的接口名称。 + +**适配指导**
+使用新的sdk后,正常情况下应用无需适配该变更。如果在应用中直接导入了bundleManager文件夹下面的文件,则需要修改导入的文件名称。可以按照如下的修改方式: + +**修改前:** +```ts +import {AbilityInfo} from 'bundleManger/abilityInfo'; +import {ExtensionAbilityInfo} from 'bundleManger/extensionAbilityInfo'; +import {BundlePackInfo} from 'bundleManger/packInfo'; +``` +**修改后:** +```ts +import {AbilityInfo} from 'bundleManger/AbilityInfo'; +import {ExtensionAbilityInfo} from 'bundleManger/ExtensionAbilityInfo'; +import {BundlePackInfo} from 'bundleManger/BundlePackInfo'; +``` \ No newline at end of file diff --git a/zh-cn/release-notes/changelogs/OpenHarmony_4.0.2.1/changelogs-distributeddatamgr.md b/zh-cn/release-notes/changelogs/OpenHarmony_4.0.2.1/changelogs-distributeddatamgr.md new file mode 100644 index 0000000000000000000000000000000000000000..cea1a4047360d76a40fe1c715909a8709b83a375 --- /dev/null +++ b/zh-cn/release-notes/changelogs/OpenHarmony_4.0.2.1/changelogs-distributeddatamgr.md @@ -0,0 +1,48 @@ +# 分布式数据管理子系统JS API变更Changelog + +## cl.distributeddatamgr.1 接口变更 +distributeddatamgr子系统relationalStore组件接口存在变更: + +变更前: +应用调用getRdbStore接口后,通过返回对象rdbStore的openStatus属性(openStatus == ON_CREATE)判断数据库是否为新创建。 +变更后: +应用调用getRdbStore接口后,通过返回对象rdbStore的version属性(version == 0)判断数据库是否为新创建。 + +开发者需要根据以下说明对应用进行适配。 + + **变更影响** + +影响API10版本的JS接口,应用需要进行适配才可以在新版本SDK环境正常实现功能。 + +**关键的接口/组件变更** + +| 模块名 | 类名 | 方法/属性/枚举/常量 | 变更类型 | +| ------------------------------ | --------------- | ---------------- | ------- | +| @ohos.data.relationalStore | RdbStore | openStatus: number; 改为 version: number; | 变更 | + + +**适配指导** + +应用中设置和获取数据库版本可参考下列代码: + +```ts +const STORE_CONFIG = { + name: "rdbstore.db", + securityLevel: data_rdb.SecurityLevel.S1 +} +data_rdb.getRdbStore(this.context, STORE_CONFIG, function (err, rdbStore) { + // 变更前: + // if (rdbStore.openStatus == ON_CREATE) { + // rdbStore.executeSql("CREATE TABLE IF NOT EXISTS student (id INTEGER PRIMARY KEY AUTOINCREMENT, score REAL);", null) // create table xxx + // } + + // 变更后: + if (rdbStore.version == 0) { + rdbStore.executeSql("CREATE TABLE IF NOT EXISTS student (id INTEGER PRIMARY KEY AUTOINCREMENT, score REAL);", null) // create table xxx + // 设置数据库版本,值为大于0的正整数 + rdbStore.version == 3 + } + // 获取数据库版本 + console.info("Get RdbStore version is " + rdbStore.version) +}) +``` \ No newline at end of file diff --git a/zh-cn/release-notes/changelogs/OpenHarmony_4.0.2.3/changelogs-ability.md b/zh-cn/release-notes/changelogs/OpenHarmony_4.0.2.3/changelogs-ability.md new file mode 100644 index 0000000000000000000000000000000000000000..7637a2a27873eaf7ea59c642640efc994306c8a3 --- /dev/null +++ b/zh-cn/release-notes/changelogs/OpenHarmony_4.0.2.3/changelogs-ability.md @@ -0,0 +1,36 @@ +# 元能力子系统ChangeLog + +## cl.ability.1 appRecovery接口中RestartFlag属性名称变更,删除了未支持的属性 + +appRecovery接口中RestartFlag枚举命名从特定故障发生后**不重启**改成了特定故障发生后**重启**。 +删除了CPP_CRASH_NO_RESTART。 + +**变更影响** + +4.0.2.3版本之前使用CPP_CRASH_NO_RESTART/JS_CRASH_NO_RESTART/APP_FREEZE_NO_RESTART类型开发的应用,在4.0.2.3版本之后行为会发生变化。 + +**关键接口/组件变更** + +**RestartFlag** 9+ + +变更前: +| 名称 | 值 | 说明 | +| ----------------------------- | ---- | ------------------------------------------------------------ | +| ALWAYS_RESTART | 0 | 总是重启应用。 | +| CPP_CRASH_NO_RESTART | 0x0001 | 发生CPP_CRASH时**不重启**应用。 | +| JS_CRASH_NO_RESTART | 0x0002 | 发生JS_CRASH时**不重启**应用。 | +| APP_FREEZE_NO_RESTART | 0x0004 | 发生APP_FREEZE时**不重启**应用。 | +| NO_RESTART | 0xFFFF | 总是不重启应用。 | + +变更后: +| 名称 | 值 | 说明 | +| ---------- | ---- | ---------- | +| ALWAYS_RESTART | 0 | 总是重启应用。 | +| CPP_CRASH_NO_RESTART | NA | **删除**,不支持该场景的重启。 | +| RESTART_WHEN_JS_CRASH | 0x0001 | 发生JS_CRASH时**重启**应用。 | +| RESTART_WHEN_APP_FREEZE | 0x0002 | 发生APP_FREEZE时**重启**应用。 | +| NO_RESTART | 0xFFFF | 总是不重启应用。 | + +**适配指导** + +按新的语义进行适配。 \ No newline at end of file diff --git a/zh-cn/release-notes/changelogs/OpenHarmony_4.0.2.3/changelogs-arkui.md b/zh-cn/release-notes/changelogs/OpenHarmony_4.0.2.3/changelogs-arkui.md index 13fa31a833204a222885c0d68481903bae13e33d..27ad666dc2f9091b7dcb93341c7e7a88d92b9dce 100644 --- a/zh-cn/release-notes/changelogs/OpenHarmony_4.0.2.3/changelogs-arkui.md +++ b/zh-cn/release-notes/changelogs/OpenHarmony_4.0.2.3/changelogs-arkui.md @@ -213,3 +213,142 @@ 1. 构造子组件时,不对子组件的`@LocalStorageLink`, `@LocalStorageProp`修饰的变量进行。 如果需要在父组件中修改子组件的`@LocalStorageLink`, `@LocalStorageProp`修饰的变量,则使用LocalStorage提供的API接口方法(比如set方法)赋值。 2. @ObjectLink的使用指导请参考文档[@ObjectLink使用指导](../../../application-dev/quick-start/arkts-state-mgmt-page-level.md)。 + +## cl.arkui.3 List组件和Scroll组件onScrollBegin事件变更 + +List组件和Scroll组件onScrollBegin事件更名为onScrollFrameBegin事件,onScrollBegin事件中dx和dy参数分别表示X轴和Y轴方向滚动偏移量,更变为onScrollFrameBegin事件后使用offset参数表示滚动偏移量。onScrollFrameBegin事件新增ScrollState参数,用于表示当前时手指拖动滑动状态还是惯性滑动状态。 + +**变更影响** + +onScrollBegin事件不能再使用,需要使用onScrollFrameBegin事件。 + +**关键接口/组件变更** + +| 旧事件定义 | 新事件定义 | +|------------------ | ------------------- | +| onScrollBegin(event: (dx: number, dy: number) => { dxRemain: number, dyRemain: number }) | onScrollFrameBegin(event: (offset: number, state: ScrollState) => { offsetRemain: number }) | + +onScrollFrameBegin事件说明参考API接口文档: +- [Scroll组件事件](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/reference/arkui-ts/ts-container-scroll.md#%E4%BA%8B%E4%BB%B6) +- [List组件事件](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/reference/arkui-ts/ts-container-list.md#%E4%BA%8B%E4%BB%B6) + +**适配指导** + +onScrollBegin改成使用onScrollFrameBegin事件,onScrollBegin事件的dx/dy参数改成onScrollFrameBegin事件的offset参数。原本需要更滚动组件的滚动轴来确定是使用dx还dy参数,使用onScrollFrameBegin事件后,只需要直接使用offset参数。 + +onScrollBegin事件典型使用示例: +```ts +@Entry +@Component +struct NestedScroll { + @State listPosition: number = 0; // 0代表滚动到List顶部,1代表中间值,2代表滚动到List底部。 + private arr: number[] = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] + private scrollerForScroll: Scroller = new Scroller() + private scrollerForList: Scroller = new Scroller() + + build() { + Flex() { + Scroll(this.scrollerForScroll) { + Column() { + Text("Scroll Area") + .width("100%").height("40%").backgroundColor(0X330000FF) + .fontSize(16).textAlign(TextAlign.Center) + .onClick(() => { + this.scrollerForList.scrollToIndex(5) + }) + + List({ space: 20, scroller: this.scrollerForList }) { + ForEach(this.arr, (item) => { + ListItem() { + Text("ListItem" + item) + .width("100%").height("100%").borderRadius(15) + .fontSize(16).textAlign(TextAlign.Center).backgroundColor(Color.White) + }.width("100%").height(100) + }, item => item) + } + .width("100%") + .height("50%") + .edgeEffect(EdgeEffect.None) + .onReachStart(() => { + this.listPosition = 0 + }) + .onReachEnd(() => { + this.listPosition = 2 + }) + .onScrollBegin((dx: number, dy: number) => { + if ((this.listPosition == 0 && dy >= 0) || (this.listPosition == 2 && dy <= 0)) { + this.scrollerForScroll.scrollBy(0, -dy) + return { dxRemain: dx, dyRemain: 0 } + } + this.listPosition = 1 + return { dxRemain: dx, dyRemain: dy }; + }) + + Text("Scroll Area") + .width("100%").height("40%").backgroundColor(0X330000FF) + .fontSize(16).textAlign(TextAlign.Center) + } + } + .width("100%").height("100%") + }.width('100%').height('100%').backgroundColor(0xDCDCDC).padding(20) + } +} +``` +改成onScrollFrameBegin事件参考代码如下: +```ts +@Entry +@Component +struct NestedScroll { + @State listPosition: number = 0; // 0代表滚动到List顶部,1代表中间值,2代表滚动到List底部。 + private arr: number[] = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] + private scrollerForScroll: Scroller = new Scroller() + private scrollerForList: Scroller = new Scroller() + + build() { + Flex() { + Scroll(this.scrollerForScroll) { + Column() { + Text("Scroll Area") + .width("100%").height("40%").backgroundColor(0X330000FF) + .fontSize(16).textAlign(TextAlign.Center) + .onClick(() => { + this.scrollerForList.scrollToIndex(5) + }) + + List({ space: 20, scroller: this.scrollerForList }) { + ForEach(this.arr, (item) => { + ListItem() { + Text("ListItem" + item) + .width("100%").height("100%").borderRadius(15) + .fontSize(16).textAlign(TextAlign.Center).backgroundColor(Color.White) + }.width("100%").height(100) + }, item => item) + } + .width("100%") + .height("50%") + .edgeEffect(EdgeEffect.None) + .onReachStart(() => { + this.listPosition = 0 + }) + .onReachEnd(() => { + this.listPosition = 2 + }) + .onScrollFrameBegin((offset: number, state: ScrollState) => { + if ((this.listPosition == 0 && offset >= 0) || (this.listPosition == 2 && offset <= 0)) { + this.scrollerForScroll.scrollBy(0, -offset) + return { offsetRemain: 0 } + } + this.listPosition = 1 + return { offsetRemain: offset }; + }) + + Text("Scroll Area") + .width("100%").height("40%").backgroundColor(0X330000FF) + .fontSize(16).textAlign(TextAlign.Center) + } + } + .width("100%").height("100%") + }.width('100%').height('100%').backgroundColor(0xDCDCDC).padding(20) + } +} +``` \ No newline at end of file diff --git a/zh-cn/release-notes/changelogs/OpenHarmony_4.0.2.3/changelogs-usb.md b/zh-cn/release-notes/changelogs/OpenHarmony_4.0.2.3/changelogs-usb.md new file mode 100644 index 0000000000000000000000000000000000000000..3870a5bc4d9bbbeffab9a6a1c76263557a44c4dd --- /dev/null +++ b/zh-cn/release-notes/changelogs/OpenHarmony_4.0.2.3/changelogs-usb.md @@ -0,0 +1,37 @@ +# USB服务子系统ChangeLog + +## cl.usb_manager.1 包名变更 + +基于此前版本开发的应用,需修改导入的包名,否则会影响原有业务逻辑。 + +**关键接口/组件变更** + +| 旧包名 | 新包名 | +|------------------ | ------------------- | +| ohos.usbV9.d.ts | ohos.usbManager.d.ts | + +**适配指导** + +开发者导入时将@ohos.usbV9更换为@ohos.usbManager即可。 + +## cl.usb_manager.2 接口参数类型变更 + +基于此前版本开发的应用,需修改参数类型,否则会影响原有业务逻辑。 + +**关键接口/组件变更** + +| 旧类名 | 新类名 | +|---------------| ------------- | +| interface USBConfig | interface USBConfiguration | + +| 旧命名空间 | 新命名空间 | +|---------------| ------------- | +| @namespace usbV9 | @namespace usbManager | + +| 包名 | 旧接口 | 新接口 | +| --------------- | ------------------------------------------------------------ | ------------------------------------------------------------ | +| ohos.usbManager.d.ts | function setConfiguration(pipe: USBDevicePipe, config: USBConfig): number; | function setConfiguration(pipe: USBDevicePipe, config: USBConfiguration): number; | + +**适配指导** + +调用setConfiguration接口时参数类型USBConfig修改为USBConfiguration即可。 \ No newline at end of file diff --git a/zh-cn/release-notes/changelogs/OpenHarmony_4.0.2.5/changelogs-telephony.md b/zh-cn/release-notes/changelogs/OpenHarmony_4.0.2.5/changelogs-telephony.md new file mode 100644 index 0000000000000000000000000000000000000000..4af67bf47de693c4678408d588be693b9c698a1a --- /dev/null +++ b/zh-cn/release-notes/changelogs/OpenHarmony_4.0.2.5/changelogs-telephony.md @@ -0,0 +1,130 @@ +# 电话子系统ChangeLog + + + +## cl.telephony.radio.1 isNrSupported接口变更 + + +NR是专有名词,需要全部大写。 + +开发者需要根据以下说明对应用进行适配。 + + + +**变更影响** + +基于此前版本开发的应用,需适配变更的js接口,变更前的接口已经不能正常使用了,否则会影响原有功能。 + + + +**关键的接口/组件变更** + +- 涉及接口 + + isNrSupported(): boolean; + isNrSupported(slotId: number): boolean; + +- 变更前: + +```js +function isNrSupported(): boolean; +function isNrSupported(slotId: number): boolean; +``` + +- 变更后: + +```js +function isNRSupported(): boolean; +function isNRSupported(slotId: number): boolean; +``` + + + +**适配指导** + +使用变更后的接口,示例代码如下: + +```js +let result = radio.isNrSupported(); +console.log("Result: "+ result); +``` + + +```js +let slotId = 0; +let result = radio.isNRSupported(slotId); +console.log("Result: "+ result); +``` + + +## cl.telephony.call.2 dial接口变更 + +从API9开始,废弃此接口,改为使用dialCall接口。 + +开发者需要根据以下说明对应用进行适配。 + + +**变更影响** + +该接口删除无法再使用,请使用新增的接口dialCall替换,否则会影响原有功能。 + + +**关键的接口/组件变更** + +- 涉及接口 + + dial(phoneNumber: string, callback: AsyncCallback): void; + dial(phoneNumber: string, options: DialOptions, callback: AsyncCallback): void; + dial(phoneNumber: string, options?: DialOptions): Promise; + +- 变更前: + +```js +function dial(phoneNumber: string, callback: AsyncCallback): void; +function dial(phoneNumber: string, options: DialOptions, callback: AsyncCallback): void; +function dial(phoneNumber: string, options?: DialOptions): Promise; +``` + +- 变更后: + +```js +function dialCall(phoneNumber: string, callback: AsyncCallback): void; +function dialCall(phoneNumber: string, options: DialCallOptions, callback: AsyncCallback): void; +function dialCall(phoneNumber: string, options?: DialCallOptions): Promise; +``` + + + +**适配指导** + +该接口删除无法再使用,请使用新增的接口dialCall替换。 +使用变更后的接口,示例代码如下: + +```js +call.dialCall("138xxxxxxxx", (err, data) => { + console.log(`callback: err->${JSON.stringify(err)}, data->${JSON.stringify(data)}`); +}); +``` + + +```js +call.dialCall("138xxxxxxxx", { + accountId: 0, + videoState: 0, + dialScene: 0, + dialType: 0, +}, (err, data) => { + console.log(`callback: err->${JSON.stringify(err)}, data->${JSON.stringify(data)}`); +}); +``` + + +```js +try { + call.dialCall('138xxxxxxxx'); + console.log(`dialCall success, promise: data->${JSON.stringify(data)}`); +} catch (error) { + console.log(`dialCall fail, promise: err->${JSON.stringify(error)}`); +} +``` + diff --git a/zh-cn/release-notes/changelogs/OpenHarmony_4.0.3.2/changelog-accesstoken.md b/zh-cn/release-notes/changelogs/OpenHarmony_4.0.3.2/changelog-accesstoken.md new file mode 100644 index 0000000000000000000000000000000000000000..1a8369c1e143394448444df7a4f70b78322e1625 --- /dev/null +++ b/zh-cn/release-notes/changelogs/OpenHarmony_4.0.3.2/changelog-accesstoken.md @@ -0,0 +1,33 @@ +# 程序访问控制子系统ChangeLog + +OpenHarmony 4.0.3.2 版本相较于OpenHarmony 之前的版本,程序访问控制子系统的API变更如下。 + +## cl.access_token.1 getPermissionUsedRecords命名变更 + +接口getPermissionUsedRecords由于命名规范问题,名称变更为getPermissionUsedRecord。 + +**变更影响** + +接口getPermissionUsedRecords,在4.0.3.3版本及后续版本中无法继续正常使用。 + +**关键的接口/组件变更** + +- 涉及接口 + + function getPermissionUsedRecords + +- 变更前: + + ```ts + function getPermissionUsedRecords + ``` + +- 变更后: + + ```ts + function getPermissionUsedRecord + ``` + +**适配指导** + +请使用getPermissionUsedRecord替换getPermissionUsedRecords \ No newline at end of file diff --git a/zh-cn/release-notes/changelogs/OpenHarmony_4.0.3.2/changelog-security.md b/zh-cn/release-notes/changelogs/OpenHarmony_4.0.3.2/changelog-security.md new file mode 100644 index 0000000000000000000000000000000000000000..4a91c2a910e8f7b7a0fee4daaef30c1f74c3fe2d --- /dev/null +++ b/zh-cn/release-notes/changelogs/OpenHarmony_4.0.3.2/changelog-security.md @@ -0,0 +1,61 @@ +# security子系统ChangeLog + +## cl.security.1 ParamsSpec属性名变更为algName。 +结构体ParamsSpec的属性algoName由于API命名统一,名称更改为algName。 + +**变更影响** + +影响已发布的JS接口,对ParamsSpec以及其子类IvParamsSpec,GcmParamsSpec与CcmParamsSpec,使用这些对象作为参数或返回值时,其属性名需要更改为algName。 +应用需要进行适配,才可以在新版本SDK环境正常编译通过。 + +**关键的接口/组件变更** + +修改前的接口原型: + + ```ts +interface ParamsSpec { + /** + * Indicates the algorithm name. Should be set before initialization of a cipher object. + * @type { string } + * @syscap SystemCapability.Security.CryptoFramework + * @since 9 + */ + algoName : string; +} + ``` +修改后的接口原型: + + ```ts +interface ParamsSpec { + /** + * Indicates the algorithm name. Should be set before initialization of a cipher object. + * @type { string } + * @syscap SystemCapability.Security.CryptoFramework + * @since 9 + */ + algName : string; +} + ``` + +**适配指导** + +对ParamsSpec以及其子类IvParamsSpec,GcmParamsSpec与CcmParamsSpec,使用这些对象作为参数或返回值时,其属性名需要从algoName更改为algName。 + ```ts +function genGcmParamsSpec() { + let arr = [0, 0, 0, 0 , 0, 0, 0, 0, 0, 0 , 0, 0]; // 12 bytes + let dataIv = new Uint8Array(arr); + let ivBlob = {data : dataIv}; + + arr = [0, 0, 0, 0 , 0, 0, 0, 0]; // 8 bytes + let dataAad = new Uint8Array(arr); + let aadBlob = {data : dataAad}; + + arr = [0, 0, 0, 0 , 0, 0, 0, 0, 0, 0, 0, 0 , 0, 0, 0, 0]; // 16 bytes + let dataTag = new Uint8Array(arr); + let tagBlob = {data : dataTag}; + let gcmParamsSpec = {iv : ivBlob, aad : aadBlob, authTag : tagBlob, algName : "GcmParamsSpec"}; + return gcmParamsSpec; +} + ``` +详细查看API参考中ParamsSpec对应的接口适配指南: +[加解密算法库框架-ParamsSpec-API参考](../../../application-dev/reference/apis/js-apis-cryptoFramework.md#paramsspec) \ No newline at end of file diff --git a/zh-cn/release-notes/changelogs/OpenHarmony_4.0.3.2/changelog-web.md b/zh-cn/release-notes/changelogs/OpenHarmony_4.0.3.2/changelog-web.md new file mode 100644 index 0000000000000000000000000000000000000000..301dded59aa8e6aafb56018ed7dcff70aeafd5ae --- /dev/null +++ b/zh-cn/release-notes/changelogs/OpenHarmony_4.0.3.2/changelog-web.md @@ -0,0 +1,183 @@ +# web子系统ChangeLog + +OpenHarmony 4.0.3.2 版本相较于OpenHarmony 之前的版本,web的API变更如下。 + +## cl.web.1 HitTestTypeV9命名变更 + +枚举类HitTestTypeV9由于命名规范问题,名称变更为WebHitTestType。 + +**变更影响** + +枚举类HitTestTypeV9,以及使用HitTestTypeV9作为参数或返回值的接口,在4.0.3.2版本及后续版本中无法继续正常使用。 + +**关键的接口/组件变更** + +- 涉及接口 + + enum HitTestTypeV9 + +- 变更前: + + ```ts + enum HitTestTypeV9 + ``` + +- 变更后: + + ```ts + enum WebHitTestType + ``` + +**适配指导** + +请使用WebHitTestType替换HitTestTypeV9。 + +## cl.web.2 HeaderV9命名变更 + +结构体HeaderV9由于命名规范问题,名称变更为WebHeader。 + +**变更影响** + +结构体HeaderV9,以及使用HeaderV9作为参数或返回值的接口,在4.0.3.2版本及后续版本中无法继续正常使用。 + +**关键的接口/组件变更** + +- 涉及接口 + + interface HeaderV9 + +- 变更前: + + ```ts + interface HeaderV9 + ``` + +- 变更后: + + ```ts + interface WebHeader + ``` + +**适配指导** + +请使用WebHeader替换HeaderV9。 + +## cl.web.3 HitTestValue结构体成员类型变更 + +结构体HitTestValue中的成员变量HitTestTypeV9由于命名规范问题,名称变更为WebHitTestType。 + +**变更影响** + +结构体HitTestValue,以及使用HitTestValue作为参数或返回值的接口,在4.0.3.2版本及后续版本中无法继续正常使用。 + +**关键的接口/组件变更** + +- 涉及接口 + + interface HitTestValue + +- 变更前: + + ```ts + interface HitTestValue { + + /** + * Get the hit test type. + * + * @since 9 + */ + type: HitTestTypeV9; + + /** + * Get the hit test extra data. + * + * @since 9 + */ + extra: string; + } + ``` + +- 变更后: + + ```ts + interface HitTestValue { + + /** + * Get the hit test type. + * + * @since 9 + */ + type: WebHitTestType; + + /** + * Get the hit test extra data. + * + * @since 9 + */ + extra: string; + } + ``` + +**适配指导** + +请使用WebHitTestType替换HitTestTypeV9。 + +## cl.web.4 loadUrl参数类型变更 + +loadUrl接口中的参数headers,由于其类型的命名规范问题,类型变更为WebHeader。 + +**变更影响** + +loadUrl接口若使用了headers参数,则在4.0.3.2版本及后续版本中无法继续正常使用。 + +**关键的接口/组件变更** + +- 涉及接口 + + loadUrl(url: string | Resource, headers?: Array): void + +- 变更前: + + ```ts + loadUrl(url: string | Resource, headers?: Array): void + ``` + +- 变更后: + + ```ts + loadUrl(url: string | Resource, headers?: Array): void + ``` + +**适配指导** + +在loadUrl中设置headers参数时,请使用WebHeader类型替换HeaderV9类型。 + +## cl.web.5 getHitTest返回值类型变更 + +getHitTest接口中的返回值,由于其类型的命名规范问题,变更为WebHitTest。 + +**变更影响** + +getHitTest接口,在4.0.3.2版本及后续版本中无法继续正常使用。 + +**关键的接口/组件变更** + +- 涉及接口 + + getHitTest(): HitTestTypeV9 + +- 变更前: + + ```ts + getHitTest(): HitTestTypeV9 + ``` + +- 变更后: + + ```ts + getHitTest(): WebHitTestType + ``` + +**适配指导** + +在使用getHitTest接口的返回值时,请使用WebHitTestType类型替换HitTestTypeV9类型。 \ No newline at end of file diff --git a/zh-cn/release-notes/changelogs/OpenHarmony_4.0.3.2/changelogs-arkui.md b/zh-cn/release-notes/changelogs/OpenHarmony_4.0.3.2/changelogs-arkui.md new file mode 100644 index 0000000000000000000000000000000000000000..216b033d74cf4c965009132e2b067f10c77ea22e --- /dev/null +++ b/zh-cn/release-notes/changelogs/OpenHarmony_4.0.3.2/changelogs-arkui.md @@ -0,0 +1,39 @@ +# arkui子系统ChangeLog + +## cl.arkui.1 getInspectorTree接口返回值从string修改为Object。 + +**变更影响** + +4.0.3.2之前使用getInspectorTree接口的代码需要适配 + +**关键的接口/组件变更** + +getInspectorTree接口返回值从string修改为Object + +**适配指导** + +将getInspectorTree返回值作为string使用的代码需要修改,比如以下示例代码: + +```typescript +console.info(getInspectorTree()) +``` + +需要修改成 + +```typescript +console.info(JSON.stringify(getInspectorTree())) +``` + +## cl.arkui.2 废弃GridItem的forceRebuild属性 + +**变更影响** + +无,该属性无作用 + +**关键的接口/组件变更** + +GridItem的forceRebuild属性废弃 + +**适配指导** + +如有使用可以直接删除,不影响GridItem功能 diff --git a/zh-cn/release-notes/changelogs/OpenHarmony_4.0.3.2/changelogs-bundlemanager.md b/zh-cn/release-notes/changelogs/OpenHarmony_4.0.3.2/changelogs-bundlemanager.md new file mode 100644 index 0000000000000000000000000000000000000000..fce3cada2d5907f575c7b33f52c8a347d45647cb --- /dev/null +++ b/zh-cn/release-notes/changelogs/OpenHarmony_4.0.3.2/changelogs-bundlemanager.md @@ -0,0 +1,27 @@ +# 包管理子系统ChangeLog + +## cl.bundlemanager.1 包管理删除@ohos.bundle.bundleManager.d.ts中的getAbilityIcon接口,可以使用@ohos.resourceManager.d.ts中的getMediaContent替换。 + +包管理删除[@ohos.bundle.bundleManager.d.ts](https://gitee.com/openharmony/interface_sdk-js/blob/master/api/@ohos.bundle.bundleManager.d.ts)中的getAbilityIcon接口,可以使用[@ohos.resourceManager.d.ts](https://gitee.com/openharmony/interface_sdk-js/blob/master/api/@ohos.resourceManager.d.ts)中的getMediaContent替换。 + +**变更影响**
+使用之前已发布的API 9各beta版本且使用到了getAbilityIcon接口的,需要改为使用getMediaContent接口。 + +**关键的接口/组件变更**
+删除@ohos.bundle.bundleManager.d.ts中的getAbilityIcon接口。 + +**适配指导**
+使用@ohos.bundle.bundleManager.d.ts下面的getAbilityIcon,需要修改为@ohos.resourceManager.d.ts中的getMediaContent。需要提前获取到图标的资源ID值,可参考该接口的[使用指导](../../../application-dev/reference/apis/js-apis-resource-manager.md#getmediacontent9)。 + +## cl.bundlemanager.2 包管理新增202错误码 + +包管理系统新增202错误码,非系统应用调用api9及之后包管理提供的系统api,将返回错误202。 + +**变更影响**
+非系统应用调用api9及之后包管理提供的系统api,将返回错误202。 + +**关键的接口/组件变更**
+所有包管理提供的api9及之后的系统api,非系统应用调用将返回错误202。 + +**适配指导**
+不影响已开发的程序,无需适配。 \ No newline at end of file diff --git a/zh-cn/release-notes/changelogs/OpenHarmony_4.0.3.2/changelogs-filemanagement.md b/zh-cn/release-notes/changelogs/OpenHarmony_4.0.3.2/changelogs-filemanagement.md new file mode 100644 index 0000000000000000000000000000000000000000..6aa36f7193fef03a5a022a0572963d7997cbb14a --- /dev/null +++ b/zh-cn/release-notes/changelogs/OpenHarmony_4.0.3.2/changelogs-filemanagement.md @@ -0,0 +1,23 @@ +# 文件管理子系统ChangeLog + +## cl.filemanagement.1 Filter类型模块变更 + +**变更影响** + +基于此前版本开发的应用,需注意d.ts位置的变更及import模块名的变更。现Filter类型变更至@ohos.file.fs模块下。Filter类型具体属性不变。 + +**关键接口/组件变更** + +原Filter类型在模块@ohos.fileio下,通过以下方式import: + +```js +import Filter from '@ohos.fileio'; +``` + +**适配指导** + +现Filter类型在模块@ohos.file.fs,通过以下方式import: + +```js +import Filter from '@ohos.file.fs'; +``` diff --git a/zh-cn/release-notes/changelogs/OpenHarmony_4.0.3.2/changelogs-sensor.md b/zh-cn/release-notes/changelogs/OpenHarmony_4.0.3.2/changelogs-sensor.md new file mode 100644 index 0000000000000000000000000000000000000000..1b38e923b6c4aac5f7a560b1bcd86bd77e6dcb30 --- /dev/null +++ b/zh-cn/release-notes/changelogs/OpenHarmony_4.0.3.2/changelogs-sensor.md @@ -0,0 +1,49 @@ +# 泛sensor子系统ChangeLog + +## cl.ability.1 Sensor接口中venderName属性名称变更,更改为vendorName。 + +venderName为错别字,更正为vendorName。 + +**变更影响** + +该venderName属性无法再使用,请使用新增属性vendorName替换。 + +**关键的接口/组件变更** + +- 变更前: + +```js + interface Sensor { + sensorName:string; /**< Sensor name */ + venderName:string; /**< Sensor vendor version */ + firmwareVersion:string; /**< Sensor firmware version */ + hardwareVersion:string; /**< Sensor hardware version */ + sensorId:number; /**< Sensor type ID, {@code SensorType} */ + maxRange:number; /**< Maximum measurement range of the sensor */ + minSamplePeriod:number; /**< Minimum sample period allowed, in ns */ + maxSamplePeriod:number; /**< maximum sample period allowed, in ns */ + precision:number; /**< Sensor accuracy */ + power:number; /**< Sensor power */ + } +``` + +- 变更后: + +```js + interface Sensor { + sensorName:string; /**< Sensor name */ + vendorName:string; /**< Sensor vendor version */ + firmwareVersion:string; /**< Sensor firmware version */ + hardwareVersion:string; /**< Sensor hardware version */ + sensorId:number; /**< Sensor type ID, {@code SensorType} */ + maxRange:number; /**< Maximum measurement range of the sensor */ + minSamplePeriod:number; /**< Minimum sample period allowed, in ns */ + maxSamplePeriod:number; /**< maximum sample period allowed, in ns */ + precision:number; /**< Sensor accuracy */ + power:number; /**< Sensor power */ + } +``` + +**适配指导** + +该venderName属性删除无法再使用,请使用新增属性vendorName替换。 \ No newline at end of file diff --git a/zh-cn/release-notes/changelogs/v3.1-Release/changelogs-account_os_account.md b/zh-cn/release-notes/changelogs/v3.1-Release/changelogs-account_os_account.md index b8baef9aa857112649ac8dec9b388be3624f4bd8..c7e6d21f570298ae525d9cbbbbd15329301d3dc0 100644 --- a/zh-cn/release-notes/changelogs/v3.1-Release/changelogs-account_os_account.md +++ b/zh-cn/release-notes/changelogs/v3.1-Release/changelogs-account_os_account.md @@ -33,25 +33,25 @@ **适配指导** ```ts import account_osAccount from "@ohos.account.osAccount" -import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium' let accountMgr = account_osAccount.getAccountManager(); -accountMgr.createOsAccount('account_test', account_osAccount.OsAccountType.GUEST).then((accountInfo) => { - expect(accountInfo.type).assertEqual(account_osAccount.OsAccountType.GUEST); +accountMgr.createOsAccount("account_test", account_osAccount.OsAccountType.GUEST).then((accountInfo) => { + if (accountInfo.type == account_osAccount.OsAccountType.GUEST) { + console.log("createOsAccount successfully"); + } accountMgr.activateOsAccount(accountInfo.localId).then(() => { - console.log('activateOsAccount successfully'); + console.log("activateOsAccount successfully"); accountMgr.getOsAccountTypeFromProcess().then((accountType) => { - expect(accountType).assertEqual(account_osAccount.OsAccountType.GUEST); + if (accountType == account_osAccount.OsAccountType.GUEST) { + console.log("getOsAccountTypeFromProcess successfully"); + } }).catch((err) => { - console.log('activateOsAccount err: ' + JSON.stringify(err)); - expect().assertFail(); + console.log("activateOsAccount err: " + JSON.stringify(err)); }); }).catch((err) => { - console.log('activateOsAccount err: ' + JSON.stringify(err)); - expect().assertFail(); + console.log("activateOsAccount err: " + JSON.stringify(err)); }); }).catch((err) => { - console.log('createOsAccount err: ' + JSON.stringify(err)); - expect().assertFail(); + console.log("createOsAccount err: " + JSON.stringify(err)); }); ``` diff --git a/zh-cn/website.md b/zh-cn/website.md index 61370de150269925f62de0510ccaa16ed342e262..6fa4303f428e661c368ca9a1bf9a7a9b99f6705a 100644 --- a/zh-cn/website.md +++ b/zh-cn/website.md @@ -4,6 +4,7 @@ - [术语](glossary.md) - 版本说明 - OpenHarmony 3.x Releases + - [OpenHarmony v3.2 Beta5 (2023-01-30)](release-notes/OpenHarmony-v3.2-beta5.md) - [OpenHarmony v3.2 Beta4 (2022-11-30)](release-notes/OpenHarmony-v3.2-beta4.md) - [OpenHarmony v3.2 Beta3 (2022-09-30)](release-notes/OpenHarmony-v3.2-beta3.md) - [OpenHarmony v3.2 Beta2 (2022-07-30)](release-notes/OpenHarmony-v3.2-beta2.md)